summaryrefslogtreecommitdiff
path: root/android/tester-bluetooth.c
Commit message (Collapse)AuthorAgeFilesLines
* android: Add SPDX License IdentifierTedd Ho-Jeong An2020-09-211-12/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds SPDX License Identifier and removes the license text. ------------------------------------- License COUNT ------------------------------------- Apache-2.0 : 80 LGPL-2.1-or-later : 42 GPL-2.0-or-later : 9 License: Apache-2.0 android/bluetoothd-wrapper.c android/tester-hidhost.c android/tester-map-client.c android/hal-audio-aptx.c android/hal-audio.c android/hal-handsfree-client.c android/tester-gatt.c android/hal-pan.c android/hal-socket.c android/tester-hdp.c android/tester-pan.c android/tester-avrcp.c android/hal-a2dp-sink.c android/hal-gatt.c android/hal-avrcp.c android/tester-a2dp.c android/hal-audio.h android/hal-bluetooth.c android/tester-socket.c android/hal-health.c android/hal-a2dp.c android/hal-ipc.c android/hal-avrcp-ctrl.c android/hal-sco.c android/hal-ipc.h android/tester-main.c android/hal-audio-sbc.c android/hal-utils.c android/hal-map-client.c android/hal-handsfree.c android/hal-log.h android/hal.h android/hal-utils.h android/tester-bluetooth.c android/hal-hidhost.c android/audio_utils/resampler.h android/audio_utils/resampler.c android/system/audio.h android/hardware/bt_sock.h android/hardware/bt_gatt_client.h android/hardware/bt_hh.h android/hardware/bluetooth.h android/hardware/hardware.h android/hardware/bt_hf_client.h android/hardware/bt_rc.h android/hardware/bt_hf.h android/hardware/bt_pan.h android/hardware/bt_gatt_types.h android/hardware/hardware.c android/hardware/audio_effect.h android/hardware/audio.h android/hardware/bt_gatt_server.h android/hardware/bt_gatt.h android/hardware/bt_hl.h android/hardware/bt_mce.h android/hardware/bt_av.h android/client/if-hh.c android/client/if-sco.c android/client/pollhandler.h android/client/haltest.c android/client/tabcompletion.c android/client/if-hf-client.c android/client/history.h android/client/if-audio.c android/client/terminal.h android/client/if-av.c android/client/if-main.h android/client/if-av-sink.c android/client/terminal.c android/client/if-mce.c android/client/if-hf.c android/client/pollhandler.c android/client/if-sock.c android/client/if-rc-ctrl.c android/client/if-rc.c android/client/history.c android/client/if-pan.c android/client/if-gatt.c android/client/if-bt.c android/client/if-hl.c License: LGPL-2.1-or-later android/sco.h android/socket.c android/tester-main.h android/hidhost.h android/map-client.h android/utils.h android/hal-msg.h android/health.h android/avrcp-lib.c android/bluetoothd-snoop.c android/a2dp.c android/bluetooth.h android/a2dp-sink.c android/handsfree-client.c android/audio-msg.h android/main.c android/pan.c android/ipc-tester.c android/health.c android/socket.h android/handsfree.h android/avrcp-lib.h android/a2dp-sink.h android/system-emulator.c android/gatt.c android/avrcp.h android/pan.h android/test-ipc.c android/hidhost.c android/a2dp.h android/avrcp.c android/sco-msg.h android/bluetooth.c android/map-client.c android/handsfree-client.h android/ipc.c android/handsfree.c android/gatt.h android/ipc.h android/ipc-common.h android/compat/wordexp.h android/cutils/properties.h License: GPL-2.0-or-later android/avdtp.h android/avctp.c android/avdtptest.c android/sco.c android/log.c android/avdtp.c android/avctp.h android/compat/readline/history.h android/compat/readline/readline.h
* build: Move declaration of _GNU_SOURCE back into individual source filesMarcel Holtmann2018-12-061-0/+2
|
* android/tester: Fix race in discovering devicesSzymon Janc2017-12-221-32/+62
| | | | | | This makes sure that emulated device starts advertising only after discovery is ongoing and that tests go further only after device was found. Otherwise tests were randomly failing.
* android/tester: Clarify default properties match namesSzymon Janc2017-12-221-9/+9
|
* android: Remove dead codeSzymon Janc2015-10-301-6/+1
| | | | | This removes dead code due to memory allocation with new0 not being able to fail.
* android/tester: Fix compilation with GCC 5Szymon Janc2015-04-161-4/+4
| | | | | | | | | | | | Value in bt_property_t as defined in Android HAL is not const pointer. This fix following build error with GCC 5: CC android/android_android_tester-tester-bluetooth.o android/tester-bluetooth.c:38:9: error: initialization discards ‘const’ qualifier from pointer target type [-Werror=discarded-array-qualifiers] .val = &emu_bdname_val, ^
* android/tester: Add verification for test case list creatorsGrzegorz Kolodziejczyk2014-12-181-1/+5
| | | | | To be safe it must be chcecked if queue_new and add test case to list was successful.
* android/tester: Refreactor tester-main header includesGrzegorz Kolodziejczyk2014-12-181-0/+2
| | | | | Profile testers should contain necessary headers include instead of tester-main header.
* android/tester: Explicitly set IO capabilities for SSP pairing testsJakub Tyszkowski2014-09-241-0/+9
| | | | | Those tests are periodically broken every time default IO capabalities are changed. This patch sets them explicitely to avoid this breakage.
* android/tester: Add test verifying correct bond state notificationLukasz Rymanowski2014-09-021-0/+28
| | | | | Added test which verify that remote device which is paired and not bonded has correct state in Android framework after ACL disconnection.
* android/tester: Add test for incoming bondingLukasz Rymanowski2014-08-281-0/+35
| | | | This patch add test for incoming just works bonding
* android/tester-ng: Add socket connect success casesJakub Tyszkowski2014-07-241-0/+2
| | | | | | | Adding socket connect cases requires to set up the the l2cap and rfcomm servers on the emulated device. For this, the bthost_l2cap_connect_cb type had to exposed in tester-main.h and pulled some bthost dependencies along.
* android/tester-ng: Minor title fix for core casesJakub Tyszkowski2014-07-221-62/+62
| | | | | Now with more space for test case's title in the summary, we can use full "Bluetooth" for all core bluetooth interface test cases.
* android/tester-ng: Add more bonding casesJakub Tyszkowski2014-07-211-0/+90
| | | | This adds more cases for bond, bond canceling and bond removal.
* android/tester-ng: Add ssp confirmation casesJakub Tyszkowski2014-07-211-0/+59
| | | | | | Needed actions were added to properly execute spp procedure. Also callback data was extended to verify incomming ssp variant, and action data was extended to pass ssp accept parameters.
* android/tester-ng: Add wrong PIN reply test caseJakub Tyszkowski2014-07-211-0/+32
|
* android/tester-ng: Add BREDR pairing with pin test caseJakub Tyszkowski2014-07-211-0/+59
| | | | | This also adds some actions for setting pin the emulated device and for calling bonding api of bluetooth core.
* android/tester-ng: Improve variable's namesJakub Tyszkowski2014-07-211-88/+89
| | | | | Some variables are specific to emulator device type and remote device type. This patch makes names more descriptive.
* android/tester-ng: Improve result printJakub Tyszkowski2014-07-211-54/+54
| | | | | | It might be usefull to print if test involves LE or BREDR adapter and remotes. Test case title length had to be reduced for better results format.
* android/tester-ng: Allow test framework user to choose emu typeJakub Tyszkowski2014-07-211-54/+54
| | | | | This allows to set emulated adapter type for each test case in place where tests are defined. Previously this was hardcoded in the framework.
* android/tester-ng: Fix timestamp property typeSzymon Janc2014-07-181-1/+1
| | | | | This type is unspecified in HAL API and we currently use uint32_t for it. This also fix build error on 32bit machines.
* android/tester-ng: Add remote device set property fail casesJakub Tyszkowski2014-07-181-0/+205
| | | | | Those set property requests should fail as they request to set remotes adapter properties.
* android/tester-ng: Add set remote friendly name success caseJakub Tyszkowski2014-07-181-0/+23
|
* android/tester-ng: Add get remote property failing casesJakub Tyszkowski2014-07-181-0/+107
| | | | | Those properties requests should fails as those are adapter specific ones and does not apply to remote devices.
* android/tester-ng: Add get remote props casesJakub Tyszkowski2014-07-181-2/+146
| | | | | This patch also introduces bt_action_data for passing arguments to HAL api calls. So far one argument was enough but now there's need for more.
* android/tester-ng: Add get remote properties caseJakub Tyszkowski2014-07-181-0/+29
|
* android/tester-ng: Add remote device found caseJakub Tyszkowski2014-07-181-0/+27
| | | | | This patch adds first test case that requires remote emulated device to be discovered. New action step was added to activate this device on demand.
* android/tester-ng: Add cancel discovery casesJakub Tyszkowski2014-07-181-0/+21
|
* android/tester-ng: Add start discovery success casesJakub Tyszkowski2014-07-181-0/+15
|
* android/tester-ng: Use test case independent naming for propsJakub Tyszkowski2014-07-181-182/+143
| | | | | | | | | | | | This patch abstracts out data from the specific test cases. Every data that is sent through the hal (i.e. properties) and then the result is verified is a test data thus uses 'test_prop_<dataname>' convention. Data that is retrieved from the deamon and is adapter's default settings use 'emu_prop_<dataname>' notation. Data name now represents it's content and is no longer bound to specific test case thus can be reused. Its also easier to actually see what the test case do without browsing through its data set.
* android/tester-ng: Use array of statics instead of case pointersJakub Tyszkowski2014-07-181-207/+140
| | | | | This is yet another macro that hides the test implementation details and shortens the amount of code that needs to be written for each test case.
* android/tester-ng: Add test declaration helper macroJakub Tyszkowski2014-07-181-184/+72
| | | | This replaces test cases declaration with simplier macro call.
* android/tester-ng: Use action and callback defining macrosJakub Tyszkowski2014-07-181-374/+86
| | | | This significantly shortens the action definitions.
* android/tester-ng: Add set scan mode none succes caseJakub Tyszkowski2014-07-161-0/+36
|
* android/tester-ng: Add get properties success casesJakub Tyszkowski2014-07-161-0/+219
|
* android/tester-ng: Add set scan mode success caseJakub Tyszkowski2014-07-161-0/+36
|
* android/tester-ng: Add various property set fail casesJakub Tyszkowski2014-07-161-0/+225
| | | | These cases should fail as they are read only props.
* android/tester-ng: Add get bdaddr and bdname success casesJakub Tyszkowski2014-07-161-0/+74
|
* android/tester-ng: Set proper callback countJakub Tyszkowski2014-07-161-0/+2
| | | | | This was a missing piece after fixing the callback count verifying routine.
* android/tester-ng: Use loop for adding cases to the queueJakub Tyszkowski2014-07-161-20/+15
| | | | It will be simplier to add new cases.
* Android/tester-bluetooth: Add disc_timeout set success tcGrzegorz Kolodziejczyk2014-07-141-0/+37
| | | | This adds discovery timeout set property success test case.
* Android/tester-bluetooth: Add scan_mode set success tcGrzegorz Kolodziejczyk2014-07-141-0/+38
| | | | This adds scan_mode set property success test case.
* android/tester-bluetooth: Add bdname set success tcGrzegorz Kolodziejczyk2014-07-141-0/+37
| | | | | | | This adds handling of property check and bdname set property success test case. Android tester framework is enhanced by set bd name action. Test data is enchanced by user step data which can be used inside test case step.
* android/tester-bluetooth: Add disable success test caseGrzegorz Kolodziejczyk2014-07-141-0/+27
| | | | This also adds disable action.
* android/tester-ng: Add property check handlingGrzegorz Kolodziejczyk2014-07-141-0/+42
| | | | | | | This adds property check handling. Existing test cases (enable, enable done) are updated with property check. If property type/len/val is not expected in test step its value should be set to 0/NULL. Order of property is not considered while checking.
* android/tester-ng: Add double enable success test caseGrzegorz Kolodziejczyk2014-07-141-0/+23
|
* android/tester-ng: Add callback mechanismJakub Tyszkowski2014-07-141-0/+4
| | | | | | This patch adds bt_cb_data to be used for passing callback data from asynchronous call to tester's main loop. As for now this struct contains only state but will be extended to handle various callbacks.
* android/tester-bluetooth: Add enable success test caseGrzegorz Kolodziejczyk2014-07-141-0/+15
| | | | This adds also enable action which enable bluetooth adapter.
* android/tester-bluetooth: Add initial test caseGrzegorz Kolodziejczyk2014-07-141-0/+14
| | | | | | This also adds handle of test steps in android tester framework like: initializing, matching, verifyng and generic test action which performes first step action.
* android/tester-bluetooth: Initial bluetooth HAL testerGrzegorz Kolodziejczyk2014-07-141-0/+32
This is initial patch for android bluetooth HAL tester. It'll contain test cases for bluetooth hal using android tester framework (tester-main). Test step actions for this and every tester should be declared in main tester. Cohesion of test action make action function more useful and centralized.