Home
last modified time | relevance | path

Searched refs:isPermissionGranted (Results 1 – 16 of 16) sorted by relevance

/frameworks/base/services/core/java/com/android/server/pm/
DCrossProfileAppsServiceImpl.java167 && !isPermissionGranted(START_CROSS_PROFILE_ACTIVITIES, callingUid)) { in startActivityAsUser()
446 if (!isPermissionGranted(INTERACT_ACROSS_USERS_FULL, callingUid)
447 && !isPermissionGranted(INTERACT_ACROSS_USERS, callingUid)) {
452 if (!isPermissionGranted(MANAGE_APP_OPS_MODES, callingUid)
453 && !isPermissionGranted(CONFIGURE_INTERACT_ACROSS_PROFILES, callingUid)) {
523 if (isPermissionGranted(CONFIGURE_INTERACT_ACROSS_PROFILES, mInjector.getCallingUid())) {
674 if (isPermissionGranted(INTERACT_ACROSS_PROFILES, uid)) {
748 private boolean isPermissionGranted(String permission, int uid) {
763 if (isPermissionGranted(INTERACT_ACROSS_USERS_FULL, uid)
764 || isPermissionGranted(INTERACT_ACROSS_USERS, uid)) {
DPackageInstallerSession.java1084 final boolean isPermissionGranted = isInstallPermissionGranted in computeUserActionRequirement()
1121 if (isPermissionGranted) { in computeUserActionRequirement()
/frameworks/base/services/permission/java/com/android/server/permission/access/permission/
DPermissionService.kt490 val isPermissionGranted = in <lambda>() constant
492 isPermissionGranted(packageState, userId, permissionName, deviceId) in <lambda>()
494 return if (isPermissionGranted) { in <lambda>()
538 val isPermissionGranted = in <lambda>() constant
539 service.getState { isPermissionGranted(packageState, userId, permissionName, deviceId) } in <lambda>()
540 return if (isPermissionGranted) { in <lambda>()
553 private fun GetStateScope.isPermissionGranted( in <lambda>() method in com.android.server.permission.access.permission.PermissionService
593 if (!PermissionFlags.isPermissionGranted(flags)) { in <lambda>()
625 isPermissionGranted( in <lambda>()
654 if (!PermissionFlags.isPermissionGranted(flags)) { in <lambda>()
[all …]
DPermissionFlags.kt330 fun isPermissionGranted(flags: Int): Boolean { in isPermissionGranted() method
350 if (!isPermissionGranted(flags)) { in isAppOpGranted()
DAppIdPermissionMigration.kt147 val newGrantState = PermissionFlags.isPermissionGranted(flags) in <lambda>()
DAppIdPermissionPolicy.kt225 if (PermissionFlags.isPermissionGranted(oldFlags)) { in <lambda>()
952 val wasRevoked = newFlags != 0 && !PermissionFlags.isPermissionGranted(newFlags) in <lambda>()
1148 val isSourceGranted = PermissionFlags.isPermissionGranted(sourceFlags) in <lambda>()
1149 val isNewGranted = PermissionFlags.isPermissionGranted(newFlags) in <lambda>()
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/v2/model/
DPackageUtil.kt113 fun isPermissionGranted(context: Context, permission: String, callingUid: Int): Boolean { in isPermissionGranted() method
125 fun isPermissionGranted(pm: PackageManager, permission: String, packageName: String): Boolean { in isPermissionGranted() method
146 isPermissionGranted(context, Manifest.permission.MANAGE_DOCUMENTS, callingUid) in isInstallPermissionGrantedOrRequested()
DUninstallRepository.kt52 import com.android.packageinstaller.v2.model.PackageUtil.isPermissionGranted
102 !isPermissionGranted( in performPreUninstallChecks()
105 !isPermissionGranted(context, Manifest.permission.DELETE_PACKAGES, callingUid) in performPreUninstallChecks()
DInstallRepository.kt62 import com.android.packageinstaller.v2.model.PackageUtil.isPermissionGranted in <lambda>()
238 || isPermissionGranted(context, Manifest.permission.INSTALL_PACKAGES, originatingUid))) in <lambda>()
262 && isPermissionGranted( in <lambda>()
/frameworks/base/services/core/java/com/android/server/pm/permission/
DUidPermissionState.java199 public boolean isPermissionGranted(@NonNull String name) { in isPermissionGranted() method in UidPermissionState
DPermissionManagerServiceImpl.java989 if (!uidState.isPermissionGranted(permissionName)) { in checkSinglePermissionInternalLocked()
2741 if (bp.isNormal() && !origState.isPermissionGranted(perm)) {
2772 && origState.isPermissionGranted(
2783 && origState.isPermissionGranted(
2791 boolean wasGranted = uidState.isPermissionGranted(bp.getName());
2897 if (!uidState.isPermissionGranted(bp.getName())
3022 && ps.isPermissionGranted(
3079 if (ps.isPermissionGranted(sourcePerm)) {
3690 isGranted = uidState.isPermissionGranted(permissionName);
3796 isGranted = uidState.isPermissionGranted(permissionName);
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ims/
DImsResolverTest.java1993 boolean isPermissionGranted) { in setupPackageQuery() argument
1995 info.add(getResolveInfo(name, features, isPermissionGranted)); in setupPackageQuery()
2309 boolean isPermissionGranted) { in getResolveInfo() argument
2318 if (isPermissionGranted) { in getResolveInfo()
/frameworks/base/core/java/com/android/internal/app/
DResolverActivity.java1931 private int isPermissionGranted(String permission, int uid) {
2064 if (isPermissionGranted(android.Manifest.permission.INTERACT_ACROSS_USERS_FULL,
2068 if (isPermissionGranted(android.Manifest.permission.INTERACT_ACROSS_USERS, packageUid)
/frameworks/base/services/core/java/com/android/server/am/
DActiveServices.java8792 if (isPermissionGranted( in shouldAllowFgsStartForegroundNoBindingCheckLocked()
8795 || isPermissionGranted(REQUEST_COMPANION_RUN_IN_BACKGROUND, in shouldAllowFgsStartForegroundNoBindingCheckLocked()
8873 private boolean isPermissionGranted(String permission, int callingPid, int callingUid) { in isPermissionGranted() method
/frameworks/base/services/
Dart-profile2193 HSPLcom/android/server/permission/access/permission/PermissionFlags;->isPermissionGranted(I)Z
2210 HSPLcom/android/server/permission/access/permission/PermissionService;->isPermissionGranted(Lcom/an…
Dart-wear-profile17512 HPLcom/android/server/permission/access/permission/PermissionFlags;->isPermissionGranted(I)Z
17568 HPLcom/android/server/permission/access/permission/PermissionService;->isPermissionGranted(Lcom/and…
18027 PLcom/android/server/pm/CrossProfileAppsServiceImpl;->isPermissionGranted(Ljava/lang/String;I)Z