/cts/tests/tests/packageinstaller/adminpackageinstaller/src/android/packageinstaller/admin/cts/ |
D | SilentPackageInstallTest.java | 32 assertFalse(isPackageInstalled(TEST_APP_PKG)); in testSilentInstallUninstall() 42 mDevicePolicyManager.setUninstallBlocked(getWho(), TEST_APP_PKG, true); in testUninstallBlocked() local 43 assertTrue(mDevicePolicyManager.isUninstallBlocked(getWho(), TEST_APP_PKG)); in testUninstallBlocked() local 44 assertTrue(mDevicePolicyManager.isUninstallBlocked(null, TEST_APP_PKG)); in testUninstallBlocked() 46 assertTrue(isPackageInstalled(TEST_APP_PKG)); in testUninstallBlocked() 48 mDevicePolicyManager.setUninstallBlocked(getWho(), TEST_APP_PKG, false); in testUninstallBlocked() local 49 assertFalse(mDevicePolicyManager.isUninstallBlocked(getWho(), TEST_APP_PKG)); in testUninstallBlocked() local 50 assertFalse(mDevicePolicyManager.isUninstallBlocked(null, TEST_APP_PKG)); in testUninstallBlocked() 52 assertFalse(isPackageInstalled(TEST_APP_PKG)); in testUninstallBlocked()
|
D | BasePackageInstallTest.java | 48 protected static final String TEST_APP_PKG = "android.packageinstaller.emptytestapp.cts"; field in BasePackageInstallTest 77 assertEquals(TEST_APP_PKG, intent.getStringExtra( 104 assertFalse(isPackageInstalled(TEST_APP_PKG)); in setUp() 112 mDevicePolicyManager.setUninstallBlocked(getWho(), TEST_APP_PKG, false); in tearDown() local 131 assertFalse(isPackageInstalled(TEST_APP_PKG)); in assertInstallPackage() 145 assertTrue(isPackageInstalled(TEST_APP_PKG)); in assertInstallPackage() 149 assertTrue(isPackageInstalled(TEST_APP_PKG)); in tryUninstallPackage() 154 mPackageInstaller.uninstall(TEST_APP_PKG, getCommitCallback(0)); in tryUninstallPackage() 168 params.setAppPackageName(TEST_APP_PKG); in installPackage() 217 runShellCommand("pm uninstall " + TEST_APP_PKG); in forceUninstall()
|
D | SessionCommitBroadcastTest.java | 91 assertEquals(TEST_APP_PKG, info.getAppPackageName()); in verifySessionIntent() 136 Process.myUserHandle().getIdentifier() + " " + TEST_APP_PKG); in testBroadcastReceivedForEnablingApp()
|
D | InstallReasonTest.java | 35 assertEquals(PackageManager.INSTALL_REASON_POLICY, getInstallReason(TEST_APP_PKG)); in testInstallReason()
|
/cts/hostsidetests/devicepolicy/app/DelegateApp/src/com/android/cts/delegate/ |
D | PackageAccessDelegateTest.java | 36 private static final String TEST_APP_PKG = "com.android.cts.launcherapps.simpleapp"; field in PackageAccessDelegateTest 55 mDpm.isApplicationHidden(null, TEST_APP_PKG); in testCannotAccessApis() 61 mDpm.setApplicationHidden(null, TEST_APP_PKG, true /* hide */); in testCannotAccessApis() 67 mDpm.isPackageSuspended(null, TEST_APP_PKG); in testCannotAccessApis() 73 … mDpm.setPackagesSuspended(null, new String[] {TEST_APP_PKG}, true /* suspend */); in testCannotAccessApis() 81 assertFalse("Package should not be hidden", mDpm.isApplicationHidden(null, TEST_APP_PKG)); in testCanAccessApis() 85 mDpm.setApplicationHidden(null, TEST_APP_PKG, true /* hide */)); in testCanAccessApis() 86 assertTrue("Package should be hidden", mDpm.isApplicationHidden(null, TEST_APP_PKG)); in testCanAccessApis() 89 assertFalse("Package should not be suspended", mDpm.isPackageSuspended(null, TEST_APP_PKG)); in testCanAccessApis() 92 String[] suspended = mDpm.setPackagesSuspended(null, new String[] {TEST_APP_PKG}, in testCanAccessApis() [all …]
|
D | BlockUninstallDelegateTest.java | 34 private static final String TEST_APP_PKG = "com.android.cts.launcherapps.simpleapp"; field in BlockUninstallDelegateTest 52 mDpm.setUninstallBlocked(null, TEST_APP_PKG, true); in testCannotAccessApis() 61 mDpm.setUninstallBlocked(null, TEST_APP_PKG, true); in testCanAccessApis() 62 assertTrue("App not uninstall blocked", mDpm.isUninstallBlocked(null, TEST_APP_PKG)); in testCanAccessApis() 64 mDpm.setUninstallBlocked(null, TEST_APP_PKG, false); in testCanAccessApis() 65 assertFalse("App still uninstall blocked", mDpm.isUninstallBlocked(null, TEST_APP_PKG)); in testCanAccessApis()
|
D | PermissionGrantDelegateTest.java | 39 private static final String TEST_APP_PKG = "com.android.cts.launcherapps.simpleapp"; field in PermissionGrantDelegateTest 67 mDpm.setPermissionGrantState(null, TEST_APP_PKG, TEST_PERMISSION, in testCannotAccessApis() 74 mDpm.getPermissionGrantState(null, TEST_APP_PKG, TEST_PERMISSION); in testCannotAccessApis() 89 mDpm.setPermissionGrantState(null, TEST_APP_PKG, TEST_PERMISSION, in testCanAccessApis() 94 mDpm.getPermissionGrantState(null, TEST_APP_PKG, TEST_PERMISSION)); in testCanAccessApis()
|
D | EnableSystemAppDelegateTest.java | 37 private static final String TEST_APP_PKG = "com.android.cts.launcherapps.simpleapp"; field in EnableSystemAppDelegateTest 55 mDpm.enableSystemApp(null, TEST_APP_PKG); in testCannotAccessApis() 61 mDpm.enableSystemApp(null, new Intent().setPackage(TEST_APP_PKG)); in testCannotAccessApis() 72 mDpm.enableSystemApp(null, TEST_APP_PKG); in testCanAccessApis()
|
/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/devicepolicy/app/PackageInstaller/src/com/android/cts/packageinstaller/ |
D | BasePackageInstallTest.java | 44 protected static final String TEST_APP_PKG = "com.android.cts.launcherapps.simpleapp"; field in BasePackageInstallTest 71 assertEquals(TEST_APP_PKG, intent.getStringExtra( 94 assertFalse(isPackageInstalled(TEST_APP_PKG)); in setUp() 101 mDevicePolicyManager.setUninstallBlocked(getWho(), TEST_APP_PKG, false); in tearDown() local 119 assertFalse(isPackageInstalled(TEST_APP_PKG)); in assertInstallPackage() 121 assertTrue(isPackageInstalled(TEST_APP_PKG)); in assertInstallPackage() 171 assertTrue(isPackageInstalled(TEST_APP_PKG)); in tryUninstallPackage() 173 () -> mPackageInstaller.uninstall(TEST_APP_PKG, getCommitCallback(0))); in tryUninstallPackage()
|
D | SilentPackageInstallTest.java | 30 assertFalse(isPackageInstalled(TEST_APP_PKG)); in testSilentInstallUninstall()
|
D | ManualPackageInstallTest.java | 78 assertFalse(isPackageInstalled(TEST_APP_PKG)); in testManualInstallBlocked()
|
/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/ |
D | DeviceAndProfileOwnerTestApi25.java | 41 private static final String TEST_APP_PKG = "com.android.cts.launcherapps.simpleapp"; field in DeviceAndProfileOwnerTestApi25 56 getDevice().uninstallPackage(TEST_APP_PKG); in tearDown() 111 String command = "am start -W --user " + userId + " " + TEST_APP_PKG + "/" in startSimpleActivityAsUser() 112 + TEST_APP_PKG + ".SimpleActivity"; in startSimpleActivityAsUser()
|
D | DeviceOwnerTest.java | 66 private static final String TEST_APP_PKG = "android.packageinstaller.emptytestapp.cts"; field in DeviceOwnerTest 808 getDevice().uninstallPackage(TEST_APP_PKG); in testPackageInstallCache() 821 .setStrings(TEST_APP_PKG) in testPackageInstallCache() 835 .setStrings(TEST_APP_PKG) in testPackageInstallCache() 840 getDevice().uninstallPackage(TEST_APP_PKG); in testPackageInstallCache() 852 getDevice().uninstallPackage(TEST_APP_PKG); in testPackageInstallCache_multiUser() 895 getDevice().uninstallPackage(TEST_APP_PKG); in testPackageInstallCache_multiUser()
|
D | DeviceAndProfileOwnerTest.java | 91 private static final String TEST_APP_PKG = "com.android.cts.launcherapps.simpleapp"; field in DeviceAndProfileOwnerTest 199 getDevice().uninstallPackage(TEST_APP_PKG); in tearDown() 997 getDevice().uninstallPackage(TEST_APP_PKG); in testPackageInstallUserRestrictions() 1006 getDevice().uninstallPackage(TEST_APP_PKG); in testPackageInstallUserRestrictions() 1030 getDevice().uninstallPackage(TEST_APP_PKG); in testPackageInstallUserRestrictions() 1970 startActivityAsUser(userId, TEST_APP_PKG, TEST_APP_PKG + ".SimpleActivity"); in startSimpleActivityAsUser()
|
/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 | 102 private static final String TEST_APP_PKG = "android.app.usage.cts.test1"; field in UsageStatsTest 1052 if (TaskRootActivity.TEST_APP_PKG.equals(event.getPackageName()) in testTaskRootEventField() 1083 assertAppOrTokenUsed(TaskRootActivity.TEST_APP_PKG, true); in testUsageSourceAttribution() 1171 intent.setClassName(TEST_APP_PKG, TEST_APP_CLASS); in testSuddenDestroy() 1174 mUiDevice.wait(Until.hasObject(By.clazz(TEST_APP_PKG, TEST_APP_CLASS)), TIMEOUT); in testSuddenDestroy() 1178 SystemUtil.runWithShellPermissionIdentity(() -> mAm.forceStopPackage(TEST_APP_PKG)); in testSuddenDestroy() 1179 mUiDevice.wait(Until.gone(By.clazz(TEST_APP_PKG, TEST_APP_CLASS)), TIMEOUT); in testSuddenDestroy() 1192 if(TEST_APP_PKG.equals(event.getPackageName())) { in testSuddenDestroy()
|
/cts/tests/tests/permission/src/android/permission/cts/ |
D | LocationAccessCheckTest.java | 97 private static final String TEST_APP_PKG = "android.permission.cts.appthataccesseslocation"; field in LocationAccessCheckTest 99 private static final String TEST_APP_SERVICE = TEST_APP_PKG + ".AccessLocationOnCommand"; 150 testAppService.setComponent(new ComponentName(TEST_APP_PKG, TEST_APP_SERVICE)); in accessLocation() 330 sUiAutomation.grantRuntimePermission(TEST_APP_PKG, permission); in grantPermissionToTestApp() 364 runShellCommand("pm uninstall " + TEST_APP_PKG); in uninstallBackgroundAccessApp() 558 clearPackageData(TEST_APP_PKG); in notificationIsShownAgainAfterClear() 660 appOpsManager.noteProxyOpNoThrow(AppOpsManager.OPSTR_FINE_LOCATION, TEST_APP_PKG, in noNotificationIfBlamerNotSystemOrLocationProvider() 661 sContext.getPackageManager().getPackageUid(TEST_APP_PKG, 0)); in noNotificationIfBlamerNotSystemOrLocationProvider()
|