Home
last modified time | relevance | path

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

12

/cts/tests/tests/net/src/android/net/cts/
DUriTest.java33 .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 …]
/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/
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)) {
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()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/
DTestResultsProvider.java149 final String authority = getContext().getPackageName() + ".testresultsprovider"; in onCreate() local
151 URI_MATCHER.addURI(authority, RESULTS_PATH, RESULTS_ALL); in onCreate()
152 URI_MATCHER.addURI(authority, RESULTS_PATH + "/#", RESULTS_ID); in onCreate()
153 URI_MATCHER.addURI(authority, RESULTS_PATH + "/*", RESULTS_TEST_NAME); in onCreate()
154 URI_MATCHER.addURI(authority, REPORTS_PATH, REPORT); in onCreate()
155 URI_MATCHER.addURI(authority, REPORTS_PATH + "/latest", REPORT_LATEST); in onCreate()
156 URI_MATCHER.addURI(authority, REPORTS_PATH + "/#", REPORT_ROW); in onCreate()
157 URI_MATCHER.addURI(authority, REPORTS_PATH + "/*", REPORT_FILE_NAME); in onCreate()
/cts/tests/app/src/android/app/cts/
DConditionTest.java27 .authority("authority")
89 Uri uri = new Uri.Builder().authority(pkg).build(); in testIsValidId_noScheme()
95 Uri uri = new Uri.Builder().authority(pkg).scheme(Condition.SCHEME).build(); in testIsValidId_wrongAuthority()
101 Uri uri = new Uri.Builder().authority(pkg).scheme(Condition.SCHEME).build(); in testIsValidId()
DAutomaticZenRuleTest.java34 .authority("authority")
78 .authority("authority2") in testSetConditionId()
/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/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/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/tests/tests/provider/src/android/provider/cts/
DMediaStoreIntentsTest.java124 .authority("example.com").path("image").build(); in testViewImageFile()
143 .authority("example.com").path("video").build(); in testViewVideoFile()
162 .authority("example.com").path("audio").build(); in testViewAudioFile()
DSearchRecentSuggestionsTest.java187 public MySearchRecentSuggestions(Context context, String authority, int mode) { in MySearchRecentSuggestions() argument
188 super(context, authority, mode); in MySearchRecentSuggestions()
/cts/tests/tests/syncmanager/src/android/content/syncmanager/cts/
DCtsSyncManagerTest.java162 private void addAccountAndLetInitialSyncRun(Account account, String authority) in addAccountAndLetInitialSyncRun() argument
169 () -> ContentResolver.getIsSyncable(account, authority) == 1); in addAccountAndLetInitialSyncRun()
172 () -> ContentResolver.getPeriodicSyncs(account, authority).size() == 1); in addAccountAndLetInitialSyncRun()
174 24 * 60 * 60, ContentResolver.getPeriodicSyncs(account, authority).get(0).period); in addAccountAndLetInitialSyncRun()
/cts/tests/tests/content/src/android/content/pm/cts/
DProviderInfoTest.java90 assertEquals(expected.authority, actual.authority); in checkInfoSame()
/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/hostsidetests/statsd/apps/statsdapp/src/com/android/server/cts/device/statsd/
DStatsdSyncAdapter.java53 public void onPerformSync(Account account, Bundle extras, String authority, in onPerformSync() argument
/cts/tests/inputmethod/mockime/src/com/android/cts/mockime/
DSettingsProvider.java70 public Bundle call(String authority, String method, String arg, Bundle extras) { in call() argument
/cts/tests/tests/syncmanager/common/proto/
Dsync_manager_cts.proto27 optional string authority = 4; field
/cts/hostsidetests/incident/apps/batterystatsapp/src/com/android/server/cts/device/batterystats/
DBatteryStatsSyncAdapter.java54 public void onPerformSync(Account account, Bundle extras, String authority, in onPerformSync() argument
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
DByodProvisioningTestActivity.java113 .authority(getPackageName()) in getResourceUri()

12