Home
last modified time | relevance | path

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

123

/frameworks/base/services/core/java/com/android/server/pm/permission/
DPermission.java25 import android.content.pm.PermissionInfo;
61 PermissionInfo.PROTECTION_DANGEROUS,
62 PermissionInfo.PROTECTION_NORMAL,
63 PermissionInfo.PROTECTION_SIGNATURE,
64 PermissionInfo.PROTECTION_SIGNATURE_OR_SYSTEM,
65 PermissionInfo.PROTECTION_INTERNAL,
71 private PermissionInfo mPermissionInfo;
95 mPermissionInfo = new PermissionInfo(); in Permission()
99 mPermissionInfo.protectionLevel = PermissionInfo.PROTECTION_SIGNATURE; in Permission()
103 public Permission(@NonNull PermissionInfo permissionInfo, @PermissionType int type) { in Permission()
[all …]
DLegacyPermission.java22 import android.content.pm.PermissionInfo;
77 private final PermissionInfo mPermissionInfo;
92 public LegacyPermission(@NonNull PermissionInfo permissionInfo, @PermissionType int type, in LegacyPermission()
102 mPermissionInfo = new PermissionInfo(); in LegacyPermission()
106 mPermissionInfo.protectionLevel = PermissionInfo.PROTECTION_SIGNATURE; in LegacyPermission()
118 public PermissionInfo getPermissionInfo() { in getPermissionInfo()
157 PermissionInfo.PROTECTION_NORMAL); in read()
158 bp.mPermissionInfo.protectionLevel = PermissionInfo.fixProtectionLevel( in read()
183 if (mPermissionInfo.protectionLevel != PermissionInfo.PROTECTION_NORMAL) { in write()
224 pw.println(PermissionInfo.protectionToString(mPermissionInfo.protectionLevel)); in dump()
[all …]
DPermissionManagerServiceInternal.java23 import android.content.pm.PermissionInfo;
159 ArrayList<PermissionInfo> getAllPermissionsWithProtection( in getAllPermissionsWithProtection()
160 @PermissionInfo.Protection int protection); in getAllPermissionsWithProtection()
163 @NonNull ArrayList<PermissionInfo> getAllPermissionsWithProtectionFlags( in getAllPermissionsWithProtectionFlags()
164 @PermissionInfo.ProtectionFlags int protectionFlags); in getAllPermissionsWithProtectionFlags()
DDefaultPermissionGrantPolicy.java36 import android.content.pm.PermissionInfo;
276 public @Nullable PermissionInfo getPermissionInfo(@NonNull String permissionName) {
389 final PermissionInfo perm = pm.getPermissionInfo(permission); in grantRuntimePermissionsForSystemPackage()
1566 abstract @Nullable PermissionInfo getPermissionInfo(@NonNull String permissionName); in getPermissionInfo()
1579 PermissionInfo pi = getPermissionInfo(name); in isPermissionRestricted()
1588 PermissionInfo pi = getPermissionInfo(name); in isPermissionDangerous()
1593 return pi.getProtection() == PermissionInfo.PROTECTION_DANGEROUS; in isPermissionDangerous()
1605 PermissionInfo pi = getPermissionInfo(permission); in getBackgroundPermission()
1658 private ArrayMap<String, PermissionInfo> mPermissionInfos = new ArrayMap<>();
1775 public @Nullable PermissionInfo getPermissionInfo(@NonNull String permissionName) { in getPermissionInfo()
[all …]
DPermissionManagerService.java93 import android.content.pm.PermissionInfo;
576 public PermissionInfo getPermissionInfo(@NonNull String permName, @NonNull String opPackageName, in getPermissionInfo()
586 final PermissionInfo permissionInfo; in getPermissionInfo()
619 public ParceledListSlice<PermissionInfo> queryPermissionsByGroup(String groupName, in queryPermissionsByGroup()
626 final List<PermissionInfo> out = new ArrayList<>(10); in queryPermissionsByGroup()
645 public boolean addPermission(PermissionInfo info, boolean async) { in addPermission()
659 int fixedLevel = PermissionInfo.fixProtectionLevel(info.protectionLevel); in addPermission()
2214 PermissionInfo permInfo = getPermissionInfo( in revokeStoragePermissionsIfScopeExpandedInternal()
2270 if ((newProtection & PermissionInfo.PROTECTION_DANGEROUS) != 0) {
2376 p.setFlags(p.getFlags() & ~PermissionInfo.FLAG_INSTALLED);
[all …]
/frameworks/base/core/java/android/content/pm/
DPermissionInfo.java43 public class PermissionInfo extends PackageItemInfo implements Parcelable { class
506 case PermissionInfo.PROTECTION_DANGEROUS: in protectionToString()
509 case PermissionInfo.PROTECTION_NORMAL: in protectionToString()
512 case PermissionInfo.PROTECTION_SIGNATURE: in protectionToString()
515 case PermissionInfo.PROTECTION_SIGNATURE_OR_SYSTEM: in protectionToString()
518 case PermissionInfo.PROTECTION_INTERNAL: in protectionToString()
525 if ((level & PermissionInfo.PROTECTION_FLAG_PRIVILEGED) != 0) { in protectionToString()
528 if ((level & PermissionInfo.PROTECTION_FLAG_DEVELOPMENT) != 0) { in protectionToString()
531 if ((level & PermissionInfo.PROTECTION_FLAG_APPOP) != 0) { in protectionToString()
534 if ((level & PermissionInfo.PROTECTION_FLAG_PRE23) != 0) { in protectionToString()
[all …]
DPermissionInfo.aidl20 parcelable PermissionInfo;
DPackageInfo.java198 public PermissionInfo[] permissions;
551 permissions = source.createTypedArray(PermissionInfo.CREATOR); in PackageInfo()
DIPackageManager.aidl46 import android.content.pm.PermissionInfo;
771 boolean addPermission(in PermissionInfo info); in addPermission()
774 boolean addPermissionAsync(in PermissionInfo info); in addPermissionAsync()
/frameworks/base/core/tests/coretests/src/android/content/pm/
DPermissionInfoTest.java44 PermissionInfo permissionInfo = new PermissionInfo(); in createFromParcel_returnsKnownCerts()
46 PermissionInfo.PROTECTION_SIGNATURE | PermissionInfo.PROTECTION_FLAG_KNOWN_SIGNER; in createFromParcel_returnsKnownCerts()
54 PermissionInfo unparceledPermissionInfo = PermissionInfo.CREATOR.createFromParcel(parcel); in createFromParcel_returnsKnownCerts()
/frameworks/base/core/java/android/content/pm/parsing/component/
DParsedPermissionUtils.java20 import android.content.pm.PermissionInfo;
88 PermissionInfo.PROTECTION_NORMAL); in parsePermission()
127 permission.flags &= ~PermissionInfo.FLAG_HARD_RESTRICTED; in parsePermission()
128 permission.flags &= ~PermissionInfo.FLAG_SOFT_RESTRICTED; in parsePermission()
131 if ((permission.flags & PermissionInfo.FLAG_HARD_RESTRICTED) != 0 in parsePermission()
132 && (permission.flags & PermissionInfo.FLAG_SOFT_RESTRICTED) != 0) { in parsePermission()
141 permission.protectionLevel = PermissionInfo.fixProtectionLevel(permission.protectionLevel); in parsePermission()
144 & ~(PermissionInfo.PROTECTION_FLAG_APPOP | PermissionInfo.PROTECTION_FLAG_INSTANT in parsePermission()
145 | PermissionInfo.PROTECTION_FLAG_RUNTIME_ONLY); in parsePermission()
147 && permission.getProtection() != PermissionInfo.PROTECTION_SIGNATURE in parsePermission()
[all …]
DParsedPermission.java20 import android.content.pm.PermissionInfo;
78 return getProtection() == PermissionInfo.PROTECTION_DANGEROUS; in isRuntime()
82 return (protectionLevel & PermissionInfo.PROTECTION_FLAG_APPOP) != 0; in isAppOp()
85 @PermissionInfo.Protection
87 return protectionLevel & PermissionInfo.PROTECTION_MASK_BASE; in getProtection()
91 return protectionLevel & ~PermissionInfo.PROTECTION_MASK_BASE; in getProtectionFlags()
/frameworks/base/services/core/java/com/android/server/policy/
DPermissionPolicyService.java44 import android.content.pm.PermissionInfo;
175 final ArrayList<PermissionInfo> dangerousPerms = in onStart()
177 PermissionInfo.PROTECTION_DANGEROUS); in onStart()
181 PermissionInfo perm = dangerousPerms.get(i); in onStart()
200 final List<PermissionInfo> appOpPermissionInfos = in onStart()
202 PermissionInfo.PROTECTION_FLAG_APPOP); in onStart()
206 final PermissionInfo appOpPermissionInfo = appOpPermissionInfos.get(i); in onStart()
581 private final @NonNull ArrayMap<String, PermissionInfo> mRuntimeAndTheirBgPermissionInfos;
624 List<PermissionInfo> permissionInfos = in PermissionToOpSynchroniser()
626 PermissionInfo.PROTECTION_DANGEROUS); in PermissionToOpSynchroniser()
[all …]
/frameworks/base/core/java/android/permission/
DIPermissionManager.aidl22 import android.content.pm.PermissionInfo;
37 PermissionInfo getPermissionInfo(String permissionName, String packageName, int flags); in getPermissionInfo()
41 boolean addPermission(in PermissionInfo permissionInfo, boolean async); in addPermission()
DILegacyPermissionManager.aidl21 import android.content.pm.PermissionInfo;
DPermissionManager.java44 import android.content.pm.PermissionInfo;
178 public PermissionInfo getPermissionInfo(@NonNull String permissionName, in getPermissionInfo()
201 public List<PermissionInfo> queryPermissionsByGroup(@Nullable String groupName, in queryPermissionsByGroup()
204 final ParceledListSlice<PermissionInfo> parceledList = in queryPermissionsByGroup()
246 public boolean addPermission(@NonNull PermissionInfo permissionInfo, 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/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/tests/servicestests/src/com/android/server/pm/parsing/
DAndroidPackageParsingTestBase.kt29 import android.content.pm.PermissionInfo in <lambda>()
387 protected fun PermissionInfo.dumpToString() = """ in <lambda>() method
/frameworks/base/services/robotests/src/com/android/server/pm/
DCrossProfileAppsServiceImplRoboTest.java50 import android.content.pm.PermissionInfo;
433 private PermissionInfo createCrossProfilesPermissionInfo() { in createCrossProfilesPermissionInfo()
434 PermissionInfo permissionInfo = new PermissionInfo(); in createCrossProfilesPermissionInfo()
436 permissionInfo.protectionLevel = PermissionInfo.PROTECTION_FLAG_APPOP; in createCrossProfilesPermissionInfo()
/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/tests/servicestests/src/com/android/server/app/
DMockPackageManager.java39 import android.content.pm.PermissionInfo;
145 public PermissionInfo getPermissionInfo(@NonNull String permName, int flags) in getPermissionInfo()
152 public List<PermissionInfo> queryPermissionsByGroup(@NonNull String permissionGroup, in queryPermissionsByGroup()
253 public boolean addPermission(@NonNull PermissionInfo info) { in addPermission()
258 public boolean addPermissionAsync(@NonNull 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.java38 import android.content.pm.PermissionInfo;
263 pi.permissions = new PermissionInfo[size]; in generateWithoutComponentsUnchecked()
667 public static PermissionInfo generatePermissionInfo(ParsedPermission p, in generatePermissionInfo()
671 PermissionInfo pi = new PermissionInfo(p.getBackgroundPermission()); in generatePermissionInfo()

123