/frameworks/base/core/java/android/provider/ |
D | DocumentsContract.java | 956 .authority(treeUri.getAuthority()).appendPath(PATH_TREE) in buildDocumentUriUsingTree() 966 return buildDocumentUri(baseUri.getAuthority(), documentId); in buildDocumentUriMaybeUsingTree() 1013 .authority(treeUri.getAuthority()).appendPath(PATH_TREE) in buildChildDocumentsUriUsingTree() 1131 if (isContentUri(uri) && isDocumentsProvider(context, uri.getAuthority())) { in isDocumentUri() 1180 if (isContentUri(uri) && isDocumentsProvider(context, uri.getAuthority())) { in isRootUri() 1326 final Bundle out = content.call(parentDocumentUri.getAuthority(), in createDocument() 1356 final Bundle out = content.call(parentDocumentUri.getAuthority(), in isChildDocument() 1392 final Bundle out = content.call(documentUri.getAuthority(), in renameDocument() 1415 content.call(documentUri.getAuthority(), in deleteDocument() 1441 final Bundle out = content.call(sourceDocumentUri.getAuthority(), in copyDocument() [all …]
|
D | DocumentsProvider.java | 990 final Uri narrowUri = buildDocumentUri(uri.getAuthority(), getDocumentId(uri)); in canonicalize() 1093 final String authority = documentUri.getAuthority(); in callUnchecked() 1108 final String childAuthority = childUri.getAuthority(); in callUnchecked()
|
/frameworks/base/services/core/java/com/android/server/slice/ |
D | SliceClientPermissions.java | 82 public synchronized SliceAuthority getAuthority(PkgUser authority) { in getAuthority() method in SliceClientPermissions 104 SliceAuthority authority = getAuthority(new PkgUser(uri.getAuthority(), userId)); in hasPermission() 110 new PkgUser(uri.getAuthority(), providerPkg.getUserId()), in grantUri() 117 new PkgUser(uri.getAuthority(), providerPkg.getUserId()), in revokeUri() 183 provider.mAuths.put(new PkgUser(authority.getAuthority(), pkg.getUserId()), in createFrom() 212 public String getAuthority() { in getAuthority() method in SliceClientPermissions.SliceAuthority
|
D | SliceProviderPermissions.java | 119 provider.mAuths.put(authority.getAuthority(), authority); in createFrom() 144 public String getAuthority() { in getAuthority() method in SliceProviderPermissions.SliceAuthority
|
D | SlicePermissionManager.java | 109 provider.getOrCreateAuthority(ContentProvider.getUriWithoutUserId(uri).getAuthority()) in grantSliceAccess() 128 getClient(p).removeAuthority(authority.getAuthority(), userId); in removePkg()
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/slice/ |
D | SliceClientPermissionsTest.java | 198 authorities.sort(Comparator.comparing(SliceAuthority::getAuthority)); in testCreation() 201 assertEquals("com.android.pkg", authorities.get(0).getAuthority()); in testCreation() 202 assertEquals("com.android.pkg.slices", authorities.get(1).getAuthority()); in testCreation() 234 a1.sort(Comparator.comparing(SliceAuthority::getAuthority)); in assertEquivalent() 235 a2.sort(Comparator.comparing(SliceAuthority::getAuthority)); in assertEquivalent()
|
D | SliceProviderPermissionsTest.java | 80 authorities.sort(Comparator.comparing(SliceAuthority::getAuthority)); in testCreation() 83 assertEquals("com.android.pkg", authorities.get(0).getAuthority()); in testCreation() 84 assertEquals("com.android.pkg.slices", authorities.get(1).getAuthority()); in testCreation()
|
/frameworks/base/core/java/android/app/slice/ |
D | SliceMetrics.java | 47 mLogMaker.addTaggedData(MetricsEvent.FIELD_SLICE_AUTHORITY, uri.getAuthority()); in SliceMetrics() 90 .addTaggedData(MetricsEvent.FIELD_SUBSLICE_AUTHORITY, subSlice.getAuthority()) in logTouch()
|
D | SliceManager.java | 304 String authority = getAuthority(intent); in mapIntentToUri() 327 private String getAuthority(Intent intent) { in getAuthority() method in SliceManager 382 String authority = getAuthority(intent); in bindSlice()
|
/frameworks/base/core/tests/coretests/src/android/content/res/ |
D | FontResourcesParserTest.java | 105 assertEquals("com.example.test.fontprovider.authority", providerEntry.getAuthority()); in testParseDownloadableFont() 119 assertEquals("com.example.test.fontprovider", providerResourceEntry.getAuthority()); in testParseDownloadableFont_singleCerts() 140 assertEquals("com.example.test.fontprovider", providerResourceEntry.getAuthority()); in testParseDownloadableFont_multipleCerts()
|
/frameworks/base/tests/testables/src/android/testing/ |
D | TestableContentResolver.java | 152 if (!mProviders.containsKey(uri.getAuthority()) in notifyChange() 153 && !mUnstableProviders.containsKey(uri.getAuthority())) { in notifyChange()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | CarrierResolverTest.java | 261 Carriers.CONTENT_URI.getAuthority(), new CarrierIdContentProvider()); in testCarrierMatchPreferApnChange() 279 if (CarrierId.All.CONTENT_URI.getAuthority().equals( in query() 280 uri.getAuthority())) { in query() 492 } else if (Carriers.CONTENT_URI.getAuthority().equals(uri.getAuthority())) { in query()
|
D | SubscriptionInfoUpdaterTest.java | 156 SubscriptionManager.CONTENT_URI.getAuthority(), in setUp() 747 SubscriptionManager.CONTENT_URI.getAuthority(), in testUpdateFromCarrierConfigOpportunisticUnchanged() 772 SubscriptionManager.CONTENT_URI.getAuthority(), in testUpdateFromCarrierConfigOpportunisticSetOpportunistic() 804 SubscriptionManager.CONTENT_URI.getAuthority(), in testUpdateFromCarrierConfigOpportunisticAddToGroup() 840 SubscriptionManager.CONTENT_URI.getAuthority(), in testUpdateFromCarrierConfigOpportunisticRemoveFromGroup() 882 SubscriptionManager.CONTENT_URI.getAuthority(), in testUpdateFromCarrierConfigCarrierCertificates()
|
D | SmsNumberUtilsTest.java | 124 .addProvider(HbpcdLookup.MccIdd.CONTENT_URI.getAuthority(), mHbpcdContentProvider); in setUp()
|
/frameworks/base/core/java/android/content/ |
D | UriMatcher.java | 228 if (li == 0 && uri.getAuthority() == null) { 233 String u = i < 0 ? uri.getAuthority() : pathSegments.get(i);
|
D | ContentResolver.java | 1763 String authority = uri.getAuthority(); 2022 return call(uri.getAuthority(), method, arg, extras); 2066 final String auth = uri.getAuthority(); 2086 final String auth = uri.getAuthority(); 2115 String auth = uri.getAuthority(); 2117 return acquireUnstableProvider(mContext, uri.getAuthority()); 2148 return new ContentProviderClient(this, provider, uri.getAuthority(), true); 2196 return new ContentProviderClient(this, provider, uri.getAuthority(), false); 2549 requestSync(account, uri != null ? uri.getAuthority() : null, extras); 2658 cancelSync(null /* all accounts */, uri != null ? uri.getAuthority() : null);
|
/frameworks/opt/vcard/tests/src/com/android/vcard/tests/testutils/ |
D | ExportTestProvider.java | 102 final String authority = uri.getAuthority(); in queryEntities() 103 TestCase.assertTrue(RawContacts.CONTENT_URI.getAuthority().equals(authority)); in queryEntities()
|
D | ExportTestResolver.java | 27 addProvider(RawContacts.CONTENT_URI.getAuthority(), mProvider); in ExportTestResolver()
|
/frameworks/base/telephony/java/android/telephony/mbms/ |
D | MbmsTempFileProvider.java | 150 if (!Objects.equals(authority, uri.getAuthority())) { in getFileForUri() 152 authority + ", " + uri.getAuthority()); in getFileForUri()
|
/frameworks/base/core/tests/coretests/src/android/net/ |
D | UriTest.java | 86 assertNull(u.getAuthority()); in testBuildUponOpaqueStringUri() 195 assertEquals("a:a@example.com:a@example2.com", uri.getAuthority()); in testAuthorityParsing() 395 assertNull(uri.getAuthority()); in testOpaqueUri() 514 assertEquals(authority, uri.getAuthority()); in compareHierarchical() 834 assertEquals(uri.getAuthority(), uri.getEncodedAuthority()); in testPart_consistentEncodedVsDecoded() 837 assertEquals("a.com", uri.getAuthority()); in testPart_consistentEncodedVsDecoded()
|
/frameworks/base/services/core/java/com/android/server/uri/ |
D | UriGrantsManagerService.java | 442 if (Downloads.Impl.AUTHORITY.equals(perm.uri.uri.getAuthority()) in removeUriPermissionsForPackage() 487 String uriAuth = uri.getAuthority(); in matchesProvider() 664 final ProviderInfo pi = getProviderInfo(uri.getAuthority(), sourceUserId, in readGrantedUriPermissions() 726 final String authority = grantUri.uri.getAuthority(); in grantUriPermissionUnchecked() 780 final String authority = grantUri.uri.getAuthority(); in revokeUriPermission() 1035 if ("com.android.settings.files".equals(grantUri.uri.getAuthority()) in checkGrantUriPermission() 1036 || "com.android.settings.module_licenses".equals(grantUri.uri.getAuthority())) { in checkGrantUriPermission() 1049 final String authority = grantUri.uri.getAuthority(); in checkGrantUriPermission()
|
/frameworks/base/packages/SettingsLib/Tile/src/com/android/settingslib/drawer/ |
D | TileUtils.java | 370 return provider.call(context.getPackageName(), uri.getAuthority(), in getBundleFromUri() 382 String authority = uri.getAuthority(); in getProviderFromUri()
|
/frameworks/base/cmds/uiautomator/library/testrunner-src/com/android/uiautomator/core/ |
D | ShellUiAutomatorBridge.java | 61 String providerName = Settings.Secure.CONTENT_URI.getAuthority(); in getSystemLongPressTime()
|
/frameworks/base/core/java/android/net/ |
D | Uri.java | 216 public abstract String getAuthority(); in getAuthority() method in Uri 610 public String getAuthority() { in getAuthority() method in Uri.StringUri 915 public String getAuthority() { in getAuthority() method in Uri.OpaqueUri 1272 public String getAuthority() { in getAuthority() method in Uri.HierarchicalUri 2419 if (!Objects.equals(getAuthority(), prefix.getAuthority())) return false; in isPathPrefixMatch()
|
/frameworks/base/core/java/android/service/notification/ |
D | Condition.java | 227 return id != null && SCHEME.equals(id.getScheme()) && pkg.equals(id.getAuthority()); in isValidId()
|