/frameworks/base/services/tests/PermissionServiceMockingTests/src/com/android/server/permission/test/ |
D | AppIdPermissionPolicyPermissionStatesTest.kt | 26 import com.android.server.permission.access.permission.PermissionFlags 54 val oldFlags = PermissionFlags.INSTALL_GRANTED or PermissionFlags.INSTALL_REVOKED in testEvaluatePermissionState_normalPermissionAlreadyGranted_remainsUnchanged() 78 val expectedNewFlags = PermissionFlags.INSTALL_GRANTED in testEvaluatePermissionState_normalPermissionNotInstallRevoked_getsGranted() 90 val oldFlags = PermissionFlags.ROLE or PermissionFlags.USER_SET in testEvaluatePermissionState_normalAppOpPermission_getsRoleAndUserSetFlagsPreserved() 97 val expectedNewFlags = PermissionFlags.INSTALL_GRANTED or oldFlags in testEvaluatePermissionState_normalAppOpPermission_getsRoleAndUserSetFlagsPreserved() 109 val oldFlags = PermissionFlags.PROTECTION_GRANTED in testEvaluatePermissionState_internalWasGrantedWithMissingPackage_getsProtectionGranted() 128 val oldFlags = PermissionFlags.PROTECTION_GRANTED or PermissionFlags.ROLE or in testEvaluatePermissionState_internalAppOpPermission_getsRoleAndUserSetFlagsPreserved() 129 PermissionFlags.USER_SET in testEvaluatePermissionState_internalAppOpPermission_getsRoleAndUserSetFlagsPreserved() 152 val oldFlags = PermissionFlags.PROTECTION_GRANTED or PermissionFlags.RUNTIME_GRANTED in testEvaluatePermissionState_internalDevelopmentPermission_getsRuntimeGrantedPreserved() 175 val oldFlags = PermissionFlags.PROTECTION_GRANTED or PermissionFlags.ROLE or in testEvaluatePermissionState_internalRolePermission_getsRoleAndRuntimeGrantedPreserved() [all …]
|
D | DevicePermissionPolicyTest.kt | 24 import com.android.server.permission.access.permission.PermissionFlags 46 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() [all …]
|
D | AppIdPermissionPolicyPermissionResetTest.kt | 21 import com.android.server.permission.access.permission.PermissionFlags 37 val oldFlags = PermissionFlags.RUNTIME_GRANTED in testResetRuntimePermissions_runtimeGranted_getsRevoked() 44 val oldFlags = PermissionFlags.ROLE in testResetRuntimePermissions_roleGranted_getsGranted() 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()
|
D | AppIdPermissionPolicyTest.kt | 25 import com.android.server.permission.access.permission.PermissionFlags 48 setPermissionFlags(APP_ID_1, USER_ID_0, PERMISSION_NAME_0, PermissionFlags.INSTALL_GRANTED) in testOnAppIdRemoved_appIdIsRemoved_permissionFlagsCleared() 77 val oldFlags = PermissionFlags.INSTALL_REVOKED in testOnStorageVolumeMounted_nonSystemAppAfterNonSystemUpdate_remainsRevoked() 116 val oldFlags = PermissionFlags.INSTALL_GRANTED in testOnPackageRemoved_packageIsRemoved_permissionDefinitionsAndStatesAreUpdated() 145 val app1ExpectedNewFlags = PermissionFlags.INSTALL_REVOKED in testOnPackageRemoved_packageIsRemoved_permissionDefinitionsAndStatesAreUpdated() 157 val oldFlags = PermissionFlags.SOFT_RESTRICTED or PermissionFlags.UPGRADE_EXEMPT in testOnPackageInstalled_nonSystemAppIsInstalled_upgradeExemptFlagIsCleared() 163 val expectedNewFlags = PermissionFlags.SOFT_RESTRICTED in testOnPackageInstalled_nonSystemAppIsInstalled_upgradeExemptFlagIsCleared() 175 val oldFlags = PermissionFlags.SOFT_RESTRICTED or PermissionFlags.UPGRADE_EXEMPT in testOnPackageInstalled_systemAppIsInstalled_upgradeExemptFlagIsRetained() 194 val oldFlags = PermissionFlags.SOFT_RESTRICTED or PermissionFlags.UPGRADE_EXEMPT in testOnPackageInstalled_requestedPermissionAlsoRequestedBySystemApp_exemptFlagIsRetained() 220 val oldFlags = PermissionFlags.RESTRICTION_REVOKED in testOnPackageInstalled_restrictedPermissionsNotExempt_getsRestrictionFlags() [all …]
|
D | AppIdPermissionPolicyPermissionDefinitionsTest.kt | 23 import com.android.server.permission.access.permission.PermissionFlags 332 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() 601 val oldFlags = PermissionFlags.INSTALL_REVOKED in testEvaluatePermissionState_normalPermissionRequestedByInstalledPackage_getsGranted() 617 val expectedNewFlags = PermissionFlags.INSTALL_GRANTED in testEvaluatePermissionState_normalPermissionRequestedByInstalledPackage_getsGranted() [all …]
|
/frameworks/base/services/permission/java/com/android/server/permission/access/permission/ |
D | AppIdPermissionUpgrade.kt | 93 PermissionFlags.UPGRADE_EXEMPT, in <lambda>() 94 PermissionFlags.UPGRADE_EXEMPT in <lambda>() 119 PermissionFlags.isAppOpGranted(accessFineLocationFlags) || in <lambda>() 120 PermissionFlags.isAppOpGranted(accessCoarseLocationFlags) in <lambda>() 147 if (PermissionFlags.isAppOpGranted(flags)) { in <lambda>() 174 PermissionFlags.isAppOpGranted(flags) && flags.hasBits(PermissionFlags.USER_SET) in <lambda>() 202 if (backgroundBodySensorsFlags.hasAnyBit(PermissionFlags.MASK_EXEMPT)) { in <lambda>() 212 PermissionFlags.UPGRADE_EXEMPT, in <lambda>() 213 PermissionFlags.UPGRADE_EXEMPT, in <lambda>() 219 val isForegroundBodySensorsGranted = PermissionFlags.isAppOpGranted(bodySensorsFlags) in <lambda>() [all …]
|
D | AppIdPermissionMigration.kt | 118 PermissionFlags.INSTALL_GRANTED in <lambda>() 120 PermissionFlags.INSTALL_REVOKED in <lambda>() 125 PermissionFlags.PROTECTION_GRANTED or PermissionFlags.RUNTIME_GRANTED in <lambda>() 127 PermissionFlags.PROTECTION_GRANTED in <lambda>() 133 if (legacyPermissionState.isGranted) PermissionFlags.RUNTIME_GRANTED else 0 in <lambda>() 137 PermissionFlags.updateFlags( in <lambda>() 144 val oldFlagString = PermissionFlags.apiFlagsToString(legacyPermissionState.flags) in <lambda>() 145 val newFlagString = PermissionFlags.toString(flags) in <lambda>() 147 val newGrantState = PermissionFlags.isPermissionGranted(flags) in <lambda>() 148 val flagsMismatch = legacyPermissionState.flags != PermissionFlags.toApiFlags(flags) in <lambda>()
|
D | AppIdPermissionPolicy.kt | 200 PermissionFlags.UPGRADE_EXEMPT, in <lambda>() 219 val isExempt = newFlags.hasAnyBit(PermissionFlags.MASK_EXEMPT) in <lambda>() 221 newFlags = newFlags or PermissionFlags.RESTRICTION_REVOKED in <lambda>() 225 if (PermissionFlags.isPermissionGranted(oldFlags)) { in <lambda>() 226 newFlags = newFlags andInv PermissionFlags.POLICY_FIXED in <lambda>() 229 newFlags = newFlags andInv PermissionFlags.RESTRICTION_REVOKED in <lambda>() 258 newFlags or PermissionFlags.SOFT_RESTRICTED in <lambda>() 260 newFlags andInv PermissionFlags.SOFT_RESTRICTED in <lambda>() 302 newFlags.hasBits(PermissionFlags.ROLE) || in <lambda>() 303 newFlags.hasBits(PermissionFlags.PREGRANT) in <lambda>() [all …]
|
D | PermissionService.kt | 593 if (!PermissionFlags.isPermissionGranted(flags)) { in <lambda>() 654 if (!PermissionFlags.isPermissionGranted(flags)) { in <lambda>() 972 if (oldFlags.hasBits(PermissionFlags.SYSTEM_FIXED)) { in <lambda>() 983 if (oldFlags.hasBits(PermissionFlags.POLICY_FIXED) && !overridePolicyFixed) { in <lambda>() 994 if (isGranted && oldFlags.hasBits(PermissionFlags.RESTRICTION_REVOKED)) { in <lambda>() 1005 if (isGranted && oldFlags.hasBits(PermissionFlags.SOFT_RESTRICTED)) { in <lambda>() 1016 val newFlags = PermissionFlags.updateRuntimePermissionGranted(oldFlags, isGranted) in <lambda>() 1093 return PermissionFlags.toApiFlags(flags) in <lambda>() 1138 val apiFlags = PermissionFlags.toApiFlags(flags) in <lambda>() 1176 return flags.hasBits(PermissionFlags.POLICY_FIXED) in <lambda>() [all …]
|
D | DevicePermissionPersistence.kt | 147 if (flags.hasBits(PermissionFlags.ONE_TIME)) { in <lambda>() 148 flags andInv PermissionFlags.RUNTIME_GRANTED in <lambda>()
|
D | AppIdPermissionPersistence.kt | 223 if (flags.hasBits(PermissionFlags.ONE_TIME)) { in <lambda>() 224 flags andInv PermissionFlags.RUNTIME_GRANTED in <lambda>()
|
D | PermissionFlags.kt | 54 object PermissionFlags { object
|
D | DevicePermissionPolicy.kt | 251 PermissionFlags.MASK_ALL, in <lambda>()
|
/frameworks/base/services/permission/java/com/android/server/permission/access/appop/ |
D | AppOpService.kt | 51 import com.android.server.permission.access.permission.PermissionFlags in <lambda>() 222 PermissionFlags.RUNTIME_GRANTED in <lambda>() 236 backgroundFlags: Int = PermissionFlags.RUNTIME_GRANTED in <lambda>() 238 if (PermissionFlags.isAppOpGranted(foregroundFlags)) { in <lambda>() 239 if (PermissionFlags.isAppOpGranted(backgroundFlags)) { in <lambda>() 542 PermissionFlags.RUNTIME_GRANTED, in <lambda>() 544 PermissionFlags.RUNTIME_GRANTED in <lambda>()
|
/frameworks/base/core/java/android/permission/ |
D | PermissionManager.java | 774 @PackageManager.PermissionFlags 801 @PackageManager.PermissionFlags 844 @PackageManager.PermissionFlags int flagMask, in updatePermissionFlags() 845 @PackageManager.PermissionFlags int flagValues, @NonNull UserHandle user) { in updatePermissionFlags() 875 @PackageManager.PermissionFlags int flagMask, in updatePermissionFlags() 876 @PackageManager.PermissionFlags int flagValues in updatePermissionFlags() 884 @PackageManager.PermissionFlags int flagMask, in updatePermissionFlagsInternal() 885 @PackageManager.PermissionFlags int flagValues, @NonNull String persistentDeviceId, in updatePermissionFlagsInternal()
|
/frameworks/base/tools/aapt2/ |
D | ApkInfo.proto | 191 message PermissionFlags { message 204 PermissionFlags permission_flags = 8;
|
/frameworks/base/core/java/android/content/pm/ |
D | PackageManager.java | 6655 public @interface PermissionFlags {} annotation in PackageManager 6760 @PermissionFlags 6784 @NonNull String packageName, @PermissionFlags int flagMask, in updatePermissionFlags() 6785 @PermissionFlags int flagValues, @NonNull UserHandle user); in updatePermissionFlags()
|
/frameworks/base/core/api/ |
D | removed.txt | 61 …a.lang.annotation.RetentionPolicy.SOURCE) public static @interface PackageManager.PermissionFlags {
|
/frameworks/proto_logging/stats/ |
D | atoms.proto | 11851 // Permission flags as per android.content.pm.PermissionFlags 12859 // State of Permission Flags after grant as per android.content.pm.PermissionFlags 14732 // Permission flags as per android.content.pm.PermissionFlags
|
/frameworks/base/services/ |
D | art-profile | 2191 HSPLcom/android/server/permission/access/permission/PermissionFlags;->fromApiFlags(ILcom/android/se… 2192 HSPLcom/android/server/permission/access/permission/PermissionFlags;->isAppOpGranted(I)Z 2193 HSPLcom/android/server/permission/access/permission/PermissionFlags;->isPermissionGranted(I)Z 2194 HSPLcom/android/server/permission/access/permission/PermissionFlags;->toApiFlags(I)I
|
D | art-wear-profile | 17509 PLcom/android/server/permission/access/permission/PermissionFlags;-><clinit>()V 17510 PLcom/android/server/permission/access/permission/PermissionFlags;-><init>()V 17511 HPLcom/android/server/permission/access/permission/PermissionFlags;->fromApiFlags(ILcom/android/ser… 17512 HPLcom/android/server/permission/access/permission/PermissionFlags;->isPermissionGranted(I)Z 17513 HPLcom/android/server/permission/access/permission/PermissionFlags;->toApiFlags(I)I 17514 PLcom/android/server/permission/access/permission/PermissionFlags;->updateFlags(Lcom/android/server… 17515 PLcom/android/server/permission/access/permission/PermissionFlags;->updateRuntimePermissionGranted(…
|