Home
last modified time | relevance | path

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

1234567

/cts/tests/tests/telecom/src/android/telecom/cts/
DSelfManagedConnectionServiceTest.java40 import static android.telecom.cts.TestUtils.TEST_SELF_MANAGED_HANDLE_1;
41 import static android.telecom.cts.TestUtils.WAIT_FOR_STATE_CHANGE_TIMEOUT_MS;
42 import static android.telecom.cts.TestUtils.waitOnAllHandlers;
56 private Uri TEST_ADDRESS_4 = Uri.fromParts(TestUtils.TEST_URI_SCHEME, "fizzle_schmozle", null);
68 mTelecomManager.registerPhoneAccount(TestUtils.TEST_SELF_MANAGED_PHONE_ACCOUNT_1); in setUp()
69 mTelecomManager.registerPhoneAccount(TestUtils.TEST_SELF_MANAGED_PHONE_ACCOUNT_2); in setUp()
70 mTelecomManager.registerPhoneAccount(TestUtils.TEST_SELF_MANAGED_PHONE_ACCOUNT_3); in setUp()
82 mTelecomManager.unregisterPhoneAccount(TestUtils.TEST_SELF_MANAGED_HANDLE_1); in tearDown()
83 mTelecomManager.unregisterPhoneAccount(TestUtils.TEST_SELF_MANAGED_HANDLE_2); in tearDown()
84 mTelecomManager.unregisterPhoneAccount(TestUtils.TEST_SELF_MANAGED_HANDLE_3); in tearDown()
[all …]
DDefaultDialerOperationsTest.java63 if (!TestUtils.shouldTestTelecom(mContext)) { in setUp()
66 mPreviousDefaultDialer = TestUtils.getDefaultDialer(getInstrumentation()); in setUp()
69 mSystemDialer = TestUtils.getSystemDialer(getInstrumentation()); in setUp()
71 TestUtils.setDefaultDialer(getInstrumentation(), mSystemDialer); in setUp()
86 TestUtils.setDefaultDialer(getInstrumentation(), mPreviousDefaultDialer); in tearDown()
92 if (!TestUtils.shouldTestTelecom(mContext)) { in testGetDefaultDialerPackage()
96 TestUtils.setDefaultDialer(getInstrumentation(), TestUtils.PACKAGE); in testGetDefaultDialerPackage()
97 assertEquals(TestUtils.PACKAGE, mTelecomManager.getDefaultDialerPackage()); in testGetDefaultDialerPackage()
105 if (!TestUtils.shouldTestTelecom(mContext)) { in testActionDialHandling()
116 if (!TestUtils.shouldTestTelecom(mContext)) { in testDialerUI()
[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 …]
DOutgoingCallTest.java59 TestUtils.clearSystemDialerOverride(getInstrumentation()); in tearDown()
60 TestUtils.removeTestEmergencyNumber(getInstrumentation(), TEST_EMERGENCY_NUMBER); in tearDown()
125 TestUtils.setSystemDialerOverride(getInstrumentation()); in testPhoneStateListenerInvokedOnOutgoingEmergencyCall()
126 TestUtils.addTestEmergencyNumber(getInstrumentation(), TEST_EMERGENCY_NUMBER); in testPhoneStateListenerInvokedOnOutgoingEmergencyCall()
163 count.await(TestUtils.WAIT_FOR_PHONE_STATE_LISTENER_REGISTERED_TIMEOUT_S, in testPhoneStateChangeAsExpected()
182 TestUtils.TEST_PHONE_ACCOUNT_HANDLE); in testExtraPhoneAccountHandleAvailable()
184 TestUtils.TEST_PHONE_ACCOUNT_HANDLE_2); in testExtraPhoneAccountHandleAvailable()
186 mTelecomManager.registerPhoneAccount(TestUtils.TEST_PHONE_ACCOUNT); in testExtraPhoneAccountHandleAvailable()
187 TestUtils.enablePhoneAccount( in testExtraPhoneAccountHandleAvailable()
188 getInstrumentation(), TestUtils.TEST_PHONE_ACCOUNT_HANDLE); in testExtraPhoneAccountHandleAvailable()
[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;
66 if (!TestUtils.shouldTestTelecom(mContext)) { in setUp()
69 mPreviousDefaultDialer = TestUtils.getDefaultDialer(getInstrumentation()); in setUp()
72 mSystemDialer = TestUtils.getSystemDialer(getInstrumentation()); in setUp()
74 TestUtils.setDefaultDialer(getInstrumentation(), mSystemDialer); in setUp()
84 TestUtils.setDefaultDialer(getInstrumentation(), mPreviousDefaultDialer); in tearDown()
90 if (!TestUtils.shouldTestTelecom(mContext)) { in testGetSimCallManager()
[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 …]
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 …]
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;
90 TestUtils.InvokeCounter mOnBringToForegroundCounter;
91 TestUtils.InvokeCounter mOnCallAudioStateChangedCounter;
92 TestUtils.InvokeCounter mOnPostDialWaitCounter;
93 TestUtils.InvokeCounter mOnCannedTextResponsesLoadedCounter;
94 TestUtils.InvokeCounter mOnSilenceRingerCounter;
95 TestUtils.InvokeCounter mOnConnectionEventCounter;
96 TestUtils.InvokeCounter mOnExtrasChangedCounter;
[all …]
DCallScreeningServiceTest.java19 import static android.telecom.cts.TestUtils.shouldTestTelecom;
46 new ComponentName(TestUtils.PACKAGE, TestUtils.COMPONENT),
47 TestUtils.ACCOUNT_ID_1);
50 TEST_PHONE_ACCOUNT_HANDLE, TestUtils.ACCOUNT_LABEL)
71 mPreviousDefaultDialer = TestUtils.getDefaultDialer(getInstrumentation()); in setUp()
72 TestUtils.setDefaultDialer(getInstrumentation(), TestUtils.PACKAGE); in setUp()
82 TestUtils.setDefaultDialer(getInstrumentation(), mPreviousDefaultDialer); in tearDown()
105 if (callbacks.lock.tryAcquire(TestUtils.WAIT_FOR_CALL_ADDED_TIMEOUT_S, in testTelephonyCall_bindsToCallScreeningService()
128 Uri contactUri = TestUtils.insertContact(mContentResolver, in testBindsToCallScreeningServiceWhenContactExist()
133 if (callbacks.lock.tryAcquire(TestUtils.WAIT_FOR_CALL_ADDED_TIMEOUT_S, in testBindsToCallScreeningServiceWhenContactExist()
[all …]
DExternalCallTest.java26 import static android.telecom.cts.TestUtils.WAIT_FOR_STATE_CHANGE_TIMEOUT_MS;
78 final TestUtils.InvokeCounter counter = mExternalConnection.getInvokeCounter( in testPullExternalCall()
97 TestUtils.waitOnAllHandlers(getInstrumentation()); in testNonPullableExternalCall()
99 final TestUtils.InvokeCounter counter = mExternalConnection.getInvokeCounter( in testNonPullableExternalCall()
124 TestUtils.waitOnAllHandlers(getInstrumentation()); in testPullCallCapabilityRemovedInEmergencyCall()
146 TestUtils.waitOnAllHandlers(getInstrumentation()); in testTryToPullCallWhileInEmergencyCall()
148 final TestUtils.InvokeCounter counter = mExternalConnection.getInvokeCounter( in testTryToPullCallWhileInEmergencyCall()
160 extras.putParcelable(TestUtils.EXTRA_PHONE_NUMBER, testNumber); in placeExternalCall()
DPhoneAccountOperationsTest.java19 import static android.telecom.cts.TestUtils.*;
49 private TestUtils.InvokeCounter mPhoneAccountRegisteredLatch;
50 private TestUtils.InvokeCounter mPhoneAccountUnRegisteredLatch;
114 if (!TestUtils.shouldTestTelecom(mContext)) { in setUp()
119 TestUtils.setDefaultDialer(getInstrumentation(), ""); in setUp()
122 mPhoneAccountRegisteredLatch = new TestUtils.InvokeCounter("registerPhoneAcct"); in setUp()
123 mPhoneAccountUnRegisteredLatch = new TestUtils.InvokeCounter("unRegisterPhoneAcct"); in setUp()
128 if (!TestUtils.shouldTestTelecom(mContext)) { in tearDown()
224 TestUtils.enablePhoneAccount(getInstrumentation(), TEST_PHONE_ACCOUNT_HANDLE); in testRegisterPhoneAccount_ListEnabledAccounts()
287 String previousDefaultDialer = TestUtils.getDefaultDialer(getInstrumentation()); in testRegisterUnregisterPhoneAccountIntent()
[all …]
/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;
320 Arrays.asList(TestUtils.toLowerCase(EXPECTED_ALGORITHMS))); in testAlgorithmList()
328 TestUtils.assertContentsInAnyOrder(actualAlgsLowerCase, in testAlgorithmList()
420 int modulusLengthBytes = (TestUtils.getKeySizeBits(encryptionKey) + 7) / 8; in testEmptyPlaintextEncryptsAndDecrypts()
421 expectedPlaintext = TestUtils.leftPadWithZeroBytes( in testEmptyPlaintextEncryptsAndDecrypts()
471 int modulusLengthBytes = (TestUtils.getKeySizeBits(encryptionKey) + 7) / 8; in testEncryptsAndDecryptsInterrupted()
472 expectedPlaintext = TestUtils.leftPadWithZeroBytes( in testEncryptsAndDecryptsInterrupted()
573 … int modulusLengthBytes = (TestUtils.getKeySizeBits(encryptionKey) + 7) / 8; in testEmptyPlaintextEncryptsAndDecryptsWhenUnlockedRequired()
[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 …]
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 …]
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 …]
DKeyPairGeneratorTest.java113 private static final String EXPECTED_PROVIDER_NAME = TestUtils.EXPECTED_PROVIDER_NAME;
146 Arrays.asList(TestUtils.toLowerCase(EXPECTED_ALGORITHMS))); in testAlgorithmList()
154 TestUtils.assertContentsInAnyOrder(actualAlgsLowerCase, in testAlgorithmList()
223 TestUtils.getKeyInfo(keyPair.getPrivate()).getKeySize()); in testDefaultKeySize()
305 if (TestUtils.hasStrongBox(getContext())) { in testGenerateHonorsRequestedAuthorizations()
311 Date keyValidityStart = new Date(System.currentTimeMillis() - TestUtils.DAY_IN_MILLIS); in testGenerateHonorsRequestedAuthorizationsHelper()
313 new Date(System.currentTimeMillis() + TestUtils.DAY_IN_MILLIS); in testGenerateHonorsRequestedAuthorizationsHelper()
315 new Date(System.currentTimeMillis() + 3 * TestUtils.DAY_IN_MILLIS); in testGenerateHonorsRequestedAuthorizationsHelper()
339 KeyInfo keyInfo = TestUtils.getKeyInfo(keyPair.getPrivate()); in testGenerateHonorsRequestedAuthorizationsHelper()
341 TestUtils.assertContentsInAnyOrder( in testGenerateHonorsRequestedAuthorizationsHelper()
[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 …]
/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/bluetooth/src/android/bluetooth/cts/
DBluetoothLeScanTest.java76 if (!TestUtils.isBleSupported(getContext())) { in setUp()
86 mLocationOn = TestUtils.isLocationOn(getContext()); in setUp()
88 TestUtils.enableLocation(getContext()); in setUp()
96 if (!TestUtils.isBleSupported(getContext())) { in tearDown()
102 TestUtils.disableLocation(getContext()); in tearDown()
112 if (!TestUtils.isBleSupported(getContext())) { in testBasicBleScan()
129 if (!TestUtils.isBleSupported(getContext())) { in testScanFilter()
145 TestUtils.sleep(SCAN_DURATION_MILLIS); in testScanFilter()
147 TestUtils.sleep(SCAN_STOP_TIMEOUT); in testScanFilter()
243 if (!TestUtils.isBleSupported(getContext()) || !isBleBatchScanSupported()) { in testBatchScan()
[all …]

1234567