Home
last modified time | relevance | path

Searched refs:RUNTIME_GRANTED (Results 1 – 11 of 11) sorted by relevance

/frameworks/base/services/tests/PermissionServiceMockingTests/src/com/android/server/permission/test/
DDevicePermissionPolicyTest.kt46 APP_ID_1, DEVICE_ID_1, USER_ID_0, PERMISSION_NAME_0, PermissionFlags.RUNTIME_GRANTED in testOnAppIdRemoved_clearPermissionFlags()
50 ).isEqualTo(PermissionFlags.RUNTIME_GRANTED) in testOnAppIdRemoved_clearPermissionFlags()
69 APP_ID_1, DEVICE_ID_1, USER_ID_0, PERMISSION_NAME_0, PermissionFlags.RUNTIME_GRANTED in testOnDeviceIdRemoved_clearPermissionFlags()
72 APP_ID_1, DEVICE_ID_2, USER_ID_0, PERMISSION_NAME_0, PermissionFlags.RUNTIME_GRANTED in testOnDeviceIdRemoved_clearPermissionFlags()
76 ).isEqualTo(PermissionFlags.RUNTIME_GRANTED) in testOnDeviceIdRemoved_clearPermissionFlags()
79 ).isEqualTo(PermissionFlags.RUNTIME_GRANTED) in testOnDeviceIdRemoved_clearPermissionFlags()
89 .isEqualTo(PermissionFlags.RUNTIME_GRANTED) in testOnDeviceIdRemoved_clearPermissionFlags()
100 APP_ID_1, DEVICE_ID_1, USER_ID_0, PERMISSION_NAME_0, PermissionFlags.RUNTIME_GRANTED in testRemoveInactiveDevicesPermission_clearPermissionFlags()
103 APP_ID_1, DEVICE_ID_2, USER_ID_0, PERMISSION_NAME_0, PermissionFlags.RUNTIME_GRANTED in testRemoveInactiveDevicesPermission_clearPermissionFlags()
107 ).isEqualTo(PermissionFlags.RUNTIME_GRANTED) in testRemoveInactiveDevicesPermission_clearPermissionFlags()
[all …]
DAppIdPermissionPolicyPermissionResetTest.kt37 val oldFlags = PermissionFlags.RUNTIME_GRANTED in testResetRuntimePermissions_runtimeGranted_getsRevoked()
45 val expectedNewFlags = PermissionFlags.ROLE or PermissionFlags.RUNTIME_GRANTED in testResetRuntimePermissions_roleGranted_getsGranted()
51 val oldFlags = PermissionFlags.RUNTIME_GRANTED in testResetRuntimePermissions_nullAndroidPackage_remainsUnchanged()
52 val expectedNewFlags = PermissionFlags.RUNTIME_GRANTED in testResetRuntimePermissions_nullAndroidPackage_remainsUnchanged()
DAppIdPermissionPolicyPermissionStatesTest.kt152 val oldFlags = PermissionFlags.PROTECTION_GRANTED or PermissionFlags.RUNTIME_GRANTED in testEvaluatePermissionState_internalDevelopmentPermission_getsRuntimeGrantedPreserved()
176 PermissionFlags.RUNTIME_GRANTED in testEvaluatePermissionState_internalRolePermission_getsRoleAndRuntimeGrantedPreserved()
310 PermissionFlags.RUNTIME_GRANTED in testEvaluatePermissionState_nonRuntimeFlagsOnRuntimePermissions_getsCleared()
314 val expectedNewFlags = PermissionFlags.PREGRANT or PermissionFlags.RUNTIME_GRANTED in testEvaluatePermissionState_nonRuntimeFlagsOnRuntimePermissions_getsCleared()
392 val expectedNewFlags = PermissionFlags.RUNTIME_GRANTED in testEvaluatePermissionState_legacyGrantedPermissionsAlreadyReviewedForPostM_getsGranted()
468 PermissionFlags.RUNTIME_GRANTED in testEvaluatePermissionState_noLongerLegacyOrImplicitGranted_canBeRequested()
484 val oldFlags = PermissionFlags.IMPLICIT or PermissionFlags.RUNTIME_GRANTED or in testEvaluatePermissionState_noLongerImplicit_getsRuntimeAndImplicitFlagsRemoved()
516 PermissionFlags.RUNTIME_GRANTED in testEvaluatePermissionState_noLongerImplicitNearbyWasGranted_getsRuntimeGranted()
525 val expectedNewFlags = PermissionFlags.RUNTIME_GRANTED in testEvaluatePermissionState_noLongerImplicitNearbyWasGranted_getsRuntimeGranted()
542 val expectedNewFlags = PermissionFlags.RUNTIME_GRANTED or PermissionFlags.SYSTEM_FIXED in testEvaluatePermissionState_noLongerImplicitSystemOrPolicyFixedWasGranted_runtimeGranted()
[all …]
DAppIdPermissionPolicyPermissionDefinitionsTest.kt332 setPermissionFlags(APP_ID_0, USER_ID_0, PERMISSION_NAME_0, PermissionFlags.RUNTIME_GRANTED) in testPermissionChanged()
439 setPermissionFlags(APP_ID_0, USER_ID_0, PERMISSION_NAME_0, PermissionFlags.RUNTIME_GRANTED) in testTrimPermissionStates_permissionsNoLongerRequested_getsFlagsRevoked()
461 PermissionFlags.RUNTIME_GRANTED, in testRevokePermissionsOnPackageUpdate_storageAndMediaDowngradingPastQ_getsRuntimeRevoked()
478 val oldFlags = PermissionFlags.RUNTIME_GRANTED in testRevokePermissionsOnPackageUpdate_storageAndMediaNotDowngradingPastQ_remainsUnchanged()
498 val oldFlags = PermissionFlags.RUNTIME_GRANTED and PermissionFlags.POLICY_FIXED in testRevokePermissionsOnPackageUpdate_policyFixedDowngradingPastQ_remainsUnchanged()
515 PermissionFlags.RUNTIME_GRANTED, in testRevokePermissionsOnPackageUpdate_newlyRequestingLegacyExternalStorage_runtimeRevoked()
534 val oldFlags = PermissionFlags.RUNTIME_GRANTED in testRevokePermissionsOnPackageUpdate_missingOldPackage_remainsUnchanged()
/frameworks/base/services/permission/java/com/android/server/permission/access/permission/
DPermissionFlags.kt90 const val RUNTIME_GRANTED = 1 shl 4 constant
303 RUNTIME_GRANTED or
346 return flags.hasBits(RUNTIME_GRANTED) in isPermissionGranted()
425 if (isGranted) flags or RUNTIME_GRANTED else flags andInv RUNTIME_GRANTED in updateRuntimePermissionGranted()
441 flags = flags or (oldFlags and RUNTIME_GRANTED) in fromApiFlags()
509 RUNTIME_GRANTED -> "RUNTIME_GRANTED" in flagToString()
DAppIdPermissionMigration.kt125 PermissionFlags.PROTECTION_GRANTED or PermissionFlags.RUNTIME_GRANTED in <lambda>()
133 if (legacyPermissionState.isGranted) PermissionFlags.RUNTIME_GRANTED else 0 in <lambda>()
DAppIdPermissionPolicy.kt305 newFlags or PermissionFlags.RUNTIME_GRANTED in <lambda>()
307 newFlags andInv PermissionFlags.RUNTIME_GRANTED in <lambda>()
765 oldFlags.hasBits(PermissionFlags.RUNTIME_GRANTED) && in <lambda>()
774 oldFlags andInv (PermissionFlags.RUNTIME_GRANTED or USER_SETTABLE_MASK) in <lambda>()
942 newFlags = newFlags or (oldFlags and PermissionFlags.RUNTIME_GRANTED) in <lambda>()
947 (oldFlags and (PermissionFlags.ROLE or PermissionFlags.RUNTIME_GRANTED)) in <lambda>()
986 newFlags = newFlags or PermissionFlags.RUNTIME_GRANTED in <lambda>()
1030 (PermissionFlags.RUNTIME_GRANTED or PermissionFlags.APP_OP_REVOKED) in <lambda>()
1050 newFlags = newFlags or PermissionFlags.RUNTIME_GRANTED in <lambda>()
1055 (PermissionFlags.RUNTIME_GRANTED or in <lambda>()
DDevicePermissionPersistence.kt148 flags andInv PermissionFlags.RUNTIME_GRANTED in <lambda>()
DAppIdPermissionUpgrade.kt284 flags = flags or PermissionFlags.RUNTIME_GRANTED in <lambda>()
DAppIdPermissionPersistence.kt224 flags andInv PermissionFlags.RUNTIME_GRANTED in <lambda>()
/frameworks/base/services/permission/java/com/android/server/permission/access/appop/
DAppOpService.kt222 PermissionFlags.RUNTIME_GRANTED in <lambda>()
236 backgroundFlags: Int = PermissionFlags.RUNTIME_GRANTED in <lambda>()
542 PermissionFlags.RUNTIME_GRANTED, in <lambda>()
544 PermissionFlags.RUNTIME_GRANTED in <lambda>()