/cts/tests/tests/permission/src/android/permission/cts/ |
D | UndefinedGroupPermissionTest.kt | 106 Assert.assertEquals(mPm!!.checkPermission(CAMERA, APP_PKG_NAME), in testCustomPermissionGrantedAlone() 108 Assert.assertEquals(mPm!!.checkPermission(RECORD_AUDIO, APP_PKG_NAME), in testCustomPermissionGrantedAlone() 110 Assert.assertEquals(mPm!!.checkPermission(TEST, APP_PKG_NAME), in testCustomPermissionGrantedAlone() 118 Assert.assertEquals(mPm!!.checkPermission(CAMERA, APP_PKG_NAME), in testCustomPermissionGrantedAlone() 120 Assert.assertEquals(mPm!!.checkPermission(RECORD_AUDIO, APP_PKG_NAME), in testCustomPermissionGrantedAlone() 122 Assert.assertEquals(mPm!!.checkPermission(TEST, APP_PKG_NAME), in testCustomPermissionGrantedAlone() 152 Assert.assertEquals("$grantedPerm not granted.", mPm!!.checkPermission(grantedPerm, in testOtherGroupPermissionsNotGranted() 169 mPm!!.checkPermission(targetPermission, in testOtherGroupPermissionsNotGranted() 173 Assert.assertEquals(mPm!!.checkPermission(targetPermission, APP_PKG_NAME), in testOtherGroupPermissionsNotGranted()
|
D | OneTimePermissionTest.java | 201 .checkPermission(ACCESS_FINE_LOCATION, APP_PKG_NAME)); in testStickyServiceMaintainsPermissionOnRestart() 208 .checkPermission(ACCESS_FINE_LOCATION, APP_PKG_NAME)), timeoutMillis); in assertGrantedState()
|
D | ProviderPermissionTest.java | 250 final boolean grantedMedia = pm.checkPermission(WRITE_MEDIA_STORAGE, in testWriteMediaStorage() 262 final boolean grantedStorage = pm.checkPermission(WRITE_EXTERNAL_STORAGE, in testWriteMediaStorage()
|
D | StorageEscalationTest.kt | 113 Assert.assertEquals(granted, userContext.packageManager.checkPermission(permName, in <lambda>()
|
D | RevokePermissionTest.kt | 145 assertEquals(PERMISSION_GRANTED, pm.checkPermission(READ_CALENDAR, APP_PKG_NAME)) in testRevoke()
|
/cts/tests/backup/src/android/backup/cts/ |
D | PermissionTest.java | 107 assertEquals(PERMISSION_GRANTED, checkPermission(APP, ACCESS_FINE_LOCATION)); in testGrantDeniedRuntimePermission() 108 assertEquals(PERMISSION_DENIED, checkPermission(APP, READ_CONTACTS)); in testGrantDeniedRuntimePermission() 152 assertEquals(PERMISSION_GRANTED, checkPermission(APP, WRITE_CONTACTS)); in testNoTriStateRuntimePermission() 154 assertEquals(PERMISSION_DENIED, checkPermission(APP, ACCESS_FINE_LOCATION)); in testNoTriStateRuntimePermission() 155 assertEquals(PERMISSION_DENIED, checkPermission(APP, ACCESS_BACKGROUND_LOCATION)); in testNoTriStateRuntimePermission() 194 assertEquals(PERMISSION_GRANTED, checkPermission(APP, ACCESS_FINE_LOCATION)); in testGrantForegroundRuntimePermission() 195 assertEquals(PERMISSION_DENIED, checkPermission(APP, ACCESS_BACKGROUND_LOCATION)); in testGrantForegroundRuntimePermission() 234 assertEquals(PERMISSION_GRANTED, checkPermission(APP, ACCESS_FINE_LOCATION)); in testGrantForegroundAndBackgroundRuntimePermission() 235 assertEquals(PERMISSION_GRANTED, checkPermission(APP, ACCESS_BACKGROUND_LOCATION)); in testGrantForegroundAndBackgroundRuntimePermission() 324 eventually(() -> assertEquals(PERMISSION_DENIED, checkPermission(APP, WRITE_CONTACTS))); in testRestoreOfFlagDoesNotGrantPermission() [all …]
|
/cts/tests/tests/permission2/src/android/permission2/cts/ |
D | PermissionMaxSdkVersionTest.java | 39 int result = mContext.checkPermission(UNGRANTABLE_PERMISSION, in testMaxSdkInPast() 52 int result = mContext.checkPermission(GRANTABLE_PERMISSION, in testMaxSdkInFuture()
|
/cts/tests/tests/content/src/android/content/pm/cts/ |
D | PermissionFeatureTest.java | 76 pm.checkPermission(permName, getContext().getPackageName())); in assertPermissionGranted() 82 pm.checkPermission(permName, getContext().getPackageName())); in assertPermissionDenied()
|
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ |
D | PermissionsTest.java | 273 PermissionUtils.checkPermission(DEVELOPMENT_PERMISSION, PERMISSION_DENIED, in assertCannotSetPermissionGrantStateDevelopmentPermission() 292 PermissionUtils.checkPermission(permission, PERMISSION_GRANTED, PRE_M_APP_PACKAGE_NAME); in assertCannotSetPermissionGrantStatePreMApp() 312 PermissionUtils.checkPermission(permission, PERMISSION_GRANTED, PRE_M_APP_PACKAGE_NAME); in assertCanSetPermissionGrantStatePreMApp() 433 PermissionUtils.checkPermission(READ_CONTACTS, PERMISSION_DENIED, in testPermissionPrompts() 437 PermissionUtils.checkPermission(READ_CONTACTS, PERMISSION_GRANTED, in testPermissionPrompts() 454 PermissionUtils.checkPermission(sensorPermission, PERMISSION_GRANTED, in testSensorsRelatedPermissionsCannotBeGranted() 477 PermissionUtils.checkPermission(sensorPermission, PERMISSION_DENIED, in testSensorsRelatedPermissionsNotGrantedViaPolicy() 485 PermissionUtils.checkPermission(sensorPermission, PERMISSION_GRANTED, in testSensorsRelatedPermissionsNotGrantedViaPolicy() 529 assertEquals(mContext.getPackageManager().checkPermission(permission, in assertFailedToSetPermissionGrantState()
|
/cts/hostsidetests/appsecurity/test-apps/LocationPolicyApp/src/android/appsecurity/cts/locationpolicy/ |
D | LocationPolicyTest.java | 47 pm.checkPermission(Manifest.permission.ACCESS_FINE_LOCATION, in testLocationPolicyPermissions() 51 pm.checkPermission(Manifest.permission.ACCESS_COARSE_LOCATION, in testLocationPolicyPermissions()
|
/cts/tests/tests/permission3/src/android/permission3/cts/ |
D | PermissionTapjackingTest.kt | 91 if (packageManager.checkPermission(ACCESS_FINE_LOCATION, APP_PACKAGE_NAME) == in tryClicking() 109 if (packageManager.checkPermission(ACCESS_FINE_LOCATION, APP_PACKAGE_NAME) == in tryClicking()
|
/cts/hostsidetests/devicepolicy/app/common/src/com/android/cts/devicepolicy/ |
D | PermissionUtils.java | 118 public static void checkPermission(String permission, int expected, String packageName) { in checkPermission() method in PermissionUtils 120 .checkPermission(permission, packageName), expected); in checkPermission() 134 if (getContext().checkPermission(permission, -1, packageInfo.applicationInfo.uid) in checkPermissionAndAppOps()
|
/cts/hostsidetests/appsecurity/test-apps/keysets/testApp/src/com/android/cts/keysets/ |
D | KeySetPermissionsTest.java | 38 … pm.checkPermission(KEYSET_PERM_NAME, KEYSET_APP_PKG) == PackageManager.PERMISSION_GRANTED); in testHasPerm()
|
/cts/tests/tests/telecom/ThirdPtyInCallServiceTestApp/src/android/telecom/cts/thirdptyincallservice/ |
D | CtsThirdPartyInCallServiceControl.java | 56 return getPackageManager().checkPermission(permission
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/ |
D | StepSensorPermissionTestActivity.java | 123 checkPermission(Manifest.permission.ACTIVITY_RECOGNITION, permissionGranted); in runTest() 154 private void checkPermission(String permission, boolean expected) { in checkPermission() method in StepSensorPermissionTestActivity
|
/cts/hostsidetests/appsecurity/test-apps/V3SigningSchemeRotation/src/android/appsecurity/cts/v3rotationtests/ |
D | V3RotationTest.java | 122 pm.checkPermission(PERMISSION_NAME, COMPANION_PKG) in testHasPerm() 129 pm.checkPermission(PERMISSION_NAME, COMPANION_PKG) in testHasNoPerm()
|
/cts/hostsidetests/appsecurity/test-apps/PackageInstallerWhitelistApp/src/com/android/cts/packageinstallerpermissionwhitelistapp/ |
D | PermissionWhitelistTest.kt | 92 assertThat(packageManager.checkPermission(permission, TARGET_PKG)) in removeWhitelistRestrictedPermission()
|
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | BaseDefaultPermissionGrantPolicyTest.java | 542 if (packageManager.checkPermission(permission, packageInfo.packageName) in checkDefaultGrantsInCorrectState() 552 && packageManager.checkPermission(Manifest.permission.ACCESS_FINE_LOCATION, in checkDefaultGrantsInCorrectState() 564 if (!fixed && packageManager.checkPermission(permission, packageInfo.packageName) in checkDefaultGrantsInCorrectState() 596 && packageManager.checkPermission(requestedPermission, in checkPackagesForUnexpectedGrants()
|
/cts/hostsidetests/appsecurity/test-apps/UseProcessSuccess/src/com/android/cts/useprocess/ |
D | BaseNetworkService.java | 126 int hasPerm = checkPermission(android.Manifest.permission.INTERNET,
|
/cts/hostsidetests/accounts/test-apps/AccountManagerCrossUserApp/src/com/android/cts/accountmanager/ |
D | AccountManagerCrossUserTest.java | 235 assertThat(mContext.getPackageManager().checkPermission(permission, in assertPermissionRevoked()
|
/cts/tests/tests/content/src/android/content/cts/ |
D | ContextTest.java | 1253 int returnValue = mContext.checkPermission( in testCheckPermissionGranted() 1259 int returnValue = mContext.checkPermission( in testCheckPermissionNotGranted() 1266 int returnValue = mContext.checkPermission(NOT_GRANTED_PERMISSION, 1, ROOT_UID); in testCheckPermissionRootUser() 1273 int returnValue = mContext.checkPermission(null, 0, ROOT_UID); in testCheckPermissionInvalidRequest() 1279 int returnValue = mContext.checkPermission(GRANTED_PERMISSION, 1, -11); in testCheckPermissionInvalidRequest()
|
/cts/hostsidetests/scopedstorage/libs/ScopedStorageTestLib/src/android/scopedstorage/cts/lib/ |
D | TestUtils.java | 1084 () -> granted == checkPermission(packageName, perm), in pollForPermission() 1092 public static boolean checkPermission(String packageName, String perm) { in checkPermission() method in TestUtils 1108 public static boolean checkPermission(TestApp app, String perm) { in checkPermission() method in TestUtils 1109 return checkPermission(app.getPackageName(), perm); in checkPermission() 1313 if (context.checkPermission(permission, pid, uid) != PackageManager.PERMISSION_GRANTED) { in checkPermissionAndAppOp()
|
/cts/hostsidetests/scopedstorage/device/src/android/scopedstorage/cts/device/ |
D | RedactUriDeviceTest.java | 25 import static android.scopedstorage.cts.lib.TestUtils.checkPermission; 119 assertThat(checkPermission(APP_B_NO_PERMS, in setupApps()
|
/cts/tests/tests/permission/permissionTestUtilLib/src/android/permission/cts/ |
D | PermissionUtils.java | 151 return sContext.checkPermission(permission, Process.myPid(), in isPermissionGranted()
|
/cts/tests/tests/role/src/android/app/role/cts/ |
D | RoleManagerTest.java | 906 assertThat(sPackageManager.checkPermission(android.Manifest.permission.SEND_SMS, in addSmsRoleHolderThenPermissionIsGranted() 918 assertThat(sPackageManager.checkPermission(android.Manifest.permission.SEND_SMS, in removeSmsRoleHolderThenPermissionIsRevoked() 932 assertThat(sPackageManager.checkPermission(android.Manifest.permission.SEND_SMS, in removeSmsRoleHolderThenDialerRolePermissionIsRetained()
|