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
34 public SyncAdapterType(String authority, String accountType, boolean userVisible, argument
36 if (TextUtils.isEmpty(authority)) {
37 throw new IllegalArgumentException("the authority must not be empty: " + authority);
42 this.authority = authority;
49 private SyncAdapterType(String authority, String accountType) { argument
50 if (TextUtils.isEmpty(authority)) {
51 throw new IllegalArgumentException("the authority mus
79 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.java36 * The authority of the provider that is currently being synced.
38 public final String authority; field in class:SyncInfo
48 SyncInfo(int authorityId, Account account, String authority, argument
52 this.authority = authority;
65 parcel.writeString(authority);
73 authority = parcel.readString();
H A DSyncAdaptersCache.java51 final String authority =
55 if (authority == null || accountType == null) {
63 return new SyncAdapterType(authority, accountType, userVisible, supportsUploading);
71 out.attribute(null, "authority", item.authority);
77 final String authority = parser.getAttributeValue(null, "authority");
79 return SyncAdapterType.newKey(authority, accountType);
H A DSyncOperation.java30 public String authority; field in class:SyncOperation
37 public SyncOperation(Account account, int source, String authority, Bundle extras, argument
41 this.authority = authority;
71 this.authority = other.authority;
80 sb.append("authority: ").append(authority);
92 sb.append("authority: ").append(authority);
[all...]
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
669 getOrCreateAuthority(Account account, String authority) argument
677 removeAuthority(Account account, String authority) argument
693 isSyncActive(Account account, String authority) argument
1142 getStatusByAccountAndAuthority(Account account, String authority) argument
1164 isSyncPending(Account account, String authority) argument
1327 getOrCreateSyncStatus(AuthorityInfo authority) argument
1566 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.java76 public void startSync(ISyncContext syncContext, String authority, Account account, argument
88 if (ContentResolver.getIsSyncable(account, authority) < 0) {
89 ContentResolver.setIsSyncable(account, authority, 1);
96 syncContextClient, authority, account, extras);
124 public void initialize(Account account, String authority) throws RemoteException { argument
127 startSync(null, authority, account, extras);
142 private SyncThread(String name, SyncContext syncContext, String authority, argument
146 mAuthority = authority;
202 * @param authority the authority o
207 onPerformSync(Account account, Bundle extras, String authority, ContentProviderClient provider, SyncResult syncResult) argument
[all...]
H A DSyncManager.java170 cancelActiveSync(null /* any account */, null /* any authority */);
190 scheduleSync(null /* account */, null /* authority */, new Bundle(), 0 /* delay */,
323 scheduleSync(null, type.authority, null, 0 /* no delay */,
411 private void initializeSyncAdapter(Account account, String authority) { argument
413 Log.v(TAG, "initializeSyncAdapter: " + account + ", authority " + authority);
415 SyncAdapterType syncAdapterType = SyncAdapterType.newKey(authority, account.type);
420 mSyncStorageEngine.removeAuthority(account, authority);
427 if (!mContext.bindService(intent, new InitializerServiceConnection(account, authority, mContext,
441 public InitializerServiceConnection(Account account, String authority, Contex argument
628 scheduleLocalSync(Account account, String authority) argument
732 cancelActiveSync(Account account, String authority) argument
797 clearScheduledSyncOperations(Account account, String authority) argument
1340 public String authority; field in class:SyncManager.SyncHandler.SyncNotificationInfo
2016 installHandleTooManyDeletesNotification(Account account, String authority, long numDeletes) argument
[all...]
H A DSyncQueue.java51 op.account, op.syncSource, op.authority, op.extras, 0 /* delay */);
94 operation.authority, operation.extras, operation.expedited);
137 Pair<Long, Long> backoff = mSyncStorageEngine.getBackoff(op.account, op.authority);
138 long delayUntil = mSyncStorageEngine.getDelayUntilTime(op.account, op.authority);
148 && mSyncStorageEngine.getIsSyncable(op.account, op.authority) < 0;
183 public void remove(Account account, String authority) { argument
191 if (authority != null && !syncOperation.authority.equals(authority)) {
H A DContentResolver.java99 * the given account/authority pair. One required initialization step is to
505 String authority = uri.getAuthority();
507 if (TextUtils.isEmpty(authority)) {
508 throw new FileNotFoundException("No authority: " + uri);
511 r = mContext.getPackageManager().getResourcesForApplication(authority);
513 throw new FileNotFoundException("No package found for authority: " + uri);
529 id = r.getIdentifier(path.get(1), path.get(0), authority);
606 * @param authority the authority of the ContentProvider to which this batch should be applied
614 public ContentProviderResult[] applyBatch(String authority, argument
905 requestSync(Account account, String authority, Bundle extras) argument
969 cancelSync(Account account, String authority) argument
995 getSyncAutomatically(Account account, String authority) argument
1010 setSyncAutomatically(Account account, String authority, boolean sync) argument
1043 addPeriodicSync(Account account, String authority, Bundle extras, long pollFrequency) argument
1077 removePeriodicSync(Account account, String authority, Bundle extras) argument
1099 getPeriodicSyncs(Account account, String authority) argument
1117 getIsSyncable(Account account, String authority) argument
1129 setIsSyncable(Account account, String authority, int syncable) argument
1174 isSyncActive(Account account, String authority) argument
1201 getSyncStatus(Account account, String authority) argument
1215 isSyncPending(Account account, String authority) argument
[all...]
H A DContentService.java193 public void requestSync(Account account, String authority, Bundle extras) { argument
201 syncManager.scheduleSync(account, authority, extras, 0 /* no delay */,
211 * if they match the authority and account, if they are present.
213 * @param authority filter the pending and active syncs to cancel using this authority
215 public void cancelSync(Account account, String authority) { argument
222 syncManager.clearScheduledSyncOperations(account, authority);
223 syncManager.cancelActiveSync(account, authority);
277 public void addPeriodicSync(Account account, String authority, Bundle extras, argument
284 account, authority, extra
290 removePeriodicSync(Account account, String authority, Bundle extras) argument
373 isSyncActive(Account account, String authority) argument
404 getSyncStatus(Account account, String authority) argument
420 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/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.java85 Context targetContext, Class<T> providerClass, String authority,
100 resolver.addProvider(authority, provider);
84 newResolverWithContentProviderFromSql( Context targetContext, Class<T> providerClass, String authority, String databaseName, int databaseVersion, String sql) argument
H A DProviderTestCase2.java104 Context targetContext, String filenamePrefix, Class<T> providerClass, String authority,
117 resolver.addProvider(authority, provider);
103 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.java43 final String authority = "testprovider";
52 account, authority, time0, SyncStorageEngine.SOURCE_LOCAL);
64 final String authority = "testprovider";
72 PeriodicSync sync1 = new PeriodicSync(account1, authority, extras1, period1);
73 PeriodicSync sync2 = new PeriodicSync(account1, authority, extras2, period1);
74 PeriodicSync sync3 = new PeriodicSync(account1, authority, extras2, period2);
75 PeriodicSync sync4 = new PeriodicSync(account2, authority, extras2, period2);
82 removePeriodicSyncs(engine, account1, authority);
83 removePeriodicSyncs(engine, account2, authority);
86 engine.addPeriodicSync(sync1.account, sync1.authority, sync
109 removePeriodicSyncs(SyncStorageEngine engine, Account account, String authority) argument
[all...]
/frameworks/base/core/java/android/net/
H A DUri.java93 ambiguous in terms of differentiating between an authority component
97 matching. In other words, the authority component wins."
100 <scheme>://<authority><path>?<query>
194 * Gets the decoded authority part of this URI. For
195 * server addresses, the authority is structured as follows:
200 * @return the authority for this URI or null if not present
205 * Gets the encoded authority part of this URI. For
206 * server addresses, the authority is structured as follows:
211 * @return the authority for this URI or null if not present
216 * Gets the decoded user information from the authority
518 private Part authority; field in class:Uri.StringUri
1089 private final Part authority; field in class:Uri.HierarchicalUri
1094 HierarchicalUri(String scheme, Part authority, PathPart path, Part query, Part fragment) argument
1269 private Part authority; field in class:Uri.Builder
1312 authority(Part authority) argument
1323 authority(String authority) argument
1330 encodedAuthority(String authority) argument
[all...]
/frameworks/base/core/tests/coretests/src/android/net/
H A DUriTest.java46 .authority("crazybob.org")
139 .authority("crazybob.org")
402 private static void testHierarchical(String scheme, String authority, argument
406 if (authority != null) {
407 sb.append("//").append(authority);
431 uriString, ssp, uri, scheme, authority, path, query, fragment);
433 uriString, ssp, uri, scheme, authority, path, query, fragment);
440 uriString, ssp, uri, scheme, authority, path, query, fragment);
442 uriString, ssp, uri, scheme, authority, path, query, fragment);
450 .encodedAuthority(authority)
484 compareHierarchical(String uriString, String ssp, Uri uri, String scheme, String authority, String path, String query, String fragment) argument
[all...]
/frameworks/base/core/java/android/provider/
H A DSearchRecentSuggestions.java119 * @param authority This must match the authority that you've declared in your manifest.
127 public SearchRecentSuggestions(Context context, String authority, int mode) { argument
128 if (TextUtils.isEmpty(authority) ||
137 mAuthority = new String(authority);
/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)) {
/frameworks/base/core/java/android/app/
H A DSearchManager.java731 String authority = searchable.getSuggestAuthority();
732 if (authority == null) {
738 .authority(authority)
/frameworks/base/core/tests/coretests/src/android/pim/vcard/
H A DExportTestResolver.java139 final String authority = uri.getAuthority();
140 mTestCase.assertTrue(RawContacts.CONTENT_URI.getAuthority().equals(authority));

Completed in 260 milliseconds

12