Searched refs:usbDevice (Results 1 – 6 of 6) sorted by relevance
73 UsbDevice usbDevice = Mockito.mock(UsbDevice.class); in testReset() local75 doReturn(usbDevice).when(mUsb).getDevice("serial"); in testReset()78 verify(usbDevice).reset(); in testReset()85 UsbDevice usbDevice = Mockito.mock(UsbDevice.class); in testReset_recovery() local88 doReturn(usbDevice).when(mUsb).getDevice("serial"); in testReset_recovery()91 verify(usbDevice).reset(); in testReset_recovery()
46 try (UsbDevice usbDevice = usb.getDevice(serial)) { in run() argument47 if (usbDevice == null) { in run()54 usbDevice.reset(); in run()
522 try (UsbDevice usbDevice = usb.getDevice(serial)) { in attemptDeviceUnavailableRecovery() argument523 if (usbDevice != null) { in attemptDeviceUnavailableRecovery()525 usbDevice.reset(); in attemptDeviceUnavailableRecovery()
176 public ITestDevice reconnectDeviceToTcp(ITestDevice usbDevice) in reconnectDeviceToTcp() argument
984 public ITestDevice reconnectDeviceToTcp(ITestDevice usbDevice) in reconnectDeviceToTcp() argument986 CLog.i("Reconnecting device %s to adb over tcpip", usbDevice.getSerialNumber()); in reconnectDeviceToTcp()988 if (usbDevice instanceof IManagedTestDevice) { in reconnectDeviceToTcp()989 IManagedTestDevice managedUsbDevice = (IManagedTestDevice) usbDevice; in reconnectDeviceToTcp()992 CLog.d("Device %s was switched to adb tcp on %s", usbDevice.getSerialNumber(), in reconnectDeviceToTcp()
304 public ITestDevice reconnectDeviceToTcp(ITestDevice usbDevice) in reconnectDeviceToTcp() argument