/cts/tests/tests/packageinstaller/adminpackageinstaller/src/android/packageinstaller/admin/cts/ |
D | SilentPackageInstallTest.java | 42 assertFalse(isPackageInstalled(TEST_APP_PKG)); in testSilentInstallUninstall() 50 mDevicePolicyManager.setUninstallBlocked(mDeviceOwner, TEST_APP_PKG, true); in testUninstallBlocked() 51 assertTrue(mDevicePolicyManager.isUninstallBlocked(mDeviceOwner, TEST_APP_PKG)); in testUninstallBlocked() 52 assertTrue(mDevicePolicyManager.isUninstallBlocked(null, TEST_APP_PKG)); in testUninstallBlocked() 54 assertTrue(isPackageInstalled(TEST_APP_PKG)); in testUninstallBlocked() 56 mDevicePolicyManager.setUninstallBlocked(mDeviceOwner, TEST_APP_PKG, false); in testUninstallBlocked() 57 assertFalse(mDevicePolicyManager.isUninstallBlocked(mDeviceOwner, TEST_APP_PKG)); in testUninstallBlocked() 58 assertFalse(mDevicePolicyManager.isUninstallBlocked(null, TEST_APP_PKG)); in testUninstallBlocked() 60 assertFalse(isPackageInstalled(TEST_APP_PKG)); in testUninstallBlocked()
|
D | BasePackageInstallTest.java | 68 protected static final String TEST_APP_PKG = "android.packageinstaller.emptytestapp.cts"; field in BasePackageInstallTest 98 assertEquals(TEST_APP_PKG, intent.getStringExtra( 137 assertFalse(isPackageInstalled(TEST_APP_PKG)); in setUp() 155 mDevicePolicyManager.setUninstallBlocked(mDeviceOwner, TEST_APP_PKG, false); in tearDown() 178 assertFalse(isPackageInstalled(TEST_APP_PKG)); in assertInstallPackage() 192 assertTrue(isPackageInstalled(TEST_APP_PKG)); in assertInstallPackage() 196 assertTrue(isPackageInstalled(TEST_APP_PKG)); in tryUninstallPackage() 201 mPackageInstaller.uninstall(TEST_APP_PKG, getCommitCallback(0)); in tryUninstallPackage() 215 params.setAppPackageName(TEST_APP_PKG); in installPackage() 266 runShellCommand("pm uninstall " + TEST_APP_PKG); in forceUninstall()
|
D | InstallReasonTest.java | 43 assertEquals(PackageManager.INSTALL_REASON_POLICY, getInstallReason(TEST_APP_PKG)); in testInstallReason()
|
D | SessionCommitBroadcastTest.java | 109 assertEquals(TEST_APP_PKG, info.getAppPackageName()); in verifySessionIntent() 179 Process.myUserHandle().getIdentifier() + " " + TEST_APP_PKG); in testBroadcastReceivedForEnablingApp()
|
/cts/tests/tests/app.usage/BroadcastResponseStats/src/android/app/usage/brs/cts/ |
D | BroadcastResponseStatsTest.java | 90 private static final String TEST_APP_PKG = "android.app.usage.cts.test1"; field in BroadcastResponseStatsTest 179 SystemUtil.runShellCommand("am force-stop " + TEST_APP_PKG); in setUp() 199 TEST_APP_PKG, TEST_APP_CLASS_BROADCAST_RECEIVER)); in testBroadcastOptions_noPermission() 214 mUsageStatsManager.queryBroadcastResponseStats(TEST_APP_PKG, TEST_RESPONSE_STATS_ID_1); in testQueryBroadcastResponseStats_noPermission() 219 mUsageStatsManager.queryBroadcastResponseStats(TEST_APP_PKG, in testQueryBroadcastResponseStats_noPermission() 229 mUsageStatsManager.clearBroadcastResponseStats(TEST_APP_PKG, TEST_RESPONSE_STATS_ID_1); in testClearBroadcastResponseStats_noPermission() 234 mUsageStatsManager.clearBroadcastResponseStats(TEST_APP_PKG, in testClearBroadcastResponseStats_noPermission() 245 assertResponseStats(TEST_APP_PKG, TEST_RESPONSE_STATS_ID_1, in testBroadcastResponseStats_broadcastDispatchedCount() 250 assertResponseStats(TEST_APP_PKG, TEST_RESPONSE_STATS_ID_2, in testBroadcastResponseStats_broadcastDispatchedCount() 263 TEST_APP_PKG, TEST_APP_CLASS_BROADCAST_RECEIVER)); in testBroadcastResponseStats_broadcastDispatchedCount() [all …]
|
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/ |
D | PackageInstallTest.java | 23 private static final String TEST_APP_PKG = "android.packageinstaller.emptytestapp.cts"; field in PackageInstallTest 56 assertFalse(isPackageInstalled(TEST_APP_PKG)); in testPackageInstall() 66 assertEquals(TEST_APP_PKG, intent.getStringExtra( in testPackageInstall() 68 assertTrue(isPackageInstalled(TEST_APP_PKG)); in testPackageInstall() 72 assertTrue(isPackageInstalled(TEST_APP_PKG)); in testPackageUninstall() 75 mPackageInstaller.uninstall(TEST_APP_PKG, getCommitCallback()); in testPackageUninstall() 82 assertEquals(TEST_APP_PKG, intent.getStringExtra( in testPackageUninstall() 84 assertFalse(isPackageInstalled(TEST_APP_PKG)); in testPackageUninstall() 90 Collections.singletonList(TEST_APP_PKG)); in testKeepPackageCache() 94 assertFalse(isPackageInstalled(TEST_APP_PKG)); in testInstallExistingPackage() [all …]
|
/cts/hostsidetests/compilation/src/android/compilation/cts/ |
D | CompilationTest.java | 50 private static final String TEST_APP_PKG = "android.compilation.cts"; field in CompilationTest 75 getDevice().uninstallPackage(TEST_APP_PKG); in tearDown() 119 mUtils.assertCommandSucceeds("pm clear " + TEST_APP_PKG); in testArtService() 122 mUtils.assertCommandSucceeds("pm compile -m verify -f " + TEST_APP_PKG); in testArtService() 124 String dump = mUtils.assertCommandSucceeds("pm art dump " + TEST_APP_PKG); in testArtService() 128 dump = mUtils.assertCommandSucceeds("dumpsys package " + TEST_APP_PKG); in testArtService() 133 mUtils.assertCommandSucceeds("pm compile -m speed-profile " + TEST_APP_PKG); in testArtService() 135 dump = mUtils.assertCommandSucceeds("pm art dump " + TEST_APP_PKG); in testArtService() 139 dump = mUtils.assertCommandSucceeds("dumpsys package " + TEST_APP_PKG); in testArtService() 266 String dump = mUtils.assertCommandSucceeds("pm art dump " + TEST_APP_PKG); in testEmbeddedProfileOk() [all …]
|
/cts/hostsidetests/devicepolicy/app/PackageInstaller/src/com/android/cts/packageinstaller/ |
D | BasePackageInstallTest.java | 45 protected static final String TEST_APP_PKG = "com.android.cts.launcherapps.simpleapp"; field in BasePackageInstallTest 72 assertEquals(TEST_APP_PKG, intent.getStringExtra( 95 assertFalse(isPackageInstalled(TEST_APP_PKG)); in setUp() 102 mDevicePolicyManager.setUninstallBlocked(getWho(), TEST_APP_PKG, false); in tearDown() local 120 assertFalse(isPackageInstalled(TEST_APP_PKG)); in assertInstallPackage() 122 assertTrue(isPackageInstalled(TEST_APP_PKG)); in assertInstallPackage() 173 assertTrue(isPackageInstalled(TEST_APP_PKG)); in tryUninstallPackage() 175 () -> mPackageInstaller.uninstall(TEST_APP_PKG, getCommitCallback(0))); in tryUninstallPackage()
|
D | SilentPackageInstallTest.java | 30 assertFalse(isPackageInstalled(TEST_APP_PKG)); in testSilentInstallUninstall()
|
D | ManualPackageInstallTest.java | 89 assertFalse(isPackageInstalled(TEST_APP_PKG)); in testManualInstallBlocked()
|
/cts/tests/tests/app.usage/src/android/app/usage/cts/ |
D | TaskRootActivity.java | 30 public static final String TEST_APP_PKG = "android.app.usage.cts.test1"; field in TaskRootActivity 46 intent.setClassName(TEST_APP_PKG, TEST_APP_CLASS); in onResume() 48 mUiDevice.wait(Until.hasObject(By.clazz(TEST_APP_PKG, TEST_APP_CLASS)), TIMEOUT); in onResume()
|
D | UsageStatsTest.java | 167 static final String TEST_APP_PKG = "android.app.usage.cts.test1"; field in UsageStatsTest 266 SystemUtil.runWithShellPermissionIdentity(() -> mAm.forceStopPackage(TEST_APP_PKG)); in cleanUp() 324 executeShellCmd(MessageFormat.format(PRUNE_PACKAGE_DATA_SHELL_COMMAND, TEST_APP_PKG, in clearTestPackagesData() 453 verifyLastTimeAnyComponentUsedWithinRange(startTime, endTime, TEST_APP_PKG); in testLastTimeAnyComponentUsed_bindServiceShouldBeDetected() 467 verifyLastTimeAnyComponentUsedWithinRange(startTime, endTime, TEST_APP_PKG); in testLastTimeAnyComponentUsed_bindExplicitBroadcastReceiverShouldBeDetected() 481 verifyLastTimeAnyComponentUsedWithinRange(startTime, endTime, TEST_APP_PKG); in testLastTimeAnyComponentUsed_bindContentProviderShouldBeDetected() 693 launchTestActivity(TEST_APP_PKG, TEST_APP_CLASS_FINISH_SELF_ON_RESUME, in testAppLaunchCount() 703 launchTestActivity(TEST_APP_PKG, TEST_APP_CLASS_FINISH_SELF_ON_RESUME, in testAppLaunchCount() 1055 for (String pkg : new String[] {TEST_APP_PKG, TEST_APP_API_32_PKG}) { in testNotificationSeen_verifyBucket() 1062 waitUntil(() -> mUsageStatsManager.getAppStandbyBucket(TEST_APP_PKG), in testNotificationSeen_verifyBucket() [all …]
|
/cts/tests/tests/app.usage/TestApp2/src/android/app/usage/cts/test2/ |
D | FinishingTaskRootActivity.java | 30 public static final String TEST_APP_PKG = "android.app.usage.cts.test1"; field in FinishingTaskRootActivity 42 startActivity(new Intent().setClassName(TEST_APP_PKG, TEST_APP_CLASS)); in onResume()
|
/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/ |
D | DeviceAndProfileOwnerTestApi25.java | 31 private static final String TEST_APP_PKG = "com.android.cts.launcherapps.simpleapp"; field in DeviceAndProfileOwnerTestApi25 42 getDevice().uninstallPackage(TEST_APP_PKG); in tearDown()
|
D | DeviceOwnerTest.java | 66 private static final String TEST_APP_PKG = "android.packageinstaller.emptytestapp.cts"; field in DeviceOwnerTest 630 getDevice().uninstallPackage(TEST_APP_PKG); in testPackageInstallCache() 642 .setStrings(TEST_APP_PKG) in testPackageInstallCache() 656 .setStrings(TEST_APP_PKG) in testPackageInstallCache() 661 getDevice().uninstallPackage(TEST_APP_PKG); in testPackageInstallCache() 676 getDevice().uninstallPackage(TEST_APP_PKG); in testPackageInstallCache_multiUser() 719 getDevice().uninstallPackage(TEST_APP_PKG); in testPackageInstallCache_multiUser()
|
D | DeviceAndProfileOwnerTest.java | 97 private static final String TEST_APP_PKG = "com.android.cts.launcherapps.simpleapp"; field in DeviceAndProfileOwnerTest 191 getDevice().uninstallPackage(TEST_APP_PKG); in tearDown() 615 getDevice().uninstallPackage(TEST_APP_PKG); in testPackageInstallUserRestrictions() 624 getDevice().uninstallPackage(TEST_APP_PKG); in testPackageInstallUserRestrictions() 638 getDevice().uninstallPackage(TEST_APP_PKG); in testPackageInstallUserRestrictions() 1180 startActivityAsUser(userId, TEST_APP_PKG, TEST_APP_PKG + ".SimpleActivity"); in startSimpleActivityAsUser()
|
D | OrgOwnedProfileOwnerTest.java | 64 private static final String TEST_APP_PKG = "com.android.cts.launcherapps.simpleapp"; field in OrgOwnedProfileOwnerTest
|
/cts/tests/tests/content/src/android/content/pm/cts/ |
D | PackageManagerMultiArchAppTest.java | 81 private static final String TEST_APP_PKG = "com.android.cts.multiarch.app"; field in PackageManagerMultiArchAppTest 268 PackageInfo pi = mPackageManager.getPackageInfo(TEST_APP_PKG, 0); in isInstalled() 293 uninstallPackage(TEST_APP_PKG); in setUp() 299 uninstallPackage(TEST_APP_PKG); in cleanUp()
|