Searched refs:authority (Results 1 - 25 of 34) 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 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 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 SyncInfo(int authorityId, Account account, String authority, argument
53 this.authority = authority;
66 parcel.writeString(authority);
74 authority = parcel.readString();
H A DSyncStorageEngine.java137 final String authority; field in class:SyncStorageEngine.PendingOperation
145 String authority, Bundle extras, boolean expedited) {
148 this.authority = authority;
157 this.authority = other.authority;
176 final String authority; field in class:SyncStorageEngine.AuthorityInfo
185 AuthorityInfo(Account account, String authority, int ident) { argument
187 this.authority = authority;
144 PendingOperation(Account account, int source, String authority, Bundle extras, boolean expedited) argument
699 getOrCreateAuthority(Account account, String authority) argument
707 removeAuthority(Account account, String authority) argument
723 isSyncActive(Account account, String authority) argument
1167 getStatusByAccountAndAuthority(Account account, String authority) argument
1189 isSyncPending(Account account, String authority) argument
1352 getOrCreateSyncStatus(AuthorityInfo authority) argument
1591 parsePeriodicSync(XmlPullParser parser, AuthorityInfo authority) argument
[all...]
H A DIContentService.aidl40 void requestSync(in Account account, String authority, in Bundle extras);
41 void cancelSync(in Account account, String authority);
103 * account or authority in the pending list, or actively being processed.
105 boolean isSyncActive(in Account account, String authority);
116 * Returns the status that matches the authority. If there are multiples accounts for
117 * the authority, the one with the latest "lastSuccessTime" status is returned.
118 * @param authority the authority whose row should be selected
119 * @return the SyncStatusInfo for the authority, or null if none exists
121 SyncStatusInfo getSyncStatus(in Account account, String authority);
[all...]
H A DAbstractThreadedSyncAdapter.java53 * android:contentAuthority="authority"
64 * indicate which content authority and for which account types this sync adapter serves.
69 * with an authority whenever that authority's content provider does a
149 public void startSync(ISyncContext syncContext, String authority, Account account, argument
162 if (ContentResolver.getIsSyncable(account, authority) < 0) {
163 ContentResolver.setIsSyncable(account, authority, 1);
170 syncContextClient, authority, account, extras);
207 public void initialize(Account account, String authority) throws RemoteException { argument
210 startSync(null, authority, accoun
226 SyncThread(String name, SyncContext syncContext, String authority, Account account, Bundle extras) argument
291 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 DSyncOperation.java30 public String authority; field in class:SyncOperation
41 public SyncOperation(Account account, int source, String authority, Bundle extras, argument
45 this.authority = authority;
79 this.authority = other.authority;
98 sb.append(", " + authority);
122 sb.append("authority: ").append(authority);
H A DSyncQueue.java52 final Pair<Long, Long> backoff = syncStorageEngine.getBackoff(op.account, op.authority);
55 SyncAdapterType.newKey(op.authority, op.account.type));
60 op.account, op.syncSource, op.authority, op.extras, 0 /* delay */,
62 syncStorageEngine.getDelayUntilTime(op.account, op.authority),
106 operation.authority, operation.extras, operation.expedited);
138 if (op.account.equals(account) && op.authority.equals(providerName)) {
149 if (op.account.equals(account) && op.authority.equals(providerName)) {
156 public void remove(Account account, String authority) { argument
164 if (authority != null && !syncOperation.authority
[all...]
H A DContentResolver.java110 * the given account/authority pair. One required initialization step is to
648 String authority = uri.getAuthority();
650 if (TextUtils.isEmpty(authority)) {
651 throw new FileNotFoundException("No authority: " + uri);
654 r = mContext.getPackageManager().getResourcesForApplication(authority);
656 throw new FileNotFoundException("No package found for authority: " + uri);
672 id = r.getIdentifier(path.get(1), path.get(0), authority);
751 * @param authority the authority of the ContentProvider to which this batch should be applied
759 public ContentProviderResult[] applyBatch(String authority, argument
1110 requestSync(Account account, String authority, Bundle extras) argument
1174 cancelSync(Account account, String authority) argument
1200 getSyncAutomatically(Account account, String authority) argument
1215 setSyncAutomatically(Account account, String authority, boolean sync) argument
1248 addPeriodicSync(Account account, String authority, Bundle extras, long pollFrequency) argument
1282 removePeriodicSync(Account account, String authority, Bundle extras) argument
1304 getPeriodicSyncs(Account account, String authority) argument
1322 getIsSyncable(Account account, String authority) argument
1334 setIsSyncable(Account account, String authority, int syncable) argument
1379 isSyncActive(Account account, String authority) argument
1430 getSyncStatus(Account account, String authority) argument
1444 isSyncPending(Account account, String authority) argument
[all...]
H A DSyncManager.java169 cancelActiveSync(null /* any account */, null /* any authority */);
189 scheduleSync(null /* account */, null /* authority */, new Bundle(), 0 /* delay */,
312 scheduleSync(null, type.authority, null, 0 /* no delay */,
407 private void initializeSyncAdapter(Account account, String authority) { argument
409 Log.v(TAG, "initializeSyncAdapter: " + account + ", authority " + authority);
411 SyncAdapterType syncAdapterType = SyncAdapterType.newKey(authority, account.type);
416 mSyncStorageEngine.removeAuthority(account, authority);
424 new InitializerServiceConnection(account, authority, mContext, mMainHandler),
438 public InitializerServiceConnection(Account account, String authority, Contex argument
655 scheduleLocalSync(Account account, String authority) argument
694 sendCancelSyncsMessage(final Account account, final String authority) argument
793 cancelActiveSync(Account account, String authority) argument
826 clearScheduledSyncOperations(Account account, String authority) argument
1557 getSyncWakeLock(Account account, String authority) argument
2071 cancelActiveSyncLocked(Account account, String authority) argument
2373 installHandleTooManyDeletesNotification(Account account, String authority, long numDeletes) argument
[all...]
H A DContentService.java231 public void requestSync(Account account, String authority, Bundle extras) { argument
239 syncManager.scheduleSync(account, authority, extras, 0 /* no delay */,
249 * if they match the authority and account, if they are present.
251 * @param authority filter the pending and active syncs to cancel using this authority
253 public void cancelSync(Account account, String authority) { argument
260 syncManager.clearScheduledSyncOperations(account, authority);
261 syncManager.cancelActiveSync(account, authority);
315 public void addPeriodicSync(Account account, String authority, Bundle extras, argument
322 account, authority, extra
328 removePeriodicSync(Account account, String authority, Bundle extras) argument
411 isSyncActive(Account account, String authority) argument
438 getSyncStatus(Account account, String authority) argument
454 isSyncPending(Account account, String authority) argument
[all...]
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];
/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/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());
H A DExportTestProvider.java102 final String authority = uri.getAuthority();
103 TestCase.assertTrue(RawContacts.CONTENT_URI.getAuthority().equals(authority));
/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/core/tests/coretests/src/android/content/
H A DSyncStorageEngineTest.java46 final String authority = "testprovider";
55 account, authority, time0, SyncStorageEngine.SOURCE_LOCAL);
67 final String authority = "testprovider";
75 PeriodicSync sync1 = new PeriodicSync(account1, authority, extras1, period1);
76 PeriodicSync sync2 = new PeriodicSync(account1, authority, extras2, period1);
77 PeriodicSync sync3 = new PeriodicSync(account1, authority, extras2, period2);
78 PeriodicSync sync4 = new PeriodicSync(account2, authority, extras2, period2);
85 removePeriodicSyncs(engine, account1, authority);
86 removePeriodicSyncs(engine, account2, authority);
89 engine.addPeriodicSync(sync1.account, sync1.authority, sync
112 removePeriodicSyncs(SyncStorageEngine engine, Account account, String authority) 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...]
/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.java49 .authority("crazybob.org")
142 .authority("crazybob.org")
413 private static void testHierarchical(String scheme, String authority, argument
417 if (authority != null) {
418 sb.append("//").append(authority);
442 uriString, ssp, uri, scheme, authority, path, query, fragment);
444 uriString, ssp, uri, scheme, authority, path, query, fragment);
451 uriString, ssp, uri, scheme, authority, path, query, fragment);
453 uriString, ssp, uri, scheme, authority, path, query, fragment);
461 .encodedAuthority(authority)
495 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.java123 String authority = uri.getAuthority();
125 if (Settings.AUTHORITY.equals(authority)) {
136 if (DrmStore.AUTHORITY.equals(authority)) {
138 } else if (MediaStore.AUTHORITY.equals(authority)) {

Completed in 292 milliseconds

12