/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 | InstallReasonTest.java | 35 assertEquals(PackageManager.INSTALL_REASON_POLICY, getInstallReason(TEST_APP_PKG)); in testInstallReason()
|
D | SessionCommitBroadcastTest.java | 91 assertEquals(TEST_APP_PKG, info.getAppPackageName()); in verifySessionIntent() 136 Process.myUserHandle().getIdentifier() + " " + TEST_APP_PKG); in testBroadcastReceivedForEnablingApp()
|
/cts/tests/tests/permission/src/android/permission/cts/ |
D | NearbyDevicesPermissionTest.java | 67 private static final String TEST_APP_PKG = "android.permission.cts.appthatrequestpermission"; field in NearbyDevicesPermissionTest 110 uninstallApp(TEST_APP_PKG); in uninstallTestApp() 124 grantPermission(TEST_APP_PKG, ACCESS_FINE_LOCATION); in testRequestBluetoothPermission30_GrantLocation() 125 grantPermission(TEST_APP_PKG, ACCESS_BACKGROUND_LOCATION); in testRequestBluetoothPermission30_GrantLocation() 140 grantPermission(TEST_APP_PKG, BLUETOOTH_CONNECT); in testRequestBluetoothPermission31_GrantNearby() 141 grantPermission(TEST_APP_PKG, BLUETOOTH_SCAN); in testRequestBluetoothPermission31_GrantNearby() 149 grantPermission(TEST_APP_PKG, ACCESS_FINE_LOCATION); in testRequestBluetoothPermission31_GrantLocation() 150 grantPermission(TEST_APP_PKG, ACCESS_BACKGROUND_LOCATION); in testRequestBluetoothPermission31_GrantLocation() 158 grantPermission(TEST_APP_PKG, BLUETOOTH_CONNECT); in testRequestBluetoothPermission31_GrantNearby_GrantLocation() 159 grantPermission(TEST_APP_PKG, BLUETOOTH_SCAN); in testRequestBluetoothPermission31_GrantNearby_GrantLocation() [all …]
|
D | LocationAccessCheckTest.java | 110 private static final String TEST_APP_PKG = "android.permission.cts.appthataccesseslocation"; field in LocationAccessCheckTest 112 private static final String TEST_APP_SERVICE = TEST_APP_PKG + ".AccessLocationOnCommand"; 181 sPackageManager.getPackageUid(TEST_APP_PKG, 0), TEST_APP_PKG, in accessLocation() 379 sUiAutomation.grantRuntimePermission(TEST_APP_PKG, permission); in grantPermissionToTestApp() 429 runShellCommand("pm uninstall " + TEST_APP_PKG); in uninstallBackgroundAccessApp() 482 testAppService.setComponent(new ComponentName(TEST_APP_PKG, TEST_APP_SERVICE)); in bindService() 691 clearPackageData(TEST_APP_PKG); in notificationIsShownAgainAfterClear() 820 appOpsManager.noteProxyOpNoThrow(OPSTR_FINE_LOCATION, TEST_APP_PKG, in noNotificationIfBlamerNotSystemOrLocationProvider() 821 sContext.getPackageManager().getPackageUid(TEST_APP_PKG, 0)); in noNotificationIfBlamerNotSystemOrLocationProvider()
|
/cts/hostsidetests/devicepolicy/app/DelegateApp/src/com/android/cts/delegate/ |
D | PackageAccessDelegateTest.java | 33 private static final String TEST_APP_PKG = "com.android.cts.launcherapps.simpleapp"; field in PackageAccessDelegateTest 42 mDpm.isApplicationHidden(null, TEST_APP_PKG); in testCannotAccessApis() 48 mDpm.setApplicationHidden(null, TEST_APP_PKG, true /* hide */); in testCannotAccessApis() 54 mDpm.isPackageSuspended(null, TEST_APP_PKG); in testCannotAccessApis() 60 … mDpm.setPackagesSuspended(null, new String[] {TEST_APP_PKG}, true /* suspend */); in testCannotAccessApis() 68 assertFalse("Package should not be hidden", mDpm.isApplicationHidden(null, TEST_APP_PKG)); in testCanAccessApis() 72 mDpm.setApplicationHidden(null, TEST_APP_PKG, true /* hide */)); in testCanAccessApis() 73 assertTrue("Package should be hidden", mDpm.isApplicationHidden(null, TEST_APP_PKG)); in testCanAccessApis() 76 assertFalse("Package should not be suspended", mDpm.isPackageSuspended(null, TEST_APP_PKG)); in testCanAccessApis() 79 String[] suspended = mDpm.setPackagesSuspended(null, new String[] {TEST_APP_PKG}, in testCanAccessApis() [all …]
|
D | BlockUninstallDelegateTest.java | 32 private static final String TEST_APP_PKG = "com.android.cts.launcherapps.simpleapp"; field in BlockUninstallDelegateTest 40 mDpm.setUninstallBlocked(null, TEST_APP_PKG, true); in testCannotAccessApis() 49 mDpm.setUninstallBlocked(null, TEST_APP_PKG, true); in testCanAccessApis() 50 assertTrue("App not uninstall blocked", mDpm.isUninstallBlocked(null, TEST_APP_PKG)); in testCanAccessApis() 52 mDpm.setUninstallBlocked(null, TEST_APP_PKG, false); in testCanAccessApis() 53 assertFalse("App still uninstall blocked", mDpm.isUninstallBlocked(null, TEST_APP_PKG)); in testCanAccessApis()
|
D | PermissionGrantDelegateTest.java | 37 private static final String TEST_APP_PKG = "com.android.cts.launcherapps.simpleapp"; field in PermissionGrantDelegateTest 55 mDpm.setPermissionGrantState(null, TEST_APP_PKG, TEST_PERMISSION, in testCannotAccessApis() 62 mDpm.getPermissionGrantState(null, TEST_APP_PKG, TEST_PERMISSION); in testCannotAccessApis() 77 mDpm.setPermissionGrantState(null, TEST_APP_PKG, TEST_PERMISSION, in testCanAccessApis() 82 mDpm.getPermissionGrantState(null, TEST_APP_PKG, TEST_PERMISSION)); in testCanAccessApis()
|
D | EnableSystemAppDelegateTest.java | 34 private static final String TEST_APP_PKG = "com.android.cts.launcherapps.simpleapp"; field in EnableSystemAppDelegateTest 43 mDpm.enableSystemApp(null, TEST_APP_PKG); in testCannotAccessApis() 49 mDpm.enableSystemApp(null, new Intent().setPackage(TEST_APP_PKG)); in testCannotAccessApis() 60 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 …]
|
D | UserControlDisabledPackagesTest.java | 39 private static final String TEST_APP_PKG = "android.packageinstaller.emptytestapp.cts"; field in UserControlDisabledPackagesTest
|
/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() 84 String command = "am start -W --user " + userId + " " + TEST_APP_PKG + "/" in startSimpleActivityAsUser() 85 + TEST_APP_PKG + ".SimpleActivity"; in startSimpleActivityAsUser()
|
D | DeviceOwnerTest.java | 68 private static final String TEST_APP_PKG = "android.packageinstaller.emptytestapp.cts"; field in DeviceOwnerTest 625 getDevice().uninstallPackage(TEST_APP_PKG); in testPackageInstallCache() 637 .setStrings(TEST_APP_PKG) in testPackageInstallCache() 651 .setStrings(TEST_APP_PKG) in testPackageInstallCache() 656 getDevice().uninstallPackage(TEST_APP_PKG); in testPackageInstallCache() 669 getDevice().uninstallPackage(TEST_APP_PKG); in testPackageInstallCache_multiUser() 712 getDevice().uninstallPackage(TEST_APP_PKG); in testPackageInstallCache_multiUser()
|
D | OrgOwnedProfileOwnerTest.java | 58 private static final String TEST_APP_PKG = "com.android.cts.launcherapps.simpleapp"; field in OrgOwnedProfileOwnerTest 505 startActivityAsUser(userId, TEST_APP_PKG, TEST_APP_PKG + ".SimpleActivity"); in takeScreenCaptureAsUser() 508 forceStopPackageForUser(TEST_APP_PKG, userId); in takeScreenCaptureAsUser()
|
D | DeviceAndProfileOwnerTest.java | 103 private static final String TEST_APP_PKG = "com.android.cts.launcherapps.simpleapp"; field in DeviceAndProfileOwnerTest 218 getDevice().uninstallPackage(TEST_APP_PKG); in tearDown() 873 getDevice().uninstallPackage(TEST_APP_PKG); in testPackageInstallUserRestrictions() 882 getDevice().uninstallPackage(TEST_APP_PKG); in testPackageInstallUserRestrictions() 895 getDevice().uninstallPackage(TEST_APP_PKG); in testPackageInstallUserRestrictions() 1864 startActivityAsUser(userId, TEST_APP_PKG, TEST_APP_PKG + ".SimpleActivity"); in startSimpleActivityAsUser()
|
/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 | 88 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 | 125 private static final String TEST_APP_PKG = "android.app.usage.cts.test1"; field in UsageStatsTest 194 SystemUtil.runWithShellPermissionIdentity(() -> mAm.forceStopPackage(TEST_APP_PKG)); in cleanUp() 283 verifyLastTimeAnyComponentUsedWithinRange(startTime, endTime, TEST_APP_PKG); in testLastTimeAnyComponentUsed_bindServiceShouldBeDetected() 297 verifyLastTimeAnyComponentUsedWithinRange(startTime, endTime, TEST_APP_PKG); in testLastTimeAnyComponentUsed_bindExplicitBroadcastReceiverShouldBeDetected() 311 verifyLastTimeAnyComponentUsedWithinRange(startTime, endTime, TEST_APP_PKG); in testLastTimeAnyComponentUsed_bindContentProviderShouldBeDetected() 971 setStandByBucket(TEST_APP_PKG, "rare"); in testIsAppInactive() 973 waitUntil(() -> mUsageStatsManager.isAppInactive(TEST_APP_PKG), true); in testIsAppInactive() 977 isAppInactiveAsPermissionlessApp(TEST_APP_PKG)); in testIsAppInactive() 979 launchTestActivity(TEST_APP_PKG, TEST_APP_CLASS); in testIsAppInactive() 981 waitUntil(() -> mUsageStatsManager.isAppInactive(TEST_APP_PKG), false); in testIsAppInactive() [all …]
|
/cts/tests/tests/app.usage/TestApp2/src/android/app/usage/cts/test2/ |
D | FinishingTaskRootActivity.java | 33 public static final String TEST_APP_PKG = "android.app.usage.cts.test1"; field in FinishingTaskRootActivity 46 startActivity(new Intent().setClassName(TEST_APP_PKG, TEST_APP_CLASS)); in onResume()
|
/cts/tests/tests/permission3/src/android/permission3/cts/ |
D | PermissionTest30WithBluetooth.kt | 52 private val TEST_APP_PKG = constant 98 uiAutomation.grantRuntimePermission(TEST_APP_PKG, ACCESS_FINE_LOCATION) in testGivenBluetoothIsDeniedWhenScanIsAttemptedThenThenGetEmptyScanResult() 99 uiAutomation.grantRuntimePermission(TEST_APP_PKG, ACCESS_BACKGROUND_LOCATION) in testGivenBluetoothIsDeniedWhenScanIsAttemptedThenThenGetEmptyScanResult() 129 TEST_APP_PKG, Process.myUserHandle()) and FLAG_PERMISSION_REVOKED_COMPAT in assertBluetoothRevokedCompatState()
|