Home
last modified time | relevance | path

Searched refs:mNativeInterface (Results 1 – 11 of 11) sorted by relevance

/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hfp/
DHeadsetServiceAndStateMachineTest.java98 private HeadsetNativeInterface mNativeInterface; field in HeadsetServiceAndStateMachineTest
197 mNativeInterface = spy(HeadsetNativeInterface.getInstance()); in setUp()
198 doNothing().when(mNativeInterface).init(anyInt(), anyBoolean()); in setUp()
199 doNothing().when(mNativeInterface).cleanup(); in setUp()
200 doReturn(true).when(mNativeInterface).connectHfp(any(BluetoothDevice.class)); in setUp()
201 doReturn(true).when(mNativeInterface).disconnectHfp(any(BluetoothDevice.class)); in setUp()
202 doReturn(true).when(mNativeInterface).connectAudio(any(BluetoothDevice.class)); in setUp()
203 doReturn(true).when(mNativeInterface).disconnectAudio(any(BluetoothDevice.class)); in setUp()
204 doReturn(true).when(mNativeInterface).setActiveDevice(any(BluetoothDevice.class)); in setUp()
205 doReturn(true).when(mNativeInterface).sendBsir(any(BluetoothDevice.class), anyBoolean()); in setUp()
[all …]
DHeadsetServiceTest.java76 private HeadsetNativeInterface mNativeInterface; field in HeadsetServiceTest
125 mNativeInterface = spy(HeadsetNativeInterface.getInstance()); in setUp()
126 doNothing().when(mNativeInterface).init(anyInt(), anyBoolean()); in setUp()
127 doNothing().when(mNativeInterface).cleanup(); in setUp()
128 doReturn(true).when(mNativeInterface).connectHfp(any(BluetoothDevice.class)); in setUp()
129 doReturn(true).when(mNativeInterface).disconnectHfp(any(BluetoothDevice.class)); in setUp()
130 doReturn(true).when(mNativeInterface).connectAudio(any(BluetoothDevice.class)); in setUp()
131 doReturn(true).when(mNativeInterface).disconnectAudio(any(BluetoothDevice.class)); in setUp()
132 doReturn(true).when(mNativeInterface).setActiveDevice(any(BluetoothDevice.class)); in setUp()
133 doReturn(true).when(mNativeInterface).sendBsir(any(BluetoothDevice.class), anyBoolean()); in setUp()
[all …]
DHeadsetStateMachineTest.java80 private HeadsetNativeInterface mNativeInterface; field in HeadsetStateMachineTest
98 mNativeInterface = spy(HeadsetNativeInterface.getInstance()); in setUp()
99 doNothing().when(mNativeInterface).init(anyInt(), anyBoolean()); in setUp()
100 doReturn(true).when(mNativeInterface).connectHfp(mTestDevice); in setUp()
101 doReturn(true).when(mNativeInterface).disconnectHfp(mTestDevice); in setUp()
102 doReturn(true).when(mNativeInterface).connectAudio(mTestDevice); in setUp()
103 doReturn(true).when(mNativeInterface).disconnectAudio(mTestDevice); in setUp()
127 mAdapterService, mNativeInterface, mSystemInterface); in setUp()
941 verify(mNativeInterface, timeout(ASYNC_CALL_TIMEOUT_MILLIS)).disconnectAudio(mTestDevice); in testKeyPressedEventWhenIdleAndAudioOn_disconnectAudio()
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/
DHeadsetStateMachine.java130 private final HeadsetNativeInterface mNativeInterface; field in HeadsetStateMachine
174 mNativeInterface = in HeadsetStateMachine()
181 mPhonebook = new AtPhonebook(mHeadsetService, mNativeInterface); in HeadsetStateMachine()
465 if (!mNativeInterface.connectHfp(device)) { in processMessage()
524 if (!mNativeInterface.disconnectHfp(mDevice)) { in processConnectionEvent()
824 if (!mNativeInterface.startVoiceRecognition(mDevice)) { in processMessage()
837 if (!mNativeInterface.stopVoiceRecognition(mDevice)) { in processMessage()
847 if (!mNativeInterface.phoneStateChange(mDevice, callState)) { in processMessage()
854 mNativeInterface.notifyDeviceStatus(mDevice, (HeadsetDeviceState) message.obj); in processMessage()
865 mNativeInterface.clccResponse(device, 0, 0, 0, 0, false, "", 0); in processMessage()
[all …]
DAtPhonebook.java79 private HeadsetNativeInterface mNativeInterface; field in AtPhonebook
102 mNativeInterface = nativeInterface; in AtPhonebook()
175 mNativeInterface.atResponseCode(device, atCommandResult, atCommandErrorCode); in handleCscsCommand()
194 mNativeInterface.atResponseString(device, atCommandResponse); in handleCscsCommand()
196 mNativeInterface.atResponseCode(device, atCommandResult, atCommandErrorCode); in handleCscsCommand()
263 mNativeInterface.atResponseString(device, atCommandResponse); in handleCpbsCommand()
265 mNativeInterface.atResponseCode(device, atCommandResult, atCommandErrorCode); in handleCpbsCommand()
288 mNativeInterface.atResponseCode(remoteDevice, atCommandResult, in handleCpbrCommand()
303 mNativeInterface.atResponseString(remoteDevice, atCommandResponse); in handleCpbrCommand()
304 mNativeInterface.atResponseCode(remoteDevice, atCommandResult, atCommandErrorCode); in handleCpbrCommand()
[all …]
DHeadsetService.java103 private HeadsetNativeInterface mNativeInterface; field in HeadsetService
152 mNativeInterface = HeadsetObjectsFactory.getInstance().getNativeInterface(); in start()
154 mNativeInterface.init(mMaxHeadsetConnections + 1, isInbandRingingEnabled()); in start()
216 mNativeInterface.cleanup(); in stop()
307 mNativeInterface, mSystemInterface); in messageFromNative()
699 mAdapterService, mNativeInterface, mSystemInterface); in connect()
965 mNativeInterface.setScoAllowed(allowed); in setAudioRouteAllowed()
1083 if (!mNativeInterface.setActiveDevice(device)) { in setActiveDevice()
1094 mNativeInterface.setActiveDevice(previousActiveDevice); in setActiveDevice()
1103 mNativeInterface.setActiveDevice(previousActiveDevice); in setActiveDevice()
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcp/
DAvrcpTargetService.java57 private AvrcpNativeInterface mNativeInterface; field in AvrcpTargetService
80 mNativeInterface.sendMediaUpdate(metadata, state, queue); in run()
86 mNativeInterface.sendFolderUpdate(availablePlayers, addressedPlayers, uids); in run()
95 if (mNativeInterface == null) return; in onReceive()
98 mNativeInterface.sendMediaUpdate(false, true, false); in onReceive()
156 mNativeInterface = AvrcpNativeInterface.getInterface(); in start()
157 mNativeInterface.init(AvrcpTargetService.this); in start()
159 mVolumeManager = new AvrcpVolumeManager(this, mAudioManager, mNativeInterface); in start()
191 if (mNativeInterface != null) mNativeInterface.cleanup(); in stop()
194 mNativeInterface = null; in stop()
[all …]
DAvrcpVolumeManager.java48 AvrcpNativeInterface mNativeInterface; field in AvrcpVolumeManager
84 mNativeInterface.sendVolumeChanged(avrcpVolume); in switchVolumeDevice()
92 mNativeInterface = nativeInterface; in AvrcpVolumeManager()
/packages/apps/Bluetooth/src/com/android/bluetooth/hearingaid/
DHearingAidStateMachine.java87 private HearingAidNativeInterface mNativeInterface; field in HearingAidStateMachine
96 mNativeInterface = nativeInterface; in HearingAidStateMachine()
160 if (!mNativeInterface.connectHearingAid(mDevice)) { in processMessage()
173 mNativeInterface.disconnectHearingAid(mDevice); in processMessage()
211 mNativeInterface.disconnectHearingAid(mDevice); in processConnectionEvent()
222 mNativeInterface.disconnectHearingAid(mDevice); in processConnectionEvent()
264 mNativeInterface.disconnectHearingAid(mDevice); in processMessage()
267 mNativeInterface.addToWhiteList(mDevice); in processMessage()
278 mNativeInterface.disconnectHearingAid(mDevice); in processMessage()
354 mNativeInterface.disconnectHearingAid(mDevice); in processMessage()
[all …]
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hearingaid/
DHearingAidServiceTest.java75 @Mock private HearingAidNativeInterface mNativeInterface; field in HearingAidServiceTest
98 mService.mHearingAidNativeInterface = mNativeInterface; in setUp()
310 doReturn(true).when(mNativeInterface).connectHearingAid(any(BluetoothDevice.class)); in testOutgoingConnectMissingHearingAidUuid()
311 doReturn(true).when(mNativeInterface).disconnectHearingAid(any(BluetoothDevice.class)); in testOutgoingConnectMissingHearingAidUuid()
326 doReturn(true).when(mNativeInterface).connectHearingAid(any(BluetoothDevice.class)); in testOutgoingConnectPriorityOff()
327 doReturn(true).when(mNativeInterface).disconnectHearingAid(any(BluetoothDevice.class)); in testOutgoingConnectPriorityOff()
351 doReturn(true).when(mNativeInterface).connectHearingAid(any(BluetoothDevice.class)); in testOutgoingConnectTimeout()
352 doReturn(true).when(mNativeInterface).disconnectHearingAid(any(BluetoothDevice.class)); in testOutgoingConnectTimeout()
386 doReturn(true).when(mNativeInterface).connectHearingAid(any(BluetoothDevice.class)); in testConnectAPair_connectBothDevices()
387 doReturn(true).when(mNativeInterface).disconnectHearingAid(any(BluetoothDevice.class)); in testConnectAPair_connectBothDevices()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/hfpclient/
DHeadsetClientService.java58 private NativeInterface mNativeInterface = null; field in HeadsetClientService
83 mNativeInterface = new NativeInterface(); in start()
84 mNativeInterface.initializeNative(); in start()
140 mNativeInterface.cleanupNative(); in stop()
141 mNativeInterface = null; in stop()