Home
last modified time | relevance | path

Searched refs:mPermissions (Results 1 – 12 of 12) sorted by relevance

/frameworks/base/services/core/java/com/android/server/pm/permission/
DPermissionsState.java72 private ArrayMap<String, PermissionData> mPermissions; field in PermissionsState
115 if (mPermissions != null) { in copyFrom()
116 if (other.mPermissions == null) { in copyFrom()
117 mPermissions = null; in copyFrom()
119 mPermissions.clear(); in copyFrom()
122 if (other.mPermissions != null) { in copyFrom()
123 if (mPermissions == null) { in copyFrom()
124 mPermissions = new ArrayMap<>(); in copyFrom()
126 final int permissionCount = other.mPermissions.size(); in copyFrom()
128 String name = other.mPermissions.keyAt(i); in copyFrom()
[all …]
DPermissionSettings.java52 final ArrayMap<String, BasePermission> mPermissions = field in PermissionSettings
106 i == 0 ? mPermissionTrees : mPermissions; in transferPermissions()
116 final BasePermission bp = mPermissions.get(permName); in canPropagatePermissionToInstantApp()
123 readPermissions(mPermissions, parser); in readPermissions()
136 for (BasePermission bp : mPermissions.values()) { in writePermissions()
174 for (BasePermission bp : mPermissions.values()) { in dumpPermissions()
199 return mPermissions.get(permName); in getPermissionLocked()
209 mPermissions.put(permName, permission); in putPermissionLocked()
219 mPermissions.remove(permName); in removePermissionLocked()
229 return mPermissions.values(); in getAllPermissionsLocked()
[all …]
DPermissionManagerService.java581 for (BasePermission bp : mSettings.mPermissions.values()) { in queryPermissionsByGroup()
2435 BasePermission bp = mSettings.mPermissions.get(p.getName()); in removeAllPermissions()
4198 final Iterator<BasePermission> it = mSettings.mPermissions.values().iterator(); in updatePermissionSourcePackage()
4231 needsUpdate = new ArraySet<>(mSettings.mPermissions.size()); in updatePermissionSourcePackage()
4533 for (BasePermission perm : mSettings.mPermissions.values()) { in calculateCurrentPermissionFootprintLocked()
4760 int numTotalPermissions = mSettings.mPermissions.size(); in getAllPermissionsWithProtection()
4763 BasePermission bp = mSettings.mPermissions.valueAt(i); in getAllPermissionsWithProtection()
4781 int numTotalPermissions = mSettings.mPermissions.size(); in getAllPermissionsWithProtectionFlags()
4784 BasePermission bp = mSettings.mPermissions.valueAt(i); in getAllPermissionsWithProtectionFlags()
5009 BasePermission basePermission = mSettings.mPermissions.get(permission); in retainHardAndSoftRestrictedPermissions()
/frameworks/base/tests/testables/src/android/testing/
DTestablePermissions.java30 private final ArrayMap<String, Integer> mPermissions = new ArrayMap<>(); field in TestablePermissions
39 mPermissions.put(permission, value); in setPermission()
53 return mPermissions.containsKey(permission); in wantsCall()
61 return mPermissions.get(permission); in check()
/frameworks/base/core/java/android/bluetooth/
DBluetoothGattDescriptor.java112 protected int mPermissions; field in BluetoothGattDescriptor
165 mPermissions = permissions; in initDescriptor()
177 out.writeInt(mPermissions); in writeToParcel()
194 mPermissions = in.readInt(); in BluetoothGattDescriptor()
255 return mPermissions; in getPermissions()
DBluetoothGattCharacteristic.java201 protected int mPermissions; field in BluetoothGattCharacteristic
277 mPermissions = permissions; in initCharacteristic()
299 out.writeInt(mPermissions); in writeToParcel()
320 mPermissions = in.readInt(); in BluetoothGattCharacteristic()
440 return mPermissions; in getPermissions()
/frameworks/base/services/core/java/com/android/server/slice/
DSliceManagerService.java99 private final SlicePermissionManager mPermissions; field in SliceManagerService
117 mPermissions = new SlicePermissionManager(mContext, looper); in SliceManagerService()
212 mPermissions.grantSliceAccess(toPkg, user, pkg, user, uri); in grantSlicePermission()
220 mPermissions.revokeSliceAccess(toPkg, user, pkg, user, uri); in revokeSlicePermission()
239 if (mPermissions.hasPermission(pkg, userId, uri)) { in checkSlicePermission()
249 mPermissions.grantSliceAccess(pkg, userId, providerPkg, providerUser, uri); in checkSlicePermission()
269 mPermissions.grantFullAccess(pkg, userId); in grantPermissionFromUser()
277 mPermissions.grantSliceAccess(pkg, userId, providerPkg, providerUser, grantUri); in grantPermissionFromUser()
303 mPermissions.writeBackup(out); in getBackupPayload()
331 mPermissions.readRestore(parser); in applyRestore()
[all …]
/frameworks/opt/chips/src/com/android/ex/chips/
DRecipientEntry.java96 private final String[] mPermissions; field in RecipientEntry
130 mPermissions = permissions; in RecipientEntry()
310 return mPermissions; in getPermissions()
/frameworks/base/tests/net/java/com/android/server/connectivity/
DPermissionMonitorTest.java569 private final HashMap<Integer, Integer> mPermissions = new HashMap<>(); field in PermissionMonitorTest.NetdServiceMonitor
577 mPermissions.put(uid, permission); in NetdServiceMonitor()
585 if (!mPermissions.containsKey(app)) { in expectPermission()
588 if (mPermissions.get(app) != permission) { in expectPermission()
589 fail("uid " + app + " has wrong permission: " + mPermissions.get(app)); in expectPermission()
/frameworks/base/core/java/com/android/server/
DSystemConfig.java137 final ArrayMap<String, PermissionEntry> mPermissions = new ArrayMap<>(); field in SystemConfig
276 return mPermissions; in getPermissions()
1248 if (mPermissions.containsKey(name)) { in readPermission()
1254 mPermissions.put(name, perm); in readPermission()
/frameworks/base/services/core/java/com/android/server/pm/
DSettings.java420 final PermissionSettings mPermissions; field in Settings
427 mPermissions = null; in Settings()
440 mPermissions = permission; in Settings()
480 return mPermissions.canPropagatePermissionToInstantApp(permName); in canPropagatePermissionToInstantApp()
996 BasePermission bp = mPermissions.getPermission(eachPerm); in updateSharedUserPermsLPw()
2215 BasePermission bp = mPermissions.getPermission(name); in readInstallPermissionsLPr()
2498 mPermissions.writePermissionTrees(serializer); in writeLPr()
2502 mPermissions.writePermissions(serializer); in writeLPr()
3042 mPermissions.readPermissions(parser); in readLPw()
3044 mPermissions.readPermissionTrees(parser); in readLPw()
[all …]
/frameworks/base/services/core/java/com/android/server/am/
DActivityManagerService.java20189 private @Nullable String[] mPermissions; field in ActivityManagerService.ShellDelegate
20194 mPermissions = permissions; in ShellDelegate()
20202 mPermissions = permissions; in setPermissions()
20285 if (mPermissions == null) { in isTargetOp()
20298 return (mPermissions == null || ArrayUtils.contains(mPermissions, permission)); in isTargetPermission()