Home
last modified time | relevance | path

Searched refs:readPermission (Results 1 – 25 of 30) sorted by relevance

12

/frameworks/base/core/java/com/android/internal/pm/pkg/component/
DParsedProviderImpl.java54 private String readPermission; field in ParsedProviderImpl
72 this.readPermission = other.getReadPermission(); in ParsedProviderImpl()
82 public ParsedProviderImpl setReadPermission(String readPermission) { in setReadPermission() argument
84 this.readPermission = TextUtils.isEmpty(readPermission) in setReadPermission()
85 ? null : readPermission.intern(); in setReadPermission()
128 sForInternedString.parcel(this.readPermission, dest, flags); in writeToParcel()
145 this.readPermission = sForInternedString.unparcel(in); in ParsedProviderImpl()
188 @Nullable String readPermission, in ParsedProviderImpl() argument
198 this.readPermission = readPermission; in ParsedProviderImpl()
226 return readPermission; in getReadPermission()
DParsedProviderUtils.java99 String readPermission = sa.getNonConfigurationString( in parseProvider() local
101 if (readPermission == null) { in parseProvider()
102 readPermission = permission; in parseProvider()
104 if (readPermission == null) { in parseProvider()
107 provider.setReadPermission(readPermission); in parseProvider()
292 String readPermission = sa.getNonConfigurationString( in parsePathPermission() local
294 if (readPermission == null) { in parsePathPermission()
295 readPermission = permission; in parsePathPermission()
304 if (readPermission != null) { in parsePathPermission()
305 readPermission = readPermission.intern(); in parsePathPermission()
[all …]
/frameworks/base/core/java/android/content/pm/
DProviderInfo.java39 public String readPermission = null; field in ProviderInfo
128 readPermission = orig.readPermission; in ProviderInfo()
159 out.writeString8(readPermission); in writeToParcel()
189 readPermission = in.readString8(); in ProviderInfo()
DPathPermission.java32 public PathPermission(String pattern, int type, String readPermission, in PathPermission() argument
35 mReadPermission = readPermission; in PathPermission()
DPackageParser.java5120 p.info.readPermission = owner.applicationInfo.permission; in parseProvider()
5122 p.info.readPermission = in parseProvider()
5300 String readPermission = sa.getNonConfigurationString( in parseProviderTags() local
5302 if (readPermission == null) { in parseProviderTags()
5303 readPermission = permission; in parseProviderTags()
5312 if (readPermission != null) { in parseProviderTags()
5313 readPermission = readPermission.intern(); in parseProviderTags()
5338 PatternMatcher.PATTERN_LITERAL, readPermission, writePermission); in parseProviderTags()
5345 PatternMatcher.PATTERN_PREFIX, readPermission, writePermission); in parseProviderTags()
5352 PatternMatcher.PATTERN_SIMPLE_GLOB, readPermission, writePermission); in parseProviderTags()
[all …]
/frameworks/base/tests/testables/src/android/testing/
DTestableContext.java495 public int checkUriPermission(Uri uri, String readPermission, String writePermission, int pid, in checkUriPermission() argument
500 return super.checkUriPermission(uri, readPermission, writePermission, pid, uid, modeFlags); in checkUriPermission()
522 public void enforceUriPermission(Uri uri, String readPermission, String writePermission, in enforceUriPermission() argument
527 super.enforceUriPermission(uri, readPermission, writePermission, pid, uid, modeFlags, in enforceUriPermission()
/frameworks/base/test-runner/src/android/test/
DIsolatedContext.java123 Uri uri, String readPermission, String writePermission, int pid, in checkUriPermission() argument
/frameworks/base/test-mock/src/android/test/mock/
DMockContentProvider.java228 String readPermission, in MockContentProvider() argument
231 super(context, readPermission, writePermission, pathPermissions); in MockContentProvider()
DMockContext.java763 public int checkUriPermission(Uri uri, String readPermission, in checkUriPermission() argument
787 Uri uri, String readPermission, String writePermission, in enforceUriPermission() argument
/frameworks/base/core/java/android/provider/
DSearchIndexablesProvider.java110 if (!android.Manifest.permission.READ_SEARCH_INDEXABLES.equals(info.readPermission)) { in attachInfo()
DDocumentsProvider.java175 if (!android.Manifest.permission.MANAGE_DOCUMENTS.equals(info.readPermission) in attachInfo()
/frameworks/base/ravenwood/junit-impl-src/android/platform/test/ravenwood/
DRavenwoodBaseContext.java661 public int checkUriPermission(Uri uri, String readPermission, String writePermission, in checkUriPermission() argument
682 public void enforceUriPermission(Uri uri, String readPermission, String writePermission, in enforceUriPermission() argument
/frameworks/base/core/java/android/content/
DContextWrapper.java1049 public int checkUriPermission(@Nullable Uri uri, @Nullable String readPermission, in checkUriPermission() argument
1051 return mBase.checkUriPermission(uri, readPermission, writePermission, in checkUriPermission()
1075 @Nullable Uri uri, @Nullable String readPermission, @Nullable String writePermission, in enforceUriPermission() argument
1078 uri, readPermission, writePermission, pid, uid, modeFlags, in enforceUriPermission()
DContentProvider.java199 String readPermission, in ContentProvider() argument
203 mReadPermission = readPermission; in ContentProvider()
2632 setReadPermission(info.readPermission); in attachInfo()
DContext.java7079 public abstract int checkUriPermission(@Nullable Uri uri, @Nullable String readPermission, in checkUriPermission() argument
7160 @Nullable Uri uri, @Nullable String readPermission, in enforceUriPermission() argument
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
DApplicationContext.java1075 public int checkUriPermission(Uri uri, String readPermission, String writePermission, int pid, in checkUriPermission() argument
1079 … return context.checkUriPermission(uri, readPermission, writePermission, pid, uid, modeFlags); in checkUriPermission()
1109 public void enforceUriPermission(Uri uri, String readPermission, String writePermission, in enforceUriPermission() argument
1113 … context.enforceUriPermission(uri, readPermission, writePermission, pid, uid, modeFlags, message); in enforceUriPermission()
/frameworks/base/services/core/java/com/android/server/uri/
DUriGrantsManagerService.java1051 if (!readMet && pi.readPermission != null && considerUidPermissions in checkHoldingPermissionsInternalUnlocked()
1052 && (checkUidPermission(pi.readPermission, uid) == PERMISSION_GRANTED)) { in checkHoldingPermissionsInternalUnlocked()
1062 boolean allowDefaultRead = pi.readPermission == null; in checkHoldingPermissionsInternalUnlocked()
1250 if (pi.readPermission != null) { in checkGrantUriPermissionUnlocked()
1353 if (android.Manifest.permission.MANAGE_DOCUMENTS.equals(pi.readPermission)) { in checkGrantUriPermissionUnlocked()
/frameworks/base/services/usb/java/com/android/server/usb/
DUsbUserPermissionManager.java327 private void readPermission(@NonNull XmlPullParser parser) throws XmlPullParserException, in readPermission() method in UsbUserPermissionManager
389 readPermission(parser); in readPermissionsLocked()
/frameworks/base/services/tests/servicestests/src/com/android/server/uri/
DUriGrantsMockContext.java166 pi.readPermission = android.Manifest.permission.READ_EXTERNAL_STORAGE; in buildCameraProvider()
/frameworks/base/core/java/android/app/
DContextImpl.java2542 public int checkUriPermission(Uri uri, String readPermission, in checkUriPermission() argument
2546 + readPermission + " writePermission=" + writePermission in checkUriPermission()
2550 if (readPermission == null in checkUriPermission()
2551 || checkPermission(readPermission, pid, uid) in checkUriPermission()
2634 Uri uri, String readPermission, String writePermission, in enforceUriPermission() argument
2638 uri, readPermission, writePermission, pid, uid, in enforceUriPermission()
/frameworks/base/services/core/java/com/android/server/am/
DContentProviderHelper.java1593 if (ActivityManagerService.checkComponentPermission(cpi.readPermission, in checkContentProviderPermission()
1632 } else if (android.Manifest.permission.MANAGE_DOCUMENTS.equals(cpi.readPermission)) { in checkContentProviderPermission()
1635 suffix = " requires " + cpi.readPermission + " or " + cpi.writePermission; in checkContentProviderPermission()
/frameworks/base/test-runner/api/
Dlint-baseline.txt69 Missing nullability on parameter `readPermission` in method `checkUriPermission`
/frameworks/base/core/java/com/android/internal/pm/parsing/
DPackageInfoCommonUtils.java435 pi.readPermission = p.getReadPermission(); in generateProviderInfo()
/frameworks/base/services/core/java/com/android/server/
DSystemConfig.java872 readPermission(parser, perm); in readPermissionsFromXml()
1769 void readPermission(XmlPullParser parser, String name) in readPermission() method in SystemConfig
/frameworks/base/services/core/java/com/android/server/pm/parsing/
DPackageInfoUtils.java696 pi.readPermission = p.getReadPermission(); in generateProviderInfo()

12