Searched refs:isValid (Results 1 – 5 of 5) sorted by relevance
90 public boolean isValid() { in isValid() method in UsbDevice97 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()
98 if (!isValid()) { in initialize()164 public boolean isValid() { in isValid() method in AoaDevice165 return mDelegate != null && mDelegate.isValid(); in isValid()304 if (isValid()) { in close()
73 assertTrue(mDevice.isValid()); in testIsValid()77 assertFalse(mDevice.isValid()); in testIsValid()
84 when(mDevice.isValid()).thenReturn(true); in setUp()
91 when(mDelegate.isValid()).thenReturn(true); in setUp()163 when(mDelegate.isValid()).thenReturn(false); in testThrowsIfConnectionInvalid()