Home
last modified time | relevance | path

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

/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/a2dp/
DA2dpServiceTest.java68 private BluetoothDevice mTestDevice; field in A2dpServiceTest
117 mTestDevice = mAdapter.getRemoteDevice("00:01:02:03:04:05"); in setUp()
240 connectDevice(mTestDevice); in testStopA2dpService()
241 Assert.assertTrue(mA2dpService.setActiveDevice(mTestDevice)); in testStopA2dpService()
242 verify(mA2dpNativeInterface).setActiveDevice(mTestDevice); in testStopA2dpService()
264 when(mDatabaseManager.getProfileConnectionPolicy(mTestDevice, BluetoothProfile.A2DP)) in testGetPriority()
268 mA2dpService.getConnectionPolicy(mTestDevice)); in testGetPriority()
270 when(mDatabaseManager.getProfileConnectionPolicy(mTestDevice, BluetoothProfile.A2DP)) in testGetPriority()
274 mA2dpService.getConnectionPolicy(mTestDevice)); in testGetPriority()
276 when(mDatabaseManager.getProfileConnectionPolicy(mTestDevice, BluetoothProfile.A2DP)) in testGetPriority()
[all …]
DA2dpCodecConfigTest.java46 private BluetoothDevice mTestDevice; field in A2dpCodecConfigTest
161 mTestDevice = BluetoothAdapter.getDefaultAdapter().getRemoteDevice("00:01:02:03:04:05"); in setUp()
582 mTestDevice, in testDisableOptionalCodecs()
586 verify(mA2dpNativeInterface, times(0)).setCodecConfigPreference(mTestDevice, in testDisableOptionalCodecs()
593 mTestDevice, in testDisableOptionalCodecs()
597 .setCodecConfigPreference(mTestDevice, codecConfigsArray); in testDisableOptionalCodecs()
615 mTestDevice, in testEnableOptionalCodecs()
619 .setCodecConfigPreference(mTestDevice, codecConfigsArray); in testEnableOptionalCodecs()
624 mTestDevice, in testEnableOptionalCodecs()
628 .setCodecConfigPreference(mTestDevice, codecConfigsArray); in testEnableOptionalCodecs()
[all …]
DA2dpStateMachineTest.java58 private BluetoothDevice mTestDevice; field in A2dpStateMachineTest
80 mTestDevice = mAdapter.getRemoteDevice("00:01:02:03:04:05"); in setUp()
101 mA2dpStateMachine = new A2dpStateMachine(mTestDevice, mA2dpService, in setUp()
147 connStCh.device = mTestDevice; in testIncomingPriorityReject()
169 connStCh.device = mTestDevice; in testIncomingPriorityAccept()
187 connCompletedEvent.device = mTestDevice; in testIncomingPriorityAccept()
218 mA2dpStateMachine.sendMessage(A2dpStateMachine.CONNECT, mTestDevice); in testOutgoingTimeout()
256 connStCh.device = mTestDevice; in testIncomingTimeout()
333 verify(mA2dpService).codecConfigUpdated(mTestDevice, codecStatusSbcAndSbc, false); in testProcessCodecConfigEventCase()
338 connStCh.device = mTestDevice; in testProcessCodecConfigEventCase()
[all …]
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hfp/
DHeadsetStateMachineTest.java76 private BluetoothDevice mTestDevice; field in HeadsetStateMachineTest
101 mTestDevice = mAdapter.getRemoteDevice("00:01:02:03:04:05"); in setUp()
105 doReturn(true).when(mNativeInterface).connectHfp(mTestDevice); in setUp()
106 doReturn(true).when(mNativeInterface).disconnectHfp(mTestDevice); in setUp()
107 doReturn(true).when(mNativeInterface).connectAudio(mTestDevice); in setUp()
108 doReturn(true).when(mNativeInterface).disconnectAudio(mTestDevice); in setUp()
131 .makeStateMachine(mTestDevice, mHandlerThread.getLooper(), mHeadsetService, in setUp()
173 mHeadsetStateMachine.sendMessage(HeadsetStateMachine.CONNECT, mTestDevice); in testStateTransition_DisconnectedToConnecting_Connect()
177 HeadsetTestUtils.verifyConnectionStateBroadcast(mTestDevice, in testStateTransition_DisconnectedToConnecting_Connect()
191 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
75 mTestDevice = TestUtils.getTestDevice(mAdapter, 0); in setUp()
102 testOkToConnectCase(mTestDevice, in testOkToConnect()
104 testOkToConnectCase(mTestDevice, in testOkToConnect()
106 testOkToConnectCase(mTestDevice, in testOkToConnect()
108 testOkToConnectCase(mTestDevice, in testOkToConnect()
110 testOkToConnectCase(mTestDevice, in testOkToConnect()
112 testOkToConnectCase(mTestDevice, in testOkToConnect()
114 testOkToConnectCase(mTestDevice, in testOkToConnect()
116 testOkToConnectCase(mTestDevice, in testOkToConnect()
[all …]
DHidDeviceTest.java82 private BluetoothDevice mTestDevice; field in HidDeviceTest
119 mTestDevice = mAdapter.getRemoteDevice("10:11:12:13:14:15"); in setUp()
295 mHidDeviceService.onApplicationStateChangedFromNative(mTestDevice, true); in testRegistration()
304 mHidDeviceService.onApplicationStateChangedFromNative(mTestDevice, false); in testRegistration()
317 mHidDeviceService.sendReport(mTestDevice, SAMPLE_REPORT_ID, SAMPLE_HID_REPORT)); in testSendReport()
327 mHidDeviceService.onApplicationStateChangedFromNative(mTestDevice, true); in testSendReport()
334 mHidDeviceService.sendReport(mTestDevice, SAMPLE_REPORT_ID, SAMPLE_HID_REPORT)); in testSendReport()
353 mHidDeviceService.replyReport(mTestDevice, SAMPLE_REPORT_TYPE, SAMPLE_REPORT_ID, in testReplyReport()
364 mHidDeviceService.onApplicationStateChangedFromNative(mTestDevice, true); in testReplyReport()
371 mHidDeviceService.replyReport(mTestDevice, SAMPLE_REPORT_TYPE, SAMPLE_REPORT_ID, in testReplyReport()
[all …]
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/btservice/storage/
DDatabaseManagerTest.java69 private BluetoothDevice mTestDevice; field in DatabaseManagerTest
95 mTestDevice = BluetoothAdapter.getDefaultAdapter().getRemoteDevice(TEST_BT_ADDR); in setUp()
107 BluetoothDevice[] bondedDevices = {mTestDevice}; in setUp()
130 mDatabaseManager.getProfileConnectionPolicy(mTestDevice, id)); in testMetadataDefault()
134 mDatabaseManager.getA2dpSupportsOptionalCodecs(mTestDevice)); in testMetadataDefault()
137 mDatabaseManager.getA2dpOptionalCodecsEnabled(mTestDevice)); in testMetadataDefault()
140 Assert.assertNull(mDatabaseManager.getCustomMeta(mTestDevice, id)); in testMetadataDefault()
444 Assert.assertNotNull(mTestDevice); in testSetConnection()
449 mDatabaseManager.setConnection(mTestDevice, true); in testSetConnection()
453 .mMetadataCache.get(mTestDevice.getAddress()).is_active_a2dp_device); in testSetConnection()
[all …]
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/btservice/
DSilenceDeviceManagerTest.java56 private BluetoothDevice mTestDevice; field in SilenceDeviceManagerTest
80 mTestDevice = BluetoothAdapter.getDefaultAdapter().getRemoteDevice(TEST_BT_ADDR); in setUp()
110 doReturn(true).when(mA2dpService).setSilenceMode(mTestDevice, enableSilence); in testSetGetDeviceSilenceConnectedCase()
111 doReturn(true).when(mHeadsetService).setSilenceMode(mTestDevice, enableSilence); in testSetGetDeviceSilenceConnectedCase()
114 a2dpConnected(mTestDevice); in testSetGetDeviceSilenceConnectedCase()
115 headsetConnected(mTestDevice); in testSetGetDeviceSilenceConnectedCase()
119 Assert.assertTrue(mSilenceDeviceManager.setSilenceMode(mTestDevice, true)); in testSetGetDeviceSilenceConnectedCase()
127 Assert.assertTrue(mSilenceDeviceManager.setSilenceMode(mTestDevice, enableSilence)); in testSetGetDeviceSilenceConnectedCase()
129 Assert.assertEquals(enableSilence, mSilenceDeviceManager.getSilenceMode(mTestDevice)); in testSetGetDeviceSilenceConnectedCase()
140 a2dpDisconnected(mTestDevice); in testSetGetDeviceSilenceConnectedCase()
[all …]
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hearingaid/
DHearingAidStateMachineTest.java55 private BluetoothDevice mTestDevice; field in HearingAidStateMachineTest
75 mTestDevice = mAdapter.getRemoteDevice("00:01:02:03:04:05"); in setUp()
80 mHearingAidStateMachine = new HearingAidStateMachine(mTestDevice, mHearingAidService, in setUp()
126 connStCh.device = mTestDevice; in testIncomingPriorityReject()
148 connStCh.device = mTestDevice; in testIncomingPriorityAccept()
166 connCompletedEvent.device = mTestDevice; in testIncomingPriorityAccept()
190 when(mHearingAidService.isConnectedPeerDevices(mTestDevice)).thenReturn(true); in testOutgoingTimeout()
193 mHearingAidStateMachine.sendMessage(HearingAidStateMachine.CONNECT, mTestDevice); in testOutgoingTimeout()
218 verify(mHearingAidNativeInterface).addToAcceptlist(eq(mTestDevice)); in testOutgoingTimeout()
231 when(mHearingAidService.isConnectedPeerDevices(mTestDevice)).thenReturn(true); in testIncomingTimeout()
[all …]
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/mapclient/
DMapClientContentTest.java76 private BluetoothDevice mTestDevice; field in MapClientContentTest
126 mTestDevice = mAdapter.getRemoteDevice("00:01:02:03:04:05"); in setUp()
151 mMapClientContent = new MapClientContent(mMockContext, mCallbacks, mTestDevice); in testCreateMapClientContent()
162 mMapClientContent = new MapClientContent(mMockContext, mCallbacks, mTestDevice); in testCleanDirtyDatabase()
167 mMapClientContent = new MapClientContent(mMockContext, mCallbacks, mTestDevice); in testCleanDirtyDatabase()
176 mMapClientContent = new MapClientContent(mMockContext, mCallbacks, mTestDevice); in testStoreTwoSMS()
196 mMapClientContent = new MapClientContent(mMockContext, mCallbacks, mTestDevice); in testStoreTwoMMS()
214 mMapClientContent = new MapClientContent(mMockContext, mCallbacks, mTestDevice); in testStoreOneSMSOneMMS()
232 mMapClientContent = new MapClientContent(mMockContext, mCallbacks, mTestDevice); in testReadStatusChanged()
256 mMapClientContent = new MapClientContent(mMockContext, mCallbacks, mTestDevice); in testLocalReadStatusChanged()
[all …]
DMapClientStateMachineTest.java83 private BluetoothDevice mTestDevice; field in MapClientStateMachineTest
130 mTestDevice = mAdapter.getRemoteDevice("00:01:02:03:04:05"); in setUp()
133 mMceStateMachine = new MceStateMachine(mMockMapClientService, mTestDevice, mMockMasClient); in setUp()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/avrcpcontroller/
DAvrcpControllerStateMachineTest.java89 private BluetoothDevice mTestDevice = null; field in AvrcpControllerStateMachineTest
138 mTestDevice = mAdapter.getRemoteDevice(mTestAddress); in setUp()
139 mAvrcpStateMachine = makeStateMachine(mTestDevice); in setUp()
140 setActiveDevice(mTestDevice); in setUp()
183 if (mTestDevice.equals(device)) { in setActiveDevice()
219 builder.setDevice(mTestDevice); in makeTrack()
284 aib.setDevice(mTestDevice); in makeNowPlayingItem()
368 Assert.assertEquals(mTestDevice, mIntentArgument.getValue().getParcelableExtra( in testDisconnectInternal()
397 Assert.assertEquals(mTestDevice, mIntentArgument.getValue().getParcelableExtra( in testControlOnly()
426 Assert.assertEquals(mTestDevice, mIntentArgument.getValue().getParcelableExtra( in testBrowsingOnly()
[all …]
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hfpclient/
DHeadsetClientStateMachineTest.java54 private BluetoothDevice mTestDevice; field in HeadsetClientStateMachineTest
91 mTestDevice = mAdapter.getRemoteDevice("00:01:02:03:04:05"); in setUp()
137 connStCh.device = mTestDevice; in testIncomingPriorityReject()
168 connStCh.device = mTestDevice; in testIncomingPriorityAccept()
187 slcEvent.device = mTestDevice; in testIncomingPriorityAccept()
214 connStCh.device = mTestDevice; in testIncomingTimeout()
259 connStCh.device = mTestDevice; in testInBandRingtone()
274 slcEvent.device = mTestDevice; in testInBandRingtone()
286 event.device = mTestDevice; in testInBandRingtone()
291 eventInBandRing.device = mTestDevice; in testInBandRingtone()
[all …]
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/le_audio/
DLeAudioStateMachineTest.java59 private BluetoothDevice mTestDevice; field in LeAudioStateMachineTest
76 mTestDevice = mAdapter.getRemoteDevice("00:01:02:03:04:05"); in setUp()
81 mLeAudioStateMachine = new LeAudioStateMachine(mTestDevice, mLeAudioService, in setUp()
123 connStCh.device = mTestDevice; in testIncomingPriorityReject()
145 connStCh.device = mTestDevice; in testIncomingPriorityAccept()
163 connCompletedEvent.device = mTestDevice; in testIncomingPriorityAccept()
189 mLeAudioStateMachine.sendMessage(LeAudioStateMachine.CONNECT, mTestDevice); in testOutgoingTimeout()
230 connStCh.device = mTestDevice; in testIncomingTimeout()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/sdp/
DDipTest.java61 private BluetoothDevice mTestDevice; field in DipTest
85 mTestDevice = mAdapter.getRemoteDevice("00:01:02:03:04:05"); in setUp()
132 mSdpManager.sdpSearch(mTestDevice, BluetoothUuid.DIP); in testDipCallbackSuccess()
134 Utils.getByteAddress(mTestDevice), uuid, specificationId, in testDipCallbackSuccess()
138 verifyDipSdpRecordIntent(mIntentArgument, AbstractionLayer.BT_STATUS_SUCCESS, mTestDevice, in testDipCallbackSuccess()
/packages/modules/NeuralNetworks/runtime/test/
DTestFailingDriver.cpp79 mTestDevice = DeviceManager::forTest_makeDriverDevice( in SetUp()
82 mTestDevice, in SetUp()
90 std::shared_ptr<Device> mTestDevice; member in android::nn::__anon1e0b0dc80111::FailingDriverTest
160 ASSERT_EQ(steps[5]->executionStep()->getDevice(), mTestDevice); in TEST_F()
DTestRemoveDefaultArguments.cpp147 mTestDevice = getDeviceByName(kTestDriverName); in SetUp()
148 ASSERT_NE(mTestDevice, nullptr); in SetUp()
166 auto [result, compilation] = WrapperCompilation::createForDevice(&model, mTestDevice); in test()
191 ANeuralNetworksDevice* mTestDevice; member in android::nn::__anon6361200b0111::TestRemoveDefaultArguments
/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()