Home
last modified time | relevance | path

Searched refs:isValid (Results 1 – 5 of 5) sorted by relevance

/platform_testing/libraries/aoa-helper/src/com/android/helper/aoa/
DUsbDevice.java90 public boolean isValid() { in isValid() method in UsbDevice
97 if (!isValid() || mDescriptor[16] <= 0) { in getSerialNumber()
119 return isValid() && controlTransfer(INPUT, ACCESSORY_GET_PROTOCOL, 0, 0, new byte[2]) >= 2; in isAoaCompatible()
125 if (isValid()) { in close()
DAoaDevice.java98 if (!isValid()) { in initialize()
164 public boolean isValid() { in isValid() method in AoaDevice
165 return mDelegate != null && mDelegate.isValid(); in isValid()
304 if (isValid()) { in close()
/platform_testing/libraries/aoa-helper/tests/src/com/android/helper/aoa/
DUsbDeviceTest.java73 assertTrue(mDevice.isValid()); in testIsValid()
77 assertFalse(mDevice.isValid()); in testIsValid()
DUsbHelperTest.java84 when(mDevice.isValid()).thenReturn(true); in setUp()
DAoaDeviceTest.java91 when(mDelegate.isValid()).thenReturn(true); in setUp()
163 when(mDelegate.isValid()).thenReturn(false); in testThrowsIfConnectionInvalid()