Home
last modified time | relevance | path

Searched refs:getTestDevice (Results 1 – 25 of 35) sorted by relevance

12

/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/a2dpsink/
DA2dpSinkServiceBinderTest.java56 BluetoothDevice device = TestUtils.getTestDevice(mAdapter, 0); in connect()
65 BluetoothDevice device = TestUtils.getTestDevice(mAdapter, 0); in disconnect()
91 BluetoothDevice device = TestUtils.getTestDevice(mAdapter, 0); in getConnectionState()
100 BluetoothDevice device = TestUtils.getTestDevice(mAdapter, 0); in setConnectionPolicy()
110 BluetoothDevice device = TestUtils.getTestDevice(mAdapter, 0); in getConnectionPolicy()
119 BluetoothDevice device = TestUtils.getTestDevice(mAdapter, 0); in isA2dpPlaying()
128 BluetoothDevice device = TestUtils.getTestDevice(mAdapter, 0); in getAudioConfig()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/hfp/
DHeadsetPhoneStateTest.java115 BluetoothDevice device1 = TestUtils.getTestDevice(mAdapter, 1); in testListenForPhoneState_NoneResultsNoListen()
126 BluetoothDevice device1 = TestUtils.getTestDevice(mAdapter, 1); in testListenForPhoneState_ServiceOnly()
140 BluetoothDevice device1 = TestUtils.getTestDevice(mAdapter, 1); in testListenForPhoneState_ServiceAndSignalStrength()
161 BluetoothDevice device1 = TestUtils.getTestDevice(mAdapter, 1); in testListenForPhoneState_ServiceAndSignalStrengthUpdateTurnOffSignalStrengh()
185 BluetoothDevice device1 = TestUtils.getTestDevice(mAdapter, 1); in testListenForPhoneState_ServiceAndSignalStrengthUpdateTurnOffAll()
212 BluetoothDevice device1 = TestUtils.getTestDevice(mAdapter, 1); in testListenForPhoneState_MultiDevice_AllUpAllDown()
213 BluetoothDevice device2 = TestUtils.getTestDevice(mAdapter, 2); in testListenForPhoneState_MultiDevice_AllUpAllDown()
249 BluetoothDevice device1 = TestUtils.getTestDevice(mAdapter, 1); in testListenForPhoneState_MultiDevice_PartialUpPartialDown()
250 BluetoothDevice device2 = TestUtils.getTestDevice(mAdapter, 2); in testListenForPhoneState_MultiDevice_PartialUpPartialDown()
DHeadsetServiceAndStateMachineTest.java217 BluetoothDevice device = TestUtils.getTestDevice(mAdapter, 0); in testGetHeadsetService()
230 BluetoothDevice device = TestUtils.getTestDevice(mAdapter, 0); in testConnectFromApi()
279 BluetoothDevice device = TestUtils.getTestDevice(mAdapter, 0); in testUnbondDevice_disconnectBeforeUnbond()
325 BluetoothDevice device = TestUtils.getTestDevice(mAdapter, 0); in testUnbondDevice_disconnectAfterUnbond()
389 BluetoothDevice device = TestUtils.getTestDevice(mAdapter, i); in testVirtualCall_normalStartStop()
428 BluetoothDevice device = TestUtils.getTestDevice(mAdapter, i); in testVirtualCall_preemptedByTelecomCall()
472 BluetoothDevice device = TestUtils.getTestDevice(mAdapter, i); in testVirtualCall_rejectedWhenThereIsTelecomCall()
501 BluetoothDevice device = TestUtils.getTestDevice(mAdapter, i); in testDialingOutCall_NormalDialingOut()
595 BluetoothDevice device = TestUtils.getTestDevice(mAdapter, i); in testDialingOutCall_DialingOutPreemptVirtualCall()
654 BluetoothDevice device = TestUtils.getTestDevice(mAdapter, 0); in testVoiceRecognition_SingleHfInitiatedSuccess()
[all …]
DHeadsetServiceTest.java194 mCurrentDevice = TestUtils.getTestDevice(mAdapter, 0); in testGetHeadsetService()
206 mCurrentDevice = TestUtils.getTestDevice(mAdapter, 0); in testOkToAcceptConnection()
279 mCurrentDevice = TestUtils.getTestDevice(mAdapter, 0); in testConnectDevice_connectDeviceBelowLimit()
319 mCurrentDevice = TestUtils.getTestDevice(mAdapter, 0); in testMessageFromNative_deviceConnected()
368 mCurrentDevice = TestUtils.getTestDevice(mAdapter, 0); in testMessageFromNative_deviceConnectingUnknown()
393 mCurrentDevice = TestUtils.getTestDevice(mAdapter, 0); in testMessageFromNative_deviceDisconnectedUnknown()
419 mCurrentDevice = TestUtils.getTestDevice(mAdapter, i); in testConnectDevice_connectDeviceAboveLimit()
460 mCurrentDevice = TestUtils.getTestDevice(mAdapter, MAX_HEADSET_CONNECTIONS); in testConnectDevice_connectDeviceAboveLimit()
489 mCurrentDevice = TestUtils.getTestDevice(mAdapter, 0); in testConnectAudio_withOneDevice()
555 mCurrentDevice = TestUtils.getTestDevice(mAdapter, i); in testConnectAudio_withMultipleDevices()
[all …]
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/bas/
DBatteryServiceBinderTest.java56 BluetoothDevice device = TestUtils.getTestDevice(mAdapter, 0); in connect()
65 BluetoothDevice device = TestUtils.getTestDevice(mAdapter, 0); in disconnect()
91 BluetoothDevice device = TestUtils.getTestDevice(mAdapter, 0); in getConnectionState()
100 BluetoothDevice device = TestUtils.getTestDevice(mAdapter, 0); in setConnectionPolicy()
110 BluetoothDevice device = TestUtils.getTestDevice(mAdapter, 0); in getConnectionPolicy()
DBatteryServiceTest.java83 mDevice = TestUtils.getTestDevice(mAdapter, 0); in setUp()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/btservice/
DPhonePolicyTest.java19 import static com.android.bluetooth.TestUtils.getTestDevice;
158 BluetoothDevice device = getTestDevice(mAdapter, 0); in testProcessInitProfilePriorities()
202 BluetoothDevice device = getTestDevice(mAdapter, i); in processInitProfilePriorities_LeAudioOnlyHelper()
323 BluetoothDevice device = getTestDevice(mAdapter, 0); in testProcessInitProfilePriorities_WithAutoConnect()
349 BluetoothDevice device = getTestDevice(mAdapter, 0); in testProcessInitProfilePriorities_LeAudioDisabledByDefault()
408 BluetoothDevice device = getTestDevice(mAdapter, 0); in testProcessInitProfilePriorities_LeAudioEnabledByDefault()
482 BluetoothDevice device = getTestDevice(mAdapter, 0); in processInitProfilePriorities_LeAudioHelper()
527 BluetoothDevice firstDevice = getTestDevice(mAdapter, 0); in testLateConnectOfLeAudioEnabled_DualModeBud()
599 BluetoothDevice secondDevice = getTestDevice(mAdapter, 1); in testLateConnectOfLeAudioEnabled_DualModeBud()
649 BluetoothDevice firstDevice = getTestDevice(mAdapter, 0); in testLateConnectOfLeAudioEnabled_AshaAndLeAudioBud()
[all …]
DAudioRoutingManagerTest.java138 mA2dpDevice = TestUtils.getTestDevice(mAdapter, 0); in setUp()
139 mHeadsetDevice = TestUtils.getTestDevice(mAdapter, 1); in setUp()
140 mA2dpHeadsetDevice = TestUtils.getTestDevice(mAdapter, 2); in setUp()
141 mHearingAidDevice = TestUtils.getTestDevice(mAdapter, 3); in setUp()
142 mLeAudioDevice = TestUtils.getTestDevice(mAdapter, 4); in setUp()
143 mSecondaryAudioDevice = TestUtils.getTestDevice(mAdapter, 5); in setUp()
144 mDualModeAudioDevice = TestUtils.getTestDevice(mAdapter, 6); in setUp()
145 mLeAudioDevice2 = TestUtils.getTestDevice(mAdapter, 7); in setUp()
DActiveDeviceManagerTest.java141 mA2dpDevice = TestUtils.getTestDevice(mAdapter, 0); in setUp()
142 mHeadsetDevice = TestUtils.getTestDevice(mAdapter, 1); in setUp()
143 mA2dpHeadsetDevice = TestUtils.getTestDevice(mAdapter, 2); in setUp()
144 mHearingAidDevice = TestUtils.getTestDevice(mAdapter, 3); in setUp()
145 mLeAudioDevice = TestUtils.getTestDevice(mAdapter, 4); in setUp()
146 mLeHearingAidDevice = TestUtils.getTestDevice(mAdapter, 5); in setUp()
147 mSecondaryAudioDevice = TestUtils.getTestDevice(mAdapter, 6); in setUp()
148 mDualModeAudioDevice = TestUtils.getTestDevice(mAdapter, 7); in setUp()
149 mLeAudioDevice2 = TestUtils.getTestDevice(mAdapter, 8); in setUp()
DMetricsLoggerTest.java262 TestUtils.getTestDevice(BluetoothAdapter.getDefaultAdapter(), 0); in testOuiFromBluetoothDevice()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/le_audio/
DLeAudioBinderTest.java112 BluetoothDevice device = TestUtils.getTestDevice(mAdapter, 0); in connect()
121 BluetoothDevice device = TestUtils.getTestDevice(mAdapter, 0); in disconnect()
156 BluetoothDevice device = TestUtils.getTestDevice(mAdapter, 0); in getConnectionState()
165 BluetoothDevice device = TestUtils.getTestDevice(mAdapter, 0); in setActiveDevice()
200 BluetoothDevice device = TestUtils.getTestDevice(mAdapter, 0); in getAudioLocation()
209 BluetoothDevice device = TestUtils.getTestDevice(mAdapter, 0); in setConnectionPolicy()
219 BluetoothDevice device = TestUtils.getTestDevice(mAdapter, 0); in getConnectionPolicy()
239 BluetoothDevice device = TestUtils.getTestDevice(mAdapter, 0); in getGroupId()
249 BluetoothDevice device = TestUtils.getTestDevice(mAdapter, 0); in groupAddNode()
267 BluetoothDevice device = TestUtils.getTestDevice(mAdapter, 0); in setInactiveForHfpHandover()
[all …]
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/bass_client/
DBleBroadcastAssistantBinderTest.java73 BluetoothDevice device = TestUtils.getTestDevice(mAdapter, 0); in getConnectionState()
113 BluetoothDevice device = TestUtils.getTestDevice(mAdapter, 0); in setConnectionPolicy()
130 BluetoothDevice device = TestUtils.getTestDevice(mAdapter, 0); in getConnectionPolicy()
222 BluetoothDevice device = TestUtils.getTestDevice(mAdapter, 0); in addSource()
238 BluetoothDevice device = TestUtils.getTestDevice(mAdapter, 0); in modifySource()
254 BluetoothDevice device = TestUtils.getTestDevice(mAdapter, 0); in removeSource()
270 BluetoothDevice device = TestUtils.getTestDevice(mAdapter, 0); in getAllSources()
283 BluetoothDevice device = TestUtils.getTestDevice(mAdapter, 0); in getMaximumSourceCapacity()
/packages/modules/AdServices/shared/libraries/host-side/java/com/android/adservices/shared/testing/
DTestDeviceHelper.java52 public static ITestDevice getTestDevice() { in getTestDevice() method in TestDeviceHelper
71 return runShellCommand(getTestDevice(), cmdFmt, cmdArgs); in runShellCommand()
100 return runShellCommandRwe(TestDeviceHelper.getTestDevice(), cmdFmt, cmdArgs); in runShellCommandRwe()
219 return command.run(getTestDevice()); in call()
232 command.run(getTestDevice()); in run()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/hearingaid/
DHearingAidNativeInterfaceTest.java70 BluetoothDevice device = TestUtils.getTestDevice(mAdapter, 0); in getByteAddress()
77 BluetoothDevice device = TestUtils.getTestDevice(mAdapter, 0); in onConnectionStateChanged()
97 BluetoothDevice device = TestUtils.getTestDevice(mAdapter, 0); in onDeviceAvailable()
DHearingAidServiceTest.java85 private static final BluetoothDevice mLeftDevice = TestUtils.getTestDevice(mAdapter, 0);
86 private static final BluetoothDevice mRightDevice = TestUtils.getTestDevice(mAdapter, 1);
87 private static final BluetoothDevice mSingleDevice = TestUtils.getTestDevice(mAdapter, 2);
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/tbs/
DTbsGenericTest.java153 mCurrentDevice = TestUtils.getTestDevice(mAdapter, 0); in testSetClearInbandRingtone()
333 mCurrentDevice = TestUtils.getTestDevice(mAdapter, 0); in testCallAccept()
394 mCurrentDevice = TestUtils.getTestDevice(mAdapter, 0); in testCallTerminate()
450 mCurrentDevice = TestUtils.getTestDevice(mAdapter, 0); in testCallHold()
506 mCurrentDevice = TestUtils.getTestDevice(mAdapter, 0); in testCallRetrieve()
562 mCurrentDevice = TestUtils.getTestDevice(mAdapter, 0); in testCallOriginate()
613 mCurrentDevice = TestUtils.getTestDevice(mAdapter, 0); in testCallJoin()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/mcp/
DMcpServiceTest.java94 BluetoothDevice device0 = TestUtils.getTestDevice(mAdapter, 0); in testAuthorization()
95 BluetoothDevice device1 = TestUtils.getTestDevice(mAdapter, 1); in testAuthorization()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/sap/
DSapServiceTest.java69 mDevice = TestUtils.getTestDevice(mAdapter, 0); in setUp()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/csip/
DCsipSetCoordinatorServiceTest.java118 mTestDevice = TestUtils.getTestDevice(mAdapter, 0); in setUp()
121 mTestDevice2 = TestUtils.getTestDevice(mAdapter, 1); in setUp()
124 mTestDevice3 = TestUtils.getTestDevice(mAdapter, 2); in setUp()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/hid/
DHidHostServiceTest.java70 mTestDevice = TestUtils.getTestDevice(mAdapter, 0); in setUp()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/hap/
DHapClientTest.java136 mDevice = TestUtils.getTestDevice(mAdapter, 0); in setUp()
138 mDevice2 = TestUtils.getTestDevice(mAdapter, 1); in setUp()
140 mDevice3 = TestUtils.getTestDevice(mAdapter, 2); in setUp()
445 BluetoothDevice Device2 = TestUtils.getTestDevice(mAdapter, 1); in testConnectTwo()
/packages/modules/AdServices/adservices/tests/cts/hosttests/src/com/android/adservices/cts/
DAppSearchDataMigrationHostTest.java124 TestDeviceHelper.getTestDevice().reboot(); in classTearDown()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/a2dp/
DA2dpServiceBinderTest.java53 private static final BluetoothDevice sDevice = TestUtils.getTestDevice(sAdapter, 0);
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/
DUtilsTest.java180 BluetoothDevice device = TestUtils.getTestDevice(BluetoothAdapter.getDefaultAdapter(), 1); in getLoggableAddress()
DTestUtils.java142 public static BluetoothDevice getTestDevice(BluetoothAdapter bluetoothAdapter, int id) { in getTestDevice() method in TestUtils

12