Home
last modified time | relevance | path

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

123

/cts/tests/tests/syncmanager/apps/app1/src/android/content/syncmanager/cts/app/
DSyncManagerCtsSyncAdapter.java57 SyncResult onPerformSync(Account account, Bundle extras, String authority, in onPerformSync() argument
64 public void onPerformSync(Account account, Bundle extras, String authority, in onPerformSync() argument
68 Log.i(TAG, "onPerformSync: account=" + account + " authority=" + authority in onPerformSync()
76 .setAuthority(authority) in onPerformSync()
81 getContext().getContentResolver().setIsSyncable(account, authority, 1); in onPerformSync()
84 sSyncInterceptor.onPerformSync(account, extras, authority, syncResult); in onPerformSync()
101 Log.i(TAG, "onPerformSyncFinishing: account=" + account + " authority=" + authority in onPerformSync()
/cts/tests/tests/content/src/android/content/cts/
DMockSyncAdapter.java86 public void startSync(ISyncContext syncContext, String authority, Account account, in startSync() argument
90 mAuthority = authority; in startSync()
118 public void initialize(android.accounts.Account account, java.lang.String authority) in initialize() argument
122 mAuthority = authority; in initialize()
DMockSRSProvider.java37 public void setupSuggestions(String authority, int mode) { in setupSuggestions() argument
39 super.setupSuggestions(authority, mode); in setupSuggestions()
DContentResolverSyncTestCase.java106 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()
158 private void requestSync(Account account, String authority, int latchTimeoutMillis) { in requestSync() argument
164 ContentResolver.requestSync(account, authority, extras); in requestSync()
174 private void setIsSyncable(Account account, String authority, boolean b) { in setIsSyncable() argument
175 ContentResolver.setIsSyncable(account, authority, (b) ? 1 : 0); in setIsSyncable()
310 AUTHORITY.equals(type.authority)) {
/cts/tests/tests/appenumeration/src/android/appenumeration/cts/
DSyncAdapterEnumerationTests.java282 final String authority = providerPackageName + AUTHORITY_SUFFIX; in requestPeriodicSync() local
285 extraData.putString(EXTRA_AUTHORITY, authority); in requestPeriodicSync()
293 final String authority = providerPackageName + AUTHORITY_SUFFIX; in setSyncAutomatically() local
296 extraData.putString(EXTRA_AUTHORITY, authority); in setSyncAutomatically()
303 final String authority = targetPackageName + AUTHORITY_SUFFIX; in getSyncAutomatically() local
305 extraData.putString(EXTRA_AUTHORITY, authority); in getSyncAutomatically()
313 final String authority = targetPackageName + AUTHORITY_SUFFIX; in getIsSyncable() local
316 extraData.putString(EXTRA_AUTHORITY, authority); in getIsSyncable()
324 final String authority = targetPackageName + AUTHORITY_SUFFIX; in getPeriodicSyncs() local
327 extraData.putString(EXTRA_AUTHORITY, authority); in getPeriodicSyncs()
[all …]
/cts/tests/tests/appenumeration/lib/src/android/appenumeration/cts/
DTestActivity.java253 final String authority = intent.getStringExtra(Intent.EXTRA_PACKAGE_NAME); in handleIntent() local
254 queryResolverForVisiblePackages(remoteCallback, authority); in handleIntent()
277 final String authority = intent.getBundleExtra(EXTRA_DATA) in handleIntent() local
281 sendSyncAdapterPackagesForAuthorityAsUser(remoteCallback, authority, userId); in handleIntent()
283 final String authority = intent.getBundleExtra(EXTRA_DATA) in handleIntent() local
287 awaitRequestSyncStatus(remoteCallback, action, account, authority, in handleIntent()
290 final String authority = intent.getBundleExtra(EXTRA_DATA) in handleIntent() local
296 sendGetSyncAdapterControlPanel(remoteCallback, account, authority, componentName); in handleIntent()
300 final String authority = intent.getBundleExtra(EXTRA_DATA) in handleIntent() local
302 awaitRequestPeriodicSync(remoteCallback, account, authority, in handleIntent()
[all …]
/cts/tests/PhotoPicker/src/android/photopicker/cts/
DPhotoPickerCloudUtils.java115 String authority, Pair<String, String>... mediaPairs) throws Exception { in initCloudProviderWithImage() argument
116 PhotoPickerBaseTest.setCloudProvider(authority); in initCloudProviderWithImage()
118 authority)).isTrue(); in initCloudProviderWithImage()
274 @Nullable String authority) throws IOException { in setCloudProvider() argument
275 if (INVALID_CLOUD_PROVIDER.equals(authority)) { in setCloudProvider()
280 if (authority == null) { in setCloudProvider()
292 + authority); in setCloudProvider()
DPhotoPickerBaseTest.java90 protected static void setCloudProvider(@Nullable String authority) throws Exception { in setCloudProvider() argument
91 PhotoPickerCloudUtils.setCloudProvider(sDevice, authority); in setCloudProvider()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/tv/
DSearchUtil.java120 String authority = searchable.getSuggestAuthority(); in getSearchUri() local
121 if (authority == null) { in getSearchUri()
126 .authority(authority); in getSearchUri()
/cts/tests/tests/contactsproviderwipe/src/android/provider/cts/contactsproviderwipe/
DContactsContract_Wipe.java88 if (TextUtils.isEmpty(pi.authority)) { in getContactsProviderPackageName()
91 for (String authority : pi.authority.split(";")) { in getContactsProviderPackageName()
92 Log.i(TAG, "Found " + authority); in getContactsProviderPackageName()
93 if (ContactsContract.AUTHORITY.equals(authority)) { in getContactsProviderPackageName()
/cts/hostsidetests/inputmethodservice/deviceside/provider/src/android/inputmethodservice/cts/provider/
DUriHelper.java78 FactoryBuilder addUri(String authority, String path, String type) { in addUri() argument
79 if (TextUtils.isEmpty(authority)) { in addUri()
86 mUriMatcher.addURI(authority, path, matcherCode); in addUri()
/cts/tests/tests/content/lib/accountaccess/src/com.android.cts.content/
DSyncAdapter.java55 public void onPerformSync(Account account, Bundle extras, String authority, in onPerformSync() argument
60 delegate.onPerformSync(account, extras, authority, provider, syncResult); in onPerformSync()
DUtils.java117 public static SyncRequest requestSync(String authority) { in requestSync() argument
123 .setSyncAdapter(null, authority) in requestSync()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/
DTestResultsProvider.java196 final String authority = getContext().getPackageName() + ".testresultsprovider"; in onCreate() local
198 URI_MATCHER.addURI(authority, RESULTS_PATH, RESULTS_ALL); in onCreate()
199 URI_MATCHER.addURI(authority, RESULTS_PATH + "/#", RESULTS_ID); in onCreate()
200 URI_MATCHER.addURI(authority, RESULTS_PATH + "/*", RESULTS_TEST_NAME); in onCreate()
201 URI_MATCHER.addURI(authority, REPORTS_PATH, REPORT); in onCreate()
202 URI_MATCHER.addURI(authority, REPORTS_PATH + "/latest", REPORT_LATEST); in onCreate()
203 URI_MATCHER.addURI(authority, REPORTS_PATH + "/#", REPORT_ROW); in onCreate()
204 URI_MATCHER.addURI(authority, REPORTS_PATH + "/*", REPORT_FILE_NAME); in onCreate()
/cts/tests/tests/netsecpolicy/src/android/security/
DNetworkSecurityPolicyTestBase.java87 Uri uri = Uri.parse(url.toString()).buildUpon().scheme(null).authority(null).build(); in assertCleartextHttpURLConnectionSucceeds()
110 Uri uri = Uri.parse(url.toString()).buildUpon().scheme(null).authority(null).build(); in assertCleartextHttpURLConnectionBlocked()
131 Uri uri = Uri.parse(url.toString()).buildUpon().scheme(null).authority(null).build(); in assertAndroidHttpClientCleartextRequestSucceeds()
148 Uri uri = Uri.parse(url.toString()).buildUpon().scheme(null).authority(null).build(); in assertAndroidHttpClientCleartextRequestBlocked()
174 uri = uri.buildUpon().scheme(null).authority(null).build(); in assertMediaPlayerCleartextRequestSucceeds()
192 uri = uri.buildUpon().scheme(null).authority(null).build(); in assertMediaPlayerCleartextRequestBlocked()
201 uri = uri.buildUpon().scheme(null).authority(null).build(); in testDownloadManager()
/cts/tests/tests/notification/src/android/app/notification/current/cts/
DConditionTest.java41 .authority("authority")
128 Uri uri = new Uri.Builder().authority(pkg).build(); in testIsValidId_noScheme()
135 Uri uri = new Uri.Builder().authority(pkg).scheme(Condition.SCHEME).build(); in testIsValidId_wrongAuthority()
142 Uri uri = new Uri.Builder().authority(pkg).scheme(Condition.SCHEME).build(); in testIsValidId()
/cts/tests/tests/packageinstaller/contentprovider/src/android/packageinstaller/contentprovider/cts/
DContentProviderAppVisibilityTestsBase.kt106 builder.authority(EXPORTED_CONTENT_PROVIDER_AUTH) in getContentSchemeIntent()
109 builder.authority(UNEXPORTED_CONTENT_PROVIDER_AUTH) in getContentSchemeIntent()
112 builder.authority(UNPROTECTED_CONTENT_PROVIDER_AUTH) in getContentSchemeIntent()
/cts/tests/tests/uidmigration/src/android/uidmigration/cts/
DAppIdMigrationTest.kt127 val authority = Const.DATA_TEST_PKG + ".provider" in <lambda>() constant
131 var result = resolver.call(authority, "data", null, null).assertNotNull() in <lambda>()
140 result = resolver.call(authority, "data", null, null).assertNotNull() in <lambda>()
/cts/tests/mediaprovider/src/android/provider/cts/media/
DMediaStoreIntentsTest.java127 .authority("example.com").path("image").build(); in testViewImageFile()
146 .authority("example.com").path("video").build(); in testViewVideoFile()
165 .authority("example.com").path("audio").build(); in testViewAudioFile()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2023-21272/test-app/src/android/security/cts/CVE_2023_21272_test/
DDeviceTest.java68 Object authority = partConstructor.newInstance(testAuthority, testAuthority); in testCVE_2023_21272() local
75 authority, in testCVE_2023_21272()
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
DUtils.java29 builder.authority(getAuthorityWithoutUserId(uri.getAuthority())); in getUriWithoutUserId()
/cts/hostsidetests/backup/SyncAdapterSettingsApp/src/android/cts/backup/syncadaptersettingsapp/
DSyncAdapterSettingsAdapter.java35 public void onPerformSync(Account account, Bundle extras, String authority, in onPerformSync() argument
/cts/tests/devicepolicy/src/android/devicepolicy/cts/
DEnforcingAdminAndAuthorityTest.java117 RoleAuthority authority = new RoleAuthority(ROLES); in roleAuthority_equality_returnsTrue() local
119 assertThat(authority.getRoles()).isEqualTo(ROLES); in roleAuthority_equality_returnsTrue()
/cts/tests/inputmethod/mocka11yime/service/src/com/android/cts/mocka11yime/
DMockA11yImeContentProvider.java88 public Bundle call(String authority, in call() argument
90 if (!MockA11yImeConstants.SETTINGS_PROVIDER_AUTHORITY.equals(authority)) { in call()
/cts/tests/tests/appenumeration/app/target/src/android/appenumeration/testapp/
DMockSyncAdapterService.java48 public void onPerformSync(Account account, Bundle extras, String authority, in onPerformSync() argument

123