Home
last modified time | relevance | path

Searched refs:mA2dpNativeInterface (Results 1 – 6 of 6) sorted by relevance

/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/a2dp/
DA2dpServiceTest.java79 @Mock private A2dpNativeInterface mA2dpNativeInterface; field in A2dpServiceTest
106 mA2dpService.mA2dpNativeInterface = mA2dpNativeInterface; in setUp()
243 doReturn(true).when(mA2dpNativeInterface).setActiveDevice(any(BluetoothDevice.class)); in testStopA2dpService()
246 verify(mA2dpNativeInterface).setActiveDevice(mTestDevice); in testStopA2dpService()
254 verify(mA2dpNativeInterface).setActiveDevice(null); in testStopA2dpService()
358 doReturn(true).when(mA2dpNativeInterface).connectA2dp(any(BluetoothDevice.class)); in testOutgoingConnectMissingAudioSinkUuid()
359 doReturn(true).when(mA2dpNativeInterface).disconnectA2dp(any(BluetoothDevice.class)); in testOutgoingConnectMissingAudioSinkUuid()
374 doReturn(true).when(mA2dpNativeInterface).connectA2dp(any(BluetoothDevice.class)); in testOutgoingConnectPriorityOff()
375 doReturn(true).when(mA2dpNativeInterface).disconnectA2dp(any(BluetoothDevice.class)); in testOutgoingConnectPriorityOff()
395 doReturn(true).when(mA2dpNativeInterface).connectA2dp(any(BluetoothDevice.class)); in testOutgoingConnectTimeout()
[all …]
DA2dpCodecConfigTest.java52 @Mock private A2dpNativeInterface mA2dpNativeInterface; field in A2dpCodecConfigTest
68 mA2dpCodecConfig = new A2dpCodecConfig(mTargetContext, mA2dpNativeInterface); in setUp()
71 doReturn(true).when(mA2dpNativeInterface).setCodecConfigPreference( in setUp()
273 verify(mA2dpNativeInterface, times(verifyCount)) in testDisableOptionalCodecs()
278 verify(mA2dpNativeInterface, times(++verifyCount)) in testDisableOptionalCodecs()
281 verify(mA2dpNativeInterface, times(++verifyCount)) in testDisableOptionalCodecs()
284 verify(mA2dpNativeInterface, times(++verifyCount)) in testDisableOptionalCodecs()
287 verify(mA2dpNativeInterface, times(++verifyCount)) in testDisableOptionalCodecs()
306 verify(mA2dpNativeInterface, times(++verifyCount)) in testEnableOptionalCodecs()
311 verify(mA2dpNativeInterface, times(verifyCount)) in testEnableOptionalCodecs()
[all …]
DA2dpStateMachineTest.java65 @Mock private A2dpNativeInterface mA2dpNativeInterface; field in A2dpStateMachineTest
101 mA2dpNativeInterface, mHandlerThread.getLooper()); in setUp()
213 doReturn(true).when(mA2dpNativeInterface).connectA2dp(any(BluetoothDevice.class)); in testOutgoingTimeout()
214 doReturn(true).when(mA2dpNativeInterface).disconnectA2dp(any(BluetoothDevice.class)); in testOutgoingTimeout()
248 doReturn(true).when(mA2dpNativeInterface).connectA2dp(any(BluetoothDevice.class)); in testIncomingTimeout()
249 doReturn(true).when(mA2dpNativeInterface).disconnectA2dp(any(BluetoothDevice.class)); in testIncomingTimeout()
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dp/
DA2dpStateMachine.java91 private A2dpNativeInterface mA2dpNativeInterface; field in A2dpStateMachine
104 mA2dpNativeInterface = a2dpNativeInterface; in A2dpStateMachine()
184 if (!mA2dpNativeInterface.connectA2dp(mDevice)) { in processMessage()
235 mA2dpNativeInterface.disconnectA2dp(mDevice); in processConnectionEvent()
246 mA2dpNativeInterface.disconnectA2dp(mDevice); in processConnectionEvent()
291 mA2dpNativeInterface.disconnectA2dp(mDevice); in processMessage()
302 mA2dpNativeInterface.disconnectA2dp(mDevice); in processMessage()
387 mA2dpNativeInterface.disconnectA2dp(mDevice); in processMessage()
437 mA2dpNativeInterface.disconnectA2dp(mDevice); in processConnectionEvent()
447 mA2dpNativeInterface.disconnectA2dp(mDevice); in processConnectionEvent()
[all …]
DA2dpCodecConfig.java39 private A2dpNativeInterface mA2dpNativeInterface; field in A2dpCodecConfig
50 mA2dpNativeInterface = a2dpNativeInterface; in A2dpCodecConfig()
90 mA2dpNativeInterface.setCodecConfigPreference(device, codecConfigArray); in setCodecConfigPreference()
113 mA2dpNativeInterface.setCodecConfigPreference(device, codecConfigArray); in enableOptionalCodecs()
135 mA2dpNativeInterface.setCodecConfigPreference(device, codecConfigArray); in disableOptionalCodecs()
DA2dpService.java64 A2dpNativeInterface mA2dpNativeInterface; field in A2dpService
106 mA2dpNativeInterface = Objects.requireNonNull(A2dpNativeInterface.getInstance(), in start()
122 mA2dpCodecConfig = new A2dpCodecConfig(this, mA2dpNativeInterface); in start()
125 mA2dpNativeInterface.init(mMaxConnectedAudioDevices, in start()
174 mA2dpNativeInterface.cleanup(); in stop()
175 mA2dpNativeInterface = null; in stop()
196 mA2dpNativeInterface = null; in stop()
464 if (!mA2dpNativeInterface.setActiveDevice(null)) { in removeActiveDevice()
489 if (!mA2dpNativeInterface.setSilenceDevice(device, silence)) { in setSilenceMode()
544 if (!mA2dpNativeInterface.setActiveDevice(device)) { in setActiveDevice()
[all …]