Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(86)

Issue 2369423003: bluetooth: Expose service data from BlueZ (Closed)

Created:
4 years, 2 months ago by puthik_chromium
Modified:
4 years, 2 months ago
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

bluetooth: Expose service data from BlueZ BlueZ exposed Bluetooth device's ServiceData as a{sv} property[1] where the dict value variant is an array of byte. This CL exposes that to upper layer by - Add support to map<string, vector<uint8_t>> in dbus::Property - Add new service_data property in BluetoothDeviceClient - Implement GetServiceDataUUIDs() and GetServiceDataForUUID() in BluetoothDeviceBlueZ - Fix misc style issues in original code to make linter happy [1] http://git.kernel.org/cgit/bluetooth/bluez.git/tree/src/device.c#n2551 BUG=618442, 653310, b:28670943 TEST=Manually tested. Committed: https://crrev.com/0dd82b1c975662a10f34a53b3df56d98526b36d0 Cr-Commit-Position: refs/heads/master@{#423434}

Patch Set 1 #

Patch Set 2 : Change scope to not cover just dbus property #

Total comments: 9

Patch Set 3 : Use property changed approach / Add unit test #

Patch Set 4 : fix typo #

Total comments: 23

Patch Set 5 : Address ortuno comment (Better test / more comment) #

Patch Set 6 : More comment #

Total comments: 10

Patch Set 7 : Fix comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+246 lines, -2 lines) Patch
M dbus/property.h View 1 2 2 chunks +12 lines, -0 lines 0 comments Download
M dbus/property.cc View 1 2 3 chunks +67 lines, -0 lines 0 comments Download
M dbus/property_unittest.cc View 1 2 2 chunks +56 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth_device.h View 1 2 3 4 5 6 1 chunk +5 lines, -1 line 0 comments Download
M device/bluetooth/bluez/bluetooth_adapter_bluez.cc View 1 2 3 2 chunks +5 lines, -1 line 0 comments Download
M device/bluetooth/bluez/bluetooth_bluez_unittest.cc View 1 2 3 4 1 chunk +63 lines, -0 lines 0 comments Download
M device/bluetooth/bluez/bluetooth_device_bluez.h View 1 2 3 4 5 6 2 chunks +16 lines, -0 lines 0 comments Download
M device/bluetooth/bluez/bluetooth_device_bluez.cc View 1 2 3 4 5 6 1 chunk +12 lines, -0 lines 0 comments Download
M device/bluetooth/dbus/bluetooth_device_client.h View 1 2 3 4 2 chunks +6 lines, -0 lines 0 comments Download
M device/bluetooth/dbus/bluetooth_device_client.cc View 1 2 3 4 2 chunks +4 lines, -0 lines 0 comments Download

Messages

Total messages: 39 (17 generated)
puthik_chromium
4 years, 2 months ago (2016-09-27 18:54:55 UTC) #2
Rahul Chaturvedi
Ideally we should be adding code in the CL that is using that code. Any ...
4 years, 2 months ago (2016-09-27 19:05:20 UTC) #4
puthik_chromium
On 2016/09/27 19:05:20, Rahul Chaturvedi wrote: > Ideally we should be adding code in the ...
4 years, 2 months ago (2016-09-27 19:36:33 UTC) #5
puthik_chromium
+ortuno for BT owner Address Rahul's comment by add scope of the CL. Quick question ...
4 years, 2 months ago (2016-09-27 20:49:43 UTC) #8
Rahul Chaturvedi
quick comment. Will do a full pass later today. https://codereview.chromium.org/2369423003/diff/20001/device/bluetooth/bluez/bluetooth_device_bluez.cc File device/bluetooth/bluez/bluetooth_device_bluez.cc (right): https://codereview.chromium.org/2369423003/diff/20001/device/bluetooth/bluez/bluetooth_device_bluez.cc#newcode802 device/bluetooth/bluez/bluetooth_device_bluez.cc:802: ...
4 years, 2 months ago (2016-09-27 20:53:00 UTC) #11
puthik_chromium
https://codereview.chromium.org/2369423003/diff/20001/device/bluetooth/bluez/bluetooth_device_bluez.cc File device/bluetooth/bluez/bluetooth_device_bluez.cc (right): https://codereview.chromium.org/2369423003/diff/20001/device/bluetooth/bluez/bluetooth_device_bluez.cc#newcode802 device/bluetooth/bluez/bluetooth_device_bluez.cc:802: DCHECK_GE(num_connecting_calls_, 0); On 2016/09/27 20:52:59, Rahul Chaturvedi wrote: > ...
4 years, 2 months ago (2016-09-27 21:04:07 UTC) #12
hashimoto
dbus/property.cc lgtm with a nit https://codereview.chromium.org/2369423003/diff/20001/dbus/property.cc File dbus/property.cc (right): https://codereview.chromium.org/2369423003/diff/20001/dbus/property.cc#newcode672 dbus/property.cc:672: MessageReader variant_reader(NULL); Please use ...
4 years, 2 months ago (2016-09-28 04:22:56 UTC) #15
ortuno
re UpdateAdvertisementData(). That's for platforms in which you get notified of each advertisement and you ...
4 years, 2 months ago (2016-09-28 08:39:24 UTC) #16
Rahul Chaturvedi
I'll defer to ortuno@ here for the review since he has more context here.
4 years, 2 months ago (2016-09-29 22:12:08 UTC) #17
puthik_chromium
Change this to use property changed signal to update advertisement_data_ instead. Also this depends on ...
4 years, 2 months ago (2016-10-05 00:11:33 UTC) #20
ortuno
https://codereview.chromium.org/2369423003/diff/60001/device/bluetooth/bluez/bluetooth_bluez_unittest.cc File device/bluetooth/bluez/bluetooth_bluez_unittest.cc (right): https://codereview.chromium.org/2369423003/diff/60001/device/bluetooth/bluez/bluetooth_bluez_unittest.cc#newcode4493 device/bluetooth/bluez/bluetooth_bluez_unittest.cc:4493: BluetoothAdapter::DeviceList devices = adapter_->GetDevices(); Just save a pointer to ...
4 years, 2 months ago (2016-10-05 06:27:10 UTC) #21
puthik_chromium
https://codereview.chromium.org/2369423003/diff/20001/device/bluetooth/bluez/bluetooth_device_bluez.cc File device/bluetooth/bluez/bluetooth_device_bluez.cc (right): https://codereview.chromium.org/2369423003/diff/20001/device/bluetooth/bluez/bluetooth_device_bluez.cc#newcode802 device/bluetooth/bluez/bluetooth_device_bluez.cc:802: DCHECK_GE(num_connecting_calls_, 0); On 2016/09/27 21:04:07, puthik_chromium wrote: > On ...
4 years, 2 months ago (2016-10-06 01:49:56 UTC) #23
puthik_chromium
4 years, 2 months ago (2016-10-06 02:00:46 UTC) #24
ortuno
lgtm bar some nits https://codereview.chromium.org/2369423003/diff/100001/device/bluetooth/bluetooth_device.h File device/bluetooth/bluetooth_device.h (right): https://codereview.chromium.org/2369423003/diff/100001/device/bluetooth/bluetooth_device.h#newcode329 device/bluetooth/bluetooth_device.h:329: // a device stops advertising ...
4 years, 2 months ago (2016-10-06 02:09:01 UTC) #25
puthik_chromium
https://codereview.chromium.org/2369423003/diff/100001/device/bluetooth/bluetooth_device.h File device/bluetooth/bluetooth_device.h (right): https://codereview.chromium.org/2369423003/diff/100001/device/bluetooth/bluetooth_device.h#newcode329 device/bluetooth/bluetooth_device.h:329: // a device stops advertising service data this function ...
4 years, 2 months ago (2016-10-06 02:26:12 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2369423003/120001
4 years, 2 months ago (2016-10-06 02:26:54 UTC) #29
hashimoto
Code under dbus/ was heavily changed since the last time I reviewed. Let me review ...
4 years, 2 months ago (2016-10-06 02:31:18 UTC) #31
puthik_chromium
On 2016/10/06 02:31:18, hashimoto wrote: > Code under dbus/ was heavily changed since the last ...
4 years, 2 months ago (2016-10-06 02:33:05 UTC) #32
hashimoto
lgtm++
4 years, 2 months ago (2016-10-06 04:28:50 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2369423003/120001
4 years, 2 months ago (2016-10-06 04:29:10 UTC) #35
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 2 months ago (2016-10-06 05:03:33 UTC) #37
commit-bot: I haz the power
4 years, 2 months ago (2016-10-06 05:05:46 UTC) #39
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/0dd82b1c975662a10f34a53b3df56d98526b36d0
Cr-Commit-Position: refs/heads/master@{#423434}

Powered by Google App Engine
This is Rietveld 408576698