OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "device/usb/usb_device_android.h" | 5 #include "device/usb/usb_device_android.h" |
6 | 6 |
7 #include "base/android/build_info.h" | 7 #include "base/android/build_info.h" |
8 #include "base/android/jni_string.h" | 8 #include "base/android/jni_string.h" |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/location.h" | 10 #include "base/location.h" |
11 #include "base/thread_task_runner_handle.h" | 11 #include "base/threading/thread_task_runner_handle.h" |
12 #include "device/usb/usb_configuration_android.h" | 12 #include "device/usb/usb_configuration_android.h" |
13 #include "device/usb/usb_device_handle.h" | 13 #include "device/usb/usb_device_handle.h" |
14 #include "device/usb/usb_interface_android.h" | 14 #include "device/usb/usb_interface_android.h" |
15 #include "jni/ChromeUsbDevice_jni.h" | 15 #include "jni/ChromeUsbDevice_jni.h" |
16 | 16 |
17 using base::android::AttachCurrentThread; | 17 using base::android::AttachCurrentThread; |
18 using base::android::ConvertJavaStringToUTF16; | 18 using base::android::ConvertJavaStringToUTF16; |
19 using base::android::JavaRef; | 19 using base::android::JavaRef; |
20 using base::android::ScopedJavaLocalRef; | 20 using base::android::ScopedJavaLocalRef; |
21 | 21 |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 env, env->GetObjectArrayElement(interfaces.obj(), i)); | 115 env, env->GetObjectArrayElement(interfaces.obj(), i)); |
116 config.interfaces.push_back(UsbInterfaceAndroid::Convert(env, interface)); | 116 config.interfaces.push_back(UsbInterfaceAndroid::Convert(env, interface)); |
117 } | 117 } |
118 configurations_.push_back(config); | 118 configurations_.push_back(config); |
119 } | 119 } |
120 } | 120 } |
121 | 121 |
122 UsbDeviceAndroid::~UsbDeviceAndroid() {} | 122 UsbDeviceAndroid::~UsbDeviceAndroid() {} |
123 | 123 |
124 } // namespace device | 124 } // namespace device |
OLD | NEW |