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

12

/frameworks/base/core/java/android/content/
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 DISyncAdapter.aidl34 * @param authority the authority that should be synced
38 void startSync(ISyncContext syncContext, String authority,
49 * Initialize the SyncAdapter for this account and authority.
52 * @param authority the authority that should be synced
54 void initialize(in Account account, String 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 public SyncInfo(int authorityId, Account account, String authority, argument
53 this.authority = authority;
66 parcel.writeString(authority);
74 authority = parcel.readString();
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 DIContentService.aidl56 void requestSync(in Account account, String authority, in Bundle extras);
57 void cancelSync(in Account account, String authority);
119 * account or authority in the pending list, or actively being processed.
121 boolean isSyncActive(in Account account, String authority);
132 * Returns the status that matches the authority. If there are multiples accounts for
133 * the authority, the one with the latest "lastSuccessTime" status is returned.
134 * @param authority the authority whose row should be selected
135 * @return the SyncStatusInfo for the authority, or null if none exists
137 SyncStatusInfo getSyncStatus(in Account account, String 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 DSyncAdaptersCache.java51 final String authority =
55 if (authority == null || accountType == null) {
72 return new SyncAdapterType(authority, accountType, userVisible, supportsUploading,
81 out.attribute(null, "authority", item.authority);
87 final String authority = parser.getAttributeValue(null, "authority");
89 return SyncAdapterType.newKey(authority, accountType);
H A DContentResolver.java113 * the given account/authority pair. One required initialization step is to
832 String authority = uri.getAuthority();
834 if (TextUtils.isEmpty(authority)) {
835 throw new FileNotFoundException("No authority: " + uri);
838 r = mContext.getPackageManager().getResourcesForApplication(authority);
840 throw new FileNotFoundException("No package found for authority: " + uri);
856 id = r.getIdentifier(path.get(1), path.get(0), authority);
935 * @param authority the authority of the ContentProvider to which this batch should be applied
943 public ContentProviderResult[] applyBatch(String authority, argument
1401 requestSync(Account account, String authority, Bundle extras) argument
1465 cancelSync(Account account, String authority) argument
1493 getSyncAutomatically(Account account, String authority) argument
1510 setSyncAutomatically(Account account, String authority, boolean sync) argument
1546 addPeriodicSync(Account account, String authority, Bundle extras, long pollFrequency) argument
1582 removePeriodicSync(Account account, String authority, Bundle extras) argument
1606 getPeriodicSyncs(Account account, String authority) argument
1626 getIsSyncable(Account account, String authority) argument
1640 setIsSyncable(Account account, String authority, int syncable) argument
1691 isSyncActive(Account account, String authority) argument
1749 getSyncStatus(Account account, String authority) argument
1765 isSyncPending(Account account, String authority) argument
[all...]
/frameworks/base/services/java/com/android/server/content/
H A DSyncStorageEngine.java154 final String authority; field in class:SyncStorageEngine.PendingOperation
162 String authority, Bundle extras, boolean expedited) {
167 this.authority = authority;
178 this.authority = other.authority;
198 final String authority; field in class:SyncStorageEngine.AuthorityInfo
216 authority = toCopy.authority;
230 AuthorityInfo(Account account, int userId, String authority, in argument
161 PendingOperation(Account account, int userId, int reason,int source, String authority, Bundle extras, boolean expedited) argument
280 onSyncRequest(Account account, int userId, int reason, String authority, Bundle extras) argument
816 getOrCreateAuthority(Account account, int userId, String authority) argument
824 removeAuthority(Account account, int userId, String authority) argument
840 isSyncActive(Account account, int userId, String authority) argument
1264 getStatusByAccountAndAuthority(Account account, int userId, String authority) argument
1288 isSyncPending(Account account, int userId, String authority) argument
1430 getOrCreateSyncStatus(AuthorityInfo authority) argument
1699 parsePeriodicSync(XmlPullParser parser, AuthorityInfo authority) argument
2208 requestSync(Account account, int userId, int reason, String authority, Bundle extras) argument
[all...]
H A DSyncQueue.java66 op.account, op.userId, op.authority);
68 SyncAdapterType.newKey(op.authority, op.account.type), op.userId);
70 Log.w(TAG, "Missing sync adapter info for authority " + op.authority + ", userId "
75 op.account, op.userId, op.reason, op.syncSource, op.authority, op.extras,
77 mSyncStorageEngine.getDelayUntilTime(op.account, op.userId, op.authority),
121 operation.authority, operation.extras, operation.expedited);
166 if (op.account.equals(account) && op.authority.equals(providerName)
178 if (op.account.equals(account) && op.authority.equals(providerName)) {
185 public void remove(Account account, int userId, String authority) { argument
[all...]
H A DSyncManager.java202 null /* any authority */);
224 null /* authority */,
375 public void onSyncRequest(Account account, int userId, int reason, String authority,
377 scheduleSync(account, userId, reason, authority, extras, 0, false);
395 type.authority, null, 0 /* no delay */,
565 * @param requestedAuthority the authority to sync, may be null to indicate all authorities
626 // For each authority sync each account that matches a sync adapter.
630 syncableAuthorities.add(syncAdapter.type.authority);
634 // with just this authority or clear it if this authority is
722 scheduleLocalSync(Account account, int userId, int reason, String authority) argument
761 sendCancelSyncsMessage(final Account account, final int userId, final String authority) argument
865 cancelActiveSync(Account account, int userId, String authority) argument
898 clearScheduledSyncOperations(Account account, int userId, String authority) argument
1762 getSyncWakeLock(Account account, String authority) argument
2351 cancelActiveSyncLocked(Account account, int userId, String authority) argument
2663 installHandleTooManyDeletesNotification(Account account, String authority, long numDeletes, int userId) argument
[all...]
H A DSyncOperation.java54 public String authority; field in class:SyncOperation
65 public SyncOperation(Account account, int userId, int reason, int source, String authority, argument
72 this.authority = authority;
108 this.authority = other.authority;
131 .append(authority)
187 sb.append("authority: ").append(authority);
H A DContentService.java310 public void requestSync(Account account, String authority, Bundle extras) { argument
321 syncManager.scheduleSync(account, userId, uId, authority, extras, 0 /* no delay */,
331 * if they match the authority and account, if they are present.
333 * @param authority filter the pending and active syncs to cancel using this authority
335 public void cancelSync(Account account, String authority) { argument
344 syncManager.clearScheduledSyncOperations(account, userId, authority);
345 syncManager.cancelActiveSync(account, userId, authority);
404 public void addPeriodicSync(Account account, String authority, Bundle extras, argument
419 account, userId, authority, extra
425 removePeriodicSync(Account account, String authority, Bundle extras) argument
521 isSyncActive(Account account, String authority) argument
552 getSyncStatus(Account account, String authority) argument
570 isSyncPending(Account account, String authority) argument
[all...]
/frameworks/ex/common/java/com/android/common/
H A DSearch.java83 String authority = searchable.getSuggestAuthority();
84 if (authority == null) {
90 .authority(authority)
/frameworks/base/core/java/android/content/pm/
H A DProviderInfo.java33 public String authority = null; field in class:ProviderInfo
104 authority = orig.authority;
122 out.writeString(authority);
146 return "ContentProviderInfo{name=" + authority + " className=" + name + "}";
151 authority = in.readString();
/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/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/base/services/tests/servicestests/src/com/android/server/content/
H A DSyncStorageEngineTest.java55 final String authority = "testprovider";
64 account, 0, SyncOperation.REASON_PERIODIC, authority, time0,
77 final String authority = "testprovider";
85 PeriodicSync sync1 = new PeriodicSync(account1, authority, extras1, period1);
86 PeriodicSync sync2 = new PeriodicSync(account1, authority, extras2, period1);
87 PeriodicSync sync3 = new PeriodicSync(account1, authority, extras2, period2);
88 PeriodicSync sync4 = new PeriodicSync(account2, authority, extras2, period2);
95 removePeriodicSyncs(engine, account1, 0, authority);
96 removePeriodicSyncs(engine, account2, 0, authority);
97 removePeriodicSyncs(engine, account1, 1, authority);
129 removePeriodicSyncs(SyncStorageEngine engine, Account account, int userId, String authority) argument
[all...]
/frameworks/base/core/java/android/net/
H A DUri.java99 ambiguous in terms of differentiating between an authority component
103 matching. In other words, the authority component wins."
106 <scheme>://<authority><path>?<query>
200 * Gets the decoded authority part of this URI. For
201 * server addresses, the authority is structured as follows:
206 * @return the authority for this URI or null if not present
211 * Gets the encoded authority part of this URI. For
212 * server addresses, the authority is structured as follows:
217 * @return the authority for this URI or null if not present
222 * Gets the decoded user information from the authority
566 private Part authority; field in class:Uri.StringUri
1137 private final Part authority; field in class:Uri.HierarchicalUri
1142 HierarchicalUri(String scheme, Part authority, PathPart path, Part query, Part fragment) argument
1319 private Part authority; field in class:Uri.Builder
1362 authority(Part authority) argument
1373 authority(String authority) argument
1380 encodedAuthority(String authority) argument
[all...]
/frameworks/support/v4/java/android/support/v4/content/
H A DFileProvider.java113 mStrategy = getPathStrategy(context, info.authority);
124 * @param authority The authority of a {@link FileProvider} defined as a
129 public static Uri getUriForFile(Context context, String authority, File file) { argument
130 final PathStrategy strategy = getPathStrategy(context, authority);
208 * Return {@link PathStrategy} for given authority, either by parsing or
211 private static PathStrategy getPathStrategy(Context context, String authority) { argument
214 strat = sCache.get(authority);
217 strat = parsePathStrategy(context, authority);
225 sCache.put(authority, stra
237 parsePathStrategy(Context context, String authority) argument
317 SimplePathStrategy(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/media/java/android/media/
H A DRingtone.java121 String authority = uri.getAuthority();
123 if (Settings.AUTHORITY.equals(authority)) {
134 if (DrmStore.AUTHORITY.equals(authority)) {
136 } else if (MediaStore.AUTHORITY.equals(authority)) {

Completed in 547 milliseconds

12