Searched refs:mA2dpNativeInterface (Results 1 – 6 of 6) sorted by relevance
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/a2dp/ |
D | A2dpServiceTest.java | 77 @Mock private A2dpNativeInterface mA2dpNativeInterface; field in A2dpServiceTest 101 mA2dpService.mA2dpNativeInterface = mA2dpNativeInterface; in setUp() 237 doReturn(true).when(mA2dpNativeInterface).setActiveDevice(any(BluetoothDevice.class)); in testStopA2dpService() 240 verify(mA2dpNativeInterface).setActiveDevice(mTestDevice); in testStopA2dpService() 248 verify(mA2dpNativeInterface).setActiveDevice(null); in testStopA2dpService() 335 doReturn(true).when(mA2dpNativeInterface).connectA2dp(any(BluetoothDevice.class)); in testOutgoingConnectMissingAudioSinkUuid() 336 doReturn(true).when(mA2dpNativeInterface).disconnectA2dp(any(BluetoothDevice.class)); in testOutgoingConnectMissingAudioSinkUuid() 351 doReturn(true).when(mA2dpNativeInterface).connectA2dp(any(BluetoothDevice.class)); in testOutgoingConnectPriorityOff() 352 doReturn(true).when(mA2dpNativeInterface).disconnectA2dp(any(BluetoothDevice.class)); in testOutgoingConnectPriorityOff() 372 doReturn(true).when(mA2dpNativeInterface).connectA2dp(any(BluetoothDevice.class)); in testOutgoingConnectTimeout() [all …]
|
D | A2dpCodecConfigTest.java | 51 @Mock private A2dpNativeInterface mA2dpNativeInterface; field in A2dpCodecConfigTest 160 mA2dpCodecConfig = new A2dpCodecConfig(mMockContext, mA2dpNativeInterface); in setUp() 163 doReturn(true).when(mA2dpNativeInterface).setCodecConfigPreference( in setUp() 586 verify(mA2dpNativeInterface, times(0)).setCodecConfigPreference(mTestDevice, in testDisableOptionalCodecs() 596 verify(mA2dpNativeInterface, times(++invokedCounter)) in testDisableOptionalCodecs() 618 verify(mA2dpNativeInterface, times(1)) in testEnableOptionalCodecs() 627 verify(mA2dpNativeInterface, times(1)) in testEnableOptionalCodecs() 708 verify(mA2dpNativeInterface, times(0)).setCodecConfigPreference(mTestDevice, in testCodecParametersChangeHelper() 731 verify(mA2dpNativeInterface, times(invokeNative ? 1 : 0)) in testCodecParametersChangeHelper() 741 verify(mA2dpNativeInterface, times(invokeNative ? 2 : 0)) in testCodecParametersChangeHelper() [all …]
|
D | A2dpStateMachineTest.java | 65 @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/ |
D | A2dpStateMachine.java | 92 private A2dpNativeInterface mA2dpNativeInterface; field in A2dpStateMachine 105 mA2dpNativeInterface = a2dpNativeInterface; in A2dpStateMachine() 185 if (!mA2dpNativeInterface.connectA2dp(mDevice)) { in processMessage() 236 mA2dpNativeInterface.disconnectA2dp(mDevice); in processConnectionEvent() 247 mA2dpNativeInterface.disconnectA2dp(mDevice); in processConnectionEvent() 292 mA2dpNativeInterface.disconnectA2dp(mDevice); in processMessage() 303 mA2dpNativeInterface.disconnectA2dp(mDevice); in processMessage() 388 mA2dpNativeInterface.disconnectA2dp(mDevice); in processMessage() 438 mA2dpNativeInterface.disconnectA2dp(mDevice); in processConnectionEvent() 448 mA2dpNativeInterface.disconnectA2dp(mDevice); in processConnectionEvent() [all …]
|
D | A2dpCodecConfig.java | 41 private A2dpNativeInterface mA2dpNativeInterface; field in A2dpCodecConfig 59 mA2dpNativeInterface = a2dpNativeInterface; in A2dpCodecConfig() 113 mA2dpNativeInterface.setCodecConfigPreference(device, codecConfigArray); in setCodecConfigPreference() 136 mA2dpNativeInterface.setCodecConfigPreference(device, codecConfigArray); in enableOptionalCodecs() 158 mA2dpNativeInterface.setCodecConfigPreference(device, codecConfigArray); in disableOptionalCodecs()
|
D | A2dpService.java | 70 A2dpNativeInterface mA2dpNativeInterface; field in A2dpService 115 mA2dpNativeInterface = Objects.requireNonNull(A2dpNativeInterface.getInstance(), in start() 131 mA2dpCodecConfig = new A2dpCodecConfig(this, mA2dpNativeInterface); in start() 134 mA2dpNativeInterface.init(mMaxConnectedAudioDevices, in start() 184 mA2dpNativeInterface.cleanup(); in stop() 185 mA2dpNativeInterface = null; in stop() 206 mA2dpNativeInterface = null; in stop() 471 if (!mA2dpNativeInterface.setActiveDevice(null)) { in removeActiveDevice() 497 if (!mA2dpNativeInterface.setSilenceDevice(device, silence)) { in setSilenceMode() 562 if (!mA2dpNativeInterface.setActiveDevice(device)) { in setActiveDevice() [all …]
|