Searched refs:mDelegate (Results 1 – 2 of 2) sorted by relevance
87 private UsbDevice mDelegate; field in AoaDevice92 mDelegate = delegate; in AoaDevice()102 mSerialNumber = mDelegate.getSerialNumber(); in initialize()114 mDelegate.controlTransfer(OUTPUT, ACCESSORY_START, 0, 0, new byte[0])); in initialize()116 mDelegate.close(); in initialize()117 mDelegate = mHelper.getDevice(mSerialNumber, CONNECTION_TIMEOUT); in initialize()127 mDelegate.controlTransfer( in registerHIDs()135 mDelegate.controlTransfer( in registerHIDs()148 mDelegate.controlTransfer( in unregisterHIDs()159 mDelegate = mHelper.getDevice(mSerialNumber, CONNECTION_TIMEOUT); in resetConnection()[all …]
85 private UsbDevice mDelegate; field in AoaDeviceTest90 mDelegate = mock(UsbDevice.class); in setUp()91 when(mDelegate.isValid()).thenReturn(true); in setUp()92 when(mDelegate.getSerialNumber()).thenReturn(SERIAL_NUMBER); in setUp()93 when(mDelegate.getVendorId()).thenReturn(GOOGLE_VID); in setUp()94 when(mDelegate.getProductId()).thenReturn(ADB_DISABLED_PID); in setUp()97 when(mHelper.getDevice(anyString(), any())).thenReturn(mDelegate); in setUp()118 when(mDelegate.getVendorId()) in testDetectsAccessoryMode()136 when(mDelegate.getVendorId()).thenReturn(INVALID_VID); in testRetriesAccessoryMode()150 clearInvocations(mDelegate); in testResetConnection()[all …]