Home
last modified time | relevance | path

Searched refs:authority (Results 1 – 25 of 238) sorted by relevance

12345678910

/packages/apps/DocumentsUI/src/com/android/documentsui/roots/
DProvidersCache.java141 public String getApplicationName(String authority) { in getApplicationName() argument
142 return mObservedAuthoritiesDetails.get(authority).applicationName; in getApplicationName()
146 public String getPackageName(String authority) { in getPackageName() argument
147 return mObservedAuthoritiesDetails.get(authority).packageName; in getPackageName()
158 assert(mRecentsRoot.authority == null); in updateAsync()
173 public void updateAuthorityAsync(String authority) { in updateAuthorityAsync() argument
174 final ProviderInfo info = mContext.getPackageManager().resolveContentProvider(authority, 0); in updateAuthorityAsync()
217 for (String authority : mStoppedAuthorities) { in loadStoppedAuthorities()
218 mRoots.replaceValues(authority, loadRootsForAuthority(resolver, authority, true)); in loadStoppedAuthorities()
228 private void loadStoppedAuthority(String authority) { in loadStoppedAuthority() argument
[all …]
/packages/apps/Bluetooth/lib/mapapi/com/android/bluetooth/mapapi/
DBluetoothMapContract.java163 public static Uri buildAccountUri(String authority) { in buildAccountUri() argument
165 .authority(authority) in buildAccountUri()
175 public static Uri buildAccountUriwithId(String authority, String accountId) { in buildAccountUriwithId() argument
177 .authority(authority) in buildAccountUriwithId()
187 public static Uri buildMessageUri(String authority) { in buildMessageUri() argument
189 .authority(authority) in buildMessageUri()
199 public static Uri buildMessageUri(String authority, String accountId) { in buildMessageUri() argument
201 .authority(authority) in buildMessageUri()
212 public static Uri buildMessageUriWithId(String authority, String accountId, String messageId) { in buildMessageUriWithId() argument
214 .authority(authority) in buildMessageUriWithId()
[all …]
/packages/apps/Settings/src/com/android/settings/slices/
DCustomSliceRegistry.java66 .authority(SettingsSlicesContract.AUTHORITY)
76 .authority(SettingsSliceProvider.SLICE_AUTHORITY)
86 .authority(SettingsSliceProvider.SLICE_AUTHORITY)
96 .authority(SettingsSlicesContract.AUTHORITY)
106 .authority(SettingsSliceProvider.SLICE_AUTHORITY)
116 .authority(SettingsSliceProvider.SLICE_AUTHORITY)
126 .authority(SettingsSlicesContract.AUTHORITY)
136 .authority(SettingsSliceProvider.SLICE_AUTHORITY)
145 .authority(SettingsSliceProvider.SLICE_AUTHORITY)
154 .authority(SettingsSliceProvider.SLICE_AUTHORITY)
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/slices/
DCustomSliceRegistry.java63 .authority(SettingsSlicesContract.AUTHORITY)
73 .authority(SettingsSliceProvider.SLICE_AUTHORITY)
83 .authority(SettingsSlicesContract.AUTHORITY)
93 .authority(SettingsSliceProvider.SLICE_AUTHORITY)
103 .authority(SettingsSliceProvider.SLICE_AUTHORITY)
113 .authority(SettingsSlicesContract.AUTHORITY)
123 .authority(SettingsSliceProvider.SLICE_AUTHORITY)
132 .authority(SettingsSliceProvider.SLICE_AUTHORITY)
141 .authority(SettingsSliceProvider.SLICE_AUTHORITY)
150 .authority(SettingsSliceProvider.SLICE_AUTHORITY)
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accounts/
DAccountSyncFragment.java155 String authority = syncPref.getAuthority(); in onPreferenceTreeClick() local
159 requestOrCancelSync(account, authority, true); in onPreferenceTreeClick()
163 authority, userId); in onPreferenceTreeClick()
166 ContentResolver.setSyncAutomaticallyAsUser(account, authority, syncOn, userId); in onPreferenceTreeClick()
171 requestOrCancelSync(account, authority, syncOn); in onPreferenceTreeClick()
223 requestOrCancelSync(mAccount, syncAdapter.authority, startSync); in requestOrCancelSyncForEnabledProviders()
228 private void requestOrCancelSync(Account account, String authority, boolean flag) { in requestOrCancelSync() argument
232 ContentResolver.requestSyncAsUser(account, authority, mUserHandle.getIdentifier(), in requestOrCancelSync()
235 ContentResolver.cancelSyncAsUser(account, authority, mUserHandle.getIdentifier()); in requestOrCancelSync()
239 private boolean isSyncing(List<SyncInfo> currentSyncs, Account account, String authority) { in isSyncing() argument
[all …]
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/
DTestProvidersAccess.java52 DOWNLOADS.authority = Providers.AUTHORITY_DOWNLOADS;
62 HOME.authority = Providers.AUTHORITY_STORAGE;
72 HAMMY.authority = "yummies";
79 PICKLES.authority = "yummies";
92 INSPECTOR.authority = InspectorProvider.AUTHORITY;
99 IMAGE.authority = Providers.AUTHORITY_MEDIA;
105 AUDIO.authority = Providers.AUTHORITY_MEDIA;
111 VIDEO.authority = Providers.AUTHORITY_MEDIA;
117 EXTERNALSTORAGE.authority = Providers.AUTHORITY_STORAGE;
134 if (!roots.containsKey(root.authority)) { in add()
[all …]
DTestEnv.java78 private TestEnv(Context context, Features features, String authority) { in TestEnv() argument
82 model = new TestModel(authority, features); in TestEnv()
107 if (!mockProviders.containsKey(root.authority)) { in registerProviders()
108 TestDocumentsProvider provider = new TestDocumentsProvider(root.authority); in registerProviders()
109 contentResolver.addProvider(root.authority, provider); in registerProviders()
110 mockProviders.put(root.authority, provider); in registerProviders()
117 return create(features, TestProvidersAccess.HOME.authority); in create()
121 return create(TestProvidersAccess.HOME.authority); in create()
124 public static TestEnv create(Features features, String authority) { in create() argument
126 return create(context, features, authority); in create()
[all …]
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/
DShadowContentResolver.java63 protected static int getIsSyncableAsUser(Account account, String authority, int userId) { in getIsSyncableAsUser() argument
64 return sSyncable.getOrDefault(authority, SYNCABLE); in getIsSyncableAsUser()
68 protected static boolean getSyncAutomaticallyAsUser(Account account, String authority, in getSyncAutomaticallyAsUser() argument
70 return sSyncAutomatically.getOrDefault(authority, true); in getSyncAutomaticallyAsUser()
84 protected static SyncStatusInfo getSyncStatusAsUser(Account account, String authority, in getSyncStatusAsUser() argument
86 return sSyncStatus.get(authority); in getSyncStatusAsUser()
94 public static void setIsSyncable(Account account, String authority, int syncable) { in setIsSyncable() argument
95 sSyncable.put(authority, syncable); in setIsSyncable()
99 protected static void setSyncAutomaticallyAsUser(Account account, String authority, in setSyncAutomaticallyAsUser() argument
101 sSyncAutomatically.put(authority, sync); in setSyncAutomaticallyAsUser()
[all …]
/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/search/indexing/
DPreIndexDataCollector.java90 final String authority = info.providerInfo.authority; in collectIndexableData() local
94 addIndexablesFromRemoteProvider(packageName, authority); in collectIndexableData()
98 addNonIndexablesKeysFromRemoteProvider(packageName, authority); in collectIndexableData()
109 private void addIndexablesFromRemoteProvider(String packageName, String authority) { in addIndexablesFromRemoteProvider() argument
113 final Uri uriForResources = buildUriForXmlResources(authority); in addIndexablesFromRemoteProvider()
114 mIndexData.addDataToUpdate(authority, getIndexablesForXmlResourceUri( in addIndexablesFromRemoteProvider()
118 final Uri uriForRawData = buildUriForRawData(authority); in addIndexablesFromRemoteProvider()
119 mIndexData.addDataToUpdate(authority, getIndexablesForRawDataUri( in addIndexablesFromRemoteProvider()
123 final Uri uriForSiteMap = buildUriForSiteMap(authority); in addIndexablesFromRemoteProvider()
167 private void addNonIndexablesKeysFromRemoteProvider(String packageName, String authority) { in addNonIndexablesKeysFromRemoteProvider() argument
[all …]
DIndexDataConverter.java82 final String authority = entry.getKey(); in convertPreIndexDataToIndexData() local
88 final Set<String> rawNonIndexableKeys = nonIndexableKeys.get(authority); in convertPreIndexDataToIndexData()
89 final IndexData convertedRaw = convertRaw(mContext, authority, rawData, in convertPreIndexDataToIndexData()
97 getNonIndexableKeysForResource(nonIndexableKeys, authority); in convertPreIndexDataToIndexData()
98 final List<IndexData> resourceData = convertResource(sir, authority, in convertPreIndexDataToIndexData()
159 private IndexData convertRaw(Context context, String authority, SearchIndexableRaw raw, in convertRaw() argument
162 Log.w(TAG, "Skipping null key for raw indexable " + authority + "/" + raw.title); in convertRaw()
181 .setAuthority(authority) in convertRaw()
194 private List<IndexData> convertResource(SearchIndexableResource sir, String authority, in convertResource() argument
254 .setAuthority(authority) in convertResource()
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/accounts/
DAccountSyncSettings.java161 private void addSyncStateSwitch(Account account, String authority, in addSyncStateSwitch() argument
163 SyncStateSwitchPreference item = (SyncStateSwitchPreference) getCachedPreference(authority); in addSyncStateSwitch()
165 item = new SyncStateSwitchPreference(getPrefContext(), account, authority, in addSyncStateSwitch()
169 item.setup(account, authority, packageName, uid); in addSyncStateSwitch()
174 authority, 0, mUserHandle.getIdentifier()); in addSyncStateSwitch()
180 Log.e(TAG, "Provider needs a label for authority '" + authority + "'"); in addSyncStateSwitch()
184 item.setKey(authority); in addSyncStateSwitch()
252 final String authority = syncPref.getAuthority(); in onPreferenceTreeClick() local
253 if (TextUtils.isEmpty(authority)) { in onPreferenceTreeClick()
261 authority, userId); in onPreferenceTreeClick()
[all …]
/packages/apps/Settings/src/com/android/settings/accounts/
DAccountSyncSettings.java161 private void addSyncStateSwitch(Account account, String authority, in addSyncStateSwitch() argument
163 SyncStateSwitchPreference item = (SyncStateSwitchPreference) getCachedPreference(authority); in addSyncStateSwitch()
165 item = new SyncStateSwitchPreference(getPrefContext(), account, authority, in addSyncStateSwitch()
169 item.setup(account, authority, packageName, uid); in addSyncStateSwitch()
174 authority, 0, mUserHandle.getIdentifier()); in addSyncStateSwitch()
180 Log.e(TAG, "Provider needs a label for authority '" + authority + "'"); in addSyncStateSwitch()
184 item.setKey(authority); in addSyncStateSwitch()
252 final String authority = syncPref.getAuthority(); in onPreferenceTreeClick() local
253 if (TextUtils.isEmpty(authority)) { in onPreferenceTreeClick()
261 authority, userId); in onPreferenceTreeClick()
[all …]
/packages/apps/Car/Settings/src/com/android/car/settings/accounts/
DAccountSyncHelper.java65 String authority = syncAdapter.authority; in getSyncableSyncAdaptersForAccount() local
72 boolean isSyncable = ContentResolver.getIsSyncableAsUser(account, authority, in getSyncableSyncAdaptersForAccount()
91 static void requestSyncIfAllowed(Account account, String authority, int userId) { in requestSyncIfAllowed() argument
92 if (!syncIsAllowed(account, authority, userId)) { in requestSyncIfAllowed()
98 ContentResolver.requestSyncAsUser(account, authority, userId, extras); in requestSyncIfAllowed()
106 static CharSequence getTitle(Context context, String authority, UserHandle userHandle) { in getTitle() argument
109 authority, /* flags= */ 0, userHandle.getIdentifier()); in getTitle()
118 static boolean isSyncing(Account account, List<SyncInfo> currentSyncs, String authority) { in isSyncing() argument
120 if (syncInfo.account.equals(account) && syncInfo.authority.equals(authority)) { in isSyncing()
145 private static boolean syncIsAllowed(Account account, String authority, int userId) { in syncIsAllowed() argument
[all …]
DAccountSyncDetailsPreferenceController.java182 String authority = preference.getKey(); in onSyncPreferenceClicked() local
192 requestSync(authority); in onSyncPreferenceClicked()
197 authority, userId); in onSyncPreferenceClicked()
207 ContentResolver.setSyncAutomaticallyAsUser(mAccount, authority, syncOn, userId); in onSyncPreferenceClicked()
209 requestSync(authority); in onSyncPreferenceClicked()
211 cancelSync(authority); in onSyncPreferenceClicked()
218 private void requestSync(String authority) { in requestSync() argument
219 AccountSyncHelper.requestSyncIfAllowed(mAccount, authority, mUserHandle.getIdentifier()); in requestSync()
222 private void cancelSync(String authority) { in cancelSync() argument
223 ContentResolver.cancelSyncAsUser(mAccount, authority, mUserHandle.getIdentifier()); in cancelSync()
[all …]
/packages/apps/DocumentsUI/src/com/android/documentsui/base/
DRootInfo.java88 public String authority; field in RootInfo
113 authority = null; in reset()
137 authority = DurableUtils.readNullableString(in); in read()
157 DurableUtils.writeNullableString(out, authority); in write()
192 public static RootInfo fromRootsCursor(String authority, Cursor cursor) { in fromRootsCursor() argument
194 root.authority = authority; in fromRootsCursor()
248 return DocumentsContract.buildRootUri(authority, rootId); in getUri()
252 return authority == null && rootId == null; in isRecents()
266 return Providers.AUTHORITY_STORAGE.equals(authority); in isExternalStorage()
270 return Providers.AUTHORITY_DOWNLOADS.equals(authority); in isDownloads()
[all …]
DDocumentInfo.java58 public String authority; field in DocumentInfo
77 authority = null; in reset()
96 authority = DurableUtils.readNullableString(in); in read()
115 DurableUtils.writeNullableString(out, authority); in write()
152 final String authority = getCursorString(cursor, RootCursorWrapper.COLUMN_AUTHORITY); in fromDirectoryCursor() local
153 return fromCursor(cursor, authority); in fromDirectoryCursor()
156 public static DocumentInfo fromCursor(Cursor cursor, String authority) { in fromCursor() argument
159 info.updateFromCursor(cursor, authority); in fromCursor()
163 public void updateFromCursor(Cursor cursor, String authority) { in updateFromCursor() argument
164 this.authority = authority; in updateFromCursor()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/shadow/
DShadowContentResolver.java59 protected static int getIsSyncableAsUser(Account account, String authority, int userId) { in getIsSyncableAsUser() argument
60 return sSyncable.containsKey(authority) ? sSyncable.get(authority) : 1; in getIsSyncableAsUser()
64 protected static boolean getSyncAutomaticallyAsUser(Account account, String authority, in getSyncAutomaticallyAsUser() argument
66 return sSyncAutomatically.containsKey(authority) ? sSyncAutomatically.get(authority) : true; in getSyncAutomaticallyAsUser()
70 protected static void setSyncAutomaticallyAsUser(Account account, String authority, in setSyncAutomaticallyAsUser() argument
72 if (TextUtils.isEmpty(authority)) { in setSyncAutomaticallyAsUser()
87 public static void setSyncable(String authority, int syncable) { in setSyncable() argument
88 sSyncable.put(authority, syncable); in setSyncable()
91 public static void setSyncAutomatically(String authority, boolean syncAutomatically) { in setSyncAutomatically() argument
92 sSyncAutomatically.put(authority, syncAutomatically); in setSyncAutomatically()
/packages/apps/DocumentsUI/src/com/android/documentsui/
DMultiRootDocumentsLoader.java151 mExecutors.lookup(task.authority).execute(task); in loadInBackgroundLocked()
199 Log.e(TAG, "Failed to query documents for authority: " + task.authority in loadInBackgroundLocked()
250 if (root.authority == null || shouldIgnoreRoot(root)) { in indexRoots()
254 if (!rootsIndex.containsKey(root.authority)) { in indexRoots()
255 rootsIndex.put(root.authority, new ArrayList<>()); in indexRoots()
257 rootsIndex.get(root.authority).add(root); in indexRoots()
279 protected abstract QueryTask getQueryTask(String authority, List<RootInfo> rootInfos); in getQueryTask() argument
363 public final String authority; field in MultiRootDocumentsLoader.QueryTask
369 public QueryTask(String authority, List<RootInfo> rootInfos) { in QueryTask() argument
370 this.authority = authority; in QueryTask()
[all …]
DModelId.java27 String authority; in build() local
28 authority = uri.getAuthority(); in build()
29 return ModelId.build(authority, documentId); in build()
36 return ModelId.build(docInfo.authority, docInfo.documentId); in build()
62 public static final String build(String authority, String docId) { in build() argument
63 if (authority == null || authority.isEmpty() || docId == null || docId.isEmpty()) { in build()
66 return authority + "|" + docId; in build()
DMetrics.java119 logIntraProviderFileOps(dst.authority, operationType); in logFileOperation()
210 final String authority = docUri.getAuthority(); in logFileOperationFailure() local
211 switch (authority) { in logFileOperationFailure()
286 @MetricConsts.Provider int opProviderType = isSystemProvider(dst.authority) in logInterProviderFileOps()
293 private static void logIntraProviderFileOps(String authority, @OpType int operationType) { in logIntraProviderFileOps() argument
294 @MetricConsts.Provider int providerType = isSystemProvider(authority) in logIntraProviderFileOps()
351 @MetricConsts.MetricsAuth final int authority = isInternal in logStorageFileOperationFailure() local
353 DocumentsStatsLog.write(DocumentsStatsLog.DOCS_UI_FILE_OP_FAILURE, authority, subFileOp); in logStorageFileOperationFailure()
452 private static boolean isSystemProvider(String authority) { in isSystemProvider() argument
453 switch (authority) { in isSystemProvider()
[all …]
DGlobalSearchLoader.java82 protected QueryTask getQueryTask(String authority, List<RootInfo> rootInfos) { in getQueryTask() argument
83 return new SearchTask(authority, rootInfos); in getQueryTask()
88 public SearchTask(String authority, List<RootInfo> rootInfos) { in SearchTask() argument
89 super(authority, rootInfos); in SearchTask()
102 return DocumentsContract.buildSearchDocumentsUri(authority, in getQueryUri()
108 return new RootCursorWrapper(authority, rootInfo.rootId, oriCursor, -1 /* maxCount */); in generateResultCursor()
/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/legal/
DModuleLicenseProviderTest.java89 .authority(ModuleLicenseProvider.AUTHORITY) in getType_notContentScheme_throwsIllegalArgumentException()
100 .authority("notmyauthority") in getType_invalidAuthority_throwsIllegalArgumentException()
111 .authority(ModuleLicenseProvider.AUTHORITY) in getType_emptyPath_throwsIllegalArgumentException()
120 .authority(ModuleLicenseProvider.AUTHORITY) in getType_missingPackageName_throwsIllegalArgumentException()
130 .authority(ModuleLicenseProvider.AUTHORITY) in getType_missingFileName_throwsIllegalArgumentException()
140 .authority(ModuleLicenseProvider.AUTHORITY) in getType_incorrectFileName_throwsIllegalArgumentException()
159 .authority(ModuleLicenseProvider.AUTHORITY) in getType_packageNotAModule_throwsIllegalArgumentException()
178 .authority(ModuleLicenseProvider.AUTHORITY) in getType_validUri_returnsHtmlMimeType()
189 .authority(ModuleLicenseProvider.AUTHORITY) in openFile_notContentScheme_throwsIllegalArgumentException()
200 .authority("notmyauthority") in openFile_invalidAuthority_throwsIllegalArgumentException()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/slices/
DSettingsSliceProviderTest.java247 .authority(SettingsSliceProvider.SLICE_AUTHORITY) in onBindSlice_requestsBlockedSlice_returnsNull()
292 .authority(SettingsSlicesContract.AUTHORITY) in getDescendantUris_invalidPath_returnsEmpty()
307 .authority(SettingsSlicesContract.AUTHORITY) in getDescendantUris_platformSlice_doesNotReturnOEMSlice()
321 .authority(SettingsSliceProvider.SLICE_AUTHORITY) in getDescendantUris_oemSlice_doesNotReturnPlatformSlice()
336 .authority(SettingsSliceProvider.SLICE_AUTHORITY) in getDescendantUris_oemSlice_returnsOEMUriDescendant()
343 .authority(SettingsSliceProvider.SLICE_AUTHORITY) in getDescendantUris_oemSlice_returnsOEMUriDescendant()
359 .authority(SettingsSliceProvider.SLICE_AUTHORITY) in getDescendantUris_oemSliceNoPath_returnsOEMUriDescendant()
365 .authority(SettingsSliceProvider.SLICE_AUTHORITY) in getDescendantUris_oemSliceNoPath_returnsOEMUriDescendant()
381 .authority(SettingsSlicesContract.AUTHORITY) in getDescendantUris_platformSlice_returnsPlatformUriDescendant()
388 .authority(SettingsSlicesContract.AUTHORITY) in getDescendantUris_platformSlice_returnsPlatformUriDescendant()
[all …]
/packages/apps/DocumentsUI/src/com/android/documentsui/picker/
DLastAccessedProvider.java78 .authority(AUTHORITY).appendPath("lastAccessed").appendPath(packageName).build(); in buildLastAccessed()
195 if (info != null && !TextUtils.isEmpty(info.providerInfo.authority)) { in call()
196 knownAuth.add(info.providerInfo.authority); in call()
202 public boolean test(String authority) { in call()
204 return !knownAuth.contains(authority); in call()
217 packageAuth.add(info.providerInfo.authority); in call()
223 public boolean test(String authority) { in call()
225 return packageAuth.contains(authority); in call()
253 if (stack.getRoot() != null && predicate.test(stack.getRoot().authority)) { in purgeByAuthority()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DLegacyApiSupport.java267 String authority = android.provider.Contacts.AUTHORITY;
268 matcher.addURI(authority, "extensions", EXTENSIONS); in matcher.addURI() argument
269 matcher.addURI(authority, "extensions/#", EXTENSIONS_ID); in matcher.addURI() argument
270 matcher.addURI(authority, "groups", GROUPS); in matcher.addURI() argument
271 matcher.addURI(authority, "groups/#", GROUPS_ID); in matcher.addURI() argument
272 matcher.addURI(authority, "groups/name/*/members", GROUP_NAME_MEMBERS); in matcher.addURI() argument
275 matcher.addURI(authority, "groups/system_id/*/members", GROUP_SYSTEM_ID_MEMBERS); in matcher.addURI() argument
278 matcher.addURI(authority, "groupmembership", GROUPMEMBERSHIP); in matcher.addURI() argument
279 matcher.addURI(authority, "groupmembership/#", GROUPMEMBERSHIP_ID); in matcher.addURI() argument
281 matcher.addURI(authority, "people", PEOPLE); in matcher.addURI() argument
[all …]

12345678910