* Re: [RFC 1/5] android/bluetooth: Split devices list to devices and bonded_devices
From: Szymon Janc @ 2014-01-14 18:03 UTC (permalink / raw)
To: Luiz Augusto von Dentz; +Cc: Szymon Janc, linux-bluetooth@vger.kernel.org
In-Reply-To: <CABBYNZLsSJsxLmSB=F1GYLmNyWhzRwjT33qH4p-ELwLy=AftLQ@mail.gmail.com>
Hi Luiz,
On Tuesday 14 January 2014 17:42:02 Luiz Augusto von Dentz wrote:
> Hi Szymon,
>
> On Tue, Jan 14, 2014 at 1:11 PM, Szymon Janc <szymon.janc@tieto.com> wrote:
> > From: Szymon Janc <szymon.janc@gmail.com>
> >
> > Bonded devices are permament until unbondedn. Non-bonded devices will
> > be held in (size limited) cache based on timestamp property so split
> > list to ease separation.
> > ---
> >
> > android/bluetooth.c | 47 +++++++++++++++++++++++++++++++++++------------
> > 1 file changed, 35 insertions(+), 12 deletions(-)
> >
> > diff --git a/android/bluetooth.c b/android/bluetooth.c
> > index 735b03e..78e98c1 100644
> > --- a/android/bluetooth.c
> > +++ b/android/bluetooth.c
> > @@ -133,6 +133,8 @@ static const uint16_t uuid_list[] = {
> >
> > };
> >
> > static struct mgmt *mgmt_if = NULL;
> >
> > +
> > +static GSList *bonded_devices = NULL;
> >
> > static GSList *devices = NULL;
> >
> > /* This list contains addresses which are asked for records */
> >
> > @@ -284,6 +286,10 @@ static struct device *find_device(const bdaddr_t
> > *bdaddr)>
> > {
> >
> > GSList *l;
> >
> > + l = g_slist_find_custom(bonded_devices, bdaddr, device_match);
> > + if (l)
> > + return l->data;
> > +
> >
> > l = g_slist_find_custom(devices, bdaddr, device_match);
> > if (l)
> >
> > return l->data;
> >
> > @@ -560,12 +566,30 @@ static void set_device_bond_state(const bdaddr_t
> > *addr, uint8_t status,>
> > if (!dev)
> >
> > return;
> >
> > - if (dev->bond_state != state) {
> > - dev->bond_state = state;
> > - send_bond_state_change(&dev->bdaddr, status, state);
> > + if (dev->bond_state == state)
> > + return;
> >
> > - store_device_info(dev);
> > + switch (state) {
> > + case HAL_BOND_STATE_NONE:
> > + if (dev->bond_state == HAL_BOND_STATE_BONDED) {
> > + bonded_devices = g_slist_remove(bonded_devices,
> > dev); + devices = g_slist_prepend(devices, dev);
> > + }
> > + break;
> > + case HAL_BOND_STATE_BONDED:
> > + devices = g_slist_remove(devices, dev);
> > + bonded_devices = g_slist_prepend(bonded_devices, dev);
> > + break;
> > + case HAL_BOND_STATE_BONDING:
> > + default:
> > + break;
> >
> > }
> >
> > +
> > + dev->bond_state = state;
> > +
> > + store_device_info(dev);
> > +
> > + send_bond_state_change(&dev->bdaddr, status, state);
> >
> > }
> >
> > static void send_device_property(const bdaddr_t *bdaddr, uint8_t type,
> >
> > @@ -2134,18 +2158,15 @@ static uint8_t get_adapter_scan_mode(void)
> >
> > static uint8_t get_adapter_bonded_devices(void)
> > {
> >
> > - uint8_t buf[sizeof(bdaddr_t) * g_slist_length(devices)];
> > + uint8_t buf[sizeof(bdaddr_t) * g_slist_length(bonded_devices)];
> >
> > int i = 0;
> > GSList *l;
> >
> > DBG("");
> >
> > - for (l = devices; l; l = g_slist_next(l)) {
> > + for (l = bonded_devices; l; l = g_slist_next(l)) {
> >
> > struct device *dev = l->data;
> >
> > - if (dev->bond_state != HAL_BOND_STATE_BONDED)
> > - continue;
> > -
> >
> > bdaddr2android(&dev->bdaddr, buf + (i *
> > sizeof(bdaddr_t)));
> > i++;
> >
> > }
> >
> > @@ -2697,11 +2718,10 @@ static void send_bonded_devices_props(void)
> >
> > {
> >
> > GSList *l;
> >
> > - for (l = devices; l; l = g_slist_next(l)) {
> > + for (l = bonded_devices; l; l = g_slist_next(l)) {
> >
> > struct device *dev = l->data;
> >
> > - if (dev->bond_state == HAL_BOND_STATE_BONDED)
> > - get_remote_device_props(dev);
> > + get_remote_device_props(dev);
> >
> > }
> >
> > }
> >
> > @@ -3099,6 +3119,9 @@ void bt_bluetooth_unregister(void)
> >
> > {
> >
> > DBG("");
> >
> > + g_slist_free_full(bonded_devices, (GDestroyNotify) free_device);
> > + bonded_devices = NULL;
> > +
> >
> > g_slist_free_full(devices, (GDestroyNotify) free_device);
>
> You can make free_device to take a void pointer so you don't have to
> cast in such cases.
Yes, that could be done, since this function is already present I'll change
that in separate patch.
--
Szymon K. Janc
szymon.janc@gmail.com
^ permalink raw reply
* Re: [RFC 4/5] android/bluetooth: Add support for caching remote device info
From: Szymon Janc @ 2014-01-14 17:55 UTC (permalink / raw)
To: Luiz Augusto von Dentz; +Cc: Szymon Janc, linux-bluetooth@vger.kernel.org
In-Reply-To: <CABBYNZJRVE50AVx0Tm+y_MMuO94U4wEARetXyhRf8UckJCwJcw@mail.gmail.com>
Hi Luiz,
On Tuesday 14 January 2014 17:49:54 Luiz Augusto von Dentz wrote:
> Hi Szymon,
>
> On Tue, Jan 14, 2014 at 1:11 PM, Szymon Janc <szymon.janc@tieto.com> wrote:
> > Cache is limited to DEVICES_CACHE_MAX. Devices are sorted with
> > timestamp so if cache is full olderst device is removed.
> > ---
> >
> > android/bluetooth.c | 69
> > ++++++++++++++++++++++++++++++++++++++++++----------- 1 file changed, 55
> > insertions(+), 14 deletions(-)
> >
> > diff --git a/android/bluetooth.c b/android/bluetooth.c
> > index 8c91d87..df442a3 100644
> > --- a/android/bluetooth.c
> > +++ b/android/bluetooth.c
> > @@ -70,6 +70,8 @@
> >
> > /* Default discoverable timeout 120sec as in Android */
> > #define DEFAULT_DISCOVERABLE_TIMEOUT 120
> >
> > +#define DEVICES_CACHE_MAX 100
>
> Is this being limited because Android UI cannot handle more than that?
> Or perhaps because our IPC/MTU cannot carry more than that? If the
> latter I believe we can actually calculate the maximun e.g. MTU / pdu
> size.
This is not related to Android UI nor MTU. This is just to limit max resources
usage. Value is totally arbitrary. If device is not in cache some HAL
functions might fail (notably set/get device property).
--
Szymon K. Janc
szymon.janc@gmail.com
^ permalink raw reply
* [PATCH 2/2] android/a2dp: Fix freeing preset on SEP close
From: Andrzej Kaczmarek @ 2014-01-14 16:16 UTC (permalink / raw)
To: linux-bluetooth; +Cc: Andrzej Kaczmarek
In-Reply-To: <1389716179-21874-1-git-send-email-andrzej.kaczmarek@tieto.com>
In case SEP was opened from local side, corresponding a2dp_setup
structure has just reference to a2dp_preset which is stored on presets
list. As a result, when closing SEP such preset will be freed leaving
dangling pointer on presets list.
This patch duplicates a2dp_preset in such case so it can be freed
safely.
---
android/a2dp.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/android/a2dp.c b/android/a2dp.c
index 145cd67..63629a0 100644
--- a/android/a2dp.c
+++ b/android/a2dp.c
@@ -266,6 +266,7 @@ static int select_configuration(struct a2dp_device *dev,
struct avdtp_remote_sep *rsep)
{
struct a2dp_preset *preset;
+ struct a2dp_preset *preset_dup;
struct avdtp_stream *stream;
struct avdtp_service_capability *service;
struct avdtp_media_codec_capability *codec;
@@ -298,7 +299,11 @@ static int select_configuration(struct a2dp_device *dev,
return err;
}
- setup_add(dev, endpoint, preset, stream);
+ preset_dup = g_new0(struct a2dp_preset, 1);
+ preset_dup->len = preset->len;
+ preset_dup->data = g_memdup(preset->data, preset->len);
+
+ setup_add(dev, endpoint, preset_dup, stream);
return 0;
}
--
1.8.5.2
^ permalink raw reply related
* [PATCH 1/2] android/a2dp: Fix IPC response length calculation
From: Andrzej Kaczmarek @ 2014-01-14 16:16 UTC (permalink / raw)
To: linux-bluetooth; +Cc: Andrzej Kaczmarek
struct audio_rsp_open_stream has only zero-length array member thus its
size equals to 0. We need to explicitly specify size of array element
type here.
---
android/a2dp.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/android/a2dp.c b/android/a2dp.c
index 9f3164a..145cd67 100644
--- a/android/a2dp.c
+++ b/android/a2dp.c
@@ -1088,8 +1088,8 @@ static void bt_stream_open(const void *buf, uint16_t len)
return;
}
- len = sizeof(*rsp) + setup->preset->len;
- rsp = g_malloc0(sizeof(*rsp) + setup->preset->len);
+ len = sizeof(struct audio_preset) + setup->preset->len;
+ rsp = g_malloc0(len);
rsp->preset->len = setup->preset->len;
memcpy(rsp->preset->data, setup->preset->data, setup->preset->len);
--
1.8.5.2
^ permalink raw reply related
* Re: [RFC 4/5] android/bluetooth: Add support for caching remote device info
From: Luiz Augusto von Dentz @ 2014-01-14 15:49 UTC (permalink / raw)
To: Szymon Janc; +Cc: linux-bluetooth@vger.kernel.org
In-Reply-To: <1389697905-18532-5-git-send-email-szymon.janc@tieto.com>
Hi Szymon,
On Tue, Jan 14, 2014 at 1:11 PM, Szymon Janc <szymon.janc@tieto.com> wrote:
> Cache is limited to DEVICES_CACHE_MAX. Devices are sorted with
> timestamp so if cache is full olderst device is removed.
> ---
> android/bluetooth.c | 69 ++++++++++++++++++++++++++++++++++++++++++-----------
> 1 file changed, 55 insertions(+), 14 deletions(-)
>
> diff --git a/android/bluetooth.c b/android/bluetooth.c
> index 8c91d87..df442a3 100644
> --- a/android/bluetooth.c
> +++ b/android/bluetooth.c
> @@ -70,6 +70,8 @@
> /* Default discoverable timeout 120sec as in Android */
> #define DEFAULT_DISCOVERABLE_TIMEOUT 120
>
> +#define DEVICES_CACHE_MAX 100
Is this being limited because Android UI cannot handle more than that?
Or perhaps because our IPC/MTU cannot carry more than that? If the
latter I believe we can actually calculate the maximun e.g. MTU / pdu
size.
^ permalink raw reply
* Re: [RFC 1/5] android/bluetooth: Split devices list to devices and bonded_devices
From: Luiz Augusto von Dentz @ 2014-01-14 15:42 UTC (permalink / raw)
To: Szymon Janc; +Cc: linux-bluetooth@vger.kernel.org, Szymon Janc
In-Reply-To: <1389697905-18532-2-git-send-email-szymon.janc@tieto.com>
Hi Szymon,
On Tue, Jan 14, 2014 at 1:11 PM, Szymon Janc <szymon.janc@tieto.com> wrote:
> From: Szymon Janc <szymon.janc@gmail.com>
>
> Bonded devices are permament until unbondedn. Non-bonded devices will
> be held in (size limited) cache based on timestamp property so split
> list to ease separation.
> ---
> android/bluetooth.c | 47 +++++++++++++++++++++++++++++++++++------------
> 1 file changed, 35 insertions(+), 12 deletions(-)
>
> diff --git a/android/bluetooth.c b/android/bluetooth.c
> index 735b03e..78e98c1 100644
> --- a/android/bluetooth.c
> +++ b/android/bluetooth.c
> @@ -133,6 +133,8 @@ static const uint16_t uuid_list[] = {
> };
>
> static struct mgmt *mgmt_if = NULL;
> +
> +static GSList *bonded_devices = NULL;
> static GSList *devices = NULL;
>
> /* This list contains addresses which are asked for records */
> @@ -284,6 +286,10 @@ static struct device *find_device(const bdaddr_t *bdaddr)
> {
> GSList *l;
>
> + l = g_slist_find_custom(bonded_devices, bdaddr, device_match);
> + if (l)
> + return l->data;
> +
> l = g_slist_find_custom(devices, bdaddr, device_match);
> if (l)
> return l->data;
> @@ -560,12 +566,30 @@ static void set_device_bond_state(const bdaddr_t *addr, uint8_t status,
> if (!dev)
> return;
>
> - if (dev->bond_state != state) {
> - dev->bond_state = state;
> - send_bond_state_change(&dev->bdaddr, status, state);
> + if (dev->bond_state == state)
> + return;
>
> - store_device_info(dev);
> + switch (state) {
> + case HAL_BOND_STATE_NONE:
> + if (dev->bond_state == HAL_BOND_STATE_BONDED) {
> + bonded_devices = g_slist_remove(bonded_devices, dev);
> + devices = g_slist_prepend(devices, dev);
> + }
> + break;
> + case HAL_BOND_STATE_BONDED:
> + devices = g_slist_remove(devices, dev);
> + bonded_devices = g_slist_prepend(bonded_devices, dev);
> + break;
> + case HAL_BOND_STATE_BONDING:
> + default:
> + break;
> }
> +
> + dev->bond_state = state;
> +
> + store_device_info(dev);
> +
> + send_bond_state_change(&dev->bdaddr, status, state);
> }
>
> static void send_device_property(const bdaddr_t *bdaddr, uint8_t type,
> @@ -2134,18 +2158,15 @@ static uint8_t get_adapter_scan_mode(void)
>
> static uint8_t get_adapter_bonded_devices(void)
> {
> - uint8_t buf[sizeof(bdaddr_t) * g_slist_length(devices)];
> + uint8_t buf[sizeof(bdaddr_t) * g_slist_length(bonded_devices)];
> int i = 0;
> GSList *l;
>
> DBG("");
>
> - for (l = devices; l; l = g_slist_next(l)) {
> + for (l = bonded_devices; l; l = g_slist_next(l)) {
> struct device *dev = l->data;
>
> - if (dev->bond_state != HAL_BOND_STATE_BONDED)
> - continue;
> -
> bdaddr2android(&dev->bdaddr, buf + (i * sizeof(bdaddr_t)));
> i++;
> }
> @@ -2697,11 +2718,10 @@ static void send_bonded_devices_props(void)
> {
> GSList *l;
>
> - for (l = devices; l; l = g_slist_next(l)) {
> + for (l = bonded_devices; l; l = g_slist_next(l)) {
> struct device *dev = l->data;
>
> - if (dev->bond_state == HAL_BOND_STATE_BONDED)
> - get_remote_device_props(dev);
> + get_remote_device_props(dev);
> }
> }
>
> @@ -3099,6 +3119,9 @@ void bt_bluetooth_unregister(void)
> {
> DBG("");
>
> + g_slist_free_full(bonded_devices, (GDestroyNotify) free_device);
> + bonded_devices = NULL;
> +
> g_slist_free_full(devices, (GDestroyNotify) free_device);
You can make free_device to take a void pointer so you don't have to
cast in such cases.
--
Luiz Augusto von Dentz
^ permalink raw reply
* [RFC 4/4] android: Update README with init.rc updates
From: Szymon Janc @ 2014-01-14 15:28 UTC (permalink / raw)
To: linux-bluetooth; +Cc: Szymon Janc
In-Reply-To: <1389713283-13038-1-git-send-email-szymon.janc@tieto.com>
---
android/README | 32 +++++++-------------------------
1 file changed, 7 insertions(+), 25 deletions(-)
diff --git a/android/README b/android/README
index 717ffa2..24ed703 100644
--- a/android/README
+++ b/android/README
@@ -36,31 +36,13 @@ Runtime requirements
====================
BlueZ HAL library requires 'bluetoothd' and 'bluetoothd-snoop' services to be
-available on Android system. This can be done by defining following services in
-init.rc file of targeted board:
-
-service bluetoothd /system/bin/logwrapper /system/bin/bluetoothd
- class main
- group bluetooth net_admin
- disabled
- oneshot
-
-service bluetoothd-snoop /system/bin/bluetoothd-snoop
- class main
- group bluetooth net_admin
- disabled
- oneshot
-
-It is required that bluetooth user could start and stop bluetoothd and
-bluetoothd-snoop services by setting 'ctl.start' or 'ctl.stop' property. This
-can be achieved by whitelisting bluetooth user and bluetoothd and
-bluetoothd-snoop services in init source code.
-
-Required Android init system modifications can be found at
-https://code.google.com/p/aosp-bluez.platform-system-core/
-
-Some configuration changes like setting permissions, starting hciattach
-services etc. are device specific. For convenience examples are provided at:
+available on Android system. Some permissions settings are also required.
+
+This can be done by importing init.bluetooth.rc file in init.rc file of targeted
+board:
+import init.bluetooth.rc
+
+For convenience examples are provided at:
https://code.google.com/p/aosp-bluez.device-lge-mako/ (Nexus 4)
https://code.google.com/p/aosp-bluez.device-asus-flo/ (Nexus 7 2013)
--
1.8.3.2
^ permalink raw reply related
* [RFC 3/4] android/system-emulator: Update property used for start/stop services
From: Szymon Janc @ 2014-01-14 15:28 UTC (permalink / raw)
To: linux-bluetooth; +Cc: Szymon Janc
In-Reply-To: <1389713283-13038-1-git-send-email-szymon.janc@tieto.com>
---
android/system-emulator.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/android/system-emulator.c b/android/system-emulator.c
index f1c6622..0966a02 100644
--- a/android/system-emulator.c
+++ b/android/system-emulator.c
@@ -139,17 +139,17 @@ static void system_socket_callback(int fd, uint32_t events, void *user_data)
printf("Received %s\n", buf);
- if (!strcmp(buf, "ctl.start=bluetoothd")) {
+ if (!strcmp(buf, "bluetooth.start=bluetoothd")) {
if (daemon_pid > 0)
return;
ctl_start();
- } else if (!strcmp(buf, "ctl.start=bluetoothd-snoop")) {
+ } else if (!strcmp(buf, "bluetooth.start=bluetoothd-snoop")) {
if (snoop_pid > 0)
return;
snoop_start();
- } else if (!strcmp(buf, "ctl.stop=bluetoothd-snoop")) {
+ } else if (!strcmp(buf, "bluetooth.stop=bluetoothd-snoop")) {
if (snoop_pid > 0)
snoop_stop();
}
--
1.8.3.2
^ permalink raw reply related
* [RFC 2/4] android/hal: Update property used for start/stop services
From: Szymon Janc @ 2014-01-14 15:28 UTC (permalink / raw)
To: linux-bluetooth; +Cc: Szymon Janc
In-Reply-To: <1389713283-13038-1-git-send-email-szymon.janc@tieto.com>
---
android/hal-bluetooth.c | 4 ++--
android/hal-ipc.c | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/android/hal-bluetooth.c b/android/hal-bluetooth.c
index be45836..76560da 100644
--- a/android/hal-bluetooth.c
+++ b/android/hal-bluetooth.c
@@ -822,12 +822,12 @@ static int config_hci_snoop_log(uint8_t enable)
{
DBG("enable %u", enable);
- if (enable && property_set("ctl.start", SNOOP_SERVICE_NAME) < 0) {
+ if (enable && property_set("bluetooth.start", SNOOP_SERVICE_NAME) < 0) {
error("Failed to start service %s", SNOOP_SERVICE_NAME);
return BT_STATUS_FAIL;
}
- if (!enable && property_set("ctl.stop", SNOOP_SERVICE_NAME) < 0) {
+ if (!enable && property_set("bluetooth.stop", SNOOP_SERVICE_NAME) < 0) {
error("Failed to stop service %s", SNOOP_SERVICE_NAME);
return BT_STATUS_FAIL;
}
diff --git a/android/hal-ipc.c b/android/hal-ipc.c
index 97f1bcd..56165df 100644
--- a/android/hal-ipc.c
+++ b/android/hal-ipc.c
@@ -259,7 +259,7 @@ bool hal_ipc_init(void)
}
/* Start Android Bluetooth daemon service */
- if (property_set("ctl.start", SERVICE_NAME) < 0) {
+ if (property_set("bluetooth.start", SERVICE_NAME) < 0) {
error("Failed to start service %s", SERVICE_NAME);
close(sk);
return false;
--
1.8.3.2
^ permalink raw reply related
* [RFC 1/4] android: Add sample init.bluetooth.rc file
From: Szymon Janc @ 2014-01-14 15:28 UTC (permalink / raw)
To: linux-bluetooth; +Cc: Szymon Janc
This file is intended to be included from device init.rc.
---
android/Android.mk | 16 +++++++++++++++-
android/Makefile.am | 1 +
android/init.bluetooth.rc | 27 +++++++++++++++++++++++++++
3 files changed, 43 insertions(+), 1 deletion(-)
create mode 100644 android/init.bluetooth.rc
diff --git a/android/Android.mk b/android/Android.mk
index ae52ab4..f13e703 100644
--- a/android/Android.mk
+++ b/android/Android.mk
@@ -109,7 +109,7 @@ LOCAL_MODULE := bluetooth.default
LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/hw
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE_CLASS := SHARED_LIBRARIES
-LOCAL_REQUIRED_MODULES := bluetoothd bluetoothd-snoop
+LOCAL_REQUIRED_MODULES := bluetoothd bluetoothd-snoop init.bluetooth.rc
include $(BUILD_SHARED_LIBRARY)
@@ -263,3 +263,17 @@ LOCAL_MODULE_TAGS := optional
LOCAL_MODULE := bluetoothd-snoop
include $(BUILD_EXECUTABLE)
+
+#
+# init.bleutooth.rc
+#
+
+include $(CLEAR_VARS)
+
+LOCAL_MODULE := init.bluetooth.rc
+LOCAL_MODULE_CLASS := ETC
+LOCAL_SRC_FILES := $(LOCAL_MODULE)
+LOCAL_MODULE_TAGS := optional
+LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)
+
+include $(BUILD_PREBUILT)
diff --git a/android/Makefile.am b/android/Makefile.am
index 7806f79..b205019 100644
--- a/android/Makefile.am
+++ b/android/Makefile.am
@@ -134,6 +134,7 @@ android_audio_a2dp_default_la_LDFLAGS = $(AM_LDFLAGS) -module -avoid-version \
endif
EXTRA_DIST += android/Android.mk android/hal-ipc-api.txt android/README \
+ android/init.bluetooth.rc \
android/pics-gap.txt android/pics-hid.txt \
android/pics-pan.txt android/pics-did.txt \
android/pics-opp.txt android/pics-pbap.txt \
diff --git a/android/init.bluetooth.rc b/android/init.bluetooth.rc
new file mode 100644
index 0000000..e2be9e8
--- /dev/null
+++ b/android/init.bluetooth.rc
@@ -0,0 +1,27 @@
+chown bluetooth bluetooth /data/misc/bluetooth
+
+chown bluetooth bluetooth /dev/uhid
+
+on property:bluetooth.start=bluetoothd
+ start bluetoothd
+
+on property:bluetooth.stop=bluetoothd
+ stop bluetoothd
+
+on property:bluetooth.start=bluetoothd-snoop
+ start bluetoothd-snoop
+
+on property:bluetooth.stop=bluetoothd-snoop
+ stop bluetoothd-snoop
+
+service bluetoothd /system/bin/logwrapper /system/bin/bluetoothd
+ class main
+ group bluetooth net_admin
+ disabled
+ oneshot
+
+service bluetoothd-snoop /system/bin/bluetoothd-snoop
+ class main
+ group bluetooth net_admin
+ disabled
+ oneshot
--
1.8.3.2
^ permalink raw reply related
* [PATCH v2 15/15] android/tester: Add get device FRIENDLY_NAME prop fail test case
From: Grzegorz Kolodziejczyk @ 2014-01-14 13:54 UTC (permalink / raw)
To: linux-bluetooth
In-Reply-To: <1389707686-30766-1-git-send-email-grzegorz.kolodziejczyk@tieto.com>
This adds device FRIENDLY NAME property fail test case.
---
android/android-tester.c | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
diff --git a/android/android-tester.c b/android/android-tester.c
index 94b00dd..7640eea 100644
--- a/android/android-tester.c
+++ b/android/android-tester.c
@@ -1568,6 +1568,25 @@ static const struct generic_data bt_dev_getprop_verinfo_fail_test = {
.expected_adapter_status = BT_STATUS_FAIL,
};
+static struct priority_property remote_getprop_fname_props[] = {
+ {
+ .prop.type = BT_PROPERTY_REMOTE_VERSION_INFO,
+ .prop.val = NULL,
+ .prop.len = 0,
+ },
+};
+
+static const struct generic_data bt_dev_getprop_fname_fail_test = {
+ .expected_hal_cb.discovery_state_changed_cb =
+ remote_discovery_state_changed_cb,
+ .expected_hal_cb.device_found_cb = remote_get_property_device_found_cb,
+ .expected_hal_cb.remote_device_properties_cb =
+ remote_test_device_properties_cb,
+ .expected_cb_count = 3,
+ .expected_properties = remote_getprop_fname_props,
+ .expected_adapter_status = BT_STATUS_FAIL,
+};
+
static bt_callbacks_t bt_callbacks = {
.size = sizeof(bt_callbacks),
.adapter_state_changed_cb = adapter_state_changed_cb,
@@ -2198,6 +2217,15 @@ static void test_dev_getprop_verinfo_fail(const void *test_data)
data->if_bluetooth->start_discovery();
}
+static void test_dev_getprop_fname_fail(const void *test_data)
+{
+ struct test_data *data = tester_get_data();
+
+ init_test_conditions(data);
+
+ data->if_bluetooth->start_discovery();
+}
+
/* Test Socket HAL */
static void adapter_socket_state_changed_cb(bt_state_t state)
@@ -2864,6 +2892,11 @@ int main(int argc, char *argv[])
setup_enabled_adapter,
test_dev_getprop_verinfo_fail, teardown);
+ test_bredrle("Bluetooth Device Get FRIENDLY_NAME - Fail",
+ &bt_dev_getprop_fname_fail_test,
+ setup_enabled_adapter,
+ test_dev_getprop_fname_fail, teardown);
+
test_bredrle("Socket Init", NULL, setup_socket_interface,
test_dummy, teardown);
--
1.8.5.2
^ permalink raw reply related
* [PATCH v2 14/15] android/tester: Add get device VERINFO property fail test case
From: Grzegorz Kolodziejczyk @ 2014-01-14 13:54 UTC (permalink / raw)
To: linux-bluetooth
In-Reply-To: <1389707686-30766-1-git-send-email-grzegorz.kolodziejczyk@tieto.com>
This adds device VERSION INFO property fail test case.
---
android/android-tester.c | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
diff --git a/android/android-tester.c b/android/android-tester.c
index 89566d4..94b00dd 100644
--- a/android/android-tester.c
+++ b/android/android-tester.c
@@ -1549,6 +1549,25 @@ static const struct generic_data bt_dev_getprop_disctimeout_fail_test = {
.expected_adapter_status = BT_STATUS_FAIL,
};
+static struct priority_property remote_getprop_verinfo_props[] = {
+ {
+ .prop.type = BT_PROPERTY_REMOTE_VERSION_INFO,
+ .prop.val = NULL,
+ .prop.len = 0,
+ },
+};
+
+static const struct generic_data bt_dev_getprop_verinfo_fail_test = {
+ .expected_hal_cb.discovery_state_changed_cb =
+ remote_discovery_state_changed_cb,
+ .expected_hal_cb.device_found_cb = remote_get_property_device_found_cb,
+ .expected_hal_cb.remote_device_properties_cb =
+ remote_test_device_properties_cb,
+ .expected_cb_count = 3,
+ .expected_properties = remote_getprop_verinfo_props,
+ .expected_adapter_status = BT_STATUS_FAIL,
+};
+
static bt_callbacks_t bt_callbacks = {
.size = sizeof(bt_callbacks),
.adapter_state_changed_cb = adapter_state_changed_cb,
@@ -2170,6 +2189,15 @@ static void test_dev_getprop_disctimeout_fail(const void *test_data)
data->if_bluetooth->start_discovery();
}
+static void test_dev_getprop_verinfo_fail(const void *test_data)
+{
+ struct test_data *data = tester_get_data();
+
+ init_test_conditions(data);
+
+ data->if_bluetooth->start_discovery();
+}
+
/* Test Socket HAL */
static void adapter_socket_state_changed_cb(bt_state_t state)
@@ -2831,6 +2859,11 @@ int main(int argc, char *argv[])
setup_enabled_adapter,
test_dev_getprop_disctimeout_fail, teardown);
+ test_bredrle("Bluetooth Device Get VERSION_INFO - Fail",
+ &bt_dev_getprop_verinfo_fail_test,
+ setup_enabled_adapter,
+ test_dev_getprop_verinfo_fail, teardown);
+
test_bredrle("Socket Init", NULL, setup_socket_interface,
test_dummy, teardown);
--
1.8.5.2
^ permalink raw reply related
* [PATCH v2 13/15] android/tester: Add get device DISCTIMEOUT prop fail test case
From: Grzegorz Kolodziejczyk @ 2014-01-14 13:54 UTC (permalink / raw)
To: linux-bluetooth
In-Reply-To: <1389707686-30766-1-git-send-email-grzegorz.kolodziejczyk@tieto.com>
This adds device DISCOVERY TIMEOUT property fail test case.
---
android/android-tester.c | 35 +++++++++++++++++++++++++++++++++++
1 file changed, 35 insertions(+)
diff --git a/android/android-tester.c b/android/android-tester.c
index 2192cc4..89566d4 100644
--- a/android/android-tester.c
+++ b/android/android-tester.c
@@ -1528,6 +1528,27 @@ static const struct generic_data bt_dev_getprop_bondeddev_fail_test = {
.expected_adapter_status = BT_STATUS_FAIL,
};
+static uint32_t remote_getprop_disctimeout_val = 120;
+
+static struct priority_property remote_getprop_disctimeout_props[] = {
+ {
+ .prop.type = BT_PROPERTY_ADAPTER_DISCOVERY_TIMEOUT,
+ .prop.val = &remote_getprop_disctimeout_val,
+ .prop.len = sizeof(remote_getprop_disctimeout_val),
+ },
+};
+
+static const struct generic_data bt_dev_getprop_disctimeout_fail_test = {
+ .expected_hal_cb.discovery_state_changed_cb =
+ remote_discovery_state_changed_cb,
+ .expected_hal_cb.device_found_cb = remote_get_property_device_found_cb,
+ .expected_hal_cb.remote_device_properties_cb =
+ remote_test_device_properties_cb,
+ .expected_cb_count = 3,
+ .expected_properties = remote_getprop_disctimeout_props,
+ .expected_adapter_status = BT_STATUS_FAIL,
+};
+
static bt_callbacks_t bt_callbacks = {
.size = sizeof(bt_callbacks),
.adapter_state_changed_cb = adapter_state_changed_cb,
@@ -2140,6 +2161,15 @@ static void test_dev_getprop_bondeddev_fail(const void *test_data)
data->if_bluetooth->start_discovery();
}
+static void test_dev_getprop_disctimeout_fail(const void *test_data)
+{
+ struct test_data *data = tester_get_data();
+
+ init_test_conditions(data);
+
+ data->if_bluetooth->start_discovery();
+}
+
/* Test Socket HAL */
static void adapter_socket_state_changed_cb(bt_state_t state)
@@ -2796,6 +2826,11 @@ int main(int argc, char *argv[])
setup_enabled_adapter,
test_dev_getprop_bondeddev_fail, teardown);
+ test_bredrle("Bluetooth Device Get DISCOVERY_TIMEOUT - Fail",
+ &bt_dev_getprop_disctimeout_fail_test,
+ setup_enabled_adapter,
+ test_dev_getprop_disctimeout_fail, teardown);
+
test_bredrle("Socket Init", NULL, setup_socket_interface,
test_dummy, teardown);
--
1.8.5.2
^ permalink raw reply related
* [PATCH v2 12/15] android/tester: Add get device BONDED_DEV property fail test case
From: Grzegorz Kolodziejczyk @ 2014-01-14 13:54 UTC (permalink / raw)
To: linux-bluetooth
In-Reply-To: <1389707686-30766-1-git-send-email-grzegorz.kolodziejczyk@tieto.com>
This adds device BONDED DEVICES property fail test case.
---
android/android-tester.c | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
diff --git a/android/android-tester.c b/android/android-tester.c
index a9f57e5..2192cc4 100644
--- a/android/android-tester.c
+++ b/android/android-tester.c
@@ -1509,6 +1509,25 @@ static const struct generic_data bt_dev_getprop_scanmode_fail_test = {
.expected_adapter_status = BT_STATUS_FAIL,
};
+static struct priority_property remote_getprop_bondeddev_props[] = {
+ {
+ .prop.type = BT_PROPERTY_ADAPTER_BONDED_DEVICES,
+ .prop.val = NULL,
+ .prop.len = 0,
+ },
+};
+
+static const struct generic_data bt_dev_getprop_bondeddev_fail_test = {
+ .expected_hal_cb.discovery_state_changed_cb =
+ remote_discovery_state_changed_cb,
+ .expected_hal_cb.device_found_cb = remote_get_property_device_found_cb,
+ .expected_hal_cb.remote_device_properties_cb =
+ remote_test_device_properties_cb,
+ .expected_cb_count = 3,
+ .expected_properties = remote_getprop_bondeddev_props,
+ .expected_adapter_status = BT_STATUS_FAIL,
+};
+
static bt_callbacks_t bt_callbacks = {
.size = sizeof(bt_callbacks),
.adapter_state_changed_cb = adapter_state_changed_cb,
@@ -2112,6 +2131,15 @@ static void test_dev_getprop_scanmode_fail(const void *test_data)
data->if_bluetooth->start_discovery();
}
+static void test_dev_getprop_bondeddev_fail(const void *test_data)
+{
+ struct test_data *data = tester_get_data();
+
+ init_test_conditions(data);
+
+ data->if_bluetooth->start_discovery();
+}
+
/* Test Socket HAL */
static void adapter_socket_state_changed_cb(bt_state_t state)
@@ -2763,6 +2791,11 @@ int main(int argc, char *argv[])
setup_enabled_adapter,
test_dev_getprop_scanmode_fail, teardown);
+ test_bredrle("Bluetooth Device Get BONDED_DEVICES - Fail",
+ &bt_dev_getprop_bondeddev_fail_test,
+ setup_enabled_adapter,
+ test_dev_getprop_bondeddev_fail, teardown);
+
test_bredrle("Socket Init", NULL, setup_socket_interface,
test_dummy, teardown);
--
1.8.5.2
^ permalink raw reply related
* [PATCH v2 11/15] android/tester: Add get device SCAN_MODE property fail test case
From: Grzegorz Kolodziejczyk @ 2014-01-14 13:54 UTC (permalink / raw)
To: linux-bluetooth
In-Reply-To: <1389707686-30766-1-git-send-email-grzegorz.kolodziejczyk@tieto.com>
This adds device SCAN MODE property fail test case.
---
android/android-tester.c | 35 +++++++++++++++++++++++++++++++++++
1 file changed, 35 insertions(+)
diff --git a/android/android-tester.c b/android/android-tester.c
index 8eddf2a..a9f57e5 100644
--- a/android/android-tester.c
+++ b/android/android-tester.c
@@ -1488,6 +1488,27 @@ static const struct generic_data bt_dev_getprop_servrec_fail_test = {
.expected_adapter_status = BT_STATUS_FAIL,
};
+static bt_scan_mode_t remote_getprop_scanmode_val = BT_SCAN_MODE_CONNECTABLE;
+
+static struct priority_property remote_getprop_scanmode_props[] = {
+ {
+ .prop.type = BT_PROPERTY_ADAPTER_SCAN_MODE,
+ .prop.val = &remote_getprop_scanmode_val,
+ .prop.len = sizeof(remote_getprop_scanmode_val),
+ },
+};
+
+static const struct generic_data bt_dev_getprop_scanmode_fail_test = {
+ .expected_hal_cb.discovery_state_changed_cb =
+ remote_discovery_state_changed_cb,
+ .expected_hal_cb.device_found_cb = remote_get_property_device_found_cb,
+ .expected_hal_cb.remote_device_properties_cb =
+ remote_test_device_properties_cb,
+ .expected_cb_count = 3,
+ .expected_properties = remote_getprop_scanmode_props,
+ .expected_adapter_status = BT_STATUS_FAIL,
+};
+
static bt_callbacks_t bt_callbacks = {
.size = sizeof(bt_callbacks),
.adapter_state_changed_cb = adapter_state_changed_cb,
@@ -2082,6 +2103,15 @@ static void test_dev_getprop_servrec_fail(const void *test_data)
data->if_bluetooth->start_discovery();
}
+static void test_dev_getprop_scanmode_fail(const void *test_data)
+{
+ struct test_data *data = tester_get_data();
+
+ init_test_conditions(data);
+
+ data->if_bluetooth->start_discovery();
+}
+
/* Test Socket HAL */
static void adapter_socket_state_changed_cb(bt_state_t state)
@@ -2728,6 +2758,11 @@ int main(int argc, char *argv[])
setup_enabled_adapter,
test_dev_getprop_servrec_fail, teardown);
+ test_bredrle("Bluetooth Device Get SCAN_MODE - Fail",
+ &bt_dev_getprop_scanmode_fail_test,
+ setup_enabled_adapter,
+ test_dev_getprop_scanmode_fail, teardown);
+
test_bredrle("Socket Init", NULL, setup_socket_interface,
test_dummy, teardown);
--
1.8.5.2
^ permalink raw reply related
* [PATCH v2 10/15] android/tester: Add get device SERVREC property fail test case
From: Grzegorz Kolodziejczyk @ 2014-01-14 13:54 UTC (permalink / raw)
To: linux-bluetooth
In-Reply-To: <1389707686-30766-1-git-send-email-grzegorz.kolodziejczyk@tieto.com>
This adds device SERVICE RECORD property fail test case.
---
android/android-tester.c | 39 +++++++++++++++++++++++++++++++++++++++
1 file changed, 39 insertions(+)
diff --git a/android/android-tester.c b/android/android-tester.c
index b7309e7..8eddf2a 100644
--- a/android/android-tester.c
+++ b/android/android-tester.c
@@ -1463,6 +1463,31 @@ static const struct generic_data bt_dev_getprop_bdaddr_fail_test = {
.expected_adapter_status = BT_STATUS_FAIL,
};
+static bt_service_record_t remote_getprop_servrec_val = {
+ .uuid = { {0x00} },
+ .channel = 12,
+ .name = "bt_name",
+};
+
+static struct priority_property remote_getprop_servrec_props[] = {
+ {
+ .prop.type = BT_PROPERTY_SERVICE_RECORD,
+ .prop.val = &remote_getprop_servrec_val,
+ .prop.len = sizeof(remote_getprop_servrec_val),
+ },
+};
+
+static const struct generic_data bt_dev_getprop_servrec_fail_test = {
+ .expected_hal_cb.discovery_state_changed_cb =
+ remote_discovery_state_changed_cb,
+ .expected_hal_cb.device_found_cb = remote_get_property_device_found_cb,
+ .expected_hal_cb.remote_device_properties_cb =
+ remote_test_device_properties_cb,
+ .expected_cb_count = 3,
+ .expected_properties = remote_getprop_servrec_props,
+ .expected_adapter_status = BT_STATUS_FAIL,
+};
+
static bt_callbacks_t bt_callbacks = {
.size = sizeof(bt_callbacks),
.adapter_state_changed_cb = adapter_state_changed_cb,
@@ -2048,6 +2073,15 @@ static void test_dev_getprop_bdaddr_fail(const void *test_data)
data->if_bluetooth->start_discovery();
}
+static void test_dev_getprop_servrec_fail(const void *test_data)
+{
+ struct test_data *data = tester_get_data();
+
+ init_test_conditions(data);
+
+ data->if_bluetooth->start_discovery();
+}
+
/* Test Socket HAL */
static void adapter_socket_state_changed_cb(bt_state_t state)
@@ -2689,6 +2723,11 @@ int main(int argc, char *argv[])
setup_enabled_adapter,
test_dev_getprop_bdaddr_fail, teardown);
+ test_bredrle("Bluetooth Device Get SERVICE_RECORD - Fail",
+ &bt_dev_getprop_servrec_fail_test,
+ setup_enabled_adapter,
+ test_dev_getprop_servrec_fail, teardown);
+
test_bredrle("Socket Init", NULL, setup_socket_interface,
test_dummy, teardown);
--
1.8.5.2
^ permalink raw reply related
* [PATCH v2 09/15] android/tester: Add get device BDADDR property fail test case
From: Grzegorz Kolodziejczyk @ 2014-01-14 13:54 UTC (permalink / raw)
To: linux-bluetooth
In-Reply-To: <1389707686-30766-1-git-send-email-grzegorz.kolodziejczyk@tieto.com>
This adds device BDADDR property fail test case.
---
android/android-tester.c | 37 +++++++++++++++++++++++++++++++++++++
1 file changed, 37 insertions(+)
diff --git a/android/android-tester.c b/android/android-tester.c
index 0381028..b7309e7 100644
--- a/android/android-tester.c
+++ b/android/android-tester.c
@@ -1440,6 +1440,29 @@ static const struct generic_data bt_dev_getprop_timpestamp_success_test = {
.expected_adapter_status = BT_STATUS_SUCCESS,
};
+static bt_bdaddr_t remote_getprop_bdaddr_val = {
+ .address = { 0x00, 0xaa, 0x01, 0x00, 0x00, 0x00 }
+};
+
+static struct priority_property remote_getprop_bdaddr_props[] = {
+ {
+ .prop.type = BT_PROPERTY_BDADDR,
+ .prop.val = &remote_getprop_bdaddr_val,
+ .prop.len = sizeof(remote_getprop_bdaddr_val),
+ },
+};
+
+static const struct generic_data bt_dev_getprop_bdaddr_fail_test = {
+ .expected_hal_cb.discovery_state_changed_cb =
+ remote_discovery_state_changed_cb,
+ .expected_hal_cb.device_found_cb = remote_get_property_device_found_cb,
+ .expected_hal_cb.remote_device_properties_cb =
+ remote_test_device_properties_cb,
+ .expected_cb_count = 3,
+ .expected_properties = remote_getprop_bdaddr_props,
+ .expected_adapter_status = BT_STATUS_FAIL,
+};
+
static bt_callbacks_t bt_callbacks = {
.size = sizeof(bt_callbacks),
.adapter_state_changed_cb = adapter_state_changed_cb,
@@ -2016,6 +2039,15 @@ static void test_dev_getprop_timestamp_success(const void *test_data)
data->if_bluetooth->start_discovery();
}
+static void test_dev_getprop_bdaddr_fail(const void *test_data)
+{
+ struct test_data *data = tester_get_data();
+
+ init_test_conditions(data);
+
+ data->if_bluetooth->start_discovery();
+}
+
/* Test Socket HAL */
static void adapter_socket_state_changed_cb(bt_state_t state)
@@ -2652,6 +2684,11 @@ int main(int argc, char *argv[])
setup_enabled_adapter,
test_dev_getprop_timestamp_success, teardown);
+ test_bredrle("Bluetooth Device Get BDADDR - Fail",
+ &bt_dev_getprop_bdaddr_fail_test,
+ setup_enabled_adapter,
+ test_dev_getprop_bdaddr_fail, teardown);
+
test_bredrle("Socket Init", NULL, setup_socket_interface,
test_dummy, teardown);
--
1.8.5.2
^ permalink raw reply related
* [PATCH v2 08/15] android/tester: Add get device TIMESTAMP prop success test case
From: Grzegorz Kolodziejczyk @ 2014-01-14 13:54 UTC (permalink / raw)
To: linux-bluetooth
In-Reply-To: <1389707686-30766-1-git-send-email-grzegorz.kolodziejczyk@tieto.com>
This adds device TIMESTAMP property success test case.
---
android/android-tester.c | 34 ++++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
diff --git a/android/android-tester.c b/android/android-tester.c
index f69d269..0381028 100644
--- a/android/android-tester.c
+++ b/android/android-tester.c
@@ -1420,6 +1420,26 @@ static const struct generic_data bt_dev_getprop_rssi_success_test = {
.expected_adapter_status = BT_STATUS_SUCCESS,
};
+static struct priority_property remote_getprop_timestamp_props[] = {
+ {
+ .prop.type = BT_PROPERTY_REMOTE_DEVICE_TIMESTAMP,
+ .prop.val = NULL,
+ .prop.len = 4,
+ },
+};
+
+static const struct generic_data bt_dev_getprop_timpestamp_success_test = {
+ .expected_hal_cb.discovery_state_changed_cb =
+ remote_discovery_state_changed_cb,
+ .expected_hal_cb.device_found_cb = remote_get_property_device_found_cb,
+ .expected_hal_cb.remote_device_properties_cb =
+ remote_test_device_properties_cb,
+ .expected_cb_count = 3,
+ .expected_properties_num = 1,
+ .expected_properties = remote_getprop_timestamp_props,
+ .expected_adapter_status = BT_STATUS_SUCCESS,
+};
+
static bt_callbacks_t bt_callbacks = {
.size = sizeof(bt_callbacks),
.adapter_state_changed_cb = adapter_state_changed_cb,
@@ -1987,6 +2007,15 @@ static void test_dev_getprop_rssi_success(const void *test_data)
data->if_bluetooth->start_discovery();
}
+static void test_dev_getprop_timestamp_success(const void *test_data)
+{
+ struct test_data *data = tester_get_data();
+
+ init_test_conditions(data);
+
+ data->if_bluetooth->start_discovery();
+}
+
/* Test Socket HAL */
static void adapter_socket_state_changed_cb(bt_state_t state)
@@ -2618,6 +2647,11 @@ int main(int argc, char *argv[])
setup_enabled_adapter,
test_dev_getprop_rssi_success, teardown);
+ test_bredrle("Bluetooth Device Get TIMESTAMP - Success",
+ &bt_dev_getprop_timpestamp_success_test,
+ setup_enabled_adapter,
+ test_dev_getprop_timestamp_success, teardown);
+
test_bredrle("Socket Init", NULL, setup_socket_interface,
test_dummy, teardown);
--
1.8.5.2
^ permalink raw reply related
* [PATCH v2 07/15] android/tester: Add get device RSSI property success test case
From: Grzegorz Kolodziejczyk @ 2014-01-14 13:54 UTC (permalink / raw)
To: linux-bluetooth
In-Reply-To: <1389707686-30766-1-git-send-email-grzegorz.kolodziejczyk@tieto.com>
This adds device RSSI property success test case.
---
android/android-tester.c | 36 ++++++++++++++++++++++++++++++++++++
1 file changed, 36 insertions(+)
diff --git a/android/android-tester.c b/android/android-tester.c
index a63ed32..f69d269 100644
--- a/android/android-tester.c
+++ b/android/android-tester.c
@@ -1398,6 +1398,28 @@ static const struct generic_data bt_dev_getprop_tod_success_test = {
.expected_adapter_status = BT_STATUS_SUCCESS,
};
+static int32_t remote_getprop_rssi_val = -60;
+
+static struct priority_property remote_getprop_rssi_props[] = {
+ {
+ .prop.type = BT_PROPERTY_REMOTE_RSSI,
+ .prop.val = &remote_getprop_rssi_val,
+ .prop.len = sizeof(remote_getprop_rssi_val),
+ },
+};
+
+static const struct generic_data bt_dev_getprop_rssi_success_test = {
+ .expected_hal_cb.discovery_state_changed_cb =
+ remote_discovery_state_changed_cb,
+ .expected_hal_cb.device_found_cb = remote_get_property_device_found_cb,
+ .expected_hal_cb.remote_device_properties_cb =
+ remote_test_device_properties_cb,
+ .expected_cb_count = 3,
+ .expected_properties_num = 1,
+ .expected_properties = remote_getprop_rssi_props,
+ .expected_adapter_status = BT_STATUS_SUCCESS,
+};
+
static bt_callbacks_t bt_callbacks = {
.size = sizeof(bt_callbacks),
.adapter_state_changed_cb = adapter_state_changed_cb,
@@ -1956,6 +1978,15 @@ static void test_dev_getprop_tod_success(const void *test_data)
data->if_bluetooth->start_discovery();
}
+static void test_dev_getprop_rssi_success(const void *test_data)
+{
+ struct test_data *data = tester_get_data();
+
+ init_test_conditions(data);
+
+ data->if_bluetooth->start_discovery();
+}
+
/* Test Socket HAL */
static void adapter_socket_state_changed_cb(bt_state_t state)
@@ -2582,6 +2613,11 @@ int main(int argc, char *argv[])
setup_enabled_adapter,
test_dev_getprop_tod_success, teardown);
+ test_bredrle("Bluetooth Device Get RSSI - Success",
+ &bt_dev_getprop_rssi_success_test,
+ setup_enabled_adapter,
+ test_dev_getprop_rssi_success, teardown);
+
test_bredrle("Socket Init", NULL, setup_socket_interface,
test_dummy, teardown);
--
1.8.5.2
^ permalink raw reply related
* [PATCH v2 06/15] android/tester: Add get device TOD property success test case
From: Grzegorz Kolodziejczyk @ 2014-01-14 13:54 UTC (permalink / raw)
To: linux-bluetooth
In-Reply-To: <1389707686-30766-1-git-send-email-grzegorz.kolodziejczyk@tieto.com>
This adds device TOD property success test case.
---
android/android-tester.c | 36 ++++++++++++++++++++++++++++++++++++
1 file changed, 36 insertions(+)
diff --git a/android/android-tester.c b/android/android-tester.c
index c72b297..a63ed32 100644
--- a/android/android-tester.c
+++ b/android/android-tester.c
@@ -1376,6 +1376,28 @@ static const struct generic_data bt_dev_getprop_cod_success_test = {
.expected_adapter_status = BT_STATUS_SUCCESS,
};
+static bt_device_type_t remote_getprop_tod_val = BT_DEVICE_DEVTYPE_BREDR;
+
+static struct priority_property remote_getprop_tod_props[] = {
+ {
+ .prop.type = BT_PROPERTY_TYPE_OF_DEVICE,
+ .prop.val = &remote_getprop_tod_val,
+ .prop.len = sizeof(remote_getprop_tod_val),
+ },
+};
+
+static const struct generic_data bt_dev_getprop_tod_success_test = {
+ .expected_hal_cb.discovery_state_changed_cb =
+ remote_discovery_state_changed_cb,
+ .expected_hal_cb.device_found_cb = remote_get_property_device_found_cb,
+ .expected_hal_cb.remote_device_properties_cb =
+ remote_test_device_properties_cb,
+ .expected_cb_count = 3,
+ .expected_properties_num = 1,
+ .expected_properties = remote_getprop_tod_props,
+ .expected_adapter_status = BT_STATUS_SUCCESS,
+};
+
static bt_callbacks_t bt_callbacks = {
.size = sizeof(bt_callbacks),
.adapter_state_changed_cb = adapter_state_changed_cb,
@@ -1925,6 +1947,15 @@ static void test_dev_getprop_cod_success(const void *test_data)
data->if_bluetooth->start_discovery();
}
+static void test_dev_getprop_tod_success(const void *test_data)
+{
+ struct test_data *data = tester_get_data();
+
+ init_test_conditions(data);
+
+ data->if_bluetooth->start_discovery();
+}
+
/* Test Socket HAL */
static void adapter_socket_state_changed_cb(bt_state_t state)
@@ -2546,6 +2577,11 @@ int main(int argc, char *argv[])
setup_enabled_adapter,
test_dev_getprop_cod_success, teardown);
+ test_bredrle("Bluetooth Device Get TOD - Success",
+ &bt_dev_getprop_tod_success_test,
+ setup_enabled_adapter,
+ test_dev_getprop_tod_success, teardown);
+
test_bredrle("Socket Init", NULL, setup_socket_interface,
test_dummy, teardown);
--
1.8.5.2
^ permalink raw reply related
* [PATCH v2 05/15] android/tester: Add get device COD property success test case
From: Grzegorz Kolodziejczyk @ 2014-01-14 13:54 UTC (permalink / raw)
To: linux-bluetooth
In-Reply-To: <1389707686-30766-1-git-send-email-grzegorz.kolodziejczyk@tieto.com>
This adds device COD property success test case.
---
android/android-tester.c | 36 ++++++++++++++++++++++++++++++++++++
1 file changed, 36 insertions(+)
diff --git a/android/android-tester.c b/android/android-tester.c
index dbfde85..c72b297 100644
--- a/android/android-tester.c
+++ b/android/android-tester.c
@@ -1354,6 +1354,28 @@ static const struct generic_data bt_dev_getprop_uuids_success_test = {
.expected_adapter_status = BT_STATUS_SUCCESS,
};
+static uint32_t remote_getprop_cod_val = 0;
+
+static struct priority_property remote_getprop_cod_props[] = {
+ {
+ .prop.type = BT_PROPERTY_CLASS_OF_DEVICE,
+ .prop.val = &remote_getprop_cod_val,
+ .prop.len = sizeof(remote_getprop_cod_val),
+ },
+};
+
+static const struct generic_data bt_dev_getprop_cod_success_test = {
+ .expected_hal_cb.discovery_state_changed_cb =
+ remote_discovery_state_changed_cb,
+ .expected_hal_cb.device_found_cb = remote_get_property_device_found_cb,
+ .expected_hal_cb.remote_device_properties_cb =
+ remote_test_device_properties_cb,
+ .expected_cb_count = 3,
+ .expected_properties_num = 1,
+ .expected_properties = remote_getprop_cod_props,
+ .expected_adapter_status = BT_STATUS_SUCCESS,
+};
+
static bt_callbacks_t bt_callbacks = {
.size = sizeof(bt_callbacks),
.adapter_state_changed_cb = adapter_state_changed_cb,
@@ -1894,6 +1916,15 @@ static void test_dev_getprop_uuids_success(const void *test_data)
data->if_bluetooth->start_discovery();
}
+static void test_dev_getprop_cod_success(const void *test_data)
+{
+ struct test_data *data = tester_get_data();
+
+ init_test_conditions(data);
+
+ data->if_bluetooth->start_discovery();
+}
+
/* Test Socket HAL */
static void adapter_socket_state_changed_cb(bt_state_t state)
@@ -2510,6 +2541,11 @@ int main(int argc, char *argv[])
setup_enabled_adapter,
test_dev_getprop_uuids_success, teardown);
+ test_bredrle("Bluetooth Device Get COD - Success",
+ &bt_dev_getprop_cod_success_test,
+ setup_enabled_adapter,
+ test_dev_getprop_cod_success, teardown);
+
test_bredrle("Socket Init", NULL, setup_socket_interface,
test_dummy, teardown);
--
1.8.5.2
^ permalink raw reply related
* [PATCH v2 04/15] android/tester: Add get device UUIDS property success test case
From: Grzegorz Kolodziejczyk @ 2014-01-14 13:54 UTC (permalink / raw)
To: linux-bluetooth
In-Reply-To: <1389707686-30766-1-git-send-email-grzegorz.kolodziejczyk@tieto.com>
This adds device UUIDS property success test case.
---
android/android-tester.c | 34 ++++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
diff --git a/android/android-tester.c b/android/android-tester.c
index bddcf7c..dbfde85 100644
--- a/android/android-tester.c
+++ b/android/android-tester.c
@@ -1334,6 +1334,26 @@ static const struct generic_data bt_dev_getprop_bdname_success_test = {
.expected_adapter_status = BT_STATUS_SUCCESS,
};
+static struct priority_property remote_getprop_uuids_props[] = {
+ {
+ .prop.type = BT_PROPERTY_UUIDS,
+ .prop.val = NULL,
+ .prop.len = 0,
+ },
+};
+
+static const struct generic_data bt_dev_getprop_uuids_success_test = {
+ .expected_hal_cb.discovery_state_changed_cb =
+ remote_discovery_state_changed_cb,
+ .expected_hal_cb.device_found_cb = remote_get_property_device_found_cb,
+ .expected_hal_cb.remote_device_properties_cb =
+ remote_test_device_properties_cb,
+ .expected_cb_count = 3,
+ .expected_properties_num = 1,
+ .expected_properties = remote_getprop_uuids_props,
+ .expected_adapter_status = BT_STATUS_SUCCESS,
+};
+
static bt_callbacks_t bt_callbacks = {
.size = sizeof(bt_callbacks),
.adapter_state_changed_cb = adapter_state_changed_cb,
@@ -1865,6 +1885,15 @@ static void test_dev_getprop_bdname_success(const void *test_data)
data->if_bluetooth->start_discovery();
}
+static void test_dev_getprop_uuids_success(const void *test_data)
+{
+ struct test_data *data = tester_get_data();
+
+ init_test_conditions(data);
+
+ data->if_bluetooth->start_discovery();
+}
+
/* Test Socket HAL */
static void adapter_socket_state_changed_cb(bt_state_t state)
@@ -2476,6 +2505,11 @@ int main(int argc, char *argv[])
setup_enabled_adapter,
test_dev_getprop_bdname_success, teardown);
+ test_bredrle("Bluetooth Device Get UUIDS - Success",
+ &bt_dev_getprop_uuids_success_test,
+ setup_enabled_adapter,
+ test_dev_getprop_uuids_success, teardown);
+
test_bredrle("Socket Init", NULL, setup_socket_interface,
test_dummy, teardown);
--
1.8.5.2
^ permalink raw reply related
* [PATCH v2 03/15] android/tester: Add get device BDNAME property success test case
From: Grzegorz Kolodziejczyk @ 2014-01-14 13:54 UTC (permalink / raw)
To: linux-bluetooth
In-Reply-To: <1389707686-30766-1-git-send-email-grzegorz.kolodziejczyk@tieto.com>
This adds device BDNAME property success test case.
---
android/android-tester.c | 57 ++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 57 insertions(+)
diff --git a/android/android-tester.c b/android/android-tester.c
index ba9af0f..bddcf7c 100644
--- a/android/android-tester.c
+++ b/android/android-tester.c
@@ -728,6 +728,27 @@ static void remote_getprops_device_found_cb(int num_properties,
data->if_bluetooth->get_remote_device_properties(&remote_addr);
}
+static void remote_get_property_device_found_cb(int num_properties,
+ bt_property_t *properties)
+{
+ struct test_data *data = tester_get_data();
+ const struct generic_data *test = data->test_data;
+ bt_status_t status;
+ uint8_t *bdaddr = (uint8_t *)hciemu_get_client_bdaddr(data->hciemu);
+ bt_bdaddr_t remote_addr;
+
+ const bt_property_t prop = test->expected_properties[0].prop;
+
+ bdaddr2android((const bdaddr_t *)bdaddr, &remote_addr.address);
+
+ if (data->cb_count == 2)
+ data->cb_count--;
+
+ status = data->if_bluetooth->get_remote_device_property(&remote_addr,
+ prop.type);
+ check_expected_status(status);
+}
+
static void device_found_cb(int num_properties, bt_property_t *properties)
{
struct test_data *data = tester_get_data();
@@ -1291,6 +1312,28 @@ static const struct generic_data bt_dev_getprops_success_test = {
.expected_adapter_status = BT_STATUS_NOT_EXPECTED,
};
+static const char remote_getprop_bdname_val[] = "00:AA:01:01:00:00";
+
+static struct priority_property remote_getprop_bdname_props[] = {
+ {
+ .prop.type = BT_PROPERTY_BDNAME,
+ .prop.val = &remote_getprop_bdname_val,
+ .prop.len = sizeof(remote_getprop_bdname_val) - 1,
+ },
+};
+
+static const struct generic_data bt_dev_getprop_bdname_success_test = {
+ .expected_hal_cb.discovery_state_changed_cb =
+ remote_discovery_state_changed_cb,
+ .expected_hal_cb.device_found_cb = remote_get_property_device_found_cb,
+ .expected_hal_cb.remote_device_properties_cb =
+ remote_test_device_properties_cb,
+ .expected_cb_count = 3,
+ .expected_properties_num = 1,
+ .expected_properties = remote_getprop_bdname_props,
+ .expected_adapter_status = BT_STATUS_SUCCESS,
+};
+
static bt_callbacks_t bt_callbacks = {
.size = sizeof(bt_callbacks),
.adapter_state_changed_cb = adapter_state_changed_cb,
@@ -1813,6 +1856,15 @@ static void test_dev_getprops_success(const void *test_data)
data->if_bluetooth->start_discovery();
}
+static void test_dev_getprop_bdname_success(const void *test_data)
+{
+ struct test_data *data = tester_get_data();
+
+ init_test_conditions(data);
+
+ data->if_bluetooth->start_discovery();
+}
+
/* Test Socket HAL */
static void adapter_socket_state_changed_cb(bt_state_t state)
@@ -2419,6 +2471,11 @@ int main(int argc, char *argv[])
setup_enabled_adapter,
test_dev_getprops_success, teardown);
+ test_bredrle("Bluetooth Device Get BDNAME - Success",
+ &bt_dev_getprop_bdname_success_test,
+ setup_enabled_adapter,
+ test_dev_getprop_bdname_success, teardown);
+
test_bredrle("Socket Init", NULL, setup_socket_interface,
test_dummy, teardown);
--
1.8.5.2
^ permalink raw reply related
* [PATCH v2 02/15] android/tester: Add get device properties success test case
From: Grzegorz Kolodziejczyk @ 2014-01-14 13:54 UTC (permalink / raw)
To: linux-bluetooth
In-Reply-To: <1389707686-30766-1-git-send-email-grzegorz.kolodziejczyk@tieto.com>
This adds device properties success test case.
---
android/android-tester.c | 125 ++++++++++++++++++++++++++++++++++++++++++++++-
1 file changed, 124 insertions(+), 1 deletion(-)
diff --git a/android/android-tester.c b/android/android-tester.c
index a9dab69..ba9af0f 100644
--- a/android/android-tester.c
+++ b/android/android-tester.c
@@ -630,6 +630,20 @@ static void discovery_device_found_state_changed_cb(bt_discovery_state_t state)
}
}
+static void remote_discovery_state_changed_cb(bt_discovery_state_t state)
+{
+ struct test_data *data = tester_get_data();
+
+ if (state == BT_DISCOVERY_STARTED && data->cb_count == 3) {
+ data->cb_count--;
+ return;
+ }
+ if (state == BT_DISCOVERY_STOPPED && data->cb_count == 1) {
+ data->cb_count--;
+ check_cb_count();
+ }
+}
+
static void discovery_state_changed_cb(bt_discovery_state_t state)
{
struct test_data *data = tester_get_data();
@@ -699,6 +713,21 @@ static void discovery_device_found_cb(int num_properties,
}
}
+static void remote_getprops_device_found_cb(int num_properties,
+ bt_property_t *properties)
+{
+ struct test_data *data = tester_get_data();
+ uint8_t *bdaddr = (uint8_t *)hciemu_get_client_bdaddr(data->hciemu);
+ bt_bdaddr_t remote_addr;
+
+ bdaddr2android((const bdaddr_t *)bdaddr, &remote_addr.address);
+
+ if (data->cb_count == 2)
+ data->cb_count--;
+
+ data->if_bluetooth->get_remote_device_properties(&remote_addr);
+}
+
static void device_found_cb(int num_properties, bt_property_t *properties)
{
struct test_data *data = tester_get_data();
@@ -734,6 +763,30 @@ static void adapter_properties_cb(bt_status_t status, int num_properties,
}
}
+static void remote_test_device_properties_cb(bt_status_t status,
+ bt_bdaddr_t *bd_addr, int num_properties,
+ bt_property_t *properties)
+{
+ int i;
+
+ for (i = 0; i < num_properties; i++)
+ check_expected_property(properties[i]);
+}
+
+static void remote_device_properties_cb(bt_status_t status,
+ bt_bdaddr_t *bd_addr, int num_properties,
+ bt_property_t *properties)
+{
+ struct test_data *data = tester_get_data();
+ const struct generic_data *test = data->test_data;
+
+ if (data->test_init_done &&
+ test->expected_hal_cb.remote_device_properties_cb) {
+ test->expected_hal_cb.remote_device_properties_cb(status,
+ bd_addr, num_properties, properties);
+ }
+}
+
static bt_bdaddr_t enable_done_bdaddr_val = { {0x00} };
static const char enable_done_bdname_val[] = "BlueZ for Android";
static bt_uuid_t enable_done_uuids_val = {
@@ -1182,11 +1235,67 @@ static const struct generic_data bluetooth_discovery_device_found_test = {
.expected_adapter_status = BT_STATUS_NOT_EXPECTED,
};
+static const char remote_get_properties_bdname_val[] = "00:AA:01:01:00:00";
+static uint32_t remote_get_properties_cod_val = 0;
+static bt_device_type_t remote_get_properties_tod_val = BT_DEVICE_DEVTYPE_BREDR;
+static int32_t remote_get_properties_rssi_val = -60;
+
+static struct priority_property remote_getprops_props[] = {
+ {
+ .prop.type = BT_PROPERTY_BDNAME,
+ .prop.val = &remote_get_properties_bdname_val,
+ .prop.len = sizeof(remote_get_properties_bdname_val) - 1,
+ .prio = 1,
+ },
+ {
+ .prop.type = BT_PROPERTY_UUIDS,
+ .prop.val = NULL,
+ .prop.len = 0,
+ .prio = 2,
+ },
+ {
+ .prop.type = BT_PROPERTY_CLASS_OF_DEVICE,
+ .prop.val = &remote_get_properties_cod_val,
+ .prop.len = sizeof(remote_get_properties_cod_val),
+ .prio = 3,
+ },
+ {
+ .prop.type = BT_PROPERTY_TYPE_OF_DEVICE,
+ .prop.val = &remote_get_properties_tod_val,
+ .prop.len = sizeof(remote_get_properties_tod_val),
+ .prio = 4,
+ },
+ {
+ .prop.type = BT_PROPERTY_REMOTE_RSSI,
+ .prop.val = &remote_get_properties_rssi_val,
+ .prop.len = sizeof(remote_get_properties_rssi_val),
+ .prio = 5,
+ },
+ {
+ .prop.type = BT_PROPERTY_REMOTE_DEVICE_TIMESTAMP,
+ .prop.val = NULL,
+ .prop.len = 4,
+ .prio = 6,
+ },
+};
+
+static const struct generic_data bt_dev_getprops_success_test = {
+ .expected_hal_cb.discovery_state_changed_cb =
+ remote_discovery_state_changed_cb,
+ .expected_hal_cb.device_found_cb = remote_getprops_device_found_cb,
+ .expected_hal_cb.remote_device_properties_cb =
+ remote_test_device_properties_cb,
+ .expected_cb_count = 3,
+ .expected_properties_num = 6,
+ .expected_properties = remote_getprops_props,
+ .expected_adapter_status = BT_STATUS_NOT_EXPECTED,
+};
+
static bt_callbacks_t bt_callbacks = {
.size = sizeof(bt_callbacks),
.adapter_state_changed_cb = adapter_state_changed_cb,
.adapter_properties_cb = adapter_properties_cb,
- .remote_device_properties_cb = NULL,
+ .remote_device_properties_cb = remote_device_properties_cb,
.device_found_cb = device_found_cb,
.discovery_state_changed_cb = discovery_state_changed_cb,
.pin_request_cb = NULL,
@@ -1695,6 +1804,15 @@ static void test_discovery_device_found(const void *test_data)
data->if_bluetooth->start_discovery();
}
+static void test_dev_getprops_success(const void *test_data)
+{
+ struct test_data *data = tester_get_data();
+
+ init_test_conditions(data);
+
+ data->if_bluetooth->start_discovery();
+}
+
/* Test Socket HAL */
static void adapter_socket_state_changed_cb(bt_state_t state)
@@ -2296,6 +2414,11 @@ int main(int argc, char *argv[])
setup_enabled_adapter,
test_discovery_device_found, teardown);
+ test_bredrle("Bluetooth Device Get Props - Success",
+ &bt_dev_getprops_success_test,
+ setup_enabled_adapter,
+ test_dev_getprops_success, teardown);
+
test_bredrle("Socket Init", NULL, setup_socket_interface,
test_dummy, teardown);
--
1.8.5.2
^ permalink raw reply related
* [PATCH v2 01/15] android/tester: Fix for asynchronous test case condition check
From: Grzegorz Kolodziejczyk @ 2014-01-14 13:54 UTC (permalink / raw)
To: linux-bluetooth
This patch fixes checking the state of test case. Due to asynchronous of
callbacks during state check of every single condition, state can be
checked double time by callback condition check with pass status already
set in meantime. Now state is kept as one decremented int.
To pass it must be equal zero and cannot be checked set again.
Change-Id: I595c9f9606f1da41218a85c62c07881bd7bd8ee8
---
android/android-tester.c | 44 ++++++++++++++++++++------------------------
1 file changed, 20 insertions(+), 24 deletions(-)
diff --git a/android/android-tester.c b/android/android-tester.c
index 6f18e5c..a9dab69 100644
--- a/android/android-tester.c
+++ b/android/android-tester.c
@@ -88,14 +88,13 @@ struct test_data {
const btsock_interface_t *if_sock;
const bthh_interface_t *if_hid;
- bool mgmt_settings_set;
- bool cb_count_checked;
- bool status_checked;
- bool property_checked;
+ int conditions_left;
/* Set to true if test conditions are initialized */
bool test_init_done;
+ bool test_result_set;
+
int cb_count;
GSList *expected_properties_list;
};
@@ -106,20 +105,15 @@ static void test_update_state(void)
{
struct test_data *data = tester_get_data();
- if (!(data->cb_count_checked))
- return;
- if (!(data->mgmt_settings_set))
- return;
- if (!(data->status_checked))
- return;
- if (!(data->property_checked))
- return;
- tester_test_passed();
+ if (data->conditions_left == 0 && !data->test_result_set) {
+ data->test_result_set = true;
+ tester_test_passed();
+ }
}
static void test_mgmt_settings_set(struct test_data *data)
{
- data->mgmt_settings_set = true;
+ data->conditions_left--;
test_update_state();
}
@@ -155,7 +149,7 @@ static void check_cb_count(void)
return;
if (data->cb_count == 0) {
- data->cb_count_checked = true;
+ data->conditions_left--;
test_update_state();
}
}
@@ -186,7 +180,7 @@ static void expected_status_init(struct test_data *data)
const struct generic_data *test_data = data->test_data;
if (test_data->expected_adapter_status == BT_STATUS_NOT_EXPECTED)
- data->status_checked = true;
+ data->conditions_left--;
}
static void test_property_init(struct test_data *data)
@@ -195,8 +189,8 @@ static void test_property_init(struct test_data *data)
GSList *l = data->expected_properties_list;
int i;
- if (!test_data->expected_hal_cb.adapter_properties_cb) {
- data->property_checked = true;
+ if (!test_data->expected_properties_num) {
+ data->conditions_left--;
return;
}
@@ -210,6 +204,8 @@ static void init_test_conditions(struct test_data *data)
{
data->test_init_done = true;
+ data->conditions_left = 4;
+
expected_cb_count_init(data);
mgmt_cb_init(data);
expected_status_init(data);
@@ -222,7 +218,7 @@ static void check_expected_status(uint8_t status)
const struct generic_data *test_data = data->test_data;
if (test_data->expected_adapter_status == status) {
- data->status_checked = true;
+ data->conditions_left--;
test_update_state();
} else
tester_test_failed();
@@ -278,6 +274,9 @@ static void check_expected_property(bt_property_t received_prop)
GSList *l = data->expected_properties_list;
GSList *found_exp_prop;
+ if (!g_slist_length(l))
+ return;
+
found_exp_prop = g_slist_find_custom(l, &received_prop,
&locate_property);
@@ -293,15 +292,13 @@ static void check_expected_property(bt_property_t received_prop)
if (g_slist_length(l))
return;
- data->property_checked = true;
+ data->conditions_left--;
test_update_state();
}
static bool check_test_property(bt_property_t received_prop,
bt_property_t expected_prop)
{
- struct test_data *data = tester_get_data();
-
if (expected_prop.type && (expected_prop.type != received_prop.type))
return false;
if (expected_prop.len && (expected_prop.len != received_prop.len))
@@ -310,7 +307,7 @@ static bool check_test_property(bt_property_t received_prop,
expected_prop.len))
return false;
- return data->property_checked = true;
+ return true;
}
static void read_info_callback(uint8_t status, uint16_t length,
@@ -1444,7 +1441,6 @@ static void test_getprop_bdname_success(const void *test_data)
init_test_conditions(data);
adapter_status = data->if_bluetooth->set_adapter_property(prop);
- check_expected_status(adapter_status);
adapter_status = data->if_bluetooth->get_adapter_property((*prop).type);
check_expected_status(adapter_status);
--
1.8.5.2
^ permalink raw reply related
page: next (older) | prev (newer) | latest
- recent:[subjects (threaded)|topics (new)|topics (active)]
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox