/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/ |
D | AdoptableHostTest.java | 24 import static android.appsecurity.cts.SplitTests.PKG; 67 getDevice().uninstallPackage(PKG); in setUp() 92 getDevice().uninstallPackage(PKG); in tearDown() 163 runDeviceTests(PKG, CLASS, "testDataInternal"); in testApps() 164 runDeviceTests(PKG, CLASS, "testDataWrite"); in testApps() 165 runDeviceTests(PKG, CLASS, "testDataRead"); in testApps() 166 runDeviceTests(PKG, CLASS, "testNative"); in testApps() 174 "pm move-package " + PKG + " " + vol.uuid)); in testApps() 176 runDeviceTests(PKG, CLASS, "testDataNotInternal"); in testApps() 177 runDeviceTests(PKG, CLASS, "testDataRead"); in testApps() [all …]
|
D | SplitTests.java | 52 static final String PKG = "com.android.cts.splitapp"; field in SplitTests 53 static final String CLASS = PKG + ".SplitAppTest"; 126 getDevice().uninstallPackage(PKG); in setUp() 132 getDevice().uninstallPackage(PKG); in tearDown() 148 runDeviceTests(PKG, CLASS, "testSingleBase"); in testSingleBase() 163 runDeviceTests(PKG, CLASS, "testDensitySingle"); in testDensitySingle() 179 runDeviceTests(PKG, CLASS, "testDensityAll"); in testDensityAll() 198 runDeviceTests(PKG, CLASS, "testDensityBest1"); in testDensityBest() 201 new InstallMultiple(instant).inheritFrom(PKG).addFile(APK_xxhdpi).run(); in testDensityBest() 202 runDeviceTests(PKG, CLASS, "testDensityBest2"); in testDensityBest() [all …]
|
D | IsolatedSplitsTests.java | 32 private static final String PKG = "com.android.cts.isolatedsplitapp"; field in IsolatedSplitsTests 33 private static final String TEST_CLASS = PKG + ".SplitAppTest"; 75 getDevice().uninstallPackage(PKG); in setUp() 80 getDevice().uninstallPackage(PKG); in tearDown() 97 Utils.runDeviceTestsAsCurrentUser(getDevice(), PKG, TEST_CLASS, "shouldLoadDefault"); in testInstallBase() local 114 Utils.runDeviceTestsAsCurrentUser(getDevice(), PKG, TEST_CLASS, "shouldLoadPolishLocale"); in testInstallBaseAndConfigSplit() local 159 Utils.runDeviceTestsAsCurrentUser(getDevice(), PKG, TEST_CLASS, "shouldLoadDefault"); in testInstallOneFeatureSplit() local 160 Utils.runDeviceTestsAsCurrentUser(getDevice(), PKG, TEST_CLASS, in testInstallOneFeatureSplit() local 162 Utils.runDeviceTestsAsCurrentUser(getDevice(), PKG, TEST_CLASS, in testInstallOneFeatureSplit() local 181 Utils.runDeviceTestsAsCurrentUser(getDevice(), PKG, TEST_CLASS, "shouldLoadPolishLocale"); in testInstallOneFeatureSplitAndConfigSplits() local [all …]
|
D | MajorVersionTest.java | 35 private static final String PKG = "com.android.cts.majorversion"; field in MajorVersionTest 44 getDevice().uninstallPackage(PKG); in setUp() 49 getDevice().uninstallPackage(PKG); in tearDown() 64 assertTrue(getDevice().getInstalledPackageNames().contains(PKG)); in testInstallMinorVersion() 80 assertTrue(getDevice().getInstalledPackageNames().contains(PKG)); in testInstallMajorVersion() 96 assertTrue(getDevice().getInstalledPackageNames().contains(PKG)); in testInstallUpdateAcrossMinorMajorVersion() 99 assertTrue(getDevice().getInstalledPackageNames().contains(PKG)); in testInstallUpdateAcrossMinorMajorVersion() 102 assertTrue(getDevice().getInstalledPackageNames().contains(PKG)); in testInstallUpdateAcrossMinorMajorVersion() 105 assertTrue(getDevice().getInstalledPackageNames().contains(PKG)); in testInstallUpdateAcrossMinorMajorVersion() 121 assertTrue(getDevice().getInstalledPackageNames().contains(PKG)); in testInstallDowngradeAcrossMajorMinorVersion() [all …]
|
D | AuthBoundKeyTest.java | 36 static final String PKG = "com.android.cts.authboundkeyapp"; field in AuthBoundKeyTest 37 static final String CLASS = PKG + ".AuthBoundKeyAppTest"; 43 getDevice().uninstallPackage(PKG); in setUp() 48 getDevice().uninstallPackage(PKG); in tearDown() 60 runDeviceTests(PKG, CLASS, "testGenerateAuthBoundKey"); in useInvalidatedAuthBoundKey() 62 runDeviceTests(PKG, CLASS, "testUseKey"); in useInvalidatedAuthBoundKey() 68 runDeviceTests(PKG, CLASS, "testUseKey"); in useInvalidatedAuthBoundKey()
|
D | UseProcessTest.java | 36 private static final String PKG = "com.android.cts.useprocess"; field in UseProcessTest 50 getDevice().uninstallPackage(PKG); in setUp() 55 getDevice().uninstallPackage(PKG); in tearDown() 70 assertTrue(getDevice().getInstalledPackageNames().contains(PKG)); in testInstallUsePackageSuccess() 72 Utils.runDeviceTestsAsCurrentUser(getDevice(), PKG, SUCCESS_UNIT_TEST_CLASS, null); in testInstallUsePackageSuccess() local 89 assertTrue(!getDevice().getInstalledPackageNames().contains(PKG)); in testInstallUsePackageFailApplication() 106 assertTrue(!getDevice().getInstalledPackageNames().contains(PKG)); in testInstallUsePackageFailActivity() 123 assertTrue(!getDevice().getInstalledPackageNames().contains(PKG)); in testInstallUsePackageFailService() 140 assertTrue(!getDevice().getInstalledPackageNames().contains(PKG)); in testInstallUsePackageFailReceiver() 157 assertTrue(!getDevice().getInstalledPackageNames().contains(PKG)); in testInstallUsePackageFailProvider()
|
D | DirectBootHostTest.java | 48 private static final String PKG = "com.android.cts.encryptionapp"; field in DirectBootHostTest 49 private static final String CLASS = PKG + ".EncryptionAppTest"; 74 getDevice().uninstallPackage(PKG); in setUp() 80 getDevice().uninstallPackage(PKG); in tearDown() 145 runDeviceTestsAsCurrentUser(PKG, CLASS, "testSetUp"); in doDirectBootTest() 165 runDeviceTestsAsCurrentUser(PKG, CLASS, "testVerifyUnlockedAndDismiss"); in doDirectBootTest() 167 runDeviceTestsAsCurrentUser(PKG, CLASS, "testVerifyLockedAndDismiss"); in doDirectBootTest() 174 runDeviceTestsAsCurrentUser(PKG, CLASS, "testTearDown"); in doDirectBootTest() 176 getDevice().uninstallPackage(PKG); in doDirectBootTest()
|
D | ResumeOnRebootHostTest.java | 54 private static final String PKG = "com.android.cts.encryptionapp"; field in ResumeOnRebootHostTest 55 private static final String CLASS = PKG + ".EncryptionAppTest"; 442 "cmd lock_settings set-resume-on-reboot-provider-package " + PKG); in deviceSetupServerBasedParameter() 473 deviceRequestLskf(PKG); in deviceRequestLskf() 484 deviceClearLskf(PKG); in deviceClearLskf() 519 deviceRebootAndApply(PKG); in deviceRebootAndApply() 541 getDevice().uninstallPackage(PKG); in removeTestPackages() 607 Utils.runDeviceTestsAsCurrentUser(getDevice(), PKG, CLASS, testMethodName); in runDeviceTestsAsUser() local
|
/cts/hostsidetests/appsecurity/test-apps/V3SigningSchemeRotation/src/android/appsecurity/cts/v3rotationtests/ |
D | V3RotationTest.java | 35 private static final String PKG = "android.appsecurity.cts.tinyapp"; field in V3RotationTest 138 PackageInfo pi = pm.getPackageInfo(PKG, PackageManager.GET_SIGNATURES); in testGetSignaturesShowsOld() 139 assertNotNull("Failed to get signatures in PackageInfo of " + PKG, pi.signatures); in testGetSignaturesShowsOld() 140 assertEquals("PackageInfo for " + PKG + "contains multiple entries", in testGetSignaturesShowsOld() 142 assertEquals("signature mismatch for " + PKG + ", expected old signing certificate", in testGetSignaturesShowsOld() 150 PackageInfo pi = pm.getPackageInfo(PKG, PackageManager.GET_SIGNING_CERTIFICATES); in testGetSigningCertificatesShowsAll() 151 assertNotNull("Failed to get signatures in PackageInfo of " + PKG, in testGetSigningCertificatesShowsAll() 153 assertFalse("Multiple signing certificates found in signing certificate history for " + PKG, in testGetSigningCertificatesShowsAll() 157 assertEquals("PackageInfo for " + PKG + "contains the wrong number of signing certificat " in testGetSigningCertificatesShowsAll() 171 assertTrue("Old signing certificate not found for " + PKG + " expected " in testGetSigningCertificatesShowsAll() [all …]
|
/cts/hostsidetests/classloaders/splits/src/android/classloaders/cts/ |
D | ClassloaderSplitsTest.java | 30 private static final String PKG = "com.android.cts.classloadersplitapp"; field in ClassloaderSplitsTest 31 private static final String TEST_CLASS = PKG + ".SplitAppTest"; 51 getDevice().uninstallPackage(PKG); in setUp() 56 getDevice().uninstallPackage(PKG); in tearDown() 71 runDeviceTests(getDevice(), PKG, TEST_CLASS, "testBaseClassLoader"); in testBaseClassLoader() local 86 runDeviceTests(getDevice(), PKG, TEST_CLASS, "testBaseClassLoader"); in testFeatureAClassLoader() local 87 runDeviceTests(getDevice(), PKG, TEST_CLASS, "testFeatureAClassLoader"); in testFeatureAClassLoader() local 103 runDeviceTests(getDevice(), PKG, TEST_CLASS, "testBaseClassLoader"); in testFeatureBClassLoader() local 104 runDeviceTests(getDevice(), PKG, TEST_CLASS, "testFeatureAClassLoader"); in testFeatureBClassLoader() local 105 runDeviceTests(getDevice(), PKG, TEST_CLASS, "testFeatureBClassLoader"); in testFeatureBClassLoader() local [all …]
|
/cts/tests/tests/permission2/src/android/permission2/cts/ |
D | RestrictedStoragePermissionTest.java | 78 private static final String PKG = "android.permission2.cts.restrictedpermissionuser"; field in RestrictedStoragePermissionTest 294 assertThat(isGranted(PKG, Manifest.permission.READ_EXTERNAL_STORAGE)).isFalse(); in cannotGrantStorageTargetingSdk22NotWhitelisted() 297 assertThat(isPermissionGranted(PKG, Manifest.permission.READ_EXTERNAL_STORAGE)) in cannotGrantStorageTargetingSdk22NotWhitelisted() 310 assertThat(isGranted(PKG, Manifest.permission.READ_EXTERNAL_STORAGE)).isFalse(); in cannotGrantStorageTargetingSdk22OptInNotWhitelisted() 313 assertThat(isPermissionGranted(PKG, Manifest.permission.READ_EXTERNAL_STORAGE)) in cannotGrantStorageTargetingSdk22OptInNotWhitelisted() 326 assertThat(isGranted(PKG, Manifest.permission.READ_EXTERNAL_STORAGE)).isTrue()); in canGrantStorageTargetingSdk22Whitelisted() 337 assertThat(isGranted(PKG, Manifest.permission.READ_EXTERNAL_STORAGE)).isTrue()); in canGrantStorageTargetingSdk22OptInWhitelisted() 348 assertThat(isGranted(PKG, Manifest.permission.READ_EXTERNAL_STORAGE)).isFalse()); in cannotGrantStorageTargetingSdk28NotWhitelisted() 359 assertThat(isGranted(PKG, Manifest.permission.READ_EXTERNAL_STORAGE)).isFalse()); in cannotGrantStorageTargetingSdk28OptInNotWhitelisted() 370 assertThat(isGranted(PKG, Manifest.permission.READ_EXTERNAL_STORAGE)).isTrue()); in canGrantStorageTargetingSdk28Whitelisted() [all …]
|
D | RestrictedPermissionsTest.java | 97 private static final String PKG = "android.permission2.cts.restrictedpermissionuser"; field in RestrictedPermissionsTest 434 packageManager.getWhitelistedRestrictedPermissions(PKG, whitelist); in assertWeCannotReadOrWriteWhileShellCanReadAndWrite() 440 packageManager.addWhitelistedRestrictedPermission(PKG, in assertWeCannotReadOrWriteWhileShellCanReadAndWrite() 447 packageManager.addWhitelistedRestrictedPermission(PKG, in assertWeCannotReadOrWriteWhileShellCanReadAndWrite() 449 assertThat(packageManager.getWhitelistedRestrictedPermissions(PKG, in assertWeCannotReadOrWriteWhileShellCanReadAndWrite() 451 packageManager.removeWhitelistedRestrictedPermission(PKG, in assertWeCannotReadOrWriteWhileShellCanReadAndWrite() 453 assertThat(packageManager.getWhitelistedRestrictedPermissions(PKG, in assertWeCannotReadOrWriteWhileShellCanReadAndWrite() 478 final PackageInfo packageInfo = packageManager.getPackageInfo(PKG, in getRequestedPermissionsOfApp() 503 final PackageInfo packageInfo = packageManager.getPackageInfo(PKG, in assertRestrictedPermissionWhitelisted() 507 .getWhitelistedRestrictedPermissions(PKG, in assertRestrictedPermissionWhitelisted() [all …]
|
/cts/hostsidetests/classloaders/useslibrary/src/android/classloaders/cts/ |
D | UsesLibraryHostTest.java | 37 private static final String PKG = "com.android.cts.useslibrary"; field in UsesLibraryHostTest 46 getDevice().uninstallPackage(PKG); in setUp() 51 getDevice().uninstallPackage(PKG); in tearDown() 61 Utils.runDeviceTests(getDevice(), PKG, ".UsesLibraryTest", "testUsesLibrary"); in testUsesLibrary() local 71 Utils.runDeviceTests(getDevice(), PKG, ".UsesLibraryTest", "testMissingLibrary"); in testMissingLibrary() local 81 Utils.runDeviceTests(getDevice(), PKG, ".UsesLibraryTest", "testDuplicateLibrary"); in testDuplicateLibrary() local
|
/cts/tests/tests/appop/src/android/app/appops/cts/ |
D | AttributionTest.kt | 75 val PKG = "android.app.appops.cts.appwithreceiverattribution" in manifestReceiverTagging() constant 78 val uid = context.packageManager.getPackageUid(PKG, 0) in manifestReceiverTagging() 81 intent.setComponent(ComponentName.createRelative(PKG, ".TestReceiver")) in manifestReceiverTagging() 85 uiAutomation.grantRuntimePermission(PKG, android.Manifest.permission.READ_CONTACTS) in manifestReceiverTagging() 86 appOpsManager.noteOp(OPSTR_READ_CONTACTS, uid, PKG, ATTRIBUTION_1, null) in manifestReceiverTagging() 87 appOpsManager.noteOp(OPSTR_READ_CONTACTS, uid, PKG, ATTRIBUTION_2, null) in manifestReceiverTagging() 88 appOpsManager.noteOp(OPSTR_READ_CONTACTS, uid, PKG, ATTRIBUTION_3, null) in manifestReceiverTagging() 92 val before = getOpEntry(uid, PKG, OPSTR_READ_CONTACTS)!! in manifestReceiverTagging() 98 val after = getOpEntry(uid, PKG, OPSTR_READ_CONTACTS)!! in manifestReceiverTagging()
|
/cts/tests/app/src/android/app/cts/ |
D | StatusBarNotificationTest.java | 28 private static final String PKG = "foo.bar"; field in StatusBarNotificationTest 43 mSbn = new StatusBarNotification(PKG, OP_PKG, ID, TAG, UID, 0, 0, mNotification, in setUp() 72 assertEquals(PKG, mSbn.getPackageName()); in testGetPackageName() 100 new StatusBarNotification(PKG, OP_PKG, ID, TAG, UID, 0, 0, notification, in testIsClearable_notClearableOngoingEvent() 121 new StatusBarNotification(PKG, OP_PKG, ID, TAG, UID, 0, 0, notification, in testIsGroup_notifGroup() 133 new StatusBarNotification(PKG, OP_PKG, ID, TAG, UID, 0, 0, notification, in testIsGroup_sortKey() 149 new StatusBarNotification(PKG, OP_PKG, ID, TAG, UID, 0, 0, notification, in testIsOngoing_ongoingEvent() 163 assertEquals(PKG, clone.getPackageName()); in testClone()
|
/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/ |
D | PasswordComplexityTest.java | 17 private static final String PKG = "com.android.cts.passwordcomplexity"; field in PasswordComplexityTest 42 getDevice().uninstallPackage(PKG); in tearDown() 51 () -> runDeviceTestsAsUser(PKG, CLS, mCurrentUserId), in testGetPasswordComplexity() 54 .setStrings("notCalledFromParent", PKG).build()); in testGetPasswordComplexity()
|
/cts/hostsidetests/calllog/src/android/provider/cts/contacts/hostside/ |
D | ShadowCallLogTest.java | 43 private static final String PKG = "android.provider.cts.contacts.testapp"; field in ShadowCallLogTest 44 private static final String CLASS = PKG + ".CallLogDirectBootTest"; 57 getDevice().uninstallPackage(PKG); in setUp() 62 getDevice().uninstallPackage(PKG); in tearDown() 100 assertTrue(runDeviceTests(PKG, CLASS, "testShadowCallComposerPicture")); in testDirectBootCallLog() 110 getDevice().uninstallPackage(PKG); in testDirectBootCallLog()
|
/cts/tests/devicepolicy/src/android/devicepolicy/cts/ |
D | AdminPermissionControlParamsTests.java | 34 private static final String PKG = "somePackage"; field in AdminPermissionControlParamsTests 43 PKG, PERMISSION, GRANT_STATE, CAN_ADMIN_GRANT); in gettersReturnConstructorValue() 45 assertThat(params.getGranteePackageName()).isEqualTo(PKG); in gettersReturnConstructorValue() 82 return createViaParcel(PKG, PERMISSION, GRANT_STATE, CAN_ADMIN_GRANT); in createViaParcel()
|
/cts/hostsidetests/appsecurity/test-apps/SplitApp/src/com/android/cts/splitapp/ |
D | SplitAppTest.java | 93 private static final String PKG = "com.android.cts.splitapp"; field in SplitAppTest 106 ComponentName.createRelative(PKG, ".feature.warm.EmptyProvider"); 108 ComponentName.createRelative(PKG, ".feature.warm.EmptyService"); 170 intent.setPackage(PKG); in testSingleBase() 178 intent.setPackage(PKG); in testSingleBase() 185 intent.setPackage(PKG); in testSingleBase() 261 intent.setPackage(PKG); in testApi() 359 "com.android.cts.splitapp.feature_warm:feature_string", "string", PKG))); in testFeatureWarmBase() 361 "com.android.cts.splitapp.feature_warm:feature_integer", "integer", PKG))); in testFeatureWarmBase() 380 intent.setPackage(PKG); in testFeatureWarmBase() [all …]
|
/cts/tests/tests/notificationlegacy/notificationlegacy29/src/android/app/notification/legacy29/cts/ |
D | TestNotificationListener.java | 28 public static final String PKG = "android.app.notification.legacy29.cts"; field in TestNotificationListener 60 mTestPackages.add(PKG); in onCreate() 87 if (!PKG.equals(sbn.getPackageName())) { in onNotificationPosted()
|
D | NotificationAssistantServiceTest.java | 120 StatusBarNotification sbn = getFirstNotificationFromPackage(TestNotificationListener.PKG); in testOnNotificationEnqueued() 134 sbn = getFirstNotificationFromPackage(TestNotificationListener.PKG); in testOnNotificationEnqueued() 153 StatusBarNotification sbn = getFirstNotificationFromPackage(TestNotificationListener.PKG); in testAdjustNotification_userSentimentKey() 184 StatusBarNotification sbn = getFirstNotificationFromPackage(TestNotificationListener.PKG); in testAdjustNotification_importanceKey() 216 TestNotificationListener.PKG); in testAdjustNotifications_rankingScoreKey() 221 TestNotificationListener.PKG); in testAdjustNotifications_rankingScoreKey() 276 StatusBarNotification sbn = getFirstNotificationFromPackage(TestNotificationListener.PKG); in testAdjustNotification_smartActionKey() 319 StatusBarNotification sbn = getFirstNotificationFromPackage(TestNotificationListener.PKG); in testAdjustNotification_smartReplyKey() 362 TestNotificationListener.PKG); in testAdjustNotification_importanceKey_notAllowed() 394 StatusBarNotification sbn1 = getFirstNotificationFromPackage(TestNotificationListener.PKG); in testAdjustNotification_rankingScoreKey_notAllowed() [all …]
|
/cts/tests/tests/notificationlegacy/notificationlegacy27/src/android/app/notification/legacy/cts/ |
D | SecondaryNotificationListener.java | 26 public static final String PKG = "android.app.notification.legacy.cts"; field in SecondaryNotificationListener 50 mTestPackages.add(PKG); in onCreate()
|
D | TestNotificationListener.java | 29 public static final String PKG = "android.app.notification.legacy.cts"; field in TestNotificationListener 53 mTestPackages.add(PKG); in onCreate()
|
/cts/tests/tests/notificationlegacy/notificationlegacy20/src/android/app/notification/legacy20/cts/ |
D | TestNotificationListener.java | 27 public static final String PKG = "android.app.notification.legacy.cts"; field in TestNotificationListener 51 mTestPackages.add(PKG); in onCreate()
|
/cts/tests/app/app/src/android/app/stubs/ |
D | TestNotificationListener.java | 29 public static final String PKG = "android.app.stubs"; field in TestNotificationListener 64 mTestPackages.add(PKG); in onCreate()
|