Home
last modified time | relevance | path

Searched full:authority (Results 1 – 25 of 5938) sorted by relevance

12345678910>>...238

/aosp_15_r20/external/rust/android-crates-io/crates/http/src/uri/
Dauthority.rs11 /// Represents the authority component of a URI.
13 pub struct Authority { struct
17 impl Authority { argument
19 Authority { in empty()
31 /// Attempt to convert an `Authority` from a static string.
44 /// # use http::uri::Authority;
45 /// let authority = Authority::from_static("example.com");
46 /// assert_eq!(authority.host(), "example.com");
49 Authority::from_shared(Bytes::from_static(src.as_bytes())) in from_static()
50 .expect("static str is not valid authority") in from_static()
[all …]
Dmod.rs37 pub use self::authority::Authority;
43 mod authority; module
65 /// > / authority-form
75 /// scheme authority path query fragment
98 authority: Authority, field
110 /// The authority component of a URI
111 pub authority: Option<Authority>, field
195 /// .authority("hyper.rs")
220 /// assert!(uri.authority().is_none());
229 /// parts.authority = Some("foo.com".parse().unwrap());
[all …]
/aosp_15_r20/external/google-cloud-java/java-containeranalysis/proto-google-cloud-containeranalysis-v1beta1/src/main/java/io/grafeas/v1beta1/attestation/
H A DAuthority.java25 * Note kind that represents a logical attestation "role" or "authority". For
26 * example, an organization might have one `Authority` for "QA" and one for
35 * Protobuf type {@code grafeas.v1beta1.attestation.Authority}
37 public final class Authority extends com.google.protobuf.GeneratedMessageV3 class
39 // @@protoc_insertion_point(message_implements:grafeas.v1beta1.attestation.Authority)
42 // Use Authority.newBuilder() to construct.
43 private Authority(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { in Authority() method in Authority
47 private Authority() {} in Authority() method in Authority
52 return new Authority(); in newInstance()
60 private Authority( in Authority() method in Authority
[all …]
/aosp_15_r20/packages/providers/MediaProvider/src/com/android/providers/media/photopicker/
DPickerSyncController.java29 import static android.provider.MediaStore.AUTHORITY;
331 if (Objects.equals(defaultInfo.authority, cachedAuthority)) { in initCloudProviderLocked()
340 Log.d(TAG, "Initialized cloud provider to: " + defaultInfo.authority); in initCloudProviderLocked()
345 * @throws RequestObsoleteException if the cloud authority changes during the operation.
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()
[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/robolectric/robolectric/src/test/java/org/robolectric/shadows/
H A DShadowContentResolverTest.java79 private static final String AUTHORITY = "org.robolectric"; field in ShadowContentResolverTest
114 AUTHORITY, in getType_shouldReturnProviderValue()
152 final Uri uri = Uri.parse("content://" + AUTHORITY + "/some/path"); in getType_shouldReturnProviderValue()
356 ShadowContentResolver.registerProviderInternal(AUTHORITY, cp); in acquireUnstableProvider_shouldReturnWithUri()
357 final Uri uri = Uri.parse("content://" + AUTHORITY); in acquireUnstableProvider_shouldReturnWithUri()
365 ShadowContentResolver.registerProviderInternal(AUTHORITY, cp); in acquireUnstableProvider_shouldReturnWithString()
366 assertThat(contentResolver.acquireUnstableProvider(AUTHORITY)) in acquireUnstableProvider_shouldReturnWithString()
375 final Uri uri = Uri.parse("content://" + AUTHORITY); in call_shouldCallProvider()
379 ShadowContentResolver.registerProviderInternal(AUTHORITY, provider); in call_shouldCallProvider()
390 providerInfo0.authority = "the-authority"; // todo: support multiple authorities in registerProvider_shouldAttachProviderInfo()
[all …]
/aosp_15_r20/packages/apps/Car/Settings/tests/deviceless/src/com/android/car/settings/accounts/
DAccountSyncDetailsPreferenceControllerTest.java69 private static final String AUTHORITY = "authority"; field in AccountSyncDetailsPreferenceControllerTest
108 SyncAdapterType syncAdapterType = new SyncAdapterType(AUTHORITY, in refreshUi_syncAdapterDoesNotHaveSameAccountType_shouldNotBeShown()
121 SyncAdapterType syncAdapterType = new SyncAdapterType(AUTHORITY, in refreshUi_syncAdapterIsNotVisible_shouldNotBeShown()
134 SyncAdapterType syncAdapterType = new SyncAdapterType(AUTHORITY, in refreshUi_syncAdapterIsNotSyncable_shouldNotBeShown()
139 ShadowContentResolver.setIsSyncable(mAccount, AUTHORITY, /* syncable= */ NOT_SYNCABLE); in refreshUi_syncAdapterIsNotSyncable_shouldNotBeShown()
149 SyncAdapterType syncAdapterType = new SyncAdapterType(AUTHORITY, in refreshUi_syncAdapterDoesNotHaveProviderInfo_shouldNotBeShown()
154 ShadowContentResolver.setIsSyncable(mAccount, AUTHORITY, /* syncable= */ SYNCABLE); in refreshUi_syncAdapterDoesNotHaveProviderInfo_shouldNotBeShown()
166 SyncAdapterType syncAdapterType = new SyncAdapterType(AUTHORITY, in refreshUi_providerInfoDoesNotHaveLabel_shouldNotBeShown()
171 ShadowContentResolver.setIsSyncable(mAccount, AUTHORITY, /* syncable= */ SYNCABLE); in refreshUi_providerInfoDoesNotHaveLabel_shouldNotBeShown()
174 info.authority = AUTHORITY; in refreshUi_providerInfoDoesNotHaveLabel_shouldNotBeShown()
[all …]
/aosp_15_r20/packages/apps/Car/Settings/src/com/android/car/settings/qc/
DSettingsQCRegistry.java31 public static final String AUTHORITY = "com.android.car.settings.qc"; field in SettingsQCRegistry
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)
[all …]
/aosp_15_r20/external/grpc-grpc/test/cpp/ext/filters/logging/
H A Dlogging_test.cc73 Field("authority", &LoggingSink::Entry::authority, in TEST_F()
86 Field("authority", &LoggingSink::Entry::authority, in TEST_F()
104 Field("authority", &LoggingSink::Entry::authority, in TEST_F()
114 Field("authority", &LoggingSink::Entry::authority, in TEST_F()
127 Field("authority", &LoggingSink::Entry::authority, in TEST_F()
144 Field("authority", &LoggingSink::Entry::authority, in TEST_F()
157 Field("authority", &LoggingSink::Entry::authority, in TEST_F()
170 Field("authority", &LoggingSink::Entry::authority, in TEST_F()
188 Field("authority", &LoggingSink::Entry::authority, in TEST_F()
198 Field("authority", &LoggingSink::Entry::authority, in TEST_F()
[all …]
/aosp_15_r20/external/rust/android-crates-io/crates/grpcio-sys/grpc/third_party/xds/proposals/
DTP1-xds-transport-next.md22 context. In addition, resource names support a notion of named authority,
103 authority between management servers, failover and support for hybrid topologies
121 * Coordination over authority delegation between management servers.
127 We define a control plane serving a given xDS resource as an *authority*. The
129 naming of an authority and the configuration of fetches from the authority (a
133 The proposal includes the authority in the xDS resource name URI.
144 authority from `ConfigSource`, type URL and version. When communicating between
229 `xdstp://[{authority}]/{resource type}/{id/*}?{context parameters}{#processing directive,*}`
231 * `authority` is an opaque string naming a resource authority, e.g.
277 `xdstp://some-authority/some.type/foo?bar=baz`:
[all …]
/aosp_15_r20/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/mapapi/
DBluetoothMapIMProviderTest.java64 private static final String AUTHORITY = "com.test"; field in BluetoothMapIMProviderTest
83 providerInfo.authority = AUTHORITY; in attachInfo_whenProviderIsNotExported()
92 providerInfo.authority = AUTHORITY; in attachInfo_whenNoPermission()
102 providerInfo.authority = AUTHORITY; in attachInfo_success()
127 .authority(AUTHORITY) in delete_whenTableNameIsWrong()
145 .authority(AUTHORITY) in delete_success()
160 .authority(AUTHORITY) in insert_whenTableNameIsWrong()
175 .authority(AUTHORITY) in insert_success()
190 providerInfo.authority = AUTHORITY; in query_forAccountUri()
198 .authority(AUTHORITY) in query_forAccountUri()
[all …]
DBluetoothMapEmailProviderTest.java53 private static final String AUTHORITY = "com.test"; field in BluetoothMapEmailProviderTest
72 providerInfo.authority = AUTHORITY; in attachInfo_whenProviderIsNotExported()
81 providerInfo.authority = AUTHORITY; in attachInfo_whenNoPermission()
91 providerInfo.authority = AUTHORITY; in attachInfo_success()
116 .authority(AUTHORITY) in delete_whenTableNameIsWrong()
134 .authority(AUTHORITY) in delete_success()
149 .authority(AUTHORITY) in insert_whenFolderIdIsNull()
164 .authority(AUTHORITY) in insert_whenTableNameIsWrong()
179 .authority(AUTHORITY) in insert_success()
194 providerInfo.authority = AUTHORITY; in query_forAccountUri()
[all …]
/aosp_15_r20/cts/tests/tests/content/src/android/content/cts/
H A DContentResolverSyncTestCase.java42 private static final String AUTHORITY = "android.content.cts.authority"; field in ContentResolverSyncTestCase
68 cancelSync(null, AUTHORITY, LATCH_TIMEOUT_MS); in tearDown()
106 String authority, int accountIndex) { in addAccountAndVerifyInitSync() argument
125 assertEquals(authority, getMockSyncAdapter().getAuthority()); in addAccountAndVerifyInitSync()
128 private void cancelSync(Account account, String authority, int latchTimeoutMillis) { in cancelSync() argument
134 ContentResolver.cancelSync(account, authority); in cancelSync()
146 if (!ContentResolver.isSyncActive(ACCOUNT, AUTHORITY) in cancelSync()
147 && !ContentResolver.isSyncPending(ACCOUNT, AUTHORITY)) { in cancelSync()
158 private void requestSync(Account account, String authority, int latchTimeoutMillis) { in requestSync() argument
164 ContentResolver.requestSync(account, authority, extras); in requestSync()
[all …]
/aosp_15_r20/packages/providers/MediaProvider/src/com/android/providers/media/photopicker/metrics/
DNonUiEventLogger.java113 * @param authority the authority of the provider syncing with
115 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()
124 * @param authority the authority of the provider syncing with
127 String authority) { in logPickerIncrementalSyncStart() argument
128 LOGGER.logWithInstanceId(NonUiEvent.PHOTO_PICKER_INCREMENTAL_SYNC_START, uid, authority, in logPickerIncrementalSyncStart()
136 * @param authority the authority of the provider syncing with
139 String authority) { in logPickerAlbumMediaSyncStart() argument
140 LOGGER.logWithInstanceId(NonUiEvent.PHOTO_PICKER_ALBUM_MEDIA_SYNC_START, uid, authority, in logPickerAlbumMediaSyncStart()
148 * @param authority the authority of the provider
[all …]
/aosp_15_r20/packages/providers/MediaProvider/tests/src/com/android/providers/media/photopicker/v2/sqlite/
DSearchSuggestionsDatabaseUtilTest.java101 assertWithMessage("Search history authority is not as expected") in testSaveTextSearchRequestHistory()
112 final String authority = "com.random.authority"; in testSaveSuggestionSearchRequestHistory() local
117 authority, in testSaveSuggestionSearchRequestHistory()
128 /* providers */ List.of("random.authority", authority), in testSaveSuggestionSearchRequestHistory()
145 assertWithMessage("Search history authority is not as expected") in testSaveSuggestionSearchRequestHistory()
147 .isEqualTo(authority); in testSaveSuggestionSearchRequestHistory()
156 final String authority = "com.random.authority"; in testQueryHistoryForProviders() local
161 authority, in testQueryHistoryForProviders()
172 /* providers */ List.of("random.authority", in testQueryHistoryForProviders()
173 "another.random.authority"), in testQueryHistoryForProviders()
[all …]
/aosp_15_r20/packages/apps/DocumentsUI/src/com/android/documentsui/roots/
DProvidersCache.java94 ArchivesProvider.AUTHORITY);
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;
208 assert (recentRoot.authority == null);
228 public void updateAuthorityAsync(UserId userId, String authority) {
230 authority, 0);
280 * Load roots from a stopped authority. Normal {@link MultiProviderUpdateTask} passes
289 Log.d(TAG, "Loading stopped authority " + userAuthority);
[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 …]
/aosp_15_r20/external/nist-sip/java/gov/nist/javax/sip/address/
H A DSipUri.java64 /** Authority for the uri.
67 protected Authority authority; field in SipUri
115 if (this.authority != null) { in clearPassword()
116 UserInfo userInfo = authority.getUserInfo(); in clearPassword()
122 /** Get the authority.
124 public Authority getAuthority() { in getAuthority()
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()
[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/services/core/java/com/android/server/content/
H A DSyncStorageEngine.java398 /** Called when an authority is removed. */
403 * Validator that maintains a lazy cache of accounts and providers to tell if an authority or
430 // An authority is only valid if it has a content provider installed on the system
431 boolean isAuthorityValid(String authority, int userId) { in isAuthorityValid() argument
437 if (!authorityMap.containsKey(authority)) { in isAuthorityValid()
438 authorityMap.put(authority, mPackageManager.resolveContentProviderAsUser(authority, in isAuthorityValid()
442 return authorityMap.get(authority); in isAuthorityValid()
717 AuthorityInfo authority = getAuthorityLocked( in getSyncAutomatically() local
720 return authority != null && authority.enabled; in getSyncAutomatically()
744 " authority=", providerName, in setSyncAutomatically()
[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/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()
193 * SyncAdapters. This function checks the allowList for a specific account-authority pair.
196 * @param authority The authority of a content provider that should be checked.
198 private boolean isAdapterAllowListed(String username, String authority) { in isAdapterAllowListed() argument
204 result = allowListedProviders.contains(authority); in isAdapterAllowListed()
215 * <p>Sets an accounts SyncAdapter (selected based on authority) to sync/not-sync automatically
222 * @param authority The authority of a content provider that should (not) be synced.
225 private void updateSync(Account account, String authority, boolean sync) { in updateSync() argument
226 if (ContentResolver.getSyncAutomatically(account, authority) != sync) { in updateSync()
[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/providers/MediaProvider/photopicker/src/com/android/photopicker/features/preview/
DPreviewViewModel.kt88 // These are the authority strings for [CloudMediaProvider]-s for local on device files.
210 * updates to. This flow is later filtered to a specific (authority + surfaceId) pairing for
227 * authority)
230 return _playbackInfo.filter { it.surfaceId == surfaceId && it.authority == video.authority } in getPlaybackInfoForPlayer()
239 * Obtains an instance of [RemoteSurfaceController] for the requested authority. Attempts to
241 * [RemotePreviewControllerInfo] for the requested authority and holds it in [controllers] for
244 * @return A [RemoteSurfaceController] for [authority]
247 authority: String, in getControllerForAuthority()
250 if (controllers.containsKey(authority)) { in getControllerForAuthority()
251 Log.d(TAG, "Existing controller found, re-using for $authority") in getControllerForAuthority()
[all …]
/aosp_15_r20/packages/providers/MediaProvider/photopicker/tests/src/com/android/photopicker/features/preview/
DPreviewViewModelTest.kt135 authority = "a",
141 authority("media") in <lambda>()
151 authority(MockContentProviderWrapper.AUTHORITY) in <lambda>()
165 authority = "a",
171 authority("media") in <lambda>()
181 authority(MockContentProviderWrapper.AUTHORITY) in <lambda>()
196 authority = MockContentProviderWrapper.AUTHORITY,
202 authority("a") in <lambda>()
210 authority("a") in <lambda>()
246 mockContentResolver.addProvider(MockContentProviderWrapper.AUTHORITY, provider) in setup()
[all …]

12345678910>>...238