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 103 mA2dpService.mA2dpNativeInterface = mA2dpNativeInterface; in setUp() 239 doReturn(true).when(mA2dpNativeInterface).setActiveDevice(any(BluetoothDevice.class)); in testStopA2dpService() 242 verify(mA2dpNativeInterface).setActiveDevice(mTestDevice); in testStopA2dpService() 250 verify(mA2dpNativeInterface).setActiveDevice(null); in testStopA2dpService() 333 doReturn(true).when(mA2dpNativeInterface).connectA2dp(any(BluetoothDevice.class)); in testOutgoingConnectMissingAudioSinkUuid() 334 doReturn(true).when(mA2dpNativeInterface).disconnectA2dp(any(BluetoothDevice.class)); in testOutgoingConnectMissingAudioSinkUuid() 349 doReturn(true).when(mA2dpNativeInterface).connectA2dp(any(BluetoothDevice.class)); in testOutgoingConnectPriorityOff() 350 doReturn(true).when(mA2dpNativeInterface).disconnectA2dp(any(BluetoothDevice.class)); in testOutgoingConnectPriorityOff() 368 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 | 66 @Mock private A2dpNativeInterface mA2dpNativeInterface; field in A2dpStateMachineTest 102 mA2dpNativeInterface, mHandlerThread.getLooper()); in setUp() 214 doReturn(true).when(mA2dpNativeInterface).connectA2dp(any(BluetoothDevice.class)); in testOutgoingTimeout() 215 doReturn(true).when(mA2dpNativeInterface).disconnectA2dp(any(BluetoothDevice.class)); in testOutgoingTimeout() 250 doReturn(true).when(mA2dpNativeInterface).connectA2dp(any(BluetoothDevice.class)); in testIncomingTimeout() 251 doReturn(true).when(mA2dpNativeInterface).disconnectA2dp(any(BluetoothDevice.class)); in testIncomingTimeout()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dp/ |
D | A2dpStateMachine.java | 95 private A2dpNativeInterface mA2dpNativeInterface; field in A2dpStateMachine 108 mA2dpNativeInterface = a2dpNativeInterface; in A2dpStateMachine() 188 if (!mA2dpNativeInterface.connectA2dp(mDevice)) { in processMessage() 239 mA2dpNativeInterface.disconnectA2dp(mDevice); in processConnectionEvent() 250 mA2dpNativeInterface.disconnectA2dp(mDevice); in processConnectionEvent() 295 mA2dpNativeInterface.disconnectA2dp(mDevice); in processMessage() 306 mA2dpNativeInterface.disconnectA2dp(mDevice); in processMessage() 391 mA2dpNativeInterface.disconnectA2dp(mDevice); in processMessage() 441 mA2dpNativeInterface.disconnectA2dp(mDevice); in processConnectionEvent() 451 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 | 77 A2dpNativeInterface mA2dpNativeInterface; field in A2dpService 122 mA2dpNativeInterface = Objects.requireNonNull(A2dpNativeInterface.getInstance(), in start() 140 mA2dpCodecConfig = new A2dpCodecConfig(this, mA2dpNativeInterface); in start() 143 mA2dpNativeInterface.init(mMaxConnectedAudioDevices, in start() 193 mA2dpNativeInterface.cleanup(); in stop() 194 mA2dpNativeInterface = null; in stop() 215 mA2dpNativeInterface = null; in stop() 475 if (!mA2dpNativeInterface.setActiveDevice(null)) { in removeActiveDevice() 501 if (!mA2dpNativeInterface.setSilenceDevice(device, silence)) { in setSilenceMode() 565 if (!mA2dpNativeInterface.setActiveDevice(device)) { in setActiveDevice() [all …]
|