| 0056b9b2 |
android/tester-ng: Add cancel discovery cases |
Jakub Tyszkowski |
11 years ago |
3 files, +33, -0 |
| 7cb7fbcc |
android/tester-ng: Add start discovery success cases |
Jakub Tyszkowski |
11 years ago |
3 files, +37, -1 |
| 1ac0eec2 |
android/tester-ng: Use test case independent naming for props
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. |
Jakub Tyszkowski |
11 years ago |
1 file, +143, -182 |
| 103aa325 |
android/tester-ng: Use array of statics instead of case pointers
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. |
Jakub Tyszkowski |
11 years ago |
5 files, +158, -234 |
| 3f93ade5 |
android/tester-ng: Add test declaration helper macro
This replaces test cases declaration with simplier macro call. |
Jakub Tyszkowski |
11 years ago |
6 files, +93, -213 |
| fb49bdf6 |
android/tester-ng: Use action and callback defining macros
This significantly shortens the action definitions. |
Jakub Tyszkowski |
11 years ago |
5 files, +112, -383 |
| 5a97d13f |
android/pts: Update PTS files for MAP
Regression tests for MAP on PTS 5.2 and Android 4.4.4. |
Sebastian Chlad |
11 years ago |
3 files, +23, -29 |
| 14b0b68e |
tools/mgmt-tester: Update non-pairable pairing initiator test
Latest kernels allow pairing initiation while not parirable, so update
the corresponding test. |
Johan Hedberg |
11 years ago |
1 file, +5, -3 |
| 2fef8975 |
shared/gatt: Fix NULL pointer dereference on destroy
This patch adds pointer check to gatt_db_destroy allowing user to call
it with NULL pointer. This follow convention used in shared code for
destroy functions. This fix following android bluetoothd crash in a case
crypto failed to initialize.
...
I/ProbeModule(24651): insmod_by_dep: parse base black list error -1
E/ProbeModule(24651): insmod_by_dep: cannot find module's dependency
info: [net-pf-38]
I/bluetoothd(24639): bluetoothd[24640]: gatt: Failed to setup crypto
...
I/DEBUG (16237): *** *** *** *** *** *** *** *** *** *** *** *** ***
*** *** ***
I/DEBUG (16237): Build fingerprint:
'Intel/hsb/hsb:4.4.2/KOT49H/eng.android.20140514.123328:eng/test-keys'
I/DEBUG (16237): Revision: '0'
I/DEBUG (16237): pid: 24640, tid: 24640, name: bluetoothd-main >>>
/system/bin/bluetoothd-main <<<
I/DEBUG (16237): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr
00000004
...
I/DEBUG (16237): stack:
I/DEBUG (16237): ff81a9dc ff81aa14 [stack]
I/DEBUG (16237): ff81a9e0 00000000
I/DEBUG (16237): ff81a9e4 f75c2e06 /system/lib/libc.so
(vsyslog+6)
I/DEBUG (16237): ff81a9e8 f77c0cd8
/system/bin/bluetoothd-main
I/DEBUG (16237): ff81a9ec f778692c
/system/bin/bluetoothd-main (gatt_db_destroy+12)
I/DEBUG (16237): #00 ff81a9f0 00000003
I/DEBUG (16237): ff81a9f4 f77865c0
/system/bin/bluetoothd-main (gatt_db_service_destroy)
I/DEBUG (16237): ff81a9f8 f7784709
... |
Andrei Emeltchenko |
11 years ago |
1 file, +3, -0 |
| 3e997b69 |
android/pts: Update PTS files for HSP
Re-run PTS tests for HSP on PTS 5.2 and Android 4.4.4 |
Sebastian Chlad |
11 years ago |
3 files, +5, -5 |
| 22ee204a |
android/pts: Update PTS files for AVRCP
Regression test round using PTS 5.2 and Android 4.4.4 |
Sebastian Chlad |
11 years ago |
3 files, +5, -5 |
| 4eac9995 |
android/tester: Remove old cases
Those were already reimplemented using newer testing framework. |
Jakub Tyszkowski |
11 years ago |
1 file, +0, -639 |
| 051707ad |
android/tester-ng: Add set scan mode none succes case |
Jakub Tyszkowski |
11 years ago |
1 file, +36, -0 |
| c93ef59d |
android/tester-ng: Add get properties success cases |
Jakub Tyszkowski |
11 years ago |
1 file, +219, -0 |
| f7a44893 |
android/tester-ng: Add set scan mode success case |
Jakub Tyszkowski |
11 years ago |
1 file, +36, -0 |
| a64610e3 |
android/tester-ng: Add various property set fail cases
These cases should fail as they are read only props. |
Jakub Tyszkowski |
11 years ago |
1 file, +225, -0 |
| 61fd7088 |
android/tester-ng: Add get bdaddr and bdname success cases |
Jakub Tyszkowski |
11 years ago |
3 files, +97, -0 |
| 9f3048eb |
android/tester-ng: Verify action results also for success case
Case when we were expecting fail as action result but we got success was
not caught. |
Jakub Tyszkowski |
11 years ago |
1 file, +1, -2 |
| ca1d84a5 |
android/tester-ng: Set proper callback count
This was a missing piece after fixing the callback count verifying
routine. |
Jakub Tyszkowski |
11 years ago |
1 file, +2, -0 |
| d6943b94 |
android/tester-ng: Fix for not checking callback count in step
If no callback count was set in the step, test passed despite valid properties
still waiting to be verified. |
Jakub Tyszkowski |
11 years ago |
1 file, +8, -0 |
| 0bcf0251 |
android/tester-ng: Use loop for adding cases to the queue
It will be simplier to add new cases. |
Jakub Tyszkowski |
11 years ago |
4 files, +42, -26 |
| 67666f29 |
core: Add non-temporary BR/EDR devices to the kernel whitelist
We want to be able to accept connections from all non-temporary devices.
We should pass these devices kernels that support the BR/EDR whitelist
(through the Add Device mgmt command). |
Johan Hedberg |
11 years ago |
3 files, +97, -1 |
| f6fe4992 |
core: Bind connectable mode to discoverable for kernel connection control
When the kernel supports the BR/EDR whitelist we don't need to always be
connectable in order to receive incoming connections. Therefore, bind
the connectable mode to the discoverable mode whenever kernel connection
control is supported.
To avoid unnecessary mgmt and HCI commands disabling discoverable is
simply done by disabling connectable as it has the effect of disabling
both settings. |
Johan Hedberg |
11 years ago |
1 file, +23, -1 |
| c63b84c3 |
core: Rename kernel_bg_scan to kernel_conn_control
This variable will also be used for the BR/EDR whitelist handling so
rename it to something more generic. |
Johan Hedberg |
11 years ago |
1 file, +11, -11 |
| 4a50d95a |
core: Fix unblocking all transports for dual-mode devices |
Johan Hedberg |
11 years ago |
1 file, +10, -3 |
| 97ea2544 |
android/client: Refactor stop and closing streams |
Andrei Emeltchenko |
11 years ago |
1 file, +10, -8 |
| 161fa547 |
android/client: Add mono to stereo conversion for loopback |
Andrei Emeltchenko |
11 years ago |
1 file, +27, -1 |
| b6a255e1 |
android/client: Correct check for similar buffer size
The new check takes into account number of channels. |
Andrei Emeltchenko |
11 years ago |
1 file, +6, -1 |
| c7e0fedd |
android/client: Add sample rate parameter when opening audio streams
Opening input/output audio streams makes use of config with sample rate. |
Andrei Emeltchenko |
11 years ago |
1 file, +40, -6 |
| 131b56d7 |
android/client: Implement read to file
Reads data from stream_in and write to specified file. |
Andrei Emeltchenko |
11 years ago |
2 files, +61, -10 |
| 13ed6a54 |
android/client: Add loop command
loop command makes stream_in->read() and then stream_out->write(). At
the moment buffers shall be equal. |
Andrei Emeltchenko |
11 years ago |
1 file, +42, -3 |
| 04af313f |
android/client: Add read command
Read command makes stream_in->read() call to Audio HAL. |
Andrei Emeltchenko |
11 years ago |
1 file, +64, -0 |
| f55aa903 |
android/client: Add open/close input stream commands |
Andrei Emeltchenko |
11 years ago |
1 file, +51, -0 |
| c5e1ec61 |
monitor: Write btsnoop before processing packet
In case of parser crash packet should still be present in
btsnoop file. This allows to reproduce crash and provide fix. |
Szymon Janc |
11 years ago |
1 file, +1, -1 |
| 2b4f1439 |
gitignore: Add android/android-tester-ng |
Szymon Janc |
11 years ago |
1 file, +1, -0 |
| 7bbf7c2b |
monitor: Exit with error if failed to open file for writing |
Szymon Janc |
11 years ago |
3 files, +8, -4 |
| 9ab95ccb |
android/android-tester: Remove test cases replaced by tester-ng
Enable, Enable done, Disable, set bdname, discovery timeout, scan mode
test cases are no longer needed in android-tester because of
android-tester-ng test rewrite. |
Grzegorz Kolodziejczyk |
11 years ago |
1 file, +0, -248 |
| 0a9c7b4b |
Android/tester-bluetooth: Add disc_timeout set success tc
This adds discovery timeout set property success test case. |
Grzegorz Kolodziejczyk |
11 years ago |
1 file, +37, -0 |
| 7bc8fe28 |
Android/tester-bluetooth: Add scan_mode set success tc
This adds scan_mode set property success test case. |
Grzegorz Kolodziejczyk |
11 years ago |
1 file, +38, -0 |
| 7bd91c88 |
android/tester-bluetooth: Add bdname set success tc
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. |
Grzegorz Kolodziejczyk |
11 years ago |
3 files, +63, -0 |
| 8cc89fe3 |
android/tester-bluetooth: Add disable success test case
This also adds disable action. |
Grzegorz Kolodziejczyk |
11 years ago |
3 files, +39, -0 |
| 53a3719d |
android/tester-ng: Add property check handling
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. |
Grzegorz Kolodziejczyk |
11 years ago |
3 files, +154, -1 |
| b6f9d6c9 |
android/tester-gatt: Add initial test case |
Grzegorz Kolodziejczyk |
11 years ago |
1 file, +14, -0 |
| bb984785 |
android/tester-gatt: Initial gatt tester
This is initial patch for android gatt HAL tester. It'll contain test
cases for gatt hal. |
Jakub Tyszkowski |
11 years ago |
4 files, +167, -0 |
| 84bbd9ae |
android/tester-hidhost: Add initial test case |
Grzegorz Kolodziejczyk |
11 years ago |
1 file, +14, -0 |
| 5014b650 |
android/tester-hidhost: Initial hidhost tester
This is initial patch for android hidhost HAL tester. It'll contain test
cases for hidhost hal. |
Grzegorz Kolodziejczyk |
11 years ago |
4 files, +104, -0 |
| 01e8fc9e |
android/tester-socket: Add initial test case
This is patch with initial test case testing setup for socket hal test
cases. |
Grzegorz Kolodziejczyk |
11 years ago |
1 file, +14, -0 |
| aa9cbddc |
android/tester-socket: Initial socket tester
This is initial patch for android socket HAL tester. It'll contain test
cases for socket hal. |
Grzegorz Kolodziejczyk |
11 years ago |
4 files, +75, -0 |
| c727e4dc |
android/tester-ng: Add double enable success test case |
Grzegorz Kolodziejczyk |
11 years ago |
1 file, +23, -0 |
| 9cc44d5c |
android/tester-ng: Add callback mechanism
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. |
Jakub Tyszkowski |
11 years ago |
3 files, +80, -1 |