Searched defs:authority (Results 1 - 21 of 21) sorted by relevance

/frameworks/base/core/java/android/content/
H A DPeriodicSync.java31 /** The authority of the sync */
32 public final String authority; field in class:PeriodicSync
39 public PeriodicSync(Account account, String authority, Bundle extras, long period) { argument
41 this.authority = authority;
52 dest.writeString(authority);
80 && authority.equals(other.authority)
H A DSyncInfo.java37 * The authority of the provider that is currently being synced.
39 public final String authority; field in class:SyncInfo
49 SyncInfo(int authorityId, Account account, String authority, argument
53 this.authority = authority;
66 parcel.writeString(authority);
74 authority = parcel.readString();
H A DUriMatcher.java147 * @param authority the authority to match
153 public void addURI(String authority, String path, int code) argument
162 String token = i < 0 ? authority : tokens[i];
H A DSyncAdapterType.java28 public final String authority; field in class:SyncAdapterType
37 public SyncAdapterType(String authority, String accountType, boolean userVisible, argument
39 if (TextUtils.isEmpty(authority)) {
40 throw new IllegalArgumentException("the authority must not be empty: " + authority);
45 this.authority = authority;
56 public SyncAdapterType(String authority, String accountType, boolean userVisible, argument
61 if (TextUtils.isEmpty(authority)) {
62 throw new IllegalArgumentException("the authority mus
77 SyncAdapterType(String authority, String accountType) argument
151 newKey(String authority, String accountType) argument
[all...]
H A DSyncQueue.java53 syncStorageEngine.getBackoff(op.account, op.userId, op.authority);
56 SyncAdapterType.newKey(op.authority, op.account.type));
61 op.account, op.userId, op.syncSource, op.authority, op.extras, 0 /* delay */,
63 syncStorageEngine.getDelayUntilTime(op.account, op.userId, op.authority),
107 operation.authority, operation.extras, operation.expedited);
152 if (op.account.equals(account) && op.authority.equals(providerName)
164 if (op.account.equals(account) && op.authority.equals(providerName)) {
171 public void remove(Account account, int userId, String authority) { argument
179 if (authority != null && !syncOperation.authority
[all...]
H A DAbstractThreadedSyncAdapter.java54 * android:contentAuthority="authority"
65 * indicate which content authority and for which account types this sync adapter serves.
70 * with an authority whenever that authority's content provider does a
150 public void startSync(ISyncContext syncContext, String authority, Account account, argument
163 if (ContentResolver.getIsSyncable(account, authority) < 0) {
164 ContentResolver.setIsSyncable(account, authority, 1);
171 syncContextClient, authority, account, extras);
208 public void initialize(Account account, String authority) throws RemoteException { argument
211 startSync(null, authority, accoun
227 SyncThread(String name, SyncContext syncContext, String authority, Account account, Bundle extras) argument
300 onPerformSync(Account account, Bundle extras, String authority, ContentProviderClient provider, SyncResult syncResult) argument
[all...]
H A DSyncOperation.java31 public String authority; field in class:SyncOperation
42 public SyncOperation(Account account, int userId, int source, String authority, Bundle extras, argument
47 this.authority = authority;
82 this.authority = other.authority;
101 sb.append(", " + authority);
129 sb.append("authority: ").append(authority);
H A DSearchRecentSuggestionsProvider.java48 * android:authorities="your.suggestion.authority" /&gt;</pre>
57 * android:searchSuggestAuthority="your.suggestion.authority"
165 * @param authority This must match the authority that you've declared in your manifest.
173 protected void setupSuggestions(String authority, int mode) { argument
174 if (TextUtils.isEmpty(authority) ||
182 mAuthority = new String(authority);
H A DContentService.java234 public void requestSync(Account account, String authority, Bundle extras) { argument
244 syncManager.scheduleSync(account, userId, authority, extras, 0 /* no delay */,
254 * if they match the authority and account, if they are present.
256 * @param authority filter the pending and active syncs to cancel using this authority
258 public void cancelSync(Account account, String authority) { argument
267 syncManager.clearScheduledSyncOperations(account, userId, authority);
268 syncManager.cancelActiveSync(account, userId, authority);
326 public void addPeriodicSync(Account account, String authority, Bundle extras, argument
335 account, userId, authority, extra
341 removePeriodicSync(Account account, String authority, Bundle extras) argument
437 isSyncActive(Account account, String authority) argument
468 getSyncStatus(Account account, String authority) argument
486 isSyncPending(Account account, String authority) argument
[all...]
H A DContentResolver.java111 * the given account/authority pair. One required initialization step is to
782 String authority = uri.getAuthority();
784 if (TextUtils.isEmpty(authority)) {
785 throw new FileNotFoundException("No authority: " + uri);
788 r = mContext.getPackageManager().getResourcesForApplication(authority);
790 throw new FileNotFoundException("No package found for authority: " + uri);
806 id = r.getIdentifier(path.get(1), path.get(0), authority);
885 * @param authority the authority of the ContentProvider to which this batch should be applied
893 public ContentProviderResult[] applyBatch(String authority, argument
1333 requestSync(Account account, String authority, Bundle extras) argument
1397 cancelSync(Account account, String authority) argument
1425 getSyncAutomatically(Account account, String authority) argument
1442 setSyncAutomatically(Account account, String authority, boolean sync) argument
1478 addPeriodicSync(Account account, String authority, Bundle extras, long pollFrequency) argument
1514 removePeriodicSync(Account account, String authority, Bundle extras) argument
1538 getPeriodicSyncs(Account account, String authority) argument
1558 getIsSyncable(Account account, String authority) argument
1572 setIsSyncable(Account account, String authority, int syncable) argument
1623 isSyncActive(Account account, String authority) argument
1681 getSyncStatus(Account account, String authority) argument
1697 isSyncPending(Account account, String authority) argument
[all...]
H A DSyncManager.java177 null /* any authority */);
197 scheduleSync(null /* account */, UserId.USER_ALL, null /* authority */,
352 public void onSyncRequest(Account account, int userId, String authority,
354 scheduleSync(account, userId, authority, extras, 0, false);
369 scheduleSync(null, UserId.USER_ALL, type.authority, null, 0 /* no delay */,
493 * @param requestedAuthority the authority to sync, may be null to indicate all authorities
552 // For each authority sync each account that matches a sync adapter.
556 syncableAuthorities.add(syncAdapter.type.authority);
559 // if the url was specified then replace the list of authorities with just this authority
560 // or clear it if this authority is
646 scheduleLocalSync(Account account, int userId, String authority) argument
686 sendCancelSyncsMessage(final Account account, final int userId, final String authority) argument
790 cancelActiveSync(Account account, int userId, String authority) argument
823 clearScheduledSyncOperations(Account account, int userId, String authority) argument
1596 getSyncWakeLock(Account account, String authority) argument
2160 cancelActiveSyncLocked(Account account, int userId, String authority) argument
2468 installHandleTooManyDeletesNotification(Account account, String authority, long numDeletes) argument
[all...]
H A DSyncStorageEngine.java149 final String authority; field in class:SyncStorageEngine.PendingOperation
157 String authority, Bundle extras, boolean expedited) {
161 this.authority = authority;
171 this.authority = other.authority;
191 final String authority; field in class:SyncStorageEngine.AuthorityInfo
209 authority = toCopy.authority;
223 AuthorityInfo(Account account, int userId, String authority, in argument
156 PendingOperation(Account account, int userId, int source, String authority, Bundle extras, boolean expedited) argument
270 onSyncRequest(Account account, int userId, String authority, Bundle extras) argument
788 getOrCreateAuthority(Account account, int userId, String authority) argument
796 removeAuthority(Account account, int userId, String authority) argument
812 isSyncActive(Account account, int userId, String authority) argument
1252 getStatusByAccountAndAuthority(Account account, int userId, String authority) argument
1276 isSyncPending(Account account, int userId, String authority) argument
1418 getOrCreateSyncStatus(AuthorityInfo authority) argument
1687 parsePeriodicSync(XmlPullParser parser, AuthorityInfo authority) argument
2193 requestSync(Account account, int userId, String authority, Bundle extras) argument
[all...]
/frameworks/base/test-runner/src/android/test/
H A DSyncBaseInstrumentation.java47 protected void syncProvider(Uri uri, String accountName, String authority) throws Exception { argument
52 ContentResolver.requestSync(account, authority, extras);
67 if (ContentResolver.isSyncActive(account, authority)) {
H A DProviderTestCase.java97 Context targetContext, Class<T> providerClass, String authority,
112 resolver.addProvider(authority, provider);
96 newResolverWithContentProviderFromSql( Context targetContext, Class<T> providerClass, String authority, String databaseName, int databaseVersion, String sql) argument
H A DProviderTestCase2.java35 * given an authority. This allows you to inject test providers and to null out
100 * @param providerAuthority The provider's authority string
181 * with an authority name set to the authority parameter, and using an SQLite database as
198 * @param authority The authority string to associated with the test provider
210 Context targetContext, String filenamePrefix, Class<T> providerClass, String authority,
223 resolver.addProvider(authority, provider);
209 newResolverWithContentProviderFromSql( Context targetContext, String filenamePrefix, Class<T> providerClass, String authority, String databaseName, int databaseVersion, String sql) argument
/frameworks/opt/vcard/tests/src/com/android/vcard/tests/testutils/
H A DImportTestResolver.java35 public ContentProviderResult[] applyBatch(String authority, argument
37 equalsString(authority, RawContacts.CONTENT_URI.toString());
/frameworks/base/core/java/android/content/pm/
H A DProviderInfo.java33 public String authority = null; field in class:ProviderInfo
90 authority = orig.authority;
107 out.writeString(authority);
130 return "ContentProviderInfo{name=" + authority + " className=" + name
136 authority = in.readString();
/frameworks/base/core/tests/coretests/src/android/content/
H A DSyncStorageEngineTest.java50 final String authority = "testprovider";
59 account, 0, authority, time0, SyncStorageEngine.SOURCE_LOCAL,
72 final String authority = "testprovider";
80 PeriodicSync sync1 = new PeriodicSync(account1, authority, extras1, period1);
81 PeriodicSync sync2 = new PeriodicSync(account1, authority, extras2, period1);
82 PeriodicSync sync3 = new PeriodicSync(account1, authority, extras2, period2);
83 PeriodicSync sync4 = new PeriodicSync(account2, authority, extras2, period2);
90 removePeriodicSyncs(engine, account1, 0, authority);
91 removePeriodicSyncs(engine, account2, 0, authority);
92 removePeriodicSyncs(engine, account1, 1, authority);
124 removePeriodicSyncs(SyncStorageEngine engine, Account account, int userId, String authority) argument
[all...]
/frameworks/base/core/java/android/provider/
H A DSearchRecentSuggestions.java123 * @param authority This must match the authority that you've declared in your manifest.
131 public SearchRecentSuggestions(Context context, String authority, int mode) { argument
132 if (TextUtils.isEmpty(authority) ||
141 mAuthority = new String(authority);
/frameworks/base/core/tests/coretests/src/android/net/
H A DUriTest.java47 .authority("crazybob.org")
140 .authority("crazybob.org")
411 private static void testHierarchical(String scheme, String authority, argument
415 if (authority != null) {
416 sb.append("//").append(authority);
440 uriString, ssp, uri, scheme, authority, path, query, fragment);
442 uriString, ssp, uri, scheme, authority, path, query, fragment);
449 uriString, ssp, uri, scheme, authority, path, query, fragment);
451 uriString, ssp, uri, scheme, authority, path, query, fragment);
459 .encodedAuthority(authority)
493 compareHierarchical(String uriString, String ssp, Uri uri, String scheme, String authority, String path, String query, String fragment) argument
[all...]
/frameworks/base/core/java/android/net/
H A DUri.java95 ambiguous in terms of differentiating between an authority component
99 matching. In other words, the authority component wins."
102 <scheme>://<authority><path>?<query>
196 * Gets the decoded authority part of this URI. For
197 * server addresses, the authority is structured as follows:
202 * @return the authority for this URI or null if not present
207 * Gets the encoded authority part of this URI. For
208 * server addresses, the authority is structured as follows:
213 * @return the authority for this URI or null if not present
218 * Gets the decoded user information from the authority
562 private Part authority; field in class:Uri.StringUri
1133 private final Part authority; field in class:Uri.HierarchicalUri
1138 HierarchicalUri(String scheme, Part authority, PathPart path, Part query, Part fragment) argument
1315 private Part authority; field in class:Uri.Builder
1358 authority(Part authority) argument
1369 authority(String authority) argument
1376 encodedAuthority(String authority) argument
[all...]

Completed in 489 milliseconds