Commit Graph

19759 Commits

Author SHA1 Message Date
Jakub Tyszkowski
051707adff android/tester-ng: Add set scan mode none succes case 2014-07-16 16:40:50 +02:00
Jakub Tyszkowski
c93ef59d0d android/tester-ng: Add get properties success cases 2014-07-16 16:40:45 +02:00
Jakub Tyszkowski
f7a44893a2 android/tester-ng: Add set scan mode success case 2014-07-16 16:40:39 +02:00
Jakub Tyszkowski
a64610e3d2 android/tester-ng: Add various property set fail cases
These cases should fail as they are read only props.
2014-07-16 16:40:34 +02:00
Jakub Tyszkowski
61fd708888 android/tester-ng: Add get bdaddr and bdname success cases 2014-07-16 16:40:27 +02:00
Jakub Tyszkowski
9f3048ebdb 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.
2014-07-16 16:40:13 +02:00
Jakub Tyszkowski
ca1d84a5f6 android/tester-ng: Set proper callback count
This was a missing piece after fixing the callback count verifying
routine.
2014-07-16 16:40:13 +02:00
Jakub Tyszkowski
d6943b94c7 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.
2014-07-16 16:40:13 +02:00
Jakub Tyszkowski
0bcf025146 android/tester-ng: Use loop for adding cases to the queue
It will be simplier to add new cases.
2014-07-16 16:40:13 +02:00
Johan Hedberg
67666f295a 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).
2014-07-16 16:06:50 +03:00
Johan Hedberg
f6fe4992a0 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.
2014-07-16 16:06:49 +03:00
Johan Hedberg
c63b84c3b8 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.
2014-07-16 16:06:49 +03:00
Johan Hedberg
4a50d95a1d core: Fix unblocking all transports for dual-mode devices 2014-07-16 16:06:49 +03:00
Andrei Emeltchenko
97ea25442b android/client: Refactor stop and closing streams 2014-07-16 12:03:54 +02:00
Andrei Emeltchenko
161fa547c6 android/client: Add mono to stereo conversion for loopback 2014-07-16 12:03:48 +02:00
Andrei Emeltchenko
b6a255e18d android/client: Correct check for similar buffer size
The new check takes into account number of channels.
2014-07-16 12:03:35 +02:00
Andrei Emeltchenko
c7e0fedd04 android/client: Add sample rate parameter when opening audio streams
Opening input/output audio streams makes use of config with sample rate.
2014-07-16 12:03:12 +02:00
Andrei Emeltchenko
131b56d733 android/client: Implement read to file
Reads data from stream_in and write to specified file.
2014-07-16 12:02:58 +02:00
Andrei Emeltchenko
13ed6a54d4 android/client: Add loop command
loop command makes stream_in->read() and then stream_out->write(). At
the moment buffers shall be equal.
2014-07-16 12:02:45 +02:00
Andrei Emeltchenko
04af313f56 android/client: Add read command
Read command makes stream_in->read() call to Audio HAL.
2014-07-16 12:02:30 +02:00
Andrei Emeltchenko
f55aa903b6 android/client: Add open/close input stream commands 2014-07-16 12:02:11 +02:00
Szymon Janc
c5e1ec61f3 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.
2014-07-15 17:44:24 +03:00
Szymon Janc
2b4f143960 gitignore: Add android/android-tester-ng 2014-07-15 17:42:51 +03:00
Szymon Janc
7bbf7c2b28 monitor: Exit with error if failed to open file for writing 2014-07-15 17:42:51 +03:00
Grzegorz Kolodziejczyk
9ab95ccb76 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.
2014-07-14 16:58:39 +02:00
Grzegorz Kolodziejczyk
0a9c7b4b62 Android/tester-bluetooth: Add disc_timeout set success tc
This adds discovery timeout set property success test case.
2014-07-14 16:58:39 +02:00
Grzegorz Kolodziejczyk
7bc8fe2874 Android/tester-bluetooth: Add scan_mode set success tc
This adds scan_mode set property success test case.
2014-07-14 16:58:38 +02:00
Grzegorz Kolodziejczyk
7bd91c88b5 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.
2014-07-14 16:58:38 +02:00
Grzegorz Kolodziejczyk
8cc89fe32b android/tester-bluetooth: Add disable success test case
This also adds disable action.
2014-07-14 16:58:38 +02:00
Grzegorz Kolodziejczyk
53a3719d05 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.
2014-07-14 16:58:38 +02:00
Grzegorz Kolodziejczyk
b6f9d6c90f android/tester-gatt: Add initial test case 2014-07-14 16:58:38 +02:00
Jakub Tyszkowski
bb984785f9 android/tester-gatt: Initial gatt tester
This is initial patch for android gatt HAL tester. It'll contain test
cases for gatt hal.
2014-07-14 16:58:38 +02:00
Grzegorz Kolodziejczyk
84bbd9ae25 android/tester-hidhost: Add initial test case 2014-07-14 16:58:38 +02:00
Grzegorz Kolodziejczyk
5014b6509c android/tester-hidhost: Initial hidhost tester
This is initial patch for android hidhost HAL tester. It'll contain test
cases for hidhost hal.
2014-07-14 16:58:38 +02:00
Grzegorz Kolodziejczyk
01e8fc9e03 android/tester-socket: Add initial test case
This is patch with initial test case testing setup for socket hal test
cases.
2014-07-14 16:58:38 +02:00
Grzegorz Kolodziejczyk
aa9cbddcd0 android/tester-socket: Initial socket tester
This is initial patch for android socket HAL tester. It'll contain test
cases for socket hal.
2014-07-14 16:58:38 +02:00
Grzegorz Kolodziejczyk
c727e4dc5f android/tester-ng: Add double enable success test case 2014-07-14 16:58:38 +02:00
Jakub Tyszkowski
9cc44d5cd7 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.
2014-07-14 16:58:37 +02:00
Grzegorz Kolodziejczyk
364db6c204 android/tester-bluetooth: Add enable success test case
This adds also enable action which enable bluetooth adapter.
2014-07-14 16:58:37 +02:00
Grzegorz Kolodziejczyk
cd9a6e7a44 android/tester-bluetooth: Add initial test case
This also adds handle of test steps in android tester framework like:
initializing, matching, verifyng and generic test action which
performes first step action.
2014-07-14 16:58:37 +02:00
Grzegorz Kolodziejczyk
204fb41d73 android/tester-bluetooth: Initial bluetooth HAL tester
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.
2014-07-14 16:58:37 +02:00
Grzegorz Kolodziejczyk
11d6f55490 android/tester-ng: Add android-tester-ng
Based on past experience with android-tester, new android tester is
written from scrath with fixed all known bugs and framework
inadvertancies. Once new test case will be added, same one from old
android tester will be removed, until whole test case list will be
replaced.
2014-07-14 16:58:37 +02:00
Grzegorz Kolodziejczyk
3fb40e784d shared/tester: Add support for debug logs for tester
It allows to print debug logs if debug mode is enabled. It could help in
case of additional debug prints need (verbose mode).
2014-07-14 16:58:37 +02:00
Szymon Janc
4002d4d329 android/gatt: Disallow signed write on BR/EDR connection
As per Core Specification 4.1 Part G p. 4.9.2 signed write without
reponse shall not be used on BR/EDR.
2014-07-14 14:33:03 +02:00
Szymon Janc
688218cd94 android/gatt: Fix not sending notification for signed write
Signed write has no response and notificatino should be send to
Android Framework in case of write succeed.
2014-07-14 14:33:03 +02:00
Szymon Janc
897025255d android/gatt: Fix signed write on encrypted link
This fix invalid setting of res instead of status in error case.
2014-07-14 14:33:03 +02:00
Szymon Janc
797466d189 android/gatt: Make signed_write_cmd similar to rest of write functions
This avoids confusion with assigning bool to uint type.
2014-07-14 14:33:03 +02:00
Johan Hedberg
1475d9e5ff tools/smp-tester: Add user confirmation callback 2014-07-13 16:12:53 +03:00
Marcel Holtmann
586cdbc23b build: Use dist_noinst_MANS for now due to an automake issue 2014-07-13 00:06:57 +02:00
Marcel Holtmann
3672e43fe6 build: Add configure option for generating manual pages 2014-07-12 23:44:22 +02:00