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

Issue 1215303006: bluetooth: android: Initial BluetoothDeviceAndroid implementation. (Closed)

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

Description

bluetooth: android: Initial BluetoothDeviceAndroid implementation. Devices can now be discovered and have basic data fields accessed: GetBluetoothClass(), GetAddress(), GetName(), IsPaired(), GetUUIDs(). Some data fields are not supported on Android, and return 0: GetVendorIDSource(), GetVendorID(), GetProductID(), GetDeviceID() BUG=488579, 488575 Committed: https://crrev.com/59e28a2e1672ade6d9e08e7e1699b47f0851f0df Cr-Commit-Position: refs/heads/master@{#338604}

Patch Set 1 : #

Total comments: 20

Patch Set 2 : jyasskin comments addressed. Pass UUIDs by array. Added more tests. #

Total comments: 20

Patch Set 3 : Fixes from upstream patch; addressed jyasskin request for type comments. #

Patch Set 4 : Merge TOT #

Total comments: 2

Patch Set 5 : armansito addressed: TODO for UUID merge #

Patch Set 6 : Split out string changes to https://codereview.chromium.org/1224273008/ #

Patch Set 7 : Merge TOT #

Unified diffs Side-by-side diffs Delta from patch set Stats (+683 lines, -71 lines) Patch
M device/bluetooth/BUILD.gn View 1 2 3 4 5 2 chunks +3 lines, -0 lines 0 comments Download
M device/bluetooth/android/bluetooth_jni_registrar.cc View 2 chunks +2 lines, -0 lines 0 comments Download
M device/bluetooth/android/java/src/org/chromium/device/bluetooth/ChromeBluetoothAdapter.java View 1 2 5 chunks +18 lines, -2 lines 0 comments Download
A device/bluetooth/android/java/src/org/chromium/device/bluetooth/ChromeBluetoothDevice.java View 1 2 3 4 1 chunk +97 lines, -0 lines 0 comments Download
M device/bluetooth/android/java/src/org/chromium/device/bluetooth/Wrappers.java View 1 2 3 chunks +13 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth.gyp View 1 2 3 2 chunks +3 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth_adapter_android.h View 1 2 3 chunks +15 lines, -4 lines 0 comments Download
M device/bluetooth/bluetooth_adapter_android.cc View 1 2 3 chunks +26 lines, -3 lines 0 comments Download
M device/bluetooth/bluetooth_adapter_unittest.cc View 1 3 chunks +109 lines, -0 lines 0 comments Download
A + device/bluetooth/bluetooth_device_android.h View 1 2 3 4 chunks +42 lines, -54 lines 0 comments Download
A device/bluetooth/bluetooth_device_android.cc View 1 2 1 chunk +200 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth_device_unittest.cc View 1 2 chunks +59 lines, -0 lines 0 comments Download
M device/bluetooth/test/android/java/src/org/chromium/device/bluetooth/Fakes.java View 1 2 3 chunks +76 lines, -6 lines 0 comments Download
M device/bluetooth/test/bluetooth_test.h View 1 1 chunk +8 lines, -0 lines 0 comments Download
M device/bluetooth/test/bluetooth_test_android.h View 1 chunk +3 lines, -0 lines 0 comments Download
M device/bluetooth/test/bluetooth_test_android.cc View 1 chunk +9 lines, -2 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 33 (8 generated)
scheib
jyasskin, please take a first pass review.
5 years, 5 months ago (2015-07-06 22:28:18 UTC) #4
scheib
https://codereview.chromium.org/1215303006/diff/40001/device/bluetooth/bluetooth_device_android.cc File device/bluetooth/bluetooth_device_android.cc (right): https://codereview.chromium.org/1215303006/diff/40001/device/bluetooth/bluetooth_device_android.cc#newcode94 device/bluetooth/bluetooth_device_android.cc:94: for (int i = 0; i < number_of_uuids; i++) ...
5 years, 5 months ago (2015-07-06 23:10:44 UTC) #5
Jeffrey Yasskin
lgtm https://codereview.chromium.org/1215303006/diff/40001/device/bluetooth/android/java/src/org/chromium/device/bluetooth/ChromeBluetoothAdapter.java File device/bluetooth/android/java/src/org/chromium/device/bluetooth/ChromeBluetoothAdapter.java (right): https://codereview.chromium.org/1215303006/diff/40001/device/bluetooth/android/java/src/org/chromium/device/bluetooth/ChromeBluetoothAdapter.java#newcode246 device/bluetooth/android/java/src/org/chromium/device/bluetooth/ChromeBluetoothAdapter.java:246: // Binds to BluetoothAdapterAndroid::GetChromeBluetoothDevice. Why does "CreateOrUpdateDeviceOnScan" bind ...
5 years, 5 months ago (2015-07-07 00:11:14 UTC) #6
scheib
https://codereview.chromium.org/1215303006/diff/40001/device/bluetooth/android/java/src/org/chromium/device/bluetooth/ChromeBluetoothAdapter.java File device/bluetooth/android/java/src/org/chromium/device/bluetooth/ChromeBluetoothAdapter.java (right): https://codereview.chromium.org/1215303006/diff/40001/device/bluetooth/android/java/src/org/chromium/device/bluetooth/ChromeBluetoothAdapter.java#newcode246 device/bluetooth/android/java/src/org/chromium/device/bluetooth/ChromeBluetoothAdapter.java:246: // Binds to BluetoothAdapterAndroid::GetChromeBluetoothDevice. On 2015/07/07 00:11:13, Jeffrey Yasskin ...
5 years, 5 months ago (2015-07-08 00:49:10 UTC) #7
scheib
Thanks jyasskin. +armansito. https://codereview.chromium.org/1215303006/diff/60001/device/bluetooth/bluetooth_adapter_unittest.cc File device/bluetooth/bluetooth_adapter_unittest.cc (right): https://codereview.chromium.org/1215303006/diff/60001/device/bluetooth/bluetooth_adapter_unittest.cc#newcode557 device/bluetooth/bluetooth_adapter_unittest.cc:557: // Expect empty UUIDs: armansito, confirm ...
5 years, 5 months ago (2015-07-08 00:54:09 UTC) #9
armansito
https://codereview.chromium.org/1215303006/diff/60001/device/bluetooth/bluetooth_adapter_unittest.cc File device/bluetooth/bluetooth_adapter_unittest.cc (right): https://codereview.chromium.org/1215303006/diff/60001/device/bluetooth/bluetooth_adapter_unittest.cc#newcode557 device/bluetooth/bluetooth_adapter_unittest.cc:557: // Expect empty UUIDs: On 2015/07/08 00:54:09, scheib wrote: ...
5 years, 5 months ago (2015-07-08 03:12:09 UTC) #10
scheib
https://codereview.chromium.org/1215303006/diff/60001/device/bluetooth/bluetooth_adapter_unittest.cc File device/bluetooth/bluetooth_adapter_unittest.cc (right): https://codereview.chromium.org/1215303006/diff/60001/device/bluetooth/bluetooth_adapter_unittest.cc#newcode557 device/bluetooth/bluetooth_adapter_unittest.cc:557: // Expect empty UUIDs: On 2015/07/08 03:12:09, armansito wrote: ...
5 years, 5 months ago (2015-07-08 05:09:10 UTC) #11
armansito
https://codereview.chromium.org/1215303006/diff/60001/device/bluetooth/bluetooth_adapter_unittest.cc File device/bluetooth/bluetooth_adapter_unittest.cc (right): https://codereview.chromium.org/1215303006/diff/60001/device/bluetooth/bluetooth_adapter_unittest.cc#newcode557 device/bluetooth/bluetooth_adapter_unittest.cc:557: // Expect empty UUIDs: On 2015/07/08 05:09:10, scheib wrote: ...
5 years, 5 months ago (2015-07-08 06:00:13 UTC) #12
scheib
https://codereview.chromium.org/1215303006/diff/60001/device/bluetooth/bluetooth_adapter_unittest.cc File device/bluetooth/bluetooth_adapter_unittest.cc (right): https://codereview.chromium.org/1215303006/diff/60001/device/bluetooth/bluetooth_adapter_unittest.cc#newcode557 device/bluetooth/bluetooth_adapter_unittest.cc:557: // Expect empty UUIDs: On 2015/07/08 06:00:13, armansito wrote: ...
5 years, 5 months ago (2015-07-08 16:42:51 UTC) #13
Jeffrey Yasskin
https://codereview.chromium.org/1215303006/diff/40001/device/bluetooth/bluetooth_adapter_android.h File device/bluetooth/bluetooth_adapter_android.h (right): https://codereview.chromium.org/1215303006/diff/40001/device/bluetooth/bluetooth_adapter_android.h#newcode91 device/bluetooth/bluetooth_adapter_android.h:91: jobject obj, On 2015/07/08 00:49:10, scheib wrote: > On ...
5 years, 5 months ago (2015-07-08 17:19:39 UTC) #14
scheib
https://codereview.chromium.org/1215303006/diff/40001/device/bluetooth/bluetooth_adapter_android.h File device/bluetooth/bluetooth_adapter_android.h (right): https://codereview.chromium.org/1215303006/diff/40001/device/bluetooth/bluetooth_adapter_android.h#newcode91 device/bluetooth/bluetooth_adapter_android.h:91: jobject obj, On 2015/07/08 17:19:38, Jeffrey Yasskin wrote: > ...
5 years, 5 months ago (2015-07-08 23:02:35 UTC) #15
Jeffrey Yasskin
lgtm still. https://codereview.chromium.org/1215303006/diff/60001/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/1215303006/diff/60001/device/bluetooth/android/java/src/org/chromium/device/bluetooth/ChromeBluetoothDevice.java#newcode83 device/bluetooth/android/java/src/org/chromium/device/bluetooth/ChromeBluetoothDevice.java:83: return string_array; On 2015/07/08 23:02:34, scheib wrote: ...
5 years, 5 months ago (2015-07-08 23:18:24 UTC) #16
scheib
https://codereview.chromium.org/1215303006/diff/60001/device/bluetooth/android/java/src/org/chromium/device/bluetooth/Wrappers.java File device/bluetooth/android/java/src/org/chromium/device/bluetooth/Wrappers.java (right): https://codereview.chromium.org/1215303006/diff/60001/device/bluetooth/android/java/src/org/chromium/device/bluetooth/Wrappers.java#newcode135 device/bluetooth/android/java/src/org/chromium/device/bluetooth/Wrappers.java:135: List<ScanFilter> filters, int scanSettingsScanMode, ScanCallbackWrapper callback) { On 2015/07/08 ...
5 years, 5 months ago (2015-07-08 23:29:05 UTC) #17
Jeffrey Yasskin
https://codereview.chromium.org/1215303006/diff/60001/device/bluetooth/android/java/src/org/chromium/device/bluetooth/Wrappers.java File device/bluetooth/android/java/src/org/chromium/device/bluetooth/Wrappers.java (right): https://codereview.chromium.org/1215303006/diff/60001/device/bluetooth/android/java/src/org/chromium/device/bluetooth/Wrappers.java#newcode135 device/bluetooth/android/java/src/org/chromium/device/bluetooth/Wrappers.java:135: List<ScanFilter> filters, int scanSettingsScanMode, ScanCallbackWrapper callback) { On 2015/07/08 ...
5 years, 5 months ago (2015-07-09 17:04:09 UTC) #18
scheib
https://codereview.chromium.org/1215303006/diff/60001/device/bluetooth/android/java/src/org/chromium/device/bluetooth/Wrappers.java File device/bluetooth/android/java/src/org/chromium/device/bluetooth/Wrappers.java (right): https://codereview.chromium.org/1215303006/diff/60001/device/bluetooth/android/java/src/org/chromium/device/bluetooth/Wrappers.java#newcode135 device/bluetooth/android/java/src/org/chromium/device/bluetooth/Wrappers.java:135: List<ScanFilter> filters, int scanSettingsScanMode, ScanCallbackWrapper callback) { On 2015/07/09 ...
5 years, 5 months ago (2015-07-09 17:41:31 UTC) #19
armansito
https://codereview.chromium.org/1215303006/diff/100001/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/1215303006/diff/100001/device/bluetooth/android/java/src/org/chromium/device/bluetooth/ChromeBluetoothDevice.java#newcode79 device/bluetooth/android/java/src/org/chromium/device/bluetooth/ChromeBluetoothDevice.java:79: private String[] getUuids() { Right, my previous comment was ...
5 years, 5 months ago (2015-07-09 18:54:22 UTC) #20
scheib
Thanks https://codereview.chromium.org/1215303006/diff/100001/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/1215303006/diff/100001/device/bluetooth/android/java/src/org/chromium/device/bluetooth/ChromeBluetoothDevice.java#newcode79 device/bluetooth/android/java/src/org/chromium/device/bluetooth/ChromeBluetoothDevice.java:79: private String[] getUuids() { On 2015/07/09 18:54:22, armansito ...
5 years, 5 months ago (2015-07-09 20:31:05 UTC) #21
armansito
Thanks, lgtm!
5 years, 5 months ago (2015-07-09 20:32:21 UTC) #22
scheib
thakis, OWNERS review please: chrome/chrome_resources.gyp chrome/tools/build/repack_locales.py
5 years, 5 months ago (2015-07-09 20:34:58 UTC) #23
scheib
thakis, OWNERS review please: chrome/chrome_resources.gyp chrome/tools/build/repack_locales.py
5 years, 5 months ago (2015-07-09 20:35:18 UTC) #25
Nico
On 2015/07/09 20:35:18, scheib wrote: > thakis, OWNERS review please: > chrome/chrome_resources.gyp > chrome/tools/build/repack_locales.py Do ...
5 years, 5 months ago (2015-07-09 20:47:55 UTC) #26
scheib
Split out string changes to https://codereview.chromium.org/1224273008/
5 years, 5 months ago (2015-07-11 00:46:39 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1215303006/160001
5 years, 5 months ago (2015-07-14 00:03:25 UTC) #31
commit-bot: I haz the power
Committed patchset #7 (id:160001)
5 years, 5 months ago (2015-07-14 00:38:40 UTC) #32
commit-bot: I haz the power
5 years, 5 months ago (2015-07-14 00:39:45 UTC) #33
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/59e28a2e1672ade6d9e08e7e1699b47f0851f0df
Cr-Commit-Position: refs/heads/master@{#338604}

Powered by Google App Engine
This is Rietveld 408576698