/cts/tests/tests/keystore/src/android/keystore/cts/ |
D | DESedeCipherTestBase.java | 42 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 …]
|
D | KeyGeneratorTest.java | 51 private static final String EXPECTED_PROVIDER_NAME = TestUtils.EXPECTED_PROVIDER_NAME; 68 if (TestUtils.supports3DES()) { 100 Arrays.asList(TestUtils.toLowerCase(EXPECTED_ALGORITHMS))); in testAlgorithmList() 108 TestUtils.assertContentsInAnyOrder(actualAlgsLowerCase, in testAlgorithmList() 192 if (TestUtils.hasStrongBox(getContext())) { in testInitWithAlgParamsAndNullSecureRandom() 233 if (TestUtils.hasStrongBox(getContext())) { in testDefaultKeySize() 246 assertEquals(expectedSizeBits, TestUtils.getKeyInfo(key).getKeySize()); in testDefaultKeySize() 255 if (TestUtils.hasStrongBox(getContext())) { in testAesKeySupportedSizes() 269 spec = TestUtils.buildUpon( in testAesKeySupportedSizesHelper() 273 spec = TestUtils.buildUpon( in testAesKeySupportedSizesHelper() [all …]
|
D | RSASignatureTest.java | 47 String keyAlgorithm = TestUtils.getSignatureAlgorithmKeyAlgorithm(algorithm); 113 String digest = TestUtils.getSignatureAlgorithmDigest(algorithm); in testSmallKeyRejected() 119 int digestOutputSizeBits = TestUtils.getDigestOutputSizeBits(digest); in testSmallKeyRejected() 125 KeyPair keyPair = TestUtils.importIntoAndroidKeyStore("test1", in testSmallKeyRejected() 129 TestUtils.getMinimalWorkingImportParametersForSigningingWith(algorithm)) in testSmallKeyRejected() 154 TestUtils.getMinimalWorkingImportParametersForSigningingWith(signatureAlgorithm); in importKatKeyPairs() 161 TestUtils.importIntoAndroidKeyStore("testRSA512", context, in importKatKeyPairs() 163 TestUtils.importIntoAndroidKeyStore("testRSA768", context, in importKatKeyPairs() 165 TestUtils.importIntoAndroidKeyStore("testRSA1024", context, in importKatKeyPairs() 167 TestUtils.importIntoAndroidKeyStore("testRSA2048", context, in importKatKeyPairs() [all …]
|
/cts/tests/tests/telecom/src/android/telecom/cts/ |
D | SelfManagedConnectionServiceTest.java | 39 import static android.telecom.cts.TestUtils.TEST_SELF_MANAGED_HANDLE_1; 40 import static android.telecom.cts.TestUtils.TEST_SELF_MANAGED_HANDLE_4; 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() 71 mTelecomManager.registerPhoneAccount(TestUtils.TEST_SELF_MANAGED_PHONE_ACCOUNT_4); in setUp() 83 mTelecomManager.unregisterPhoneAccount(TestUtils.TEST_SELF_MANAGED_HANDLE_1); in tearDown() [all …]
|
D | DefaultDialerOperationsTest.java | 62 if (!TestUtils.shouldTestTelecom(mContext)) { in setUp() 65 mPreviousDefaultDialer = TestUtils.getDefaultDialer(getInstrumentation()); in setUp() 68 mSystemDialer = TestUtils.getSystemDialer(getInstrumentation()); in setUp() 70 TestUtils.setDefaultDialer(getInstrumentation(), mSystemDialer); in setUp() 85 TestUtils.setDefaultDialer(getInstrumentation(), mPreviousDefaultDialer); in tearDown() 91 if (!TestUtils.shouldTestTelecom(mContext)) { in testGetDefaultDialerPackage() 95 TestUtils.setDefaultDialer(getInstrumentation(), TestUtils.PACKAGE); in testGetDefaultDialerPackage() 96 assertEquals(TestUtils.PACKAGE, mTelecomManager.getDefaultDialerPackage()); in testGetDefaultDialerPackage() 104 if (!TestUtils.shouldTestTelecom(mContext)) { in testActionDialHandling() 115 if (!TestUtils.shouldTestTelecom(mContext)) { in testDialerUI() [all …]
|
D | DefaultPhoneAccountTest.java | 55 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 …]
|
D | OutgoingCallTest.java | 64 TestUtils.clearSystemDialerOverride(getInstrumentation()); in tearDown() 65 TestUtils.removeTestEmergencyNumber(getInstrumentation(), TEST_EMERGENCY_NUMBER); in tearDown() 130 TestUtils.setSystemDialerOverride(getInstrumentation()); in testPhoneStateListenerInvokedOnOutgoingEmergencyCall() 131 TestUtils.setTestEmergencyPhoneAccountPackageFilter(getInstrumentation(), mContext); in testPhoneStateListenerInvokedOnOutgoingEmergencyCall() 132 TestUtils.addTestEmergencyNumber(getInstrumentation(), TEST_EMERGENCY_NUMBER); in testPhoneStateListenerInvokedOnOutgoingEmergencyCall() 137 TestUtils.WAIT_FOR_STATE_CHANGE_TIMEOUT_MS); in testPhoneStateListenerInvokedOnOutgoingEmergencyCall() 150 TestUtils.TEST_PHONE_ACCOUNT_HANDLE); in testPhoneStateListenerInvokedOnOutgoingEmergencyCall() 155 TestUtils.removeTestEmergencyNumber(getInstrumentation(), TEST_EMERGENCY_NUMBER); in testPhoneStateListenerInvokedOnOutgoingEmergencyCall() 156 TestUtils.clearTestEmergencyPhoneAccountPackageFilter(getInstrumentation()); in testPhoneStateListenerInvokedOnOutgoingEmergencyCall() 200 count.await(TestUtils.WAIT_FOR_PHONE_STATE_LISTENER_REGISTERED_TIMEOUT_S, in testPhoneStateChangeAsExpected() [all …]
|
D | RttOperationsTest.java | 66 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 …]
|
D | HandoverTest.java | 19 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; 44 mTelecomManager.registerPhoneAccount(TestUtils.TEST_PHONE_ACCOUNT_HANDOVER_SRC); in setUp() 45 TestUtils.enablePhoneAccount(getInstrumentation(), in setUp() 46 TestUtils.TEST_HANDOVER_SRC_PHONE_ACCOUNT_HANDLE); in setUp() 47 assertPhoneAccountEnabled(TestUtils.TEST_HANDOVER_SRC_PHONE_ACCOUNT_HANDLE); in setUp() 50 mTelecomManager.registerPhoneAccount(TestUtils.TEST_PHONE_ACCOUNT_HANDOVER_DEST); in setUp() 62 TestUtils.TEST_HANDOVER_SRC_PHONE_ACCOUNT_HANDLE); in tearDown() 64 TestUtils.TEST_HANDOVER_DEST_PHONE_ACCOUNT_HANDLE); in tearDown() [all …]
|
D | PhoneAccountSuggestionServiceTest.java | 18 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 …]
|
D | CallScreeningServiceTest.java | 19 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 …]
|
D | CallDiagnosticServiceTest.java | 19 import static android.telecom.cts.TestUtils.WAIT_FOR_STATE_CHANGE_TIMEOUT_MS; 20 import static android.telecom.cts.TestUtils.shouldTestTelecom; 58 mTelecomManager.registerPhoneAccount(TestUtils.TEST_SIM_PHONE_ACCOUNT); in setUp() 60 TestUtils.enablePhoneAccount( in setUp() 61 getInstrumentation(), TestUtils.TEST_SIM_PHONE_ACCOUNT_HANDLE); in setUp() 62 TestUtils.setCallDiagnosticService(getInstrumentation(), TestUtils.PACKAGE); in setUp() 71 TestUtils.setCallDiagnosticService(getInstrumentation(), "default"); in tearDown() 106 }, TestUtils.WAIT_FOR_STATE_CHANGE_TIMEOUT_MS, "Extras propagation"); in testAddCallAndPassValues() 121 TestUtils.TEST_SIM_PHONE_ACCOUNT_HANDLE); in testAddMultipleCalls() 128 assertEquals(TestUtils.TEST_SIM_PHONE_ACCOUNT_HANDLE, connection.getPhoneAccountHandle()); in testAddMultipleCalls() [all …]
|
D | BaseTelecomTestWithMockServices.java | 19 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; 107 TestUtils.InvokeCounter mOnBringToForegroundCounter; 108 TestUtils.InvokeCounter mOnCallAudioStateChangedCounter; 109 TestUtils.InvokeCounter mOnPostDialWaitCounter; 110 TestUtils.InvokeCounter mOnCannedTextResponsesLoadedCounter; 111 TestUtils.InvokeCounter mOnSilenceRingerCounter; 112 TestUtils.InvokeCounter mOnConnectionEventCounter; 113 TestUtils.InvokeCounter mOnExtrasChangedCounter; [all …]
|
/cts/tests/tests/telecom2/src/android/telecom/cts/ |
D | TelecomManagerNoPermissionsTest.java | 36 if (!TestUtils.shouldTestTelecom(mContext)) { in setUp() 39 TestUtils.PACKAGE = mContext.getPackageName(); in setUp() 49 if (!TestUtils.shouldTestTelecom(mContext)) { in testCannotEndCall() 60 if (!TestUtils.shouldTestTelecom(mContext)) { in testCallStateCompatPermissions() 68 TestUtils.enableCompatCommand(getInstrumentation(), in testCallStateCompatPermissions() 69 TestUtils.ENABLE_GET_CALL_STATE_PERMISSION_PROTECTION_STRING); in testCallStateCompatPermissions() 79 TestUtils.resetCompatCommand(getInstrumentation(), in testCallStateCompatPermissions() 80 TestUtils.ENABLE_GET_CALL_STATE_PERMISSION_PROTECTION_STRING); in testCallStateCompatPermissions() 85 if (!TestUtils.shouldTestTelecom(mContext)) { in testGetPhoneAccountCompatPermissions() 90 TestUtils.enableCompatCommand(getInstrumentation(), in testGetPhoneAccountCompatPermissions() [all …]
|
D | DefaultDialerOperationsNoPermissionsTest.java | 37 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-pre-P/src/android/security/net/config/cts/ |
D | CleartextPermittedTest.java | 25 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/networksecurityconfig/networksecurityconfig-cleartext/src/android/security/net/config/cts/ |
D | CleartextPermittedTest.java | 25 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/content/HelloWorldApp/src_res_hardening/com/example/helloworld/ |
D | TestActivity.java | 27 import com.example.helloworld.lib.TestUtils; 43 final Intent pidResponse = new Intent(TestUtils.TEST_STATUS_ACTION); in onCreate() 44 pidResponse.putExtra(TestUtils.PID_STATUS_PID_KEY, Process.myPid()); in onCreate() 54 final String testName = intent.getStringExtra(TestUtils.TEST_NAME_EXTRA_KEY); in runTest() 56 TestUtils.TEST_ASSERT_SUCCESS_EXTRA_KEY, true); in runTest() 58 final Method testMethod = TestUtils.class.getMethod(testName, Resources.class, in runTest() 59 TestUtils.AssertionType.class); in runTest() 61 assertionType ? TestUtils.AssertionType.ASSERT_SUCCESS in runTest() 62 : TestUtils.AssertionType.ASSERT_READ_FAILURE); in runTest() 65 final Intent failureMessage = new Intent(TestUtils.TEST_STATUS_ACTION); in runTest() [all …]
|
/cts/hostsidetests/scopedstorage/device/src/android/scopedstorage/cts/device/ |
D | ScopedStorageBaseDeviceTest.java | 19 import static android.scopedstorage.cts.lib.TestUtils.getExternalFilesDir; 20 import static android.scopedstorage.cts.lib.TestUtils.pollForExternalStorageState; 21 import static android.scopedstorage.cts.lib.TestUtils.resetDefaultExternalStorageVolume; 22 import static android.scopedstorage.cts.lib.TestUtils.setExternalStorageVolume; 23 import static android.scopedstorage.cts.lib.TestUtils.setupDefaultDirectories; 31 import android.scopedstorage.cts.lib.TestUtils; 48 TestUtils.preparePublicVolume(); in createPublicVolume() 50 .that(TestUtils.getCurrentPublicVolumeName()) in createPublicVolume() 64 TestUtils.assertDefaultVolumeIsPrimary(); in setupExternalStorage() 66 final String publicVolumeName = TestUtils.getCurrentPublicVolumeName(); in setupExternalStorage() [all …]
|
D | BypassDatabaseOperationsTest.java | 20 import static android.scopedstorage.cts.lib.TestUtils.allowAppOpsToUid; 21 import static android.scopedstorage.cts.lib.TestUtils.createFileAs; 22 import static android.scopedstorage.cts.lib.TestUtils.deleteFileAs; 23 import static android.scopedstorage.cts.lib.TestUtils.deleteFileAsNoThrow; 24 import static android.scopedstorage.cts.lib.TestUtils.denyAppOpsToUid; 25 import static android.scopedstorage.cts.lib.TestUtils.getContentResolver; 26 import static android.scopedstorage.cts.lib.TestUtils.getDcimDir; 27 import static android.scopedstorage.cts.lib.TestUtils.getPicturesDir; 28 import static android.scopedstorage.cts.lib.TestUtils.installApp; 29 import static android.scopedstorage.cts.lib.TestUtils.installAppWithStoragePermissions; [all …]
|
/cts/tests/tests/content/src/android/content/pm/cts/ |
D | ResourcesHardeningTest.java | 46 import com.example.helloworld.lib.TestUtils; 100 info = restrictOnlyMiddleBlock(restrictZipEntry(zip, TestUtils.RES_XML_PATH)); in onBefore() 107 restrictZipEntry(zip, TestUtils.RES_DRAWABLE_MDPI_PATH)); in onBefore() 112 info = restrictZipEntry(zip, TestUtils.RES_DRAWABLE_HDPI_PATH); in onBefore() 124 testIncrementalForeignPackageResources(TestUtils::checkGetIdentifier); in checkGetIdentifier() 129 testIncrementalForeignPackageResources(TestUtils::checkGetResourceName); in checkGetResourceName() 134 testIncrementalForeignPackageResources(TestUtils::checkGetString); in checkGetString() 139 testIncrementalForeignPackageResources(TestUtils::checkGetStringArray); in checkGetStringArray() 144 testIncrementalForeignPackageResources(TestUtils::checkOpenXmlResourceParser); in checkOpenXmlResourceParser() 149 testIncrementalForeignPackageResources(TestUtils::checkApplyStyle); in checkApplyStyle() [all …]
|
/cts/hostsidetests/scopedstorage/legacy/src/android/scopedstorage/cts/legacy/ |
D | LegacyStorageTest.java | 19 import static android.scopedstorage.cts.lib.TestUtils.BYTES_DATA1; 20 import static android.scopedstorage.cts.lib.TestUtils.BYTES_DATA2; 21 import static android.scopedstorage.cts.lib.TestUtils.STR_DATA1; 22 import static android.scopedstorage.cts.lib.TestUtils.STR_DATA2; 23 import static android.scopedstorage.cts.lib.TestUtils.allowAppOpsToUid; 24 import static android.scopedstorage.cts.lib.TestUtils.assertCanRenameDirectory; 25 import static android.scopedstorage.cts.lib.TestUtils.assertCanRenameFile; 26 import static android.scopedstorage.cts.lib.TestUtils.assertCantRenameFile; 27 import static android.scopedstorage.cts.lib.TestUtils.assertDirectoryContains; 28 import static android.scopedstorage.cts.lib.TestUtils.assertFileContent; [all …]
|
/cts/tests/tests/telecom3/src/android/telecom/cts/ |
D | SelfManagedAwareInCallServiceTest.java | 31 import static android.telecom.cts.TestUtils.SELF_MANAGED_ACCOUNT_ID_1; 32 import static android.telecom.cts.TestUtils.SELF_MANAGED_ACCOUNT_LABEL; 33 import static android.telecom.cts.TestUtils.SELF_MANAGED_COMPONENT; 80 mShouldTestTelecom = TestUtils.shouldTestTelecom(context); in setUp() 82 mPreviousDefaultDialer = TestUtils.getDefaultDialer(getInstrumentation()); in setUp() 83 TestUtils.setDefaultDialer(getInstrumentation(), PACKAGE); in setUp() 87 TestUtils.waitOnAllHandlers(getInstrumentation()); in setUp() 98 TestUtils.setDefaultDialer(getInstrumentation(), mPreviousDefaultDialer); in tearDown() 128 TestUtils.placeOutgoingCall(getInstrumentation(), mTelecomManager, TEST_SELF_MANAGED_HANDLE, in testInCallServiceOutgoing() 131 SelfManagedConnection connection = TestUtils.waitForAndGetConnection(TEST_ADDRESS_1); in testInCallServiceOutgoing() [all …]
|
/cts/hostsidetests/scopedstorage/ScopedStorageTestHelper/src/android/scopedstorage/cts/ |
D | ScopedStorageTestHelper.java | 20 import static android.scopedstorage.cts.lib.TestUtils.CAN_OPEN_FILE_FOR_READ_QUERY; 21 import static android.scopedstorage.cts.lib.TestUtils.CAN_OPEN_FILE_FOR_WRITE_QUERY; 22 import static android.scopedstorage.cts.lib.TestUtils.CAN_READ_WRITE_QUERY; 23 import static android.scopedstorage.cts.lib.TestUtils.CHECK_DATABASE_ROW_EXISTS_QUERY; 24 import static android.scopedstorage.cts.lib.TestUtils.CREATE_FILE_QUERY; 25 import static android.scopedstorage.cts.lib.TestUtils.CREATE_IMAGE_ENTRY_QUERY; 26 import static android.scopedstorage.cts.lib.TestUtils.DELETE_FILE_QUERY; 27 import static android.scopedstorage.cts.lib.TestUtils.INTENT_EXCEPTION; 28 import static android.scopedstorage.cts.lib.TestUtils.INTENT_EXTRA_CALLING_PKG; 29 import static android.scopedstorage.cts.lib.TestUtils.INTENT_EXTRA_PATH; [all …]
|
/cts/tests/tests/networksecurityconfig/networksecurityconfig-basic-domain/src/android/security/net/config/cts/ |
D | DomainConfigTest.java | 25 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()
|