Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/content/pm/
DPermissionInfo.java28 public class PermissionInfo extends PackageItemInfo implements Parcelable { class
144 case PermissionInfo.PROTECTION_DANGEROUS: in protectionToString()
147 case PermissionInfo.PROTECTION_NORMAL: in protectionToString()
150 case PermissionInfo.PROTECTION_SIGNATURE: in protectionToString()
153 case PermissionInfo.PROTECTION_SIGNATURE_OR_SYSTEM: in protectionToString()
157 if ((level&PermissionInfo.PROTECTION_FLAG_SYSTEM) != 0) { in protectionToString()
160 if ((level&PermissionInfo.PROTECTION_FLAG_DEVELOPMENT) != 0) { in protectionToString()
163 if ((level&PermissionInfo.PROTECTION_FLAG_APPOP) != 0) { in protectionToString()
169 public PermissionInfo() { in PermissionInfo() method in PermissionInfo
172 public PermissionInfo(PermissionInfo orig) { in PermissionInfo() method in PermissionInfo
[all …]
DIPackageManager.aidl42 import android.content.pm.PermissionInfo;
67 PermissionInfo getPermissionInfo(String name, int flags); in getPermissionInfo()
69 List<PermissionInfo> queryPermissionsByGroup(String group, int flags); in queryPermissionsByGroup()
92 boolean addPermission(in PermissionInfo info); in addPermission()
425 boolean addPermissionAsync(in PermissionInfo info); in addPermissionAsync()
DPermissionInfo.aidl20 parcelable PermissionInfo;
DPackageInfo.java152 public PermissionInfo[] permissions;
361 permissions = source.createTypedArray(PermissionInfo.CREATOR); in PackageInfo()
DPackageManager.java1829 public abstract PermissionInfo getPermissionInfo(String name, int flags) in getPermissionInfo()
1847 public abstract List<PermissionInfo> queryPermissionsByGroup(String group, in queryPermissionsByGroup()
2155 public abstract boolean addPermission(PermissionInfo info); in addPermission()
2164 public abstract boolean addPermissionAsync(PermissionInfo info); in addPermissionAsync()
DPackageParser.java559 pi.permissions = new PermissionInfo[N]; in generatePackageInfo()
2248 PermissionInfo.PROTECTION_NORMAL); in parsePermission()
2261 perm.info.protectionLevel = PermissionInfo.fixProtectionLevel(perm.info.protectionLevel); in parsePermission()
2263 if ((perm.info.protectionLevel&PermissionInfo.PROTECTION_MASK_FLAGS) != 0) { in parsePermission()
2264 if ((perm.info.protectionLevel&PermissionInfo.PROTECTION_MASK_BASE) != in parsePermission()
2265 PermissionInfo.PROTECTION_SIGNATURE) { in parsePermission()
2318 perm.info.protectionLevel = PermissionInfo.PROTECTION_NORMAL; in parsePermissionTree()
4552 public final PermissionInfo info;
4558 info = new PermissionInfo(); in Permission()
4561 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;
41 PermissionInfo pendingInfo;
52 protectionLevel = PermissionInfo.PROTECTION_SIGNATURE; in BasePermission()
DPackageManagerService.java127 import android.content.pm.PermissionInfo;
2022 static final PermissionInfo generatePermissionInfo( in generatePermissionInfo()
2027 PermissionInfo pi = new PermissionInfo(); in generatePermissionInfo()
2036 public PermissionInfo getPermissionInfo(String name, int flags) { in getPermissionInfo()
2048 public List<PermissionInfo> queryPermissionsByGroup(String group, int flags) { in queryPermissionsByGroup()
2051 ArrayList<PermissionInfo> out = new ArrayList<PermissionInfo>(10); in queryPermissionsByGroup()
2492 static boolean comparePermissionInfos(PermissionInfo pi1, PermissionInfo pi2) { in comparePermissionInfos()
2508 int permissionInfoFootprint(PermissionInfo info) { in permissionInfoFootprint()
2525 void enforcePermissionCapLocked(PermissionInfo info, BasePermission tree) { in enforcePermissionCapLocked()
2536 boolean addPermissionLocked(PermissionInfo info, boolean async) { in addPermissionLocked()
[all …]
DSettings.java61 import android.content.pm.PermissionInfo;
1909 if (bp.protectionLevel != PermissionInfo.PROTECTION_NORMAL) { in writePermissionLPr()
1916 final PermissionInfo pi = bp.perm != null ? bp.perm.info : bp.pendingInfo; in writePermissionLPr()
2542 PermissionInfo.PROTECTION_NORMAL); in readPermissionsLPw()
2543 bp.protectionLevel = PermissionInfo.fixProtectionLevel(bp.protectionLevel); in readPermissionsLPw()
2545 PermissionInfo pi = new PermissionInfo(); in readPermissionsLPw()
3610 pw.println(PermissionInfo.protectionToString(p.protectionLevel)); in dumpPermissionsLPr()
/frameworks/base/core/java/android/widget/
DAppSecurityPermissions.java29 import android.content.pm.PermissionInfo;
91 MyPermissionGroupInfo(PermissionInfo perm) { in MyPermissionGroupInfo()
115 private static class MyPermissionInfo extends PermissionInfo {
134 MyPermissionInfo(PermissionInfo info) { in MyPermissionInfo()
367 PermissionInfo tmpPermInfo = mPm.getPermissionInfo(permName, 0); in extractPerms()
524 (perm.flags & PermissionInfo.FLAG_COSTS_MONEY) != 0 in getPermissionItemView()
550 private boolean isDisplayablePermission(PermissionInfo pInfo, int newReqFlags, in isDisplayablePermission()
552 final int base = pInfo.protectionLevel & PermissionInfo.PROTECTION_MASK_BASE; in isDisplayablePermission()
553 final boolean isNormal = (base == PermissionInfo.PROTECTION_NORMAL); in isDisplayablePermission()
554 final boolean isDangerous = (base == PermissionInfo.PROTECTION_DANGEROUS); in isDisplayablePermission()
[all …]
/frameworks/base/test-runner/src/android/test/mock/
DMockPackageManager.java41 import android.content.pm.PermissionInfo;
103 public PermissionInfo getPermissionInfo(String name, int flags) in getPermissionInfo()
109 public List<PermissionInfo> queryPermissionsByGroup(String group, int flags) in queryPermissionsByGroup()
178 public boolean addPermission(PermissionInfo info) { in addPermission()
183 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/cmds/pm/src/com/android/commands/pm/
DPm.java42 import android.content.pm.PermissionInfo;
605 PermissionInfo.PROTECTION_DANGEROUS, in runListPermissions()
606 PermissionInfo.PROTECTION_DANGEROUS); in runListPermissions()
611 PermissionInfo.PROTECTION_NORMAL, in runListPermissions()
612 PermissionInfo.PROTECTION_NORMAL); in runListPermissions()
618 PermissionInfo.PROTECTION_NORMAL, in runListPermissions()
619 PermissionInfo.PROTECTION_DANGEROUS); in runListPermissions()
677 List<PermissionInfo> ps = mPm.queryPermissionsByGroup( in doListPermissions()
682 PermissionInfo pi = ps.get(p); in doListPermissions()
686 final int base = pi.protectionLevel & PermissionInfo.PROTECTION_MASK_BASE; in doListPermissions()
[all …]
/frameworks/base/core/java/android/app/
DApplicationPackageManager.java44 import android.content.pm.PermissionInfo;
212 public PermissionInfo getPermissionInfo(String name, int flags) in getPermissionInfo()
215 PermissionInfo pi = mPM.getPermissionInfo(name, flags); in getPermissionInfo()
227 public List<PermissionInfo> queryPermissionsByGroup(String group, int flags) in queryPermissionsByGroup()
230 List<PermissionInfo> pi = mPM.queryPermissionsByGroup(group, flags); in queryPermissionsByGroup()
399 public boolean addPermission(PermissionInfo info) { in addPermission()
408 public boolean addPermissionAsync(PermissionInfo info) { in addPermissionAsync()
/frameworks/base/docs/html/sdk/api_diff/16/
DmissingSinces.txt574 NO DOC BLOCK: android.content.pm.PermissionInfo Field PROTECTION_FLAG_DEVELOPMENT
575 NO DOC BLOCK: android.content.pm.PermissionInfo Field PROTECTION_FLAG_SYSTEM
576 NO DOC BLOCK: android.content.pm.PermissionInfo Field PROTECTION_MASK_BASE
577 NO DOC BLOCK: android.content.pm.PermissionInfo Field PROTECTION_MASK_FLAGS
/frameworks/base/docs/html/sdk/api_diff/17/
DmissingSinces.txt230 NO DOC BLOCK: android.content.pm.PermissionInfo Field FLAG_COSTS_MONEY
241 NO DOC BLOCK: android.content.pm.PermissionInfo Field flags
/frameworks/base/docs/html/sdk/api_diff/8/
DmissingSinces.txt67 …OCK: android.content.pm.PackageManager Method addPermissionAsync(android.content.pm.PermissionInfo)
68 …: android.test.mock.MockPackageManager Method addPermissionAsync(android.content.pm.PermissionInfo)
/frameworks/base/
Dpreloaded-classes27 [Landroid.content.pm.PermissionInfo;
509 android.content.pm.PermissionInfo
510 android.content.pm.PermissionInfo$1
DAndroid.mk561 frameworks/base/core/java/android/content/pm/PermissionInfo.aidl \
/frameworks/base/core/tests/coretests/src/android/content/pm/
DPackageManagerTests.java647 PermissionInfo pi = pm.getPermissionInfo(cmd, 0); in assertPermissions()
/frameworks/base/docs/html/sdk/api_diff/preview-21/
DmissingSinces.txt1141 NO DOC BLOCK: android.content.pm.PermissionInfo Field PROTECTION_FLAG_APPOP
/frameworks/base/docs/html/sdk/api_diff/21/
DmissingSinces.txt1753 NO DOC BLOCK: android.content.pm.PermissionInfo Field PROTECTION_FLAG_APPOP
/frameworks/base/docs/html/
Dsitemap.txt1834 http://developer.android.com/reference/android/content/pm/PermissionInfo.html
4423 http://developer.android.com/sdk/api_diff/17/changes/android.content.pm.PermissionInfo.html
5552 http://developer.android.com/sdk/api_diff/16/changes/android.content.pm.PermissionInfo.html
/frameworks/base/api/
Dsystem-current.txt8832 field public android.content.pm.PermissionInfo[] permissions;
8960 method public abstract boolean addPermission(android.content.pm.PermissionInfo);
8961 method public abstract boolean addPermissionAsync(android.content.pm.PermissionInfo);
9004 …method public abstract android.content.pm.PermissionInfo getPermissionInfo(java.lang.String, int) …
9029 …method public abstract java.util.List<android.content.pm.PermissionInfo> queryPermissionsByGroup(j…
9226 …public class PermissionInfo extends android.content.pm.PackageItemInfo implements android.os.Parce…
9227 ctor public PermissionInfo();
9228 ctor public PermissionInfo(android.content.pm.PermissionInfo);
9231 …field public static final android.os.Parcelable.Creator<android.content.pm.PermissionInfo> CREATOR;
31564 method public boolean addPermission(android.content.pm.PermissionInfo);
[all …]
Dcurrent.txt8561 field public android.content.pm.PermissionInfo[] permissions;
8689 method public abstract boolean addPermission(android.content.pm.PermissionInfo);
8690 method public abstract boolean addPermissionAsync(android.content.pm.PermissionInfo);
8733 …method public abstract android.content.pm.PermissionInfo getPermissionInfo(java.lang.String, int) …
8758 …method public abstract java.util.List<android.content.pm.PermissionInfo> queryPermissionsByGroup(j…
8920 …public class PermissionInfo extends android.content.pm.PackageItemInfo implements android.os.Parce…
8921 ctor public PermissionInfo();
8922 ctor public PermissionInfo(android.content.pm.PermissionInfo);
8925 …field public static final android.os.Parcelable.Creator<android.content.pm.PermissionInfo> CREATOR;
29331 method public boolean addPermission(android.content.pm.PermissionInfo);
[all …]