/frameworks/base/core/java/android/content/ |
H A D | PeriodicSync.java | 31 /** 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 D | SyncInfo.java | 37 * 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 D | UriMatcher.java | 147 * @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 D | SyncAdapterType.java | 28 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 D | SyncQueue.java | 61 op.account, op.userId, op.authority); 63 SyncAdapterType.newKey(op.authority, op.account.type), op.userId); 65 Log.w(TAG, "Missing sync adapter info for authority " + op.authority + ", userId " 70 op.account, op.userId, op.syncSource, op.authority, op.extras, 0 /* delay */, 72 mSyncStorageEngine.getDelayUntilTime(op.account, op.userId, op.authority), 116 operation.authority, operation.extras, operation.expedited); 161 if (op.account.equals(account) && op.authority.equals(providerName) 173 if (op.account.equals(account) && op.authority.equals(providerName)) { 180 public void remove(Account account, int userId, String authority) { argument [all...] |
H A D | AbstractThreadedSyncAdapter.java | 54 * 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 D | SyncOperation.java | 31 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; 105 .append(authority) 134 sb.append("authority: ").append(authority);
|
H A D | SearchRecentSuggestionsProvider.java | 48 * android:authorities="your.suggestion.authority" /></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 D | ContentService.java | 300 public void requestSync(Account account, String authority, Bundle extras) { argument 310 syncManager.scheduleSync(account, userId, authority, extras, 0 /* no delay */, 320 * if they match the authority and account, if they are present. 322 * @param authority filter the pending and active syncs to cancel using this authority 324 public void cancelSync(Account account, String authority) { argument 333 syncManager.clearScheduledSyncOperations(account, userId, authority); 334 syncManager.cancelActiveSync(account, userId, authority); 393 public void addPeriodicSync(Account account, String authority, Bundle extras, argument 402 account, userId, authority, extra 408 removePeriodicSync(Account account, String authority, Bundle extras) argument 504 isSyncActive(Account account, String authority) argument 535 getSyncStatus(Account account, String authority) argument 553 isSyncPending(Account account, String authority) argument [all...] |
H A D | ContentResolver.java | 112 * the given account/authority pair. One required initialization step is to 784 String authority = uri.getAuthority(); 786 if (TextUtils.isEmpty(authority)) { 787 throw new FileNotFoundException("No authority: " + uri); 790 r = mContext.getPackageManager().getResourcesForApplication(authority); 792 throw new FileNotFoundException("No package found for authority: " + uri); 808 id = r.getIdentifier(path.get(1), path.get(0), authority); 887 * @param authority the authority of the ContentProvider to which this batch should be applied 895 public ContentProviderResult[] applyBatch(String authority, argument 1353 requestSync(Account account, String authority, Bundle extras) argument 1417 cancelSync(Account account, String authority) argument 1445 getSyncAutomatically(Account account, String authority) argument 1462 setSyncAutomatically(Account account, String authority, boolean sync) argument 1498 addPeriodicSync(Account account, String authority, Bundle extras, long pollFrequency) argument 1534 removePeriodicSync(Account account, String authority, Bundle extras) argument 1558 getPeriodicSyncs(Account account, String authority) argument 1578 getIsSyncable(Account account, String authority) argument 1592 setIsSyncable(Account account, String authority, int syncable) argument 1643 isSyncActive(Account account, String authority) argument 1701 getSyncStatus(Account account, String authority) argument 1717 isSyncPending(Account account, String authority) argument [all...] |
H A D | SyncManager.java | 183 null /* any authority */); 203 scheduleSync(null /* account */, UserHandle.USER_ALL, null /* authority */, 353 public void onSyncRequest(Account account, int userId, String authority, 355 scheduleSync(account, userId, authority, extras, 0, false); 371 scheduleSync(null, UserHandle.USER_ALL, type.authority, null, 0 /* no delay */, 500 * @param requestedAuthority the authority to sync, may be null to indicate all authorities 560 // For each authority sync each account that matches a sync adapter. 564 syncableAuthorities.add(syncAdapter.type.authority); 568 // with just this authority or clear it if this authority is 654 scheduleLocalSync(Account account, int userId, String authority) argument 693 sendCancelSyncsMessage(final Account account, final int userId, final String authority) argument 797 cancelActiveSync(Account account, int userId, String authority) argument 830 clearScheduledSyncOperations(Account account, int userId, String authority) argument 1642 getSyncWakeLock(Account account, String authority) argument 2226 cancelActiveSyncLocked(Account account, int userId, String authority) argument 2536 installHandleTooManyDeletesNotification(Account account, String authority, long numDeletes, int userId) argument [all...] |
H A D | SyncStorageEngine.java | 149 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 794 getOrCreateAuthority(Account account, int userId, String authority) argument 802 removeAuthority(Account account, int userId, String authority) argument 818 isSyncActive(Account account, int userId, String authority) argument 1258 getStatusByAccountAndAuthority(Account account, int userId, String authority) argument 1282 isSyncPending(Account account, int userId, String authority) argument 1424 getOrCreateSyncStatus(AuthorityInfo authority) argument 1693 parsePeriodicSync(XmlPullParser parser, AuthorityInfo authority) argument 2199 requestSync(Account account, int userId, String authority, Bundle extras) argument [all...] |
/frameworks/base/test-runner/src/android/test/ |
H A D | SyncBaseInstrumentation.java | 47 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 D | ProviderTestCase.java | 97 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 D | ProviderTestCase2.java | 35 * 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 D | ImportTestResolver.java | 35 public ContentProviderResult[] applyBatch(String authority, argument 37 equalsString(authority, RawContacts.CONTENT_URI.toString());
|
/frameworks/base/core/java/android/content/pm/ |
H A D | ProviderInfo.java | 33 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/base/core/tests/coretests/src/android/content/ |
H A D | SyncStorageEngineTest.java | 50 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 D | SearchRecentSuggestions.java | 123 * @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 D | UriTest.java | 47 .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 D | Uri.java | 98 ambiguous in terms of differentiating between an authority component 102 matching. In other words, the authority component wins." 105 <scheme>://<authority><path>?<query> 199 * Gets the decoded authority part of this URI. For 200 * server addresses, the authority is structured as follows: 205 * @return the authority for this URI or null if not present 210 * Gets the encoded authority part of this URI. For 211 * server addresses, the authority is structured as follows: 216 * @return the authority for this URI or null if not present 221 * Gets the decoded user information from the authority 565 private Part authority; field in class:Uri.StringUri 1136 private final Part authority; field in class:Uri.HierarchicalUri 1141 HierarchicalUri(String scheme, Part authority, PathPart path, Part query, Part fragment) argument 1318 private Part authority; field in class:Uri.Builder 1361 authority(Part authority) argument 1372 authority(String authority) argument 1379 encodedAuthority(String authority) argument [all...] |
/frameworks/base/core/java/android/app/ |
H A D | ActivityThread.java | 221 final String authority; field in class:ActivityThread.ProviderKey 224 public ProviderKey(String authority, int userId) { argument 225 this.authority = authority; 233 return Objects.equal(authority, other.authority) && userId == other.userId; 240 return ((authority != null) ? authority.hashCode() : 0) ^ userId; 4426 buf.append(cpi.authority); 4739 final String auths[] = PATTERN_SEMICOLON.split(holder.info.authority); [all...] |