/cts/hostsidetests/hdmicec/src/android/hdmicec/cts/tv/ |
D | HdmiCecTvOneTouchPlayTest.java | 75 for (LogicalAddress testDevice : testDevices) { in cect_11_1_1_1_RespondToImageViewOn() 76 hdmiCecClient.sendCecMessage(testDevice, LogicalAddress.TV, CecOperand.IMAGE_VIEW_ON); in cect_11_1_1_1_RespondToImageViewOn() 78 hdmiCecClient.broadcastActiveSource(testDevice, hdmiCecClient.getPhysicalAddress()); in cect_11_1_1_1_RespondToImageViewOn() 79 hdmiCecClient.checkOutputDoesNotContainMessage(testDevice, CecOperand.FEATURE_ABORT); in cect_11_1_1_1_RespondToImageViewOn() 83 .isEqualTo(testDevice); in cect_11_1_1_1_RespondToImageViewOn() 95 for (LogicalAddress testDevice : testDevices) { in cect_11_1_1_2_RespondToTextViewOn() 96 hdmiCecClient.sendCecMessage(testDevice, LogicalAddress.TV, CecOperand.TEXT_VIEW_ON); in cect_11_1_1_2_RespondToTextViewOn() 98 hdmiCecClient.broadcastActiveSource(testDevice, hdmiCecClient.getPhysicalAddress()); in cect_11_1_1_2_RespondToTextViewOn() 99 hdmiCecClient.checkOutputDoesNotContainMessage(testDevice, CecOperand.FEATURE_ABORT); in cect_11_1_1_2_RespondToTextViewOn() 103 .isEqualTo(testDevice); in cect_11_1_1_2_RespondToTextViewOn() [all …]
|
/cts/tests/tests/bluetooth/src/android/bluetooth/cts/ |
D | BluetoothHeadsetTest.java | 152 BluetoothDevice testDevice = mAdapter.getRemoteDevice("00:11:22:AA:BB:CC"); in getConnectionState() local 154 assertEquals(mBluetoothHeadset.getConnectionState(testDevice), in getConnectionState() 164 BluetoothDevice testDevice = mAdapter.getRemoteDevice("00:11:22:AA:BB:CC"); in isAudioConnected() local 166 assertFalse(mBluetoothHeadset.isAudioConnected(testDevice)); in isAudioConnected() 171 assertFalse(mBluetoothHeadset.isAudioConnected(testDevice)); in isAudioConnected() 180 BluetoothDevice testDevice = mAdapter.getRemoteDevice("00:11:22:AA:BB:CC"); in isNoiseReductionSupported() local 182 assertFalse(mBluetoothHeadset.isNoiseReductionSupported(testDevice)); in isNoiseReductionSupported() 187 assertFalse(mBluetoothHeadset.isNoiseReductionSupported(testDevice)); in isNoiseReductionSupported() 196 BluetoothDevice testDevice = mAdapter.getRemoteDevice("00:11:22:AA:BB:CC"); in isVoiceRecognitionSupported() local 198 assertFalse(mBluetoothHeadset.isVoiceRecognitionSupported(testDevice)); in isVoiceRecognitionSupported() [all …]
|
D | BluetoothA2dpTest.java | 180 BluetoothDevice testDevice = mAdapter.getRemoteDevice("00:11:22:AA:BB:CC"); in getConnectionState() local 182 assertEquals(mBluetoothA2dp.getConnectionState(testDevice), in getConnectionState() 192 BluetoothDevice testDevice = mAdapter.getRemoteDevice("00:11:22:AA:BB:CC"); in isA2dpPlaying() local 194 assertFalse(mBluetoothA2dp.isA2dpPlaying(testDevice)); in isA2dpPlaying() 231 BluetoothDevice testDevice = mAdapter.getRemoteDevice("00:11:22:AA:BB:CC"); in getCodecStatus() local 233 assertNull(mBluetoothA2dp.getCodecStatus(testDevice)); in getCodecStatus() 258 BluetoothDevice testDevice = mAdapter.getRemoteDevice("00:11:22:AA:BB:CC"); in setOptionalCodecsEnabled() local 262 .setOptionalCodecsEnabled(testDevice, BluetoothA2dp.OPTIONAL_CODECS_PREF_UNKNOWN); in setOptionalCodecsEnabled() 264 .setOptionalCodecsEnabled(testDevice, BluetoothA2dp.OPTIONAL_CODECS_PREF_DISABLED); in setOptionalCodecsEnabled() 266 .setOptionalCodecsEnabled(testDevice, BluetoothA2dp.OPTIONAL_CODECS_PREF_ENABLED); in setOptionalCodecsEnabled() [all …]
|
D | BluetoothHidHostTest.java | 172 BluetoothDevice testDevice = mAdapter.getRemoteDevice("00:11:22:AA:BB:CC"); in getConnectionState() local 183 assertEquals(BluetoothProfile.STATE_DISCONNECTED, mHidHost.getConnectionState(testDevice)); in getConnectionState() 192 BluetoothDevice testDevice = mAdapter.getRemoteDevice("00:11:22:AA:BB:CC"); in getConnectionPolicy() local 205 mHidHost.getConnectionPolicy(testDevice)); in getConnectionPolicy() 214 BluetoothDevice testDevice = mAdapter.getRemoteDevice("00:11:22:AA:BB:CC"); in setConnectionPolicy() local 219 testDevice, BluetoothProfile.CONNECTION_POLICY_UNKNOWN)); in setConnectionPolicy() 232 testDevice, BluetoothProfile.CONNECTION_POLICY_FORBIDDEN)); in setConnectionPolicy() 242 BluetoothDevice testDevice = mAdapter.getRemoteDevice("00:11:22:AA:BB:CC"); in getPreferredTransportTest() local 255 mHidHost.getPreferredTransport(testDevice)); in getPreferredTransportTest() 265 BluetoothDevice testDevice = mAdapter.getRemoteDevice("00:11:22:AA:BB:CC"); in setPreferredTransportTest() local [all …]
|
D | BluetoothHidDeviceTest.java | 159 BluetoothDevice testDevice = mAdapter.getRemoteDevice("00:11:22:AA:BB:CC"); in getConnectionState() local 169 mBluetoothHidDevice.getConnectionState(testDevice)); in getConnectionState() 178 BluetoothDevice testDevice = mAdapter.getRemoteDevice("00:11:22:AA:BB:CC"); in connect() local 180 assertFalse(mBluetoothHidDevice.connect(testDevice)); in connect() 182 assertThrows(SecurityException.class, () -> mBluetoothHidDevice.connect(testDevice)); in connect() 191 BluetoothDevice testDevice = mAdapter.getRemoteDevice("00:11:22:AA:BB:CC"); in disconnect() local 193 assertFalse(mBluetoothHidDevice.disconnect(testDevice)); in disconnect() 195 assertThrows(SecurityException.class, () -> mBluetoothHidDevice.connect(testDevice)); in disconnect() 217 BluetoothDevice testDevice = mAdapter.getRemoteDevice("00:11:22:AA:BB:CC"); in setConnectionPolicy() local 221 testDevice, BluetoothProfile.CONNECTION_POLICY_UNKNOWN)); in setConnectionPolicy() [all …]
|
D | BluetoothLeBroadcastAssistantTest.java | 218 BluetoothDevice testDevice = mAdapter.getRemoteLeDevice(TEST_ADDRESS_1, in addSource() local 250 .addSource(testDevice, metadata, true)); in addSource() 256 .addSource(testDevice, null, true)); in addSource() 263 mBluetoothLeBroadcastAssistant.addSource(testDevice, metadata, true); in addSource() 264 verify(mCallbacks, timeout(ADD_SOURCE_TIMEOUT_MS)).onSourceAddFailed(testDevice, metadata, in addSource() 272 mBluetoothLeBroadcastAssistant.removeSource(testDevice, 0); in addSource() 274 testDevice, 0, BluetoothStatusCodes.ERROR_REMOTE_LINK_ERROR); in addSource() 286 BluetoothDevice testDevice = mAdapter.getRemoteLeDevice(TEST_ADDRESS_1, in getAllSources() local 294 assertTrue(mBluetoothLeBroadcastAssistant.getAllSources(testDevice).isEmpty()); in getAllSources() 298 assertTrue(mBluetoothLeBroadcastAssistant.getAllSources(testDevice).isEmpty()); in getAllSources() [all …]
|
D | BluetoothHeadsetClientTest.java | 158 BluetoothDevice testDevice = mAdapter.getRemoteDevice("00:11:22:AA:BB:CC"); in getConnectionState() local 168 mBluetoothHeadsetClient.getConnectionState(testDevice)); in getConnectionState() 177 BluetoothDevice testDevice = mAdapter.getRemoteDevice("00:11:22:AA:BB:CC"); in getConnectionPolicy() local 187 mBluetoothHeadsetClient.getConnectionPolicy(testDevice)); in getConnectionPolicy() 196 BluetoothDevice testDevice = mAdapter.getRemoteDevice("00:11:22:AA:BB:CC"); in setConnectionPolicy() local 200 testDevice, BluetoothProfile.CONNECTION_POLICY_UNKNOWN)); in setConnectionPolicy() 208 testDevice, BluetoothProfile.CONNECTION_POLICY_FORBIDDEN)); in setConnectionPolicy() 217 BluetoothDevice testDevice = mAdapter.getRemoteDevice("00:11:22:AA:BB:CC"); in getNetworkServiceState() local 220 assertNull(mBluetoothHeadsetClient.getNetworkServiceState(testDevice)); in getNetworkServiceState() 227 BluetoothDevice testDevice = mAdapter.getRemoteDevice("00:11:22:AA:BB:CC"); in createNetworkServiceStateFromParcel() local [all …]
|
D | BluetoothA2dpSinkTest.java | 150 BluetoothDevice testDevice = mAdapter.getRemoteDevice("00:11:22:AA:BB:CC"); in getConnectionState() local 152 assertEquals(mBluetoothA2dpSink.getConnectionState(testDevice), in getConnectionState() 157 () -> mBluetoothA2dpSink.getConnectionState(testDevice)); in getConnectionState() 166 BluetoothDevice testDevice = mAdapter.getRemoteDevice("00:11:22:AA:BB:CC"); in getConnectionPolicy() local 176 mBluetoothA2dpSink.getConnectionPolicy(testDevice)); in getConnectionPolicy() 185 BluetoothDevice testDevice = mAdapter.getRemoteDevice("00:11:22:AA:BB:CC"); in setConnectionPolicy() local 189 testDevice, BluetoothProfile.CONNECTION_POLICY_UNKNOWN)); in setConnectionPolicy() 197 testDevice, BluetoothProfile.CONNECTION_POLICY_FORBIDDEN)); in setConnectionPolicy() 206 BluetoothDevice testDevice = mAdapter.getRemoteDevice("00:11:22:AA:BB:CC"); in isAudioPlaying() local 214 assertFalse(mBluetoothA2dpSink.isAudioPlaying(testDevice)); in isAudioPlaying()
|
D | BluetoothMapClientTest.java | 158 BluetoothDevice testDevice = mAdapter.getRemoteDevice("00:11:22:AA:BB:CC"); in getConnectionPolicy() local 168 mBluetoothMapClient.getConnectionPolicy(testDevice)); in getConnectionPolicy() 177 BluetoothDevice testDevice = mAdapter.getRemoteDevice("00:11:22:AA:BB:CC"); in getConnectionState() local 187 mBluetoothMapClient.getConnectionState(testDevice)); in getConnectionState() 210 BluetoothDevice testDevice = mAdapter.getRemoteDevice("00:11:22:AA:BB:CC"); in sendMessage() local 228 testDevice, contacts, message, sentIntent, deliveredIntent)); in sendMessage() 237 BluetoothDevice testDevice = mAdapter.getRemoteDevice("00:11:22:AA:BB:CC"); in setConnectionPolicy() local 241 testDevice, BluetoothProfile.CONNECTION_POLICY_UNKNOWN)); in setConnectionPolicy() 249 testDevice, BluetoothProfile.CONNECTION_POLICY_FORBIDDEN)); in setConnectionPolicy()
|
D | BluetoothGattServerTest.java | 158 BluetoothDevice testDevice = mBluetoothAdapter.getRemoteDevice("00:11:22:AA:BB:CC"); in readPhy() local 160 assertThrows(SecurityException.class, () -> mBluetoothGattServer.readPhy(testDevice)); in readPhy() 166 BluetoothDevice testDevice = mBluetoothAdapter.getRemoteDevice("00:11:22:AA:BB:CC"); in setPreferredPhy() local 168 assertThrows(SecurityException.class, () -> mBluetoothGattServer.setPreferredPhy(testDevice, in setPreferredPhy() 176 BluetoothDevice testDevice = mBluetoothAdapter.getRemoteDevice("00:11:22:AA:BB:CC"); in notifyCharacteristicChanged_withValueOverMaxLength() local 188 () -> mBluetoothGattServer.notifyCharacteristicChanged(testDevice, characteristic, in notifyCharacteristicChanged_withValueOverMaxLength()
|
D | BluetoothPbapClientTest.java | 143 BluetoothDevice testDevice = mAdapter.getRemoteDevice("00:11:22:AA:BB:CC"); in getConnectionPolicy() local 153 mBluetoothPbapClient.getConnectionPolicy(testDevice)); in getConnectionPolicy() 162 BluetoothDevice testDevice = mAdapter.getRemoteDevice("00:11:22:AA:BB:CC"); in getConnectionState() local 172 mBluetoothPbapClient.getConnectionState(testDevice)); in getConnectionState() 195 BluetoothDevice testDevice = mAdapter.getRemoteDevice("00:11:22:AA:BB:CC"); in setConnectionPolicy() local 199 testDevice, BluetoothProfile.CONNECTION_POLICY_UNKNOWN)); in setConnectionPolicy() 207 testDevice, BluetoothProfile.CONNECTION_POLICY_FORBIDDEN)); in setConnectionPolicy()
|
D | BluetoothMapTest.java | 146 BluetoothDevice testDevice = mAdapter.getRemoteDevice("00:11:22:AA:BB:CC"); in getConnectionPolicy() local 156 mBluetoothMap.getConnectionPolicy(testDevice)); in getConnectionPolicy() 165 BluetoothDevice testDevice = mAdapter.getRemoteDevice("00:11:22:AA:BB:CC"); in getConnectionState() local 175 mBluetoothMap.getConnectionState(testDevice)); in getConnectionState() 198 BluetoothDevice testDevice = mAdapter.getRemoteDevice("00:11:22:AA:BB:CC"); in setConnectionPolicy() local 202 testDevice, BluetoothProfile.CONNECTION_POLICY_UNKNOWN)); in setConnectionPolicy() 210 testDevice, BluetoothProfile.CONNECTION_POLICY_FORBIDDEN)); in setConnectionPolicy()
|
D | BluetoothLeBroadcastMetadataTest.java | 137 BluetoothDevice testDevice = in createMetadataFromBuilder() local 146 .setSourceDevice(testDevice, BluetoothDevice.ADDRESS_TYPE_RANDOM) in createMetadataFromBuilder() 166 assertEquals(testDevice, metadata.getSourceDevice()); in createMetadataFromBuilder() 185 BluetoothDevice testDevice = in createMetadataFromCopy() local 194 .setSourceDevice(testDevice, BluetoothDevice.ADDRESS_TYPE_RANDOM) in createMetadataFromCopy() 217 assertEquals(testDevice, metadataCopy.getSourceDevice()); in createMetadataFromCopy() 239 BluetoothDevice testDevice = in createMetadataFromBuilderAndCheckRssi() local 242 .setSourceDevice(testDevice, BluetoothDevice.ADDRESS_TYPE_RANDOM); in createMetadataFromBuilderAndCheckRssi()
|
D | BluetoothSapTest.java | 162 BluetoothDevice testDevice = mAdapter.getRemoteDevice("00:11:22:AA:BB:CC"); in getConnectionState() local 164 assertEquals(mBluetoothSap.getConnectionState(testDevice), in getConnectionState() 168 assertEquals(mBluetoothSap.getConnectionState(testDevice), in getConnectionState() 184 BluetoothDevice testDevice = mAdapter.getRemoteDevice("00:11:22:AA:BB:CC"); in setgetConnectionPolicy() local 185 assertThrows(SecurityException.class, () -> mBluetoothSap.setConnectionPolicy(testDevice, in setgetConnectionPolicy() 187 assertThrows(SecurityException.class, () -> mBluetoothSap.getConnectionPolicy(testDevice)); in setgetConnectionPolicy()
|
D | BluetoothPbapTest.java | 146 BluetoothDevice testDevice = mAdapter.getRemoteDevice("00:11:22:AA:BB:CC"); in getConnectionState() local 156 mBluetoothPbap.getConnectionState(testDevice)); in getConnectionState() 179 BluetoothDevice testDevice = mAdapter.getRemoteDevice("00:11:22:AA:BB:CC"); in setConnectionPolicy() local 183 testDevice, BluetoothProfile.CONNECTION_POLICY_UNKNOWN)); in setConnectionPolicy() 191 testDevice, BluetoothProfile.CONNECTION_POLICY_FORBIDDEN)); in setConnectionPolicy()
|
D | BluetoothPanTest.java | 156 BluetoothDevice testDevice = mAdapter.getRemoteDevice("00:11:22:AA:BB:CC"); in getConnectionState() local 166 mBluetoothPan.getConnectionState(testDevice)); in getConnectionState() 175 BluetoothDevice testDevice = mAdapter.getRemoteDevice("00:11:22:AA:BB:CC"); in setConnectionPolicy() local 179 testDevice, BluetoothProfile.CONNECTION_POLICY_UNKNOWN)); in setConnectionPolicy() 187 testDevice, BluetoothProfile.CONNECTION_POLICY_FORBIDDEN)); in setConnectionPolicy()
|
D | BluetoothVolumeControlTest.java | 430 BluetoothDevice testDevice = mAdapter.getRemoteDevice("00:11:22:AA:BB:CC"); in getConnectionState() local 440 mBluetoothVolumeControl.getConnectionState(testDevice)); in getConnectionState() 449 BluetoothDevice testDevice = mAdapter.getRemoteDevice("00:11:22:AA:BB:CC"); in getConnectionPolicy() local 455 enforceConnectAndPrivileged(() -> mBluetoothVolumeControl.getConnectionPolicy(testDevice)); in getConnectionPolicy() 461 mBluetoothVolumeControl.getConnectionPolicy(testDevice)); in getConnectionPolicy() 470 BluetoothDevice testDevice = mAdapter.getRemoteDevice("00:11:22:AA:BB:CC"); in setConnectionPolicy() local 474 testDevice, BluetoothProfile.CONNECTION_POLICY_UNKNOWN)); in setConnectionPolicy() 479 .setConnectionPolicy(testDevice, BluetoothProfile.CONNECTION_POLICY_ALLOWED)); in setConnectionPolicy() 484 testDevice, BluetoothProfile.CONNECTION_POLICY_FORBIDDEN)); in setConnectionPolicy()
|
D | BluetoothLeBroadcastReceiveStateTest.java | 114 BluetoothDevice testDevice = in createBroadcastReceiveState() local 119 testDevice, in createBroadcastReceiveState() 130 assertEquals(testDevice, state.getSourceDevice()); in createBroadcastReceiveState()
|
/cts/hostsidetests/hdmicec/src/android/hdmicec/cts/ |
D | RequiredDeviceTypeRule.java | 59 ITestDevice testDevice = test.getDevice(); 61 BaseHdmiCecCtsTest.getDumpsysLogicalAddresses(testDevice); 72 + testDevice.getSerialNumber(), 92 ITestDevice testDevice = test.getDevice(); 94 BaseHdmiCecCtsTest.getDumpsysLogicalAddresses(testDevice); 105 + testDevice.getSerialNumber(), 127 ITestDevice testDevice = test.getDevice(); 133 "Invalid device " + testDevice.getSerialNumber() + " for "
|
D | RequiredFeatureRule.java | 46 ITestDevice testDevice = mTest.getDevice(); in apply() 48 assumeTrue("Test device is not available", testDevice != null); in apply() 50 assumeTrue(mFeature + " not present in DUT " + testDevice.getSerialNumber(), in apply() 51 testDevice.hasFeature(mFeature)); in apply()
|
D | RequiredPropertyRule.java | 53 ITestDevice testDevice = test.getDevice(); 55 assumeTrue("Test device is not available", testDevice != null); 56 return testDevice.executeShellCommand("getprop " + propertyName).trim();
|
/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/ |
D | DeviceAdminFeaturesCheckerRule.java | 61 ITestDevice testDevice = mTest.getDevice(); in apply() 62 assumeTrue("Test device is not available", testDevice != null); in apply() 64 int apiLevel = testDevice.getApiLevel(); in apply() 73 && BaseDevicePolicyTest.isHeadlessSystemUserMode(testDevice)) { in apply() 82 && BaseDevicePolicyTest.isHeadlessSystemUserMode(testDevice)) { in apply() 99 addRequiredManagedUsersFeature(requiredFeatures, testDevice, description in apply() 107 addRequiredManagedUsersFeature(requiredFeatures, testDevice, in apply() 116 if (!testDevice.hasFeature(requiredFeature)) { in apply() 151 ITestDevice testDevice, RequiresProfileOwnerSupport annotation) in apply() argument 155 if (BaseDevicePolicyTest.isHeadlessSystemUserMode(testDevice)) { in apply()
|
/cts/hostsidetests/hdmicec/src/android/hdmicec/cts/common/ |
D | HdmiCecSystemInformationTest.java | 69 for (LogicalAddress testDevice : testDevices) { in cect_11_2_6_2_GivePhysicalAddress() 70 if (hasLogicalAddress(testDevice)) { in cect_11_2_6_2_GivePhysicalAddress() 74 hdmiCecClient.sendCecMessage(testDevice, CecOperand.GIVE_PHYSICAL_ADDRESS); in cect_11_2_6_2_GivePhysicalAddress() 100 for (LogicalAddress testDevice : testDevices) { in cect_reportFeatures_deviceTypeContainedInAllDeviceTypes() 101 if (hasLogicalAddress(testDevice)) { in cect_reportFeatures_deviceTypeContainedInAllDeviceTypes() 105 hdmiCecClient.sendCecMessage(testDevice, CecOperand.GIVE_FEATURES); in cect_reportFeatures_deviceTypeContainedInAllDeviceTypes()
|
/cts/hostsidetests/tv/src/com/android/cts/tv/ |
D | TvInputManagerServiceHostTest.java | 257 ITestDevice testDevice = mTest.getDevice(); in apply() 259 assumeTrue("Test device is not available", testDevice != null); in apply() 261 assumeTrue(mFeature + " not present in DUT " + testDevice.getSerialNumber(), in apply() 262 testDevice.hasFeature(mFeature)); in apply()
|
/cts/tests/tests/media/audio/src/android/media/audio/cts/ |
D | AudioSystemUsageTest.java | 96 AudioDeviceInfo testDevice = mAudioManager.getDevices(AudioManager.GET_DEVICES_INPUTS)[0]; in trackPlayer_throwsException() local 99 .setAudioDeviceInfo(testDevice); in trackPlayer_throwsException()
|