Searched refs:mMockUsbService (Results 1 – 2 of 2) sorted by relevance
46 @Mock private android.hardware.usb.IUsbManager mMockUsbService; field in UsbManagerTestLib58 assertNotNull(mUsbManagerMock = new UsbManager(mContext, mMockUsbService)); in UsbManagerTestLib()84 when(mMockUsbService.getCurrentFunctions()).thenReturn(functions); in testGetCurrentFunctionsMock_Matched()97 verify(mMockUsbService).setCurrentFunctions(eq(functions), operationId); in testSetCurrentFunctionsMock_Matched()114 verify(mMockUsbService).getCurrentFunctions(); in testGetCurrentFunctionsEx()121 verify(mMockUsbService).setCurrentFunctions(eq(functions), operationId); in testSetCurrentFunctionsEx()
47 private IUsbManager mMockUsbService; field in UsbPortTest56 mMockUsbService = mock(IUsbManager.class); in setUp()57 mUsbManager = new UsbManager(InstrumentationRegistry.getContext(), mMockUsbService); in setUp()65 when(mMockUsbService.isModeChangeSupported(testPortId)).thenReturn(isModeChangeSupported); in testIsModeSupported()