Home
last modified time | relevance | path

Searched refs:INSTALL_GRANTED (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/services/permission/java/com/android/server/permission/access/permission/
DPermissionFlags.kt56 const val INSTALL_GRANTED = 1 shl 0 constant
331 if (flags.hasBits(INSTALL_GRANTED)) { in isPermissionGranted()
435 flags = flags or (oldFlags and INSTALL_GRANTED) in fromApiFlags()
505 INSTALL_GRANTED -> "INSTALL_GRANTED" in flagToString()
DAppIdPermissionMigration.kt118 PermissionFlags.INSTALL_GRANTED in <lambda>()
DAppIdPermissionPolicy.kt867 val wasGranted = oldFlags.hasBits(PermissionFlags.INSTALL_GRANTED) in <lambda>()
890 PermissionFlags.INSTALL_GRANTED in <lambda>()
/frameworks/base/services/tests/PermissionServiceMockingTests/src/com/android/server/permission/test/
DAppIdPermissionPolicyTest.kt48 setPermissionFlags(APP_ID_1, USER_ID_0, PERMISSION_NAME_0, PermissionFlags.INSTALL_GRANTED) in testOnAppIdRemoved_appIdIsRemoved_permissionFlagsCleared()
116 val oldFlags = PermissionFlags.INSTALL_GRANTED in testOnPackageRemoved_packageIsRemoved_permissionDefinitionsAndStatesAreUpdated()
395 val flags = PermissionFlags.INSTALL_GRANTED in testUpdateAndGetPermissionFlags()
DAppIdPermissionPolicyPermissionStatesTest.kt54 val oldFlags = PermissionFlags.INSTALL_GRANTED or PermissionFlags.INSTALL_REVOKED in testEvaluatePermissionState_normalPermissionAlreadyGranted_remainsUnchanged()
78 val expectedNewFlags = PermissionFlags.INSTALL_GRANTED in testEvaluatePermissionState_normalPermissionNotInstallRevoked_getsGranted()
97 val expectedNewFlags = PermissionFlags.INSTALL_GRANTED or oldFlags in testEvaluatePermissionState_normalAppOpPermission_getsRoleAndUserSetFlagsPreserved()
309 val oldFlags = PermissionFlags.INSTALL_GRANTED or PermissionFlags.PREGRANT or in testEvaluatePermissionState_nonRuntimeFlagsOnRuntimePermissions_getsCleared()
621 val expectedNewFlags = PermissionFlags.INSTALL_GRANTED in testInheritImplicitPermissionStates_nonRuntimeNewImplicit_sourceFlagsNotInherited()
DAppIdPermissionPolicyPermissionDefinitionsTest.kt617 val expectedNewFlags = PermissionFlags.INSTALL_GRANTED in testEvaluatePermissionState_normalPermissionRequestedByInstalledPackage_getsGranted()
644 val expectedNewFlags = PermissionFlags.INSTALL_GRANTED in testEvaluatePermissionState_normalPermissionRequestedBySystemPackage_getsGranted()
662 val expectedNewFlags = PermissionFlags.INSTALL_GRANTED in testEvaluatePermissionState_normalCompatibilityPermission_getsGranted()