Home
last modified time | relevance | path

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

/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/
DGrantedUriPermissions.java72 GrantedUriPermissions perms = null; in createFromIntent() local
76 perms = grantUri(data, sourceUid, targetPackage, targetUserId, grantFlags, tag, in createFromIntent()
77 perms); in createFromIntent()
82 perms = grantClip(clip, sourceUid, targetPackage, targetUserId, grantFlags, tag, in createFromIntent()
83 perms); in createFromIntent()
86 return perms; in createFromIntent()
94 GrantedUriPermissions perms = null; in createFromClip() local
96 perms = grantClip(clip, sourceUid, targetPackage, targetUserId, grantFlags, in createFromClip()
97 tag, perms); in createFromClip()
99 return perms; in createFromClip()
/frameworks/base/services/core/java/com/android/server/pm/pkg/component/
DParsedProcessUtils.java45 private static ParseResult<Set<String>> parseDenyPermission(Set<String> perms, in parseDenyPermission() argument
53 perms = CollectionUtils.add(perms, perm); in parseDenyPermission()
59 return input.success(perms); in parseDenyPermission()
63 private static ParseResult<Set<String>> parseAllowPermission(Set<String> perms, Resources res, in parseAllowPermission() argument
71 perms = CollectionUtils.remove(perms, perm); in parseAllowPermission()
77 return input.success(perms); in parseAllowPermission()
81 …private static ParseResult<ParsedProcess> parseProcess(Set<String> perms, String[] separateProcess… in parseProcess() argument
87 if (perms != null) { in parseProcess()
88 proc.setDeniedPermissions(new ArraySet<>(perms)); in parseProcess()
/frameworks/base/services/core/java/com/android/server/uri/
DUriGrantsManagerService.java284 final ArrayMap<GrantUri, UriPermission> perms = mGrantedUriPermissions.get( in getUriPermissions() local
286 if (perms == null) { in getUriPermissions()
289 for (int j = 0; j < perms.size(); j++) { in getUriPermissions()
290 final UriPermission perm = perms.valueAt(j); in getUriPermissions()
300 final ArrayMap<GrantUri, UriPermission> perms = in getUriPermissions() local
302 for (int j = 0; j < perms.size(); j++) { in getUriPermissions()
303 final UriPermission perm = perms.valueAt(j); in getUriPermissions()
325 final ArrayMap<GrantUri, UriPermission> perms = mGrantedUriPermissions.valueAt(i); in getGrantedUriPermissions() local
326 for (int j = 0; j < perms.size(); j++) { in getGrantedUriPermissions()
327 final UriPermission perm = perms.valueAt(j); in getGrantedUriPermissions()
[all …]
/frameworks/base/services/core/java/com/android/server/am/
DAppPermissionTracker.java565 private @NonNull Pair[] parsePermissionConfig(@NonNull String[] perms) { in parsePermissionConfig() argument
566 final Pair[] result = new Pair[perms.length / 2]; in parsePermissionConfig()
567 for (int i = 0, j = 0; i < perms.length; i += 2, j++) { in parsePermissionConfig()
569 result[j] = Pair.create(TextUtils.isEmpty(perms[i]) ? null : perms[i], in parsePermissionConfig()
570 TextUtils.isEmpty(perms[i + 1]) ? OP_NONE : strOpToOp(perms[i + 1])); in parsePermissionConfig()
DBroadcastQueue.java1126 final boolean isSignaturePerm(String[] perms) { in isSignaturePerm() argument
1127 if (perms == null) { in isSignaturePerm()
1131 for (int i = perms.length-1; i >= 0; i--) { in isSignaturePerm()
1133 PermissionInfo pi = pm.getPermissionInfo(perms[i], "android", 0); in isSignaturePerm()
/frameworks/base/apct-tests/perftests/core/src/android/util/
DXmlPerfTest.java256 int perms = 0; in read() local
281 perms++; in read()
290 assertEquals(packages * PERMS.length, perms); in read()
/frameworks/base/core/java/android/database/sqlite/
DSQLiteOpenHelper.java444 int perms = FileUtils.S_IRUSR | FileUtils.S_IWUSR | FileUtils.S_IRGRP | FileUtils.S_IWGRP; in setFilePermissionsForDb() local
445 FileUtils.setPermissions(dbPath, perms, -1, -1); in setFilePermissionsForDb()
/frameworks/base/core/java/android/permission/
DPermissionControllerService.java432 CollectionUtils.forEach(revoked, (pkg, perms) -> { in onBind()
434 Preconditions.checkCollectionElementsNotNull(perms, "permissions"); in onBind()
/frameworks/native/cmds/installd/
Dutils.cpp627 int create_dir_if_needed(const std::string& pathname, mode_t perms) { in create_dir_if_needed() argument
633 return mkdir(pathname.c_str(), perms); in create_dir_if_needed()
643 if (actual_perms != perms) { in create_dir_if_needed()
644 LOG(WARNING) << pathname << " permissions " << actual_perms << " expected " << perms; in create_dir_if_needed()
/frameworks/base/core/java/com/android/server/
DSystemConfig.java876 ArraySet<String> perms = mSystemPermissions.get(uid); in readPermissionsFromXml() local
877 if (perms == null) { in readPermissionsFromXml()
878 perms = new ArraySet<String>(); in readPermissionsFromXml()
879 mSystemPermissions.put(uid, perms); in readPermissionsFromXml()
881 perms.add(perm); in readPermissionsFromXml()
/frameworks/base/core/java/android/app/
DContextImpl.java3313 int perms = FileUtils.S_IRUSR|FileUtils.S_IWUSR in setFilePermissionsFromMode() local
3317 perms |= FileUtils.S_IROTH; in setFilePermissionsFromMode()
3320 perms |= FileUtils.S_IWOTH; in setFilePermissionsFromMode()
3324 + ", perms=0x" + Integer.toHexString(perms)); in setFilePermissionsFromMode()
3326 FileUtils.setPermissions(name, perms, -1, -1); in setFilePermissionsFromMode()
/frameworks/base/services/tests/PackageManagerServiceTests/server/src/com/android/server/
DPackageManagerTests.java509 private void assertDirOwnerGroupPermsIfExists(String reason, int uid, int gid, int perms, in assertDirOwnerGroupPermsIfExists() argument
545 if ((stat.st_mode & ~S_IFMT) != perms) { in assertDirOwnerGroupPermsIfExists()
547 sb.append(Integer.toOctalString(perms)); in assertDirOwnerGroupPermsIfExists()
/frameworks/base/core/proto/android/os/
Dincident.proto199 // 1. incidentd can't execute `procrank` because it don't have DAC perms
/frameworks/base/services/core/java/com/android/server/pm/
DSettings.java4814 final List<ParsedPermission> perms = pkg.getPermissions();
4816 for (int i=0; i<perms.size(); i++) {
4817 ParsedPermission perm = perms.get(i);
4841 final List<String> perms = pkg.getRequestedPermissions();
4843 for (int i=0; i<perms.size(); i++) {
4844 String perm = perms.get(i);
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DNotificationManagerServiceTest.java8014 TestablePermissions perms = mContext.getTestablePermissions(); in enableInteractAcrossUsers() local
8015 perms.setPermission(android.Manifest.permission.INTERACT_ACROSS_USERS, PERMISSION_GRANTED); in enableInteractAcrossUsers()