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

Issue 1712593002: bluetooth: android: Confirm the notify session after the descriptor has been written. (Closed)

Created:
4 years, 10 months ago by tommyt
Modified:
4 years, 9 months ago
Reviewers:
scheib, ortuno
CC:
chromium-reviews, ortuno+watch_chromium.org, scheib+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: android: Confirm the notify session after the descriptor has been written. This change also implements WriteRemoteDescriptor and ReadRemoteDescriptor. Because of this, I've also added quite a few descriptor unit tests. These tests are pretty much the same as the read/write tests for characteristics. BUG=584369 Committed: https://crrev.com/0348fa65c3d808f854f745fb9f8f185a5b74b922 Cr-Commit-Position: refs/heads/master@{#381088}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Added the comment that Gio requested #

Total comments: 18

Patch Set 3 : Address Vincent's comments #

Total comments: 25
Unified diffs Side-by-side diffs Delta from patch set Stats (+1015 lines, -104 lines) Patch
M device/bluetooth/android/java/src/org/chromium/device/bluetooth/ChromeBluetoothDevice.java View 1 2 1 chunk +38 lines, -0 lines 0 comments Download
M device/bluetooth/android/java/src/org/chromium/device/bluetooth/ChromeBluetoothRemoteGattCharacteristic.java View 1 2 4 chunks +6 lines, -48 lines 0 comments Download
M device/bluetooth/android/java/src/org/chromium/device/bluetooth/ChromeBluetoothRemoteGattDescriptor.java View 1 2 4 chunks +58 lines, -16 lines 0 comments Download
M device/bluetooth/android/java/src/org/chromium/device/bluetooth/Wrappers.java View 6 chunks +33 lines, -3 lines 0 comments Download
M device/bluetooth/bluetooth_gatt_characteristic.h View 1 2 1 chunk +4 lines, -0 lines 2 comments Download
M device/bluetooth/bluetooth_gatt_characteristic.cc View 1 2 2 chunks +11 lines, -0 lines 4 comments Download
M device/bluetooth/bluetooth_gatt_characteristic_unittest.cc View 1 chunk +0 lines, -7 lines 0 comments Download
M device/bluetooth/bluetooth_gatt_descriptor_unittest.cc View 2 chunks +457 lines, -1 line 4 comments Download
M device/bluetooth/bluetooth_remote_gatt_characteristic_android.h View 1 2 3 chunks +15 lines, -2 lines 0 comments Download
M device/bluetooth/bluetooth_remote_gatt_characteristic_android.cc View 1 2 2 chunks +67 lines, -8 lines 13 comments Download
M device/bluetooth/bluetooth_remote_gatt_descriptor_android.h View 1 2 2 chunks +23 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth_remote_gatt_descriptor_android.cc View 1 2 3 chunks +88 lines, -14 lines 2 comments Download
M device/bluetooth/test/android/java/src/org/chromium/device/bluetooth/Fakes.java View 1 2 5 chunks +71 lines, -1 line 0 comments Download
M device/bluetooth/test/bluetooth_test.h View 2 chunks +36 lines, -0 lines 0 comments Download
M device/bluetooth/test/bluetooth_test.cc View 1 chunk +1 line, -0 lines 0 comments Download
M device/bluetooth/test/bluetooth_test_android.h View 4 chunks +24 lines, -0 lines 0 comments Download
M device/bluetooth/test/bluetooth_test_android.cc View 1 2 3 chunks +83 lines, -4 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 47 (19 generated)
tommyt
Here's my proposed fix for issue 584369. It's a bit more code than it strictly ...
4 years, 10 months ago (2016-02-18 15:30:20 UTC) #3
ortuno
looking good! Just one small comment. As mentioned before you will have to wait until ...
4 years, 10 months ago (2016-02-19 20:51:02 UTC) #4
tommyt
https://codereview.chromium.org/1712593002/diff/1/device/bluetooth/bluetooth_remote_gatt_characteristic_android.cc File device/bluetooth/bluetooth_remote_gatt_characteristic_android.cc (right): https://codereview.chromium.org/1712593002/diff/1/device/bluetooth/bluetooth_remote_gatt_characteristic_android.cc#newcode219 device/bluetooth/bluetooth_remote_gatt_characteristic_android.cc:219: if (status == 0) { On 2016/02/19 20:51:02, ortuno ...
4 years, 10 months ago (2016-02-22 08:59:56 UTC) #5
scheib
Great to see this! https://codereview.chromium.org/1712593002/diff/20001/device/bluetooth/android/java/src/org/chromium/device/bluetooth/ChromeBluetoothDevice.java File device/bluetooth/android/java/src/org/chromium/device/bluetooth/ChromeBluetoothDevice.java (right): https://codereview.chromium.org/1712593002/diff/20001/device/bluetooth/android/java/src/org/chromium/device/bluetooth/ChromeBluetoothDevice.java#newcode269 device/bluetooth/android/java/src/org/chromium/device/bluetooth/ChromeBluetoothDevice.java:269: Log.v(TAG, "onDescriptorRead when chromeDescriptor == ...
4 years, 10 months ago (2016-02-26 04:27:01 UTC) #7
tommyt
I've made a new changeset where I've tried to address Vincent's comments. The biggest change ...
4 years, 9 months ago (2016-03-01 14:45:15 UTC) #8
scheib
On 2016/03/01 14:45:15, tommyt wrote: > I've made a new changeset where I've tried to ...
4 years, 9 months ago (2016-03-01 19:13:48 UTC) #9
scheib
https://codereview.chromium.org/1712593002/diff/40001/device/bluetooth/bluetooth_gatt_characteristic.cc File device/bluetooth/bluetooth_gatt_characteristic.cc (right): https://codereview.chromium.org/1712593002/diff/40001/device/bluetooth/bluetooth_gatt_characteristic.cc#newcode28 device/bluetooth/bluetooth_gatt_characteristic.cc:28: BluetoothGattDescriptor* BluetoothGattCharacteristic::GetDescriptorForUUID( We should add a test to bluetooth_gatt_characteristic_unittest.cc ...
4 years, 9 months ago (2016-03-02 06:15:20 UTC) #10
scheib
I will land this patch and perform the follow up requests in a patch I ...
4 years, 9 months ago (2016-03-02 22:22:22 UTC) #11
tommyt
Thanks Vincent! Yes, I will be on leave/vacation for about a month due to the ...
4 years, 9 months ago (2016-03-04 14:35:26 UTC) #13
ortuno
https://codereview.chromium.org/1712593002/diff/40001/device/bluetooth/bluetooth_gatt_characteristic.cc File device/bluetooth/bluetooth_gatt_characteristic.cc (right): https://codereview.chromium.org/1712593002/diff/40001/device/bluetooth/bluetooth_gatt_characteristic.cc#newcode35 device/bluetooth/bluetooth_gatt_characteristic.cc:35: return NULL; nit: nullptr https://codereview.chromium.org/1712593002/diff/40001/device/bluetooth/bluetooth_gatt_characteristic.h File device/bluetooth/bluetooth_gatt_characteristic.h (right): https://codereview.chromium.org/1712593002/diff/40001/device/bluetooth/bluetooth_gatt_characteristic.h#newcode161 ...
4 years, 9 months ago (2016-03-04 17:39:48 UTC) #14
scheib
I'll be addressing these review comments on my follow up patch.
4 years, 9 months ago (2016-03-04 18:48:25 UTC) #15
scheib
These issues are being addressed in follow up patches. bluetooth: Refactor GetDescriptorForUUID to GetDescriptorsForUUID. https://codereview.chromium.org/1765773002/ ...
4 years, 9 months ago (2016-03-11 03:17:31 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1712593002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1712593002/40001
4 years, 9 months ago (2016-03-11 03:19:40 UTC) #18
commit-bot: I haz the power
No L-G-T-M from a valid reviewer yet. CQ run can only be started by full ...
4 years, 9 months ago (2016-03-11 03:19:42 UTC) #20
scheib
LGTM
4 years, 9 months ago (2016-03-11 03:20:48 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1712593002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1712593002/40001
4 years, 9 months ago (2016-03-11 03:21:30 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_compile_dbg_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_compile_dbg_ng/builds/158350)
4 years, 9 months ago (2016-03-11 03:28:45 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1712593002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1712593002/40001
4 years, 9 months ago (2016-03-11 04:12:46 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/37036)
4 years, 9 months ago (2016-03-11 04:44:09 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1712593002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1712593002/40001
4 years, 9 months ago (2016-03-11 04:46:25 UTC) #31
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/37039)
4 years, 9 months ago (2016-03-11 07:34:03 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1712593002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1712593002/40001
4 years, 9 months ago (2016-03-11 16:07:23 UTC) #35
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/37251)
4 years, 9 months ago (2016-03-11 18:50:43 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1712593002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1712593002/40001
4 years, 9 months ago (2016-03-12 20:47:35 UTC) #39
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/37662)
4 years, 9 months ago (2016-03-12 23:20:59 UTC) #41
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1712593002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1712593002/40001
4 years, 9 months ago (2016-03-14 20:43:24 UTC) #43
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 9 months ago (2016-03-14 22:12:44 UTC) #45
commit-bot: I haz the power
4 years, 9 months ago (2016-03-14 22:15:10 UTC) #47
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/0348fa65c3d808f854f745fb9f8f185a5b74b922
Cr-Commit-Position: refs/heads/master@{#381088}

Powered by Google App Engine
This is Rietveld 408576698