Home
last modified time | relevance | path

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

/frameworks/base/services/core/java/com/android/server/pm/
DBasePermission.java38 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()
DPackageManagerService.java4315 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 …]
DSettings.java2982 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()
DPackageManagerShellCommand.java1564 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/
DPermissionInfo.java156 public int protectionLevel; field in PermissionInfo
268 protectionLevel = orig.protectionLevel; in PermissionInfo()
311 dest.writeInt(protectionLevel); in writeToParcel()
330 protectionLevel = source.readInt(); in PermissionInfo()
DPackageParser.java3290 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/
DPackageManagerPresubmitTest.java90 int protectionLevel; in testPackagePrivAppPermission() local
96 protectionLevel = permissionInfo.protectionLevel; in testPackagePrivAppPermission()
100 if ((protectionLevel & PermissionInfo.PROTECTION_FLAG_PRIVILEGED) != 0) { in testPackagePrivAppPermission()
DPackageParserTest.java323 assertEquals(a.info.protectionLevel, b.info.protectionLevel); in assertPermissionsEqual()
/frameworks/base/core/tests/coretests/src/android/content/pm/
DPackageParserTest.java335 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/
DAppSecurityPermissions.java537 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/
DBroadcastQueue.java806 if ((pi.protectionLevel & (PermissionInfo.PROTECTION_MASK_BASE in isSignaturePerm()
DActivityManagerService.java8363 return (info.protectionLevel & PermissionInfo.PROTECTION_MASK_BASE) in isRuntimePermission()
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DDevicePolicyManagerService.java9681 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/api/
Dcurrent.txt1043 field public static final int protectionLevel = 16842761; // 0x1010009
10902 field public int protectionLevel;
Dtest-current.txt1043 field public static final int protectionLevel = 16842761; // 0x1010009
10944 field public int protectionLevel;
Dsystem-current.txt1173 field public static final int protectionLevel = 16842761; // 0x1010009
11620 field public int protectionLevel;