OSDN Git Service

android-x86/external-bluetooth-bluez.git
10 years agodoc: Update mgmt-tester test count
Johan Hedberg [Wed, 30 Jul 2014 10:45:39 +0000 (13:45 +0300)]
doc: Update mgmt-tester test count

10 years agomgmt-tester: Add LE Remove Device test case
Johan Hedberg [Wed, 30 Jul 2014 10:44:45 +0000 (13:44 +0300)]
mgmt-tester: Add LE Remove Device test case

10 years agomgmt-tester: Add powered on Remove Device test case
Johan Hedberg [Wed, 30 Jul 2014 10:37:24 +0000 (13:37 +0300)]
mgmt-tester: Add powered on Remove Device test case

10 years agomgmt-tester: Add basic Remove Device success test
Johan Hedberg [Wed, 30 Jul 2014 10:35:30 +0000 (13:35 +0300)]
mgmt-tester: Add basic Remove Device success test

10 years agomgmt-tester: Add basic Remove Device invalid params tests
Johan Hedberg [Wed, 30 Jul 2014 10:31:41 +0000 (13:31 +0300)]
mgmt-tester: Add basic Remove Device invalid params tests

10 years agomgmt-tester: Add connectable off test case with added device
Johan Hedberg [Wed, 30 Jul 2014 10:26:53 +0000 (13:26 +0300)]
mgmt-tester: Add connectable off test case with added device

10 years agoandroid/bluetooth: Fix loading LTKs
Marcin Kraglak [Wed, 30 Jul 2014 09:38:50 +0000 (11:38 +0200)]
android/bluetooth: Fix loading LTKs

10 years agoandroid/gatt: Always connect with BT_SEC_LOW security
Marcin Kraglak [Wed, 30 Jul 2014 09:38:49 +0000 (11:38 +0200)]
android/gatt: Always connect with BT_SEC_LOW security

Set BT_SEC_LOW for all LE connections. Only specific profiles need
higher security, now it is possible to elevate security with public
GATT API.

10 years agoanroid/hidhost: Set security to MEDIUM after connect
Marcin Kraglak [Wed, 30 Jul 2014 09:38:48 +0000 (11:38 +0200)]
anroid/hidhost: Set security to MEDIUM after connect

According to spec connection with HoG device should always be
encrypted.

10 years agoandroid/gatt: Expose API to elevate security level
Marcin Kraglak [Wed, 30 Jul 2014 09:38:47 +0000 (11:38 +0200)]
android/gatt: Expose API to elevate security level

It will allow to change security from external profile,
for example in hog implementation.

10 years agoandroid/gatt: Split set_security() function
Marcin Kraglak [Wed, 30 Jul 2014 09:38:46 +0000 (11:38 +0200)]
android/gatt: Split set_security() function

Split function to set_security() and set_auth_type(). Set_security()
will be used in public API.

10 years agoandroid/avrcp: Fix crash while discovering records
Luiz Augusto von Dentz [Wed, 30 Jul 2014 10:00:03 +0000 (13:00 +0300)]
android/avrcp: Fix crash while discovering records

If the device is removed before SDP discovery is completed the following
crash can happen:

Invalid read of size 4
    at 0x11CA6A: avrcp_device_free (avrcp.c:472)
    by 0x11D70F: search_cb (avrcp.c:944)
    by 0x13749D: search_completed_cb (sdp-client.c:176)
    by 0x134E0F: sdp_process (sdp.c:4345)
    by 0x1374F5: search_process_cb (sdp-client.c:201)
    by 0x48BD9C7: g_io_unix_dispatch (giounix.c:166)
    by 0x48C2CCB: g_main_context_dispatch (gmain.c:2539)
    by 0x48C2ED9: g_main_context_iterate.isra.19 (gmain.c:3146)
    by 0x48C3167: g_main_loop_run (gmain.c:3340)
    by 0x10D00D: main (main.c:538)
Address 0x4bcb904 is 20 bytes inside a block of size 24 free'd
    at 0x4897E6C: free (in /system/lib/valgrind/vgpreload_memcheck-arm-linux.so)
    by 0x48C5E2B: g_free (gmem.c:252)
    by 0x11A52F: bt_a2dp_notify_state (a2dp.c:238)
    by 0x1172C1: process_disconnect (avdtp.c:1005)
    by 0x48C146B: g_list_foreach (gslist.c:840)
    by 0x48CD869: g_slist_free_full (gslist.c:177)
    by 0x117CAB: connection_lost (avdtp.c:1021)
    by 0x11A02F: session_cb (avdtp.c:2081)
    by 0x48BD9C7: g_io_unix_dispatch (giounix.c:166)
    by 0x48C2CCB: g_main_context_dispatch (gmain.c:2539)
    by 0x48C2ED9: g_main_context_iterate.isra.19 (gmain.c:3146)
    by 0x48C3167: g_main_loop_run (gmain.c:3340)

10 years agomgmt-tester: Add powered on LE Add Device success test case
Johan Hedberg [Wed, 30 Jul 2014 10:14:10 +0000 (13:14 +0300)]
mgmt-tester: Add powered on LE Add Device success test case

10 years agomgmt-tester: Add powered on Add Device success test case
Johan Hedberg [Wed, 30 Jul 2014 10:09:02 +0000 (13:09 +0300)]
mgmt-tester: Add powered on Add Device success test case

10 years agomgmt-tester: Fix up Add Device success tests
Johan Hedberg [Wed, 30 Jul 2014 10:04:02 +0000 (13:04 +0300)]
mgmt-tester: Fix up Add Device success tests

10 years agoandroid/tester: Fix memory leak
Ravi kumar Veeramally [Tue, 29 Jul 2014 12:01:25 +0000 (15:01 +0300)]
android/tester: Fix memory leak

Fixes valgrind report.

==26707== HEAP SUMMARY:
==26707==     in use at exit: 4,943 bytes in 41 blocks
==26707==   total heap usage: 25,702 allocs, 25,661 frees, 1,379,978 bytes allocated
==26707==
==26707== 8 bytes in 2 blocks are definitely lost in loss record 6 of 39
==26707==    at 0x4C2AB80: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==26707==    by 0x5089610: g_malloc (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.4000.0)
==26707==    by 0x50A0B57: g_memdup (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.4000.0)
==26707==    by 0x40E57E: create_property (tester-main.c:623)
==26707==    by 0x40F49C: pin_request_cb (tester-main.c:713)
==26707==    by 0x5F70E7A: notification_handler (hal-ipc.c:125)
==26707==    by 0x534B181: start_thread (pthread_create.c:312)
==26707==    by 0x565C30C: clone (clone.S:111)
==26707==
==26707== 12 bytes in 2 blocks are definitely lost in loss record 7 of 39
==26707==    at 0x4C2AB80: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==26707==    by 0x5089610: g_malloc (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.4000.0)
==26707==    by 0x50A0B57: g_memdup (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.4000.0)
==26707==    by 0x40E57E: create_property (tester-main.c:623)
==26707==    by 0x40F467: pin_request_cb (tester-main.c:709)
==26707==    by 0x5F70E7A: notification_handler (hal-ipc.c:125)
==26707==    by 0x534B181: start_thread (pthread_create.c:312)
==26707==    by 0x565C30C: clone (clone.S:111)
==26707==
==26707== LEAK SUMMARY:
==26707==    definitely lost: 20 bytes in 4 blocks
==26707==    indirectly lost: 0 bytes in 0 blocks
==26707==      possibly lost: 0 bytes in 0 blocks
==26707==    still reachable: 4,923 bytes in 37 blocks
==26707==         suppressed: 0 bytes in 0 blocks

10 years agoandroid/tester: Remove controller type from test name
Szymon Janc [Wed, 30 Jul 2014 09:36:30 +0000 (11:36 +0200)]
android/tester: Remove controller type from test name

This was not allowing to run specific group of tests. Also it is
test implementaion detail whenever emulated device is dual or not
and doesn't need to be reported.

10 years agoandroid/tester: Remove old android-tester
Jakub Tyszkowski [Tue, 29 Jul 2014 07:18:32 +0000 (09:18 +0200)]
android/tester: Remove old android-tester

All test cases has already been ported to newer framework.
Old tester was removed and new one now uses its old name.

10 years agoandroid/tester: Remove old HIDHost test cases
Jakub Tyszkowski [Tue, 29 Jul 2014 07:18:31 +0000 (09:18 +0200)]
android/tester: Remove old HIDHost test cases

10 years agoandroid/tester-ng: Add HIDHost send data case
Jakub Tyszkowski [Tue, 29 Jul 2014 07:18:30 +0000 (09:18 +0200)]
android/tester-ng: Add HIDHost send data case

10 years agoandroid/tester-ng: Add HIDHost set report case
Jakub Tyszkowski [Tue, 29 Jul 2014 07:18:29 +0000 (09:18 +0200)]
android/tester-ng: Add HIDHost set report case

10 years agoandroid/tester-ng: Add HIDHost get report case
Jakub Tyszkowski [Tue, 29 Jul 2014 07:18:28 +0000 (09:18 +0200)]
android/tester-ng: Add HIDHost get report case

10 years agoandroid/tester-ng: Add HIDHost set protocol mode case
Jakub Tyszkowski [Tue, 29 Jul 2014 07:18:27 +0000 (09:18 +0200)]
android/tester-ng: Add HIDHost set protocol mode case

10 years agoandroid/tester-ng: Add HIDHost get protocol mode case
Jakub Tyszkowski [Tue, 29 Jul 2014 07:18:26 +0000 (09:18 +0200)]
android/tester-ng: Add HIDHost get protocol mode case

10 years agoandroid/tester-ng: Add HIDHost virtual unplug test case
Jakub Tyszkowski [Tue, 29 Jul 2014 07:18:25 +0000 (09:18 +0200)]
android/tester-ng: Add HIDHost virtual unplug test case

10 years agoandroid/tester-ng: Add HIDHost connect, disconnect cases
Jakub Tyszkowski [Tue, 29 Jul 2014 07:18:24 +0000 (09:18 +0200)]
android/tester-ng: Add HIDHost connect, disconnect cases

10 years agoandroid/pts: RFCOMM PTS update
Sebastian Chlad [Tue, 29 Jul 2014 14:12:18 +0000 (16:12 +0200)]
android/pts: RFCOMM PTS update

Number of issues on PTS 5.2 for RFCOMM found. Problems with Credits
(PTS issue #12421), Channel disconnect (PTS issue #12414), accepting
UIH and UA frames (PTS issue #12397).

10 years agodoc: Update mgmt-tester test count
Johan Hedberg [Wed, 30 Jul 2014 08:38:06 +0000 (11:38 +0300)]
doc: Update mgmt-tester test count

10 years agomgmt-tester: Provide basic Add Device success test cases
Johan Hedberg [Wed, 30 Jul 2014 08:36:50 +0000 (11:36 +0300)]
mgmt-tester: Provide basic Add Device success test cases

10 years agomgmt-tester: Add invalid params tests for Add Device
Johan Hedberg [Wed, 30 Jul 2014 08:27:07 +0000 (11:27 +0300)]
mgmt-tester: Add invalid params tests for Add Device

10 years agomonitor: Rename pairable to bondable
Johan Hedberg [Wed, 30 Jul 2014 07:34:57 +0000 (10:34 +0300)]
monitor: Rename pairable to bondable

10 years agodoc/mgmt-api: Rename pairable to bondable
Johan Hedberg [Wed, 30 Jul 2014 07:33:46 +0000 (10:33 +0300)]
doc/mgmt-api: Rename pairable to bondable

10 years agomgmt: Rename pairable to bondable
Johan Hedberg [Wed, 30 Jul 2014 07:32:16 +0000 (10:32 +0300)]
mgmt: Rename pairable to bondable

10 years agocore: Remove left-over reference to AlwaysPairable
Johan Hedberg [Wed, 30 Jul 2014 07:25:16 +0000 (10:25 +0300)]
core: Remove left-over reference to AlwaysPairable

10 years agocore: Remove always_pairable feature
Johan Hedberg [Wed, 30 Jul 2014 04:53:51 +0000 (07:53 +0300)]
core: Remove always_pairable feature

We've decided to have pairable (soon to be renamed to bondable) always
set after all, so neither the always_pairable variable nor the
AlwaysPairable config option is needed.

10 years agomonitor: Add support for LE Connection Parameter Request event
Marcel Holtmann [Wed, 30 Jul 2014 03:18:44 +0000 (05:18 +0200)]
monitor: Add support for LE Connection Parameter Request event

10 years agomonitor: Add support for LE Connection Parameter Request Reply commands
Marcel Holtmann [Wed, 30 Jul 2014 03:12:37 +0000 (05:12 +0200)]
monitor: Add support for LE Connection Parameter Request Reply commands

10 years agoandroid/pts: Update ScPP tests results with PTS 5.2
Szymon Janc [Tue, 29 Jul 2014 12:37:00 +0000 (14:37 +0200)]
android/pts: Update ScPP tests results with PTS 5.2

10 years agoandroid/pts: Update DIS tests results with PTS 5.2
Szymon Janc [Tue, 29 Jul 2014 10:12:07 +0000 (12:12 +0200)]
android/pts: Update DIS tests results with PTS 5.2

10 years agoandroid: Allow to set required handsfree mode on Linux host
Andrei Emeltchenko [Mon, 28 Jul 2014 11:57:19 +0000 (14:57 +0300)]
android: Allow to set required handsfree mode on Linux host

This is usefull for testing handsfree in non-default configuration.

10 years agoandroid/README: Fix few typos and too long line
Szymon Janc [Tue, 29 Jul 2014 08:37:18 +0000 (10:37 +0200)]
android/README: Fix few typos and too long line

10 years agoandroid/hog: Fix handling UHID_FEATURE as UHID_OUTPUT
Luiz Augusto von Dentz [Mon, 28 Jul 2014 11:39:26 +0000 (14:39 +0300)]
android/hog: Fix handling UHID_FEATURE as UHID_OUTPUT

As with input plugin this code contain the same issue handling
UHID_FEATURE events can cause a crash.

10 years agoinput/hog: Cleanup unnecessary code
Luiz Augusto von Dentz [Mon, 28 Jul 2014 11:39:25 +0000 (14:39 +0300)]
input/hog: Cleanup unnecessary code

The callback register by bt_uhid_register already contains the event type
so there is no need to check for it again.

10 years agodoc: Remove bogus DeviceFound signal reference
Johan Hedberg [Tue, 29 Jul 2014 06:09:13 +0000 (09:09 +0300)]
doc: Remove bogus DeviceFound signal reference

10 years agomgmt-tester: Update expected LE Host Supported command parameters
Johan Hedberg [Mon, 28 Jul 2014 20:01:35 +0000 (23:01 +0300)]
mgmt-tester: Update expected LE Host Supported command parameters

10 years agocore: Default to temporary=true when creating new devices
Johan Hedberg [Mon, 28 Jul 2014 10:54:32 +0000 (13:54 +0300)]
core: Default to temporary=true when creating new devices

Since the code that calls Add Device depends on all devices undergoing a
temporary true -> false transition, start off by having them default to
being temporary. This fixes properly calling Add Device when loading
from storage upon bluetoothd startup.

10 years agotools/btmgmt: Fix grammar for zero items
Johan Hedberg [Mon, 28 Jul 2014 10:24:00 +0000 (13:24 +0300)]
tools/btmgmt: Fix grammar for zero items

10 years agoshared/gatt: Implement notification/indication helper.
Arman Uguray [Fri, 25 Jul 2014 22:08:43 +0000 (15:08 -0700)]
shared/gatt: Implement notification/indication helper.

This patch implements bt_gatt_register, which sets up internal callbacks for
incoming notifications and indications, parses the PDU and provides it to the
upper layer. It also automatically sends out a confirmation when an indication
is received.

10 years agoshared/gatt: Implement "Write Long Values" procedure.
Arman Uguray [Fri, 25 Jul 2014 22:08:42 +0000 (15:08 -0700)]
shared/gatt: Implement "Write Long Values" procedure.

This patch implements bt_gatt_write_long_value.

10 years agoshared/gatt: Implement "Write Value" and "Write Without Response" procedures.
Arman Uguray [Fri, 25 Jul 2014 22:08:41 +0000 (15:08 -0700)]
shared/gatt: Implement "Write Value" and "Write Without Response" procedures.

This patch implements the bt_gatt_write_without_response and bt_gatt_write_value
functions.

10 years agoshared/gatt: Implement "Read Long Characteristic Values" procedure.
Arman Uguray [Fri, 25 Jul 2014 22:08:40 +0000 (15:08 -0700)]
shared/gatt: Implement "Read Long Characteristic Values" procedure.

This patch implements bt_gatt_read_long_value.

10 years agoshared/gatt: Implement "Read" procedure.
Arman Uguray [Fri, 25 Jul 2014 22:08:39 +0000 (15:08 -0700)]
shared/gatt: Implement "Read" procedure.

This patch implements bt_gatt_read_value, which can be used to read the value of
a characteristic or descriptor.

10 years agoshared/gatt: Implement "Descriptor Discovery" procedure.
Arman Uguray [Fri, 25 Jul 2014 22:08:38 +0000 (15:08 -0700)]
shared/gatt: Implement "Descriptor Discovery" procedure.

This patch implements bt_gatt_discover_descriptors.

10 years agoshared/gatt: Implement "Characteristic Discovery" procedures.
Arman Uguray [Fri, 25 Jul 2014 22:08:37 +0000 (15:08 -0700)]
shared/gatt: Implement "Characteristic Discovery" procedures.

This patch implements bt_gatt_discover_characteristics, which can perform the
characteristic discovery procedures "Discover All Characteristics of a Service"
and "Discover Characteristics by UUID".

10 years agoshared/gatt: Implement "Discover Primary Service by UUID" procedure.
Arman Uguray [Fri, 25 Jul 2014 22:08:36 +0000 (15:08 -0700)]
shared/gatt: Implement "Discover Primary Service by UUID" procedure.

This patch implements bt_gatt_discover_primary_services for the case when a UUID
is provided.

10 years agoshared/gatt: Implement "Discover All Primary Services" procedure.
Arman Uguray [Fri, 25 Jul 2014 22:08:35 +0000 (15:08 -0700)]
shared/gatt: Implement "Discover All Primary Services" procedure.

This patch implements bt_gatt_discover_primary_services for the case when no
UUID is provided.

10 years agoshared/gatt: Implement bt_gatt_exchange_mtu.
Arman Uguray [Fri, 25 Jul 2014 22:08:34 +0000 (15:08 -0700)]
shared/gatt: Implement bt_gatt_exchange_mtu.

This patch implements the helper function bt_gatt_exchange_mtu, which performs
an ATT "Exchange MTU" request and resizes the internal buffer based on the
result.

10 years agoshared/gatt: Introduce gatt-helpers.h skeleton.
Arman Uguray [Fri, 25 Jul 2014 22:08:33 +0000 (15:08 -0700)]
shared/gatt: Introduce gatt-helpers.h skeleton.

This patch introduces the skeleton for src/shared/gatt-helpers, which defines
helper functions for over-the-air GATT client-side procedures that will be
frequently used by clients. Most of these functions require several sequential
ATT protocol requests and it is useful to abstract these details away from the
upper layer.

10 years agoandroid/cts: Update test results for CTS 4.4 R3
Szymon Janc [Fri, 25 Jul 2014 11:10:42 +0000 (13:10 +0200)]
android/cts: Update test results for CTS 4.4 R3

10 years agoandroid/pts: Regression tests on SM against PTS 5.2
Sebastian Chlad [Fri, 25 Jul 2014 11:01:16 +0000 (13:01 +0200)]
android/pts: Regression tests on SM against PTS 5.2

10 years agoandroid/tester-ng: Fix not freeing porperties value
Jakub Tyszkowski [Fri, 25 Jul 2014 11:32:17 +0000 (13:32 +0200)]
android/tester-ng: Fix not freeing porperties value

This fixes 3 valgrind reports like:

8 bytes in 2 blocks are definitely lost in loss record 7 of 47
==8437==    at 0x4C2AB80: malloc (in
/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==8437==    by 0x5089610: g_malloc (in
/lib/x86_64-linux-gnu/libglib-2.0.so.0.4000.0)
==8437==    by 0x50A0B57: g_memdup (in
/lib/x86_64-linux-gnu/libglib-2.0.so.0.4000.0)
==8437==    by 0x40E94E: create_property (tester-main.c:623)
==8437==    by 0x40F96C: ssp_request_cb (tester-main.c:741)
==8437==    by 0x5F70E5A: notification_handler (hal-ipc.c:125)
==8437==    by 0x534B181: start_thread (pthread_create.c:312)
==8437==    by 0x565C30C: clone (clone.S:111)

10 years agoandroid/tester-ng: Remove not needed include
Jakub Tyszkowski [Fri, 25 Jul 2014 11:32:16 +0000 (13:32 +0200)]
android/tester-ng: Remove not needed include

10 years agoandroid/tester-ng: Fix not initializing step
Jakub Tyszkowski [Fri, 25 Jul 2014 11:32:15 +0000 (13:32 +0200)]
android/tester-ng: Fix not initializing step

This fixes the following vagrind report:

==12708== 4 errors in context 1 of 1:
==12708== Conditional jump or move depends on uninitialised value(s)
==12708==    at 0x40E359: verify_step (tester-main.c:416)
==12708==    by 0x40E5FD: verify_action (tester-main.c:540)
==12708==    by 0x5083CE4: g_main_context_dispatch (in
/lib/x86_64-linux-gnu/libglib-2.0.so.0.4000.0)
==12708==    by 0x5084047: ??? (in
/lib/x86_64-linux-gnu/libglib-2.0.so.0.4000.0)
==12708==    by 0x5084309: g_main_loop_run (in
/lib/x86_64-linux-gnu/libglib-2.0.so.0.4000.0)
==12708==    by 0x40D51C: tester_run (tester.c:812)
==12708==    by 0x40251E: main (tester-main.c:1496)

10 years agoandroid/tester-ng: Fix structure members constness
Jakub Tyszkowski [Fri, 25 Jul 2014 11:32:14 +0000 (13:32 +0200)]
android/tester-ng: Fix structure members constness

It's better to know what actually may change by looking at the structure
definitions. Some api calls can modify their parameters (returning file
descriptor in socket HAL API) but most of them don't.

This patch mostly applies to action_data and test_case structs that defines
the actual test case.

10 years agoandroid/tester-ng: Fix treating callback as action step
Jakub Tyszkowski [Fri, 25 Jul 2014 11:32:13 +0000 (13:32 +0200)]
android/tester-ng: Fix treating callback as action step

Next action step might pass before the action was even called. This was
possible when not expected callback came. This patch forces check for
callback also on the incomming step and not only on the expected one.

10 years agomonitor: Print proper LE supported state combination
Marcel Holtmann [Fri, 25 Jul 2014 01:37:52 +0000 (03:37 +0200)]
monitor: Print proper LE supported state combination

10 years agoinput: Remove broken UHID_FEATURE support
Johan Hedberg [Thu, 24 Jul 2014 15:26:28 +0000 (18:26 +0300)]
input: Remove broken UHID_FEATURE support

The forward_report function currently assumes that all events it gets
are of UHID_OUTPUT type. Simply remove trying to use it for anything
else until we have a proper patch for UHID_FEATURE handling.

10 years agoandroid/tester: Remove old socket HAL test cases
Jakub Tyszkowski [Thu, 24 Jul 2014 08:38:07 +0000 (10:38 +0200)]
android/tester: Remove old socket HAL test cases

These were already ported to the new testing framework.

10 years agoandroid/tester-ng: Add socket connect success cases
Jakub Tyszkowski [Thu, 24 Jul 2014 08:38:06 +0000 (10:38 +0200)]
android/tester-ng: Add socket connect success cases

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.

10 years agoandroid/tester-ng: Fix trying to verify late callbacks
Jakub Tyszkowski [Thu, 24 Jul 2014 08:38:05 +0000 (10:38 +0200)]
android/tester-ng: Fix trying to verify late callbacks

Dont even try to verify late callbacks when test case already ended.
This was triggering confusing message about verifying step N+1 when we
have only N steps in current case.

10 years agoandroid/tester-ng: Set scan enable for dual mode devices
Jakub Tyszkowski [Thu, 24 Jul 2014 08:38:04 +0000 (10:38 +0200)]
android/tester-ng: Set scan enable for dual mode devices

This is needed for socket HAL connect test cases.

10 years agoandroid/tester-ng: Add various socket connect fail cases
Jakub Tyszkowski [Thu, 24 Jul 2014 08:38:03 +0000 (10:38 +0200)]
android/tester-ng: Add various socket connect fail cases

Thiose test verifies socket porofile behaviour in case of invalid
parameters passed to 'connect' command.

10 years agoandroid/tester-ng: Add socket double listen fail case
Jakub Tyszkowski [Thu, 24 Jul 2014 08:38:02 +0000 (10:38 +0200)]
android/tester-ng: Add socket double listen fail case

10 years agoandroid/tester-ng: Add socket listen - close than listen case
Jakub Tyszkowski [Thu, 24 Jul 2014 08:38:01 +0000 (10:38 +0200)]
android/tester-ng: Add socket listen - close than listen case

This checks for another successfull listen after closing previous fd.

10 years agoandroid/tester-ng: Add socket listen - verify channel case
Jakub Tyszkowski [Thu, 24 Jul 2014 08:38:00 +0000 (10:38 +0200)]
android/tester-ng: Add socket listen - verify channel case

10 years agoandroid/tester-ng: Add socket listen - verify fd case
Jakub Tyszkowski [Thu, 24 Jul 2014 08:37:59 +0000 (10:37 +0200)]
android/tester-ng: Add socket listen - verify fd case

10 years agoandroid/tester-ng: Add socket listen - invalid channel case
Jakub Tyszkowski [Thu, 24 Jul 2014 08:37:58 +0000 (10:37 +0200)]
android/tester-ng: Add socket listen - invalid channel case

10 years agoandroid/tester-ng: Add socket listen - invalid param cases
Jakub Tyszkowski [Thu, 24 Jul 2014 08:37:57 +0000 (10:37 +0200)]
android/tester-ng: Add socket listen - invalid param cases

10 years agoandroid/tester-ng: Expose action step verification function
Jakub Tyszkowski [Thu, 24 Jul 2014 08:37:56 +0000 (10:37 +0200)]
android/tester-ng: Expose action step verification function

This is needed for profile specific testers to define step actions
(and verify their results) in their own file and not in tester-main.c
where only core actions, needed by all other testers should be defined.

10 years agoandroid/tester-ng: Make action calls non recurent
Jakub Tyszkowski [Thu, 24 Jul 2014 08:37:55 +0000 (10:37 +0200)]
android/tester-ng: Make action calls non recurent

All action steps steps were called recurently if not interleaved with
callbacks steps in test case definition. This could block any potential
callback that was not expected to come, as mainloop was stuck. This could
raise potential stability issues and timeouts when working with file
descriptors and io channels handled in the main loop.

10 years agodoc: Update Android tests coverage
Jakub Tyszkowski [Thu, 24 Jul 2014 08:37:54 +0000 (10:37 +0200)]
doc: Update Android tests coverage

One test case was not ported to new tester framework as it was
considered invalid.

10 years agoandroid/doc: Add Audio SCO HAL documentation
Andrei Emeltchenko [Wed, 23 Jul 2014 11:35:01 +0000 (14:35 +0300)]
android/doc: Add Audio SCO HAL documentation

10 years agoandroid/client: Check stream before standby() call
Andrei Emeltchenko [Wed, 23 Jul 2014 11:35:00 +0000 (14:35 +0300)]
android/client: Check stream before standby() call

Rearrange stop sequence. Fixes following issue:
...
Program received signal SIGSEGV, Segmentation fault.
0x00000000004105b8 in stop_p (argc=<optimized out>, argv=<optimized
out>) at android/client/if-sco.c:483
483 stream_out->common.standby(&stream_out->common);
(gdb) bt
out>) at android/client/if-sco.c:483
...

f stop

10 years agoandroid/client: Fix crash reading not connected SCO
Andrei Emeltchenko [Wed, 23 Jul 2014 11:34:59 +0000 (14:34 +0300)]
android/client: Fix crash reading not connected SCO

When SCO is not connected we get -1 from in_read() HAL function.

10 years agoandroid/client: Fix double close issue
Andrei Emeltchenko [Wed, 23 Jul 2014 11:34:58 +0000 (14:34 +0300)]
android/client: Fix double close issue

File is closed inside reading thread. Fixes:
...
Error in
`.../bluez/android/haltest':
double free or corruption (!prev): 0x000000000065a5e0 ***

Program received signal SIGABRT, Aborted.
...

10 years agoandroid/pts: Add initial PTS files for AVDTP
Sebastian Chlad [Wed, 23 Jul 2014 10:19:43 +0000 (12:19 +0200)]
android/pts: Add initial PTS files for AVDTP

10 years agoandroid/pts: Update PTS results for GATT
Marcin Kraglak [Wed, 23 Jul 2014 09:22:25 +0000 (11:22 +0200)]
android/pts: Update PTS results for GATT

10 years agoandroid/pts: Update PICS for GATT
Marcin Kraglak [Wed, 23 Jul 2014 09:22:24 +0000 (11:22 +0200)]
android/pts: Update PICS for GATT

10 years agoandroid/pts: Update PTS tests for SPP
Sebastian Chlad [Wed, 23 Jul 2014 07:17:56 +0000 (09:17 +0200)]
android/pts: Update PTS tests for SPP

10 years agoandroid/pts: Update PTS files for HOGP
Grzegorz Kolodziejczyk [Tue, 22 Jul 2014 14:08:57 +0000 (16:08 +0200)]
android/pts: Update PTS files for HOGP

PICS and PIXITs updated to PTS 5.2. Regression done for Android
4.4.4.

10 years agodoc: Fix minor typo with Cancel Pair Device command
Marcel Holtmann [Wed, 23 Jul 2014 22:52:30 +0000 (00:52 +0200)]
doc: Fix minor typo with Cancel Pair Device command

10 years agodoc: Fix minor typo with Pair Device command
Marcel Holtmann [Wed, 23 Jul 2014 22:48:16 +0000 (00:48 +0200)]
doc: Fix minor typo with Pair Device command

10 years agodoc: Add more notes of management version 1.4 changes
Marcel Holtmann [Wed, 23 Jul 2014 20:37:28 +0000 (22:37 +0200)]
doc: Add more notes of management version 1.4 changes

10 years agocore: Allow auto-connection only for LE devices and use action 2
Marcel Holtmann [Wed, 23 Jul 2014 20:13:48 +0000 (22:13 +0200)]
core: Allow auto-connection only for LE devices and use action 2

10 years agodoc: Mention the action 2 parameter for Add Device command
Marcel Holtmann [Wed, 23 Jul 2014 20:04:42 +0000 (22:04 +0200)]
doc: Mention the action 2 parameter for Add Device command

10 years agoemulator: Add support for Get MWS Transport Layer Configuration
Marcel Holtmann [Wed, 23 Jul 2014 17:25:42 +0000 (19:25 +0200)]
emulator: Add support for Get MWS Transport Layer Configuration

10 years agoemulator: Add support for Read Local Supported Codecs command
Marcel Holtmann [Wed, 23 Jul 2014 17:00:50 +0000 (19:00 +0200)]
emulator: Add support for Read Local Supported Codecs command

10 years agodoc: Update sections affecting Add Device and Remove Device commands
Marcel Holtmann [Wed, 23 Jul 2014 16:48:49 +0000 (18:48 +0200)]
doc: Update sections affecting Add Device and Remove Device commands

10 years agomonitor: Add support for decoding Get MWS Transport Layer Configuration
Marcel Holtmann [Wed, 23 Jul 2014 14:01:22 +0000 (16:01 +0200)]
monitor: Add support for decoding Get MWS Transport Layer Configuration

10 years agomonitor: Fix minium size for for Read Local Supported Codecs response
Marcel Holtmann [Wed, 23 Jul 2014 13:22:30 +0000 (15:22 +0200)]
monitor: Fix minium size for for Read Local Supported Codecs response