Home
last modified time | relevance | path

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

12

/frameworks/base/core/java/android/content/pm/
DPermissionInfo.java29 public class PermissionInfo extends PackageItemInfo implements Parcelable { class
202 case PermissionInfo.PROTECTION_DANGEROUS: in protectionToString()
205 case PermissionInfo.PROTECTION_NORMAL: in protectionToString()
208 case PermissionInfo.PROTECTION_SIGNATURE: in protectionToString()
211 case PermissionInfo.PROTECTION_SIGNATURE_OR_SYSTEM: in protectionToString()
215 if ((level&PermissionInfo.PROTECTION_FLAG_PRIVILEGED) != 0) { in protectionToString()
218 if ((level&PermissionInfo.PROTECTION_FLAG_DEVELOPMENT) != 0) { in protectionToString()
221 if ((level&PermissionInfo.PROTECTION_FLAG_APPOP) != 0) { in protectionToString()
224 if ((level&PermissionInfo.PROTECTION_FLAG_PRE23) != 0) { in protectionToString()
227 if ((level&PermissionInfo.PROTECTION_FLAG_INSTALLER) != 0) { in protectionToString()
[all …]
DPermissionInfo.aidl20 parcelable PermissionInfo;
DPackageInfo.java152 public PermissionInfo[] permissions;
362 permissions = source.createTypedArray(PermissionInfo.CREATOR); in PackageInfo()
DIPackageManager.aidl45 import android.content.pm.PermissionInfo;
72 PermissionInfo getPermissionInfo(String name, int flags); in getPermissionInfo()
97 boolean addPermission(in PermissionInfo info); in addPermission()
510 boolean addPermissionAsync(in PermissionInfo info); in addPermissionAsync()
DPackageManager.java2794 public abstract PermissionInfo getPermissionInfo(String name, @PermissionInfoFlags int flags) in getPermissionInfo()
2813 public abstract List<PermissionInfo> queryPermissionsByGroup(String group, in queryPermissionsByGroup()
3235 public abstract boolean addPermission(PermissionInfo info); in addPermission()
3244 public abstract boolean addPermissionAsync(PermissionInfo info); in addPermissionAsync()
DPackageParser.java597 pi.permissions = new PermissionInfo[N]; in generatePackageInfo()
2577 PermissionInfo.PROTECTION_NORMAL); in parsePermission()
2590 perm.info.protectionLevel = PermissionInfo.fixProtectionLevel(perm.info.protectionLevel); in parsePermission()
2592 if ((perm.info.protectionLevel&PermissionInfo.PROTECTION_MASK_FLAGS) != 0) { in parsePermission()
2593 if ((perm.info.protectionLevel&PermissionInfo.PROTECTION_MASK_BASE) != in parsePermission()
2594 PermissionInfo.PROTECTION_SIGNATURE) { in parsePermission()
2646 perm.info.protectionLevel = PermissionInfo.PROTECTION_NORMAL; in parsePermissionTree()
5284 public final PermissionInfo info;
5290 info = new PermissionInfo(); in Permission()
5293 public Permission(Package _owner, PermissionInfo _info) { in Permission()
[all …]
/frameworks/base/services/core/java/com/android/server/pm/
DBasePermission.java20 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()
DPackageManagerShellCommand.java35 import android.content.pm.PermissionInfo;
688 PermissionInfo.PROTECTION_DANGEROUS, in runListPermissions()
689 PermissionInfo.PROTECTION_DANGEROUS); in runListPermissions()
694 PermissionInfo.PROTECTION_NORMAL, in runListPermissions()
695 PermissionInfo.PROTECTION_NORMAL); in runListPermissions()
701 PermissionInfo.PROTECTION_NORMAL, in runListPermissions()
702 PermissionInfo.PROTECTION_DANGEROUS); in runListPermissions()
1308 List<PermissionInfo> ps = in doListPermissions()
1313 PermissionInfo pi = ps.get(p); in doListPermissions()
1317 final int base = pi.protectionLevel & PermissionInfo.PROTECTION_MASK_BASE; in doListPermissions()
[all …]
DSettings.java46 import android.content.pm.PermissionInfo;
2722 if (bp.protectionLevel != PermissionInfo.PROTECTION_NORMAL) { in writePermissionLPr()
2729 final PermissionInfo pi = bp.perm != null ? bp.perm.info : bp.pendingInfo; in writePermissionLPr()
3385 PermissionInfo.PROTECTION_NORMAL); in readPermissionsLPw()
3386 bp.protectionLevel = PermissionInfo.fixProtectionLevel(bp.protectionLevel); in readPermissionsLPw()
3388 PermissionInfo pi = new PermissionInfo(); in readPermissionsLPw()
4516 pw.print(PermissionInfo.protectionToString(perm.info.protectionLevel)); in dumpPackageLPr()
4517 if ((perm.info.flags&PermissionInfo.FLAG_COSTS_MONEY) != 0) { in dumpPackageLPr()
4520 if ((perm.info.flags&PermissionInfo.FLAG_REMOVED) != 0) { in dumpPackageLPr()
4523 if ((perm.info.flags&PermissionInfo.FLAG_INSTALLED) != 0) { in dumpPackageLPr()
[all …]
DPackageManagerService.java157 import android.content.pm.PermissionInfo;
3343 static PermissionInfo generatePermissionInfo(BasePermission bp, int flags) {
3347 PermissionInfo pi = new PermissionInfo();
3356 public PermissionInfo getPermissionInfo(String name, int flags) {
3368 public @Nullable ParceledListSlice<PermissionInfo> queryPermissionsByGroup(String group,
3377 ArrayList<PermissionInfo> out = new ArrayList<PermissionInfo>(10);
3970 static boolean comparePermissionInfos(PermissionInfo pi1, PermissionInfo pi2) {
3986 int permissionInfoFootprint(PermissionInfo info) {
4003 void enforcePermissionCapLocked(PermissionInfo info, BasePermission tree) {
4014 boolean addPermissionLocked(PermissionInfo info, boolean async) {
[all …]
/frameworks/base/core/java/android/widget/
DAppSecurityPermissions.java31 import android.content.pm.PermissionInfo;
91 MyPermissionGroupInfo(PermissionInfo perm) { in MyPermissionGroupInfo()
110 private static class MyPermissionInfo extends PermissionInfo {
129 MyPermissionInfo(PermissionInfo info) { in MyPermissionInfo()
357 PermissionInfo tmpPermInfo = mPm.getPermissionInfo(permName, 0); in extractPerms()
510 (perm.flags & PermissionInfo.FLAG_COSTS_MONEY) != 0 in getPermissionItemView()
536 private boolean isDisplayablePermission(PermissionInfo pInfo, int newReqFlags, in isDisplayablePermission()
538 final int base = pInfo.protectionLevel & PermissionInfo.PROTECTION_MASK_BASE; in isDisplayablePermission()
539 final boolean isNormal = (base == PermissionInfo.PROTECTION_NORMAL); in isDisplayablePermission()
546 final boolean isDangerous = (base == PermissionInfo.PROTECTION_DANGEROUS) in isDisplayablePermission()
[all …]
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
DBridgePackageManager.java41 import android.content.pm.PermissionInfo;
119 public PermissionInfo getPermissionInfo(String name, int flags) throws NameNotFoundException { in getPermissionInfo()
124 public List<PermissionInfo> queryPermissionsByGroup(String group, int flags) in queryPermissionsByGroup()
207 public boolean addPermission(PermissionInfo info) { in addPermission()
212 public boolean addPermissionAsync(PermissionInfo info) { in addPermissionAsync()
/frameworks/base/core/tests/coretests/src/android/app/activity/
DMetaDataTest.java23 import android.content.pm.PermissionInfo;
154 PermissionInfo pi = mContext.getPackageManager().getPermissionInfo( in testPermissionWithData()
/frameworks/base/test-runner/src/android/test/mock/
DMockPackageManager.java42 import android.content.pm.PermissionInfo;
132 public PermissionInfo getPermissionInfo(String name, int flags) in getPermissionInfo()
138 public List<PermissionInfo> queryPermissionsByGroup(String group, int flags) in queryPermissionsByGroup()
225 public boolean addPermission(PermissionInfo info) { in addPermission()
230 public boolean addPermissionAsync(PermissionInfo info) { in addPermissionAsync()
/frameworks/base/docs/html/guide/topics/security/
Dnormal-permissions.jd39 android.content.pm.PermissionInfo#PROTECTION_NORMAL PROTECTION_NORMAL},
58 android.content.pm.PermissionInfo#PROTECTION_NORMAL PROTECTION_NORMAL}:</p>
/frameworks/base/core/java/android/app/
DApplicationPackageManager.java51 import android.content.pm.PermissionInfo;
260 public PermissionInfo getPermissionInfo(String name, int flags) in getPermissionInfo()
263 PermissionInfo pi = mPM.getPermissionInfo(name, flags); in getPermissionInfo()
276 public List<PermissionInfo> queryPermissionsByGroup(String group, int flags) in queryPermissionsByGroup()
279 ParceledListSlice<PermissionInfo> parceledList = in queryPermissionsByGroup()
282 List<PermissionInfo> pi = parceledList.getList(); in queryPermissionsByGroup()
533 public boolean addPermission(PermissionInfo info) { in addPermission()
542 public boolean addPermissionAsync(PermissionInfo info) { in addPermissionAsync()
/frameworks/base/
DAndroid.mk672 frameworks/base/core/java/android/content/pm/PermissionInfo.aidl \
Dpreloaded-classes25 [Landroid.content.pm.PermissionInfo;
676 android.content.pm.PermissionInfo
677 android.content.pm.PermissionInfo$1
Dcompiled-classes-phone1010 android.content.pm.PermissionInfo
1011 android.content.pm.PermissionInfo$1
/frameworks/base/core/tests/coretests/src/android/content/pm/
DPackageManagerTests.java633 PermissionInfo pi = pm.getPermissionInfo(cmd, 0); in assertPermissions()
/frameworks/base/services/core/java/com/android/server/am/
DActivityManagerService.java138 import android.content.pm.PermissionInfo;
7629 PermissionInfo info = mActivityManagerService.mContext.getPackageManager()
7631 return info.protectionLevel == PermissionInfo.PROTECTION_DANGEROUS;
/frameworks/base/docs/html/sdk/api_diff/21/
DmissingSinces.txt1753 NO DOC BLOCK: android.content.pm.PermissionInfo Field PROTECTION_FLAG_APPOP
/frameworks/opt/setupwizard/tools/docs/
Dandroid-22.txt8559 field public android.content.pm.PermissionInfo[] permissions;
8687 method public abstract boolean addPermission(android.content.pm.PermissionInfo);
8688 method public abstract boolean addPermissionAsync(android.content.pm.PermissionInfo);
8731 …method public abstract android.content.pm.PermissionInfo getPermissionInfo(java.lang.String, int) …
8756 …method public abstract java.util.List<android.content.pm.PermissionInfo> queryPermissionsByGroup(j…
8918 …public class PermissionInfo extends android.content.pm.PackageItemInfo implements android.os.Parce…
8919 ctor public PermissionInfo();
8920 ctor public PermissionInfo(android.content.pm.PermissionInfo);
8923 …field public static final android.os.Parcelable.Creator<android.content.pm.PermissionInfo> CREATOR;
29329 method public boolean addPermission(android.content.pm.PermissionInfo);
[all …]
/frameworks/base/api/
Dcurrent.txt9544 field public android.content.pm.PermissionInfo[] permissions;
9674 method public abstract boolean addPermission(android.content.pm.PermissionInfo);
9675 method public abstract boolean addPermissionAsync(android.content.pm.PermissionInfo);
9720 …method public abstract android.content.pm.PermissionInfo getPermissionInfo(java.lang.String, int) …
9747 …method public abstract java.util.List<android.content.pm.PermissionInfo> queryPermissionsByGroup(j…
9929 …public class PermissionInfo extends android.content.pm.PackageItemInfo implements android.os.Parce…
9930 ctor public PermissionInfo();
9931 ctor public PermissionInfo(android.content.pm.PermissionInfo);
9934 …field public static final android.os.Parcelable.Creator<android.content.pm.PermissionInfo> CREATOR;
37911 method public boolean addPermission(android.content.pm.PermissionInfo);
[all …]
Dtest-current.txt9556 field public android.content.pm.PermissionInfo[] permissions;
9686 method public abstract boolean addPermission(android.content.pm.PermissionInfo);
9687 method public abstract boolean addPermissionAsync(android.content.pm.PermissionInfo);
9733 …method public abstract android.content.pm.PermissionInfo getPermissionInfo(java.lang.String, int) …
9760 …method public abstract java.util.List<android.content.pm.PermissionInfo> queryPermissionsByGroup(j…
9942 …public class PermissionInfo extends android.content.pm.PackageItemInfo implements android.os.Parce…
9943 ctor public PermissionInfo();
9944 ctor public PermissionInfo(android.content.pm.PermissionInfo);
9947 …field public static final android.os.Parcelable.Creator<android.content.pm.PermissionInfo> CREATOR;
37989 method public boolean addPermission(android.content.pm.PermissionInfo);
[all …]

12