/frameworks/base/core/java/android/content/ |
D | SyncAdapterType.java | 28 public final String authority; field in SyncAdapterType 37 public SyncAdapterType(String authority, String accountType, boolean userVisible, in SyncAdapterType() argument 39 if (TextUtils.isEmpty(authority)) { in SyncAdapterType() 40 throw new IllegalArgumentException("the authority must not be empty: " + authority); in SyncAdapterType() 45 this.authority = authority; in SyncAdapterType() 56 public SyncAdapterType(String authority, String accountType, boolean userVisible, in SyncAdapterType() argument 61 if (TextUtils.isEmpty(authority)) { in SyncAdapterType() 62 throw new IllegalArgumentException("the authority must not be empty: " + authority); in SyncAdapterType() 67 this.authority = authority; in SyncAdapterType() 77 private SyncAdapterType(String authority, String accountType) { in SyncAdapterType() argument [all …]
|
D | SyncStorageEngine.java | 151 final String authority; field in SyncStorageEngine.PendingOperation 159 String authority, Bundle extras, boolean expedited) { in PendingOperation() argument 163 this.authority = authority; in PendingOperation() 173 this.authority = other.authority; in PendingOperation() 193 final String authority; field in SyncStorageEngine.AuthorityInfo 211 authority = toCopy.authority; in AuthorityInfo() 225 AuthorityInfo(Account account, int userId, String authority, int ident) { in AuthorityInfo() argument 228 this.authority = authority; in AuthorityInfo() 272 public void onSyncRequest(Account account, int userId, String authority, Bundle extras); in onSyncRequest() argument 467 AuthorityInfo authority = getAuthorityLocked(account, userId, providerName, in getSyncAutomatically() local [all …]
|
D | PeriodicSync.java | 32 public final String authority; field in PeriodicSync 39 public PeriodicSync(Account account, String authority, Bundle extras, long period) { in PeriodicSync() argument 41 this.authority = authority; in PeriodicSync() 52 dest.writeString(authority); in writeToParcel() 80 && authority.equals(other.authority) in equals()
|
D | SyncInfo.java | 39 public final String authority; field in SyncInfo 49 SyncInfo(int authorityId, Account account, String authority, in SyncInfo() argument 53 this.authority = authority; in SyncInfo() 66 parcel.writeString(authority); in writeToParcel() 74 authority = parcel.readString(); in SyncInfo()
|
D | SyncQueue.java | 61 op.account, op.userId, op.authority); in addPendingOperations() 63 SyncAdapterType.newKey(op.authority, op.account.type), op.userId); in addPendingOperations() 65 Log.w(TAG, "Missing sync adapter info for authority " + op.authority + ", userId " in addPendingOperations() 70 op.account, op.userId, op.syncSource, op.authority, op.extras, 0 /* delay */, in addPendingOperations() 72 mSyncStorageEngine.getDelayUntilTime(op.account, op.userId, op.authority), in addPendingOperations() 116 operation.authority, operation.extras, operation.expedited); in add() 161 if (op.account.equals(account) && op.authority.equals(providerName) in onBackoffChanged() 173 if (op.account.equals(account) && op.authority.equals(providerName)) { in onDelayUntilTimeChanged() 180 public void remove(Account account, int userId, String authority) { in remove() argument 188 if (authority != null && !syncOperation.authority.equals(authority)) { in remove()
|
D | AbstractThreadedSyncAdapter.java | 150 public void startSync(ISyncContext syncContext, String authority, Account account, in startSync() argument 163 if (ContentResolver.getIsSyncable(account, authority) < 0) { in startSync() 164 ContentResolver.setIsSyncable(account, authority, 1); in startSync() 171 syncContextClient, authority, account, extras); in startSync() 208 public void initialize(Account account, String authority) throws RemoteException { in initialize() argument 211 startSync(null, authority, account, extras); in initialize() 227 private SyncThread(String name, SyncContext syncContext, String authority, in SyncThread() argument 231 mAuthority = authority; in SyncThread() 301 String authority, ContentProviderClient provider, SyncResult syncResult); in onPerformSync() argument
|
D | ContentResolver.java | 784 String authority = uri.getAuthority(); in getResourceId() local 786 if (TextUtils.isEmpty(authority)) { in getResourceId() 790 r = mContext.getPackageManager().getResourcesForApplication(authority); in getResourceId() 808 id = r.getIdentifier(path.get(1), path.get(0), authority); in getResourceId() 895 public ContentProviderResult[] applyBatch(String authority, in applyBatch() argument 898 ContentProviderClient provider = acquireContentProviderClient(authority); in applyBatch() 900 throw new IllegalArgumentException("Unknown authority " + authority); in applyBatch() 1353 public static void requestSync(Account account, String authority, Bundle extras) { in requestSync() argument 1356 getContentService().requestSync(account, authority, extras); in requestSync() 1417 public static void cancelSync(Account account, String authority) { in cancelSync() argument [all …]
|
D | SyncManager.java | 354 public void onSyncRequest(Account account, int userId, String authority, in SyncManager() 356 scheduleSync(account, userId, authority, extras, 0, false); in SyncManager() 372 scheduleSync(null, UserHandle.USER_ALL, type.authority, null, 0 /* no delay */, in SyncManager() 565 syncableAuthorities.add(syncAdapter.type.authority); in scheduleSync() 577 for (String authority : syncableAuthorities) { in scheduleSync() 579 authority); in scheduleSync() 585 SyncAdapterType.newKey(authority, account.account.type), account.userId); in scheduleSync() 592 mSyncStorageEngine.setIsSyncable(account.account, account.userId, authority, 1); in scheduleSync() 609 account.userId, authority)); in scheduleSync() 612 Log.d(TAG, "scheduleSync: sync of " + account + ", " + authority in scheduleSync() [all …]
|
D | SyncOperation.java | 31 public String authority; field in SyncOperation 42 public SyncOperation(Account account, int userId, int source, String authority, Bundle extras, in SyncOperation() argument 47 this.authority = authority; in SyncOperation() 82 this.authority = other.authority; in SyncOperation() 105 .append(authority) in dump() 134 sb.append("authority: ").append(authority); in toKey()
|
D | SyncAdaptersCache.java | 51 final String authority = in parseServiceAttributes() local 55 if (authority == null || accountType == null) { in parseServiceAttributes() 72 return new SyncAdapterType(authority, accountType, userVisible, supportsUploading, in parseServiceAttributes() 81 out.attribute(null, "authority", item.authority); in writeAsXml() 87 final String authority = parser.getAttributeValue(null, "authority"); in createFromXml() local 89 return SyncAdapterType.newKey(authority, accountType); in createFromXml()
|
D | IContentService.aidl | 56 void requestSync(in Account account, String authority, in Bundle extras); in requestSync() argument 57 void cancelSync(in Account account, String authority); in cancelSync() argument 121 boolean isSyncActive(in Account account, String authority); in isSyncActive() argument 137 SyncStatusInfo getSyncStatus(in Account account, String authority); in getSyncStatus() argument 142 boolean isSyncPending(in Account account, String authority); in isSyncPending() argument
|
D | ContentService.java | 300 public void requestSync(Account account, String authority, Bundle extras) { in requestSync() argument 310 syncManager.scheduleSync(account, userId, authority, extras, 0 /* no delay */, in requestSync() 324 public void cancelSync(Account account, String authority) { in cancelSync() argument 333 syncManager.clearScheduledSyncOperations(account, userId, authority); in cancelSync() 334 syncManager.cancelActiveSync(account, userId, authority); in cancelSync() 393 public void addPeriodicSync(Account account, String authority, Bundle extras, in addPeriodicSync() argument 402 account, userId, authority, extras, pollFrequency); in addPeriodicSync() 408 public void removePeriodicSync(Account account, String authority, Bundle extras) { in removePeriodicSync() argument 415 getSyncManager().getSyncStorageEngine().removePeriodicSync(account, userId, authority, in removePeriodicSync() 504 public boolean isSyncActive(Account account, String authority) { in isSyncActive() argument [all …]
|
D | ISyncAdapter.aidl | 38 void startSync(ISyncContext syncContext, String authority, in startSync() argument 54 void initialize(in Account account, String authority); in initialize() argument
|
/frameworks/base/core/tests/coretests/src/android/content/ |
D | SyncStorageEngineTest.java | 50 final String authority = "testprovider"; in testPurgeActiveSync() local 59 account, 0, authority, time0, SyncStorageEngine.SOURCE_LOCAL, in testPurgeActiveSync() 72 final String authority = "testprovider"; in testPeriodics() local 80 PeriodicSync sync1 = new PeriodicSync(account1, authority, extras1, period1); in testPeriodics() 81 PeriodicSync sync2 = new PeriodicSync(account1, authority, extras2, period1); in testPeriodics() 82 PeriodicSync sync3 = new PeriodicSync(account1, authority, extras2, period2); in testPeriodics() 83 PeriodicSync sync4 = new PeriodicSync(account2, authority, extras2, period2); in testPeriodics() 90 removePeriodicSyncs(engine, account1, 0, authority); in testPeriodics() 91 removePeriodicSyncs(engine, account2, 0, authority); in testPeriodics() 92 removePeriodicSyncs(engine, account1, 1, authority); in testPeriodics() [all …]
|
/frameworks/base/core/java/android/net/ |
D | Uri.java | 565 private Part authority; field in Uri.StringUri 568 if (authority == null) { in getAuthorityPart() 571 return authority = Part.fromEncoded(encodedAuthority); in getAuthorityPart() 574 return authority; in getAuthorityPart() 779 .authority(getAuthorityPart()) in buildUpon() 1055 String authority = getEncodedAuthority(); in parseUserInfo() local 1056 if (authority == null) { in parseUserInfo() 1060 int end = authority.indexOf('@'); in parseUserInfo() 1061 return end == NOT_FOUND ? null : authority.substring(0, end); in parseUserInfo() 1078 String authority = getEncodedAuthority(); in parseHost() local [all …]
|
/frameworks/base/core/java/android/content/pm/ |
D | ProviderInfo.java | 33 public String authority = null; field in ProviderInfo 104 authority = orig.authority; in ProviderInfo() 122 out.writeString(authority); in writeToParcel() 146 return "ContentProviderInfo{name=" + authority + " className=" + name + "}"; in toString() 151 authority = in.readString(); in ProviderInfo()
|
/frameworks/base/core/tests/coretests/src/android/net/ |
D | UriTest.java | 47 .authority("crazybob.org") in testParcelling() 140 .authority("crazybob.org") in testEqualsAndHashCode() 411 private static void testHierarchical(String scheme, String authority, in testHierarchical() argument 415 if (authority != null) { in testHierarchical() 416 sb.append("//").append(authority); in testHierarchical() 440 uriString, ssp, uri, scheme, authority, path, query, fragment); in testHierarchical() 442 uriString, ssp, uri, scheme, authority, path, query, fragment); in testHierarchical() 449 uriString, ssp, uri, scheme, authority, path, query, fragment); in testHierarchical() 451 uriString, ssp, uri, scheme, authority, path, query, fragment); in testHierarchical() 459 .encodedAuthority(authority) in testHierarchical() [all …]
|
/frameworks/ex/common/java/com/android/common/ |
D | Search.java | 83 String authority = searchable.getSuggestAuthority(); in getSuggestions() local 84 if (authority == null) { in getSuggestions() 90 .authority(authority) in getSuggestions()
|
/frameworks/base/test-runner/src/android/test/ |
D | SyncBaseInstrumentation.java | 47 protected void syncProvider(Uri uri, String accountName, String authority) throws Exception { in syncProvider() argument 52 ContentResolver.requestSync(account, authority, extras); in syncProvider() 67 if (ContentResolver.isSyncActive(account, authority)) { in syncProvider()
|
D | ProviderTestCase.java | 97 Context targetContext, Class<T> providerClass, String authority, in newResolverWithContentProviderFromSql() argument 112 resolver.addProvider(authority, provider); in newResolverWithContentProviderFromSql()
|
D | ProviderTestCase2.java | 210 Context targetContext, String filenamePrefix, Class<T> providerClass, String authority, in newResolverWithContentProviderFromSql() argument 223 resolver.addProvider(authority, provider); in newResolverWithContentProviderFromSql()
|
/frameworks/base/core/java/android/provider/ |
D | SearchRecentSuggestions.java | 131 public SearchRecentSuggestions(Context context, String authority, int mode) { in SearchRecentSuggestions() argument 132 if (TextUtils.isEmpty(authority) || in SearchRecentSuggestions() 141 mAuthority = new String(authority); in SearchRecentSuggestions()
|
/frameworks/base/media/java/android/media/ |
D | Ringtone.java | 119 String authority = uri.getAuthority(); in getTitle() local 121 if (Settings.AUTHORITY.equals(authority)) { in getTitle() 132 if (DrmStore.AUTHORITY.equals(authority)) { in getTitle() 134 } else if (MediaStore.AUTHORITY.equals(authority)) { in getTitle()
|
/frameworks/opt/vcard/tests/src/com/android/vcard/tests/testutils/ |
D | ImportTestResolver.java | 35 public ContentProviderResult[] applyBatch(String authority, in applyBatch() argument 37 equalsString(authority, RawContacts.CONTENT_URI.toString()); in applyBatch()
|
/frameworks/base/core/java/android/app/ |
D | SearchManager.java | 787 String authority = searchable.getSuggestAuthority(); in getSuggestions() local 788 if (authority == null) { in getSuggestions() 794 .authority(authority) in getSuggestions()
|