/frameworks/base/services/core/java/com/android/server/pm/permission/ |
D | Permission.java | 99 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 …]
|
D | LegacyPermission.java | 106 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/ |
D | ParsedPermissionImpl.java | 53 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()
|
D | ComponentMutateUtils.java | 80 int protectionLevel) { in setProtectionLevel() argument 81 ((ParsedPermissionImpl) permission).setProtectionLevel(protectionLevel); in setProtectionLevel()
|
/frameworks/base/core/java/android/content/pm/ |
D | PermissionInfo.java | 377 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()
|
D | PackageParser.java | 3227 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/ |
D | FeatureFlagsFilter_test.cpp | 101 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/ |
D | BasePermissionPolicyTest.kt | 109 protectionLevel = parsedPermission.protectionLevel in <lambda>() 236 protectionLevel: Int = PermissionInfo.PROTECTION_NORMAL, in <lambda>() 246 whenever(this.protectionLevel).thenReturn(protectionLevel) in <lambda>()
|
D | AppIdPermissionPolicyPermissionDefinitionsTest.kt | 324 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()
|
D | AppIdPermissionPolicyPermissionStatesTest.kt | 712 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()
|
D | AppIdPermissionPolicyPermissionResetTest.kt | 64 protectionLevel = PermissionInfo.PROTECTION_DANGEROUS, in testResetRuntimePermissions()
|
D | AppIdPermissionPolicyTest.kt | 245 protectionLevel = PermissionInfo.PROTECTION_DANGEROUS, in testOnPackageInstalled()
|
/frameworks/base/services/permission/java/com/android/server/permission/access/permission/ |
D | Permission.kt | 44 inline val protectionLevel: Int in <lambda>() constant in com.android.server.permission.access.permission.Permission 45 @Suppress("DEPRECATION") get() = permissionInfo.protectionLevel in <lambda>()
|
D | AppIdPermissionPersistence.kt | 99 protectionLevel = getAttributeIntHexOrThrow(ATTR_PROTECTION_LEVEL) in <lambda>() 136 attributeIntHex(ATTR_PROTECTION_LEVEL, permission.protectionLevel) in <lambda>()
|
D | PermissionService.kt | 279 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>()
|
D | AppIdPermissionPolicy.kt | 339 protectionLevel = oldPermission.permissionInfo.protectionLevel in <lambda>() 589 newPermission.protectionLevel != oldPermission.protectionLevel || in <lambda>()
|
/frameworks/base/core/tests/coretests/src/android/content/pm/ |
D | PermissionInfoTest.java | 47 permissionInfo.protectionLevel = in createFromParcel_returnsKnownCerts()
|
/frameworks/base/core/res/ |
D | Android.bp | 185 " | 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/ |
D | PackageParserLegacyCoreTest.java | 459 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/ |
D | CrossProfileAppsServiceImplRoboTest.java | 437 permissionInfo.protectionLevel = PermissionInfo.PROTECTION_FLAG_APPOP; in createCrossProfilesPermissionInfo()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | BroadcastSkipPolicy.java | 685 if ((pi.protectionLevel & (PermissionInfo.PROTECTION_MASK_BASE in isSignaturePerm()
|
/frameworks/base/core/java/com/android/internal/pm/parsing/ |
D | PackageInfoCommonUtils.java | 508 pi.protectionLevel = p.getProtectionLevel(); in generatePermissionInfo()
|
/frameworks/base/packages/SystemUI/docs/ |
D | plugins.md | 202 android:protectionLevel="signature" />
|
/frameworks/base/services/core/java/com/android/server/pm/parsing/ |
D | PackageInfoUtils.java | 778 pi.protectionLevel = p.getProtectionLevel(); in generatePermissionInfo()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | PackageManagerShellCommand.java | 4403 final int base = pi.protectionLevel & PermissionInfo.PROTECTION_MASK_BASE; in doListPermissions() 4436 + PermissionInfo.protectionToString(pi.protectionLevel)); in doListPermissions()
|