Home
last modified time | relevance | path

Searched refs:authority (Results 1 – 25 of 54) sorted by relevance

123

/frameworks/base/core/java/android/content/
DSyncAdapterType.java28 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 …]
DSyncStorageEngine.java137 final String authority; field in SyncStorageEngine.PendingOperation
145 String authority, Bundle extras, boolean expedited) { in PendingOperation() argument
148 this.authority = authority; in PendingOperation()
157 this.authority = other.authority; in PendingOperation()
176 final String authority; field in SyncStorageEngine.AuthorityInfo
185 AuthorityInfo(Account account, String authority, int ident) { in AuthorityInfo() argument
187 this.authority = authority; in AuthorityInfo()
395 AuthorityInfo authority = getAuthorityLocked(account, providerName, in getSyncAutomatically() local
397 return authority != null && authority.enabled; in getSyncAutomatically()
403 AuthorityInfo authority = mAuthorities.valueAt(i); in getSyncAutomatically() local
[all …]
DPeriodicSync.java32 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()
DSyncInfo.java39 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()
DSyncQueue.java52 final Pair<Long, Long> backoff = syncStorageEngine.getBackoff(op.account, op.authority); in SyncQueue()
55 SyncAdapterType.newKey(op.authority, op.account.type)); in SyncQueue()
60 op.account, op.syncSource, op.authority, op.extras, 0 /* delay */, in SyncQueue()
62 syncStorageEngine.getDelayUntilTime(op.account, op.authority), in SyncQueue()
106 operation.authority, operation.extras, operation.expedited); in add()
138 if (op.account.equals(account) && op.authority.equals(providerName)) { in onBackoffChanged()
149 if (op.account.equals(account) && op.authority.equals(providerName)) { in onDelayUntilTimeChanged()
156 public void remove(Account account, String authority) { in remove() argument
164 if (authority != null && !syncOperation.authority.equals(authority)) { in remove()
DAbstractThreadedSyncAdapter.java149 public void startSync(ISyncContext syncContext, String authority, Account account, in startSync() argument
162 if (ContentResolver.getIsSyncable(account, authority) < 0) { in startSync()
163 ContentResolver.setIsSyncable(account, authority, 1); in startSync()
170 syncContextClient, authority, account, extras); in startSync()
207 public void initialize(Account account, String authority) throws RemoteException { in initialize() argument
210 startSync(null, authority, account, extras); in initialize()
226 private SyncThread(String name, SyncContext syncContext, String authority, in SyncThread() argument
230 mAuthority = authority; in SyncThread()
292 String authority, ContentProviderClient provider, SyncResult syncResult); in onPerformSync() argument
DContentResolver.java647 String authority = uri.getAuthority(); in getResourceId() local
649 if (TextUtils.isEmpty(authority)) { in getResourceId()
653 r = mContext.getPackageManager().getResourcesForApplication(authority); in getResourceId()
671 id = r.getIdentifier(path.get(1), path.get(0), authority); in getResourceId()
758 public ContentProviderResult[] applyBatch(String authority, in applyBatch() argument
761 ContentProviderClient provider = acquireContentProviderClient(authority); in applyBatch()
763 throw new IllegalArgumentException("Unknown authority " + authority); in applyBatch()
1109 public static void requestSync(Account account, String authority, Bundle extras) { in requestSync() argument
1112 getContentService().requestSync(account, authority, extras); in requestSync()
1173 public static void cancelSync(Account account, String authority) { in cancelSync() argument
[all …]
DSyncManager.java306 scheduleSync(null, type.authority, null, 0 /* no delay */, in SyncManager()
401 private void initializeSyncAdapter(Account account, String authority) { in initializeSyncAdapter() argument
403 Log.v(TAG, "initializeSyncAdapter: " + account + ", authority " + authority); in initializeSyncAdapter()
405 SyncAdapterType syncAdapterType = SyncAdapterType.newKey(authority, account.type); in initializeSyncAdapter()
410 mSyncStorageEngine.removeAuthority(account, authority); in initializeSyncAdapter()
418 new InitializerServiceConnection(account, authority, mContext, mMainHandler), in initializeSyncAdapter()
431 public InitializerServiceConnection(Account account, String authority, Context context, in InitializerServiceConnection() argument
434 mAuthority = authority; in InitializerServiceConnection()
559 syncableAuthorities.add(syncAdapter.type.authority); in scheduleSync()
572 for (String authority : syncableAuthorities) { in scheduleSync()
[all …]
DSyncOperation.java30 public String authority; field in SyncOperation
41 public SyncOperation(Account account, int source, String authority, Bundle extras, in SyncOperation() argument
45 this.authority = authority; in SyncOperation()
79 this.authority = other.authority; in SyncOperation()
98 sb.append(", " + authority); in dump()
122 sb.append("authority: ").append(authority); in toKey()
DSyncAdaptersCache.java51 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()
DIContentService.aidl40 void requestSync(in Account account, String authority, in Bundle extras); in requestSync() argument
41 void cancelSync(in Account account, String authority); in cancelSync() argument
105 boolean isSyncActive(in Account account, String authority); in isSyncActive() argument
121 SyncStatusInfo getSyncStatus(in Account account, String authority); in getSyncStatus() argument
126 boolean isSyncPending(in Account account, String authority); in isSyncPending() argument
DContentService.java231 public void requestSync(Account account, String authority, Bundle extras) { in requestSync() argument
239 syncManager.scheduleSync(account, authority, extras, 0 /* no delay */, in requestSync()
253 public void cancelSync(Account account, String authority) { in cancelSync() argument
260 syncManager.clearScheduledSyncOperations(account, authority); in cancelSync()
261 syncManager.cancelActiveSync(account, authority); in cancelSync()
315 public void addPeriodicSync(Account account, String authority, Bundle extras, in addPeriodicSync() argument
322 account, authority, extras, pollFrequency); in addPeriodicSync()
328 public void removePeriodicSync(Account account, String authority, Bundle extras) { in removePeriodicSync() argument
333 getSyncManager().getSyncStorageEngine().removePeriodicSync(account, authority, extras); in removePeriodicSync()
411 public boolean isSyncActive(Account account, String authority) { in isSyncActive() argument
[all …]
DISyncAdapter.aidl38 void startSync(ISyncContext syncContext, String authority, in startSync() argument
54 void initialize(in Account account, String authority); in initialize() argument
DUriMatcher.java153 public void addURI(String authority, String path, int code) in addURI() argument
162 String token = i < 0 ? authority : tokens[i]; in addURI()
/frameworks/base/core/tests/coretests/src/android/content/
DSyncStorageEngineTest.java46 final String authority = "testprovider"; in testPurgeActiveSync() local
55 account, authority, time0, SyncStorageEngine.SOURCE_LOCAL); in testPurgeActiveSync()
67 final String authority = "testprovider"; in testPeriodics() local
75 PeriodicSync sync1 = new PeriodicSync(account1, authority, extras1, period1); in testPeriodics()
76 PeriodicSync sync2 = new PeriodicSync(account1, authority, extras2, period1); in testPeriodics()
77 PeriodicSync sync3 = new PeriodicSync(account1, authority, extras2, period2); in testPeriodics()
78 PeriodicSync sync4 = new PeriodicSync(account2, authority, extras2, period2); in testPeriodics()
85 removePeriodicSyncs(engine, account1, authority); in testPeriodics()
86 removePeriodicSyncs(engine, account2, authority); in testPeriodics()
89 engine.addPeriodicSync(sync1.account, sync1.authority, sync1.extras, sync1.period); in testPeriodics()
[all …]
/frameworks/base/core/java/android/content/pm/
DProviderInfo.java33 public String authority = null; field in ProviderInfo
90 authority = orig.authority; in ProviderInfo()
107 out.writeString(authority); in writeToParcel()
130 return "ContentProviderInfo{name=" + authority + " className=" + name in toString()
136 authority = in.readString(); in ProviderInfo()
/frameworks/base/core/java/android/net/
DUri.java562 private Part authority; field in Uri.StringUri
565 if (authority == null) { in getAuthorityPart()
568 return authority = Part.fromEncoded(encodedAuthority); in getAuthorityPart()
571 return authority; in getAuthorityPart()
776 .authority(getAuthorityPart()) in buildUpon()
1052 String authority = getEncodedAuthority(); in parseUserInfo() local
1053 if (authority == null) { in parseUserInfo()
1057 int end = authority.indexOf('@'); in parseUserInfo()
1058 return end == NOT_FOUND ? null : authority.substring(0, end); in parseUserInfo()
1075 String authority = getEncodedAuthority(); in parseHost() local
[all …]
/frameworks/base/core/tests/coretests/src/android/net/
DUriTest.java49 .authority("crazybob.org") in testParcelling()
142 .authority("crazybob.org") in testEqualsAndHashCode()
413 private static void testHierarchical(String scheme, String authority, in testHierarchical() argument
417 if (authority != null) { in testHierarchical()
418 sb.append("//").append(authority); in testHierarchical()
442 uriString, ssp, uri, scheme, authority, path, query, fragment); in testHierarchical()
444 uriString, ssp, uri, scheme, authority, path, query, fragment); in testHierarchical()
451 uriString, ssp, uri, scheme, authority, path, query, fragment); in testHierarchical()
453 uriString, ssp, uri, scheme, authority, path, query, fragment); in testHierarchical()
461 .encodedAuthority(authority) in testHierarchical()
[all …]
/frameworks/base/test-runner/src/android/test/
DSyncBaseInstrumentation.java47 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()
DProviderTestCase.java97 Context targetContext, Class<T> providerClass, String authority, in newResolverWithContentProviderFromSql() argument
112 resolver.addProvider(authority, provider); in newResolverWithContentProviderFromSql()
DProviderTestCase2.java210 Context targetContext, String filenamePrefix, Class<T> providerClass, String authority, in newResolverWithContentProviderFromSql() argument
223 resolver.addProvider(authority, provider); in newResolverWithContentProviderFromSql()
/frameworks/base/media/java/android/media/
DRingtone.java123 String authority = uri.getAuthority(); in getTitle() local
125 if (Settings.AUTHORITY.equals(authority)) { in getTitle()
136 if (DrmStore.AUTHORITY.equals(authority)) { in getTitle()
138 } else if (MediaStore.AUTHORITY.equals(authority)) { in getTitle()
/frameworks/base/core/java/android/provider/
DSearchRecentSuggestions.java124 public SearchRecentSuggestions(Context context, String authority, int mode) { in SearchRecentSuggestions() argument
125 if (TextUtils.isEmpty(authority) || in SearchRecentSuggestions()
134 mAuthority = new String(authority); in SearchRecentSuggestions()
/frameworks/opt/vcard/tests/src/com/android/vcard/tests/testutils/
DImportTestResolver.java35 public ContentProviderResult[] applyBatch(String authority, in applyBatch() argument
37 equalsString(authority, RawContacts.CONTENT_URI.toString()); in applyBatch()
/frameworks/base/core/java/android/app/
DSearchManager.java771 String authority = searchable.getSuggestAuthority(); in getSuggestions() local
772 if (authority == null) { in getSuggestions()
778 .authority(authority) in getSuggestions()

123