Home
last modified time | relevance | path

Searched refs:TEST_DEVICE (Results 1 – 5 of 5) sorted by relevance

/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/hfpclient/connserv/
DHeadsetClientServiceInterfaceTest.java47 private static final BluetoothDevice TEST_DEVICE = field in HeadsetClientServiceInterfaceTest
58 TEST_DEVICE,
97 assertThat(mServiceInterface.dial(TEST_DEVICE, TEST_NUMBER)).isNull(); in testDial()
100 doReturn(TEST_CALL).when(mMockHeadsetClientService).dial(TEST_DEVICE, TEST_NUMBER); in testDial()
101 assertThat(mServiceInterface.dial(TEST_DEVICE, TEST_NUMBER)).isEqualTo(TEST_CALL); in testDial()
106 assertThat(mServiceInterface.enterPrivateMode(TEST_DEVICE, TEST_CALL_INDEX)).isFalse(); in testEnterPrivateMode()
111 .enterPrivateMode(TEST_DEVICE, TEST_CALL_INDEX); in testEnterPrivateMode()
112 assertThat(mServiceInterface.enterPrivateMode(TEST_DEVICE, TEST_CALL_INDEX)).isFalse(); in testEnterPrivateMode()
115 .enterPrivateMode(TEST_DEVICE, TEST_CALL_INDEX); in testEnterPrivateMode()
116 assertThat(mServiceInterface.enterPrivateMode(TEST_DEVICE, TEST_CALL_INDEX)).isTrue(); in testEnterPrivateMode()
[all …]
DHfpClientConnectionServiceTest.java66 private static final BluetoothDevice TEST_DEVICE = field in HfpClientConnectionServiceTest
122 doReturn(getPhoneAccount(TEST_DEVICE)).when(mMockTelecomManager).getPhoneAccount(any()); in setUp()
160 HfpClientDeviceBlock block = mHfpClientConnectionService.findBlockForDevice(TEST_DEVICE); in setupDeviceConnection()
162 assertThat(block.getDevice()).isEqualTo(TEST_DEVICE); in setupDeviceConnection()
167 when(mMockHeadsetClientService.getConnectedDevices()).thenReturn(List.of(TEST_DEVICE)); in startServiceWithAlreadyConnectedDevice_blockIsCreated()
169 HfpClientDeviceBlock block = mHfpClientConnectionService.findBlockForDevice(TEST_DEVICE); in startServiceWithAlreadyConnectedDevice_blockIsCreated()
171 assertThat(block.getDevice()).isEqualTo(TEST_DEVICE); in startServiceWithAlreadyConnectedDevice_blockIsCreated()
177 setupDeviceConnection(TEST_DEVICE); in ConnectDevice_blockIsCreated()
183 setupDeviceConnection(TEST_DEVICE); in disconnectDevice_blockIsRemoved()
185 TEST_DEVICE, BluetoothProfile.STATE_DISCONNECTED, BluetoothProfile.STATE_CONNECTED); in disconnectDevice_blockIsRemoved()
[all …]
DHfpClientCallTest.java35 private static final BluetoothDevice TEST_DEVICE = field in HfpClientCallTest
72 /* device= */ TEST_DEVICE, in testCreateActiveCall()
80 TEST_DEVICE, in testCreateActiveCall()
94 /* device= */ TEST_DEVICE, in testCreateHeldCall()
102 TEST_DEVICE, in testCreateHeldCall()
116 /* device= */ TEST_DEVICE, in testCreateDialingCall()
124 TEST_DEVICE, in testCreateDialingCall()
138 /* device= */ TEST_DEVICE, in testCreateAlertingCall()
146 TEST_DEVICE, in testCreateAlertingCall()
160 /* device= */ TEST_DEVICE, in testCreateIncomingCall()
[all …]
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/btservice/
DCompanionManagerTest.java46 private static final String TEST_DEVICE = "11:22:33:44:55:66"; field in CompanionManagerTest
92 loadCompanionInfoHelper(TEST_DEVICE, CompanionManager.COMPANION_TYPE_PRIMARY); in testLoadCompanionInfo_hasCompanionDeviceKey()
107 loadCompanionInfoHelper(TEST_DEVICE, CompanionManager.COMPANION_TYPE_NONE); in testIsCompanionDevice()
108 Assert.assertTrue(mCompanionManager.isCompanionDevice(TEST_DEVICE)); in testIsCompanionDevice()
110 loadCompanionInfoHelper(TEST_DEVICE, CompanionManager.COMPANION_TYPE_PRIMARY); in testIsCompanionDevice()
111 Assert.assertTrue(mCompanionManager.isCompanionDevice(TEST_DEVICE)); in testIsCompanionDevice()
113 loadCompanionInfoHelper(TEST_DEVICE, CompanionManager.COMPANION_TYPE_SECONDARY); in testIsCompanionDevice()
114 Assert.assertTrue(mCompanionManager.isCompanionDevice(TEST_DEVICE)); in testIsCompanionDevice()
119 loadCompanionInfoHelper(TEST_DEVICE, CompanionManager.COMPANION_TYPE_PRIMARY); in testGetGattConnParameterPrimary()
124 loadCompanionInfoHelper(TEST_DEVICE, CompanionManager.COMPANION_TYPE_SECONDARY); in testGetGattConnParameterPrimary()
[all …]
/packages/modules/HealthFitness/tests/cts/hostsidetests/healthconnect/libs/HealthConnectTestLib/src/android/healthconnect/cts/lib/
DUiTestUtils.kt47 private val TEST_DEVICE: Device = constant
279 testMetadataBuilder.setDevice(TEST_DEVICE).setDataOrigin(dataOrigin) in stepsRecord()
292 testMetadataBuilder.setDevice(TEST_DEVICE).setDataOrigin(dataOrigin) in distanceRecord()
302 testMetadataBuilder.setDevice(TEST_DEVICE).setDataOrigin(dataOrigin) in distanceRecord()