/frameworks/base/core/java/android/content/ |
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 | 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 | ISyncAdapter.aidl | 34 * @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 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 | SyncStorageEngine.java | 151 final String authority; field in class:SyncStorageEngine.PendingOperation 159 String authority, Bundle extras, boolean expedited) { 163 this.authority = authority; 173 this.authority = other.authority; 193 final String authority; field in class:SyncStorageEngine.AuthorityInfo 211 authority = toCopy.authority; 225 AuthorityInfo(Account account, int userId, String authority, in argument 158 PendingOperation(Account account, int userId, int source, String authority, Bundle extras, boolean expedited) argument 272 onSyncRequest(Account account, int userId, String authority, Bundle extras) argument 804 getOrCreateAuthority(Account account, int userId, String authority) argument 812 removeAuthority(Account account, int userId, String authority) argument 828 isSyncActive(Account account, int userId, String authority) argument 1268 getStatusByAccountAndAuthority(Account account, int userId, String authority) argument 1292 isSyncPending(Account account, int userId, String authority) argument 1434 getOrCreateSyncStatus(AuthorityInfo authority) argument 1703 parsePeriodicSync(XmlPullParser parser, AuthorityInfo authority) argument 2209 requestSync(Account account, int userId, String authority, Bundle extras) argument [all...] |
H A D | IContentService.aidl | 56 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 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 | SyncAdaptersCache.java | 51 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 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 | 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 | 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 | 184 null /* any authority */); 204 scheduleSync(null /* account */, UserHandle.USER_ALL, null /* authority */, 354 public void onSyncRequest(Account account, int userId, String authority, 356 scheduleSync(account, userId, authority, extras, 0, false); 372 scheduleSync(null, UserHandle.USER_ALL, type.authority, null, 0 /* no delay */, 501 * @param requestedAuthority the authority to sync, may be null to indicate all authorities 561 // For each authority sync each account that matches a sync adapter. 565 syncableAuthorities.add(syncAdapter.type.authority); 569 // with just this authority or clear it if this authority is 655 scheduleLocalSync(Account account, int userId, String authority) argument 694 sendCancelSyncsMessage(final Account account, final int userId, final String authority) argument 798 cancelActiveSync(Account account, int userId, String authority) argument 831 clearScheduledSyncOperations(Account account, int userId, String authority) argument 1643 getSyncWakeLock(Account account, String authority) argument 2227 cancelActiveSyncLocked(Account account, int userId, String authority) argument 2537 installHandleTooManyDeletesNotification(Account account, String authority, long numDeletes, int userId) argument [all...] |
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 | 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...] |
/frameworks/ex/common/java/com/android/common/ |
H A D | Search.java | 83 String authority = searchable.getSuggestAuthority(); 84 if (authority == null) { 90 .authority(authority)
|
/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/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/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/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/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/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/media/java/android/media/ |
H A D | Ringtone.java | 119 String authority = uri.getAuthority(); 121 if (Settings.AUTHORITY.equals(authority)) { 132 if (DrmStore.AUTHORITY.equals(authority)) { 134 } else if (MediaStore.AUTHORITY.equals(authority)) {
|