OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:usbDevice
(Results
1 - 10
of
10
) sorted by null
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/
UsbMicrophoneTester.java
23
import android.hardware.usb.
UsbDevice
;
35
HashMap<String,
UsbDevice
> devicelist = manager.getDeviceList();
36
for(
UsbDevice
usbDevice
: devicelist.values()) {
37
sb.append("Model : " +
usbDevice
.getDeviceName() + "\n");
38
sb.append(" Id : " +
usbDevice
.getDeviceId() + "\n");
39
sb.append(" Class : " +
usbDevice
.getDeviceClass() + "\n");
40
sb.append(" Prod.Id : " +
usbDevice
.getProductId() + "\n");
41
sb.append(" Vendor.Id : " +
usbDevice
.getVendorId() + "\n");
42
int iCount =
usbDevice
.getInterfaceCount()
[
all
...]
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/data/
MtpClient.java
26
import android.hardware.usb.
UsbDevice
;
72
UsbDevice
usbDevice
= (
UsbDevice
) intent.getParcelableExtra(UsbManager.EXTRA_DEVICE);
73
String deviceName =
usbDevice
.getDeviceName();
80
mtpDevice = openDeviceLocked(
usbDevice
);
103
mtpDevice = openDeviceLocked(
usbDevice
);
140
* Tests to see if a {@link android.hardware.usb.
UsbDevice
}
146
public static boolean isCamera(
UsbDevice
device) {
177
* Opens the {@link android.hardware.usb.
UsbDevice
} for an MTP or PT
[
all
...]
/frameworks/base/media/tests/CameraBrowser/src/com/android/camerabrowser/
MtpClient.java
25
import android.hardware.usb.
UsbDevice
;
67
UsbDevice
usbDevice
= (
UsbDevice
)intent.getParcelableExtra(UsbManager.EXTRA_DEVICE);
68
String deviceName =
usbDevice
.getDeviceName();
75
mtpDevice = openDeviceLocked(
usbDevice
);
95
mtpDevice = openDeviceLocked(
usbDevice
);
129
* Tests to see if a {@link android.hardware.usb.
UsbDevice
}
135
static public boolean isCamera(
UsbDevice
device) {
165
* Opens the {@link android.hardware.usb.
UsbDevice
} for an MTP or PT
[
all
...]
/packages/apps/Gallery2/src/com/android/gallery3d/data/
MtpClient.java
26
import android.hardware.usb.
UsbDevice
;
75
UsbDevice
usbDevice
= (
UsbDevice
)intent.getParcelableExtra(UsbManager.EXTRA_DEVICE);
76
String deviceName =
usbDevice
.getDeviceName();
83
mtpDevice = openDeviceLocked(
usbDevice
);
106
mtpDevice = openDeviceLocked(
usbDevice
);
143
* Tests to see if a {@link android.hardware.usb.
UsbDevice
}
149
static public boolean isCamera(
UsbDevice
device) {
179
* Opens the {@link android.hardware.usb.
UsbDevice
} for an MTP or PT
[
all
...]
/frameworks/base/services/usb/java/com/android/server/usb/
UsbAlsaManager.java
23
import android.hardware.usb.
UsbDevice
;
65
private final HashMap<
UsbDevice
,UsbAudioDevice>
66
mAudioDevices = new HashMap<
UsbDevice
,UsbAudioDevice>();
68
private final HashMap<
UsbDevice
,UsbMidiDevice>
69
mMidiDevices = new HashMap<
UsbDevice
,UsbMidiDevice>();
347
/* package */ void usbDeviceAdded(
UsbDevice
usbDevice
) {
349
Slog.d(TAG, "deviceAdded(): " +
usbDevice
.getManufacturerName() +
350
" nm:" +
usbDevice
.getProductName());
357
int interfaceCount =
usbDevice
.getInterfaceCount()
[
all
...]
/tools/tradefederation/core/src/com/android/tradefed/device/
IDeviceManager.java
147
* @param
usbDevice
the device currently in usb mode
150
* @throws DeviceNotAvailableException if the connection with <var>
usbDevice
</var> was lost and
153
public ITestDevice reconnectDeviceToTcp(ITestDevice
usbDevice
)
DeviceManager.java
700
public ITestDevice reconnectDeviceToTcp(ITestDevice
usbDevice
)
702
CLog.i("Reconnecting device %s to adb over tcpip",
usbDevice
.getSerialNumber());
704
if (
usbDevice
instanceof IManagedTestDevice) {
705
IManagedTestDevice managedUsbDevice = (IManagedTestDevice)
usbDevice
;
708
CLog.d("Device %s was switched to adb tcp on %s",
usbDevice
.getSerialNumber(),
[
all
...]
/system/core/adb/client/
usb_osx.cpp
129
io_service_t
usbDevice
;
182
kr = (*iface)->GetDevice(iface, &
usbDevice
);
183
if (kIOReturnSuccess != kr || !
usbDevice
) {
192
kr = IOCreatePlugInInterfaceForService(
usbDevice
,
197
(void)IOObjectRelease(
usbDevice
);
/packages/services/Car/car-usb-handler/src/android/car/usb/handler/
UsbDeviceHandlerResolver.java
28
import android.hardware.usb.
UsbDevice
;
59
UsbDevice
device, List<UsbDeviceSettings> availableSettings);
72
public final
UsbDevice
usbDevice
;
96
public DeviceContext(
UsbDevice
usbDevice
, UsbDeviceSettings settings,
98
this.
usbDevice
=
usbDevice
;
101
connection = UsbUtil.openConnection(mUsbManager,
usbDevice
);
165
DeviceFilter(
UsbDevice
device)
[
all
...]
/tools/tradefederation/core/tests/src/com/android/tradefed/device/
MockDeviceManager.java
313
public ITestDevice reconnectDeviceToTcp(ITestDevice
usbDevice
)
Completed in 420 milliseconds