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()
882 public ITestDevice reconnectDeviceToTcp(ITestDevice usbDevice) in reconnectDeviceToTcp() argument884 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()
493 try (UsbDevice usbDevice = usb.getDevice(serial)) { in attemptDeviceUnavailableRecovery() argument494 if (usbDevice != null) { in attemptDeviceUnavailableRecovery()496 usbDevice.reset(); in attemptDeviceUnavailableRecovery()
162 public ITestDevice reconnectDeviceToTcp(ITestDevice usbDevice) in reconnectDeviceToTcp() argument
46 try (UsbDevice usbDevice = usb.getDevice(serial)) { in run() argument47 if (usbDevice == null) { in run()54 usbDevice.reset(); in run()
319 public ITestDevice reconnectDeviceToTcp(ITestDevice usbDevice) in reconnectDeviceToTcp() argument