OSDN Git Service

android-x86/external-bluetooth-bluez.git
10 years agoandroid/tester: Test that connect call returns channel number
Andrei Emeltchenko [Thu, 19 Dec 2013 08:49:20 +0000 (10:49 +0200)]
android/tester: Test that connect call returns channel number

The test connects to emulated bthost and read channel number

10 years agoandroid/socket: Connect directly to RFCOMM channel if uuid is zero
Andrei Emeltchenko [Thu, 19 Dec 2013 08:49:19 +0000 (10:49 +0200)]
android/socket: Connect directly to RFCOMM channel if uuid is zero

Check uuid and connect to specified RFCOMM channel directly if uuid is
zeroed.

10 years agoandroid/socket: Refactor connect to allow directly connect to rfcomm
Andrei Emeltchenko [Thu, 19 Dec 2013 08:49:18 +0000 (10:49 +0200)]
android/socket: Refactor connect to allow directly connect to rfcomm

Since Socket HAL allows us to specify RFCOMM channel number and directly
connect refactor send function to allow connect directly is uuid is zero
and channel number is specified.

10 years agoandroid/pan: Change local_role to NONE only when device list is empty
Ravi kumar Veeramally [Wed, 18 Dec 2013 14:53:11 +0000 (16:53 +0200)]
android/pan: Change local_role to NONE only when device list is empty

10 years agoandroid/pan: Free device after sending diconnected notification
Ravi kumar Veeramally [Wed, 18 Dec 2013 14:53:10 +0000 (16:53 +0200)]
android/pan: Free device after sending diconnected notification

10 years agoandroid/AVDTP: Fix not removing start_timer source
Luiz Augusto von Dentz [Wed, 18 Dec 2013 12:29:43 +0000 (14:29 +0200)]
android/AVDTP: Fix not removing start_timer source

It is possible that stream->start_timer can be set on stream_free which
should then should take care of remove it properly otherwise it can
trigger which would very likely cause a crash.

Thanks to Hannu Mallat <hannu.mallat@jolla.com> for reporting it.

10 years agoandroid/tester: Add bluetooth HAL test case - name prefix
Grzegorz Kolodziejczyk [Wed, 18 Dec 2013 11:54:37 +0000 (12:54 +0100)]
android/tester: Add bluetooth HAL test case - name prefix

This add prefix for bluetooth HAL test case names. Bluetooth HAL test
cases now can be easily distinguished. Now Bluetooth HAL test cases
can be run separately.

10 years agoandroid/tester: Move Bluetooth HAL functions before socket HAL
Grzegorz Kolodziejczyk [Wed, 18 Dec 2013 11:54:36 +0000 (12:54 +0100)]
android/tester: Move Bluetooth HAL functions before socket HAL

This patch move bluetooth HAL test functions before socket
HAL functions. This make it more readable for future test cases growth.

10 years agoandroid/tester: Fix expected_property_len value for bdname test
Johan Hedberg [Wed, 18 Dec 2013 10:39:01 +0000 (12:39 +0200)]
android/tester: Fix expected_property_len value for bdname test

10 years agoandroid/tester: Fix whitespace wrt braces
Johan Hedberg [Wed, 18 Dec 2013 10:32:01 +0000 (12:32 +0200)]
android/tester: Fix whitespace wrt braces

10 years agoandroid/tester: Enable bthost after device is enabled
Andrei Emeltchenko [Wed, 18 Dec 2013 08:55:13 +0000 (10:55 +0200)]
android/tester: Enable bthost after device is enabled

This puts bthost to connectible mode allowing us to use powered setup
for connect to emulated device.

10 years agoandroid/tester: Check return status for enable()
Andrei Emeltchenko [Wed, 18 Dec 2013 08:55:12 +0000 (10:55 +0200)]
android/tester: Check return status for enable()

Use check_expected_status helper for test for returned status in
enable() HAL call.

10 years agoandroid/tester: Check status returned from HAL calls
Andrei Emeltchenko [Wed, 18 Dec 2013 08:55:11 +0000 (10:55 +0200)]
android/tester: Check status returned from HAL calls

In test setup phase check status returned from  enable() call.

10 years agoandroid/tester: Add SERVICE_RECORD set prop fail test case
Grzegorz Kolodziejczyk [Wed, 18 Dec 2013 09:53:13 +0000 (10:53 +0100)]
android/tester: Add SERVICE_RECORD set prop fail test case

This adds SERVICE_RECORD set property fail test case due to only
get possibility.

10 years agoandroid/tester: Add RSSI set prop fail test case
Grzegorz Kolodziejczyk [Wed, 18 Dec 2013 09:53:12 +0000 (10:53 +0100)]
android/tester: Add RSSI set prop fail test case

This adds RSSI set property fail test case due to be only remote device
property.

10 years agoandroid/tester: Add TOD set prop fail test case
Grzegorz Kolodziejczyk [Wed, 18 Dec 2013 09:53:11 +0000 (10:53 +0100)]
android/tester: Add TOD set prop fail test case

This adds TYPE_OF_DEVICE set property fail test case due to only
get possibility.

10 years agoandroid/tester: Add COD set prop fail test case
Grzegorz Kolodziejczyk [Wed, 18 Dec 2013 09:53:10 +0000 (10:53 +0100)]
android/tester: Add COD set prop fail test case

This adds CLASS_OF_DEVICE set property fail test case due to only
get possibility.

10 years agoandroid/tester: Add UUIDS set prop fail test case
Grzegorz Kolodziejczyk [Wed, 18 Dec 2013 09:53:09 +0000 (10:53 +0100)]
android/tester: Add UUIDS set prop fail test case

This adds UUIDS set property fail test case due to only get
possibility.

10 years agounit/AVDTP: Add /TP/SIG/FRA/BV-02-C test
Luiz Augusto von Dentz [Tue, 17 Dec 2013 16:05:50 +0000 (18:05 +0200)]
unit/AVDTP: Add /TP/SIG/FRA/BV-02-C test

Verify ithat the IUT (SNK) is able to receive streaming media data on an
established stream.

10 years agounit/AVDTP: Add /TP/SIG/FRA/BV-01-C test
Luiz Augusto von Dentz [Tue, 17 Dec 2013 15:26:16 +0000 (17:26 +0200)]
unit/AVDTP: Add /TP/SIG/FRA/BV-01-C test

Verify that the IUT (INT and ACP) fragments the signaling messages that
cannot fit in a single L2CAP packet.

10 years agoandroid/tester: Fix not returning in failure
Andrei Emeltchenko [Tue, 17 Dec 2013 14:17:33 +0000 (16:17 +0200)]
android/tester: Fix not returning in failure

10 years agobluetooth/hidhost: Fix using feature event as output event
Szymon Janc [Mon, 16 Dec 2013 14:37:31 +0000 (15:37 +0100)]
bluetooth/hidhost: Fix using feature event as output event

Rename handle_uhid_event to handle_uhid_output and make it handle only
output events.

10 years agoandroid/tester: Check adapter cb irrespective of receiving order
Grzegorz Kolodziejczyk [Tue, 17 Dec 2013 12:37:49 +0000 (13:37 +0100)]
android/tester: Check adapter cb irrespective of receiving order

This patch change checking of expected callbacks from static order to
dynamic. For example properties can be received in different order
than now.

10 years agoandroid/tester: Fix enum and define coding style
Grzegorz Kolodziejczyk [Tue, 17 Dec 2013 12:37:48 +0000 (13:37 +0100)]
android/tester: Fix enum and define coding style

This changes all enums values and defines to uppercase instead of
lowercase according to coding style.

10 years agoandroid/pts: Add PTS test results for MAP
Jakub Tyszkowski [Tue, 17 Dec 2013 10:53:53 +0000 (11:53 +0100)]
android/pts: Add PTS test results for MAP

Stock Bluedroid PTS results.

10 years agoandroid/pts: Add PTS PICS and PIXIT for MAP
Jakub Tyszkowski [Tue, 17 Dec 2013 10:53:52 +0000 (11:53 +0100)]
android/pts: Add PTS PICS and PIXIT for MAP

Add PICS and PIXIT targetting Android 4.4 and PTS version 5.0.

10 years agotools/smp-tester: Prefer tester_warn() over fprintf
Johan Hedberg [Tue, 17 Dec 2013 11:00:16 +0000 (13:00 +0200)]
tools/smp-tester: Prefer tester_warn() over fprintf

10 years agoandroid/tester: Add missing break
Andrei Emeltchenko [Mon, 16 Dec 2013 14:52:47 +0000 (16:52 +0200)]
android/tester: Add missing break

10 years agoandroid/audio: Add audio-hal initial skeleton
Lukasz Rymanowski [Thu, 5 Dec 2013 13:59:54 +0000 (14:59 +0100)]
android/audio: Add audio-hal initial skeleton

This patch adds audio module for A2DP.
Also adds empty callbacks for stream_out, stream_in and hw_device
methods.

10 years agoandroid/audio: Add kitkat audio headers
Lukasz Rymanowski [Thu, 5 Dec 2013 13:59:53 +0000 (14:59 +0100)]
android/audio: Add kitkat audio headers

This patch add audio headers required to implement A2DP audio module

Note that from all of these files #include <cutils/bitops.h> has been
removed. The only function used from this include is popcount() and it
is used in system/audio.h. Instead of this function we can use GCC
builtin function __builtin_popcount() which does what is needed.

10 years agoandroid: Add initial Android Bluetooth Audio protocol API doc
Luiz Augusto von Dentz [Fri, 13 Dec 2013 12:26:11 +0000 (14:26 +0200)]
android: Add initial Android Bluetooth Audio protocol API doc

This IPC is used to communicate Android BlueZ daemon and AudioFlinger
plugin.

10 years agohciemu: Print error in case hci_vhci is not loaded
Andrei Emeltchenko [Mon, 16 Dec 2013 08:57:42 +0000 (10:57 +0200)]
hciemu: Print error in case hci_vhci is not loaded

Error message should indicate that module is not loaded:
Opening /dev/vhci failed: No such file or directory

10 years agohciemu: Make code consistent
Andrei Emeltchenko [Mon, 16 Dec 2013 08:57:40 +0000 (10:57 +0200)]
hciemu: Make code consistent

It is enough to check for zero in __sync_sub_and_fetch(). This  makes
code consistent like shown below:

./src/shared/mgmt.c:    if (__sync_sub_and_fetch(&mgmt->ref_count, 1))
./src/shared/pcap.c:    if (__sync_sub_and_fetch(&pcap->ref_count, 1))
./src/shared/btsnoop.c: if (__sync_sub_and_fetch(&btsnoop->ref_count, 1))
./src/shared/hciemu.c:  if (__sync_sub_and_fetch(&hciemu->ref_count, 1))

10 years agobtmgmt: Remove unneeded code
Andrei Emeltchenko [Mon, 16 Dec 2013 08:57:38 +0000 (10:57 +0200)]
btmgmt: Remove unneeded code

10 years agoandroid/tester: Add Socket test invalid bdaddr
Andrei Emeltchenko [Mon, 16 Dec 2013 08:38:57 +0000 (10:38 +0200)]
android/tester: Add Socket test invalid bdaddr

Test for zero bluetooth address in connect().

10 years agoandroid/tester: Add Socket test invalid chan and uuid
Andrei Emeltchenko [Mon, 16 Dec 2013 08:38:56 +0000 (10:38 +0200)]
android/tester: Add Socket test invalid chan and uuid

At least one of parameters: channel or uuid shouldn't be zero.

10 years agoandroid/tester: Add Socket test read channel number after listen
Andrei Emeltchenko [Mon, 16 Dec 2013 08:38:55 +0000 (10:38 +0200)]
android/tester: Add Socket test read channel number after listen

After listen() call Bluedroid sends channel number as (int) through file
descriptor.

10 years agoandroid/tester: Fix syntax of test cases
Andrei Emeltchenko [Mon, 16 Dec 2013 08:03:25 +0000 (10:03 +0200)]
android/tester: Fix syntax of test cases

Remove "Test" from every test message print and correct typo.

10 years agoemulator/bthost: Fix use after free in bthost_destroy
Szymon Janc [Sun, 15 Dec 2013 19:55:48 +0000 (20:55 +0100)]
emulator/bthost: Fix use after free in bthost_destroy

cmd was dereferenced after free. Use temp pointer for freeing.

10 years agobuild: Add missing test scripts to Makefile.tools
Sebastian Chlad [Sun, 15 Dec 2013 11:47:49 +0000 (12:47 +0100)]
build: Add missing test scripts to Makefile.tools

10 years agoandroid/bluetooth: Add support for getting remote device UUIDs property
Szymon Janc [Fri, 13 Dec 2013 14:20:41 +0000 (15:20 +0100)]
android/bluetooth: Add support for getting remote device UUIDs property

This allows to query for remote device UUIDs property.

10 years agoandroid/tester: Add bdname get prop success test case
Grzegorz Kolodziejczyk [Fri, 13 Dec 2013 12:44:25 +0000 (13:44 +0100)]
android/tester: Add bdname get prop success test case

This adds bdname set property success test case. First bdname is set and
then is read.

10 years agoandroid/tester: Add bdaddr get prop success test case
Grzegorz Kolodziejczyk [Fri, 13 Dec 2013 12:44:24 +0000 (13:44 +0100)]
android/tester: Add bdaddr get prop success test case

This adds bdaddr set property success test case.

10 years agoandroid/tester: Add discovery timeout set prop success test case
Grzegorz Kolodziejczyk [Fri, 13 Dec 2013 12:44:23 +0000 (13:44 +0100)]
android/tester: Add discovery timeout set prop success test case

This adds discovery timeout set property success test case.

10 years agoandroid/tester: Add scan mode set prop success test case
Grzegorz Kolodziejczyk [Fri, 13 Dec 2013 12:44:22 +0000 (13:44 +0100)]
android/tester: Add scan mode set prop success test case

This adds scan mode set property success test case.

10 years agoandroid/tester: Add property check and bdname set success test case
Grzegorz Kolodziejczyk [Fri, 13 Dec 2013 12:44:21 +0000 (13:44 +0100)]
android/tester: Add property check and bdname set success test case

This adds handling of property check, bdname set property success.

10 years agoandroid/bluetooth: Fix missing property change notification
Szymon Janc [Fri, 13 Dec 2013 12:38:11 +0000 (13:38 +0100)]
android/bluetooth: Fix missing property change notification

After setting new discoverable timeout property change notification
with new value should be send.

10 years agoandroid/hal-sock: Fix returning incorrect error code
Andrei Emeltchenko [Thu, 12 Dec 2013 15:17:54 +0000 (17:17 +0200)]
android/hal-sock: Fix returning incorrect error code

For socket type 0 we shall return BT_STATUS_PARM_INVALID.

10 years agoandroid/tester: Add Socket test connect invalid sock_type L2CAP
Andrei Emeltchenko [Thu, 12 Dec 2013 15:17:53 +0000 (17:17 +0200)]
android/tester: Add Socket test connect invalid sock_type L2CAP

10 years agoandroid/tester: Add Socket test connect() invalid sock_type
Andrei Emeltchenko [Thu, 12 Dec 2013 15:17:52 +0000 (17:17 +0200)]
android/tester: Add Socket test connect() invalid sock_type

10 years agoandroid/socket: Do not close fd on unref
Andrei Emeltchenko [Thu, 12 Dec 2013 15:17:51 +0000 (17:17 +0200)]
android/socket: Do not close fd on unref

We close file descriptors in cleanup_rfsock() and leaving the default
value gives us glib warnings if we close fd already and got G_IO_NVAL in
server_cb from bt_io.

10 years agoandroid/tester: Add Socket test success with valid fd
Andrei Emeltchenko [Thu, 12 Dec 2013 15:17:50 +0000 (17:17 +0200)]
android/tester: Add Socket test success with valid fd

Check that Socket listen() returns valid file descriptor

10 years agoandroid/tester: trivial: Make test cases prints look nice
Andrei Emeltchenko [Thu, 12 Dec 2013 15:17:49 +0000 (17:17 +0200)]
android/tester: trivial: Make test cases prints look nice

10 years agoandroid/tester: Check that fd is valid for Success case
Andrei Emeltchenko [Thu, 12 Dec 2013 15:17:48 +0000 (17:17 +0200)]
android/tester: Check that fd is valid for Success case

For the successful test case check that file descriptor is valid through
fcntl which is cheap way.

10 years agoandroid/tester: Add Socket test invalid params: chan and uuid
Andrei Emeltchenko [Thu, 12 Dec 2013 15:17:47 +0000 (17:17 +0200)]
android/tester: Add Socket test invalid params: chan and uuid

For the socket listen() call parameters channel and uuid cannot be both
zeroes.

10 years agobtiotest: Add missing source type to bt_io_connect calls
Johan Hedberg [Fri, 13 Dec 2013 10:28:18 +0000 (12:28 +0200)]
btiotest: Add missing source type to bt_io_connect calls

10 years agobtio: Update to support sockopts for LE CoC sockets
Johan Hedberg [Fri, 13 Dec 2013 10:19:25 +0000 (12:19 +0200)]
btio: Update to support sockopts for LE CoC sockets

10 years agosixaxis: Fix device detection
Bastien Nocera [Thu, 12 Dec 2013 16:16:28 +0000 (17:16 +0100)]
sixaxis: Fix device detection

After searching past the end of the structure, the loop sometimes
found matches in the daemon's address space...

This fixes the loop to end after the elements have been exhausted.

10 years agoandroid/pts: Add PTS test results for PBAP
Szymon Janc [Thu, 12 Dec 2013 15:38:57 +0000 (16:38 +0100)]
android/pts: Add PTS test results for PBAP

This will allow for better tracking of current state of implementation.

10 years agoandroid/pts: Add PTS test results for OPP
Szymon Janc [Thu, 12 Dec 2013 15:38:56 +0000 (16:38 +0100)]
android/pts: Add PTS test results for OPP

This will allow for better tracking of current state of implementation.

10 years agoandroid/pts: Add PTS test results for HID
Szymon Janc [Thu, 12 Dec 2013 13:35:40 +0000 (14:35 +0100)]
android/pts: Add PTS test results for HID

This will allow for better tracking of current state of implementation.

10 years agoandroid/pts: Add PTS test results for GAP
Szymon Janc [Thu, 12 Dec 2013 13:35:39 +0000 (14:35 +0100)]
android/pts: Add PTS test results for GAP

This will allow for better tracking of current state of implementation.

10 years agoandroid/tester: Fix failing tests
Luiz Augusto von Dentz [Fri, 13 Dec 2013 08:38:34 +0000 (10:38 +0200)]
android/tester: Fix failing tests

Two new adapter properties were indroduced in the daemon which broke
some tests.

10 years agoandroid/tester: Add Socket listen() invalid L2CAP socket type
Andrei Emeltchenko [Thu, 12 Dec 2013 12:48:34 +0000 (14:48 +0200)]
android/tester: Add Socket listen() invalid L2CAP socket type

Check that we get BT_STATUS_UNSUPPORTED for socket type BTSOCK_L2CAP.

10 years agoandroid/hal-sock: Fix returning unsupported instead of invalid
Andrei Emeltchenko [Thu, 12 Dec 2013 12:48:33 +0000 (14:48 +0200)]
android/hal-sock: Fix returning unsupported instead of invalid

For socket type 0 we shall return BT_STATUS_PARM_INVALID,
BT_STATUS_UNSUPPORTED shall be returned for unsupported socket types
like L2CAP.

10 years agoandroid/tester: Add Socket listen() invalid sock type
Andrei Emeltchenko [Thu, 12 Dec 2013 12:48:32 +0000 (14:48 +0200)]
android/tester: Add Socket listen() invalid sock type

Test invalid socket type during listen()

10 years agoandroid/tester: Add Socket data to generic test data struct
Andrei Emeltchenko [Thu, 12 Dec 2013 12:48:31 +0000 (14:48 +0200)]
android/tester: Add Socket data to generic test data struct

Socket data will be used in generic Socket HAL tests

10 years agoandroid/tester: Add basic Socket Init test
Andrei Emeltchenko [Thu, 12 Dec 2013 12:48:30 +0000 (14:48 +0200)]
android/tester: Add basic Socket Init test

Test get_socket_interface() and basic setup

10 years agoandroid/tester: Make generic_data structure const void pointer
Andrei Emeltchenko [Thu, 12 Dec 2013 12:48:29 +0000 (14:48 +0200)]
android/tester: Make generic_data structure const void pointer

This allows us to have different types of generic data, like socket
data, bluetooth data, etc.

10 years agoandroid/tester: Rename controller_setup to test_dummy
Andrei Emeltchenko [Thu, 12 Dec 2013 12:48:28 +0000 (14:48 +0200)]
android/tester: Rename controller_setup to test_dummy

test_dummy is a better name for dummy function test.

10 years agoandroid/pts: Add PTS PIXIT for PBAP
Szymon Janc [Wed, 11 Dec 2013 15:27:18 +0000 (16:27 +0100)]
android/pts: Add PTS PIXIT for PBAP

This complements PTS PICS configuration.

10 years agoandroid/pts: Add PTS PIXIT for PAN
Szymon Janc [Wed, 11 Dec 2013 15:27:17 +0000 (16:27 +0100)]
android/pts: Add PTS PIXIT for PAN

This complements PTS PICS configuration.

10 years agoandroid/pts: Add PTS PIXIT for OPP
Szymon Janc [Wed, 11 Dec 2013 15:27:16 +0000 (16:27 +0100)]
android/pts: Add PTS PIXIT for OPP

This complements PTS PICS configuration.

10 years agoandroid/pts: Add PTS PIXIT for HID
Szymon Janc [Wed, 11 Dec 2013 15:27:15 +0000 (16:27 +0100)]
android/pts: Add PTS PIXIT for HID

This complements PTS PICS configuration.

10 years agoandroid/pts: Add PTS PIXIT for GAP
Szymon Janc [Wed, 11 Dec 2013 15:27:14 +0000 (16:27 +0100)]
android/pts: Add PTS PIXIT for GAP

This complements PTS PICS configuration.

10 years agoandroid/pts: Add PTS test results for DID
Szymon Janc [Wed, 11 Dec 2013 15:27:13 +0000 (16:27 +0100)]
android/pts: Add PTS test results for DID

This will allow for better tracking of current state of implementation.

10 years agoandroid/pts: Add PTS PIXIT for DID
Szymon Janc [Wed, 11 Dec 2013 15:27:12 +0000 (16:27 +0100)]
android/pts: Add PTS PIXIT for DID

This complements PTS PICS configuration.

10 years agoandroid/pts: Remove PIXIT info from PICS files
Szymon Janc [Wed, 11 Dec 2013 15:27:11 +0000 (16:27 +0100)]
android/pts: Remove PIXIT info from PICS files

Full PIXIT configuration will be provided in separate files.

10 years agol2cap-tester: Close sk in error path
Andrei Emeltchenko [Thu, 12 Dec 2013 07:48:28 +0000 (09:48 +0200)]
l2cap-tester: Close sk in error path

This fixes resource leak warnings.

10 years agoandroid/tester: Remove not needed line
Marcin Kraglak [Wed, 11 Dec 2013 11:45:59 +0000 (12:45 +0100)]
android/tester: Remove not needed line

10 years agoandroid/tester: Fix closing file descriptor
Marcin Kraglak [Wed, 11 Dec 2013 11:45:58 +0000 (12:45 +0100)]
android/tester: Fix closing file descriptor

Don't close file descriptor if failed to create it.

10 years agoandroid/bluetooth: Code style and whitespace cleanup
Szymon Janc [Wed, 11 Dec 2013 10:31:27 +0000 (11:31 +0100)]
android/bluetooth: Code style and whitespace cleanup

This fix some random style or whitespace damages. Also moves statics
after last type definition.

10 years agoandroid/bluetooth: Add support for remote device type property
Szymon Janc [Wed, 11 Dec 2013 10:31:26 +0000 (11:31 +0100)]
android/bluetooth: Add support for remote device type property

This makes daemon store remote device address type to be able to handle
remote device type property.

10 years agoandroid/bluetooth: Add support for get remote device properties command
Szymon Janc [Wed, 11 Dec 2013 10:31:25 +0000 (11:31 +0100)]
android/bluetooth: Add support for get remote device properties command

This allows to get all properties of specified remote device.

10 years agoandroid/bluetooth: Add support for remote device RSSI
Szymon Janc [Wed, 11 Dec 2013 10:31:24 +0000 (11:31 +0100)]
android/bluetooth: Add support for remote device RSSI

This allows to cache remote device RSSI and get it with get property
command.

10 years agoandroid/bluetooth: Add support for remote device class
Szymon Janc [Wed, 11 Dec 2013 10:31:23 +0000 (11:31 +0100)]
android/bluetooth: Add support for remote device class

This allows to cache remote device CoD and get it with get property
command.

10 years agoandroid/bluetooth: Free devices on service unregister
Szymon Janc [Wed, 11 Dec 2013 10:31:22 +0000 (11:31 +0100)]
android/bluetooth: Free devices on service unregister

There is no need to keep devices list in memory if service was
unregistered.

10 years agoandroid/bluetooth: Add support for remote device friendly name
Szymon Janc [Wed, 11 Dec 2013 10:31:21 +0000 (11:31 +0100)]
android/bluetooth: Add support for remote device friendly name

This allows to get and set remote device property with friendly name.
Storage support is still missing.

10 years agoandroid/bluetooth: Add support for adapter bonded devices property
Szymon Janc [Wed, 11 Dec 2013 10:31:20 +0000 (11:31 +0100)]
android/bluetooth: Add support for adapter bonded devices property

This allows to get property with list of bonded devices.

10 years agoandroid/bluetooth: Add support for reporting adapter type property
Szymon Janc [Wed, 11 Dec 2013 10:31:19 +0000 (11:31 +0100)]
android/bluetooth: Add support for reporting adapter type property

This allows to get property with adapter type.

10 years agoandroid/pan: Fix minor white space
Ravi kumar Veeramally [Wed, 11 Dec 2013 10:13:43 +0000 (12:13 +0200)]
android/pan: Fix minor white space

10 years agoandroid/pan: Fix missing cleanup calls
Ravi kumar Veeramally [Wed, 11 Dec 2013 10:13:42 +0000 (12:13 +0200)]
android/pan: Fix missing cleanup calls

10 years agoprofiles/network/server: Delete function which does nothing
Ravi kumar Veeramally [Wed, 11 Dec 2013 10:13:39 +0000 (12:13 +0200)]
profiles/network/server: Delete function which does nothing

10 years agobnep: Move bnep related calls to bnep.h|c
Ravi kumar Veeramally [Wed, 11 Dec 2013 10:13:38 +0000 (12:13 +0200)]
bnep: Move bnep related calls to bnep.h|c

Moving bnep related calls to bnep.h|c to reduce redundancy
while using same in android/*.

10 years agobnep: Rename send ctrl_rsp and make it global
Ravi kumar Veeramally [Wed, 11 Dec 2013 10:13:37 +0000 (12:13 +0200)]
bnep: Rename send ctrl_rsp and make it global

Renaming send_bnep_ctrl_rsp to bnep_send_ctrl_rsp and moving
to bnep.h. It is required in android/*.

10 years agobnep: Rename bnep_kill_connection to bnep_conndel
Ravi kumar Veeramally [Wed, 11 Dec 2013 10:13:36 +0000 (12:13 +0200)]
bnep: Rename bnep_kill_connection to bnep_conndel

Renaming bnep_kill_connection to bnep_conndel to maintain
consistency with bnep_connadd function name.

10 years agoandroid/tester: Add status check and adapter enable, disable test cases
Grzegorz Kolodziejczyk [Wed, 11 Dec 2013 10:46:37 +0000 (11:46 +0100)]
android/tester: Add status check and adapter enable, disable test cases

This adds handling of status check, enabled adapter setup method,
disable and enable fail test case.

10 years agoandroid/tester: Add basic enable test
Grzegorz Kolodziejczyk [Wed, 11 Dec 2013 10:46:36 +0000 (11:46 +0100)]
android/tester: Add basic enable test

10 years agoandroid/tester: Make HAL logging wrapper print to stderr instead of stdout
Szymon Janc [Wed, 11 Dec 2013 10:46:35 +0000 (11:46 +0100)]
android/tester: Make HAL logging wrapper print to stderr instead of stdout

This is used for testing and for user it makes no difference. This
will allow to switch on/off verbose logging from automated android
tester.

10 years agoandroid/tester: Add stack initialization of stack in setup
Marcin Kraglak [Wed, 11 Dec 2013 10:46:34 +0000 (11:46 +0100)]
android/tester: Add stack initialization of stack in setup

This add stack initialization and cleanup in setup/teardown.