/frameworks/base/services/core/java/com/android/server/pm/ |
D | BasePermission.java | 38 int protectionLevel; field in BasePermission 61 protectionLevel = PermissionInfo.PROTECTION_SIGNATURE; in BasePermission() 88 return (protectionLevel & PermissionInfo.PROTECTION_MASK_BASE) in isRuntime() 93 return (protectionLevel & PermissionInfo.PROTECTION_MASK_BASE) in isDevelopment() 95 && (protectionLevel & PermissionInfo.PROTECTION_FLAG_DEVELOPMENT) != 0; in isDevelopment() 99 return (protectionLevel & PermissionInfo.PROTECTION_FLAG_INSTANT) != 0; in isInstant() 103 return (protectionLevel & PermissionInfo.PROTECTION_FLAG_RUNTIME_ONLY) != 0; in isRuntimeOnly()
|
D | PackageManagerService.java | 4315 pi.protectionLevel = bp.protectionLevel; in generatePermissionInfo() 4334 final int protectionLevel = adjustPermissionProtectionFlagsLPr( in getPermissionInfo() local 4335 permissionInfo.protectionLevel, packageName, callingUid); in getPermissionInfo() 4336 if (permissionInfo.protectionLevel != protectionLevel) { in getPermissionInfo() 4341 permissionInfo.protectionLevel = protectionLevel; in getPermissionInfo() 4348 private int adjustPermissionProtectionFlagsLPr(int protectionLevel, in adjustPermissionProtectionFlagsLPr() argument 4351 final int protectionLevelMasked = protectionLevel in adjustPermissionProtectionFlagsLPr() 4356 return protectionLevel; in adjustPermissionProtectionFlagsLPr() 4363 return protectionLevel; in adjustPermissionProtectionFlagsLPr() 4373 return protectionLevel; in adjustPermissionProtectionFlagsLPr() [all …]
|
D | Settings.java | 2982 if (bp.protectionLevel != PermissionInfo.PROTECTION_NORMAL) { in writePermissionLPr() 2983 serializer.attribute(null, "protection", Integer.toString(bp.protectionLevel)); in writePermissionLPr() 3637 bp.protectionLevel = readInt(parser, null, "protection", in readPermissionsLPw() 3639 bp.protectionLevel = PermissionInfo.fixProtectionLevel(bp.protectionLevel); in readPermissionsLPw() 3646 pi.protectionLevel = bp.protectionLevel; in readPermissionsLPw() 4823 pw.print(PermissionInfo.protectionToString(perm.info.protectionLevel)); in dumpPackageLPr() 5026 pw.println(PermissionInfo.protectionToString(p.protectionLevel)); in dumpPermissionsLPr()
|
D | PackageManagerShellCommand.java | 1564 final int base = pi.protectionLevel & PermissionInfo.PROTECTION_MASK_BASE; in doListPermissions() 1597 + PermissionInfo.protectionToString(pi.protectionLevel)); in doListPermissions()
|
/frameworks/base/core/java/android/content/pm/ |
D | PermissionInfo.java | 156 public int protectionLevel; field in PermissionInfo 268 protectionLevel = orig.protectionLevel; in PermissionInfo() 311 dest.writeInt(protectionLevel); in writeToParcel() 330 protectionLevel = source.readInt(); in PermissionInfo()
|
D | PackageParser.java | 3290 perm.info.protectionLevel = sa.getInt( in parsePermission() 3299 if (perm.info.protectionLevel == -1) { in parsePermission() 3305 perm.info.protectionLevel = PermissionInfo.fixProtectionLevel(perm.info.protectionLevel); in parsePermission() 3307 if ((perm.info.protectionLevel&PermissionInfo.PROTECTION_MASK_FLAGS) != 0) { in parsePermission() 3308 if ( (perm.info.protectionLevel&PermissionInfo.PROTECTION_FLAG_INSTANT) == 0 in parsePermission() 3309 && (perm.info.protectionLevel&PermissionInfo.PROTECTION_FLAG_RUNTIME_ONLY) == 0 in parsePermission() 3310 && (perm.info.protectionLevel&PermissionInfo.PROTECTION_MASK_BASE) != in parsePermission() 3364 perm.info.protectionLevel = PermissionInfo.PROTECTION_NORMAL; in parsePermissionTree()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | PackageManagerPresubmitTest.java | 90 int protectionLevel; in testPackagePrivAppPermission() local 96 protectionLevel = permissionInfo.protectionLevel; in testPackagePrivAppPermission() 100 if ((protectionLevel & PermissionInfo.PROTECTION_FLAG_PRIVILEGED) != 0) { in testPackagePrivAppPermission()
|
D | PackageParserTest.java | 323 assertEquals(a.info.protectionLevel, b.info.protectionLevel); in assertPermissionsEqual()
|
/frameworks/base/core/tests/coretests/src/android/content/pm/ |
D | PackageParserTest.java | 335 private void assertPermission(String name, String packageName, int protectionLevel, in assertPermission() argument 339 assertEquals(protectionLevel, permission.info.protectionLevel); in assertPermission()
|
/frameworks/base/core/java/android/widget/ |
D | AppSecurityPermissions.java | 537 final int base = pInfo.protectionLevel & PermissionInfo.PROTECTION_MASK_BASE; in isDisplayablePermission() 546 || ((pInfo.protectionLevel&PermissionInfo.PROTECTION_FLAG_PRE23) != 0); in isDisplayablePermission() 550 ((pInfo.protectionLevel&PermissionInfo.PROTECTION_FLAG_DEVELOPMENT) != 0); in isDisplayablePermission() 567 + ": protlevel=0x" + Integer.toHexString(pInfo.protectionLevel)); in isDisplayablePermission()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | BroadcastQueue.java | 806 if ((pi.protectionLevel & (PermissionInfo.PROTECTION_MASK_BASE in isSignaturePerm()
|
D | ActivityManagerService.java | 8363 return (info.protectionLevel & PermissionInfo.PROTECTION_MASK_BASE) in isRuntimePermission()
|
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/ |
D | DevicePolicyManagerService.java | 9681 return (permissionInfo.protectionLevel & PermissionInfo.PROTECTION_MASK_BASE) in isRuntimePermission()
|
/frameworks/opt/setupwizard/tools/docs/ |
D | android-22.txt | 974 field public static final int protectionLevel = 16842761; // 0x1010009 8938 field public int protectionLevel;
|
/frameworks/base/api/ |
D | current.txt | 1043 field public static final int protectionLevel = 16842761; // 0x1010009 10902 field public int protectionLevel;
|
D | test-current.txt | 1043 field public static final int protectionLevel = 16842761; // 0x1010009 10944 field public int protectionLevel;
|
D | system-current.txt | 1173 field public static final int protectionLevel = 16842761; // 0x1010009 11620 field public int protectionLevel;
|