Home
last modified time | relevance | path

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

12

/frameworks/base/services/core/java/com/android/server/pm/permission/
DPermission.java99 mPermissionInfo.protectionLevel = PermissionInfo.PROTECTION_SIGNATURE; in Permission()
129 newPermissionInfo.protectionLevel = mPermissionInfo.protectionLevel; in setPermissionInfo()
141 return mPermissionInfo.protectionLevel; in getProtectionLevel()
218 return (mPermissionInfo.protectionLevel & PermissionInfo.PROTECTION_MASK_BASE) in isNormal()
222 return (mPermissionInfo.protectionLevel & PermissionInfo.PROTECTION_MASK_BASE) in isRuntime()
248 return (mPermissionInfo.protectionLevel & PermissionInfo.PROTECTION_MASK_BASE) in isSignature()
253 return (mPermissionInfo.protectionLevel & PermissionInfo.PROTECTION_MASK_BASE) in isInternal()
258 return (mPermissionInfo.protectionLevel & PermissionInfo.PROTECTION_FLAG_APPOP) != 0; in isAppOp()
262 return isSignature() && (mPermissionInfo.protectionLevel in isDevelopment()
267 return (mPermissionInfo.protectionLevel & PermissionInfo.PROTECTION_FLAG_INSTALLER) != 0; in isInstaller()
[all …]
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()
/frameworks/base/core/java/com/android/internal/pm/pkg/component/
DParsedPermissionImpl.java53 private int protectionLevel; field in ParsedPermissionImpl
109 dest.writeInt(this.protectionLevel); in writeToParcel()
120 this.protectionLevel = in.readInt(); in ParsedPermissionImpl()
161 int protectionLevel, in ParsedPermissionImpl() argument
168 this.protectionLevel = protectionLevel; in ParsedPermissionImpl()
193 return protectionLevel; in getProtectionLevel()
215 protectionLevel = value; in setProtectionLevel()
DComponentMutateUtils.java80 int protectionLevel) { in setProtectionLevel() argument
81 ((ParsedPermissionImpl) permission).setProtectionLevel(protectionLevel); in setProtectionLevel()
/frameworks/base/core/java/android/content/pm/
DPermissionInfo.java377 public int protectionLevel; field in PermissionInfo
673 protectionLevel = orig.protectionLevel; in PermissionInfo()
713 return protectionLevel & PROTECTION_MASK_BASE; in getProtection()
721 return protectionLevel & ~PROTECTION_MASK_BASE; in getProtectionFlags()
739 dest.writeInt(protectionLevel); in writeToParcel()
778 return (protectionLevel & PermissionInfo.PROTECTION_FLAG_APPOP) != 0; in isAppOp()
800 protectionLevel = source.readInt(); in PermissionInfo()
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()
/frameworks/base/tools/aapt2/link/
DFeatureFlagsFilter_test.cpp101 android:protectionLevel="normal" />
103 android:protectionLevel="dangerous" />
111 auto attr = children[0]->FindAttribute(xml::kSchemaAndroid, "protectionLevel");
/frameworks/base/services/tests/PermissionServiceMockingTests/src/com/android/server/permission/test/
DBasePermissionPolicyTest.kt109 protectionLevel = parsedPermission.protectionLevel in <lambda>()
236 protectionLevel: Int = PermissionInfo.PROTECTION_NORMAL, in <lambda>()
246 whenever(this.protectionLevel).thenReturn(protectionLevel) in <lambda>()
DAppIdPermissionPolicyPermissionDefinitionsTest.kt324 protectionLevel = PermissionInfo.PROTECTION_DANGEROUS in testPermissionChanged()
339 protectionLevel = newProtectionLevel in testPermissionChanged()
427 protectionLevel = PermissionInfo.PROTECTION_DANGEROUS in testTrimPermissionStates_permissionsNoLongerRequested_getsFlagsRevoked()
563 protectionLevel = PermissionInfo.PROTECTION_DANGEROUS in testRevokePermissionsOnPackageUpdate()
695 protectionLevel = PermissionInfo.PROTECTION_SIGNATURE in testEvaluateNormalPermissionStateWithPermissionChanges()
DAppIdPermissionPolicyPermissionStatesTest.kt712 protectionLevel = implicitPermissionProtectionLevel, in testInheritImplicitPermissionStates()
718 protectionLevel = if (isAnySourcePermissionNonRuntime) { in testInheritImplicitPermissionStates()
728 protectionLevel = PermissionInfo.PROTECTION_DANGEROUS, in testInheritImplicitPermissionStates()
800 protectionLevel: Int, in testEvaluatePermissionState()
818 protectionLevel = protectionLevel, in testEvaluatePermissionState()
DAppIdPermissionPolicyPermissionResetTest.kt64 protectionLevel = PermissionInfo.PROTECTION_DANGEROUS, in testResetRuntimePermissions()
DAppIdPermissionPolicyTest.kt245 protectionLevel = PermissionInfo.PROTECTION_DANGEROUS, in testOnPackageInstalled()
/frameworks/base/services/permission/java/com/android/server/permission/access/permission/
DPermission.kt44 inline val protectionLevel: Int in <lambda>() constant in com.android.server.permission.access.permission.Permission
45 @Suppress("DEPRECATION") get() = permissionInfo.protectionLevel in <lambda>()
DAppIdPermissionPersistence.kt99 protectionLevel = getAttributeIntHexOrThrow(ATTR_PROTECTION_LEVEL) in <lambda>()
136 attributeIntHex(ATTR_PROTECTION_LEVEL, permission.protectionLevel) in <lambda>()
DPermissionService.kt279 protectionLevel = protection in <lambda>()
394 permissionInfo.protectionLevel = in <lambda>()
395 PermissionInfo.fixProtectionLevel(permissionInfo.protectionLevel) in <lambda>()
2101 val protectionLevel = PermissionInfo.protectionToString(permission.protectionLevel) in <lambda>() constant
2108 "protectionLevel=[$protectionLevel], " + in <lambda>()
DAppIdPermissionPolicy.kt339 protectionLevel = oldPermission.permissionInfo.protectionLevel in <lambda>()
589 newPermission.protectionLevel != oldPermission.protectionLevel || in <lambda>()
/frameworks/base/core/tests/coretests/src/android/content/pm/
DPermissionInfoTest.java47 permissionInfo.protectionLevel = in createFromParcel_returnsKnownCerts()
/frameworks/base/core/res/
DAndroid.bp185 " | sed -r 's/android:(name|protectionLevel)/\\1/g' " +
187 " '//permission[not(contains(@protectionLevel, \"signature\"))]/@name'" +
/frameworks/base/services/tests/PackageManagerServiceTests/server/src/com/android/server/pm/parsing/
DPackageParserLegacyCoreTest.java459 private void assertPermission(String name, int protectionLevel, ParsedPermission permission) { in assertPermission() argument
461 assertEquals(protectionLevel, ParsedPermissionUtils.getProtection(permission)); in assertPermission()
/frameworks/base/services/robotests/src/com/android/server/pm/
DCrossProfileAppsServiceImplRoboTest.java437 permissionInfo.protectionLevel = PermissionInfo.PROTECTION_FLAG_APPOP; in createCrossProfilesPermissionInfo()
/frameworks/base/services/core/java/com/android/server/am/
DBroadcastSkipPolicy.java685 if ((pi.protectionLevel & (PermissionInfo.PROTECTION_MASK_BASE in isSignaturePerm()
/frameworks/base/core/java/com/android/internal/pm/parsing/
DPackageInfoCommonUtils.java508 pi.protectionLevel = p.getProtectionLevel(); in generatePermissionInfo()
/frameworks/base/packages/SystemUI/docs/
Dplugins.md202            android:protectionLevel="signature" />
/frameworks/base/services/core/java/com/android/server/pm/parsing/
DPackageInfoUtils.java778 pi.protectionLevel = p.getProtectionLevel(); in generatePermissionInfo()
/frameworks/base/services/core/java/com/android/server/pm/
DPackageManagerShellCommand.java4403 final int base = pi.protectionLevel & PermissionInfo.PROTECTION_MASK_BASE; in doListPermissions()
4436 + PermissionInfo.protectionToString(pi.protectionLevel)); in doListPermissions()

12