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

Issue 2085083002: arc: bluetooth: Implement Gatt notify (Closed)

Created:
4 years, 6 months ago by puthik_chromium
Modified:
4 years, 5 months ago
CC:
Aaron Boodman, abarth-chromium, ben+mojo_chromium.org, chromium-reviews, darin (slow to review), elijahtaylor+arcwatch_chromium.org, hidehiko+watch_chromium.org, lhchavez+watch_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yusukes+watch_chromium.org, yzshen+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

arc: bluetooth: Implement Gatt notify This patch does the following - Implement the notification to arc bridge when remote Gatt characteristic value changed. - Make Android request for writing to CCC Descriptor does nothing because Chrome bundle that to register/deregister for notification. BUG=b:28250518 TEST=Test battery notification with Pixel C Keyboard Signed-off-by: Puthikorn Voravootivat <puthik@google.com>; Committed: https://crrev.com/18fd8bf060e661af267764b4dc3465338675e5ae Cr-Commit-Position: refs/heads/master@{#402331}

Patch Set 1 #

Total comments: 13

Patch Set 2 : Workaround CCC descriptor write issue. #

Total comments: 4

Patch Set 3 : Use CCCUuid() instead of string #

Total comments: 1

Patch Set 4 : Add bug for CCC descriptor #

Total comments: 2

Patch Set 5 : Add more comment about CCC #

Total comments: 7

Patch Set 6 : Add CheckBluetoothInstanceVersion function #

Total comments: 2

Patch Set 7 : fix version check #

Unified diffs Side-by-side diffs Delta from patch set Stats (+60 lines, -13 lines) Patch
M components/arc/bluetooth/arc_bluetooth_bridge.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M components/arc/bluetooth/arc_bluetooth_bridge.cc View 1 2 3 4 5 6 7 chunks +54 lines, -13 lines 0 comments Download
M components/arc/common/bluetooth.mojom View 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 39 (9 generated)
puthik_chromium
Will add lhchavez & security team after get LGTM from bluetooth ppl
4 years, 6 months ago (2016-06-21 20:17:19 UTC) #2
ortuno
https://codereview.chromium.org/2085083002/diff/1/components/arc/bluetooth/arc_bluetooth_bridge.cc File components/arc/bluetooth/arc_bluetooth_bridge.cc (right): https://codereview.chromium.org/2085083002/diff/1/components/arc/bluetooth/arc_bluetooth_bridge.cc#newcode257 components/arc/bluetooth/arc_bluetooth_bridge.cc:257: void ArcBluetoothBridge::GattCharacteristicValueChanged( FYI: this function gets called when reading ...
4 years, 6 months ago (2016-06-21 20:21:29 UTC) #3
puthik_chromium
On 2016/06/21 20:21:29, ortuno wrote: > https://codereview.chromium.org/2085083002/diff/1/components/arc/bluetooth/arc_bluetooth_bridge.cc > File components/arc/bluetooth/arc_bluetooth_bridge.cc (right): > > https://codereview.chromium.org/2085083002/diff/1/components/arc/bluetooth/arc_bluetooth_bridge.cc#newcode257 > ...
4 years, 6 months ago (2016-06-21 20:34:19 UTC) #4
rkc
Any tests we can add for this?
4 years, 6 months ago (2016-06-21 21:33:32 UTC) #6
puthik_chromium
On 2016/06/21 21:33:32, rkc wrote: > Any tests we can add for this Not in ...
4 years, 6 months ago (2016-06-21 21:35:53 UTC) #7
ortuno
https://codereview.chromium.org/2085083002/diff/1/components/arc/bluetooth/arc_bluetooth_bridge.cc File components/arc/bluetooth/arc_bluetooth_bridge.cc (right): https://codereview.chromium.org/2085083002/diff/1/components/arc/bluetooth/arc_bluetooth_bridge.cc#newcode49 components/arc/bluetooth/arc_bluetooth_bridge.cc:49: const int kMinBtleNotifyVersion = 2; enum { kMinBtleNotifyVersion = ...
4 years, 6 months ago (2016-06-21 23:23:06 UTC) #8
puthik_chromium
https://codereview.chromium.org/2085083002/diff/1/components/arc/bluetooth/arc_bluetooth_bridge.cc File components/arc/bluetooth/arc_bluetooth_bridge.cc (right): https://codereview.chromium.org/2085083002/diff/1/components/arc/bluetooth/arc_bluetooth_bridge.cc#newcode49 components/arc/bluetooth/arc_bluetooth_bridge.cc:49: const int kMinBtleNotifyVersion = 2; On 2016/06/21 23:23:06, ortuno ...
4 years, 6 months ago (2016-06-23 02:53:34 UTC) #9
ortuno
https://codereview.chromium.org/2085083002/diff/1/components/arc/bluetooth/arc_bluetooth_bridge.cc File components/arc/bluetooth/arc_bluetooth_bridge.cc (right): https://codereview.chromium.org/2085083002/diff/1/components/arc/bluetooth/arc_bluetooth_bridge.cc#newcode957 components/arc/bluetooth/arc_bluetooth_bridge.cc:957: void ArcBluetoothBridge::RegisterForGattNotification( On 2016/06/23 at 02:53:34, puthik_chromium wrote: > ...
4 years, 6 months ago (2016-06-23 14:29:38 UTC) #10
puthik_chromium
https://codereview.chromium.org/2085083002/diff/1/components/arc/bluetooth/arc_bluetooth_bridge.cc File components/arc/bluetooth/arc_bluetooth_bridge.cc (right): https://codereview.chromium.org/2085083002/diff/1/components/arc/bluetooth/arc_bluetooth_bridge.cc#newcode957 components/arc/bluetooth/arc_bluetooth_bridge.cc:957: void ArcBluetoothBridge::RegisterForGattNotification( On 2016/06/23 14:29:38, ortuno wrote: > On ...
4 years, 6 months ago (2016-06-23 18:36:31 UTC) #12
ortuno
usage of the api lgtm FWIW I think the current implementation will confuse developers a ...
4 years, 6 months ago (2016-06-23 19:13:54 UTC) #13
rkc
lgtm with the comment addressed. I agree with ortuno@; this will lead to issues with ...
4 years, 6 months ago (2016-06-23 19:36:38 UTC) #14
puthik_chromium
+lhchavez (arc bridge owner) +palmer / dcheng (mojo security)
4 years, 6 months ago (2016-06-23 20:03:22 UTC) #16
dcheng
On 2016/06/23 20:03:22, puthik_chromium wrote: > +lhchavez (arc bridge owner) > +palmer / dcheng (mojo ...
4 years, 6 months ago (2016-06-24 22:58:55 UTC) #17
palmer
https://codereview.chromium.org/2085083002/diff/60001/components/arc/bluetooth/arc_bluetooth_bridge.cc File components/arc/bluetooth/arc_bluetooth_bridge.cc (right): https://codereview.chromium.org/2085083002/diff/60001/components/arc/bluetooth/arc_bluetooth_bridge.cc#newcode931 components/arc/bluetooth/arc_bluetooth_bridge.cc:931: // Always return success when encounter this. These 2 ...
4 years, 5 months ago (2016-06-27 19:25:42 UTC) #19
puthik_chromium
https://codereview.chromium.org/2085083002/diff/60001/components/arc/bluetooth/arc_bluetooth_bridge.cc File components/arc/bluetooth/arc_bluetooth_bridge.cc (right): https://codereview.chromium.org/2085083002/diff/60001/components/arc/bluetooth/arc_bluetooth_bridge.cc#newcode931 components/arc/bluetooth/arc_bluetooth_bridge.cc:931: // Always return success when encounter this. On 2016/06/27 ...
4 years, 5 months ago (2016-06-27 19:55:07 UTC) #20
palmer
lgtm https://codereview.chromium.org/2085083002/diff/80001/components/arc/bluetooth/arc_bluetooth_bridge.cc File components/arc/bluetooth/arc_bluetooth_bridge.cc (right): https://codereview.chromium.org/2085083002/diff/80001/components/arc/bluetooth/arc_bluetooth_bridge.cc#newcode933 components/arc/bluetooth/arc_bluetooth_bridge.cc:933: // Chrome API group both steps to one ...
4 years, 5 months ago (2016-06-27 20:11:57 UTC) #21
Luis Héctor Chávez
https://codereview.chromium.org/2085083002/diff/80001/components/arc/bluetooth/arc_bluetooth_bridge.cc File components/arc/bluetooth/arc_bluetooth_bridge.cc (right): https://codereview.chromium.org/2085083002/diff/80001/components/arc/bluetooth/arc_bluetooth_bridge.cc#newcode48 components/arc/bluetooth/arc_bluetooth_bridge.cc:48: enum { kMinBtleVersion = 1 }; can we have ...
4 years, 5 months ago (2016-06-27 20:16:20 UTC) #22
ortuno
https://codereview.chromium.org/2085083002/diff/80001/components/arc/bluetooth/arc_bluetooth_bridge.cc File components/arc/bluetooth/arc_bluetooth_bridge.cc (right): https://codereview.chromium.org/2085083002/diff/80001/components/arc/bluetooth/arc_bluetooth_bridge.cc#newcode48 components/arc/bluetooth/arc_bluetooth_bridge.cc:48: enum { kMinBtleVersion = 1 }; On 2016/06/27 at ...
4 years, 5 months ago (2016-06-27 20:27:20 UTC) #23
Luis Héctor Chávez
On 2016/06/27 20:27:20, ortuno wrote: > https://codereview.chromium.org/2085083002/diff/80001/components/arc/bluetooth/arc_bluetooth_bridge.cc > File components/arc/bluetooth/arc_bluetooth_bridge.cc (right): > > https://codereview.chromium.org/2085083002/diff/80001/components/arc/bluetooth/arc_bluetooth_bridge.cc#newcode48 > ...
4 years, 5 months ago (2016-06-27 20:36:01 UTC) #24
rkc
On 2016/06/27 20:36:01, Luis Héctor Chávez wrote: > On 2016/06/27 20:27:20, ortuno wrote: > > ...
4 years, 5 months ago (2016-06-27 20:40:17 UTC) #25
ortuno
On 2016/06/27 at 20:36:01, lhchavez wrote: > On 2016/06/27 20:27:20, ortuno wrote: > > https://codereview.chromium.org/2085083002/diff/80001/components/arc/bluetooth/arc_bluetooth_bridge.cc ...
4 years, 5 months ago (2016-06-27 20:41:11 UTC) #26
puthik_chromium
https://codereview.chromium.org/2085083002/diff/80001/components/arc/bluetooth/arc_bluetooth_bridge.cc File components/arc/bluetooth/arc_bluetooth_bridge.cc (right): https://codereview.chromium.org/2085083002/diff/80001/components/arc/bluetooth/arc_bluetooth_bridge.cc#newcode48 components/arc/bluetooth/arc_bluetooth_bridge.cc:48: enum { kMinBtleVersion = 1 }; On 2016/06/27 20:16:20, ...
4 years, 5 months ago (2016-06-27 21:23:04 UTC) #27
Luis Héctor Chávez
https://codereview.chromium.org/2085083002/diff/100001/components/arc/bluetooth/arc_bluetooth_bridge.cc File components/arc/bluetooth/arc_bluetooth_bridge.cc (right): https://codereview.chromium.org/2085083002/diff/100001/components/arc/bluetooth/arc_bluetooth_bridge.cc#newcode1354 components/arc/bluetooth/arc_bluetooth_bridge.cc:1354: if (version < version_need) shouldn't this be >=?
4 years, 5 months ago (2016-06-27 21:54:40 UTC) #28
puthik_chromium
https://codereview.chromium.org/2085083002/diff/100001/components/arc/bluetooth/arc_bluetooth_bridge.cc File components/arc/bluetooth/arc_bluetooth_bridge.cc (right): https://codereview.chromium.org/2085083002/diff/100001/components/arc/bluetooth/arc_bluetooth_bridge.cc#newcode1354 components/arc/bluetooth/arc_bluetooth_bridge.cc:1354: if (version < version_need) On 2016/06/27 21:54:40, Luis Héctor ...
4 years, 5 months ago (2016-06-27 21:59:23 UTC) #29
rkc
Now that https://codereview.chromium.org/2046283003 has landed, please add a test for this. A test would have ...
4 years, 5 months ago (2016-06-27 21:59:37 UTC) #30
Luis Héctor Chávez
lgtm
4 years, 5 months ago (2016-06-27 22:00:46 UTC) #31
puthik_chromium
On 2016/06/27 21:59:37, rkc wrote: > Now that https://codereview.chromium.org/2046283003 has landed, please add a > ...
4 years, 5 months ago (2016-06-27 22:01:47 UTC) #32
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/2085083002/120001
4 years, 5 months ago (2016-06-27 22:05:48 UTC) #35
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 5 months ago (2016-06-27 23:29:29 UTC) #37
commit-bot: I haz the power
4 years, 5 months ago (2016-06-27 23:31:57 UTC) #39
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/18fd8bf060e661af267764b4dc3465338675e5ae
Cr-Commit-Position: refs/heads/master@{#402331}

Powered by Google App Engine
This is Rietveld 408576698