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

Issue 2421713002: arc: bluetooth: Expose missing advertise data. (Closed)

Created:
4 years, 2 months ago by puthik_chromium
Modified:
4 years, 1 month ago
CC:
chromium-reviews, elijahtaylor+arcwatch_chromium.org, hidehiko+watch_chromium.org, lhchavez+watch_chromium.org, ortuno+watch_chromium.org, scheib+watch_chromium.org, yusukes+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

bluetooth: Expose missing advertise data This CL does the following. - Make dbus Property support unorder_map<uint16_t, vector<uint8_t>> for Manufacturer Data. - Expose Manufacturer Data and Bluetooth Flags from BlueZ device property in bluez::BluetoothDeviceClient. - Add new BluetoothDevice and BluetoothDeviceBluZ API to query Manufacturer Data and Bluetooth Flags. This required upstream BlueZ patch at http://git.kernel.org/cgit/bluetooth/bluez.git/commit/?id=f96e4a9f http://git.kernel.org/cgit/bluetooth/bluez.git/commit/?id=9caa0457 And the system_api patch at http://crosreview.com/398418 BUG=618442 TEST=nRF Connect App in minnie can see all advertise data Committed: https://crrev.com/23399e4540ec7e6e17fcf03fd45248d7e947caf5 Cr-Commit-Position: refs/heads/master@{#429980}

Patch Set 1 #

Total comments: 26

Patch Set 2 : Split arc++ patch / Fix ortuno comment #

Patch Set 3 : fix comment #

Total comments: 16

Patch Set 4 : Make dbus interface match upstream #

Patch Set 5 : Fix comment #

Total comments: 5

Patch Set 6 : Add BlueZ unittests / more comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+369 lines, -2 lines) Patch
M dbus/property.h View 1 chunk +11 lines, -0 lines 0 comments Download
M dbus/property.cc View 3 chunks +66 lines, -1 line 0 comments Download
M dbus/property_unittest.cc View 1 chunk +55 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth_adapter.h View 1 2 3 1 chunk +7 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth_device.h View 1 2 3 4 5 chunks +45 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth_device.cc View 1 2 3 2 chunks +27 lines, -0 lines 0 comments Download
M device/bluetooth/bluez/bluetooth_adapter_bluez.cc View 1 2 3 2 chunks +7 lines, -1 line 0 comments Download
M device/bluetooth/bluez/bluetooth_bluez_unittest.cc View 1 2 3 4 5 1 chunk +98 lines, -0 lines 0 comments Download
M device/bluetooth/bluez/bluetooth_device_bluez.h View 1 2 3 2 chunks +13 lines, -0 lines 0 comments Download
M device/bluetooth/bluez/bluetooth_device_bluez.cc View 1 2 3 4 5 1 chunk +28 lines, -0 lines 0 comments Download
M device/bluetooth/dbus/bluetooth_device_client.h View 1 2 3 4 2 chunks +8 lines, -0 lines 0 comments Download
M device/bluetooth/dbus/bluetooth_device_client.cc View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 34 (17 generated)
puthik_chromium
BlueZ patch at http://crosreview.com/398225 Another approach to this is to make BlueZ expose raw advertising ...
4 years, 2 months ago (2016-10-13 23:12:20 UTC) #2
ortuno
Please separate adding new features to device/bluetooth from arc++ changes. https://codereview.chromium.org/2421713002/diff/1/device/bluetooth/bluetooth_device.h File device/bluetooth/bluetooth_device.h (right): https://codereview.chromium.org/2421713002/diff/1/device/bluetooth/bluetooth_device.h#newcode323 ...
4 years, 2 months ago (2016-10-14 00:15:10 UTC) #3
Rahul Chaturvedi
As ortuno@ mentioned; please split the ARC++ changes from the BlueZ changes using dependent patches. ...
4 years, 2 months ago (2016-10-17 20:41:21 UTC) #4
puthik_chromium
https://codereview.chromium.org/2421713002/diff/1/device/bluetooth/bluetooth_device.h File device/bluetooth/bluetooth_device.h (right): https://codereview.chromium.org/2421713002/diff/1/device/bluetooth/bluetooth_device.h#newcode323 device/bluetooth/bluetooth_device.h:323: // Returns advertised Manufacturer Data. Keys are 16 bits ...
4 years, 2 months ago (2016-10-17 23:30:32 UTC) #7
ortuno
https://codereview.chromium.org/2421713002/diff/1/device/bluetooth/bluez/bluetooth_adapter_bluez.cc File device/bluetooth/bluez/bluetooth_adapter_bluez.cc (right): https://codereview.chromium.org/2421713002/diff/1/device/bluetooth/bluez/bluetooth_adapter_bluez.cc#newcode607 device/bluetooth/bluez/bluetooth_adapter_bluez.cc:607: property_name == properties->manufacturer_data.name() || On 2016/10/17 at 23:30:32, puthik_chromium ...
4 years, 2 months ago (2016-10-18 01:41:19 UTC) #9
puthik_chromium
Chrome OS switch to BlueZ 5.41 branch now which supports this feature. https://codereview.chromium.org/2421713002/diff/1/device/bluetooth/bluez/bluetooth_adapter_bluez.cc File device/bluetooth/bluez/bluetooth_adapter_bluez.cc ...
4 years, 1 month ago (2016-11-02 23:20:38 UTC) #10
ortuno
https://codereview.chromium.org/2421713002/diff/80001/device/bluetooth/bluez/bluetooth_device_bluez.cc File device/bluetooth/bluez/bluetooth_device_bluez.cc (right): https://codereview.chromium.org/2421713002/diff/80001/device/bluetooth/bluez/bluetooth_device_bluez.cc#newcode631 device/bluetooth/bluez/bluetooth_device_bluez.cc:631: advertising_data_flags_ = properties->advertising_data_flags.value()[0]; Could you comment why we only ...
4 years, 1 month ago (2016-11-02 23:36:48 UTC) #12
puthik_chromium
https://codereview.chromium.org/2421713002/diff/80001/device/bluetooth/dbus/bluetooth_device_client.h File device/bluetooth/dbus/bluetooth_device_client.h (right): https://codereview.chromium.org/2421713002/diff/80001/device/bluetooth/dbus/bluetooth_device_client.h#newcode126 device/bluetooth/dbus/bluetooth_device_client.h:126: dbus::Property<std::vector<uint8_t>> advertising_data_flags; On 2016/11/02 23:36:48, ortuno wrote: > q: ...
4 years, 1 month ago (2016-11-02 23:44:13 UTC) #13
ortuno
lgtm but please add a comment to bluetooth_device_bluez to indicate why you only use the ...
4 years, 1 month ago (2016-11-02 23:48:13 UTC) #14
puthik_chromium
I also added BTDeviceBlueZ unittests for the new methods. https://codereview.chromium.org/2421713002/diff/80001/device/bluetooth/bluez/bluetooth_device_bluez.cc File device/bluetooth/bluez/bluetooth_device_bluez.cc (right): https://codereview.chromium.org/2421713002/diff/80001/device/bluetooth/bluez/bluetooth_device_bluez.cc#newcode631 device/bluetooth/bluez/bluetooth_device_bluez.cc:631: ...
4 years, 1 month ago (2016-11-03 20:40:40 UTC) #15
puthik_chromium
+stevenjb for dbus Look like hashimoto@ will be OoO this week and next week. So ...
4 years, 1 month ago (2016-11-03 20:44:42 UTC) #17
stevenjb
dbus/ owner lgtm
4 years, 1 month ago (2016-11-04 00:06:27 UTC) #23
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/2421713002/70012
4 years, 1 month ago (2016-11-04 00:09:05 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/325313)
4 years, 1 month ago (2016-11-04 04:12:54 UTC) #28
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/2421713002/70012
4 years, 1 month ago (2016-11-04 17:40:21 UTC) #30
commit-bot: I haz the power
Committed patchset #6 (id:70012)
4 years, 1 month ago (2016-11-04 19:38:46 UTC) #32
commit-bot: I haz the power
4 years, 1 month ago (2016-11-04 20:00:29 UTC) #34
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/23399e4540ec7e6e17fcf03fd45248d7e947caf5
Cr-Commit-Position: refs/heads/master@{#429980}

Powered by Google App Engine
This is Rietveld 408576698