Home
last modified time | relevance | path

Searched refs:usbDevice (Results 1 – 6 of 6) sorted by relevance

/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/
DUsbResetTestTest.java73 UsbDevice usbDevice = Mockito.mock(UsbDevice.class); in testReset() local
75 doReturn(usbDevice).when(mUsb).getDevice("serial"); in testReset()
78 verify(usbDevice).reset(); in testReset()
85 UsbDevice usbDevice = Mockito.mock(UsbDevice.class); in testReset_recovery() local
88 doReturn(usbDevice).when(mUsb).getDevice("serial"); in testReset_recovery()
91 verify(usbDevice).reset(); in testReset_recovery()
/tools/tradefederation/core/src/com/android/tradefed/device/
DDeviceManager.java882 public ITestDevice reconnectDeviceToTcp(ITestDevice usbDevice) in reconnectDeviceToTcp() argument
884 CLog.i("Reconnecting device %s to adb over tcpip", usbDevice.getSerialNumber()); in reconnectDeviceToTcp()
886 if (usbDevice instanceof IManagedTestDevice) { in reconnectDeviceToTcp()
887 IManagedTestDevice managedUsbDevice = (IManagedTestDevice) usbDevice; in reconnectDeviceToTcp()
890 CLog.d("Device %s was switched to adb tcp on %s", usbDevice.getSerialNumber(), in reconnectDeviceToTcp()
DWaitDeviceRecovery.java493 try (UsbDevice usbDevice = usb.getDevice(serial)) { in attemptDeviceUnavailableRecovery() argument
494 if (usbDevice != null) { in attemptDeviceUnavailableRecovery()
496 usbDevice.reset(); in attemptDeviceUnavailableRecovery()
DIDeviceManager.java162 public ITestDevice reconnectDeviceToTcp(ITestDevice usbDevice) in reconnectDeviceToTcp() argument
/tools/tradefederation/core/src/com/android/tradefed/testtype/
DUsbResetTest.java46 try (UsbDevice usbDevice = usb.getDevice(serial)) { in run() argument
47 if (usbDevice == null) { in run()
54 usbDevice.reset(); in run()
/tools/tradefederation/core/tests/src/com/android/tradefed/device/
DMockDeviceManager.java319 public ITestDevice reconnectDeviceToTcp(ITestDevice usbDevice) in reconnectDeviceToTcp() argument