/cts/tests/tests/keystore/src/android/keystore/cts/ |
D | DESedeCipherTestBase.java | 3 import android.keystore.cts.util.TestUtils; 47 if (TestUtils.supports3DES()) { in testGetProvider() 55 if (TestUtils.supports3DES()) { in testGetAlgorithm() 63 if (TestUtils.supports3DES()) { in testGetBlockSize() 71 if (TestUtils.supports3DES()) { in testGetExemptionMechanism() 79 if (TestUtils.supports3DES()) { in testUpdateCopySafe() 87 if (TestUtils.supports3DES()) { in testUpdateAndDoFinalNotSupportedInWrapAndUnwrapModes() 95 if (TestUtils.supports3DES()) { in testKeyDoesNotSurviveReinitialization() 103 if (TestUtils.supports3DES()) { in testKatOneShotEncryptUsingDoFinal() 111 if (TestUtils.supports3DES()) { in testKatOneShotDecryptUsingDoFinal() [all …]
|
D | KeyGeneratorTest.java | 26 import android.keystore.cts.util.TestUtils; 67 private static final String EXPECTED_PROVIDER_NAME = TestUtils.EXPECTED_PROVIDER_NAME; 84 if (TestUtils.supports3DES()) { 121 Arrays.asList(TestUtils.toLowerCase(EXPECTED_ALGORITHMS))); in testAlgorithmList() 129 TestUtils.assertContentsInAnyOrder(actualAlgsLowerCase, in testAlgorithmList() 219 if (TestUtils.hasStrongBox(getContext())) { in testInitWithAlgParamsAndNullSecureRandom() 262 if (TestUtils.hasStrongBox(getContext())) { in testDefaultKeySize() 276 assertEquals(expectedSizeBits, TestUtils.getKeyInfo(key).getKeySize()); in testDefaultKeySize() 287 if (TestUtils.hasStrongBox(getContext())) { in testAesKeySupportedSizes() 301 spec = TestUtils.buildUpon( in testAesKeySupportedSizesHelper() [all …]
|
/cts/tests/tests/telecom/src/android/telecom/cts/ |
D | SelfManagedConnectionServiceTest.java | 21 import static android.telecom.cts.TestUtils.SELF_MANAGED_ACCOUNT_LABEL; 22 import static android.telecom.cts.TestUtils.TEST_SELF_MANAGED_HANDLE_1; 23 import static android.telecom.cts.TestUtils.WAIT_FOR_STATE_CHANGE_TIMEOUT_MS; 24 import static android.telecom.cts.TestUtils.waitOnAllHandlers; 84 private Uri TEST_ADDRESS_4 = Uri.fromParts(TestUtils.TEST_URI_SCHEME, "fizzle_schmozle", null); 98 if (mShouldTestTelecom && TestUtils.hasTelephonyFeature(mContext)) { in setUp() 105 mTelecomManager.registerPhoneAccount(TestUtils.TEST_SELF_MANAGED_PHONE_ACCOUNT_1); in setUp() 106 mTelecomManager.registerPhoneAccount(TestUtils.TEST_SELF_MANAGED_PHONE_ACCOUNT_2); in setUp() 107 mTelecomManager.registerPhoneAccount(TestUtils.TEST_SELF_MANAGED_PHONE_ACCOUNT_3); in setUp() 108 mTelecomManager.registerPhoneAccount(TestUtils.TEST_SELF_MANAGED_PHONE_ACCOUNT_4); in setUp() [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) || !TestUtils.hasTelephonyFeature(mContext)) { in testActionDialHandling() 115 if (!TestUtils.shouldTestTelecom(mContext)) { in testDialerUI() [all …]
|
D | OutgoingCallTest.java | 115 TestUtils.clearSystemDialerOverride(getInstrumentation()); in tearDown() 116 TestUtils.removeTestEmergencyNumber(getInstrumentation(), TEST_EMERGENCY_NUMBER); in tearDown() 140 extras.putParcelable(TestUtils.EXTRA_PHONE_NUMBER, mPhoneRecord); in testDoNotStartCallWithContentUri() 152 if (!mShouldTestTelecom || !TestUtils.hasTelephonyFeature(mContext)) { in testStartCallWithSpeakerphoneTrue_SpeakerphoneOnInCall() 164 if (!mShouldTestTelecom || !TestUtils.hasTelephonyFeature(mContext)) { in testStartCallWithSpeakerphoneFalse_SpeakerphoneOffInCall() 184 if (!mShouldTestTelecom || !TestUtils.hasTelephonyFeature(mContext)) { in testStartCallWithSpeakerphoneNotProvided_SpeakerphoneOffByDefault() 205 if (!mShouldTestTelecom || !TestUtils.hasTelephonyFeature(mContext)) { in testPhoneStateListenerInvokedOnOutgoingEmergencyCall() 208 TestUtils.setSystemDialerOverride(getInstrumentation()); in testPhoneStateListenerInvokedOnOutgoingEmergencyCall() 209 TestUtils.setTestEmergencyPhoneAccountPackageFilter(getInstrumentation(), mContext); in testPhoneStateListenerInvokedOnOutgoingEmergencyCall() 211 TestUtils.addTestEmergencyNumber(getInstrumentation(), TEST_EMERGENCY_NUMBER); in testPhoneStateListenerInvokedOnOutgoingEmergencyCall() [all …]
|
D | DefaultPhoneAccountTest.java | 19 import static android.telecom.cts.TestUtils.TEST_SELF_MANAGED_HANDLE_1; 20 import static android.telecom.cts.TestUtils.TEST_SELF_MANAGED_PHONE_ACCOUNT_1; 21 import static android.telecom.cts.TestUtils.TEST_SIM_PHONE_ACCOUNT; 22 import static android.telecom.cts.TestUtils.TEST_SIM_PHONE_ACCOUNT_2; 46 if (!TestUtils.hasTelephonyFeature(mContext)) { in setUp() 75 assertEquals(TestUtils.TEST_PHONE_ACCOUNT_HANDLE, handle); in testDefaultIsSet() 79 assertEquals(TestUtils.TEST_PHONE_ACCOUNT_HANDLE, defaultOutgoing); in testDefaultIsSet() 103 TestUtils.TEST_PHONE_ACCOUNT_HANDLE)); in testSetUserSelectedOutgoingPhoneAccount() 106 assertEquals(TestUtils.TEST_PHONE_ACCOUNT_HANDLE, handle); in testSetUserSelectedOutgoingPhoneAccount() 110 assertEquals(TestUtils.TEST_PHONE_ACCOUNT_HANDLE, defaultOutgoing); in testSetUserSelectedOutgoingPhoneAccount() [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; 50 if (!shouldTestTelecom(mContext) || !TestUtils.hasTelephonyFeature(mContext)) { in setUp() 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() 80 if (!shouldTestTelecom(mContext) || !TestUtils.hasTelephonyFeature(mContext)) { in testAddCallAndPassValues() 106 }, TestUtils.WAIT_FOR_STATE_CHANGE_TIMEOUT_MS, "Extras propagation"); in testAddCallAndPassValues() [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 | SimCallManagerTest.java | 19 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 …]
|
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; 48 mTelecomManager.registerPhoneAccount(TestUtils.TEST_PHONE_ACCOUNT_HANDOVER_SRC); in setUp() 49 TestUtils.enablePhoneAccount(getInstrumentation(), in setUp() 50 TestUtils.TEST_HANDOVER_SRC_PHONE_ACCOUNT_HANDLE); in setUp() 51 assertPhoneAccountEnabled(TestUtils.TEST_HANDOVER_SRC_PHONE_ACCOUNT_HANDLE); in setUp() 54 mTelecomManager.registerPhoneAccount(TestUtils.TEST_PHONE_ACCOUNT_HANDOVER_DEST); in setUp() 74 TestUtils.TEST_HANDOVER_SRC_PHONE_ACCOUNT_HANDLE); in tearDown() 76 TestUtils.TEST_HANDOVER_DEST_PHONE_ACCOUNT_HANDLE); in tearDown() [all …]
|
D | PhoneAccountRegistrarTest.java | 74 new ComponentName(TestUtils.PACKAGE, TestUtils.COMPONENT); 83 TestUtils.SELF_MANAGED_COMPONENT); 126 ArrayList<PhoneAccount> accounts = TestUtils.generateRandomPhoneAccounts(SEED, in testRegisterMaxPhoneAccountsWithoutException() 127 numberOfAccountsThatCanBeRegistered, TestUtils.PACKAGE, TestUtils.COMPONENT); in testRegisterMaxPhoneAccountsWithoutException() 154 TestUtils.generateRandomPhoneAccountHandles(SEED, in testExceptionThrownDueToInvalidSimultaneousCallRestriction_tooManyAccounts() 155 MAX_PHONE_ACCOUNT_REGISTRATIONS + 1, TestUtils.PACKAGE, TestUtils.COMPONENT); in testExceptionThrownDueToInvalidSimultaneousCallRestriction_tooManyAccounts() 156 PhoneAccountHandle acctHandle = TestUtils.makePhoneAccountHandle( in testExceptionThrownDueToInvalidSimultaneousCallRestriction_tooManyAccounts() 157 TestUtils.DEFAULT_TEST_ACCOUNT_1_ID); in testExceptionThrownDueToInvalidSimultaneousCallRestriction_tooManyAccounts() 158 PhoneAccount acct = TestUtils.buildSelfManagedPhoneAccount(acctHandle, in testExceptionThrownDueToInvalidSimultaneousCallRestriction_tooManyAccounts() 159 TestUtils.ACCOUNT_LABEL) in testExceptionThrownDueToInvalidSimultaneousCallRestriction_tooManyAccounts() [all …]
|
D | AdhocConferenceTest.java | 20 import static android.telecom.cts.TestUtils.WAIT_FOR_STATE_CHANGE_TIMEOUT_MS; 49 if (mShouldTestTelecom && TestUtils.hasTelephonyFeature(mContext)) { in setUp() 51 mTelecomManager.registerPhoneAccount(TestUtils.TEST_PHONE_ACCOUNT); in setUp() 59 if (mShouldTestTelecom && TestUtils.hasTelephonyFeature(mContext)) { in tearDown() 60 mTelecomManager.unregisterPhoneAccount(TestUtils.TEST_PHONE_ACCOUNT_HANDLE); in tearDown() 66 if (!mShouldTestTelecom || !TestUtils.hasTelephonyFeature(mContext)) { in testStartConference() 71 TestUtils.TEST_PHONE_ACCOUNT_HANDLE); in testStartConference() 85 if (!mShouldTestTelecom || !TestUtils.hasTelephonyFeature(mContext)) { in testStartConferenceFailed() 98 if (!mShouldTestTelecom || !TestUtils.hasTelephonyFeature(mContext)) { in testAddNewIncomingConference_onAnswer() 102 mTelecomManager.addNewIncomingConference(TestUtils.TEST_PHONE_ACCOUNT_HANDLE, extra); in testAddNewIncomingConference_onAnswer() [all …]
|
D | EmergencyCallOnSimCallManagerTest.java | 19 import static android.telecom.cts.TestUtils.ACCOUNT_ID_1; 20 import static android.telecom.cts.TestUtils.ACCOUNT_ID_EMERGENCY; 21 import static android.telecom.cts.TestUtils.ACCOUNT_LABEL; 22 import static android.telecom.cts.TestUtils.PACKAGE; 75 if (!mShouldTestTelecom || !TestUtils.hasTelephonyFeature(mContext)) return; in setUp() 80 TestUtils.enablePhoneAccount(getInstrumentation(), in setUp() 95 if (mShouldTestTelecom && TestUtils.hasTelephonyFeature(mContext)) { in tearDown() 104 if (!mShouldTestTelecom || !TestUtils.hasTelephonyFeature(mContext)) return; in testQueryLocationException() 136 if (!mShouldTestTelecom || !TestUtils.hasTelephonyFeature(mContext)) return; in testQueryLocationForEmergencyTryNormalCall() 178 if (!mShouldTestTelecom || !TestUtils.hasTelephonyFeature(mContext)) return; in testQueryLocationForEmergencyReturnLocation() [all …]
|
D | CallScreeningServiceTest.java | 19 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) 70 mPreviousDefaultDialer = TestUtils.getDefaultDialer(getInstrumentation()); in setUp() 71 TestUtils.setDefaultDialer(getInstrumentation(), TestUtils.PACKAGE); in setUp() 81 TestUtils.setDefaultDialer(getInstrumentation(), mPreviousDefaultDialer); in tearDown() 104 if (callbacks.lock.tryAcquire(TestUtils.WAIT_FOR_CALL_ADDED_TIMEOUT_S, in testTelephonyCall_bindsToCallScreeningService() 127 Uri contactUri = TestUtils.insertContact(mContentResolver, in testBindsToCallScreeningServiceWhenContactExist() 132 if (callbacks.lock.tryAcquire(TestUtils.WAIT_FOR_CALL_ADDED_TIMEOUT_S, in testBindsToCallScreeningServiceWhenContactExist() [all …]
|
/cts/tests/tests/telecom2/src/android/telecom/cts/ |
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 …]
|
D | TelecomManagerNoPermissionsTest.java | 53 TestUtils.PACKAGE = mContext.getPackageName(); in setUp() 63 if (!TestUtils.shouldTestTelecom(mContext)) { in testCannotEndCall() 74 if (!TestUtils.shouldTestTelecom(mContext)) { in testCallStateCompatPermissions() 82 TestUtils.enableCompatCommand(getInstrumentation(), in testCallStateCompatPermissions() 83 TestUtils.ENABLE_GET_CALL_STATE_PERMISSION_PROTECTION_STRING); in testCallStateCompatPermissions() 93 TestUtils.resetCompatCommand(getInstrumentation(), in testCallStateCompatPermissions() 94 TestUtils.ENABLE_GET_CALL_STATE_PERMISSION_PROTECTION_STRING); in testCallStateCompatPermissions() 99 if (!TestUtils.shouldTestTelecom(mContext)) { in testGetPhoneAccountCompatPermissions() 104 TestUtils.enableCompatCommand(getInstrumentation(), in testGetPhoneAccountCompatPermissions() 105 TestUtils.ENABLE_GET_PHONE_ACCOUNT_PERMISSION_PROTECTION_STRING); in testGetPhoneAccountCompatPermissions() [all …]
|
/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/tests/tests/networksecurityconfig/networksecurityconfig-cleartext/src/android/security/net/config/cts/ |
D | CleartextPermittedTest.java | 29 TestUtils.assertCleartextConnectionFails("example.com", 80); in testDefaultDenied() 30 TestUtils.assertTlsConnectionSucceeds("example.com", 443); in testDefaultDenied() 35 TestUtils.assertCleartextConnectionSucceeds("android.com", 80); in testCleartextAllowed() 36 TestUtils.assertTlsConnectionSucceeds("android.com", 443); in testCleartextAllowed() 38 TestUtils.assertCleartextConnectionSucceeds("www.android.com", 80); in testCleartextAllowed() 39 TestUtils.assertTlsConnectionSucceeds("www.android.com", 443); in testCleartextAllowed() 45 TestUtils.assertCleartextConnectionFails("developer.android.com", 80); in testNestedCleartextDenied() 46 TestUtils.assertTlsConnectionSucceeds("developer.android.com", 443); in testNestedCleartextDenied()
|
/cts/tests/tests/networksecurityconfig/networksecurityconfig-cleartext-pre-P/src/android/security/net/config/cts/ |
D | CleartextPermittedTest.java | 29 TestUtils.assertCleartextConnectionSucceeds("example.com", 80); in testDefaultAllowed() 30 TestUtils.assertTlsConnectionSucceeds("example.com", 443); in testDefaultAllowed() 35 TestUtils.assertCleartextConnectionFails("android.com", 80); in testCleartextBlocked() 36 TestUtils.assertTlsConnectionSucceeds("android.com", 443); in testCleartextBlocked() 38 TestUtils.assertCleartextConnectionFails("www.android.com", 80); in testCleartextBlocked() 39 TestUtils.assertTlsConnectionSucceeds("www.android.com", 443); in testCleartextBlocked() 45 TestUtils.assertCleartextConnectionSucceeds("developer.android.com", 80); in testNestedCleartextPermitted() 46 TestUtils.assertTlsConnectionSucceeds("developer.android.com", 443); in testNestedCleartextPermitted()
|
/cts/hostsidetests/scopedstorage/libs/ScopedStorageTestLib/src/android/scopedstorage/cts/lib/ |
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; 41 TestUtils.preparePublicVolume(); in createPublicVolume() 43 .that(TestUtils.getCurrentPublicVolumeName()) in createPublicVolume() 60 TestUtils.assertDefaultVolumeIsPrimary(); in setupExternalStorage() 62 assumeTrue(TestUtils.isAdoptableStorageSupported()); in setupExternalStorage() 66 final String publicVolumeName = TestUtils.getCurrentPublicVolumeName(); in setupExternalStorage() [all …]
|
/cts/tests/tests/content/src/android/content/pm/cts/ |
D | ResourcesHardeningTest.java | 51 import com.example.helloworld.lib.TestUtils; 96 setDeviceProperty("known_digesters_list", TestUtils.TEST_APP_PACKAGE); in onBefore() 115 info = restrictOnlyMiddleBlock(restrictZipEntry(zip, TestUtils.RES_XML_PATH)); in onBefore() 122 restrictZipEntry(zip, TestUtils.RES_DRAWABLE_MDPI_PATH)); in onBefore() 127 info = restrictZipEntry(zip, TestUtils.RES_DRAWABLE_HDPI_PATH); in onBefore() 147 testIncrementalForeignPackageResources(TestUtils::checkGetIdentifier); in checkGetIdentifier() 152 testIncrementalForeignPackageResources(TestUtils::checkGetResourceName); in checkGetResourceName() 157 testIncrementalForeignPackageResources(TestUtils::checkGetString); in checkGetString() 162 testIncrementalForeignPackageResources(TestUtils::checkGetStringArray); in checkGetStringArray() 167 testIncrementalForeignPackageResources(TestUtils::checkOpenXmlResourceParser); in checkOpenXmlResourceParser() [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.assertCantInsertToOtherPrivateAppDirectories; 27 import static android.scopedstorage.cts.lib.TestUtils.assertCantRenameFile; 28 import static android.scopedstorage.cts.lib.TestUtils.assertCantUpdateToOtherPrivateAppDirectories; [all …]
|
/cts/hostsidetests/scopedstorage/device/src/android/scopedstorage/cts/device/ |
D | PackageNameVisibilityTest.java | 28 import android.scopedstorage.cts.lib.TestUtils; 89 TestUtils.waitForMountedAndIdleState(getTargetContext().getContentResolver()); in setUp() 97 TestUtils.deleteMediaByUriAs(TEST_APP_A, sMediaUriCreatedByAppA); in tearDown() 98 TestUtils.deleteMediaByUriAs(TEST_APP_B, sMediaUriCreatedByAppB); in tearDown() 103 final String[] ownerPackageNames = TestUtils.queryForOwnerPackageNamesAs( in testNotQueryableOwnerPackageName() 111 final String[] ownerPackageNames = TestUtils.queryForOwnerPackageNamesAs( in testQueryableOwnerPackageName() 120 final String[] ownerPackageNames = TestUtils.queryForOwnerPackageNamesAs( in testQueryAllPackagesTag() 128 int resultSize = TestUtils.queryWithArgsAs(TEST_APP_A, sMediaUriCreatedByAppB, null); in testSimpleQueryWithoutPackageNameInQueryArgs() 142 int resultSize = TestUtils.queryWithArgsAs(TEST_APP_A, sMediaUriCreatedByAppB, queryArgs); in testOwnerPackageNameInSelection_filtered() 156 int resultSize = TestUtils.queryWithArgsAs(TEST_APP_B, sMediaUriCreatedByAppB, queryArgs); in testOwnerPackageNameInSelection_selfOwned() [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/bypassdatabase/src/android/scopedstorage/cts/bypassdatabase/ |
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.renameFileAs; 41 import android.scopedstorage.cts.lib.TestUtils; [all …]
|