Home
last modified time | relevance | path

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

12345678910>>...99

/aosp_15_r20/packages/providers/MediaProvider/src/com/android/providers/media/photopicker/
DPickerSyncController.java331 if (Objects.equals(defaultInfo.authority, cachedAuthority)) { in initCloudProviderLocked()
340 Log.d(TAG, "Initialized cloud provider to: " + defaultInfo.authority); in initCloudProviderLocked()
490 private boolean resetAllMedia(@Nullable String authority, boolean isLocal) in resetAllMedia() argument
494 executeSyncReset(authority, isLocal); in resetAllMedia()
495 return resetCachedMediaCollectionInfo(authority, isLocal); in resetAllMedia()
502 private CloudProviderInfo getCloudProviderInfo(String authority, boolean ignoreAllowlist) { in getCloudProviderInfo() argument
503 if (authority == null) { in getCloudProviderInfo()
512 if (Objects.equals(info.authority, authority)) { in getCloudProviderInfo()
539 public boolean setCloudProvider(@Nullable String authority) { in setCloudProvider() argument
542 return setCloudProviderInternal(authority, /* ignoreAllowlist */ false); in setCloudProvider()
[all …]
/aosp_15_r20/packages/providers/MediaProvider/photopicker/tests/src/com/android/photopicker/data/model/
DMediaTest.kt40 authority = "authority", in testMediaImageIsParcelable()
46 authority("media") in testMediaImageIsParcelable()
56 authority("a") in testMediaImageIsParcelable()
87 authority = "authority", in testMediaVideoIsParcelable()
93 authority("media") in testMediaVideoIsParcelable()
103 authority("a") in testMediaVideoIsParcelable()
134 authority = "authority", in testImageHashCodeIsPredictable()
140 authority("media") in testImageHashCodeIsPredictable()
150 authority("a") in testImageHashCodeIsPredictable()
164 authority = "authority", in testImageHashCodeIsPredictable()
[all …]
/aosp_15_r20/external/rust/android-crates-io/crates/http/src/uri/
Dmod.rs37 pub use self::authority::Authority;
43 mod authority; module
98 authority: Authority, field
111 pub authority: Option<Authority>, field
240 if src.authority.is_none() { in from_parts()
248 if src.authority.is_some() && src.path_and_query.is_some() { in from_parts()
260 let authority = match src.authority { in from_parts() localVariable
261 Some(authority) => authority, in from_parts()
272 authority: authority, in from_parts()
308 authority: Authority::empty(), in from_shared()
[all …]
Dauthority.rs555 let authority: Authority = "example.com".parse().unwrap(); in equates_with_a_str() localVariable
556 assert_eq!(&authority, "EXAMPLE.com"); in equates_with_a_str()
557 assert_eq!("EXAMPLE.com", &authority); in equates_with_a_str()
558 assert_eq!(authority, "EXAMPLE.com"); in equates_with_a_str()
559 assert_eq!("EXAMPLE.com", authority); in equates_with_a_str()
564 let authority = Authority::from_static("example.com"); in from_static_equates_with_a_str() localVariable
565 assert_eq!(authority, "example.com"); in from_static_equates_with_a_str()
570 let authority: Authority = "example.com".parse().unwrap(); in not_equal_with_a_str_of_a_different_authority() localVariable
571 assert_ne!(&authority, "test.com"); in not_equal_with_a_str_of_a_different_authority()
572 assert_ne!("test.com", &authority); in not_equal_with_a_str_of_a_different_authority()
[all …]
Dtests.rs63 authority = None,
75 authority = part!("127.0.0.1:61761"),
88 authority = part!("127.0.0.1:61761"),
101 authority = None,
113 authority = part!("localhost"),
126 authority = part!("S"),
139 authority = part!("localhost:3000"),
152 authority = part!("127.0.0.1:80"),
165 authority = part!("127.0.0.1:443"),
178 authority = part!("127.0.0.1"),
[all …]
/aosp_15_r20/external/nist-sip/java/gov/nist/javax/sip/address/
H A DSipUri.java67 protected Authority authority; field in SipUri
115 if (this.authority != null) { in clearPassword()
116 UserInfo userInfo = authority.getUserInfo(); in clearPassword()
125 return this.authority; in getAuthority()
243 if (authority != null) in encode()
244 authority.encode(buffer); in encode()
273 if (authority.getUserInfo() != null) in getUserAtHost()
274 user = authority.getUserInfo().getUser(); in getUserAtHost()
276 String host = authority.getHost().encode(); in getUserAtHost()
292 if (authority.getUserInfo() != null) in getUserAtHostPort()
[all …]
/aosp_15_r20/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accounts/
DAccountSyncFragment.java167 String authority = syncPref.getAuthority(); in onPreferenceTreeClick() local
170 int toggleId = getToggleId(authority); in onPreferenceTreeClick()
175 requestOrCancelSync(account, authority, true); in onPreferenceTreeClick()
179 authority, userId); in onPreferenceTreeClick()
185 ContentResolver.setSyncAutomaticallyAsUser(account, authority, syncOn, userId); in onPreferenceTreeClick()
190 requestOrCancelSync(account, authority, syncOn); in onPreferenceTreeClick()
243 requestOrCancelSync(mAccount, syncAdapter.authority, startSync); in requestOrCancelSyncForEnabledProviders()
248 private void requestOrCancelSync(Account account, String authority, boolean flag) { in requestOrCancelSync() argument
252 ContentResolver.requestSyncAsUser(account, authority, mUserHandle.getIdentifier(), in requestOrCancelSync()
255 ContentResolver.cancelSyncAsUser(account, authority, mUserHandle.getIdentifier()); in requestOrCancelSync()
[all …]
/aosp_15_r20/frameworks/base/core/java/android/content/
H A DSyncAdapterType.java32 public final String authority; field in SyncAdapterType
47 public SyncAdapterType(String authority, String accountType, boolean userVisible, in SyncAdapterType() argument
49 if (TextUtils.isEmpty(authority)) { in SyncAdapterType()
50 throw new IllegalArgumentException("the authority must not be empty: " + authority); in SyncAdapterType()
55 this.authority = authority; in SyncAdapterType()
67 public SyncAdapterType(String authority, String accountType, boolean userVisible, in SyncAdapterType() argument
73 if (TextUtils.isEmpty(authority)) { in SyncAdapterType()
74 throw new IllegalArgumentException("the authority must not be empty: " + authority); in SyncAdapterType()
79 this.authority = authority; in SyncAdapterType()
91 private SyncAdapterType(String authority, String accountType) { in SyncAdapterType() argument
[all …]
/aosp_15_r20/packages/modules/Bluetooth/android/app/lib/mapapi/com/android/bluetooth/mapapi/
DBluetoothMapContract.java156 public static Uri buildAccountUri(String authority) { in buildAccountUri() argument
159 .authority(authority) in buildAccountUri()
168 public static Uri buildAccountUriwithId(String authority, String accountId) { in buildAccountUriwithId() argument
171 .authority(authority) in buildAccountUriwithId()
178 public static Uri buildMessageUri(String authority) { in buildMessageUri() argument
181 .authority(authority) in buildMessageUri()
190 public static Uri buildMessageUri(String authority, String accountId) { in buildMessageUri() argument
193 .authority(authority) in buildMessageUri()
203 public static Uri buildMessageUriWithId(String authority, String accountId, String messageId) { in buildMessageUriWithId() argument
206 .authority(authority) in buildMessageUriWithId()
[all …]
/aosp_15_r20/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/
DTestProvidersAccess.java63 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 …]
DTestEnv.java88 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()
121 TestDocumentsProvider provider = new TestDocumentsProvider(context, root.authority); in registerProviders()
122 contentResolver.addProvider(root.authority, provider); in registerProviders()
123 mockProviders.put(root.authority, provider); in registerProviders()
130 return create(features, TestProvidersAccess.HOME.authority); in create()
134 return create(TestProvidersAccess.HOME.authority); in create()
137 public static TestEnv create(Features features, String authority) { in create() argument
[all …]
/aosp_15_r20/packages/apps/DocumentsUI/src/com/android/documentsui/roots/
DProvidersCache.java187 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;
208 assert (recentRoot.authority == null);
228 public void updateAuthorityAsync(UserId userId, String authority) {
230 authority, 0);
303 String authority = userAuthority.authority;
304 if (VERBOSE) Log.v(TAG, "Loading roots on user " + userId + " for " + authority);
310 authority, PackageManager.GET_META_DATA);
[all …]
/aosp_15_r20/packages/apps/Car/Settings/src/com/android/car/settings/qc/
DSettingsQCRegistry.java36 .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 …]
/aosp_15_r20/packages/providers/MediaProvider/src/com/android/providers/media/photopicker/metrics/
DNonUiEventLogger.java115 public static void logPickerFullSyncStart(InstanceId instanceId, int uid, String authority) { in logPickerFullSyncStart() argument
116 LOGGER.logWithInstanceId(NonUiEvent.PHOTO_PICKER_FULL_SYNC_START, uid, authority, in logPickerFullSyncStart()
127 String authority) { in logPickerIncrementalSyncStart() argument
128 LOGGER.logWithInstanceId(NonUiEvent.PHOTO_PICKER_INCREMENTAL_SYNC_START, uid, authority, in logPickerIncrementalSyncStart()
139 String authority) { in logPickerAlbumMediaSyncStart() argument
140 LOGGER.logWithInstanceId(NonUiEvent.PHOTO_PICKER_ALBUM_MEDIA_SYNC_START, uid, authority, in logPickerAlbumMediaSyncStart()
151 String authority) { in logPickerGetMediaCollectionInfoStart() argument
153 authority, instanceId); in logPickerGetMediaCollectionInfoStart()
162 public static void logPickerGetAlbumsStart(InstanceId instanceId, int uid, String authority) { in logPickerGetAlbumsStart() argument
163 LOGGER.logWithInstanceId(NonUiEvent.PHOTO_PICKER_GET_ALBUMS_START, uid, authority, in logPickerGetAlbumsStart()
[all …]
/aosp_15_r20/packages/providers/MediaProvider/photopicker/tests/src/com/android/photopicker/data/
DDataServiceImplTest.kt173 assertThat(emissions.get(0).get(0).authority) in <lambda>()
174 .isEqualTo(testContentProvider.providers[0].authority) in <lambda>()
245 authority = "local_authority", in <lambda>()
251 authority = "cloud_authority", in <lambda>()
267 assertThat(emissions.get(0).get(0).authority).isEqualTo("test_authority") in <lambda>()
271 assertThat(emissions.get(1).get(0).authority) in <lambda>()
272 .isEqualTo(testContentProvider.providers[0].authority) in <lambda>()
273 assertThat(emissions.get(1).get(1).authority) in <lambda>()
274 .isEqualTo(testContentProvider.providers[1].authority) in <lambda>()
282 authority = "local_authority", in <lambda>()
[all …]
/aosp_15_r20/packages/apps/Settings/src/com/android/settings/slices/
DCustomSliceRegistry.java59 .authority(SettingsSliceProvider.SLICE_AUTHORITY)
69 .authority(SettingsSlicesContract.AUTHORITY)
79 .authority(SettingsSliceProvider.SLICE_AUTHORITY)
89 .authority(SettingsSliceProvider.SLICE_AUTHORITY)
98 .authority(SettingsSliceProvider.SLICE_AUTHORITY)
107 .authority(SettingsSliceProvider.SLICE_AUTHORITY)
116 .authority(SettingsSlicesContract.AUTHORITY)
125 .authority(SettingsSliceProvider.SLICE_AUTHORITY)
134 .authority(SettingsSliceProvider.SLICE_AUTHORITY)
144 .authority(SettingsSliceProvider.SLICE_AUTHORITY)
[all …]
/aosp_15_r20/external/mobly-bundled-snippets/src/main/java/com/google/android/mobly/snippet/bundled/
H A DAccountSnippet.java142 if (!isAdapterAllowListed(username, adapter.authority)) { in addAccount()
143 updateSync(account, adapter.authority, false /* sync */); in addAccount()
198 private boolean isAdapterAllowListed(String username, String authority) { in isAdapterAllowListed() argument
204 result = allowListedProviders.contains(authority); in isAdapterAllowListed()
225 private void updateSync(Account account, String authority, boolean sync) { in updateSync() argument
226 if (ContentResolver.getSyncAutomatically(account, authority) != sync) { in updateSync()
227 ContentResolver.setSyncAutomatically(account, authority, sync); in updateSync()
229 ContentResolver.requestSync(account, authority, new Bundle()); in updateSync()
231 ContentResolver.cancelSync(account, authority); in updateSync()
239 + authority in updateSync()
[all …]
/aosp_15_r20/packages/apps/Car/Settings/tests/helpers/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 …]
/aosp_15_r20/packages/providers/MediaProvider/src/com/android/providers/media/photopicker/data/
DCloudProviderInfo.java30 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 …]
/aosp_15_r20/out/soong/.intermediates/packages/modules/AdServices/adservices/service-core/adservices-service-core/android_common_apex33/javac/anno/com/android/adservices/service/common/bhttp/
DAutoValue_RequestControlData.java13 private final String authority; field in AutoValue_RequestControlData
20 String authority, in AutoValue_RequestControlData() argument
24 this.authority = authority; in AutoValue_RequestControlData()
43 return authority; in getAuthority()
57 + "authority=" + authority + ", " in toString()
71 && this.authority.equals(that.getAuthority()) in equals()
85 h$ ^= authority.hashCode(); in hashCode()
94 private String authority; field in AutoValue_RequestControlData.Builder
115 public RequestControlData.Builder setAuthority(String authority) { in setAuthority() argument
116 if (authority == null) { in setAuthority()
[all …]
/aosp_15_r20/out/soong/.intermediates/packages/modules/AdServices/adservices/service-core/adservices-service-core/android_common_apex30/javac/anno/com/android/adservices/service/common/bhttp/
DAutoValue_RequestControlData.java13 private final String authority; field in AutoValue_RequestControlData
20 String authority, in AutoValue_RequestControlData() argument
24 this.authority = authority; in AutoValue_RequestControlData()
43 return authority; in getAuthority()
57 + "authority=" + authority + ", " in toString()
71 && this.authority.equals(that.getAuthority()) in equals()
85 h$ ^= authority.hashCode(); in hashCode()
94 private String authority; field in AutoValue_RequestControlData.Builder
115 public RequestControlData.Builder setAuthority(String authority) { in setAuthority() argument
116 if (authority == null) { in setAuthority()
[all …]
/aosp_15_r20/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 …]
/aosp_15_r20/packages/apps/Car/Settings/src/com/android/car/settings/accounts/
DAccountSyncHelper.java67 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 …]
/aosp_15_r20/libcore/ojluni/src/main/java/java/net/
H A DURL.java199 private String authority; field in URL
409 authority = (port == -1) ? host : host + ":" + port; in URL()
590 authority = context.authority; in URL()
684 authority = port == -1 ? host : host + ":" + port; in set()
717 String authority, String userInfo, String path, in set() argument
734 this.authority = authority; in set()
778 return authority; in getAuthority()
1366 String authority = (String)gf.get("authority", null); in readObject() local
1372 if (authority == null in readObject()
1376 authority = (port == -1) ? host : host + ":" + port; in readObject()
[all …]
/aosp_15_r20/out/soong/.intermediates/libcore/core_oj_api_files/gen/gensrcs/libcore/ojluni/src/main/java/java/net/
DURL.java199 private String authority; field in URL
409 authority = (port == -1) ? host : host + ":" + port; in URL()
590 authority = context.authority; in URL()
684 authority = port == -1 ? host : host + ":" + port; in set()
717 String authority, String userInfo, String path, in set() argument
734 this.authority = authority; in set()
778 return authority; in getAuthority()
1366 String authority = (String)gf.get("authority", null); in readObject() local
1372 if (authority == null in readObject()
1376 authority = (port == -1) ? host : host + ":" + port; in readObject()
[all …]

12345678910>>...99