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.java88 int protectionLevel; field in BasePermission
111 protectionLevel = PermissionInfo.PROTECTION_SIGNATURE; in BasePermission()
124 return protectionLevel; in getProtectionLevel()
176 return (protectionLevel & PermissionInfo.PROTECTION_MASK_BASE) in isNormal()
180 return (protectionLevel & PermissionInfo.PROTECTION_MASK_BASE) in isRuntime()
206 return (protectionLevel & PermissionInfo.PROTECTION_MASK_BASE) == in isSignature()
211 return (protectionLevel & PermissionInfo.PROTECTION_FLAG_APPOP) != 0; in isAppOp()
215 && (protectionLevel & PermissionInfo.PROTECTION_FLAG_DEVELOPMENT) != 0; in isDevelopment()
218 return (protectionLevel & PermissionInfo.PROTECTION_FLAG_INSTALLER) != 0; in isInstaller()
221 return (protectionLevel & PermissionInfo.PROTECTION_FLAG_INSTANT) != 0; in isInstant()
[all …]
DPermissionManagerService.java606 int fixedLevel = PermissionInfo.fixProtectionLevel(info.protectionLevel); in addPermission()
2233 int protectionLevel, String packageName, int uid) { in adjustPermissionProtectionFlagsLocked() argument
2235 final int protectionLevelMasked = protectionLevel in adjustPermissionProtectionFlagsLocked()
2240 return protectionLevel; in adjustPermissionProtectionFlagsLocked()
2246 return protectionLevel; in adjustPermissionProtectionFlagsLocked()
2251 return protectionLevel; in adjustPermissionProtectionFlagsLocked()
2260 return protectionLevel; in adjustPermissionProtectionFlagsLocked()
2263 return protectionLevel; in adjustPermissionProtectionFlagsLocked()
2265 return protectionLevel; in adjustPermissionProtectionFlagsLocked()
/frameworks/base/core/java/android/content/pm/parsing/component/
DParsedPermission.java38 int protectionLevel; field in ParsedPermission
52 this.protectionLevel = other.protectionLevel; in ParsedPermission()
67 this.protectionLevel = pendingPermissionInfo.protectionLevel; in ParsedPermission()
88 return (protectionLevel & PermissionInfo.PROTECTION_FLAG_APPOP) != 0; in isAppOp()
93 return protectionLevel & PermissionInfo.PROTECTION_MASK_BASE; in getProtection()
97 return protectionLevel & ~PermissionInfo.PROTECTION_MASK_BASE; in getProtectionFlags()
125 dest.writeInt(this.protectionLevel); in writeToParcel()
137 this.protectionLevel = in.readInt(); in ParsedPermission()
170 return protectionLevel; in getProtectionLevel()
183 protectionLevel = value; in setProtectionLevel()
DParsedPermissionUtils.java86 permission.protectionLevel = sa.getInt( in parsePermission()
110 if (permission.protectionLevel == -1) { in parsePermission()
114 permission.protectionLevel = PermissionInfo.fixProtectionLevel(permission.protectionLevel); in parsePermission()
117 if ((permission.protectionLevel & PermissionInfo.PROTECTION_FLAG_INSTANT) == 0 in parsePermission()
118 && (permission.protectionLevel & PermissionInfo.PROTECTION_FLAG_RUNTIME_ONLY) in parsePermission()
120 && (permission.protectionLevel & PermissionInfo.PROTECTION_MASK_BASE) != in parsePermission()
165 permission.protectionLevel = PermissionInfo.PROTECTION_NORMAL; in parsePermissionTree()
/frameworks/base/core/java/android/content/pm/
DPermissionInfo.java324 public int protectionLevel; field in PermissionInfo
555 protectionLevel = orig.protectionLevel; in PermissionInfo()
593 return protectionLevel & PROTECTION_MASK_BASE; in getProtection()
601 return protectionLevel & ~PROTECTION_MASK_BASE; in getProtectionFlags()
619 dest.writeInt(protectionLevel); in writeToParcel()
657 return (protectionLevel & PermissionInfo.PROTECTION_FLAG_APPOP) != 0; in isAppOp()
679 protectionLevel = source.readInt(); in PermissionInfo()
DPackageParser.java3160 perm.info.protectionLevel = sa.getInt( in parsePermission()
3182 if (perm.info.protectionLevel == -1) { in parsePermission()
3188 perm.info.protectionLevel = PermissionInfo.fixProtectionLevel(perm.info.protectionLevel); in parsePermission()
3191 if ( (perm.info.protectionLevel&PermissionInfo.PROTECTION_FLAG_INSTANT) == 0 in parsePermission()
3192 && (perm.info.protectionLevel&PermissionInfo.PROTECTION_FLAG_RUNTIME_ONLY) == 0 in parsePermission()
3193 && (perm.info.protectionLevel&PermissionInfo.PROTECTION_MASK_BASE) != in parsePermission()
3248 perm.info.protectionLevel = PermissionInfo.PROTECTION_NORMAL; in parsePermissionTree()
/frameworks/base/core/res/
DAndroid.bp67 " | sed -r 's/android:(name|protectionLevel)/\\1/g' " +
69 " '//permission[not(contains(@protectionLevel, \"signature\"))]/@name'" +
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/parsing/
DPackageParserLegacyCoreTest.java399 private void assertPermission(String name, int protectionLevel, ParsedPermission permission) { in assertPermission() argument
401 assertEquals(protectionLevel, permission.getProtection()); in assertPermission()
/frameworks/base/services/robotests/src/com/android/server/pm/
DCrossProfileAppsServiceImplRoboTest.java420 permissionInfo.protectionLevel = PermissionInfo.PROTECTION_FLAG_APPOP; in createCrossProfilesPermissionInfo()
/frameworks/base/packages/SystemUI/docs/
Dplugins.md201            android:protectionLevel="signature" />
/frameworks/base/core/java/android/content/pm/parsing/
DPackageInfoWithoutStateUtils.java611 pi.protectionLevel = p.getProtectionLevel(); in generatePermissionInfo()
/frameworks/base/services/core/java/com/android/server/pm/
DPackageManagerShellCommand.java3434 final int base = pi.protectionLevel & PermissionInfo.PROTECTION_MASK_BASE; in doListPermissions()
3467 + PermissionInfo.protectionToString(pi.protectionLevel)); in doListPermissions()
/frameworks/base/services/core/java/com/android/server/am/
DBroadcastQueue.java931 if ((pi.protectionLevel & (PermissionInfo.PROTECTION_MASK_BASE in isSignaturePerm()
DActivityManagerService.java6130 return (info.protectionLevel & PermissionInfo.PROTECTION_MASK_BASE) in isRuntimePermission()
/frameworks/base/tools/aapt2/integration-tests/CommandTests/
Dandroid-28.jarMETA-INF/ META-INF/MANIFEST.MF javax/ javax/net/ javax/ ...
/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.txt1110 field public static final int protectionLevel = 16842761; // 0x1010009
12318 field @Deprecated public int protectionLevel;