/frameworks/base/services/java/com/android/server/am/ |
D | UriPermissionOwner.java | 69 for (UriPermission perm : readUriPermissions) { in removeUriPermissionsLocked() 70 perm.readOwners.remove(this); in removeUriPermissionsLocked() 71 if (perm.readOwners.size() == 0 && (perm.globalModeFlags in removeUriPermissionsLocked() 73 perm.modeFlags &= ~Intent.FLAG_GRANT_READ_URI_PERMISSION; in removeUriPermissionsLocked() 74 service.removeUriPermissionIfNeededLocked(perm); in removeUriPermissionsLocked() 81 for (UriPermission perm : writeUriPermissions) { in removeUriPermissionsLocked() 82 perm.writeOwners.remove(this); in removeUriPermissionsLocked() 83 if (perm.writeOwners.size() == 0 && (perm.globalModeFlags in removeUriPermissionsLocked() 85 perm.modeFlags &= ~Intent.FLAG_GRANT_WRITE_URI_PERMISSION; in removeUriPermissionsLocked() 86 service.removeUriPermissionIfNeededLocked(perm); in removeUriPermissionsLocked() [all …]
|
D | BroadcastQueue.java | 385 int perm = mService.checkComponentPermission(filter.requiredPermission, in deliverToRegisteredReceiverLocked() local 387 if (perm != PackageManager.PERMISSION_GRANTED) { in deliverToRegisteredReceiverLocked() 398 int perm = mService.checkComponentPermission(r.requiredPermission, in deliverToRegisteredReceiverLocked() local 400 if (perm != PackageManager.PERMISSION_GRANTED) { in deliverToRegisteredReceiverLocked() 669 int perm = mService.checkComponentPermission(info.activityInfo.permission, in processNextBroadcast() local 672 if (perm != PackageManager.PERMISSION_GRANTED) { in processNextBroadcast() 693 perm = AppGlobals.getPackageManager(). in processNextBroadcast() 697 perm = PackageManager.PERMISSION_DENIED; in processNextBroadcast() 699 if (perm != PackageManager.PERMISSION_GRANTED) { in processNextBroadcast()
|
D | ActivityManagerService.java | 5039 UriPermission perm = perms.get(uri); in checkUriPermissionLocked() 5040 if (perm == null) return false; in checkUriPermissionLocked() 5041 return (modeFlags&perm.modeFlags) == modeFlags; in checkUriPermissionLocked() 5225 UriPermission perm = targetUris.get(uri); in grantUriPermissionUncheckedLocked() local 5226 if (perm == null) { in grantUriPermissionUncheckedLocked() 5227 perm = new UriPermission(targetUid, uri); in grantUriPermissionUncheckedLocked() 5228 targetUris.put(uri, perm); in grantUriPermissionUncheckedLocked() 5231 perm.modeFlags |= modeFlags; in grantUriPermissionUncheckedLocked() 5233 perm.globalModeFlags |= modeFlags; in grantUriPermissionUncheckedLocked() 5236 perm.readOwners.add(owner); in grantUriPermissionUncheckedLocked() [all …]
|
/frameworks/base/core/java/android/widget/ |
D | AppSecurityPermissions.java | 92 MyPermissionGroupInfo(PermissionInfo perm) { in MyPermissionGroupInfo() argument 93 name = perm.packageName; in MyPermissionGroupInfo() 94 packageName = perm.packageName; in MyPermissionGroupInfo() 160 public void setPermission(MyPermissionGroupInfo grp, MyPermissionInfo perm, in setPermission() argument 163 mPerm = perm; in setPermission() 173 CharSequence label = perm.mLabel; in setPermission() 174 if (perm.mNew && newPermPrefix != null) { in setPermission() 190 if (localLOGV) Log.i(TAG, "Made perm item " + perm.name in setPermission() 502 MyPermissionInfo perm = perms.get(j); in displayPermissions() local 503 View view = getPermissionItemView(grp, perm, j == 0, in displayPermissions() [all …]
|
/frameworks/base/core/java/android/content/pm/ |
D | PackageParser.java | 420 final String perm = p.requestedPermissions.get(i); in generatePackageInfo() local 421 pi.requestedPermissions[i] = perm; in generatePackageInfo() 425 if (grantedPermissions != null && grantedPermissions.contains(perm)) { in generatePackageInfo() 1345 final String perm = spi.newPerms[in]; in parsePackage() local 1346 if (!pkg.requestedPermissions.contains(perm)) { in parsePackage() 1347 pkg.requestedPermissions.add(perm); in parsePackage() 1471 PermissionGroup perm = new PermissionGroup(owner); in parsePermissionGroup() local 1476 if (!parsePackageItemInfo(owner, perm.info, outError, in parsePermissionGroup() 1487 perm.info.descriptionRes = sa.getResourceId( in parsePermissionGroup() 1490 perm.info.flags = sa.getInt( in parsePermissionGroup() [all …]
|
/frameworks/base/core/jni/ |
D | android_os_SELinux.cpp | 438 …LinuxAccess(JNIEnv *env, jobject clazz, jstring scon, jstring tcon, jstring tclass, jstring perm) { in checkSELinuxAccess() argument 448 if (scon == NULL || tcon == NULL || tclass == NULL || perm == NULL) in checkSELinuxAccess() 454 myperm = env->GetStringUTFChars(perm, NULL); in checkSELinuxAccess() 467 env->ReleaseStringUTFChars(perm, myperm); in checkSELinuxAccess()
|
/frameworks/compile/mclinker/lib/CodeGen/ |
D | SectLinker.cpp | 181 FileHandle::Permission perm; in initializeInputOutput() local 183 perm = 0544; in initializeInputOutput() 185 perm = 0755; in initializeInputOutput() 189 perm); in initializeInputOutput()
|
/frameworks/base/core/java/android/accounts/ |
D | AbstractAccountAuthenticator.java | 308 final String perm = Manifest.permission.ACCOUNT_MANAGER; in checkBinderPermission() local 309 if (mContext.checkCallingOrSelfPermission(perm) != PackageManager.PERMISSION_GRANTED) { in checkBinderPermission() 310 throw new SecurityException("caller uid " + uid + " lacks " + perm); in checkBinderPermission()
|
D | AccountManagerService.java | 2182 for (String perm : permissions) { in checkBinderPermission() 2183 if (mContext.checkCallingOrSelfPermission(perm) == PackageManager.PERMISSION_GRANTED) { in checkBinderPermission() 2185 Log.v(TAG, " caller uid " + uid + " has " + perm); in checkBinderPermission()
|
/frameworks/base/services/java/com/android/server/pm/ |
D | BasePermission.java | 39 PackageParser.Permission perm; field in BasePermission
|
D | PackageManagerService.java | 1466 String perm = parser.getAttributeValue(null, "name"); in readPermissionsFromXml() local 1467 if (perm == null) { in readPermissionsFromXml() 1473 perm = perm.intern(); in readPermissionsFromXml() 1474 readPermission(parser, perm); in readPermissionsFromXml() 1477 String perm = parser.getAttributeValue(null, "name"); in readPermissionsFromXml() local 1478 if (perm == null) { in readPermissionsFromXml() 1499 perm = perm.intern(); in readPermissionsFromXml() 1505 perms.add(perm); in readPermissionsFromXml() 1718 if (bp.perm != null) { in generatePermissionInfo() 1719 return PackageParser.generatePermissionInfo(bp.perm, flags); in generatePermissionInfo() [all …]
|
D | Settings.java | 347 bp.perm = null; in transferPermissionsLPw() 1524 final PermissionInfo pi = bp.perm != null ? bp.perm.info : bp.pendingInfo; in writePermissionLPr() 2760 if (p.perm != null) { in dumpPermissionsLPr() 2761 pw.print(" perm="); pw.println(p.perm); in dumpPermissionsLPr()
|
/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/av/media/mtp/ |
D | MtpDevice.h | 103 int perm);
|
D | MtpDevice.cpp | 668 bool MtpDevice::readObject(MtpObjectHandle handle, const char* destPath, int group, int perm) { in readObject() argument 679 fchmod(fd, perm); in readObject()
|
/frameworks/compile/mclinker/tools/mcld/lib/Core/ |
D | Linker.cpp | 296 mcld::FileHandle::Permission perm = 0755; in setOutput() local 303 perm); in setOutput()
|
/frameworks/compile/libbcc/lib/Core/ |
D | Linker.cpp | 303 mcld::FileHandle::Permission perm = 0755; in setOutput() local 310 perm); in setOutput()
|
/frameworks/base/cmds/pm/src/com/android/commands/pm/ |
D | Pm.java | 1254 String perm = nextArg(); in runGrantRevokePermission() local 1255 if (perm == null) { in runGrantRevokePermission() 1262 mPm.grantPermission(pkg, perm); in runGrantRevokePermission() 1264 mPm.revokePermission(pkg, perm); in runGrantRevokePermission()
|
/frameworks/base/core/java/android/app/ |
D | ActivityManagerNative.java | 303 String perm = data.readString(); in onTransact() local 305 Intent intent = registerReceiver(app, packageName, rec, filter, perm, userId); in onTransact() 343 String perm = data.readString(); in onTransact() local 348 resultCode, resultData, resultExtras, perm, in onTransact() 1010 String perm = data.readString(); in onTransact() local 1013 int res = checkPermission(perm, pid, uid); in onTransact() 1466 IBinder perm = newUriPermissionOwner(name); in onTransact() local 1468 reply.writeStrongBinder(perm); in onTransact() 2104 IntentFilter filter, String perm, int userId) throws RemoteException in registerReceiver() argument 2113 data.writeString(perm); in registerReceiver()
|
/frameworks/base/services/java/com/android/server/ |
D | MountService.java | 1121 private void validatePermission(String perm) { in validatePermission() argument 1122 if (mContext.checkCallingOrSelfPermission(perm) != PackageManager.PERMISSION_GRANTED) { in validatePermission() 1123 throw new SecurityException(String.format("Requires %s permission", perm)); in validatePermission()
|
D | BackupManagerService.java | 5722 int perm = mContext.checkPermission(android.Manifest.permission.BACKUP, in restorePackage() local 5724 if ((perm == PackageManager.PERMISSION_DENIED) && in restorePackage()
|