/frameworks/base/services/tests/servicestests/src/com/android/server/uri/ |
D | UriPermissionTest.java | 63 final UriPermission perm = new UriPermission(PKG_CAMERA, in testNone() local 65 assertEquals(STRENGTH_NONE, perm.getStrength(FLAG_READ)); in testNone() 71 final UriPermission perm = new UriPermission(PKG_CAMERA, in testGlobal() local 74 assertFalse(perm.grantModes(FLAG_READ, null)); in testGlobal() 75 assertEquals(STRENGTH_GLOBAL, perm.getStrength(FLAG_READ)); in testGlobal() 77 assertFalse(perm.revokeModes(FLAG_READ, true)); in testGlobal() 78 assertEquals(STRENGTH_NONE, perm.getStrength(FLAG_READ)); in testGlobal() 84 final UriPermission perm = new UriPermission(PKG_CAMERA, in testOwned() local 88 assertFalse(perm.grantModes(FLAG_READ, owner)); in testOwned() 89 assertEquals(STRENGTH_OWNED, perm.getStrength(FLAG_READ)); in testOwned() [all …]
|
/frameworks/base/services/core/java/com/android/server/uri/ |
D | UriPermissionOwner.java | 90 final UriPermission perm = it.next(); in removeUriPermission() local 91 if (grantUri != null && !grantUri.equals(perm.uri)) { in removeUriPermission() 94 if (targetPgk != null && !targetPgk.equals(perm.targetPkg)) { in removeUriPermission() 97 if (targetUserId != UserHandle.USER_ALL && targetUserId != perm.targetUserId) { in removeUriPermission() 100 permissionsToRemove.add(perm); in removeUriPermission() 101 perm.removeReadOwner(this); in removeUriPermission() 112 final UriPermission perm = it.next(); in removeUriPermission() local 113 if (grantUri != null && !grantUri.equals(perm.uri)) { in removeUriPermission() 116 if (targetPgk != null && !targetPgk.equals(perm.targetPkg)) { in removeUriPermission() 119 if (targetUserId != UserHandle.USER_ALL && targetUserId != perm.targetUserId) { in removeUriPermission() [all …]
|
D | UriGrantsManagerService.java | 317 final UriPermission perm = perms.valueAt(j); in getUriPermissions() local 318 if (packageName.equals(perm.targetPkg) in getUriPermissions() 319 && (!persistedOnly || perm.persistedModeFlags != 0)) { in getUriPermissions() 320 result.add(perm.buildPersistedPublicApiObject()); in getUriPermissions() 330 final UriPermission perm = perms.valueAt(j); in getUriPermissions() local 331 if (packageName.equals(perm.sourcePkg) in getUriPermissions() 332 && (!persistedOnly || perm.persistedModeFlags != 0)) { in getUriPermissions() 333 result.add(perm.buildPersistedPublicApiObject()); in getUriPermissions() 354 final UriPermission perm = perms.valueAt(j); in getGrantedUriPermissions() local 355 if ((packageName == null || packageName.equals(perm.targetPkg)) in getGrantedUriPermissions() [all …]
|
D | UriPermission.java | 379 private Snapshot(UriPermission perm) { in Snapshot() argument 380 this.targetUserId = perm.targetUserId; in Snapshot() 381 this.sourcePkg = perm.sourcePkg; in Snapshot() 382 this.targetPkg = perm.targetPkg; in Snapshot() 383 this.uri = perm.uri; in Snapshot() 384 this.persistedModeFlags = perm.persistedModeFlags; in Snapshot() 385 this.persistedCreateTime = perm.persistedCreateTime; in Snapshot()
|
D | UriGrantsManagerInternal.java | 36 void removeUriPermissionIfNeeded(UriPermission perm); in removeUriPermissionIfNeeded() argument
|
/frameworks/base/errorprone/java/com/google/errorprone/bugpatterns/android/ |
D | RequiresPermissionChecker.java | 237 public boolean containsAll(ParsedRequiresPermission perm) { in containsAll() argument 238 boolean allMet = allOf.containsAll(perm.allOf); in containsAll() 240 if (perm.anyOf.isEmpty()) { in containsAll() 243 for (String anyPerm : perm.anyOf) { in containsAll() 275 public static ParsedRequiresPermission from(RequiresPermission perm) { in from() argument 277 res.addAll(perm); in from() 281 public void addAll(ParsedRequiresPermission perm) { in addAll() argument 282 if (perm == null) return; in addAll() 283 this.allOf.addAll(perm.allOf); in addAll() 284 this.anyOf.addAll(perm.anyOf); in addAll() [all …]
|
D | BluetoothPermissionChecker.java | 171 private static boolean isPermissionReferenced(RequiresPermission anno, String perm) { in isPermissionReferenced() argument 173 if (perm.equals(anno.value())) return true; in isPermissionReferenced() 174 return anno.allOf() != null && Arrays.asList(anno.allOf()).contains(perm); in isPermissionReferenced()
|
/frameworks/compile/mclinker/lib/Support/Unix/ |
D | FileSystem.inc | 106 mode_t perm = 0; 108 perm |= S_IRUSR; 110 perm |= S_IWUSR; 112 perm |= S_IXUSR; 114 perm |= S_IRGRP; 116 perm |= S_IWGRP; 118 perm |= S_IXGRP; 120 perm |= S_IROTH; 122 perm |= S_IWOTH; 124 perm |= S_IXOTH; [all …]
|
/frameworks/native/cmds/servicemanager/ |
D | Access.cpp | 140 bool Access::actionAllowed(const CallingContext& sctx, const char* tctx, const char* perm, in actionAllowed() argument 150 return 0 == selinux_check_access(sctx.sid.c_str(), tctx, tclass, perm, in actionAllowed() 155 (void)perm; in actionAllowed() 162 …s::actionAllowedFromLookup(const CallingContext& sctx, const std::string& name, const char *perm) { in actionAllowedFromLookup() argument 170 bool allowed = actionAllowed(sctx, tctx, perm, name); in actionAllowedFromLookup() 176 (void)perm; in actionAllowedFromLookup()
|
D | Access.h | 50 bool actionAllowed(const CallingContext& sctx, const char* tctx, const char* perm, 53 const char *perm);
|
/frameworks/av/services/audiopolicy/permission/ |
D | NativePermissionController.cpp | 91 Status NativePermissionController::populatePermissionState(PermissionEnum perm, in populatePermissionState() argument 93 if (perm >= PermissionEnum::ENUM_SIZE || static_cast<int>(perm) < 0) { in populatePermissionState() 97 auto& cursor = permission_map_[static_cast<size_t>(perm)]; in populatePermissionState() 149 BinderResult<bool> NativePermissionController::checkPermission(PermissionEnum perm, in checkPermission() argument 152 const auto& uids = permission_map_[static_cast<size_t>(perm)]; in checkPermission()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | BroadcastSkipPolicy.java | 124 int perm = checkComponentPermission(info.activityInfo.permission, in shouldSkipMessage() local 127 if (perm != PackageManager.PERMISSION_GRANTED) { in shouldSkipMessage() 245 perm = AppGlobals.getPackageManager() in shouldSkipMessage() 251 perm = PackageManager.PERMISSION_DENIED; in shouldSkipMessage() 259 if ((perm == PackageManager.PERMISSION_GRANTED) && ( in shouldSkipMessage() 270 if (perm == PackageManager.PERMISSION_GRANTED) { in shouldSkipMessage() 302 perm = hasPermissionForDataDelivery( in shouldSkipMessage() 309 perm = AppGlobals.getPackageManager() in shouldSkipMessage() 317 perm = PackageManager.PERMISSION_DENIED; in shouldSkipMessage() 319 if (perm != PackageManager.PERMISSION_GRANTED) { in shouldSkipMessage() [all …]
|
/frameworks/base/core/java/com/android/internal/pm/pkg/component/ |
D | ParsedProcessUtils.java | 51 String perm = sa.getNonConfigurationString( in parseDenyPermission() local 53 if (perm != null && perm.equals(android.Manifest.permission.INTERNET)) { in parseDenyPermission() 54 perms = CollectionUtils.add(perms, perm); in parseDenyPermission() 69 String perm = sa.getNonConfigurationString( in parseAllowPermission() local 71 if (perm != null && perm.equals(android.Manifest.permission.INTERNET)) { in parseAllowPermission() 72 perms = CollectionUtils.remove(perms, perm); in parseAllowPermission()
|
/frameworks/av/drm/drmserver/ |
D | DrmManagerService.cpp | 51 const char *DrmManagerService::get_perm_label(drm_perm_t perm) { in get_perm_label() argument 52 unsigned int index = perm; in get_perm_label() 55 ALOGE("SELinux: Failed to retrieve permission label(perm=%d).\n", perm); in get_perm_label() 61 bool DrmManagerService::selinuxIsProtectedCallAllowed(pid_t spid, const char* ssid, drm_perm_t perm… in selinuxIsProtectedCallAllowed() argument 68 const char *str_perm = get_perm_label(perm); in selinuxIsProtectedCallAllowed() 86 bool DrmManagerService::isProtectedCallAllowed(drm_perm_t perm) { in isProtectedCallAllowed() argument 97 return selinuxIsProtectedCallAllowed(spid, ssid, perm); in isProtectedCallAllowed()
|
D | DrmManagerService.h | 61 static const char *get_perm_label(drm_perm_t perm); 63 static bool selinuxIsProtectedCallAllowed(pid_t spid, const char* ssid, drm_perm_t perm); 65 static bool isProtectedCallAllowed(drm_perm_t perm);
|
/frameworks/base/core/java/android/companion/ |
D | flags.aconfig | 39 description: "Expose perm sync user consent API" 47 description: "Enable ongoing perm sync"
|
/frameworks/compile/mclinker/lib/Support/Windows/ |
D | FileSystem.inc | 77 int perm = 0; 80 perm |= _S_IREAD; 84 perm |= _S_IWRITE; 86 return ::_open(pPath.native().c_str(), pOFlag | _O_BINARY, perm);
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | PermissionHelper.java | 91 for (String perm : pi.requestedPermissions) { in hasRequestedPermission() 92 if (permission.equals(perm)) { in hasRequestedPermission() 118 for (String perm : pi.requestedPermissions) { in getAppsRequestingPermission() 119 if (NOTIFICATION_PERMISSION.equals(perm)) { in getAppsRequestingPermission()
|
/frameworks/av/aidl/com/android/media/permission/ |
D | INativePermissionController.aidl | 45 void populatePermissionState(in PermissionEnum perm, in int[] uids); in populatePermissionState() argument
|
/frameworks/base/core/java/android/content/pm/ |
D | AppsQueryHelper.java | 209 protected List<PackageInfo> getPackagesHoldingPermission(String perm, int userId) { in getPackagesHoldingPermission() argument 211 return mPackageManager.getPackagesHoldingPermissions(new String[]{perm}, 0, in getPackagesHoldingPermission()
|
/frameworks/base/services/core/java/com/android/server/ |
D | SystemConfig.java | 864 String perm = parser.getAttributeValue(null, "name"); in readPermissionsFromXml() local 865 if (perm == null) { in readPermissionsFromXml() 871 perm = perm.intern(); in readPermissionsFromXml() 872 readPermission(parser, perm); in readPermissionsFromXml() 880 String perm = parser.getAttributeValue(null, "name"); in readPermissionsFromXml() local 881 if (perm == null) { in readPermissionsFromXml() 902 perm = perm.intern(); in readPermissionsFromXml() 908 perms.add(perm); in readPermissionsFromXml() 1776 final PermissionEntry perm = new PermissionEntry(name, perUser); in readPermission() local 1777 mPermissions.put(name, perm); in readPermission() [all …]
|
/frameworks/base/services/core/java/com/android/server/audio/ |
D | AudioServerPermissionProvider.java | 205 private int[] getUidsHoldingPerm(String perm) { in getUidsHoldingPerm() argument 210 if (mPermissionPredicate.test(uid, perm)) { in getUidsHoldingPerm()
|
/frameworks/base/core/java/android/os/ |
D | SELinux.java | 126 …atic final native boolean checkSELinuxAccess(String scon, String tcon, String tclass, String perm); in checkSELinuxAccess() argument
|
/frameworks/base/telephony/common/com/android/internal/telephony/ |
D | TelephonyPermissions.java | 741 for (String perm : permissions) { in enforceAnyPermissionGranted() 742 if (context.checkCallingOrSelfPermission(perm) == PERMISSION_GRANTED) { in enforceAnyPermissionGranted() 783 for (String perm : permissions) { in enforceAnyPermissionGrantedOrCarrierPrivileges() 784 if (context.checkCallingOrSelfPermission(perm) == PERMISSION_GRANTED) { in enforceAnyPermissionGrantedOrCarrierPrivileges()
|
/frameworks/base/apct-tests/perftests/core/src/android/util/ |
D | XmlPerfTest.java | 235 for (String perm : PERMS) { in write() 237 out.attributeInterned(null, "name", perm); in write()
|