Home
last modified time | relevance | path

Searched refs:mTestDevice (Results 1 – 13 of 13) sorted by relevance

/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/a2dp/
DA2dpServiceTest.java70 private BluetoothDevice mTestDevice; field in A2dpServiceTest
121 mTestDevice = mAdapter.getRemoteDevice("00:01:02:03:04:05"); in setUp()
244 connectDevice(mTestDevice); in testStopA2dpService()
245 Assert.assertTrue(mA2dpService.setActiveDevice(mTestDevice)); in testStopA2dpService()
246 verify(mA2dpNativeInterface).setActiveDevice(mTestDevice); in testStopA2dpService()
256 verify(mAvrcpTargetService).storeVolumeForDevice(mTestDevice); in testStopA2dpService()
271 when(mDatabaseManager.getProfilePriority(mTestDevice, BluetoothProfile.A2DP)) in testGetPriority()
275 mA2dpService.getPriority(mTestDevice)); in testGetPriority()
278 when(mDatabaseManager.getProfilePriority(mTestDevice, BluetoothProfile.A2DP)) in testGetPriority()
282 mA2dpService.getPriority(mTestDevice)); in testGetPriority()
[all …]
DA2dpCodecConfigTest.java50 private BluetoothDevice mTestDevice; field in A2dpCodecConfigTest
69 mTestDevice = BluetoothAdapter.getDefaultAdapter().getRemoteDevice("00:01:02:03:04:05"); in setUp()
272 mA2dpCodecConfig.disableOptionalCodecs(mTestDevice, mCodecConfigSbc); in testDisableOptionalCodecs()
274 .setCodecConfigPreference(mTestDevice, codecConfigArray); in testDisableOptionalCodecs()
277 mA2dpCodecConfig.disableOptionalCodecs(mTestDevice, mCodecConfigAac); in testDisableOptionalCodecs()
279 .setCodecConfigPreference(mTestDevice, codecConfigArray); in testDisableOptionalCodecs()
280 mA2dpCodecConfig.disableOptionalCodecs(mTestDevice, mCodecConfigAptx); in testDisableOptionalCodecs()
282 .setCodecConfigPreference(mTestDevice, codecConfigArray); in testDisableOptionalCodecs()
283 mA2dpCodecConfig.disableOptionalCodecs(mTestDevice, mCodecConfigAptxHd); in testDisableOptionalCodecs()
285 .setCodecConfigPreference(mTestDevice, codecConfigArray); in testDisableOptionalCodecs()
[all …]
DA2dpStateMachineTest.java57 private BluetoothDevice mTestDevice; field in A2dpStateMachineTest
79 mTestDevice = mAdapter.getRemoteDevice("00:01:02:03:04:05"); in setUp()
100 mA2dpStateMachine = new A2dpStateMachine(mTestDevice, mA2dpService, in setUp()
146 connStCh.device = mTestDevice; in testIncomingPriorityReject()
168 connStCh.device = mTestDevice; in testIncomingPriorityAccept()
186 connCompletedEvent.device = mTestDevice; in testIncomingPriorityAccept()
217 mA2dpStateMachine.sendMessage(A2dpStateMachine.CONNECT, mTestDevice); in testOutgoingTimeout()
254 connStCh.device = mTestDevice; in testIncomingTimeout()
330 verify(mA2dpService).codecConfigUpdated(mTestDevice, codecStatusSbcAndSbc, false); in testProcessCodecConfigEventCase()
335 connStCh.device = mTestDevice; in testProcessCodecConfigEventCase()
[all …]
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hfp/
DHeadsetStateMachineTest.java71 private BluetoothDevice mTestDevice; field in HeadsetStateMachineTest
96 mTestDevice = mAdapter.getRemoteDevice("00:01:02:03:04:05"); 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()
126 .makeStateMachine(mTestDevice, mHandlerThread.getLooper(), mHeadsetService, in setUp()
168 mHeadsetStateMachine.sendMessage(HeadsetStateMachine.CONNECT, mTestDevice); in testStateTransition_DisconnectedToConnecting_Connect()
171 HeadsetTestUtils.verifyConnectionStateBroadcast(mTestDevice, in testStateTransition_DisconnectedToConnecting_Connect()
185 HeadsetHalConstants.CONNECTION_STATE_CONNECTED, mTestDevice)); in testStateTransition_DisconnectedToConnecting_StackConnected()
[all …]
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hid/
DHidHostServiceTest.java50 private BluetoothDevice mTestDevice; field in HidHostServiceTest
73 mTestDevice = TestUtils.getTestDevice(mAdapter, 0); in setUp()
99 testOkToConnectCase(mTestDevice, in testOkToConnect()
101 testOkToConnectCase(mTestDevice, in testOkToConnect()
103 testOkToConnectCase(mTestDevice, in testOkToConnect()
105 testOkToConnectCase(mTestDevice, in testOkToConnect()
107 testOkToConnectCase(mTestDevice, in testOkToConnect()
109 testOkToConnectCase(mTestDevice, in testOkToConnect()
111 testOkToConnectCase(mTestDevice, in testOkToConnect()
113 testOkToConnectCase(mTestDevice, in testOkToConnect()
[all …]
DHidDeviceTest.java80 private BluetoothDevice mTestDevice; field in HidDeviceTest
115 mTestDevice = mAdapter.getRemoteDevice("10:11:12:13:14:15"); in setUp()
291 mHidDeviceService.onApplicationStateChangedFromNative(mTestDevice, true); in testRegistration()
300 mHidDeviceService.onApplicationStateChangedFromNative(mTestDevice, false); in testRegistration()
313 mHidDeviceService.sendReport(mTestDevice, SAMPLE_REPORT_ID, SAMPLE_HID_REPORT)); in testSendReport()
323 mHidDeviceService.onApplicationStateChangedFromNative(mTestDevice, true); in testSendReport()
330 mHidDeviceService.sendReport(mTestDevice, SAMPLE_REPORT_ID, SAMPLE_HID_REPORT)); in testSendReport()
349 mHidDeviceService.replyReport(mTestDevice, SAMPLE_REPORT_TYPE, SAMPLE_REPORT_ID, in testReplyReport()
360 mHidDeviceService.onApplicationStateChangedFromNative(mTestDevice, true); in testReplyReport()
367 mHidDeviceService.replyReport(mTestDevice, SAMPLE_REPORT_TYPE, SAMPLE_REPORT_ID, in testReplyReport()
[all …]
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/btservice/
DSilenceDeviceManagerTest.java54 private BluetoothDevice mTestDevice; field in SilenceDeviceManagerTest
78 mTestDevice = BluetoothAdapter.getDefaultAdapter().getRemoteDevice(TEST_BT_ADDR); in setUp()
108 doReturn(true).when(mA2dpService).setSilenceMode(mTestDevice, enableSilence); in testSetGetDeviceSilenceConnectedCase()
109 doReturn(true).when(mHeadsetService).setSilenceMode(mTestDevice, enableSilence); in testSetGetDeviceSilenceConnectedCase()
112 a2dpConnected(mTestDevice); in testSetGetDeviceSilenceConnectedCase()
113 headsetConnected(mTestDevice); in testSetGetDeviceSilenceConnectedCase()
117 Assert.assertTrue(mSilenceDeviceManager.setSilenceMode(mTestDevice, true)); in testSetGetDeviceSilenceConnectedCase()
125 Assert.assertTrue(mSilenceDeviceManager.setSilenceMode(mTestDevice, enableSilence)); in testSetGetDeviceSilenceConnectedCase()
127 Assert.assertEquals(enableSilence, mSilenceDeviceManager.getSilenceMode(mTestDevice)); in testSetGetDeviceSilenceConnectedCase()
138 a2dpDisconnected(mTestDevice); in testSetGetDeviceSilenceConnectedCase()
[all …]
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/btservice/storage/
DDatabaseManagerTest.java52 private BluetoothDevice mTestDevice; field in DatabaseManagerTest
69 mTestDevice = BluetoothAdapter.getDefaultAdapter().getRemoteDevice(TEST_BT_ADDR); in setUp()
79 BluetoothDevice[] bondedDevices = {mTestDevice}; in setUp()
102 mDatabaseManager.getProfilePriority(mTestDevice, id)); in testMetadataDefault()
106 mDatabaseManager.getA2dpSupportsOptionalCodecs(mTestDevice)); in testMetadataDefault()
109 mDatabaseManager.getA2dpOptionalCodecsEnabled(mTestDevice)); in testMetadataDefault()
112 Assert.assertNull(mDatabaseManager.getCustomMeta(mTestDevice, id)); in testMetadataDefault()
400 mDatabaseManager.setProfilePriority(mTestDevice, in testSetGetProfilePriorityCase()
403 mDatabaseManager.getProfilePriority(mTestDevice, BluetoothProfile.HEADSET)); in testSetGetProfilePriorityCase()
424 mDatabaseManager.getProfilePriority(mTestDevice, BluetoothProfile.HEADSET)); in testSetGetProfilePriorityCase()
[all …]
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hearingaid/
DHearingAidStateMachineTest.java54 private BluetoothDevice mTestDevice; field in HearingAidStateMachineTest
74 mTestDevice = mAdapter.getRemoteDevice("00:01:02:03:04:05"); in setUp()
79 mHearingAidStateMachine = new HearingAidStateMachine(mTestDevice, mHearingAidService, in setUp()
125 connStCh.device = mTestDevice; in testIncomingPriorityReject()
147 connStCh.device = mTestDevice; in testIncomingPriorityAccept()
165 connCompletedEvent.device = mTestDevice; in testIncomingPriorityAccept()
189 when(mHearingAidService.isConnectedPeerDevices(mTestDevice)).thenReturn(true); in testOutgoingTimeout()
192 mHearingAidStateMachine.sendMessage(HearingAidStateMachine.CONNECT, mTestDevice); in testOutgoingTimeout()
216 verify(mHearingAidNativeInterface).addToWhiteList(eq(mTestDevice)); in testOutgoingTimeout()
229 when(mHearingAidService.isConnectedPeerDevices(mTestDevice)).thenReturn(true); in testIncomingTimeout()
[all …]
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hfpclient/
DHeadsetClientStateMachineTest.java46 private BluetoothDevice mTestDevice; field in HeadsetClientStateMachineTest
80 mTestDevice = mAdapter.getRemoteDevice("00:01:02:03:04:05"); in setUp()
123 connStCh.device = mTestDevice; in testIncomingPriorityReject()
153 connStCh.device = mTestDevice; in testIncomingPriorityAccept()
172 slcEvent.device = mTestDevice; in testIncomingPriorityAccept()
199 connStCh.device = mTestDevice; in testIncomingTimeout()
242 connStCh.device = mTestDevice; in testInBandRingtone()
257 slcEvent.device = mTestDevice; in testInBandRingtone()
269 event.device = mTestDevice; in testInBandRingtone()
274 eventInBandRing.device = mTestDevice; in testInBandRingtone()
[all …]
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/avrcpcontroller/
DAvrcpControllerStateMachineTest.java64 private BluetoothDevice mTestDevice; field in AvrcpControllerStateMachineTest
97 mTestDevice = mAdapter.getRemoteDevice(mTestAddress); in setUp()
100 mAvrcpStateMachine = new AvrcpControllerStateMachine(mTestDevice, mAvrcpControllerService); in setUp()
126 Assert.assertEquals(mTestDevice, mIntentArgument.getValue().getParcelableExtra( in testDisconnect()
151 Assert.assertEquals(mTestDevice, mIntentArgument.getValue().getParcelableExtra( in testControlOnly()
178 Assert.assertEquals(mTestDevice, mIntentArgument.getValue().getParcelableExtra( in testBrowsingOnly()
195 Assert.assertEquals(mAvrcpStateMachine.getDevice(), mTestDevice); in testGetDevice() local
206 " mDevice: " + mTestDevice.toString() in testDump()
363 Assert.assertEquals(rootName + mTestDevice.toString(), results.getID()); in testBrowsingCommands()
419 Assert.assertEquals(rootName + mTestDevice.toString(), results.getID()); in testPlayerChanged()
[all …]
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/pbap/
DPbapStateMachineTest.java57 private BluetoothDevice mTestDevice; field in PbapStateMachineTest
74 mTestDevice = mAdapter.getRemoteDevice("00:01:02:03:04:05"); in setUp()
82 mTestDevice, mSocket, mBluetoothPbapService, mHandler, TEST_NOTIFICATION_ID); in setUp()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/mapclient/
DMapClientStateMachineTest.java58 private BluetoothDevice mTestDevice; field in MapClientStateMachineTest
83 mTestDevice = mAdapter.getRemoteDevice("00:01:02:03:04:05"); in setUp()
86 mMceStateMachine = new MceStateMachine(mMockMapClientService, mTestDevice, mMockMasClient); in setUp()