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

Issue 1927803002: arc: bluetooth: Add gatt client functionality (Closed)

Created:
4 years, 7 months ago by puthik_chromium
Modified:
4 years, 6 months ago
CC:
Aaron Boodman, abarth-chromium, ben+mojo_chromium.org, chromium-reviews, darin (slow to review), dmitrygr_chromium.org, Miao, qsr+mojo_chromium.org, viettrungluu+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: Add gatt client functionality Implement the Bluetooth Low Energy GATT client functionality. - BLE Scan - GATT connect/disconnect - service/characteristic/descriptor discovery - characteristic/descriptor read/write - read remote rssi - start/stop listen - [Un]register for notification BUG=b:28250518 TEST=Tested patches stack at http://ag/1092360 Committed: https://crrev.com/33ad83efd47da931442305068405891241df7f73 Cr-Commit-Position: refs/heads/master@{#400062}

Patch Set 1 #

Patch Set 2 : Add gatt connect implementation #

Patch Set 3 : Change API to Match N / Implement service discovery #

Patch Set 4 : Add LE scan #

Patch Set 5 : Implement listen / register for notification #

Patch Set 6 : Add more code comment #

Total comments: 3

Patch Set 7 : Unblob the advertising data #

Patch Set 8 : Change uuid to uint16 in BluetoothServiceData #

Total comments: 50

Patch Set 9 : Address rkc comment #

Patch Set 10 : #

Total comments: 2

Patch Set 11 : manufacture -> manufacturer #

Total comments: 10

Patch Set 12 : #

Patch Set 13 : Remove std:move for temporary #

Total comments: 22

Patch Set 14 : Address palmer / dcheng comment #

Total comments: 17

Patch Set 15 : Address palmer@ comment: add helper function to avoid dup code. #

Patch Set 16 : Fix compile warning #

Total comments: 6

Patch Set 17 : refactor gatt permission to a const #

Unified diffs Side-by-side diffs Delta from patch set Stats (+952 lines, -11 lines) Patch
M components/arc/bluetooth/arc_bluetooth_bridge.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +115 lines, -0 lines 0 comments Download
M components/arc/bluetooth/arc_bluetooth_bridge.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 9 chunks +610 lines, -11 lines 0 comments Download
M components/arc/bluetooth/bluetooth_type_converters.h View 1 2 3 4 2 chunks +14 lines, -0 lines 0 comments Download
M components/arc/bluetooth/bluetooth_type_converters.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +59 lines, -0 lines 0 comments Download
M components/arc/common/bluetooth.mojom View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +154 lines, -0 lines 0 comments Download

Messages

Total messages: 54 (15 generated)
puthik_chromium
This CL will just add stub function. Implementation will be done in later CL. Will ...
4 years, 7 months ago (2016-04-28 01:14:46 UTC) #2
Luis Héctor Chávez
It's difficult for me to make a decision if the API is ok if there ...
4 years, 7 months ago (2016-04-28 15:57:59 UTC) #3
puthik_chromium
Will add ortuno@ for BT usage and rickyz for mojo security later
4 years, 6 months ago (2016-06-01 18:35:17 UTC) #5
Luis Héctor Chávez
First pass. https://codereview.chromium.org/1927803002/diff/100001/components/arc/bluetooth/arc_bluetooth_bridge.cc File components/arc/bluetooth/arc_bluetooth_bridge.cc (right): https://codereview.chromium.org/1927803002/diff/100001/components/arc/bluetooth/arc_bluetooth_bridge.cc#newcode124 components/arc/bluetooth/arc_bluetooth_bridge.cc:124: arc_bridge_service()->bluetooth_instance()->OnLEDeviceFound( Version check? Same with all other ...
4 years, 6 months ago (2016-06-01 21:12:03 UTC) #6
puthik
Add rkc@ for Bluetooth usage. (Will submit another one to address lhchavez comment soon)
4 years, 6 months ago (2016-06-02 00:07:48 UTC) #8
puthik_chromium
Advertising data now send to android using an array of union instead of a blob. ...
4 years, 6 months ago (2016-06-02 23:31:39 UTC) #9
puthik_chromium
Change the BluetoothServiceData to uint16 as lhchavez@ comment in http://ag/1025321
4 years, 6 months ago (2016-06-06 23:07:29 UTC) #10
puthik_chromium
+rickyz for mojo security.
4 years, 6 months ago (2016-06-06 23:14:51 UTC) #12
rkc
Mostly looks fine, I just have a lot of little nits :) Please do add ...
4 years, 6 months ago (2016-06-07 02:34:32 UTC) #13
puthik_chromium
Will add test in next patch. https://codereview.chromium.org/1927803002/diff/140001/components/arc/common/bluetooth.mojom File components/arc/common/bluetooth.mojom (right): https://codereview.chromium.org/1927803002/diff/140001/components/arc/common/bluetooth.mojom#newcode211 components/arc/common/bluetooth.mojom:211: * handles. On ...
4 years, 6 months ago (2016-06-08 00:56:19 UTC) #14
rkc
Opal, please do mark all the addressed comments with Done, so it is easy to ...
4 years, 6 months ago (2016-06-08 05:46:35 UTC) #15
puthik_chromium
As this block bluetooth CTS for arc++. The unit test will be in separate CL ...
4 years, 6 months ago (2016-06-08 23:59:51 UTC) #16
rkc
lgtm
4 years, 6 months ago (2016-06-09 20:38:53 UTC) #17
puthik_chromium
Friendly ping. Got Bluetooth l-g-t-m from rkc@ lhchavez@ Please review the arc usage. rickyz@ Please ...
4 years, 6 months ago (2016-06-09 20:57:03 UTC) #18
Luis Héctor Chávez
Just an overall question about all the uint8_t blob arrays. Are all of those needed? ...
4 years, 6 months ago (2016-06-09 20:59:13 UTC) #19
puthik_chromium
On 2016/06/09 20:59:13, Luis Héctor Chávez wrote: > Just an overall question about all the ...
4 years, 6 months ago (2016-06-09 21:11:52 UTC) #20
puthik_chromium
https://codereview.chromium.org/1927803002/diff/180001/components/arc/common/bluetooth.mojom File components/arc/common/bluetooth.mojom (right): https://codereview.chromium.org/1927803002/diff/180001/components/arc/common/bluetooth.mojom#newcode186 components/arc/common/bluetooth.mojom:186: array<uint8> manufacture_data; On 2016/06/09 20:59:13, Luis Héctor Chávez wrote: ...
4 years, 6 months ago (2016-06-09 21:30:56 UTC) #21
Luis Héctor Chávez
Probably last questions from me. https://codereview.chromium.org/1927803002/diff/200001/components/arc/common/bluetooth.mojom File components/arc/common/bluetooth.mojom (right): https://codereview.chromium.org/1927803002/diff/200001/components/arc/common/bluetooth.mojom#newcode155 components/arc/common/bluetooth.mojom:155: uint8 is_primary; This looks ...
4 years, 6 months ago (2016-06-09 21:45:49 UTC) #22
puthik_chromium
https://codereview.chromium.org/1927803002/diff/200001/components/arc/common/bluetooth.mojom File components/arc/common/bluetooth.mojom (right): https://codereview.chromium.org/1927803002/diff/200001/components/arc/common/bluetooth.mojom#newcode155 components/arc/common/bluetooth.mojom:155: uint8 is_primary; On 2016/06/09 21:45:49, Luis Héctor Chávez wrote: ...
4 years, 6 months ago (2016-06-09 22:12:54 UTC) #23
Luis Héctor Chávez
https://codereview.chromium.org/1927803002/diff/200001/components/arc/common/bluetooth.mojom File components/arc/common/bluetooth.mojom (right): https://codereview.chromium.org/1927803002/diff/200001/components/arc/common/bluetooth.mojom#newcode155 components/arc/common/bluetooth.mojom:155: uint8 is_primary; On 2016/06/09 22:12:54, puthik_chromium wrote: > On ...
4 years, 6 months ago (2016-06-09 22:17:49 UTC) #24
puthik_chromium
https://codereview.chromium.org/1927803002/diff/200001/components/arc/common/bluetooth.mojom File components/arc/common/bluetooth.mojom (right): https://codereview.chromium.org/1927803002/diff/200001/components/arc/common/bluetooth.mojom#newcode155 components/arc/common/bluetooth.mojom:155: uint8 is_primary; On 2016/06/09 22:17:49, Luis Héctor Chávez wrote: ...
4 years, 6 months ago (2016-06-09 22:32:44 UTC) #25
Luis Héctor Chávez
lgtm
4 years, 6 months ago (2016-06-09 22:34:00 UTC) #26
puthik_chromium
+dcheng From git log, look like dcheng is the person who review mojo security lately.
4 years, 6 months ago (2016-06-10 18:39:13 UTC) #28
palmer
I'll look at this more in depth later, but I wanted to get you my ...
4 years, 6 months ago (2016-06-13 19:07:19 UTC) #30
dcheng
+palmer, who has done a bunch of bluetooth reviews lately https://codereview.chromium.org/1927803002/diff/240001/components/arc/bluetooth/bluetooth_type_converters.cc File components/arc/bluetooth/bluetooth_type_converters.cc (right): https://codereview.chromium.org/1927803002/diff/240001/components/arc/bluetooth/bluetooth_type_converters.cc#newcode96 ...
4 years, 6 months ago (2016-06-13 20:19:27 UTC) #31
puthik_chromium
https://codereview.chromium.org/1927803002/diff/240001/components/arc/bluetooth/bluetooth_type_converters.cc File components/arc/bluetooth/bluetooth_type_converters.cc (right): https://codereview.chromium.org/1927803002/diff/240001/components/arc/bluetooth/bluetooth_type_converters.cc#newcode93 components/arc/bluetooth/bluetooth_type_converters.cc:93: // BluetoothUUID expects the format below with dash inserted. ...
4 years, 6 months ago (2016-06-13 20:50:27 UTC) #32
palmer
https://codereview.chromium.org/1927803002/diff/260001/components/arc/bluetooth/arc_bluetooth_bridge.cc File components/arc/bluetooth/arc_bluetooth_bridge.cc (right): https://codereview.chromium.org/1927803002/diff/260001/components/arc/bluetooth/arc_bluetooth_bridge.cc#newcode534 components/arc/bluetooth/arc_bluetooth_bridge.cc:534: DCHECK(addr); Nit/Bikeshed: I'd rather use complete words, e.g. |address|, ...
4 years, 6 months ago (2016-06-14 23:08:26 UTC) #33
puthik_chromium
https://codereview.chromium.org/1927803002/diff/260001/components/arc/bluetooth/arc_bluetooth_bridge.cc File components/arc/bluetooth/arc_bluetooth_bridge.cc (right): https://codereview.chromium.org/1927803002/diff/260001/components/arc/bluetooth/arc_bluetooth_bridge.cc#newcode534 components/arc/bluetooth/arc_bluetooth_bridge.cc:534: DCHECK(addr); On 2016/06/14 23:08:25, palmer wrote: > Nit/Bikeshed: I'd ...
4 years, 6 months ago (2016-06-15 18:06:34 UTC) #34
rkc
https://codereview.chromium.org/1927803002/diff/260001/components/arc/bluetooth/arc_bluetooth_bridge.cc File components/arc/bluetooth/arc_bluetooth_bridge.cc (right): https://codereview.chromium.org/1927803002/diff/260001/components/arc/bluetooth/arc_bluetooth_bridge.cc#newcode622 components/arc/bluetooth/arc_bluetooth_bridge.cc:622: if (!HasBluetoothInstance()) On 2016/06/15 18:06:33, puthik_chromium wrote: > On ...
4 years, 6 months ago (2016-06-15 20:40:01 UTC) #36
palmer
LGTM because I don't see any security concerns. But I strongly suggest you consider well-named ...
4 years, 6 months ago (2016-06-15 23:10:16 UTC) #37
puthik_chromium
https://codereview.chromium.org/1927803002/diff/300001/components/arc/bluetooth/arc_bluetooth_bridge.cc File components/arc/bluetooth/arc_bluetooth_bridge.cc (right): https://codereview.chromium.org/1927803002/diff/300001/components/arc/bluetooth/arc_bluetooth_bridge.cc#newcode725 components/arc/bluetooth/arc_bluetooth_bridge.cc:725: for (auto characteristic : characteristics) { On 2016/06/15 23:10:16, ...
4 years, 6 months ago (2016-06-16 00:03:34 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1927803002/320001
4 years, 6 months ago (2016-06-16 00:04:35 UTC) #42
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1927803002/320001
4 years, 6 months ago (2016-06-16 00:08:39 UTC) #44
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/201491)
4 years, 6 months ago (2016-06-16 00:16:27 UTC) #46
dcheng
LGTM stamp based on palmer's review
4 years, 6 months ago (2016-06-16 00:37:34 UTC) #47
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1927803002/320001
4 years, 6 months ago (2016-06-16 00:39:46 UTC) #49
commit-bot: I haz the power
Committed patchset #17 (id:320001)
4 years, 6 months ago (2016-06-16 00:51:51 UTC) #51
commit-bot: I haz the power
CQ bit was unchecked
4 years, 6 months ago (2016-06-16 00:52:10 UTC) #52
commit-bot: I haz the power
4 years, 6 months ago (2016-06-16 00:53:43 UTC) #54
Message was sent while issue was closed.
Patchset 17 (id:??) landed as
https://crrev.com/33ad83efd47da931442305068405891241df7f73
Cr-Commit-Position: refs/heads/master@{#400062}

Powered by Google App Engine
This is Rietveld 408576698