/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/ |
D | AdoptableHostTest.java | 24 import static android.appsecurity.cts.Utils.PKG; 69 getDevice().uninstallPackage(PKG); in setUp() 94 getDevice().uninstallPackage(PKG); in tearDown() 165 runDeviceTests(PKG, CLASS, "testDataInternal"); in testApps() 166 runDeviceTests(PKG, CLASS, "testDataWrite"); in testApps() 167 runDeviceTests(PKG, CLASS, "testDataRead"); in testApps() 168 runDeviceTests(PKG, CLASS, "testNative"); in testApps() 176 "pm move-package " + PKG + " " + vol.uuid)); in testApps() 178 runDeviceTests(PKG, CLASS, "testDataNotInternal"); in testApps() 179 runDeviceTests(PKG, CLASS, "testDataRead"); in testApps() [all …]
|
D | IsolatedSplitsTests.java | 34 private static final String PKG = "com.android.cts.isolatedsplitapp"; field in IsolatedSplitsTests 35 private static final String TEST_CLASS = PKG + ".SplitAppTest"; 77 getDevice().uninstallPackage(PKG); in setUp() 82 getDevice().uninstallPackage(PKG); in tearDown() 99 Utils.runDeviceTestsAsCurrentUser(getDevice(), PKG, TEST_CLASS, "shouldLoadDefault"); in testInstallBase() local 116 Utils.runDeviceTestsAsCurrentUser(getDevice(), PKG, TEST_CLASS, "shouldLoadPolishLocale"); in testInstallBaseAndConfigSplit() local 161 Utils.runDeviceTestsAsCurrentUser(getDevice(), PKG, TEST_CLASS, "shouldLoadDefault"); in testInstallOneFeatureSplit() local 162 Utils.runDeviceTestsAsCurrentUser(getDevice(), PKG, TEST_CLASS, in testInstallOneFeatureSplit() local 164 Utils.runDeviceTestsAsCurrentUser(getDevice(), PKG, TEST_CLASS, in testInstallOneFeatureSplit() local 183 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 | SplitTests.java | 26 import static android.appsecurity.cts.Utils.PKG; 217 getDevice().uninstallPackage(PKG); in setUp() 223 getDevice().uninstallPackage(PKG); in tearDown() 239 runDeviceTests(PKG, CLASS, "testSingleBase"); in testSingleBase() 254 runDeviceTests(PKG, CLASS, "testDensitySingle"); in testDensitySingle() 270 runDeviceTests(PKG, CLASS, "testDensityAll"); in testDensityAll() 289 runDeviceTests(PKG, CLASS, "testDensityBest1"); in testDensityBest() 292 new InstallMultiple(instant).inheritFrom(PKG).addFile(APK_xxhdpi).run(); in testDensityBest() 293 runDeviceTests(PKG, CLASS, "testDensityBest2"); in testDensityBest() 312 runDeviceTests(PKG, CLASS, "testApi"); in testApi() [all …]
|
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 | 49 private static final String PKG = "com.android.cts.encryptionapp"; field in DirectBootHostTest 50 private static final String CLASS = PKG + ".EncryptionAppTest"; 69 getDevice().uninstallPackage(PKG); in setUp() 75 getDevice().uninstallPackage(PKG); in tearDown() 123 runDeviceTestsAsCurrentUser(PKG, CLASS, "testSetUp"); in doDirectBootTest() 133 runDeviceTestsAsCurrentUser(PKG, CLASS, "testVerifyLockedAndDismiss"); in doDirectBootTest() 135 runDeviceTestsAsCurrentUser(PKG, CLASS, "testVerifyUnlockedAndDismiss"); in doDirectBootTest() 141 runDeviceTestsAsCurrentUser(PKG, CLASS, "testTearDown"); in doDirectBootTest() 143 getDevice().uninstallPackage(PKG); in doDirectBootTest()
|
D | ResumeOnRebootHostTest.java | 61 private static final String PKG = "com.android.cts.encryptionapp"; field in ResumeOnRebootHostTest 62 private static final String CLASS = PKG + ".EncryptionAppTest"; 376 "cmd lock_settings set-resume-on-reboot-provider-package " + PKG); in deviceSetupServerBasedParameter() 407 deviceRequestLskf(PKG); in deviceRequestLskf() 418 deviceClearLskf(PKG); in deviceClearLskf() 470 deviceRebootAndApply(PKG); in deviceRebootAndApply() 495 getDevice().uninstallPackage(PKG); in removeTestPackages() 559 Utils.runDeviceTests(getDevice(), PKG, CLASS, testMethodName, userId); in runDeviceTestsAsUser() local
|
/cts/hostsidetests/appsecurity/test-apps/V3SigningSchemeRotation/src/android/appsecurity/cts/v3rotationtests/ |
D | V3RotationTest.java | 37 private static final String PKG = "android.appsecurity.cts.tinyapp"; field in V3RotationTest 185 PackageInfo pi = pm.getPackageInfo(PKG, PackageManager.GET_SIGNATURES); in testGetSignaturesShowsOld() 186 assertNotNull("Failed to get signatures in PackageInfo of " + PKG, pi.signatures); in testGetSignaturesShowsOld() 187 assertEquals("PackageInfo for " + PKG + "contains multiple entries", in testGetSignaturesShowsOld() 189 assertEquals("signature mismatch for " + PKG + ", expected old signing certificate", in testGetSignaturesShowsOld() 197 PackageInfo pi = pm.getPackageInfo(PKG, PackageManager.GET_SIGNING_CERTIFICATES); in testGetSigningCertificatesShowsAll() 198 assertNotNull("Failed to get signatures in PackageInfo of " + PKG, in testGetSigningCertificatesShowsAll() 200 assertFalse("Multiple signing certificates found in signing certificate history for " + PKG, in testGetSigningCertificatesShowsAll() 204 assertEquals("PackageInfo for " + PKG + "contains the wrong number of signing certificat " in testGetSigningCertificatesShowsAll() 218 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/common/device-side/bedstead/eventlib/src/test/java/com/android/eventlib/events/deviceadminreceivers/ |
D | DeviceAdminLockTaskModeEnteringEventTest.java | 48 private static final String PKG = "package"; field in DeviceAdminLockTaskModeEnteringEventTest 63 DEVICE_ADMIN_RECEIVER, sContext, intent, PKG).log(); in whereIntent_works() 78 DEVICE_ADMIN_RECEIVER, sContext, differentIntent, PKG).log(); in whereIntent_skipsNonMatching() 80 DEVICE_ADMIN_RECEIVER, sContext, intent, PKG).log(); in whereIntent_skipsNonMatching() 91 DeviceAdminLockTaskModeEnteringEvent.logger(DEVICE_ADMIN_RECEIVER, sContext, INTENT, PKG) in whereDeviceAdminReceiver_customValueOnLogger_works() 106 DeviceAdminLockTaskModeEnteringEvent.logger(DEVICE_ADMIN_RECEIVER, sContext, INTENT, PKG) in whereDeviceAdminReceiver_customValueOnLogger_skipsNonMatching() 109 DeviceAdminLockTaskModeEnteringEvent.logger(DEVICE_ADMIN_RECEIVER, sContext, INTENT, PKG) in whereDeviceAdminReceiver_customValueOnLogger_skipsNonMatching() 125 DEVICE_ADMIN_RECEIVER, sContext, INTENT, PKG).log(); in whereDeviceAdminReceiver_defaultValue_works() 138 DeviceAdminLockTaskModeEnteringEvent.logger(DEVICE_ADMIN_RECEIVER, sContext, INTENT, PKG) in whereDeviceAdminReceiver_defaultValue_skipsNonMatching() 141 DeviceAdminLockTaskModeEnteringEvent.logger(DEVICE_ADMIN_RECEIVER, sContext, INTENT, PKG) in whereDeviceAdminReceiver_defaultValue_skipsNonMatching() [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 | AppOpsMultiUserTest.kt | 22 private const val PKG = "android.app.appops.cts.apponmultipleusers" in <lambda>() constant 75 val uid = packageManager.getPackageUidAsUser(PKG, it.id) in <lambda>() 80 PKG, in <lambda>() 87 PKG in <lambda>() 96 SystemUtil.runShellCommandOrThrow("pm uninstall --user ${it.id} $PKG") in <lambda>() 104 val uid = packageManager.getPackageUidAsUser(PKG, it.id) in <lambda>() 108 PKG in <lambda>()
|
D | AttributionTest.kt | 79 val PKG = "android.app.appops.cts.appwithreceiverattribution" in manifestReceiverTagging() constant 82 val uid = context.packageManager.getPackageUid(PKG, 0) in manifestReceiverTagging() 85 intent.setComponent(ComponentName.createRelative(PKG, ".TestReceiver")) in manifestReceiverTagging() 89 uiAutomation.grantRuntimePermission(PKG, android.Manifest.permission.READ_CONTACTS) in manifestReceiverTagging() 90 appOpsManager.noteOp(OPSTR_READ_CONTACTS, uid, PKG, ATTRIBUTION_1, null) in manifestReceiverTagging() 91 appOpsManager.noteOp(OPSTR_READ_CONTACTS, uid, PKG, ATTRIBUTION_2, null) in manifestReceiverTagging() 92 appOpsManager.noteOp(OPSTR_READ_CONTACTS, uid, PKG, ATTRIBUTION_3, null) in manifestReceiverTagging() 96 val before = getOpEntry(uid, PKG, OPSTR_READ_CONTACTS)!! in manifestReceiverTagging() 102 val after = getOpEntry(uid, PKG, OPSTR_READ_CONTACTS)!! in manifestReceiverTagging() 116 runCommand("pm uninstall $PKG") in manifestReceiverTagging()
|
/cts/common/device-side/interactive/automation/src/main/java/com/google/android/interactive/helpers/ |
D | MediaControlsHelper.java | 39 private static final String PKG = "com.android.systemui"; field in MediaControlsHelper 59 Until.findObject(By.hasChild(By.res(PKG, "media_carousel"))), in findMediaControls() 73 final BySelector playerSelector = By.res(PKG, "qs_media_controls").hasDescendant( in findMediaControls() 74 By.res(PKG, "header_title").text(SESSION_TITLE)); in findMediaControls() 101 return container.wait(Until.findObject(By.res(PKG, resource)), WAIT_TIME_MILLIS); in findChildObject()
|
/cts/tests/tests/notification/src/android/app/notification/current/cts/ |
D | StatusBarNotificationTest.java | 42 private static final String PKG = "foo.bar"; field in StatusBarNotificationTest 58 mSbn = new StatusBarNotification(PKG, OP_PKG, ID, TAG, UID, 0, 0, mNotification, in setUp() 94 assertEquals(PKG, mSbn.getPackageName()); in testGetPackageName() 127 new StatusBarNotification(PKG, OP_PKG, ID, TAG, UID, 0, 0, notification, in testIsClearable_notClearableOngoingEvent() 151 new StatusBarNotification(PKG, OP_PKG, ID, TAG, UID, 0, 0, notification, in testIsGroup_notifGroup() 164 new StatusBarNotification(PKG, OP_PKG, ID, TAG, UID, 0, 0, notification, in testIsGroup_sortKey() 182 new StatusBarNotification(PKG, OP_PKG, ID, TAG, UID, 0, 0, notification, in testIsOngoing_ongoingEvent() 198 assertEquals(PKG, clone.getPackageName()); in testClone()
|
/cts/hostsidetests/calllog/src/android/provider/cts/contacts/hostside/ |
D | ShadowCallLogTest.java | 44 private static final String PKG = "android.provider.cts.contacts.testapp"; field in ShadowCallLogTest 45 private static final String CLASS = PKG + ".CallLogDirectBootTest"; 53 getDevice().uninstallPackage(PKG); in setUp() 58 getDevice().uninstallPackage(PKG); in tearDown() 86 assertTrue(runDeviceTests(PKG, CLASS, "testShadowCallComposerPicture")); in testDirectBootCallLog() 96 getDevice().uninstallPackage(PKG); in testDirectBootCallLog()
|
/cts/tests/devicepolicy/src/android/devicepolicy/cts/ |
D | AdminPermissionControlParamsTest.java | 33 private static final String PKG = "somePackage"; field in AdminPermissionControlParamsTest 41 PKG, PERMISSION, GRANT_STATE, CAN_ADMIN_GRANT); in gettersReturnConstructorValue() 43 assertThat(params.getGranteePackageName()).isEqualTo(PKG); in gettersReturnConstructorValue() 79 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/notificationlegacy28/src/android/app/notification/legacy28/cts/ |
D | NotificationManager28Test.java | 55 private static final String PKG = "android.app.notification.legacy28.cts"; field in NotificationManager28Test 70 assertNotNull(mHelper.enableListener(PKG)); in setUp() 75 mHelper.disableListener(PKG); in tearDown()
|
/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 | LegacyNotificationManagerTest.java | 71 final static String PKG = "android.app.notification.legacy.cts"; field in LegacyNotificationManagerTest 87 mHelper.disableListener(PKG); in setUp() 107 mHelper.disableListener(PKG); in tearDown() 200 mListener = mHelper.enableListener(PKG); in testSuspendPackage() 222 mListener = mHelper.enableListener(PKG); in testSuspendedPackageSendNotification() 246 mListener = mHelper.enableListener(PKG); in testResetListenerHints_singleListener() 267 mListener = mHelper.enableListener(PKG); in testResetListenerHints_multiListener() 314 mListener = mHelper.enableListener(PKG); in testChannelDeletion_cancelReason()
|
/cts/tests/tests/notification/NotificationApp/src/com/android/test/notificationapp/ |
D | TestNotificationListener.java | 23 public static final String PKG = "com.android.test.notificationapp"; field in TestNotificationListener
|
/cts/tests/tests/notificationlegacy/notificationlegacy29/src/android/app/notification/legacy29/cts/ |
D | NotificationManager29Test.java | 67 private static final String PKG = "android.app.notification.legacy29.cts"; field in NotificationManager29Test 87 mHelper.disableListener(PKG); in tearDown() 140 assertNotNull(mHelper.enableListener(PKG)); in testPostFullScreenIntent_noPermission()
|
/cts/tests/quicksettings/src/android/quicksettings/cts/ |
D | ToggleableTestTileService.java | 24 public static final String PKG = "android.app.stubs"; field in ToggleableTestTileService
|
D | TestTileService.java | 25 public static final String PKG = "android.app.stubs"; field in TestTileService
|