Home
last modified time | relevance | path

Searched refs:TestUtils (Results 1 – 25 of 158) sorted by relevance

1234567

/cts/tests/tests/keystore/src/android/keystore/cts/
DDESedeCipherTestBase.java42 if (TestUtils.supports3DES()) { in testGetProvider()
49 if (TestUtils.supports3DES()) { in testGetAlgorithm()
56 if (TestUtils.supports3DES()) { in testGetBlockSize()
63 if (TestUtils.supports3DES()) { in testGetExemptionMechanism()
70 if (TestUtils.supports3DES()) { in testUpdateCopySafe()
77 if (TestUtils.supports3DES()) { in testUpdateAndDoFinalNotSupportedInWrapAndUnwrapModes()
84 if (TestUtils.supports3DES()) { in testKeyDoesNotSurviveReinitialization()
91 if (TestUtils.supports3DES()) { in testKatOneShotEncryptUsingDoFinal()
98 if (TestUtils.supports3DES()) { in testKatOneShotDecryptUsingDoFinal()
105 if (TestUtils.supports3DES()) { in testKatEncryptOneByteAtATime()
[all …]
DKeyGeneratorTest.java51 private static final String EXPECTED_PROVIDER_NAME = TestUtils.EXPECTED_PROVIDER_NAME;
68 if (TestUtils.supports3DES()) {
99 Arrays.asList(TestUtils.toLowerCase(EXPECTED_ALGORITHMS))); in testAlgorithmList()
107 TestUtils.assertContentsInAnyOrder(actualAlgsLowerCase, in testAlgorithmList()
191 if (TestUtils.hasStrongBox(getContext())) { in testInitWithAlgParamsAndNullSecureRandom()
232 if (TestUtils.hasStrongBox(getContext())) { in testDefaultKeySize()
245 assertEquals(expectedSizeBits, TestUtils.getKeyInfo(key).getKeySize()); in testDefaultKeySize()
254 if (TestUtils.hasStrongBox(getContext())) { in testAesKeySupportedSizes()
268 spec = TestUtils.buildUpon( in testAesKeySupportedSizesHelper()
272 spec = TestUtils.buildUpon( in testAesKeySupportedSizesHelper()
[all …]
DCipherTest.java71 private static final String EXPECTED_PROVIDER_NAME = TestUtils.EXPECTED_CRYPTO_OP_PROVIDER_NAME;
100 if (TestUtils.supports3DES()) {
256 private static final long DAY_IN_MILLIS = TestUtils.DAY_IN_MILLIS;
314 Arrays.asList(TestUtils.toLowerCase(EXPECTED_ALGORITHMS))); in testAlgorithmList()
322 TestUtils.assertContentsInAnyOrder(actualAlgsLowerCase, in testAlgorithmList()
414 int modulusLengthBytes = (TestUtils.getKeySizeBits(encryptionKey) + 7) / 8; in testEmptyPlaintextEncryptsAndDecrypts()
415 expectedPlaintext = TestUtils.leftPadWithZeroBytes( in testEmptyPlaintextEncryptsAndDecrypts()
514 … int modulusLengthBytes = (TestUtils.getKeySizeBits(encryptionKey) + 7) / 8; in testEmptyPlaintextEncryptsAndDecryptsWhenUnlockedRequired()
515 expectedPlaintext = TestUtils.leftPadWithZeroBytes( in testEmptyPlaintextEncryptsAndDecryptsWhenUnlockedRequired()
568 int modulusLengthBytes = (TestUtils.getKeySizeBits(encryptionKey) + 7) / 8; in testCiphertextGeneratedByAndroidKeyStoreDecryptsByAndroidKeyStore()
[all …]
DRSASignatureTest.java47 String keyAlgorithm = TestUtils.getSignatureAlgorithmKeyAlgorithm(algorithm);
112 String digest = TestUtils.getSignatureAlgorithmDigest(algorithm); in testSmallKeyRejected()
118 int digestOutputSizeBits = TestUtils.getDigestOutputSizeBits(digest); in testSmallKeyRejected()
124 KeyPair keyPair = TestUtils.importIntoAndroidKeyStore("test1", in testSmallKeyRejected()
128 TestUtils.getMinimalWorkingImportParametersForSigningingWith(algorithm)) in testSmallKeyRejected()
153 TestUtils.getMinimalWorkingImportParametersForSigningingWith(signatureAlgorithm); in importKatKeyPairs()
160 TestUtils.importIntoAndroidKeyStore("testRSA512", context, in importKatKeyPairs()
162 TestUtils.importIntoAndroidKeyStore("testRSA768", context, in importKatKeyPairs()
164 TestUtils.importIntoAndroidKeyStore("testRSA1024", context, in importKatKeyPairs()
166 TestUtils.importIntoAndroidKeyStore("testRSA2048", context, in importKatKeyPairs()
[all …]
DSecretKeyFactoryTest.java47 private static final String EXPECTED_PROVIDER_NAME = TestUtils.EXPECTED_PROVIDER_NAME;
59 if (TestUtils.supports3DES()) {
75 Arrays.asList(TestUtils.toLowerCase(EXPECTED_ALGORITHMS))); in testAlgorithmList()
83 TestUtils.assertContentsInAnyOrder(actualAlgsLowerCase, in testAlgorithmList()
89 Date keyValidityStart = new Date(System.currentTimeMillis() - TestUtils.DAY_IN_MILLIS); in testGetKeySpecWithKeystoreKeyAndKeyInfoReflectsAllAuthorizations()
91 new Date(System.currentTimeMillis() + TestUtils.DAY_IN_MILLIS); in testGetKeySpecWithKeystoreKeyAndKeyInfoReflectsAllAuthorizations()
93 new Date(System.currentTimeMillis() + 3 * TestUtils.DAY_IN_MILLIS); in testGetKeySpecWithKeystoreKeyAndKeyInfoReflectsAllAuthorizations()
103 if (TestUtils.isHmacAlgorithm(algorithm)) { in testGetKeySpecWithKeystoreKeyAndKeyInfoReflectsAllAuthorizations()
104 String digest = TestUtils.getHmacAlgorithmDigest(algorithm); in testGetKeySpecWithKeystoreKeyAndKeyInfoReflectsAllAuthorizations()
126 TestUtils.assertContentsInAnyOrder( in testGetKeySpecWithKeystoreKeyAndKeyInfoReflectsAllAuthorizations()
[all …]
DRSACipherTest.java36 private static final String EXPECTED_PROVIDER_NAME = TestUtils.EXPECTED_CRYPTO_OP_PROVIDER_NAME;
44 TestUtils.getMinimalWorkingImportParametersForCipheringWith( in testNoPaddingEncryptionAndDecryptionSucceedsWithInputShorterThanModulus()
57 byte[] expectedOutput = TestUtils.leftPadWithZeroBytes(input, modulusSizeBytes); in testNoPaddingEncryptionAndDecryptionSucceedsWithInputShorterThanModulus()
77 TestUtils.getMinimalWorkingImportParametersForCipheringWith( in testNoPaddingEncryptionSucceedsWithPlaintextOneSmallerThanModulus()
88 TestUtils.getBigIntegerMagnitudeBytes(modulus.subtract(BigInteger.ONE)); in testNoPaddingEncryptionSucceedsWithPlaintextOneSmallerThanModulus()
105 TestUtils.getMinimalWorkingImportParametersForCipheringWith( in testNoPaddingEncryptionFailsWithPlaintextEqualToModulus()
114 byte[] plaintext = TestUtils.getBigIntegerMagnitudeBytes(modulus); in testNoPaddingEncryptionFailsWithPlaintextEqualToModulus()
133 TestUtils.getMinimalWorkingImportParametersForCipheringWith( in testNoPaddingEncryptionFailsWithPlaintextOneLargerThanModulus()
143 TestUtils.getBigIntegerMagnitudeBytes(modulus.add(BigInteger.ONE)); in testNoPaddingEncryptionFailsWithPlaintextOneLargerThanModulus()
163 TestUtils.getMinimalWorkingImportParametersForCipheringWith( in testNoPaddingEncryptionFailsWithPlaintextOneByteLongerThanModulus()
[all …]
DSignatureTest.java51 static final String EXPECTED_PROVIDER_NAME = TestUtils.EXPECTED_CRYPTO_OP_PROVIDER_NAME;
329 private static final long DAY_IN_MILLIS = TestUtils.DAY_IN_MILLIS;
343 Arrays.asList(TestUtils.toLowerCase(EXPECTED_SIGNATURE_ALGORITHMS))); in testAlgorithmList()
360 TestUtils.assertContentsInAnyOrder(actualSigAlgsLowerCase, in testAlgorithmList()
401 if (!TestUtils.isKeyLongEnoughForSignatureAlgorithm( in testValidSignatureGeneratedForEmptyMessage()
430 if (!TestUtils.isKeyLongEnoughForSignatureAlgorithm( in testEmptySignatureDoesNotVerify()
453 if (!TestUtils.isKeyLongEnoughForSignatureAlgorithm( in testSignatureGeneratedByAndroidKeyStoreVerifiesByAndroidKeyStore()
484 if (!TestUtils.isKeyLongEnoughForSignatureAlgorithm( in testSignatureGeneratedByAndroidKeyStoreVerifiesByHighestPriorityProvider()
529 if (!TestUtils.isKeyLongEnoughForSignatureAlgorithm( in testSignatureGeneratedByHighestPriorityProviderVerifiesByAndroidKeyStore()
576 if (!TestUtils.isKeyLongEnoughForSignatureAlgorithm( in testEntropyConsumption()
[all …]
DKeyPairGeneratorTest.java111 private static final String EXPECTED_PROVIDER_NAME = TestUtils.EXPECTED_PROVIDER_NAME;
144 Arrays.asList(TestUtils.toLowerCase(EXPECTED_ALGORITHMS))); in testAlgorithmList()
152 TestUtils.assertContentsInAnyOrder(actualAlgsLowerCase, in testAlgorithmList()
221 TestUtils.getKeyInfo(keyPair.getPrivate()).getKeySize()); in testDefaultKeySize()
303 if (TestUtils.hasStrongBox(getContext())) { in testGenerateHonorsRequestedAuthorizations()
309 Date keyValidityStart = new Date(System.currentTimeMillis() - TestUtils.DAY_IN_MILLIS); in testGenerateHonorsRequestedAuthorizationsHelper()
311 new Date(System.currentTimeMillis() + TestUtils.DAY_IN_MILLIS); in testGenerateHonorsRequestedAuthorizationsHelper()
313 new Date(System.currentTimeMillis() + 3 * TestUtils.DAY_IN_MILLIS); in testGenerateHonorsRequestedAuthorizationsHelper()
337 KeyInfo keyInfo = TestUtils.getKeyInfo(keyPair.getPrivate()); in testGenerateHonorsRequestedAuthorizationsHelper()
339 TestUtils.assertContentsInAnyOrder( in testGenerateHonorsRequestedAuthorizationsHelper()
[all …]
/cts/tests/tests/telecom/src/android/telecom/cts/
DDefaultDialerOperationsTest.java47 if (!TestUtils.shouldTestTelecom(mContext)) { in setUp()
50 mPreviousDefaultDialer = TestUtils.getDefaultDialer(getInstrumentation()); in setUp()
53 mSystemDialer = TestUtils.getSystemDialer(getInstrumentation()); in setUp()
55 TestUtils.setDefaultDialer(getInstrumentation(), mSystemDialer); in setUp()
69 TestUtils.setDefaultDialer(getInstrumentation(), mPreviousDefaultDialer); in tearDown()
75 if (!TestUtils.shouldTestTelecom(mContext)) { in testGetDefaultDialerPackage()
79 TestUtils.setDefaultDialer(getInstrumentation(), TestUtils.PACKAGE); in testGetDefaultDialerPackage()
80 assertEquals(TestUtils.PACKAGE, mTelecomManager.getDefaultDialerPackage()); in testGetDefaultDialerPackage()
84 if (!TestUtils.shouldTestTelecom(mContext)) { in testVoicemailReadWritePermissions()
110 TestUtils.setDefaultDialer(getInstrumentation(), TestUtils.PACKAGE); in testVoicemailReadWritePermissions()
[all …]
DSelfManagedConnectionServiceTest.java40 import static android.telecom.cts.TestUtils.WAIT_FOR_STATE_CHANGE_TIMEOUT_MS;
41 import static android.telecom.cts.TestUtils.waitOnAllHandlers;
55 private Uri TEST_ADDRESS_4 = Uri.fromParts(TestUtils.TEST_URI_SCHEME, "fizzle_schmozle", null);
67 mTelecomManager.registerPhoneAccount(TestUtils.TEST_SELF_MANAGED_PHONE_ACCOUNT_1); in setUp()
68 mTelecomManager.registerPhoneAccount(TestUtils.TEST_SELF_MANAGED_PHONE_ACCOUNT_2); in setUp()
69 mTelecomManager.registerPhoneAccount(TestUtils.TEST_SELF_MANAGED_PHONE_ACCOUNT_3); in setUp()
81 mTelecomManager.unregisterPhoneAccount(TestUtils.TEST_SELF_MANAGED_HANDLE_1); in tearDown()
82 mTelecomManager.unregisterPhoneAccount(TestUtils.TEST_SELF_MANAGED_HANDLE_2); in tearDown()
83 mTelecomManager.unregisterPhoneAccount(TestUtils.TEST_SELF_MANAGED_HANDLE_3); in tearDown()
99 assertTrue(phoneAccountHandles.contains(TestUtils.TEST_SELF_MANAGED_HANDLE_1)); in testTelecomManagerGetSelfManagedPhoneAccounts()
[all …]
DDefaultPhoneAccountTest.java55 assertEquals(TestUtils.TEST_PHONE_ACCOUNT_HANDLE, handle); in testDefaultIsSet()
59 assertEquals(TestUtils.TEST_PHONE_ACCOUNT_HANDLE, defaultOutgoing); in testDefaultIsSet()
83 TestUtils.TEST_PHONE_ACCOUNT_HANDLE)); in testSetUserSelectedOutgoingPhoneAccount()
86 assertEquals(TestUtils.TEST_PHONE_ACCOUNT_HANDLE, handle); in testSetUserSelectedOutgoingPhoneAccount()
90 assertEquals(TestUtils.TEST_PHONE_ACCOUNT_HANDLE, defaultOutgoing); in testSetUserSelectedOutgoingPhoneAccount()
93 TestUtils.setDefaultOutgoingPhoneAccount(getInstrumentation(), in testSetUserSelectedOutgoingPhoneAccount()
125 TestUtils.setDefaultOutgoingPhoneAccount(getInstrumentation(), in testGetDefaultOutgoingNoUserSelected()
143 TestUtils.setDefaultOutgoingPhoneAccount(getInstrumentation(), in testGetDefaultOutgoingNoUserSelected()
171 TestUtils.setDefaultOutgoingPhoneAccount(getInstrumentation(), in testGetDefaultOutgoingPhoneAccountOneOrMany()
177 registerAndEnablePhoneAccount(TestUtils.TEST_DEFAULT_PHONE_ACCOUNT_1); in testGetDefaultOutgoingPhoneAccountOneOrMany()
[all …]
DRttOperationsTest.java66 TestUtils.waitOnAllHandlers(getInstrumentation()); in testOutgoingRttCall()
80 TestUtils.waitOnAllHandlers(getInstrumentation()); in testIncomingRttCall()
95 TestUtils.InvokeCounter startRttCounter = in testLocalRttUpgradeAccepted()
98 startRttCounter.waitForCount(1, TestUtils.WAIT_FOR_STATE_CHANGE_TIMEOUT_MS); in testLocalRttUpgradeAccepted()
104 TestUtils.waitOnAllHandlers(getInstrumentation()); in testLocalRttUpgradeAccepted()
119 TestUtils.InvokeCounter startRttCounter = in testLocalRttUpgradeRejected()
122 startRttCounter.waitForCount(1, TestUtils.WAIT_FOR_STATE_CHANGE_TIMEOUT_MS); in testLocalRttUpgradeRejected()
125 TestUtils.waitOnAllHandlers(getInstrumentation()); in testLocalRttUpgradeRejected()
126 mOnRttInitiationFailedCounter.waitForCount(1, TestUtils.WAIT_FOR_STATE_CHANGE_TIMEOUT_MS); in testLocalRttUpgradeRejected()
143 TestUtils.InvokeCounter rttRequestResponseCounter = in testAcceptRemoteRttUpgrade()
[all …]
DSimCallManagerTest.java19 import static android.telecom.cts.TestUtils.ACCOUNT_ID_1;
20 import static android.telecom.cts.TestUtils.ACCOUNT_LABEL;
21 import static android.telecom.cts.TestUtils.COMPONENT;
22 import static android.telecom.cts.TestUtils.PACKAGE;
65 if (!TestUtils.shouldTestTelecom(mContext)) { in setUp()
68 mPreviousDefaultDialer = TestUtils.getDefaultDialer(getInstrumentation()); in setUp()
71 mSystemDialer = TestUtils.getSystemDialer(getInstrumentation()); in setUp()
73 TestUtils.setDefaultDialer(getInstrumentation(), mSystemDialer); in setUp()
83 TestUtils.setDefaultDialer(getInstrumentation(), mPreviousDefaultDialer); in tearDown()
89 if (!TestUtils.shouldTestTelecom(mContext)) { in testGetSimCallManager()
[all …]
DHandoverTest.java19 import static android.telecom.cts.TestUtils.TEST_HANDOVER_DEST_PHONE_ACCOUNT_HANDLE;
20 import static android.telecom.cts.TestUtils.TEST_HANDOVER_SRC_PHONE_ACCOUNT_HANDLE;
21 import static android.telecom.cts.TestUtils.WAIT_FOR_STATE_CHANGE_TIMEOUT_MS;
43 mTelecomManager.registerPhoneAccount(TestUtils.TEST_PHONE_ACCOUNT_HANDOVER_SRC); in setUp()
44 TestUtils.enablePhoneAccount(getInstrumentation(), in setUp()
45 TestUtils.TEST_HANDOVER_SRC_PHONE_ACCOUNT_HANDLE); in setUp()
46 assertPhoneAccountEnabled(TestUtils.TEST_HANDOVER_SRC_PHONE_ACCOUNT_HANDLE); in setUp()
49 mTelecomManager.registerPhoneAccount(TestUtils.TEST_PHONE_ACCOUNT_HANDOVER_DEST); in setUp()
61 TestUtils.TEST_HANDOVER_SRC_PHONE_ACCOUNT_HANDLE); in tearDown()
63 TestUtils.TEST_HANDOVER_DEST_PHONE_ACCOUNT_HANDLE); in tearDown()
[all …]
DPhoneAccountSuggestionServiceTest.java18 import static android.telecom.cts.TestUtils.TEST_PHONE_ACCOUNT_HANDLE;
19 import static android.telecom.cts.TestUtils.shouldTestTelecom;
45 TestUtils.setCtsPhoneAccountSuggestionService(getInstrumentation(), in setUp()
47 mTelecomManager.registerPhoneAccount(TestUtils.TEST_PHONE_ACCOUNT); in setUp()
48 mTelecomManager.registerPhoneAccount(TestUtils.TEST_PHONE_ACCOUNT_2); in setUp()
52 TestUtils.enablePhoneAccount(getInstrumentation(), TestUtils.TEST_PHONE_ACCOUNT_HANDLE); in setUp()
53 TestUtils.enablePhoneAccount( in setUp()
54 getInstrumentation(), TestUtils.TEST_PHONE_ACCOUNT_HANDLE_2); in setUp()
65 TestUtils.setCtsPhoneAccountSuggestionService(getInstrumentation(), null); in tearDown()
66 mTelecomManager.unregisterPhoneAccount(TestUtils.TEST_PHONE_ACCOUNT_HANDLE); in tearDown()
[all …]
DBaseTelecomTestWithMockServices.java19 import static android.telecom.cts.TestUtils.PACKAGE;
20 import static android.telecom.cts.TestUtils.TAG;
21 import static android.telecom.cts.TestUtils.WAIT_FOR_STATE_CHANGE_TIMEOUT_MS;
80 TestUtils.InvokeCounter mOnBringToForegroundCounter;
81 TestUtils.InvokeCounter mOnCallAudioStateChangedCounter;
82 TestUtils.InvokeCounter mOnPostDialWaitCounter;
83 TestUtils.InvokeCounter mOnCannedTextResponsesLoadedCounter;
84 TestUtils.InvokeCounter mOnSilenceRingerCounter;
85 TestUtils.InvokeCounter mOnConnectionEventCounter;
86 TestUtils.InvokeCounter mOnExtrasChangedCounter;
[all …]
DCallScreeningServiceTest.java19 import static android.telecom.cts.TestUtils.shouldTestTelecom;
45 new ComponentName(TestUtils.PACKAGE, TestUtils.COMPONENT),
46 TestUtils.ACCOUNT_ID_1);
49 TEST_PHONE_ACCOUNT_HANDLE, TestUtils.ACCOUNT_LABEL)
68 mPreviousDefaultDialer = TestUtils.getDefaultDialer(getInstrumentation()); in setUp()
69 TestUtils.setDefaultDialer(getInstrumentation(), TestUtils.PACKAGE); in setUp()
78 TestUtils.setDefaultDialer(getInstrumentation(), mPreviousDefaultDialer); in tearDown()
101 if (callbacks.lock.tryAcquire(TestUtils.WAIT_FOR_CALL_ADDED_TIMEOUT_S, in testTelephonyCall_bindsToCallScreeningService()
142 TestUtils.enablePhoneAccount(getInstrumentation(), TEST_PHONE_ACCOUNT_HANDLE);
161 TestUtils.WAIT_FOR_STATE_CHANGE_TIMEOUT_MS,
DBasicInCallServiceTest.java19 import static android.telecom.cts.TestUtils.shouldTestTelecom;
47 mPreviousDefaultDialer = TestUtils.getDefaultDialer(getInstrumentation()); in setUp()
48 TestUtils.setDefaultDialer(getInstrumentation(), TestUtils.PACKAGE); in setUp()
54 TestUtils.setDefaultDialer(getInstrumentation(), mPreviousDefaultDialer); in tearDown()
80 if (callbacks.lock.tryAcquire(TestUtils.WAIT_FOR_CALL_ADDED_TIMEOUT_S, in testTelephonyCall_bindsToInCallServiceAndAddsCall()
DTelecomManagerTest.java20 import static android.telecom.cts.TestUtils.shouldTestTelecom;
29 if (!TestUtils.shouldTestTelecom(mContext)) { in testGetCurrentTtyMode()
37 int currentTtyMode = queue.poll(TestUtils.WAIT_FOR_STATE_CHANGE_TIMEOUT_MS, in testGetCurrentTtyMode()
50 if (!TestUtils.shouldTestTelecom(mContext)) { in testIsInEmergencyCall()
58 boolean isInEmergencyCall = queue.poll(TestUtils.WAIT_FOR_STATE_CHANGE_TIMEOUT_MS, in testIsInEmergencyCall()
DPhoneAccountOperationsTest.java19 import static android.telecom.cts.TestUtils.*;
46 private TestUtils.InvokeCounter mPhoneAccountRegisteredLatch;
47 private TestUtils.InvokeCounter mPhoneAccountUnRegisteredLatch;
111 if (!TestUtils.shouldTestTelecom(mContext)) { in setUp()
115 mPhoneAccountRegisteredLatch = new TestUtils.InvokeCounter("registerPhoneAcct"); in setUp()
116 mPhoneAccountUnRegisteredLatch = new TestUtils.InvokeCounter("unRegisterPhoneAcct"); in setUp()
121 if (!TestUtils.shouldTestTelecom(mContext)) { in tearDown()
200 TestUtils.enablePhoneAccount(getInstrumentation(), TEST_PHONE_ACCOUNT_HANDLE); in testRegisterPhoneAccount_ListEnabledAccounts()
263 String previousDefaultDialer = TestUtils.getDefaultDialer(getInstrumentation()); in testRegisterUnregisterPhoneAccountIntent()
265 TestUtils.setDefaultDialer(getInstrumentation(), TestUtils.PACKAGE); in testRegisterUnregisterPhoneAccountIntent()
[all …]
/cts/tests/tests/telecom2/src/android/telecom/cts/
DDefaultDialerOperationsNoPermissionsTest.java37 if (!TestUtils.shouldTestTelecom(mContext)) { in setUp()
40 TestUtils.PACKAGE = mContext.getPackageName(); in setUp()
41 mPreviousDefaultDialer = TestUtils.getDefaultDialer(getInstrumentation()); in setUp()
44 mSystemDialer = TestUtils.getSystemDialer(getInstrumentation()); in setUp()
46 TestUtils.setDefaultDialer(getInstrumentation(), mSystemDialer); in setUp()
56 TestUtils.setDefaultDialer(getInstrumentation(), mPreviousDefaultDialer); in tearDown()
62 if (!TestUtils.shouldTestTelecom(mContext)) { in testShowInCallScreenPermissions()
74 if (!TestUtils.shouldTestTelecom(mContext)) { in testGetCallCapableAccountsPermissions()
86 if (!TestUtils.shouldTestTelecom(mContext)) { in testGetDefaultOutgoingPhoneAccount()
98 if (!TestUtils.shouldTestTelecom(mContext)) { in testGetLine1Number()
[all …]
/cts/tests/tests/networksecurityconfig/networksecurityconfig-cleartext/src/android/security/net/config/cts/
DCleartextPermittedTest.java25 TestUtils.assertCleartextConnectionFails("example.com", 80); in testDefaultDenied()
26 TestUtils.assertTlsConnectionSucceeds("example.com", 443); in testDefaultDenied()
30 TestUtils.assertCleartextConnectionSucceeds("android.com", 80); in testCleartextAllowed()
31 TestUtils.assertTlsConnectionSucceeds("android.com", 443); in testCleartextAllowed()
33 TestUtils.assertCleartextConnectionSucceeds("www.android.com", 80); in testCleartextAllowed()
34 TestUtils.assertTlsConnectionSucceeds("www.android.com", 443); in testCleartextAllowed()
39 TestUtils.assertCleartextConnectionFails("developer.android.com", 80); in testNestedCleartextDenied()
40 TestUtils.assertTlsConnectionSucceeds("developer.android.com", 443); in testNestedCleartextDenied()
/cts/tests/tests/networksecurityconfig/networksecurityconfig-cleartext-pre-P/src/android/security/net/config/cts/
DCleartextPermittedTest.java25 TestUtils.assertCleartextConnectionSucceeds("example.com", 80); in testDefaultAllowed()
26 TestUtils.assertTlsConnectionSucceeds("example.com", 443); in testDefaultAllowed()
30 TestUtils.assertCleartextConnectionFails("android.com", 80); in testCleartextBlocked()
31 TestUtils.assertTlsConnectionSucceeds("android.com", 443); in testCleartextBlocked()
33 TestUtils.assertCleartextConnectionFails("www.android.com", 80); in testCleartextBlocked()
34 TestUtils.assertTlsConnectionSucceeds("www.android.com", 443); in testCleartextBlocked()
39 TestUtils.assertCleartextConnectionSucceeds("developer.android.com", 80); in testNestedCleartextPermitted()
40 TestUtils.assertTlsConnectionSucceeds("developer.android.com", 443); in testNestedCleartextPermitted()
/cts/tests/tests/telecom3/src/android/telecom/cts/
DSelfManagedAwareInCallServiceTest.java30 import static android.telecom.cts.TestUtils.SELF_MANAGED_ACCOUNT_ID_1;
31 import static android.telecom.cts.TestUtils.SELF_MANAGED_ACCOUNT_LABEL;
32 import static android.telecom.cts.TestUtils.SELF_MANAGED_COMPONENT;
71 mShouldTestTelecom = TestUtils.shouldTestTelecom(context); in setUp()
73 mPreviousDefaultDialer = TestUtils.getDefaultDialer(getInstrumentation()); in setUp()
74 TestUtils.setDefaultDialer(getInstrumentation(), PACKAGE); in setUp()
78 TestUtils.waitOnAllHandlers(getInstrumentation()); in setUp()
89 TestUtils.setDefaultDialer(getInstrumentation(), mPreviousDefaultDialer); in tearDown()
119 TestUtils.placeOutgoingCall(getInstrumentation(), mTelecomManager, TEST_SELF_MANAGED_HANDLE, in testInCallServiceOutgoing()
122 SelfManagedConnection connection = TestUtils.waitForAndGetConnection(TEST_ADDRESS_1); in testInCallServiceOutgoing()
[all …]
/cts/tests/tests/networksecurityconfig/networksecurityconfig-basic-domain/src/android/security/net/config/cts/
DDomainConfigTest.java25 TestUtils.assertTlsConnectionSucceeds("android.com", 443); in testDomainConfig()
30 TestUtils.assertTlsConnectionFails("developer.android.com", 443); in testDefaultConfig()
31 TestUtils.assertTlsConnectionFails("example.com", 443); in testDefaultConfig()
35 X509TrustManager x509tm = TestUtils.getDefaultTrustManager(); in testHostnameAwareCheckServerTrustedRequired()

1234567