Home
last modified time | relevance | path

Searched refs:mMockUsbService (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/tests/UsbManagerTests/lib/src/com/android/server/usblib/
DUsbManagerTestLib.java46 @Mock private android.hardware.usb.IUsbManager mMockUsbService; field in UsbManagerTestLib
58 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()
/frameworks/base/tests/UsbManagerTests/src/android/hardware/usb/
DUsbPortTest.java47 private IUsbManager mMockUsbService; field in UsbPortTest
56 mMockUsbService = mock(IUsbManager.class); in setUp()
57 mUsbManager = new UsbManager(InstrumentationRegistry.getContext(), mMockUsbService); in setUp()
65 when(mMockUsbService.isModeChangeSupported(testPortId)).thenReturn(isModeChangeSupported); in testIsModeSupported()