/packages/apps/DocumentsUI/src/com/android/documentsui/roots/ |
D | ProvidersCache.java | 180 public String getApplicationName(UserId userId, String authority) { 182 new UserAuthority(userId, authority)).applicationName; 186 public String getPackageName(UserId userId, String authority) { 187 return mObservedAuthoritiesDetails.get(new UserAuthority(userId, authority)).packageName; 200 assert (recentRoot.authority == null); 217 public void updateAuthorityAsync(UserId userId, String authority) { 219 authority, 0); 292 String authority = userAuthority.authority; 293 if (VERBOSE) Log.v(TAG, "Loading roots on user " + userId + " for " + authority); 299 authority, PackageManager.GET_META_DATA); [all …]
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accounts/ |
D | AccountSyncFragment.java | 164 String authority = syncPref.getAuthority(); in onPreferenceTreeClick() local 167 int toggleId = getToggleId(authority); in onPreferenceTreeClick() 172 requestOrCancelSync(account, authority, true); in onPreferenceTreeClick() 176 authority, userId); in onPreferenceTreeClick() 182 ContentResolver.setSyncAutomaticallyAsUser(account, authority, syncOn, userId); in onPreferenceTreeClick() 187 requestOrCancelSync(account, authority, syncOn); in onPreferenceTreeClick() 240 requestOrCancelSync(mAccount, syncAdapter.authority, startSync); in requestOrCancelSyncForEnabledProviders() 245 private void requestOrCancelSync(Account account, String authority, boolean flag) { in requestOrCancelSync() argument 249 ContentResolver.requestSyncAsUser(account, authority, mUserHandle.getIdentifier(), in requestOrCancelSync() 252 ContentResolver.cancelSyncAsUser(account, authority, mUserHandle.getIdentifier()); in requestOrCancelSync() [all …]
|
/packages/apps/Bluetooth/lib/mapapi/com/android/bluetooth/mapapi/ |
D | BluetoothMapContract.java | 163 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/DocumentsUI/tests/common/com/android/documentsui/testing/ |
D | TestProvidersAccess.java | 63 DOWNLOADS.authority = Providers.AUTHORITY_DOWNLOADS; 73 HOME.authority = Providers.AUTHORITY_STORAGE; 84 HAMMY.authority = "yummies"; 92 PICKLES.authority = "yummies"; 110 INSPECTOR.authority = InspectorProvider.AUTHORITY; 118 IMAGE.authority = Providers.AUTHORITY_MEDIA; 125 AUDIO.authority = Providers.AUTHORITY_MEDIA; 132 VIDEO.authority = Providers.AUTHORITY_MEDIA; 139 DOCUMENT.authority = Providers.AUTHORITY_MEDIA; 146 EXTERNALSTORAGE.authority = Providers.AUTHORITY_STORAGE; [all …]
|
D | TestEnv.java | 88 private TestEnv(Context context, Features features, String authority) { in TestEnv() argument 94 model = new TestModel(userId, authority, features); in TestEnv() 95 modelOtherUser = new TestModel(TestProvidersAccess.OtherUser.USER_ID, authority, features); in TestEnv() 119 if (!mockProviders.containsKey(root.authority)) { in registerProviders() 120 TestDocumentsProvider provider = new TestDocumentsProvider(root.authority); in registerProviders() 121 contentResolver.addProvider(root.authority, provider); in registerProviders() 122 mockProviders.put(root.authority, provider); in registerProviders() 129 return create(features, TestProvidersAccess.HOME.authority); in create() 133 return create(TestProvidersAccess.HOME.authority); in create() 136 public static TestEnv create(Features features, String authority) { in create() argument [all …]
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/slices/ |
D | CustomSliceRegistry.java | 63 .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/Settings/src/com/android/settings/slices/ |
D | CustomSliceRegistry.java | 64 .authority(SettingsSliceProvider.SLICE_AUTHORITY) 74 .authority(SettingsSliceProvider.SLICE_AUTHORITY) 84 .authority(SettingsSlicesContract.AUTHORITY) 94 .authority(SettingsSliceProvider.SLICE_AUTHORITY) 104 .authority(SettingsSlicesContract.AUTHORITY) 113 .authority(SettingsSliceProvider.SLICE_AUTHORITY) 122 .authority(SettingsSliceProvider.SLICE_AUTHORITY) 131 .authority(SettingsSliceProvider.SLICE_AUTHORITY) 140 .authority(SettingsSlicesContract.AUTHORITY) 149 .authority(SettingsSliceProvider.SLICE_AUTHORITY) [all …]
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/ |
D | ShadowContentResolver.java | 63 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/ |
D | PreIndexDataCollector.java | 90 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 …]
|
D | IndexDataConverter.java | 82 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/ |
D | AccountSyncSettings.java | 162 private void addSyncStateSwitch(Account account, String authority, in addSyncStateSwitch() argument 164 SyncStateSwitchPreference item = (SyncStateSwitchPreference) getCachedPreference(authority); in addSyncStateSwitch() 166 item = new SyncStateSwitchPreference(getPrefContext(), account, authority, in addSyncStateSwitch() 170 item.setup(account, authority, packageName, uid); in addSyncStateSwitch() 175 authority, 0, mUserHandle.getIdentifier()); in addSyncStateSwitch() 181 Log.e(TAG, "Provider needs a label for authority '" + authority + "'"); in addSyncStateSwitch() 185 item.setKey(authority); in addSyncStateSwitch() 253 final String authority = syncPref.getAuthority(); in onPreferenceTreeClick() local 254 if (TextUtils.isEmpty(authority)) { in onPreferenceTreeClick() 262 authority, userId); in onPreferenceTreeClick() [all …]
|
/packages/apps/Settings/src/com/android/settings/accounts/ |
D | AccountSyncSettings.java | 178 private void addSyncStateSwitch(Account account, String authority, in addSyncStateSwitch() argument 180 SyncStateSwitchPreference item = (SyncStateSwitchPreference) getCachedPreference(authority); in addSyncStateSwitch() 182 item = new SyncStateSwitchPreference(getPrefContext(), account, authority, in addSyncStateSwitch() 186 item.setup(account, authority, packageName, uid); in addSyncStateSwitch() 191 authority, 0, mUserHandle.getIdentifier()); in addSyncStateSwitch() 197 Log.e(TAG, "Provider needs a label for authority '" + authority + "'"); in addSyncStateSwitch() 201 item.setKey(authority); in addSyncStateSwitch() 266 final String authority = syncPref.getAuthority(); in onPreferenceTreeClick() local 267 if (TextUtils.isEmpty(authority)) { in onPreferenceTreeClick() 275 authority, userId); in onPreferenceTreeClick() [all …]
|
/packages/apps/Car/Settings/src/com/android/car/settings/accounts/ |
D | AccountSyncHelper.java | 65 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 …]
|
D | AccountSyncDetailsPreferenceController.java | 182 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/ |
D | RootInfo.java | 92 public String authority; field in RootInfo 118 authority = null; in reset() 147 authority = DurableUtils.readNullableString(in); in read() 168 DurableUtils.writeNullableString(out, authority); in write() 209 newRoot.authority = root.authority; in copyRootInfo() 227 public static RootInfo fromRootsCursor(UserId userId, String authority, Cursor cursor) { in fromRootsCursor() argument 230 root.authority = authority; in fromRootsCursor() 290 return DocumentsContract.buildRootUri(authority, rootId); in getUri() 294 return Providers.AUTHORITY_BUGREPORT.equals(authority); in isBugReport() 298 return authority == null && rootId == null; in isRecents() [all …]
|
D | DocumentInfo.java | 61 public String authority; field in DocumentInfo 81 authority = null; in reset() 103 authority = DurableUtils.readNullableString(in); in read() 125 DurableUtils.writeNullableString(out, authority); in write() 164 final String authority = getCursorString(cursor, RootCursorWrapper.COLUMN_AUTHORITY); in fromDirectoryCursor() local 165 return fromCursor(cursor, userId, authority); in fromDirectoryCursor() 168 public static DocumentInfo fromCursor(Cursor cursor, UserId userId, String authority) { in fromCursor() argument 171 info.updateFromCursor(cursor, userId, authority); in fromCursor() 175 public void updateFromCursor(Cursor cursor, UserId userId, String authority) { in updateFromCursor() argument 177 this.authority = authority; in updateFromCursor() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/shadow/ |
D | ShadowContentResolver.java | 59 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/ |
D | MultiRootDocumentsLoader.java | 151 mExecutors.lookup(task.authority).execute(task); in loadInBackgroundLocked() 203 Log.e(TAG, "Failed to query documents for authority: " + task.authority in loadInBackgroundLocked() 254 if (root.authority == null || shouldIgnoreRoot(root) in indexRoots() 259 if (!rootsIndex.containsKey(root.authority)) { in indexRoots() 260 rootsIndex.put(root.authority, new ArrayList<>()); in indexRoots() 262 rootsIndex.get(root.authority).add(root); in indexRoots() 284 protected abstract QueryTask getQueryTask(String authority, List<RootInfo> rootInfos); in getQueryTask() argument 333 mExecutors.lookup(task.authority).execute(() -> FileUtils.closeQuietly(task)); in onReset() 363 public final String authority; field in MultiRootDocumentsLoader.QueryTask 369 public QueryTask(String authority, List<RootInfo> rootInfos) { in QueryTask() argument [all …]
|
D | Metrics.java | 141 logIntraProviderFileOps(dst.authority, operationType); in logFileOperation() 232 final String authority = docUri.getAuthority(); in logFileOperationFailure() local 233 switch (authority) { in logFileOperationFailure() 308 @MetricConsts.Provider int opProviderType = isSystemProvider(dst.authority) in logInterProviderFileOps() 315 private static void logIntraProviderFileOps(String authority, @OpType int operationType) { in logIntraProviderFileOps() argument 316 @MetricConsts.Provider int providerType = isSystemProvider(authority) in logIntraProviderFileOps() 384 @MetricConsts.MetricsAuth final int authority = isInternal in logStorageFileOperationFailure() local 386 DocumentsStatsLog.write(DocumentsStatsLog.DOCS_UI_FILE_OP_FAILURE, authority, subFileOp); in logStorageFileOperationFailure() 487 private static boolean isSystemProvider(String authority) { in isSystemProvider() argument 488 switch (authority) { in isSystemProvider() [all …]
|
D | GlobalSearchLoader.java | 89 protected QueryTask getQueryTask(String authority, List<RootInfo> rootInfos) { in getQueryTask() argument 90 return new SearchTask(authority, rootInfos); in getQueryTask() 95 public SearchTask(String authority, List<RootInfo> rootInfos) { in SearchTask() argument 96 super(authority, rootInfos); in SearchTask() 109 return DocumentsContract.buildSearchDocumentsUri(authority, in getQueryUri() 115 return new RootCursorWrapper(rootInfo.userId, authority, rootInfo.rootId, oriCursor, in generateResultCursor()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/legal/ |
D | ModuleLicenseProviderTest.java | 89 .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/ |
D | SettingsSliceProviderTest.java | 109 .authority(SettingsSliceProvider.SLICE_AUTHORITY) 115 .authority(SettingsSlicesContract.AUTHORITY) 261 .authority(SettingsSliceProvider.SLICE_AUTHORITY) in onBindSlice_requestsBlockedSlice_returnsNull() 316 .authority(SettingsSlicesContract.AUTHORITY) in getDescendantUris_wrongPath_returnsEmpty() 332 .authority(SettingsSlicesContract.AUTHORITY) in getDescendantUris_invalidPath_returnsEmpty() 348 .authority(SettingsSlicesContract.AUTHORITY) in getDescendantUris_platformSlice_doesNotReturnOEMSlice() 363 .authority(SettingsSliceProvider.SLICE_AUTHORITY) in getDescendantUris_oemSlice_doesNotReturnPlatformSlice() 379 .authority(SettingsSliceProvider.SLICE_AUTHORITY) in getDescendantUris_oemSlice_returnsOEMUriDescendant() 386 .authority(SettingsSliceProvider.SLICE_AUTHORITY) in getDescendantUris_oemSlice_returnsOEMUriDescendant() 403 .authority(SettingsSliceProvider.SLICE_AUTHORITY) in getDescendantUris_oemSliceNoPath_returnsOEMUriDescendant() [all …]
|
/packages/apps/DocumentsUI/src/com/android/documentsui/picker/ |
D | LastAccessedProvider.java | 79 .authority(AUTHORITY).appendPath("lastAccessed").appendPath(packageName).build(); in buildLastAccessed() 202 if (info != null && !TextUtils.isEmpty(info.providerInfo.authority)) { in call() 203 knownAuth.add(info.providerInfo.authority); in call() 209 public boolean test(String authority) { in call() 211 return !knownAuth.contains(authority); in call() 224 packageAuth.add(info.providerInfo.authority); in call() 230 public boolean test(String authority) { in call() 232 return packageAuth.contains(authority); in call() 260 if (stack.getRoot() != null && predicate.test(stack.getRoot().authority)) { in purgeByAuthority()
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | LegacyApiSupport.java | 267 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 …]
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/accounts/ |
D | AccountDetailsWithSyncStatusPreferenceControllerTest.java | 144 String authority = authorities[i]; in setUpVisibleSyncAdapters() local 146 SyncAdapterType syncAdapterType = new SyncAdapterType(authority, in setUpVisibleSyncAdapters() 151 ShadowContentResolver.setIsSyncable(mAccount, authority, /* syncable= */ SYNCABLE); in setUpVisibleSyncAdapters() 155 info.authority = authority; in setUpVisibleSyncAdapters() 156 info.name = authority; in setUpVisibleSyncAdapters() 162 packageInfo.packageName = authority; in setUpVisibleSyncAdapters()
|