/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accounts/ |
D | AccountSyncFragment.java | 163 String authority = syncPref.getAuthority(); in onPreferenceTreeClick() local 166 int toggleId = getToggleId(authority); in onPreferenceTreeClick() 171 requestOrCancelSync(account, authority, true); in onPreferenceTreeClick() 175 authority, userId); in onPreferenceTreeClick() 181 ContentResolver.setSyncAutomaticallyAsUser(account, authority, syncOn, userId); in onPreferenceTreeClick() 186 requestOrCancelSync(account, authority, syncOn); in onPreferenceTreeClick() 239 requestOrCancelSync(mAccount, syncAdapter.authority, startSync); in requestOrCancelSyncForEnabledProviders() 244 private void requestOrCancelSync(Account account, String authority, boolean flag) { in requestOrCancelSync() argument 248 ContentResolver.requestSyncAsUser(account, authority, mUserHandle.getIdentifier(), in requestOrCancelSync() 251 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/src/com/android/documentsui/roots/ |
D | ProvidersCache.java | 187 public String getApplicationName(UserId userId, String authority) { 189 new UserAuthority(userId, authority)).applicationName; 193 public String getPackageName(UserId userId, String authority) { 194 return mObservedAuthoritiesDetails.get(new UserAuthority(userId, authority)).packageName; 207 assert (recentRoot.authority == null); 227 public void updateAuthorityAsync(UserId userId, String authority) { 229 authority, 0); 302 String authority = userAuthority.authority; 303 if (VERBOSE) Log.v(TAG, "Loading roots on user " + userId + " for " + authority); 309 authority, PackageManager.GET_META_DATA); [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/apps/Settings/src/com/android/settings/slices/ |
D | CustomSliceRegistry.java | 62 .authority(SettingsSliceProvider.SLICE_AUTHORITY) 72 .authority(SettingsSliceProvider.SLICE_AUTHORITY) 82 .authority(SettingsSlicesContract.AUTHORITY) 92 .authority(SettingsSliceProvider.SLICE_AUTHORITY) 102 .authority(SettingsSlicesContract.AUTHORITY) 111 .authority(SettingsSliceProvider.SLICE_AUTHORITY) 120 .authority(SettingsSliceProvider.SLICE_AUTHORITY) 129 .authority(SettingsSliceProvider.SLICE_AUTHORITY) 138 .authority(SettingsSlicesContract.AUTHORITY) 147 .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/apps/Car/Settings/src/com/android/car/settings/accounts/ |
D | AccountSyncHelper.java | 67 String authority = syncAdapter.authority; in getSyncableSyncAdaptersForAccount() local 74 boolean isSyncable = ContentResolver.getIsSyncableAsUser(account, authority, in getSyncableSyncAdaptersForAccount() 95 static boolean requestSyncIfAllowed(Account account, String authority, int userId) { in requestSyncIfAllowed() argument 96 if (!syncIsAllowed(account, authority, userId)) { in requestSyncIfAllowed() 102 ContentResolver.requestSyncAsUser(account, authority, userId, extras); in requestSyncIfAllowed() 111 static CharSequence getTitle(Context context, String authority, UserHandle userHandle) { in getTitle() argument 114 authority, /* flags= */ 0, userHandle.getIdentifier()); in getTitle() 123 static boolean isSyncing(Account account, List<SyncInfo> currentSyncs, String authority) { in isSyncing() argument 125 if (syncInfo.account.equals(account) && syncInfo.authority.equals(authority)) { in isSyncing() 151 static boolean syncIsAllowed(Account account, String authority, int userId) { in syncIsAllowed() argument [all …]
|
D | AccountSyncDetailsPreferenceController.java | 179 String authority = preference.getKey(); in onSyncPreferenceClicked() local 189 requestSync(authority); in onSyncPreferenceClicked() 194 authority, userId); in onSyncPreferenceClicked() 204 ContentResolver.setSyncAutomaticallyAsUser(mAccount, authority, syncOn, userId); in onSyncPreferenceClicked() 206 requestSync(authority); in onSyncPreferenceClicked() 208 cancelSync(authority); in onSyncPreferenceClicked() 215 private void requestSync(String authority) { in requestSync() argument 216 AccountSyncHelper.requestSyncIfAllowed(mAccount, authority, mUserHandle.getIdentifier()); in requestSync() 219 private void cancelSync(String authority) { in cancelSync() argument 220 ContentResolver.cancelSyncAsUser(mAccount, authority, mUserHandle.getIdentifier()); in cancelSync() [all …]
|
D | AccountDetailsWithSyncStatusPreferenceController.java | 98 String authority = syncAdapter.authority; in isSyncFailing() local 100 SyncStatusInfo status = ContentResolver.getSyncStatusAsUser(getAccount(), authority, in isSyncFailing() 103 authority, userId); in isSyncFailing() 105 authority); in isSyncFailing() 140 requestSync(adapter.authority, userId); in requestSyncForEnabledProviders() 150 cancelSync(adapter.authority, userId); in cancelSyncForEnabledProviders() 160 void requestSync(String authority, int userId) { in requestSync() argument 161 AccountSyncHelper.requestSyncIfAllowed(getAccount(), authority, userId); in requestSync() local 165 void cancelSync(String authority, int userId) { in cancelSync() argument 166 ContentResolver.cancelSyncAsUser(getAccount(), authority, userId); in cancelSync() local
|
/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/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/modules/Connectivity/tests/cts/net/src/android/net/cts/ |
D | UriTest.java | 33 .authority("crazybob.org") in testParcelling() 179 .authority("crazybob.org") in testEqualsAndHashCode() 389 private static void testHierarchical(String scheme, String authority, in testHierarchical() argument 393 if (authority != null) { in testHierarchical() 394 sb.append("//").append(authority); in testHierarchical() 418 uriString, ssp, uri, scheme, authority, path, query, fragment); in testHierarchical() 420 uriString, ssp, uri, scheme, authority, path, query, fragment); in testHierarchical() 427 uriString, ssp, uri, scheme, authority, path, query, fragment); in testHierarchical() 429 uriString, ssp, uri, scheme, authority, path, query, fragment); in testHierarchical() 437 .encodedAuthority(authority) in testHierarchical() [all …]
|
/packages/apps/DocumentsUI/src/com/android/documentsui/ |
D | MultiRootDocumentsLoader.java | 159 mExecutors.lookup(task.authority).execute(task); in loadInBackgroundLocked() 217 Log.e(TAG, "Failed to query documents for authority: " + task.authority in loadInBackgroundLocked() 268 if (root.authority == null || shouldIgnoreRoot(root) in indexRoots() 273 if (!rootsIndex.containsKey(root.authority)) { in indexRoots() 274 rootsIndex.put(root.authority, new ArrayList<>()); in indexRoots() 276 rootsIndex.get(root.authority).add(root); in indexRoots() 298 protected abstract QueryTask getQueryTask(String authority, List<RootInfo> rootInfos); in getQueryTask() argument 345 mExecutors.lookup(task.authority).execute(() -> FileUtils.closeQuietly(task)); in onReset() 375 public final String authority; field in MultiRootDocumentsLoader.QueryTask 381 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()
|
D | RecentsLoader.java | 86 protected QueryTask getQueryTask(String authority, List<RootInfo> rootInfos) { in getQueryTask() argument 87 return new RecentsTask(authority, rootInfos); in getQueryTask() 92 public RecentsTask(String authority, List<RootInfo> rootInfos) { in RecentsTask() argument 93 super(authority, rootInfos); in RecentsTask() 98 return DocumentsContract.buildRecentDocumentsUri(authority, rootInfo.rootId); in getQueryUri() 103 return new RootCursorWrapper(rootInfo.userId, authority, rootInfo.rootId, oriCursor, in generateResultCursor()
|
/packages/apps/Settings/tests/unit/src/com/android/settings/deviceinfo/legal/ |
D | ModuleLicenseProviderTest.java | 85 .authority(ModuleLicenseProvider.AUTHORITY) in getType_notContentScheme_throwsIllegalArgumentException() 96 .authority("notmyauthority") in getType_invalidAuthority_throwsIllegalArgumentException() 107 .authority(ModuleLicenseProvider.AUTHORITY) in getType_emptyPath_throwsIllegalArgumentException() 116 .authority(ModuleLicenseProvider.AUTHORITY) in getType_missingPackageName_throwsIllegalArgumentException() 126 .authority(ModuleLicenseProvider.AUTHORITY) in getType_missingFileName_throwsIllegalArgumentException() 136 .authority(ModuleLicenseProvider.AUTHORITY) in getType_incorrectFileName_throwsIllegalArgumentException() 155 .authority(ModuleLicenseProvider.AUTHORITY) in getType_packageNotAModule_throwsIllegalArgumentException() 174 .authority(ModuleLicenseProvider.AUTHORITY) in getType_validUri_returnsHtmlMimeType() 185 .authority(ModuleLicenseProvider.AUTHORITY) in openFile_notContentScheme_throwsIllegalArgumentException() 196 .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/Car/Settings/tests/unit/src/com/android/car/settings/accounts/ |
D | AccountDetailsWithSyncStatusPreferenceControllerTest.java | 208 for (String authority : authorities) { in setUpSyncAdapters() 210 SyncAdapterType syncAdapterType = new SyncAdapterType(authority, in setUpSyncAdapters() 217 for (String authority : authorities) { in setUpVisibleSyncAdapters() 219 SyncAdapterType syncAdapterType = new SyncAdapterType(authority, in setUpVisibleSyncAdapters() 240 void requestSync(String authority, int userId) { in requestSync() argument 241 if (AccountSyncHelper.requestSyncIfAllowed(getAccount(), authority, userId)) { in requestSync() 242 mSyncsRequested.add(authority); in requestSync() 247 void cancelSync(String authority, int userId) { in cancelSync() argument 248 mSyncsCanceled.add(authority); in cancelSync()
|
/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()
|