/frameworks/base/core/java/android/content/pm/ |
D | PermissionInfo.java | 30 public class PermissionInfo extends PackageItemInfo implements Parcelable { class 217 case PermissionInfo.PROTECTION_DANGEROUS: in protectionToString() 220 case PermissionInfo.PROTECTION_NORMAL: in protectionToString() 223 case PermissionInfo.PROTECTION_SIGNATURE: in protectionToString() 226 case PermissionInfo.PROTECTION_SIGNATURE_OR_SYSTEM: in protectionToString() 230 if ((level&PermissionInfo.PROTECTION_FLAG_PRIVILEGED) != 0) { in protectionToString() 233 if ((level&PermissionInfo.PROTECTION_FLAG_DEVELOPMENT) != 0) { in protectionToString() 236 if ((level&PermissionInfo.PROTECTION_FLAG_APPOP) != 0) { in protectionToString() 239 if ((level&PermissionInfo.PROTECTION_FLAG_PRE23) != 0) { in protectionToString() 242 if ((level&PermissionInfo.PROTECTION_FLAG_INSTALLER) != 0) { in protectionToString() [all …]
|
D | PermissionInfo.aidl | 20 parcelable PermissionInfo;
|
D | PackageInfo.java | 152 public PermissionInfo[] permissions; 401 permissions = source.createTypedArray(PermissionInfo.CREATOR); in PackageInfo()
|
D | IPackageManager.aidl | 45 import android.content.pm.PermissionInfo; 75 PermissionInfo getPermissionInfo(String name, String packageName, int flags); in getPermissionInfo() 100 boolean addPermission(in PermissionInfo info); in addPermission() 575 boolean addPermissionAsync(in PermissionInfo info); in addPermissionAsync()
|
D | PackageManager.java | 3119 public abstract PermissionInfo getPermissionInfo(String name, @PermissionInfoFlags int flags) in getPermissionInfo() 3134 public abstract List<PermissionInfo> queryPermissionsByGroup(String group, in queryPermissionsByGroup() 3387 public abstract boolean addPermission(PermissionInfo info); in addPermission() 3396 public abstract boolean addPermissionAsync(PermissionInfo info); in addPermissionAsync()
|
D | PackageParser.java | 781 pi.permissions = new PermissionInfo[N]; in generatePackageInfo() 3292 PermissionInfo.PROTECTION_NORMAL); in parsePermission() 3305 perm.info.protectionLevel = PermissionInfo.fixProtectionLevel(perm.info.protectionLevel); in parsePermission() 3307 if ((perm.info.protectionLevel&PermissionInfo.PROTECTION_MASK_FLAGS) != 0) { in parsePermission() 3308 if ( (perm.info.protectionLevel&PermissionInfo.PROTECTION_FLAG_INSTANT) == 0 in parsePermission() 3309 && (perm.info.protectionLevel&PermissionInfo.PROTECTION_FLAG_RUNTIME_ONLY) == 0 in parsePermission() 3310 && (perm.info.protectionLevel&PermissionInfo.PROTECTION_MASK_BASE) != in parsePermission() 3311 PermissionInfo.PROTECTION_SIGNATURE) { in parsePermission() 3364 perm.info.protectionLevel = PermissionInfo.PROTECTION_NORMAL; in parsePermissionTree() 6825 public final PermissionInfo info; [all …]
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | BasePermission.java | 20 import android.content.pm.PermissionInfo; 42 PermissionInfo pendingInfo; 61 protectionLevel = PermissionInfo.PROTECTION_SIGNATURE; in BasePermission() 88 return (protectionLevel & PermissionInfo.PROTECTION_MASK_BASE) in isRuntime() 89 == PermissionInfo.PROTECTION_DANGEROUS; in isRuntime() 93 return (protectionLevel & PermissionInfo.PROTECTION_MASK_BASE) in isDevelopment() 94 == PermissionInfo.PROTECTION_SIGNATURE in isDevelopment() 95 && (protectionLevel & PermissionInfo.PROTECTION_FLAG_DEVELOPMENT) != 0; in isDevelopment() 99 return (protectionLevel & PermissionInfo.PROTECTION_FLAG_INSTANT) != 0; in isInstant() 103 return (protectionLevel & PermissionInfo.PROTECTION_FLAG_RUNTIME_ONLY) != 0; in isRuntimeOnly()
|
D | PackageManagerShellCommand.java | 39 import android.content.pm.PermissionInfo; 847 PermissionInfo.PROTECTION_DANGEROUS, in runListPermissions() 848 PermissionInfo.PROTECTION_DANGEROUS); in runListPermissions() 853 PermissionInfo.PROTECTION_NORMAL, in runListPermissions() 854 PermissionInfo.PROTECTION_NORMAL); in runListPermissions() 860 PermissionInfo.PROTECTION_NORMAL, in runListPermissions() 861 PermissionInfo.PROTECTION_DANGEROUS); in runListPermissions() 1555 List<PermissionInfo> ps = in doListPermissions() 1560 PermissionInfo pi = ps.get(p); in doListPermissions() 1564 final int base = pi.protectionLevel & PermissionInfo.PROTECTION_MASK_BASE; in doListPermissions() [all …]
|
D | Settings.java | 49 import android.content.pm.PermissionInfo; 2982 if (bp.protectionLevel != PermissionInfo.PROTECTION_NORMAL) { in writePermissionLPr() 2989 final PermissionInfo pi = bp.perm != null ? bp.perm.info : bp.pendingInfo; in writePermissionLPr() 3638 PermissionInfo.PROTECTION_NORMAL); in readPermissionsLPw() 3639 bp.protectionLevel = PermissionInfo.fixProtectionLevel(bp.protectionLevel); in readPermissionsLPw() 3641 PermissionInfo pi = new PermissionInfo(); in readPermissionsLPw() 4823 pw.print(PermissionInfo.protectionToString(perm.info.protectionLevel)); in dumpPackageLPr() 4824 if ((perm.info.flags&PermissionInfo.FLAG_COSTS_MONEY) != 0) { in dumpPackageLPr() 4827 if ((perm.info.flags&PermissionInfo.FLAG_REMOVED) != 0) { in dumpPackageLPr() 4830 if ((perm.info.flags&PermissionInfo.FLAG_INSTALLED) != 0) { in dumpPackageLPr() [all …]
|
D | PackageManagerService.java | 173 import android.content.pm.PermissionInfo; 4307 static PermissionInfo generatePermissionInfo(BasePermission bp, int flags) { in generatePermissionInfo() 4311 PermissionInfo pi = new PermissionInfo(); in generatePermissionInfo() 4320 public PermissionInfo getPermissionInfo(String name, String packageName, int flags) { in getPermissionInfo() 4332 PermissionInfo permissionInfo = generatePermissionInfo(p, flags); in getPermissionInfo() 4339 permissionInfo = new PermissionInfo(permissionInfo); in getPermissionInfo() 4352 & (PermissionInfo.PROTECTION_NORMAL in adjustPermissionProtectionFlagsLPr() 4353 | PermissionInfo.PROTECTION_DANGEROUS in adjustPermissionProtectionFlagsLPr() 4354 | PermissionInfo.PROTECTION_SIGNATURE); in adjustPermissionProtectionFlagsLPr() 4355 if (protectionLevelMasked == PermissionInfo.PROTECTION_SIGNATURE) { in adjustPermissionProtectionFlagsLPr() [all …]
|
/frameworks/base/core/java/android/widget/ |
D | AppSecurityPermissions.java | 27 import android.content.pm.PermissionInfo; 90 MyPermissionGroupInfo(PermissionInfo perm) { in MyPermissionGroupInfo() 109 private static class MyPermissionInfo extends PermissionInfo { 128 MyPermissionInfo(PermissionInfo info) { in MyPermissionInfo() 356 PermissionInfo tmpPermInfo = mPm.getPermissionInfo(permName, 0); in extractPerms() 509 (perm.flags & PermissionInfo.FLAG_COSTS_MONEY) != 0 in getPermissionItemView() 535 private boolean isDisplayablePermission(PermissionInfo pInfo, int newReqFlags, in isDisplayablePermission() 537 final int base = pInfo.protectionLevel & PermissionInfo.PROTECTION_MASK_BASE; in isDisplayablePermission() 538 final boolean isNormal = (base == PermissionInfo.PROTECTION_NORMAL); in isDisplayablePermission() 545 final boolean isDangerous = (base == PermissionInfo.PROTECTION_DANGEROUS) in isDisplayablePermission() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | PackageManagerPresubmitTest.java | 22 import android.content.pm.PermissionInfo; 93 PermissionInfo permissionInfo = mPackageManager.getPermissionInfo(pName, 0); in testPackagePrivAppPermission() 100 if ((protectionLevel & PermissionInfo.PROTECTION_FLAG_PRIVILEGED) != 0) { in testPackagePrivAppPermission()
|
/frameworks/base/core/tests/coretests/src/android/app/activity/ |
D | MetaDataTest.java | 23 import android.content.pm.PermissionInfo; 154 PermissionInfo pi = mContext.getPackageManager().getPermissionInfo( in testPermissionWithData()
|
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/ |
D | BridgePackageManager.java | 43 import android.content.pm.PermissionInfo; 140 public PermissionInfo getPermissionInfo(String name, int flags) throws NameNotFoundException { in getPermissionInfo() 145 public List<PermissionInfo> queryPermissionsByGroup(String group, int flags) in queryPermissionsByGroup() 233 public boolean addPermission(PermissionInfo info) { in addPermission() 238 public boolean addPermissionAsync(PermissionInfo info) { in addPermissionAsync()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/backup/testutils/ |
D | PackageManagerStub.java | 25 import android.content.pm.PermissionInfo; 121 public PermissionInfo getPermissionInfo(String name, int flags) in getPermissionInfo() 127 public List<PermissionInfo> queryPermissionsByGroup(String group, int flags) in queryPermissionsByGroup() 215 public boolean addPermission(PermissionInfo info) { in addPermission() 220 public boolean addPermissionAsync(PermissionInfo info) { in addPermissionAsync()
|
/frameworks/base/test-runner/src/android/test/mock/ |
D | MockPackageManager.java | 43 import android.content.pm.PermissionInfo; 141 public PermissionInfo getPermissionInfo(String name, int flags) in getPermissionInfo() 147 public List<PermissionInfo> queryPermissionsByGroup(String group, int flags) in queryPermissionsByGroup() 245 public boolean addPermission(PermissionInfo info) { in addPermission() 250 public boolean addPermissionAsync(PermissionInfo info) { in addPermissionAsync()
|
/frameworks/base/core/tests/coretests/src/android/content/pm/ |
D | PackageParserTest.java | 381 packageName, PermissionInfo.PROTECTION_NORMAL, p.permissions.get(0)); in checkPackageWithComponents() 427 PermissionInfo.PROTECTION_NORMAL, parent.permissions.get(0)); in testMultiPackageComponents()
|
D | PackageManagerTests.java | 661 PermissionInfo pi = pm.getPermissionInfo(cmd, 0); in assertPermissions()
|
/frameworks/base/core/java/android/app/ |
D | ApplicationPackageManager.java | 52 import android.content.pm.PermissionInfo; 286 public PermissionInfo getPermissionInfo(String name, int flags) in getPermissionInfo() 289 PermissionInfo pi = mPM.getPermissionInfo(name, in getPermissionInfo() 303 public List<PermissionInfo> queryPermissionsByGroup(String group, int flags) in queryPermissionsByGroup() 306 ParceledListSlice<PermissionInfo> parceledList = in queryPermissionsByGroup() 309 List<PermissionInfo> pi = parceledList.getList(); in queryPermissionsByGroup() 597 public boolean addPermission(PermissionInfo info) { in addPermission() 606 public boolean addPermissionAsync(PermissionInfo info) { in addPermissionAsync()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | BroadcastQueue.java | 20 import android.content.pm.PermissionInfo; 805 PermissionInfo pi = pm.getPermissionInfo(perms[i], "android", 0); in isSignaturePerm() 806 if ((pi.protectionLevel & (PermissionInfo.PROTECTION_MASK_BASE in isSignaturePerm() 807 | PermissionInfo.PROTECTION_FLAG_PRIVILEGED)) in isSignaturePerm() 808 != PermissionInfo.PROTECTION_SIGNATURE) { in isSignaturePerm()
|
/frameworks/base/test-runner/api/ |
D | android-test-mock-current.txt | 226 method public boolean addPermission(android.content.pm.PermissionInfo); 227 method public boolean addPermissionAsync(android.content.pm.PermissionInfo); 313 …method public android.content.pm.PermissionInfo getPermissionInfo(java.lang.String, int) throws an… 374 …method public java.util.List<android.content.pm.PermissionInfo> queryPermissionsByGroup(java.lang.…
|
/frameworks/base/services/core/java/com/android/server/ |
D | AlarmManagerService.java | 37 import android.content.pm.PermissionInfo; 988 PermissionInfo sysUiPerm = packMan.getPermissionInfo(SYSTEM_UI_SELF_PERMISSION, 0); in onStart()
|
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/ |
D | DevicePolicyManagerService.java | 102 import android.content.pm.PermissionInfo; 9680 PermissionInfo permissionInfo = packageManager.getPermissionInfo(permissionName, 0); in isRuntimePermission() 9681 return (permissionInfo.protectionLevel & PermissionInfo.PROTECTION_MASK_BASE) in isRuntimePermission() 9682 == PermissionInfo.PROTECTION_DANGEROUS; in isRuntimePermission()
|
/frameworks/base/ |
D | Android.mk | 826 frameworks/base/core/java/android/content/pm/PermissionInfo.aidl \
|
/frameworks/base/config/ |
D | preloaded-classes | 589 android.content.pm.PermissionInfo 590 android.content.pm.PermissionInfo$1
|