Home
last modified time | relevance | path

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

/aosp14/frameworks/base/services/core/java/com/android/server/pm/permission/
H A DPermission.java129 newPermissionInfo.protectionLevel = mPermissionInfo.protectionLevel; in setPermissionInfo()
141 return mPermissionInfo.protectionLevel; in getProtectionLevel()
308 return (mPermissionInfo.protectionLevel in isSystemTextClassifier()
317 return (mPermissionInfo.protectionLevel in isIncidentReportApprover()
361 newPermissionInfo.protectionLevel = mPermissionInfo.protectionLevel; in transfer()
372 (mPermissionInfo.protectionLevel != protectionLevel in addToTree()
380 mPermissionInfo.protectionLevel = protectionLevel; in addToTree()
570 permissionInfo.protectionLevel = mPermissionInfo.protectionLevel; in generatePermissionInfo()
576 permissionInfo.protectionLevel = mPermissionInfo.protectionLevel; in generatePermissionInfo()
578 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 DPermissionManagerServiceImpl.java663 int fixedLevel = PermissionInfo.fixProtectionLevel(info.protectionLevel); in addPermission()
/aosp14/frameworks/base/services/core/java/com/android/server/pm/pkg/component/
H A DParsedPermissionImpl.java52 private int protectionLevel; field in ParsedPermissionImpl
108 dest.writeInt(this.protectionLevel); in writeToParcel()
119 this.protectionLevel = in.readInt(); in ParsedPermissionImpl()
160 int protectionLevel, in ParsedPermissionImpl() argument
167 this.protectionLevel = protectionLevel; in ParsedPermissionImpl()
192 return protectionLevel; in getProtectionLevel()
214 protectionLevel = value; in setProtectionLevel()
H A DComponentMutateUtils.java80 int protectionLevel) { in setProtectionLevel() argument
81 ((ParsedPermissionImpl) permission).setProtectionLevel(protectionLevel); in setProtectionLevel()
/aosp14/frameworks/base/core/java/android/content/pm/
H A DPermissionInfo.java373 public int protectionLevel; field in PermissionInfo
634 protectionLevel = orig.protectionLevel; in PermissionInfo()
674 return protectionLevel & PROTECTION_MASK_BASE; in getProtection()
682 return protectionLevel & ~PROTECTION_MASK_BASE; in getProtectionFlags()
700 dest.writeInt(protectionLevel); in writeToParcel()
739 return (protectionLevel & PermissionInfo.PROTECTION_FLAG_APPOP) != 0; in isAppOp()
761 protectionLevel = source.readInt(); in PermissionInfo()
H A DPackageParser.java3227 perm.info.protectionLevel = sa.getInt( in parsePermission()
3249 if (perm.info.protectionLevel == -1) { in parsePermission()
3255 perm.info.protectionLevel = PermissionInfo.fixProtectionLevel(perm.info.protectionLevel); in parsePermission()
3258 if ( (perm.info.protectionLevel&PermissionInfo.PROTECTION_FLAG_INSTANT) == 0 in parsePermission()
3259 && (perm.info.protectionLevel&PermissionInfo.PROTECTION_FLAG_RUNTIME_ONLY) == 0 in parsePermission()
3260 && (perm.info.protectionLevel&PermissionInfo.PROTECTION_MASK_BASE) != in parsePermission()
3315 perm.info.protectionLevel = PermissionInfo.PROTECTION_NORMAL; in parsePermissionTree()
/aosp14/frameworks/base/services/permission/java/com/android/server/permission/access/permission/
H A DPermission.kt45 inline val protectionLevel: Int
47 get() = permissionInfo.protectionLevel
H A DUidPermissionPersistence.kt65 protectionLevel = getAttributeIntHexOrThrow(ATTR_PROTECTION_LEVEL)
117 attributeIntHex(ATTR_PROTECTION_LEVEL, permission.protectionLevel)
H A DUidPermissionPolicy.kt101 protectionLevel = PermissionInfo.PROTECTION_SIGNATURE
275 protectionLevel = oldPermission.permissionInfo.protectionLevel
H A DPermissionService.kt260 protectionLevel = protection
374 permissionInfo.protectionLevel =
375 PermissionInfo.fixProtectionLevel(permissionInfo.protectionLevel)
/aosp14/frameworks/base/core/tests/coretests/src/android/content/pm/
H A DPermissionInfoTest.java47 permissionInfo.protectionLevel = in createFromParcel_returnsKnownCerts()
/aosp14/frameworks/base/core/res/
H A DAndroid.bp172 " | sed -r 's/android:(name|protectionLevel)/\\1/g' " +
174 " '//permission[not(contains(@protectionLevel, \"signature\"))]/@name'" +
/aosp14/frameworks/base/services/tests/PackageManagerServiceTests/server/src/com/android/server/pm/parsing/
H A DPackageParserLegacyCoreTest.java459 private void assertPermission(String name, int protectionLevel, ParsedPermission permission) { in assertPermission() argument
461 assertEquals(protectionLevel, ParsedPermissionUtils.getProtection(permission)); in assertPermission()
/aosp14/frameworks/base/services/robotests/src/com/android/server/pm/
H A DCrossProfileAppsServiceImplRoboTest.java437 permissionInfo.protectionLevel = PermissionInfo.PROTECTION_FLAG_APPOP; in createCrossProfilesPermissionInfo()
/aosp14/frameworks/base/services/core/java/com/android/server/am/
H A DBroadcastSkipPolicy.java648 if ((pi.protectionLevel & (PermissionInfo.PROTECTION_MASK_BASE in isSignaturePerm()
H A DActivityManagerService.java5940 return (info.protectionLevel & PermissionInfo.PROTECTION_MASK_BASE) in isRuntimePermission()
/aosp14/frameworks/base/packages/SystemUI/docs/
H A Dplugins.md202            android:protectionLevel="signature" />
/aosp14/frameworks/base/services/core/java/com/android/server/pm/parsing/
H A DPackageInfoUtils.java723 pi.protectionLevel = p.getProtectionLevel(); in generatePermissionInfo()
/aosp14/frameworks/base/services/core/java/com/android/server/pm/
H A DPackageManagerShellCommand.java4060 final int base = pi.protectionLevel & PermissionInfo.PROTECTION_MASK_BASE; in doListPermissions()
4093 + PermissionInfo.protectionToString(pi.protectionLevel)); in doListPermissions()
/aosp14/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
H A DDevicePolicyManagerService.java17305 return (permissionInfo.protectionLevel & PermissionInfo.PROTECTION_MASK_BASE)
/aosp14/frameworks/base/tools/aapt2/integration-tests/CommandTests/
H A Dandroid-33.jarAndroidManifest.xml META-INF/ META-INF/MANIFEST.MF NOTICES/ NOTICES/libcore ...
/aosp14/frameworks/base/core/api/
H A Dcurrent.txt1319 field public static final int protectionLevel = 16842761; // 0x1010009
12958 field @Deprecated public int protectionLevel;
/aosp14/frameworks/base/boot/hiddenapi/
H A Dhiddenapi-max-target-o.txt76278 Lcom/android/internal/R$attr;->protectionLevel:I