Home
last modified time | relevance | path

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

12

/frameworks/base/core/java/android/content/pm/
DPermissionInfo.java38 public class PermissionInfo extends PackageItemInfo implements Parcelable { class
461 case PermissionInfo.PROTECTION_DANGEROUS: in protectionToString()
464 case PermissionInfo.PROTECTION_NORMAL: in protectionToString()
467 case PermissionInfo.PROTECTION_SIGNATURE: in protectionToString()
470 case PermissionInfo.PROTECTION_SIGNATURE_OR_SYSTEM: in protectionToString()
474 if ((level & PermissionInfo.PROTECTION_FLAG_PRIVILEGED) != 0) { in protectionToString()
477 if ((level & PermissionInfo.PROTECTION_FLAG_DEVELOPMENT) != 0) { in protectionToString()
480 if ((level & PermissionInfo.PROTECTION_FLAG_APPOP) != 0) { in protectionToString()
483 if ((level & PermissionInfo.PROTECTION_FLAG_PRE23) != 0) { in protectionToString()
486 if ((level & PermissionInfo.PROTECTION_FLAG_INSTALLER) != 0) { in protectionToString()
[all …]
DPermissionInfo.aidl20 parcelable PermissionInfo;
DPackageInfo.java198 public PermissionInfo[] permissions;
532 permissions = source.createTypedArray(PermissionInfo.CREATOR); in PackageInfo()
DIPackageManager.aidl44 import android.content.pm.PermissionInfo;
762 boolean addPermission(in PermissionInfo info); in addPermission()
765 boolean addPermissionAsync(in PermissionInfo info); in addPermissionAsync()
/frameworks/base/services/core/java/com/android/server/pm/permission/
DBasePermission.java20 import static android.content.pm.PermissionInfo.PROTECTION_DANGEROUS;
21 import static android.content.pm.PermissionInfo.PROTECTION_NORMAL;
22 import static android.content.pm.PermissionInfo.PROTECTION_SIGNATURE;
23 import static android.content.pm.PermissionInfo.PROTECTION_SIGNATURE_OR_SYSTEM;
33 import android.content.pm.PermissionInfo;
92 PermissionInfo pendingPermissionInfo;
111 protectionLevel = PermissionInfo.PROTECTION_SIGNATURE; in BasePermission()
176 return (protectionLevel & PermissionInfo.PROTECTION_MASK_BASE) in isNormal()
177 == PermissionInfo.PROTECTION_NORMAL; in isNormal()
180 return (protectionLevel & PermissionInfo.PROTECTION_MASK_BASE) in isRuntime()
[all …]
DPermissionManagerServiceInternal.java24 import android.content.pm.PermissionInfo;
307 public abstract @NonNull ArrayList<PermissionInfo> getAllPermissionsWithProtection( in getAllPermissionsWithProtection()
308 @PermissionInfo.Protection int protection); in getAllPermissionsWithProtection()
311 public abstract @NonNull ArrayList<PermissionInfo> getAllPermissionsWithProtectionFlags( in getAllPermissionsWithProtectionFlags()
312 @PermissionInfo.ProtectionFlags int protectionFlags); in getAllPermissionsWithProtectionFlags()
DDefaultPermissionGrantPolicy.java36 import android.content.pm.PermissionInfo;
264 public @Nullable PermissionInfo getPermissionInfo(@NonNull String permissionName) {
374 final PermissionInfo perm = pm.getPermissionInfo(permission); in grantRuntimePermissionsForSystemPackage()
1539 abstract @Nullable PermissionInfo getPermissionInfo(@NonNull String permissionName); in getPermissionInfo()
1552 PermissionInfo pi = getPermissionInfo(name); in isPermissionRestricted()
1561 PermissionInfo pi = getPermissionInfo(name); in isPermissionDangerous()
1566 return pi.getProtection() == PermissionInfo.PROTECTION_DANGEROUS; in isPermissionDangerous()
1578 PermissionInfo pi = getPermissionInfo(permission); in getBackgroundPermission()
1631 private ArrayMap<String, PermissionInfo> mPermissionInfos = new ArrayMap<>();
1740 public @Nullable PermissionInfo getPermissionInfo(@NonNull String permissionName) { in getPermissionInfo()
[all …]
DPermissionManagerService.java85 import android.content.pm.PermissionInfo;
551 public PermissionInfo getPermissionInfo(String permName, String packageName, in getPermissionInfo()
570 public ParceledListSlice<PermissionInfo> queryPermissionsByGroup(String groupName, in queryPermissionsByGroup()
580 final ArrayList<PermissionInfo> out = new ArrayList<PermissionInfo>(10); in queryPermissionsByGroup()
582 final PermissionInfo pi = bp.generatePermissionInfo(groupName, flags); in queryPermissionsByGroup()
592 public boolean addPermission(PermissionInfo info, boolean async) { in addPermission()
606 int fixedLevel = PermissionInfo.fixProtectionLevel(info.protectionLevel); in addPermission()
2236 & (PermissionInfo.PROTECTION_NORMAL in adjustPermissionProtectionFlagsLocked()
2237 | PermissionInfo.PROTECTION_DANGEROUS in adjustPermissionProtectionFlagsLocked()
2238 | PermissionInfo.PROTECTION_SIGNATURE); in adjustPermissionProtectionFlagsLocked()
[all …]
/frameworks/base/core/java/android/content/pm/parsing/component/
DParsedPermissionUtils.java20 import android.content.pm.PermissionInfo;
88 PermissionInfo.PROTECTION_NORMAL); in parsePermission()
95 permission.flags &= ~PermissionInfo.FLAG_HARD_RESTRICTED; in parsePermission()
96 permission.flags &= ~PermissionInfo.FLAG_SOFT_RESTRICTED; in parsePermission()
99 if ((permission.flags & PermissionInfo.FLAG_HARD_RESTRICTED) != 0 in parsePermission()
100 && (permission.flags & PermissionInfo.FLAG_SOFT_RESTRICTED) != 0) { in parsePermission()
114 permission.protectionLevel = PermissionInfo.fixProtectionLevel(permission.protectionLevel); in parsePermission()
117 if ((permission.protectionLevel & PermissionInfo.PROTECTION_FLAG_INSTANT) == 0 in parsePermission()
118 && (permission.protectionLevel & PermissionInfo.PROTECTION_FLAG_RUNTIME_ONLY) in parsePermission()
120 && (permission.protectionLevel & PermissionInfo.PROTECTION_MASK_BASE) != in parsePermission()
[all …]
DParsedPermission.java20 import android.content.pm.PermissionInfo;
57 public ParsedPermission(ParsedPermission other, PermissionInfo pendingPermissionInfo, in ParsedPermission()
84 return getProtection() == PermissionInfo.PROTECTION_DANGEROUS; in isRuntime()
88 return (protectionLevel & PermissionInfo.PROTECTION_FLAG_APPOP) != 0; in isAppOp()
91 @PermissionInfo.Protection
93 return protectionLevel & PermissionInfo.PROTECTION_MASK_BASE; in getProtection()
97 return protectionLevel & ~PermissionInfo.PROTECTION_MASK_BASE; in getProtectionFlags()
/frameworks/base/services/core/java/com/android/server/policy/
DPermissionPolicyService.java43 import android.content.pm.PermissionInfo;
174 final ArrayList<PermissionInfo> dangerousPerms = in onStart()
176 PermissionInfo.PROTECTION_DANGEROUS); in onStart()
180 PermissionInfo perm = dangerousPerms.get(i); in onStart()
199 final List<PermissionInfo> appOpPermissionInfos = in onStart()
201 PermissionInfo.PROTECTION_FLAG_APPOP); in onStart()
205 final PermissionInfo appOpPermissionInfo = appOpPermissionInfos.get(i); in onStart()
571 private final @NonNull ArrayMap<String, PermissionInfo> mRuntimePermissionInfos;
614 List<PermissionInfo> permissionInfos = in PermissionToOpSynchroniser()
616 PermissionInfo.PROTECTION_DANGEROUS); in PermissionToOpSynchroniser()
[all …]
/frameworks/base/core/java/android/permission/
DIPermissionManager.aidl21 import android.content.pm.PermissionInfo;
38 PermissionInfo getPermissionInfo(String permName, String packageName, int flags); in getPermissionInfo()
42 boolean addPermission(in PermissionInfo info, boolean async); in addPermission()
/frameworks/base/core/tests/coretests/src/android/app/activity/
DMetaDataTest.java23 import android.content.pm.PermissionInfo;
157 PermissionInfo pi = mContext.getPackageManager().getPermissionInfo( in testPermissionWithData()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/parsing/
DAndroidPackageParsingTestBase.kt29 import android.content.pm.PermissionInfo in <lambda>()
343 protected fun PermissionInfo.dumpToString() = """ in <lambda>() method
DPackageParserLegacyCoreTest.java31 import android.content.pm.PermissionInfo;
443 PermissionInfo.PROTECTION_NORMAL, p.getPermissions().get(0)); in checkPackageWithComponents()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
DBridgePackageManager.java41 import android.content.pm.PermissionInfo;
144 public PermissionInfo getPermissionInfo(String name, int flags) throws NameNotFoundException { in getPermissionInfo()
149 public List<PermissionInfo> queryPermissionsByGroup(String group, int flags) in queryPermissionsByGroup()
242 public boolean addPermission(PermissionInfo info) { in addPermission()
247 public boolean addPermissionAsync(PermissionInfo info) { in addPermissionAsync()
/frameworks/base/services/tests/servicestests/src/com/android/server/backup/testutils/
DPackageManagerStub.java23 import android.content.pm.PermissionInfo;
125 public PermissionInfo getPermissionInfo(String name, int flags) in getPermissionInfo()
131 public List<PermissionInfo> queryPermissionsByGroup(String group, int flags) in queryPermissionsByGroup()
224 public boolean addPermission(PermissionInfo info) { in addPermission()
229 public boolean addPermissionAsync(PermissionInfo info) { in addPermissionAsync()
/frameworks/base/services/robotests/src/com/android/server/pm/
DCrossProfileAppsServiceImplRoboTest.java51 import android.content.pm.PermissionInfo;
417 private PermissionInfo createCrossProfilesPermissionInfo() { in createCrossProfilesPermissionInfo()
418 PermissionInfo permissionInfo = new PermissionInfo(); in createCrossProfilesPermissionInfo()
420 permissionInfo.protectionLevel = PermissionInfo.PROTECTION_FLAG_APPOP; in createCrossProfilesPermissionInfo()
/frameworks/base/core/java/android/content/
DPermissionChecker.java24 import android.content.pm.PermissionInfo;
400 final PermissionInfo permissionInfo; in checkPermissionCommon()
/frameworks/base/test-mock/src/android/test/mock/
DMockPackageManager.java41 import android.content.pm.PermissionInfo;
147 public PermissionInfo getPermissionInfo(String name, int flags) in getPermissionInfo()
153 public List<PermissionInfo> queryPermissionsByGroup(String group, int flags) in queryPermissionsByGroup()
257 public boolean addPermission(PermissionInfo info) { in addPermission()
262 public boolean addPermissionAsync(PermissionInfo info) { in addPermissionAsync()
/frameworks/base/services/core/java/com/android/server/pm/parsing/pkg/
DPkgPackageInfo.java27 import android.content.pm.PermissionInfo;
/frameworks/base/core/java/android/content/pm/parsing/
DPackageInfoWithoutStateUtils.java37 import android.content.pm.PermissionInfo;
254 pi.permissions = new PermissionInfo[size]; in generateWithoutComponentsUnchecked()
601 public static PermissionInfo generatePermissionInfo(ParsedPermission p, in generatePermissionInfo()
605 PermissionInfo pi = new PermissionInfo(p.getBackgroundPermission()); in generatePermissionInfo()
/frameworks/base/services/core/java/com/android/server/pm/
DPackageManagerShellCommand.java56 import android.content.pm.PermissionInfo;
927 PermissionInfo.PROTECTION_DANGEROUS, in runListPermissions()
928 PermissionInfo.PROTECTION_DANGEROUS); in runListPermissions()
933 PermissionInfo.PROTECTION_NORMAL, in runListPermissions()
934 PermissionInfo.PROTECTION_NORMAL); in runListPermissions()
940 PermissionInfo.PROTECTION_NORMAL, in runListPermissions()
941 PermissionInfo.PROTECTION_DANGEROUS); in runListPermissions()
3425 List<PermissionInfo> ps = mPermissionManager in doListPermissions()
3430 PermissionInfo pi = ps.get(p); in doListPermissions()
3434 final int base = pi.protectionLevel & PermissionInfo.PROTECTION_MASK_BASE; in doListPermissions()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DCrossProfileAppsServiceImplTest.java31 import android.content.pm.PermissionInfo;
409 .thenReturn(new PermissionInfo()); in startAnyActivityAsUser_profile_notExported()
/frameworks/base/test-mock/api/
Dcurrent.txt194 method @Deprecated public boolean addPermission(android.content.pm.PermissionInfo);
195 method @Deprecated public boolean addPermissionAsync(android.content.pm.PermissionInfo);
246 …method @Deprecated public android.content.pm.PermissionInfo getPermissionInfo(String, int) throws …
276 …method @Deprecated public java.util.List<android.content.pm.PermissionInfo> queryPermissionsByGrou…

12