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

Issue 1915803002: Bluetooth class changes for implementing local GATT attributes. (Closed)

Created:
4 years, 7 months ago by rkc
Modified:
4 years, 7 months ago
Reviewers:
scheib, ortuno
CC:
chromium-reviews, scheib+watch_chromium.org, ortuno+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Bluetooth class changes for implementing local GATT attributes. In this CL, we implement the changes to the platform independent and BlueZ specific class changes to support local GATT services. The major changes from the code in trunk are, .) Cleaning up of the classes and implementing all missing parts. .) Adding code to properly take ownership of attributes of all three kinds. .) Adding structure to the attributes to correctly setup the hierarchy expected (services <-- characteristics <-- descriptors). .) Addition of an AttributeDelegate to handle calls from DBus and wrappers to translate them to the BluetoothLocalGattService::Delegate. .) Cleanup in all the code touched. Part 1 of a 3 patch series: https://crrev.com/1915803002 Bluetooth class changes <<< https://crrev.com/1914893002 DBus class changes https://crrev.com/1919683002 Adapter changes + tests R=ortuno@chromium.org, scheib@chromium.org BUG=601935 Committed: https://crrev.com/a65ced97ca5fe61b342eeda935248175e1a6ab74 Cr-Commit-Position: refs/heads/master@{#390315}

Patch Set 1 #

Patch Set 2 : object paths fix #

Patch Set 3 : magic values fix #

Total comments: 16

Patch Set 4 : #

Total comments: 2

Patch Set 5 : #

Total comments: 12

Patch Set 6 : #

Total comments: 2

Patch Set 7 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+352 lines, -157 lines) Patch
M device/bluetooth/bluetooth_local_gatt_characteristic.h View 1 chunk +1 line, -2 lines 0 comments Download
M device/bluetooth/bluetooth_local_gatt_characteristic.cc View 1 2 3 1 chunk +12 lines, -11 lines 0 comments Download
M device/bluetooth/bluetooth_local_gatt_descriptor.h View 1 chunk +1 line, -2 lines 0 comments Download
M device/bluetooth/bluetooth_local_gatt_descriptor.cc View 1 2 3 1 chunk +10 lines, -9 lines 0 comments Download
M device/bluetooth/bluetooth_local_gatt_service.h View 1 2 3 4 5 3 chunks +11 lines, -15 lines 0 comments Download
M device/bluetooth/bluetooth_local_gatt_service.cc View 1 2 3 1 chunk +13 lines, -0 lines 0 comments Download
M device/bluetooth/bluez/bluetooth_gatt_characteristic_bluez.h View 1 2 3 4 5 1 chunk +1 line, -2 lines 0 comments Download
M device/bluetooth/bluez/bluetooth_gatt_characteristic_bluez.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M device/bluetooth/bluez/bluetooth_gatt_service_bluez.h View 1 2 3 4 5 3 chunks +5 lines, -6 lines 0 comments Download
M device/bluetooth/bluez/bluetooth_gatt_service_bluez.cc View 1 2 3 4 5 2 chunks +13 lines, -22 lines 0 comments Download
M device/bluetooth/bluez/bluetooth_local_gatt_characteristic_bluez.h View 1 2 3 4 5 6 2 chunks +41 lines, -5 lines 0 comments Download
M device/bluetooth/bluez/bluetooth_local_gatt_characteristic_bluez.cc View 1 2 3 4 5 1 chunk +60 lines, -3 lines 0 comments Download
M device/bluetooth/bluez/bluetooth_local_gatt_descriptor_bluez.h View 1 2 3 4 5 6 1 chunk +29 lines, -6 lines 0 comments Download
M device/bluetooth/bluez/bluetooth_local_gatt_descriptor_bluez.cc View 1 2 3 4 5 1 chunk +47 lines, -2 lines 0 comments Download
M device/bluetooth/bluez/bluetooth_local_gatt_service_bluez.h View 1 2 3 4 5 6 4 chunks +39 lines, -12 lines 0 comments Download
M device/bluetooth/bluez/bluetooth_local_gatt_service_bluez.cc View 1 2 3 4 5 4 chunks +44 lines, -37 lines 0 comments Download
M device/bluetooth/bluez/bluetooth_remote_gatt_service_bluez.cc View 1 2 3 4 5 1 chunk +1 line, -2 lines 0 comments Download
M device/bluetooth/dbus/fake_bluetooth_gatt_characteristic_client.cc View 1 2 8 chunks +22 lines, -19 lines 0 comments Download
M device/bluetooth/dbus/fake_bluetooth_gatt_descriptor_client.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 35 (14 generated)
rkc
4 years, 7 months ago (2016-04-25 00:31:16 UTC) #1
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1915803002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1915803002/1
4 years, 7 months ago (2016-04-25 00:50:21 UTC) #3
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/159695)
4 years, 7 months ago (2016-04-25 01:30:51 UTC) #5
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1915803002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1915803002/40001
4 years, 7 months ago (2016-04-25 19:10:44 UTC) #7
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-04-25 20:57:14 UTC) #9
scheib
There's too much going on in this patch and no tests, please keep changes more ...
4 years, 7 months ago (2016-04-26 06:03:33 UTC) #10
rkc
re: tests I am trying to follow two things here. a.) Break the CLs down ...
4 years, 7 months ago (2016-04-26 18:23:59 UTC) #11
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1915803002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1915803002/60001
4 years, 7 months ago (2016-04-26 19:01:58 UTC) #13
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-04-26 21:04:33 UTC) #15
scheib
On 2016/04/26 18:23:59, Rahul Chaturvedi wrote: > re: tests > I am trying to follow ...
4 years, 7 months ago (2016-04-27 05:13:00 UTC) #16
rkc
https://codereview.chromium.org/1915803002/diff/40001/device/bluetooth/bluez/bluetooth_gatt_service_bluez.h File device/bluetooth/bluez/bluetooth_gatt_service_bluez.h (right): https://codereview.chromium.org/1915803002/diff/40001/device/bluetooth/bluez/bluetooth_gatt_service_bluez.h#newcode28 device/bluetooth/bluez/bluetooth_gatt_service_bluez.h:28: class AttributeValueDelegate { On 2016/04/27 05:12:59, scheib wrote: > ...
4 years, 7 months ago (2016-04-27 19:41:06 UTC) #17
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1915803002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1915803002/80001
4 years, 7 months ago (2016-04-28 00:33:00 UTC) #20
scheib
https://codereview.chromium.org/1915803002/diff/80001/device/bluetooth/bluetooth_local_gatt_service.h File device/bluetooth/bluetooth_local_gatt_service.h (right): https://codereview.chromium.org/1915803002/diff/80001/device/bluetooth/bluetooth_local_gatt_service.h#newcode77 device/bluetooth/bluetooth_local_gatt_service.h:77: // |callback| with the new value of the characteristic. ...
4 years, 7 months ago (2016-04-28 01:06:24 UTC) #21
rkc
https://codereview.chromium.org/1915803002/diff/80001/device/bluetooth/bluetooth_local_gatt_service.h File device/bluetooth/bluetooth_local_gatt_service.h (right): https://codereview.chromium.org/1915803002/diff/80001/device/bluetooth/bluetooth_local_gatt_service.h#newcode77 device/bluetooth/bluetooth_local_gatt_service.h:77: // |callback| with the new value of the characteristic. ...
4 years, 7 months ago (2016-04-28 02:06:58 UTC) #22
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1915803002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1915803002/100001
4 years, 7 months ago (2016-04-28 03:10:08 UTC) #24
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-04-28 04:12:45 UTC) #26
scheib
LGTM either with friends removed or comments in code to explain why. https://codereview.chromium.org/1915803002/diff/80001/device/bluetooth/bluez/bluetooth_local_gatt_service_bluez.cc File device/bluetooth/bluez/bluetooth_local_gatt_service_bluez.cc ...
4 years, 7 months ago (2016-04-28 04:34:08 UTC) #27
rkc
https://codereview.chromium.org/1915803002/diff/80001/device/bluetooth/bluez/bluetooth_local_gatt_service_bluez.cc File device/bluetooth/bluez/bluetooth_local_gatt_service_bluez.cc (right): https://codereview.chromium.org/1915803002/diff/80001/device/bluetooth/bluez/bluetooth_local_gatt_service_bluez.cc#newcode57 device/bluetooth/bluez/bluetooth_local_gatt_service_bluez.cc:57: // TODO(rkc): Get base application path from adapter and ...
4 years, 7 months ago (2016-04-28 05:07:23 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1915803002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1915803002/120001
4 years, 7 months ago (2016-04-28 05:08:08 UTC) #31
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 7 months ago (2016-04-28 06:56:51 UTC) #33
commit-bot: I haz the power
4 years, 7 months ago (2016-04-30 17:16:38 UTC) #34
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/a65ced97ca5fe61b342eeda935248175e1a6ab74
Cr-Commit-Position: refs/heads/master@{#390315}

Powered by Google App Engine
This is Rietveld 408576698