Home
last modified time | relevance | path

Searched refs:getAuthority (Results 1 – 25 of 57) sorted by relevance

123

/frameworks/base/core/java/android/provider/
DDocumentsContract.java956 .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 …]
DDocumentsProvider.java990 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/
DSliceClientPermissions.java82 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
DSliceProviderPermissions.java119 provider.mAuths.put(authority.getAuthority(), authority); in createFrom()
144 public String getAuthority() { in getAuthority() method in SliceProviderPermissions.SliceAuthority
DSlicePermissionManager.java109 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/
DSliceClientPermissionsTest.java198 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()
DSliceProviderPermissionsTest.java80 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/
DSliceMetrics.java47 mLogMaker.addTaggedData(MetricsEvent.FIELD_SLICE_AUTHORITY, uri.getAuthority()); in SliceMetrics()
90 .addTaggedData(MetricsEvent.FIELD_SUBSLICE_AUTHORITY, subSlice.getAuthority()) in logTouch()
DSliceManager.java304 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/
DFontResourcesParserTest.java105 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/
DTestableContentResolver.java152 if (!mProviders.containsKey(uri.getAuthority()) in notifyChange()
153 && !mUnstableProviders.containsKey(uri.getAuthority())) { in notifyChange()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DCarrierResolverTest.java261 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()
DSubscriptionInfoUpdaterTest.java156 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()
DSmsNumberUtilsTest.java124 .addProvider(HbpcdLookup.MccIdd.CONTENT_URI.getAuthority(), mHbpcdContentProvider); in setUp()
/frameworks/base/core/java/android/content/
DUriMatcher.java228 if (li == 0 && uri.getAuthority() == null) {
233 String u = i < 0 ? uri.getAuthority() : pathSegments.get(i);
DContentResolver.java1763 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/
DExportTestProvider.java102 final String authority = uri.getAuthority(); in queryEntities()
103 TestCase.assertTrue(RawContacts.CONTENT_URI.getAuthority().equals(authority)); in queryEntities()
DExportTestResolver.java27 addProvider(RawContacts.CONTENT_URI.getAuthority(), mProvider); in ExportTestResolver()
/frameworks/base/telephony/java/android/telephony/mbms/
DMbmsTempFileProvider.java150 if (!Objects.equals(authority, uri.getAuthority())) { in getFileForUri()
152 authority + ", " + uri.getAuthority()); in getFileForUri()
/frameworks/base/core/tests/coretests/src/android/net/
DUriTest.java86 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/
DUriGrantsManagerService.java442 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/
DTileUtils.java370 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/
DShellUiAutomatorBridge.java61 String providerName = Settings.Secure.CONTENT_URI.getAuthority(); in getSystemLongPressTime()
/frameworks/base/core/java/android/net/
DUri.java216 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/
DCondition.java227 return id != null && SCHEME.equals(id.getScheme()) && pkg.equals(id.getAuthority()); in isValidId()

123