Home
last modified time | relevance | path

Searched refs:perms (Results 1 – 9 of 9) sorted by relevance

/frameworks/base/services/core/java/com/android/server/job/
DGrantedUriPermissions.java70 GrantedUriPermissions perms = null; in createFromIntent() local
74 perms = grantUri(am, data, sourceUid, targetPackage, targetUserId, grantFlags, tag, in createFromIntent()
75 perms); in createFromIntent()
80 perms = grantClip(am, clip, sourceUid, targetPackage, targetUserId, grantFlags, tag, in createFromIntent()
81 perms); in createFromIntent()
84 return perms; in createFromIntent()
92 GrantedUriPermissions perms = null; in createFromClip() local
94 perms = grantClip(am, clip, sourceUid, targetPackage, targetUserId, grantFlags, in createFromClip()
95 tag, perms); in createFromClip()
97 return perms; in createFromClip()
/frameworks/base/core/java/com/android/server/
DSystemConfig.java379 ArraySet<String> perms = mSystemPermissions.get(uid); in readPermissionsFromXml() local
380 if (perms == null) { in readPermissionsFromXml()
381 perms = new ArraySet<String>(); in readPermissionsFromXml()
382 mSystemPermissions.put(uid, perms); in readPermissionsFromXml()
384 perms.add(perm); in readPermissionsFromXml()
/frameworks/support/core-utils/tests/java/android/support/v4/provider/
DDocumentFileTest.java65 final List<UriPermission> perms = resolver.getPersistedUriPermissions(); in setUp() local
67 if (perms.isEmpty()) { in setUp()
71 treeUri = perms.get(0).getUri(); in setUp()
/frameworks/base/core/java/android/widget/
DAppSecurityPermissions.java477 final List<MyPermissionInfo> perms = getPermissionList(grp, which); in displayPermissions() local
478 for (int j=0; j<perms.size(); j++) { in displayPermissions()
479 MyPermissionInfo perm = perms.get(j); in displayPermissions()
/frameworks/base/services/core/java/com/android/server/am/
DBroadcastQueue.java798 final boolean isSignaturePerm(String[] perms) { in isSignaturePerm() argument
799 if (perms == null) { in isSignaturePerm()
803 for (int i = perms.length-1; i >= 0; i--) { in isSignaturePerm()
805 PermissionInfo pi = pm.getPermissionInfo(perms[i], "android", 0); in isSignaturePerm()
DActivityManagerService.java8553 final ArrayMap<GrantUri, UriPermission> perms = mGrantedUriPermissions.get(uid); in checkUriPermissionLocked() local
8554 if (perms == null) return false; in checkUriPermissionLocked()
8557 final UriPermission exactPerm = perms.get(grantUri); in checkUriPermissionLocked()
8563 final int N = perms.size(); in checkUriPermissionLocked()
8565 final UriPermission perm = perms.valueAt(i); in checkUriPermissionLocked()
8978 final ArrayMap<GrantUri, UriPermission> perms = mGrantedUriPermissions.get( in removeUriPermissionIfNeededLocked() local
8980 if (perms != null) { in removeUriPermissionIfNeededLocked()
8984 perms.remove(perm.uri); in removeUriPermissionIfNeededLocked()
8985 if (perms.isEmpty()) { in removeUriPermissionIfNeededLocked()
9011 final ArrayMap<GrantUri, UriPermission> perms = mGrantedUriPermissions.get(callingUid); in revokeUriPermissionLocked() local
[all …]
/frameworks/base/core/java/android/app/
DContextImpl.java2403 int perms = FileUtils.S_IRUSR|FileUtils.S_IWUSR in setFilePermissionsFromMode() local
2407 perms |= FileUtils.S_IROTH; in setFilePermissionsFromMode()
2410 perms |= FileUtils.S_IWOTH; in setFilePermissionsFromMode()
2414 + ", perms=0x" + Integer.toHexString(perms)); in setFilePermissionsFromMode()
2416 FileUtils.setPermissions(name, perms, -1, -1); in setFilePermissionsFromMode()
/frameworks/base/services/core/java/com/android/server/pm/
DSettings.java489 final PermissionsState perms = ps.getPermissionsState(); in applyPendingPermissionGrantsLPw() local
495 perms.grantRuntimePermission(bp, userId); in applyPendingPermissionGrantsLPw()
497 perms.updatePermissionFlags(bp, userId, USER_RUNTIME_GRANT_MASK, grant.grantBits); in applyPendingPermissionGrantsLPw()
4799 final ArrayList<PackageParser.Permission> perms = ps.pkg.permissions; in dumpPackageLPr() local
4801 for (int i=0; i<perms.size(); i++) { in dumpPackageLPr()
4802 PackageParser.Permission perm = perms.get(i); in dumpPackageLPr()
4826 final ArrayList<String> perms = ps.pkg.requestedPermissions; in dumpPackageLPr() local
4828 for (int i=0; i<perms.size(); i++) { in dumpPackageLPr()
4829 String perm = perms.get(i); in dumpPackageLPr()
/frameworks/base/core/tests/coretests/src/android/content/pm/
DPackageManagerTests.java502 private void assertDirOwnerGroupPermsIfExists(String reason, int uid, int gid, int perms, in assertDirOwnerGroupPermsIfExists() argument
538 if ((stat.st_mode & ~S_IFMT) != perms) { in assertDirOwnerGroupPermsIfExists()
540 sb.append(Integer.toOctalString(perms)); in assertDirOwnerGroupPermsIfExists()