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/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()
3195 @PermissionInfo.Protection int protectionLevel) { in getAllPermissionWithProtectionLevel()
[all …]
DPermissionManagerServiceInternal.java201 @PermissionInfo.Protection int protectionLevel); in getAllPermissionWithProtectionLevel()
/frameworks/base/core/java/android/content/pm/
DPermissionInfo.java300 public int protectionLevel; field in PermissionInfo
528 protectionLevel = orig.protectionLevel; in PermissionInfo()
566 return protectionLevel & PROTECTION_MASK_BASE; in getProtection()
574 return protectionLevel & ~PROTECTION_MASK_BASE; in getProtectionFlags()
592 dest.writeInt(protectionLevel); in writeToParcel()
630 return (protectionLevel & PermissionInfo.PROTECTION_FLAG_APPOP) != 0; in isAppOp()
652 protectionLevel = source.readInt(); in PermissionInfo()
DPackageParser.java3236 perm.info.protectionLevel = sa.getInt( in parsePermission()
3258 if (perm.info.protectionLevel == -1) { in parsePermission()
3264 perm.info.protectionLevel = PermissionInfo.fixProtectionLevel(perm.info.protectionLevel); in parsePermission()
3267 if ( (perm.info.protectionLevel&PermissionInfo.PROTECTION_FLAG_INSTANT) == 0 in parsePermission()
3268 && (perm.info.protectionLevel&PermissionInfo.PROTECTION_FLAG_RUNTIME_ONLY) == 0 in parsePermission()
3269 && (perm.info.protectionLevel&PermissionInfo.PROTECTION_MASK_BASE) != in parsePermission()
3324 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.java337 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.java2895 final int base = pi.protectionLevel & PermissionInfo.PROTECTION_MASK_BASE; in doListPermissions()
2928 + PermissionInfo.protectionToString(pi.protectionLevel)); in doListPermissions()
DPackageManagerService.java17521 if ((perm.info.protectionLevel & PermissionInfo.PROTECTION_FLAG_INSTANT) != 0
17526 perm.info.protectionLevel &= ~PermissionInfo.PROTECTION_FLAG_INSTANT;
17586 if ((perm.info.protectionLevel & PermissionInfo.PROTECTION_MASK_BASE)
17592 perm.info.protectionLevel = bp.getProtectionLevel();
DSettings.java4701 pw.print(PermissionInfo.protectionToString(perm.info.protectionLevel)); in dumpPackageLPr()
/frameworks/base/services/core/java/com/android/server/am/
DBroadcastQueue.java933 if ((pi.protectionLevel & (PermissionInfo.PROTECTION_MASK_BASE in isSignaturePerm()
DActivityManagerService.java5819 return (info.protectionLevel & PermissionInfo.PROTECTION_MASK_BASE) in isRuntimePermission()
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DDevicePolicyManagerService.java11876 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.txt1090 field public static final int protectionLevel = 16842761; // 0x1010009
11903 field @Deprecated public int protectionLevel;
/frameworks/base/config/
Dhiddenapi-greylist-max-o.txt97146 Lcom/android/internal/R$attr;->protectionLevel:I