/packages/providers/MediaProvider/src/com/android/providers/media/photopicker/ |
D | PickerSyncController.java | 177 if (Objects.equals(defaultInfo.authority, cachedAuthority)) { in initCloudProviderLocked() 186 Log.d(TAG, "Initialized cloud provider to: " + defaultInfo.authority); in initCloudProviderLocked() 245 if (Objects.equals(mCloudProviderInfo.authority, cloudProvider)) { in syncAllMediaFromCloudProvider() 250 + mCloudProviderInfo.authority); in syncAllMediaFromCloudProvider() 297 private boolean resetAllMedia(@Nullable String authority, boolean isLocal) { in resetAllMedia() argument 300 executeSyncReset(authority, isLocal); in resetAllMedia() 301 return resetCachedMediaCollectionInfo(authority, isLocal); in resetAllMedia() 308 private CloudProviderInfo getCloudProviderInfo(String authority, boolean ignoreAllowlist) { in getCloudProviderInfo() argument 309 if (authority == null) { in getCloudProviderInfo() 318 if (Objects.equals(info.authority, authority)) { in getCloudProviderInfo() [all …]
|
D | PickerDataLayer.java | 306 private Cursor queryProviderAlbums(@Nullable String authority, Bundle queryArgs) { in queryProviderAlbums() argument 307 if (authority == null) { in queryProviderAlbums() 312 Trace.beginSection(traceSectionName("queryProviderAlbums", authority)); in queryProviderAlbums() 314 return queryProviderAlbumsInternal(authority, queryArgs); in queryProviderAlbums() 320 private Cursor queryProviderAlbumsInternal(@NonNull String authority, Bundle queryArgs) { in queryProviderAlbumsInternal() argument 322 return mContext.getContentResolver().query(getAlbumUri(authority), in queryProviderAlbumsInternal() 325 Log.w(TAG, "Failed to fetch cloud albums for: " + authority, e); in queryProviderAlbumsInternal() 330 private boolean isLocal(String authority) { in isLocal() argument 331 return mLocalProvider.equals(authority); in isLocal() 338 private String traceSectionName(@NonNull String method, @Nullable String authority) { in traceSectionName() argument [all …]
|
/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/modules/Bluetooth/android/app/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/providers/MediaProvider/src/com/android/providers/media/photopicker/data/ |
D | CloudProviderInfo.java | 30 public final String authority; field in CloudProviderInfo 35 this.authority = null; in CloudProviderInfo() 40 public CloudProviderInfo(@NonNull String authority, @NonNull String packageName, int uid) { in CloudProviderInfo() argument 41 Objects.requireNonNull(authority); in CloudProviderInfo() 44 this.authority = authority; in CloudProviderInfo() 75 public boolean matches(@Nullable String authority, @Nullable String packageName) { in matches() argument 76 return authority != null && authority.equals(this.authority) && matches(packageName); in matches() 86 return Objects.equals(authority, that.authority) in equals() 93 return Objects.hash(authority, packageName, uid); in hashCode() 99 + "authority='" + authority + '\'' in toString() [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 | 60 .authority(SettingsSliceProvider.SLICE_AUTHORITY) 70 .authority(SettingsSlicesContract.AUTHORITY) 80 .authority(SettingsSliceProvider.SLICE_AUTHORITY) 90 .authority(SettingsSlicesContract.AUTHORITY) 99 .authority(SettingsSliceProvider.SLICE_AUTHORITY) 108 .authority(SettingsSliceProvider.SLICE_AUTHORITY) 117 .authority(SettingsSliceProvider.SLICE_AUTHORITY) 126 .authority(SettingsSlicesContract.AUTHORITY) 135 .authority(SettingsSliceProvider.SLICE_AUTHORITY) 144 .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/DocumentsUI/src/com/android/documentsui/roots/ |
D | ProvidersCache.java | 186 public String getApplicationName(UserId userId, String authority) { 188 new UserAuthority(userId, authority)).applicationName; 192 public String getPackageName(UserId userId, String authority) { 193 return mObservedAuthoritiesDetails.get(new UserAuthority(userId, authority)).packageName; 206 assert (recentRoot.authority == null); 226 public void updateAuthorityAsync(UserId userId, String authority) { 228 authority, 0); 301 String authority = userAuthority.authority; 302 if (VERBOSE) Log.v(TAG, "Loading roots on user " + userId + " for " + authority); 308 authority, PackageManager.GET_META_DATA); [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/TvSettings/unbundle/java/com/android/tv/settings/unbundle/sdklib/ |
D | ContentResolverCompat.java | 28 Account account, String authority, @UserIdInt int userId) { in getSyncAutomaticallyAsUser() argument 29 return ContentResolver.getSyncAutomaticallyAsUser(account, authority, userId); in getSyncAutomaticallyAsUser() 36 public static SyncStatusInfoCompat getSyncStatusAsUser(Account account, String authority, in getSyncStatusAsUser() argument 40 ContentResolver.getSyncStatusAsUser(account, authority, userId)); in getSyncStatusAsUser() 46 Account account, String authority, @UserIdInt int userId) { in getIsSyncableAsUser() argument 47 return ContentResolver.getIsSyncableAsUser(account, authority, userId); in getIsSyncableAsUser() 51 Account account, String authority, boolean sync, @UserIdInt int userId) { in setSyncAutomaticallyAsUser() argument 52 ContentResolver.setSyncAutomaticallyAsUser(account, authority, sync, userId); in setSyncAutomaticallyAsUser() 66 Account account, String authority, @UserIdInt int userId, Bundle extras) { in requestSyncAsUser() argument 67 ContentResolver.requestSyncAsUser(account, authority, userId, extras); in requestSyncAsUser() [all …]
|
/packages/apps/Car/Settings/src/com/android/car/settings/qc/ |
D | SettingsQCRegistry.java | 36 .authority(AUTHORITY) 42 .authority(AUTHORITY) 48 .authority(AUTHORITY) 54 .authority(AUTHORITY) 60 .authority(AUTHORITY) 66 .authority(AUTHORITY) 72 .authority(AUTHORITY) 78 .authority(AUTHORITY) 84 .authority(AUTHORITY) 90 .authority(AUTHORITY) [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 …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/shadow/ |
D | ShadowContentResolver.java | 60 protected static int getIsSyncableAsUser(Account account, String authority, int userId) { in getIsSyncableAsUser() argument 61 return sSyncable.containsKey(authority) ? sSyncable.get(authority) : 1; in getIsSyncableAsUser() 65 protected static boolean getSyncAutomaticallyAsUser(Account account, String authority, in getSyncAutomaticallyAsUser() argument 67 return sSyncAutomatically.containsKey(authority) ? sSyncAutomatically.get(authority) : true; in getSyncAutomaticallyAsUser() 71 protected static void setSyncAutomaticallyAsUser(Account account, String authority, in setSyncAutomaticallyAsUser() argument 73 if (TextUtils.isEmpty(authority)) { in setSyncAutomaticallyAsUser() 92 public static void setSyncable(String authority, int syncable) { in setSyncable() argument 93 sSyncable.put(authority, syncable); in setSyncable() 96 public static void setSyncAutomatically(String authority, boolean syncAutomatically) { in setSyncAutomatically() argument 97 sSyncAutomatically.put(authority, syncAutomatically); in setSyncAutomatically()
|
/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/src/com/android/settings/accounts/ |
D | AccountSyncSettings.java | 193 private void addSyncStateSwitch(Account account, String authority, in addSyncStateSwitch() argument 195 SyncStateSwitchPreference item = (SyncStateSwitchPreference) getCachedPreference(authority); in addSyncStateSwitch() 197 item = new SyncStateSwitchPreference(getPrefContext(), account, authority, in addSyncStateSwitch() 201 item.setup(account, authority, packageName, uid); in addSyncStateSwitch() 206 authority, 0, mUserHandle.getIdentifier()); in addSyncStateSwitch() 212 Log.e(TAG, "Provider needs a label for authority '" + authority + "'"); in addSyncStateSwitch() 216 item.setKey(authority); in addSyncStateSwitch() 281 final String authority = syncPref.getAuthority(); in onPreferenceTreeClick() local 282 if (TextUtils.isEmpty(authority)) { in onPreferenceTreeClick() 290 authority, userId); in onPreferenceTreeClick() [all …]
|
/packages/providers/MediaProvider/src/com/android/providers/media/photopicker/ui/remotepreview/ |
D | RemotePreviewHandler.java | 150 String authority = item.getContentUri().getAuthority(); in createRemotePreviewSession() local 151 SurfaceControllerProxy controller = getSurfaceController(authority, false); in createRemotePreviewSession() 153 Log.w(TAG, "Failed to create RemotePreviewSession for " + authority in createRemotePreviewSession() 155 controller = getSurfaceController(authority, true); in createRemotePreviewSession() 158 return new RemotePreviewSession(mSurfaceCounter++, item.getId(), authority, controller, in createRemotePreviewSession() 176 String authority = item.getContentUri().getAuthority(); in getSessionForItem() local 178 if (session.getMediaId().equals(mediaId) && session.getAuthority().equals(authority)) { in getSessionForItem() 195 private SurfaceControllerProxy getSurfaceController(String authority, in getSurfaceController() argument 197 if (mControllers.containsKey(authority)) { in getSurfaceController() 198 return mControllers.get(authority); in getSurfaceController() [all …]
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/mapapi/ |
D | BluetoothMapEmailProviderTest.java | 70 providerInfo.authority = AUTHORITY; in attachInfo_whenProviderIsNotExported() 80 providerInfo.authority = AUTHORITY; in attachInfo_whenNoPermission() 91 providerInfo.authority = AUTHORITY; in attachInfo_success() 114 .authority(AUTHORITY) in delete_whenTableNameIsWrong() 128 .authority(AUTHORITY) in delete_success() 141 .authority(AUTHORITY) in insert_whenFolderIdIsNull() 154 .authority(AUTHORITY) in insert_whenTableNameIsWrong() 167 .authority(AUTHORITY) in insert_success() 182 providerInfo.authority = AUTHORITY; in query_forAccountUri() 188 .authority(AUTHORITY) in query_forAccountUri() [all …]
|
D | BluetoothMapIMProviderTest.java | 83 providerInfo.authority = AUTHORITY; in attachInfo_whenProviderIsNotExported() 93 providerInfo.authority = AUTHORITY; in attachInfo_whenNoPermission() 104 providerInfo.authority = AUTHORITY; in attachInfo_success() 127 .authority(AUTHORITY) in delete_whenTableNameIsWrong() 141 .authority(AUTHORITY) in delete_success() 154 .authority(AUTHORITY) in insert_whenTableNameIsWrong() 167 .authority(AUTHORITY) in insert_success() 182 providerInfo.authority = AUTHORITY; in query_forAccountUri() 188 .authority(AUTHORITY) in query_forAccountUri() 200 providerInfo.authority = AUTHORITY; in query_forMessageUri() [all …]
|
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/ |
D | UriTest.java | 36 .authority("crazybob.org") in testParcelling() 182 .authority("crazybob.org") in testEqualsAndHashCode() 392 private static void testHierarchical(String scheme, String authority, in testHierarchical() argument 396 if (authority != null) { in testHierarchical() 397 sb.append("//").append(authority); in testHierarchical() 421 uriString, ssp, uri, scheme, authority, path, query, fragment); in testHierarchical() 423 uriString, ssp, uri, scheme, authority, path, query, fragment); in testHierarchical() 430 uriString, ssp, uri, scheme, authority, path, query, fragment); in testHierarchical() 432 uriString, ssp, uri, scheme, authority, path, query, fragment); in testHierarchical() 440 .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 …]
|