Home
last modified time | relevance | path

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

1234

/frameworks/base/core/java/android/provider/
DDocumentsContract.java1010 .authority(treeUri.getAuthority()).appendPath(PATH_TREE) in buildDocumentUriUsingTree()
1020 return buildDocumentUri(baseUri.getAuthority(), documentId); in buildDocumentUriMaybeUsingTree()
1067 .authority(treeUri.getAuthority()).appendPath(PATH_TREE) in buildChildDocumentsUriUsingTree()
1185 if (isContentUri(uri) && isDocumentsProvider(context, uri.getAuthority())) { in isDocumentUri()
1234 if (isContentUri(uri) && isDocumentsProvider(context, uri.getAuthority())) { in isRootUri()
1380 final Bundle out = content.call(parentDocumentUri.getAuthority(), in createDocument()
1410 final Bundle out = content.call(parentDocumentUri.getAuthority(), in isChildDocument()
1446 final Bundle out = content.call(documentUri.getAuthority(), in renameDocument()
1469 content.call(documentUri.getAuthority(), in deleteDocument()
1495 final Bundle out = content.call(sourceDocumentUri.getAuthority(), in copyDocument()
[all …]
/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()
189 provider.mAuths.put(new PkgUser(authority.getAuthority(), pkg.getUserId()), in createFrom()
218 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
/frameworks/base/core/tests/coretests/src/android/content/
DFakeProviderRemote.java66 return new Uri.Builder().scheme(uri.getScheme()).authority(uri.getAuthority()) in canonicalize()
75 return new Uri.Builder().scheme(uri.getScheme()).authority(uri.getAuthority()) in uncanonicalize()
/frameworks/base/core/java/android/app/slice/
DSliceMetrics.java52 mLogMaker.addTaggedData(MetricsEvent.FIELD_SLICE_AUTHORITY, uri.getAuthority()); in SliceMetrics()
95 .addTaggedData(MetricsEvent.FIELD_SUBSLICE_AUTHORITY, subSlice.getAuthority()) in logTouch()
DSliceManager.java298 String authority = getAuthority(intent); in mapIntentToUri()
321 private String getAuthority(Intent intent) { in getAuthority() method in SliceManager
376 String authority = getAuthority(intent); in bindSlice()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/slice/
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()
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()
251 a1.sort(Comparator.comparing(SliceAuthority::getAuthority)); in assertEquivalent()
252 a2.sort(Comparator.comparing(SliceAuthority::getAuthority)); in assertEquivalent()
/frameworks/base/core/java/android/content/
DContentProvider.java291 traceBegin(TRACE_TAG_ACTIVITY_MANAGER, "query: ", uri.getAuthority()); in query()
310 traceBegin(TRACE_TAG_ACTIVITY_MANAGER, "getType: ", uri.getAuthority()); in getType()
369 .resolveContentProvider(uri.getAuthority(), in logGetTypeData()
387 callingUid, uri.getAuthority(), type); in logGetTypeData()
395 callingUid, uri.getAuthority(), type); in logGetTypeData()
418 traceBegin(TRACE_TAG_ACTIVITY_MANAGER, "getTypeAnonymous: ", uri.getAuthority()); in getTypeAnonymousAsync()
447 traceBegin(TRACE_TAG_ACTIVITY_MANAGER, "insert: ", uri.getAuthority()); in insert()
469 traceBegin(TRACE_TAG_ACTIVITY_MANAGER, "bulkInsert: ", uri.getAuthority()); in bulkInsert()
547 traceBegin(TRACE_TAG_ACTIVITY_MANAGER, "delete: ", uri.getAuthority()); in delete()
569 traceBegin(TRACE_TAG_ACTIVITY_MANAGER, "update: ", uri.getAuthority()); in update()
[all …]
DUriMatcher.java229 if (li == 0 && uri.getAuthority() == null) {
234 String u = i < 0 ? uri.getAuthority() : pathSegments.get(i);
/frameworks/base/core/tests/coretests/src/android/content/res/
DFontResourcesParserTest.java107 assertEquals("com.example.test.fontprovider.authority", providerEntry.getAuthority()); in testParseDownloadableFont()
122 assertEquals("com.example.test.fontprovider", providerResourceEntry.getAuthority()); in testParseDownloadableFont_singleCerts()
143 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/base/services/tests/servicestests/src/com/android/server/textclassifier/
DIconsUriHelperTest.java65 assertThat(uri1.getAuthority()).isEqualTo(IconsUriHelper.AUTHORITY); in testGetContentUri_multiplePackages()
66 assertThat(uri2.getAuthority()).isEqualTo(IconsUriHelper.AUTHORITY); in testGetContentUri_multiplePackages()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DCarrierResolverTest.java264 Carriers.CONTENT_URI.getAuthority(), new CarrierIdContentProvider()); in testCarrierMatchPreferApnChange()
284 if (CarrierId.All.CONTENT_URI.getAuthority().equals( in query()
285 uri.getAuthority())) { in query()
497 } else if (Carriers.CONTENT_URI.getAuthority().equals(uri.getAuthority())) { in query()
/frameworks/opt/vcard/tests/src/com/android/vcard/tests/testutils/
DExportTestResolver.java27 addProvider(RawContacts.CONTENT_URI.getAuthority(), mProvider); in ExportTestResolver()
DExportTestProvider.java102 final String authority = uri.getAuthority(); in queryEntities()
103 TestCase.assertTrue(RawContacts.CONTENT_URI.getAuthority().equals(authority)); in queryEntities()
/frameworks/base/core/tests/coretests/src/android/provider/
DNameValueCacheTest.java89 mMockContentResolver.addProvider(Settings.Config.CONTENT_URI.getAuthority(), in setUp()
91 mMockContentResolver.addProvider(Settings.Secure.CONTENT_URI.getAuthority(), in setUp()
105 when(mMockIContentProvider.call(any(), eq(Settings.Config.CONTENT_URI.getAuthority()), in setUp()
132 when(mMockIContentProvider.call(any(), eq(Settings.Config.CONTENT_URI.getAuthority()), in setUp()
162 when(mMockIContentProvider.call(any(), eq(Settings.Secure.CONTENT_URI.getAuthority()), in setUp()
194 when(mMockIContentProvider.call(any(), eq(Settings.Secure.CONTENT_URI.getAuthority()), in setUp()
/frameworks/base/core/java/com/android/internal/pm/pkg/component/
DParsedProvider.java32 String getAuthority(); in getAuthority() method
DParsedProviderImpl.java70 this.authority = other.getAuthority(); in ParsedProviderImpl()
215 public @Nullable String getAuthority() { in getAuthority() method in ParsedProviderImpl
/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/services/tests/PackageManagerServiceTests/unit/src/com/android/server/pm/test/parsing/parcelling/
DParsedProviderTest.kt33 ParsedProvider::getAuthority, in <lambda>()
/frameworks/base/packages/SettingsLib/Tile/src/com/android/settingslib/drawer/
DTileUtils.java467 return buildUri(uri.getAuthority(), defaultMethod); in getCompleteUri()
469 return buildUri(uri.getAuthority(), defaultMethod, key); in getCompleteUri()
590 uri.getAuthority(), method, uri.toString(), bundle); in getBundleFromUri()
601 final String authority = uri.getAuthority(); in getProviderFromUri()
/frameworks/base/core/tests/coretests/src/android/net/
DUriTest.java86 assertNull(u.getAuthority()); in testBuildUponOpaqueStringUri()
222 assertEquals("a:a@example.com:a@example2.com", uri.getAuthority()); in testAuthorityParsing()
422 assertNull(uri.getAuthority()); in testOpaqueUri()
541 assertEquals(authority, uri.getAuthority()); in compareHierarchical()
861 assertEquals(uri.getAuthority(), uri.getEncodedAuthority()); in testPart_consistentEncodedVsDecoded()
864 assertEquals("a.com", uri.getAuthority()); in testPart_consistentEncodedVsDecoded()
/frameworks/base/services/core/java/com/android/server/pm/
DAppsFilterUtils.java126 if (provider.getAuthority() == null) { in matchesProviders()
129 StringTokenizer authorities = new StringTokenizer(provider.getAuthority(), ";", in matchesProviders()
/frameworks/base/core/java/android/net/
DUri.java228 public abstract String getAuthority(); in getAuthority() method in Uri
428 final String authority = getAuthority(); in toSafeString()
619 public String getAuthority() { in getAuthority() method in Uri.StringUri
923 public String getAuthority() { in getAuthority() method in Uri.OpaqueUri
1282 public String getAuthority() { in getAuthority() method in Uri.HierarchicalUri
2426 if (!Objects.equals(getAuthority(), prefix.getAuthority())) return false; in isPathPrefixMatch()

1234