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

Issue 1150833002: bluetooth: android: Initial Low Energy Discovery Sessions. (Closed)

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

Description

bluetooth: android: Initial Low Energy Discovery Sessions. Add ability to start a low energy scan, though do nothing with the results for now besides log that they are found. Rename hasBluetoothPermission -> hasBluetoothCapability because the permissions, SDK version, and hardware feature must all be present. BUG=488575 Committed: https://crrev.com/649ce43ef16cd8c4a3315f2ebfa5823dcc06585e Cr-Commit-Position: refs/heads/master@{#337924} Committed: https://crrev.com/bc23b56f1e087dc89d087d37c4bf76decf749422 Cr-Commit-Position: refs/heads/master@{#338571}

Patch Set 1 #

Total comments: 11

Patch Set 2 : ortuno's comments addressed. #

Total comments: 6

Patch Set 3 : addressed tedchoc's comments #

Total comments: 8

Patch Set 4 : tedchoc comments addressed. #

Total comments: 8

Patch Set 5 : Add tests #

Total comments: 7

Patch Set 6 : armansito comments addressed. #

Patch Set 7 : Fix static final members in FakeBluetoothDevice. #

Patch Set 8 : ScanSettings moved into Wrappers #

Patch Set 9 : Fakes no longer depend on ScanCallback, fixes runtime crash on older versions. #

Patch Set 10 : https://codereview.chromium.org/1231883004 fixs runtime error. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+481 lines, -10 lines) Patch
M chrome/android/shell/java/AndroidManifest.xml.jinja2 View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M device/bluetooth/android/java/src/org/chromium/device/bluetooth/ChromeBluetoothAdapter.java View 1 2 3 4 5 6 7 8 4 chunks +145 lines, -4 lines 0 comments Download
M device/bluetooth/android/java/src/org/chromium/device/bluetooth/Wrappers.java View 1 2 3 4 5 6 7 8 6 chunks +148 lines, -2 lines 0 comments Download
M device/bluetooth/bluetooth_adapter_android.h View 1 2 3 4 2 chunks +8 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth_adapter_android.cc View 1 2 3 4 2 chunks +23 lines, -3 lines 0 comments Download
M device/bluetooth/bluetooth_adapter_unittest.cc View 1 2 3 4 5 1 chunk +24 lines, -0 lines 0 comments Download
M device/bluetooth/test/android/java/src/org/chromium/device/bluetooth/Fakes.java View 1 2 3 4 5 6 7 4 chunks +79 lines, -1 line 0 comments Download
M device/bluetooth/test/bluetooth_test.h View 1 2 3 4 2 chunks +20 lines, -0 lines 0 comments Download
M device/bluetooth/test/bluetooth_test.cc View 1 2 3 4 2 chunks +33 lines, -0 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 58 (30 generated)
scheib
5 years, 7 months ago (2015-05-20 23:10:43 UTC) #2
ortuno
lgtm https://codereview.chromium.org/1150833002/diff/1/device/bluetooth/android/java/src/org/chromium/device/bluetooth/BluetoothAdapter.java File device/bluetooth/android/java/src/org/chromium/device/bluetooth/BluetoothAdapter.java (right): https://codereview.chromium.org/1150833002/diff/1/device/bluetooth/android/java/src/org/chromium/device/bluetooth/BluetoothAdapter.java#newcode67 device/bluetooth/android/java/src/org/chromium/device/bluetooth/BluetoothAdapter.java:67: Log.i(TAG, "Bluetooth API disabled; SDK version (%d) too ...
5 years, 7 months ago (2015-05-21 16:48:53 UTC) #3
scheib
Thanks. tedchoc: Comment on appropriateness of current logging in device/bluetooth/android/java/src/org/chromium/device/bluetooth/BluetoothAdapter.java please? https://codereview.chromium.org/1150833002/diff/1/device/bluetooth/android/java/src/org/chromium/device/bluetooth/BluetoothAdapter.java File device/bluetooth/android/java/src/org/chromium/device/bluetooth/BluetoothAdapter.java (right): ...
5 years, 7 months ago (2015-05-22 01:26:46 UTC) #5
Ted C
lgtm w/ a couple comments https://codereview.chromium.org/1150833002/diff/20001/device/bluetooth/android/java/src/org/chromium/device/bluetooth/BluetoothAdapter.java File device/bluetooth/android/java/src/org/chromium/device/bluetooth/BluetoothAdapter.java (right): https://codereview.chromium.org/1150833002/diff/20001/device/bluetooth/android/java/src/org/chromium/device/bluetooth/BluetoothAdapter.java#newcode34 device/bluetooth/android/java/src/org/chromium/device/bluetooth/BluetoothAdapter.java:34: private int mNumDiscoverySessions = ...
5 years, 7 months ago (2015-05-22 20:11:47 UTC) #6
scheib
tedchoc: Thanks. BTW, is usage of Log.v, Log.d, Log.i seem fine too you? Not too ...
5 years, 7 months ago (2015-05-22 21:34:10 UTC) #7
scheib
armansito: PTAL. Particularly discuss if it's OK to generally start discovery sessions with success and ...
5 years, 7 months ago (2015-05-27 01:06:05 UTC) #9
Ted C
logging choices looks fine to me. If we see it is too spammy in the ...
5 years, 7 months ago (2015-05-27 01:13:39 UTC) #10
scheib
Thanks, https://codereview.chromium.org/1150833002/diff/40001/device/bluetooth/android/java/src/org/chromium/device/bluetooth/BluetoothAdapter.java File device/bluetooth/android/java/src/org/chromium/device/bluetooth/BluetoothAdapter.java (right): https://codereview.chromium.org/1150833002/diff/40001/device/bluetooth/android/java/src/org/chromium/device/bluetooth/BluetoothAdapter.java#newcode32 device/bluetooth/android/java/src/org/chromium/device/bluetooth/BluetoothAdapter.java:32: private final long mNativeCPPObject; On 2015/05/27 01:13:39, Ted ...
5 years, 7 months ago (2015-05-27 02:21:54 UTC) #11
armansito
btw, what will be you unit testing strategy for Android? https://codereview.chromium.org/1150833002/diff/60001/device/bluetooth/android/java/src/org/chromium/device/bluetooth/BluetoothAdapter.java File device/bluetooth/android/java/src/org/chromium/device/bluetooth/BluetoothAdapter.java (right): https://codereview.chromium.org/1150833002/diff/60001/device/bluetooth/android/java/src/org/chromium/device/bluetooth/BluetoothAdapter.java#newcode71 ...
5 years, 7 months ago (2015-05-28 04:04:11 UTC) #12
scheib
armansito, PTAL. I've updated this patch to add tests. There's some churn based on adding ...
5 years, 5 months ago (2015-06-30 17:55:14 UTC) #21
armansito
lgtm https://codereview.chromium.org/1150833002/diff/240001/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/1150833002/diff/240001/device/bluetooth/android/java/src/org/chromium/device/bluetooth/ChromeBluetoothAdapter.java#newcode38 device/bluetooth/android/java/src/org/chromium/device/bluetooth/ChromeBluetoothAdapter.java:38: * @param nativeBluetoothAdapterAndroid Is the paired C++ I'd ...
5 years, 5 months ago (2015-06-30 20:37:22 UTC) #22
armansito
nit https://codereview.chromium.org/1150833002/diff/240001/device/bluetooth/bluetooth_adapter_unittest.cc File device/bluetooth/bluetooth_adapter_unittest.cc (right): https://codereview.chromium.org/1150833002/diff/240001/device/bluetooth/bluetooth_adapter_unittest.cc#newcode469 device/bluetooth/bluetooth_adapter_unittest.cc:469: #endif #endif // defined(OS_ANDROID)
5 years, 5 months ago (2015-06-30 20:52:15 UTC) #23
scheib
Thanks https://codereview.chromium.org/1150833002/diff/240001/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/1150833002/diff/240001/device/bluetooth/android/java/src/org/chromium/device/bluetooth/ChromeBluetoothAdapter.java#newcode38 device/bluetooth/android/java/src/org/chromium/device/bluetooth/ChromeBluetoothAdapter.java:38: * @param nativeBluetoothAdapterAndroid Is the paired C++ On ...
5 years, 5 months ago (2015-06-30 21:02:14 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1150833002/260001
5 years, 5 months ago (2015-06-30 22:49:33 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: android_clang_dbg_recipe on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/android_clang_dbg_recipe/builds/92298)
5 years, 5 months ago (2015-06-30 23:29:08 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1150833002/280001
5 years, 5 months ago (2015-07-02 00:51:04 UTC) #35
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_android_rel_ng/builds/40284)
5 years, 5 months ago (2015-07-02 02:38:08 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1150833002/300001
5 years, 5 months ago (2015-07-07 22:50:15 UTC) #40
commit-bot: I haz the power
Try jobs failed on following builders: android_chromium_gn_compile_dbg on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/android_chromium_gn_compile_dbg/builds/89056) android_chromium_gn_compile_rel on tryserver.chromium.linux (JOB_FAILED, ...
5 years, 5 months ago (2015-07-08 01:11:57 UTC) #42
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1150833002/300001
5 years, 5 months ago (2015-07-08 17:51:56 UTC) #44
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_android_rel_ng/builds/42135)
5 years, 5 months ago (2015-07-08 19:45:39 UTC) #46
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1150833002/320001
5 years, 5 months ago (2015-07-08 21:36:54 UTC) #49
commit-bot: I haz the power
Committed patchset #9 (id:320001)
5 years, 5 months ago (2015-07-08 22:37:29 UTC) #50
commit-bot: I haz the power
Patchset 9 (id:??) landed as https://crrev.com/649ce43ef16cd8c4a3315f2ebfa5823dcc06585e Cr-Commit-Position: refs/heads/master@{#337924}
5 years, 5 months ago (2015-07-08 22:38:32 UTC) #51
scheib
A revert of this CL (patchset #9 id:320001) has been created in https://codereview.chromium.org/1226103005/ by scheib@chromium.org. ...
5 years, 5 months ago (2015-07-09 00:43:22 UTC) #52
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1150833002/360001
5 years, 5 months ago (2015-07-13 21:27:34 UTC) #56
commit-bot: I haz the power
Committed patchset #10 (id:360001)
5 years, 5 months ago (2015-07-13 21:53:52 UTC) #57
commit-bot: I haz the power
5 years, 5 months ago (2015-07-13 21:55:45 UTC) #58
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/bc23b56f1e087dc89d087d37c4bf76decf749422
Cr-Commit-Position: refs/heads/master@{#338571}

Powered by Google App Engine
This is Rietveld 408576698