Home
last modified time | relevance | path

Searched refs:protectionLevel (Results 1 – 18 of 18) sorted by relevance

/frameworks/base/services/core/java/com/android/server/pm/permission/
DBasePermission.java90 int protectionLevel; field in BasePermission
113 protectionLevel = PermissionInfo.PROTECTION_SIGNATURE; in BasePermission()
126 return protectionLevel; in getProtectionLevel()
183 return (protectionLevel & PermissionInfo.PROTECTION_MASK_BASE) in isNormal()
187 return (protectionLevel & PermissionInfo.PROTECTION_MASK_BASE) in isRuntime()
218 return (protectionLevel & PermissionInfo.PROTECTION_MASK_BASE) == in isSignature()
223 return (protectionLevel & PermissionInfo.PROTECTION_FLAG_APPOP) != 0; in isAppOp()
227 && (protectionLevel & PermissionInfo.PROTECTION_FLAG_DEVELOPMENT) != 0; in isDevelopment()
230 return (protectionLevel & PermissionInfo.PROTECTION_FLAG_INSTALLER) != 0; in isInstaller()
233 return (protectionLevel & PermissionInfo.PROTECTION_FLAG_INSTANT) != 0; in isInstant()
[all …]
DPermissionManagerService.java558 int protectionLevel, String packageName, int uid) { in adjustPermissionProtectionFlagsLocked() argument
560 final int protectionLevelMasked = protectionLevel in adjustPermissionProtectionFlagsLocked()
565 return protectionLevel; in adjustPermissionProtectionFlagsLocked()
571 return protectionLevel; in adjustPermissionProtectionFlagsLocked()
576 return protectionLevel; in adjustPermissionProtectionFlagsLocked()
584 return protectionLevel; in adjustPermissionProtectionFlagsLocked()
587 return protectionLevel; in adjustPermissionProtectionFlagsLocked()
589 return protectionLevel; in adjustPermissionProtectionFlagsLocked()
816 int fixedLevel = PermissionInfo.fixProtectionLevel(info.protectionLevel); in addDynamicPermission()
3222 @PermissionInfo.Protection int protectionLevel) { in getAllPermissionWithProtectionLevel()
[all …]
DPermissionManagerServiceInternal.java201 @PermissionInfo.Protection int protectionLevel); in getAllPermissionWithProtectionLevel()
/frameworks/base/core/java/android/content/pm/
DPermissionInfo.java312 public int protectionLevel; field in PermissionInfo
543 protectionLevel = orig.protectionLevel; in PermissionInfo()
581 return protectionLevel & PROTECTION_MASK_BASE; in getProtection()
589 return protectionLevel & ~PROTECTION_MASK_BASE; in getProtectionFlags()
607 dest.writeInt(protectionLevel); in writeToParcel()
645 return (protectionLevel & PermissionInfo.PROTECTION_FLAG_APPOP) != 0; in isAppOp()
667 protectionLevel = source.readInt(); in PermissionInfo()
DPackageParser.java3294 perm.info.protectionLevel = sa.getInt( in parsePermission()
3316 if (perm.info.protectionLevel == -1) { in parsePermission()
3322 perm.info.protectionLevel = PermissionInfo.fixProtectionLevel(perm.info.protectionLevel); in parsePermission()
3325 if ( (perm.info.protectionLevel&PermissionInfo.PROTECTION_FLAG_INSTANT) == 0 in parsePermission()
3326 && (perm.info.protectionLevel&PermissionInfo.PROTECTION_FLAG_RUNTIME_ONLY) == 0 in parsePermission()
3327 && (perm.info.protectionLevel&PermissionInfo.PROTECTION_MASK_BASE) != in parsePermission()
3382 perm.info.protectionLevel = PermissionInfo.PROTECTION_NORMAL; in parsePermissionTree()
/frameworks/base/core/tests/coretests/src/android/content/pm/
DPackageParserTest.java383 private void assertPermission(String name, String packageName, int protectionLevel, in assertPermission() argument
387 assertEquals(protectionLevel, permission.info.protectionLevel); in assertPermission()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DPackageParserTest.java341 assertEquals(a.info.protectionLevel, b.info.protectionLevel); in assertPermissionsEqual()
/frameworks/base/packages/SystemUI/docs/
Dplugins.md201            android:protectionLevel="signature" />
/frameworks/base/services/core/java/com/android/server/pm/
DPackageManagerShellCommand.java3079 final int base = pi.protectionLevel & PermissionInfo.PROTECTION_MASK_BASE; in doListPermissions()
3112 + PermissionInfo.protectionToString(pi.protectionLevel)); in doListPermissions()
DPackageManagerService.java17019 if ((perm.info.protectionLevel & PermissionInfo.PROTECTION_FLAG_INSTANT) != 0
17024 perm.info.protectionLevel &= ~PermissionInfo.PROTECTION_FLAG_INSTANT;
17084 if ((perm.info.protectionLevel & PermissionInfo.PROTECTION_MASK_BASE)
17090 perm.info.protectionLevel = bp.getProtectionLevel();
DSettings.java4702 pw.print(PermissionInfo.protectionToString(perm.info.protectionLevel)); in dumpPackageLPr()
/frameworks/base/services/core/java/com/android/server/am/
DBroadcastQueue.java938 if ((pi.protectionLevel & (PermissionInfo.PROTECTION_MASK_BASE in isSignaturePerm()
DActivityManagerService.java5848 return (info.protectionLevel & PermissionInfo.PROTECTION_MASK_BASE) in isRuntimePermission()
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DDevicePolicyManagerService.java11885 return (permissionInfo.protectionLevel & PermissionInfo.PROTECTION_MASK_BASE) in isRuntimePermission()
/frameworks/opt/setupwizard/tools/docs/
Dandroid-22.txt974 field public static final int protectionLevel = 16842761; // 0x1010009
8938 field public int protectionLevel;
/frameworks/base/non-updatable-api/
Dcurrent.txt1092 field public static final int protectionLevel = 16842761; // 0x1010009
11920 field @Deprecated public int protectionLevel;
/frameworks/base/api/
Dcurrent.txt1092 field public static final int protectionLevel = 16842761; // 0x1010009
11920 field @Deprecated public int protectionLevel;
/frameworks/base/config/
Dhiddenapi-greylist-max-o.txt90707 Lcom/android/internal/R$attr;->protectionLevel:I