Home
last modified time | relevance | path

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

12

/aosp12/frameworks/base/services/core/java/com/android/server/pm/permission/
H A DPermission.java120 newPermissionInfo.protectionLevel = mPermissionInfo.protectionLevel; in setPermissionInfo()
132 return mPermissionInfo.protectionLevel; in getProtectionLevel()
303 return (mPermissionInfo.protectionLevel in isSystemTextClassifier()
316 return (mPermissionInfo.protectionLevel in isIncidentReportApprover()
356 newPermissionInfo.protectionLevel = mPermissionInfo.protectionLevel; in transfer()
367 (mPermissionInfo.protectionLevel != protectionLevel in addToTree()
375 mPermissionInfo.protectionLevel = protectionLevel; in addToTree()
566 permissionInfo.protectionLevel = mPermissionInfo.protectionLevel; in generatePermissionInfo()
572 permissionInfo.protectionLevel = mPermissionInfo.protectionLevel; in generatePermissionInfo()
574 permissionInfo.protectionLevel = protection; in generatePermissionInfo()
[all …]
H A DLegacyPermission.java106 mPermissionInfo.protectionLevel = PermissionInfo.PROTECTION_SIGNATURE; in LegacyPermission()
156 bp.mPermissionInfo.protectionLevel = readInt(parser, null, "protection", in read()
158 bp.mPermissionInfo.protectionLevel = PermissionInfo.fixProtectionLevel( in read()
159 bp.mPermissionInfo.protectionLevel); in read()
183 if (mPermissionInfo.protectionLevel != PermissionInfo.PROTECTION_NORMAL) { in write()
184 serializer.attributeInt(null, "protection", mPermissionInfo.protectionLevel); in write()
224 pw.println(PermissionInfo.protectionToString(mPermissionInfo.protectionLevel)); in dump()
H A DPermissionManagerService.java659 int fixedLevel = PermissionInfo.fixProtectionLevel(info.protectionLevel); in addPermission()
/aosp12/frameworks/base/core/java/android/content/pm/parsing/component/
H A DParsedPermission.java46 int protectionLevel; field in ParsedPermission
62 this.protectionLevel = other.protectionLevel; in ParsedPermission()
82 return (protectionLevel & PermissionInfo.PROTECTION_FLAG_APPOP) != 0; in isAppOp()
87 return protectionLevel & PermissionInfo.PROTECTION_MASK_BASE; in getProtection()
91 return protectionLevel & ~PermissionInfo.PROTECTION_MASK_BASE; in getProtectionFlags()
136 dest.writeInt(this.protectionLevel); in writeToParcel()
149 this.protectionLevel = in.readInt(); in ParsedPermission()
183 return protectionLevel; in getProtectionLevel()
196 protectionLevel = value; in setProtectionLevel()
H A DParsedPermissionUtils.java86 permission.protectionLevel = sa.getInt( in parsePermission()
141 permission.protectionLevel = PermissionInfo.fixProtectionLevel(permission.protectionLevel); in parsePermission()
191 permission.protectionLevel = PermissionInfo.PROTECTION_NORMAL; in parsePermissionTree()
/aosp12/frameworks/base/core/java/android/content/pm/
H A DPermissionInfo.java360 public int protectionLevel; field in PermissionInfo
615 protectionLevel = orig.protectionLevel; in PermissionInfo()
653 return protectionLevel & PROTECTION_MASK_BASE; in getProtection()
661 return protectionLevel & ~PROTECTION_MASK_BASE; in getProtectionFlags()
679 dest.writeInt(protectionLevel); in writeToParcel()
718 return (protectionLevel & PermissionInfo.PROTECTION_FLAG_APPOP) != 0; in isAppOp()
740 protectionLevel = source.readInt(); in PermissionInfo()
H A DPackageParser.java3171 perm.info.protectionLevel = sa.getInt( in parsePermission()
3193 if (perm.info.protectionLevel == -1) { in parsePermission()
3199 perm.info.protectionLevel = PermissionInfo.fixProtectionLevel(perm.info.protectionLevel); in parsePermission()
3202 if ( (perm.info.protectionLevel&PermissionInfo.PROTECTION_FLAG_INSTANT) == 0 in parsePermission()
3203 && (perm.info.protectionLevel&PermissionInfo.PROTECTION_FLAG_RUNTIME_ONLY) == 0 in parsePermission()
3204 && (perm.info.protectionLevel&PermissionInfo.PROTECTION_MASK_BASE) != in parsePermission()
3259 perm.info.protectionLevel = PermissionInfo.PROTECTION_NORMAL; in parsePermissionTree()
/aosp12/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/television/
H A DAllAppPermissionsFragment.java161 && (perm.protectionLevel & PermissionInfo.PROTECTION_FLAG_INSTANT) == 0) { in updateUi()
165 && (perm.protectionLevel & PermissionInfo.PROTECTION_FLAG_RUNTIME_ONLY) in updateUi()
171 if ((perm.protectionLevel & PermissionInfo.PROTECTION_MASK_BASE) in updateUi()
175 } else if ((perm.protectionLevel & PermissionInfo.PROTECTION_MASK_BASE) in updateUi()
/aosp12/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/auto/
H A DAutoAllAppPermissionsFragment.java149 && (perm.protectionLevel & PermissionInfo.PROTECTION_FLAG_INSTANT) in updateUi()
154 && (perm.protectionLevel & PermissionInfo.PROTECTION_FLAG_RUNTIME_ONLY) in updateUi()
159 if ((perm.protectionLevel & PermissionInfo.PROTECTION_MASK_BASE) in updateUi()
172 if ((perm.protectionLevel & PermissionInfo.PROTECTION_MASK_BASE) in updateUi()
/aosp12/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/model/
H A DPermission.java57 (permissionInfo.protectionLevel & PermissionInfo.PROTECTION_FLAG_INSTANT) != 0; in Permission()
59 (permissionInfo.protectionLevel & PermissionInfo.PROTECTION_FLAG_RUNTIME_ONLY) != 0; in Permission()
H A DAppPermissionGroup.java163 if ((permissionInfo.protectionLevel & PermissionInfo.PROTECTION_MASK_BASE) in create()
310 if ((requestedPermissionInfo.protectionLevel & PermissionInfo.PROTECTION_MASK_BASE) in create()
/aosp12/frameworks/base/core/tests/coretests/src/android/content/pm/
H A DPermissionInfoTest.java45 permissionInfo.protectionLevel = in createFromParcel_returnsKnownCerts()
/aosp12/frameworks/base/core/res/
H A DAndroid.bp177 " | sed -r 's/android:(name|protectionLevel)/\\1/g' " +
179 " '//permission[not(contains(@protectionLevel, \"signature\"))]/@name'" +
/aosp12/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/model/legacy/
H A DPermissionApps.java224 if ((permInfo.protectionLevel & PermissionInfo.PROTECTION_MASK_BASE) in loadPermissionApps()
325 if ((permInfo.protectionLevel & PermissionInfo.PROTECTION_MASK_BASE) in loadGroupInfo()
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/pm/parsing/
H A DPackageParserLegacyCoreTest.java408 private void assertPermission(String name, int protectionLevel, ParsedPermission permission) { in assertPermission() argument
410 assertEquals(protectionLevel, permission.getProtection()); in assertPermission()
/aosp12/frameworks/base/services/robotests/src/com/android/server/pm/
H A DCrossProfileAppsServiceImplRoboTest.java436 permissionInfo.protectionLevel = PermissionInfo.PROTECTION_FLAG_APPOP; in createCrossProfilesPermissionInfo()
/aosp12/frameworks/base/packages/SystemUI/docs/
H A Dplugins.md202            android:protectionLevel="signature" />
/aosp12/frameworks/base/core/java/android/content/pm/parsing/
H A DPackageInfoWithoutStateUtils.java677 pi.protectionLevel = p.getProtectionLevel(); in generatePermissionInfo()
/aosp12/frameworks/base/services/core/java/com/android/server/pm/
H A DPackageManagerShellCommand.java3503 final int base = pi.protectionLevel & PermissionInfo.PROTECTION_MASK_BASE; in doListPermissions()
3536 + PermissionInfo.protectionToString(pi.protectionLevel)); in doListPermissions()
/aosp12/frameworks/base/services/core/java/com/android/server/am/
H A DBroadcastQueue.java979 if ((pi.protectionLevel & (PermissionInfo.PROTECTION_MASK_BASE in isSignaturePerm()
H A DActivityManagerService.java5383 return (info.protectionLevel & PermissionInfo.PROTECTION_MASK_BASE) in isRuntimePermission()
/aosp12/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
H A DDevicePolicyManagerService.java13809 return (permissionInfo.protectionLevel & PermissionInfo.PROTECTION_MASK_BASE)
/aosp12/frameworks/base/tools/aapt2/integration-tests/CommandTests/
H A Dandroid-28.jarMETA-INF/ META-INF/MANIFEST.MF javax/ javax/net/ javax/ ...
/aosp12/frameworks/base/core/api/
H A Dcurrent.txt1157 field public static final int protectionLevel = 16842761; // 0x1010009
12930 field @Deprecated public int protectionLevel;
/aosp12/frameworks/opt/setupwizard/tools/docs/
H A Dandroid-22.txt974 field public static final int protectionLevel = 16842761; // 0x1010009
8938 field public int protectionLevel;

12