Searched refs:perms (Results 1 - 10 of 10) sorted by relevance

/frameworks/base/services/core/java/com/android/server/job/
H A DGrantedUriPermissions.java70 GrantedUriPermissions perms = null;
74 perms = grantUri(am, data, sourceUid, targetPackage, targetUserId, grantFlags, tag,
75 perms);
80 perms = grantClip(am, clip, sourceUid, targetPackage, targetUserId, grantFlags, tag,
81 perms);
84 return perms;
92 GrantedUriPermissions perms = null;
94 perms = grantClip(am, clip, sourceUid, targetPackage, targetUserId, grantFlags,
95 tag, perms);
97 return perms;
[all...]
/frameworks/base/core/java/com/android/server/
H A DSystemConfig.java379 ArraySet<String> perms = mSystemPermissions.get(uid);
380 if (perms == null) {
381 perms = new ArraySet<String>();
382 mSystemPermissions.put(uid, perms);
384 perms.add(perm);
/frameworks/support/core-utils/tests/java/android/support/v4/provider/
H A DDocumentFileTest.java65 final List<UriPermission> perms = resolver.getPersistedUriPermissions();
67 if (perms.isEmpty()) {
71 treeUri = perms.get(0).getUri();
/frameworks/base/core/java/android/widget/
H A DAppSecurityPermissions.java477 final List<MyPermissionInfo> perms = getPermissionList(grp, which);
478 for (int j=0; j<perms.size(); j++) {
479 MyPermissionInfo perm = perms.get(j);
/frameworks/base/services/core/java/com/android/server/am/
H A DBroadcastQueue.java796 * Return true if all given permissions are signature-only perms.
798 final boolean isSignaturePerm(String[] perms) { argument
799 if (perms == null) {
803 for (int i = perms.length-1; i >= 0; i--) {
805 PermissionInfo pi = pm.getPermissionInfo(perms[i], "android", 0);
H A DActivityManagerService.java8553 final ArrayMap<GrantUri, UriPermission> perms = mGrantedUriPermissions.get(uid);
8554 if (perms == null) return false;
8557 final UriPermission exactPerm = perms.get(grantUri);
8563 final int N = perms.size();
8565 final UriPermission perm = perms.valueAt(i);
8978 final ArrayMap<GrantUri, UriPermission> perms = mGrantedUriPermissions.get(
8980 if (perms != null) {
8984 perms.remove(perm.uri);
8985 if (perms.isEmpty()) {
9011 final ArrayMap<GrantUri, UriPermission> perms
[all...]
/frameworks/base/core/java/android/app/
H A DContextImpl.java2403 int perms = FileUtils.S_IRUSR|FileUtils.S_IWUSR
2407 perms |= FileUtils.S_IROTH;
2410 perms |= FileUtils.S_IWOTH;
2414 + ", perms=0x" + Integer.toHexString(perms));
2416 FileUtils.setPermissions(name, perms, -1, -1);
/frameworks/base/services/core/java/com/android/server/pm/
H A DSettings.java186 private static final String TAG_PERMISSIONS = "perms";
238 private static final String TAG_RESTORED_RUNTIME_PERMISSIONS = "restored-perms";
489 final PermissionsState perms = ps.getPermissionsState();
495 perms.grantRuntimePermission(bp, userId);
497 perms.updatePermissionFlags(bp, userId, USER_RUNTIME_GRANT_MASK, grant.grantBits);
4195 } else if (tagName.equals("perms")) {
4799 final ArrayList<PackageParser.Permission> perms = ps.pkg.permissions;
4801 for (int i=0; i<perms.size(); i++) {
4802 PackageParser.Permission perm = perms.get(i);
4826 final ArrayList<String> perms
[all...]
H A DPackageManagerService.java5064 ArraySet<String> perms = mSystemPermissions.get(uid);
5065 if (perms != null) {
5066 if (perms.contains(permName)) {
5069 if (Manifest.permission.ACCESS_COARSE_LOCATION.equals(permName) && perms
20872 PermissionsState perms = ps.getPermissionsState();
20876 perms.grantRuntimePermission(bp, userId);
20879 perms.updatePermissionFlags(bp, userId, USER_RUNTIME_GRANT_MASK, newFlagSet);
[all...]
/frameworks/base/core/tests/coretests/src/android/content/pm/
H A DPackageManagerTests.java502 private void assertDirOwnerGroupPermsIfExists(String reason, int uid, int gid, int perms, argument
538 if ((stat.st_mode & ~S_IFMT) != perms) {
540 sb.append(Integer.toOctalString(perms));
2664 // to other apps (but not other perms)?

Completed in 386 milliseconds