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

Issue 1514603006: Implement basic USB device enumeration on Android. (Closed)

Created:
5 years ago by Reilly Grant (use Gerrit)
Modified:
4 years, 11 months ago
Reviewers:
Yaron, qinmin, pfeldman, nasko
CC:
chromium-reviews, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement basic USB device enumeration on Android. This patch provides a basic implementation of UsbService::GetDevices on Android that populates UsbDevice objects by collecting properties of the Java-side UsbDevice, UsbConfiguration, UsbInterface and UsbEndpoint objects over JNI. It does not support opening devices and does not generate device add or remove notifications. BUG=549257 Committed: https://crrev.com/8a310851fb144e91d1777112930ac15c0d88577b Cr-Commit-Position: refs/heads/master@{#367918}

Patch Set 1 #

Patch Set 2 : Fix android_usb_browsertest.cc. #

Total comments: 6

Patch Set 3 : Address qinmin's comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+940 lines, -27 lines) Patch
M chrome/browser/devtools/device/usb/android_usb_browsertest.cc View 1 2 1 chunk +0 lines, -4 lines 0 comments Download
M content/app/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M content/app/android/library_loader_hooks.cc View 1 2 2 chunks +4 lines, -0 lines 0 comments Download
M content/content_browser.gypi View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M content/public/android/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M device/test/run_all_unittests.cc View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M device/usb/BUILD.gn View 3 chunks +46 lines, -4 lines 0 comments Download
M device/usb/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
A device/usb/android/java/src/org/chromium/device/usb/ChromeUsbConfiguration.java View 1 chunk +68 lines, -0 lines 0 comments Download
A device/usb/android/java/src/org/chromium/device/usb/ChromeUsbDevice.java View 1 chunk +84 lines, -0 lines 0 comments Download
A device/usb/android/java/src/org/chromium/device/usb/ChromeUsbEndpoint.java View 1 2 1 chunk +83 lines, -0 lines 0 comments Download
A device/usb/android/java/src/org/chromium/device/usb/ChromeUsbInterface.java View 1 chunk +70 lines, -0 lines 0 comments Download
A device/usb/android/java/src/org/chromium/device/usb/ChromeUsbService.java View 1 chunk +45 lines, -0 lines 0 comments Download
A device/usb/android/usb_jni_registrar.h View 1 chunk +22 lines, -0 lines 0 comments Download
A device/usb/android/usb_jni_registrar.cc View 1 chunk +35 lines, -0 lines 0 comments Download
M device/usb/mock_usb_device.h View 1 2 2 chunks +2 lines, -3 lines 0 comments Download
M device/usb/usb.gyp View 4 chunks +58 lines, -4 lines 0 comments Download
A device/usb/usb_configuration_android.h View 1 chunk +25 lines, -0 lines 0 comments Download
A device/usb/usb_configuration_android.cc View 1 chunk +49 lines, -0 lines 0 comments Download
M device/usb/usb_descriptors.h View 2 chunks +4 lines, -0 lines 0 comments Download
M device/usb/usb_device.h View 1 2 2 chunks +1 line, -4 lines 0 comments Download
A device/usb/usb_device_android.h View 1 chunk +42 lines, -0 lines 0 comments Download
A device/usb/usb_device_android.cc View 1 chunk +107 lines, -0 lines 0 comments Download
M device/usb/usb_device_impl.h View 1 2 3 chunks +3 lines, -1 line 0 comments Download
M device/usb/usb_device_impl.cc View 1 2 2 chunks +2 lines, -3 lines 0 comments Download
A device/usb/usb_endpoint_android.h View 1 chunk +25 lines, -0 lines 0 comments Download
A device/usb/usb_endpoint_android.cc View 1 chunk +41 lines, -0 lines 0 comments Download
A device/usb/usb_interface_android.h View 1 chunk +25 lines, -0 lines 0 comments Download
A device/usb/usb_interface_android.cc View 1 chunk +51 lines, -0 lines 0 comments Download
M device/usb/usb_service_android.h View 2 chunks +11 lines, -0 lines 0 comments Download
M device/usb/usb_service_android.cc View 2 chunks +31 lines, -4 lines 0 comments Download

Messages

Total messages: 21 (7 generated)
Reilly Grant (use Gerrit)
Please take a look when you get a chance.
5 years ago (2015-12-11 00:09:31 UTC) #3
Reilly Grant (use Gerrit)
qinmin@chromium.org, I am told you did a lot of the JNI reviews for //device/bluetooth. Can ...
5 years ago (2015-12-11 01:46:59 UTC) #5
qinmin
https://codereview.chromium.org/1514603006/diff/20001/device/usb/android/java/src/org/chromium/device/usb/ChromeUsbEndpoint.java File device/usb/android/java/src/org/chromium/device/usb/ChromeUsbEndpoint.java (right): https://codereview.chromium.org/1514603006/diff/20001/device/usb/android/java/src/org/chromium/device/usb/ChromeUsbEndpoint.java#newcode49 device/usb/android/java/src/org/chromium/device/usb/ChromeUsbEndpoint.java:49: throw new AssertionError(); you can move this to the ...
4 years, 11 months ago (2016-01-04 19:20:26 UTC) #6
Reilly Grant (use Gerrit)
https://codereview.chromium.org/1514603006/diff/20001/device/usb/android/java/src/org/chromium/device/usb/ChromeUsbEndpoint.java File device/usb/android/java/src/org/chromium/device/usb/ChromeUsbEndpoint.java (right): https://codereview.chromium.org/1514603006/diff/20001/device/usb/android/java/src/org/chromium/device/usb/ChromeUsbEndpoint.java#newcode49 device/usb/android/java/src/org/chromium/device/usb/ChromeUsbEndpoint.java:49: throw new AssertionError(); On 2016/01/04 at 19:20:26, qinmin wrote: ...
4 years, 11 months ago (2016-01-05 01:35:30 UTC) #7
nasko
The content/ part looks good.
4 years, 11 months ago (2016-01-06 17:32:34 UTC) #8
qinmin
lgtm
4 years, 11 months ago (2016-01-06 18:22:28 UTC) #9
Reilly Grant (use Gerrit)
On 2016/01/06 at 17:32:34, nasko wrote: > The content/ part looks good. You need to ...
4 years, 11 months ago (2016-01-06 18:34:14 UTC) #10
Reilly Grant (use Gerrit)
Adding pfeldman for the minor change to android_usb_browsertest.cc and content/ if he wants to review ...
4 years, 11 months ago (2016-01-06 18:36:55 UTC) #12
nasko
On 2016/01/06 18:34:14, Reilly Grant wrote: > On 2016/01/06 at 17:32:34, nasko wrote: > > ...
4 years, 11 months ago (2016-01-06 18:44:07 UTC) #13
pfeldman
lgtm
4 years, 11 months ago (2016-01-06 19:39:05 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1514603006/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1514603006/40001
4 years, 11 months ago (2016-01-06 20:19:44 UTC) #16
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 11 months ago (2016-01-06 21:25:25 UTC) #18
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/8a310851fb144e91d1777112930ac15c0d88577b Cr-Commit-Position: refs/heads/master@{#367918}
4 years, 11 months ago (2016-01-06 21:27:09 UTC) #20
Reilly Grant (use Gerrit)
4 years, 11 months ago (2016-01-07 15:14:44 UTC) #21
Message was sent while issue was closed.
A revert of this CL (patchset #3 id:40001) has been created in
https://codereview.chromium.org/1561283003/ by reillyg@chromium.org.

The reason for reverting is: Speculating that this is the cause of issue
575191..

Powered by Google App Engine
This is Rietveld 408576698