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

Issue 2391973003: arc: bluetooth: Send update to Android when got DeviceChanged event (Closed)

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

Description

arc: bluetooth: Send update to Android when got DeviceChanged event Currently we only send device properties and advertising data to Android only when we first found a new device. We should also update Android when we got DeviceChanged event. Also refactor the code to - Add new SendDevice() for common code related to this. - Filter invalid data out from data that will send to Android. BUG=653310, b:31916649 TEST=nRF Connect app in minnie correctly show rssi graph Committed: https://crrev.com/d3ea5c2b19cc8e59566037206cff597f685dea6e Cr-Commit-Position: refs/heads/master@{#423726}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Rebase / SendDeviceData -> SendDeviceInformation #

Total comments: 2

Patch Set 3 : Use SendDevice() #

Patch Set 4 : rebase #

Patch Set 5 : rebase again #

Unified diffs Side-by-side diffs Delta from patch set Stats (+91 lines, -75 lines) Patch
M components/arc/bluetooth/arc_bluetooth_bridge.h View 1 2 3 4 2 chunks +4 lines, -2 lines 0 comments Download
M components/arc/bluetooth/arc_bluetooth_bridge.cc View 1 2 3 4 8 chunks +44 lines, -65 lines 0 comments Download
M components/arc/bluetooth/arc_bluetooth_bridge_unittest.cc View 1 2 3 4 5 chunks +39 lines, -5 lines 0 comments Download
M device/bluetooth/dbus/fake_bluetooth_device_client.h View 2 chunks +4 lines, -3 lines 0 comments Download

Messages

Total messages: 26 (13 generated)
puthik_chromium
PTAL
4 years, 2 months ago (2016-10-05 00:09:19 UTC) #2
puthik_chromium
4 years, 2 months ago (2016-10-05 00:11:51 UTC) #3
Luis Héctor Chávez
https://codereview.chromium.org/2391973003/diff/1/components/arc/bluetooth/arc_bluetooth_bridge.cc File components/arc/bluetooth/arc_bluetooth_bridge.cc (right): https://codereview.chromium.org/2391973003/diff/1/components/arc/bluetooth/arc_bluetooth_bridge.cc#newcode314 components/arc/bluetooth/arc_bluetooth_bridge.cc:314: void ArcBluetoothBridge::SendDeviceData(const BluetoothDevice* device) const { Maybe SendDevicePropertiesAndAdvData? SendDeviceInformation? ...
4 years, 2 months ago (2016-10-06 16:51:01 UTC) #5
puthik_chromium
https://codereview.chromium.org/2391973003/diff/1/components/arc/bluetooth/arc_bluetooth_bridge.cc File components/arc/bluetooth/arc_bluetooth_bridge.cc (right): https://codereview.chromium.org/2391973003/diff/1/components/arc/bluetooth/arc_bluetooth_bridge.cc#newcode314 components/arc/bluetooth/arc_bluetooth_bridge.cc:314: void ArcBluetoothBridge::SendDeviceData(const BluetoothDevice* device) const { On 2016/10/06 16:51:01, ...
4 years, 2 months ago (2016-10-06 18:29:30 UTC) #6
Rahul Chaturvedi
lgtm https://codereview.chromium.org/2391973003/diff/20001/components/arc/bluetooth/arc_bluetooth_bridge.cc File components/arc/bluetooth/arc_bluetooth_bridge.cc (right): https://codereview.chromium.org/2391973003/diff/20001/components/arc/bluetooth/arc_bluetooth_bridge.cc#newcode330 components/arc/bluetooth/arc_bluetooth_bridge.cc:330: base::Optional<int8_t> rssi = device->GetInquiryRSSI(); Optional nit: SendDevice seems ...
4 years, 2 months ago (2016-10-06 19:18:43 UTC) #7
Luis Héctor Chávez
lgtm, but please update the commit message once you settle on a name.
4 years, 2 months ago (2016-10-06 19:22:17 UTC) #8
puthik_chromium
https://codereview.chromium.org/2391973003/diff/20001/components/arc/bluetooth/arc_bluetooth_bridge.cc File components/arc/bluetooth/arc_bluetooth_bridge.cc (right): https://codereview.chromium.org/2391973003/diff/20001/components/arc/bluetooth/arc_bluetooth_bridge.cc#newcode330 components/arc/bluetooth/arc_bluetooth_bridge.cc:330: base::Optional<int8_t> rssi = device->GetInquiryRSSI(); On 2016/10/06 19:18:43, Rahul Chaturvedi ...
4 years, 2 months ago (2016-10-06 19:36:51 UTC) #10
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/2391973003/40001
4 years, 2 months ago (2016-10-06 19:37:54 UTC) #13
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/2391973003/60001
4 years, 2 months ago (2016-10-06 20:54:45 UTC) #17
commit-bot: I haz the power
Failed to apply patch for components/arc/bluetooth/arc_bluetooth_bridge.h: While running git apply --index -3 -p1; error: patch ...
4 years, 2 months ago (2016-10-06 21:57:54 UTC) #19
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/2391973003/80001
4 years, 2 months ago (2016-10-06 22:06:45 UTC) #22
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 2 months ago (2016-10-06 23:19:41 UTC) #24
commit-bot: I haz the power
4 years, 2 months ago (2016-10-06 23:22:07 UTC) #26
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/d3ea5c2b19cc8e59566037206cff597f685dea6e
Cr-Commit-Position: refs/heads/master@{#423726}

Powered by Google App Engine
This is Rietveld 408576698