Home
last modified time | relevance | path

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

/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hid/
DHidDeviceTest.java77 @Mock private HidDeviceNativeInterface mHidDeviceNativeInterface; field in HidDeviceTest
111 setHidDeviceNativeInterfaceInstance(mHidDeviceNativeInterface); in setUp()
128 Assert.assertEquals(nativeInterface, mHidDeviceNativeInterface); in setUp()
139 reset(mHidDeviceNativeInterface, mAdapterService); in setUp()
276 doReturn(true).when(mHidDeviceNativeInterface) in testRegistration()
280 verify(mHidDeviceNativeInterface, never()).registerApp(anyString(), anyString(), in testRegistration()
287 verify(mHidDeviceNativeInterface).registerApp(anyString(), anyString(), anyString(), in testRegistration()
295 doReturn(true).when(mHidDeviceNativeInterface).unregisterApp(); in testRegistration()
298 verify(mHidDeviceNativeInterface).unregisterApp(); in testRegistration()
310 doReturn(true).when(mHidDeviceNativeInterface).sendReport(anyInt(), any(byte[].class)); in testSendReport()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/hid/
DHidDeviceService.java68 private HidDeviceNativeInterface mHidDeviceNativeInterface; field in HidDeviceService
512 return mHidDeviceNativeInterface.registerApp( in registerApp()
557 return mHidDeviceNativeInterface.unregisterApp(); in unregisterAppUid()
572 && mHidDeviceNativeInterface.sendReport(id, data); in sendReport()
582 && mHidDeviceNativeInterface.replyReport(type, id, data); in replyReport()
592 && mHidDeviceNativeInterface.unplug(); in unplug()
601 return checkCallingUid() && mHidDeviceNativeInterface.connect(device); in connect()
615 return checkDevice(device) && mHidDeviceNativeInterface.disconnect(); in disconnect()
625 && mHidDeviceNativeInterface.reportError(error); in reportError()
644 mHidDeviceNativeInterface = HidDeviceNativeInterface.getInstance(); in start()
[all …]