Home
last modified time | relevance | path

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

12345

/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 …]
DPeriodicSync.java31 public final String authority; field in PeriodicSync
45 public PeriodicSync(Account account, String authority, Bundle extras, long periodInSeconds) { in PeriodicSync() argument
47 this.authority = authority; in PeriodicSync()
64 this.authority = other.authority; in PeriodicSync()
74 public PeriodicSync(Account account, String authority, Bundle extras, in PeriodicSync() argument
77 this.authority = authority; in PeriodicSync()
85 this.authority = in.readString(); in PeriodicSync()
99 dest.writeString(authority); in writeToParcel()
127 && authority.equals(other.authority) in equals()
157 ", authority: " + authority + in toString()
DSyncInfo.java38 public final String authority; field in SyncInfo
48 public SyncInfo(int authorityId, Account account, String authority, long startTime) { in SyncInfo() argument
51 this.authority = authority; in SyncInfo()
59 this.authority = other.authority; in SyncInfo()
72 parcel.writeString(authority); in writeToParcel()
80 authority = parcel.readString(); in SyncInfo()
DSyncAdaptersCache.java62 final String authority = in parseServiceAttributes() local
66 if (authority == null || accountType == null) { in parseServiceAttributes()
83 return new SyncAdapterType(authority, accountType, userVisible, supportsUploading, in parseServiceAttributes()
102 public String[] getSyncAdapterPackagesForAuthority(String authority, int userId) { in getSyncAdapterPackagesForAuthority() argument
110 if (adapterMap.containsKey(authority)) { in getSyncAdapterPackagesForAuthority()
111 return adapterMap.get(authority); in getSyncAdapterPackagesForAuthority()
119 if (authority.equals(serviceInfo.type.authority) in getSyncAdapterPackagesForAuthority()
126 adapterMap.put(authority, syncAdapterPackages); in getSyncAdapterPackagesForAuthority()
143 out.attribute(null, "authority", item.authority); in writeAsXml()
149 final String authority = parser.getAttributeValue(null, "authority"); in createFromXml() local
[all …]
DIContentService.aidl58 void requestSync(in Account account, String authority, in Bundle extras); in requestSync() argument
64 void cancelSync(in Account account, String authority, in ComponentName cname); in cancelSync() argument
65 void cancelSyncAsUser(in Account account, String authority, in ComponentName cname, int userId); in cancelSyncAsUser() argument
146 String[] getSyncAdapterPackagesForAuthorityAsUser(String authority, int userId); in getSyncAdapterPackagesForAuthorityAsUser() argument
156 boolean isSyncActive(in Account account, String authority, in ComponentName cname); in isSyncActive() argument
166 SyncStatusInfo getSyncStatus(in Account account, String authority, in ComponentName cname); in getSyncStatus() argument
167 SyncStatusInfo getSyncStatusAsUser(in Account account, String authority, in ComponentName cname, in getSyncStatusAsUser() argument
177 boolean isSyncPending(in Account account, String authority, in ComponentName cname); in isSyncPending() argument
178 boolean isSyncPendingAsUser(in Account account, String authority, in ComponentName cname, in isSyncPendingAsUser() argument
DAbstractThreadedSyncAdapter.java164 public void startSync(ISyncContext syncContext, String authority, Account account, in startSync() argument
178 if (ContentResolver.getIsSyncable(account, authority) < 0) { in startSync()
179 ContentResolver.setIsSyncable(account, authority, 1); in startSync()
188 syncContextClient, authority, account, extras); in startSync()
226 public void initialize(Account account, String authority) throws RemoteException { in initialize() argument
229 startSync(null, authority, account, extras); in initialize()
245 private SyncThread(String name, SyncContext syncContext, String authority, in SyncThread() argument
249 mAuthority = authority; in SyncThread()
323 String authority, ContentProviderClient provider, SyncResult syncResult); in onPerformSync() argument
336 String authority, SyncResult syncResult) { in onSecurityException() argument
DContentResolver.java1176 String authority = uri.getAuthority(); in getResourceId() local
1178 if (TextUtils.isEmpty(authority)) { in getResourceId()
1182 r = mContext.getPackageManager().getResourcesForApplication(authority); in getResourceId()
1200 id = r.getIdentifier(path.get(1), path.get(0), authority); in getResourceId()
1260 public @NonNull ContentProviderResult[] applyBatch(@NonNull String authority, in applyBatch() argument
1263 Preconditions.checkNotNull(authority, "authority"); in applyBatch()
1265 ContentProviderClient provider = acquireContentProviderClient(authority); in applyBatch()
1267 throw new IllegalArgumentException("Unknown authority " + authority); in applyBatch()
1812 public static void requestSync(Account account, String authority, Bundle extras) { in requestSync() argument
1813 requestSyncAsUser(account, authority, UserHandle.myUserId(), extras); in requestSync()
[all …]
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/
DRootsCache.java104 mRecentsRoot.authority = null; in updateAsync()
125 public void updateAuthorityAsync(String authority) { in updateAuthorityAsync() argument
126 final ProviderInfo info = mContext.getPackageManager().resolveContentProvider(authority, 0); in updateAuthorityAsync()
150 for (String authority : mStoppedAuthorities) { in loadStoppedAuthorities()
151 if (LOGD) Log.d(TAG, "Loading stopped authority " + authority); in loadStoppedAuthorities()
152 mRoots.putAll(authority, loadRootsForAuthority(resolver, authority)); in loadStoppedAuthorities()
189 mTaskRoots.put(mRecentsRoot.authority, mRecentsRoot); in doInBackground()
216 if (LOGD) Log.d(TAG, "Ignoring stopped authority " + info.authority); in handleDocumentsProvider()
217 mTaskStoppedAuthorities.add(info.authority); in handleDocumentsProvider()
225 if (mTaskRoots.putAll(info.authority, mRoots.get(info.authority))) { in handleDocumentsProvider()
[all …]
DRecentsProvider.java100 .authority(AUTHORITY).appendPath("recent").build(); in buildRecent()
103 public static Uri buildState(String authority, String rootId, String documentId) { in buildState() argument
104 return new Uri.Builder().scheme(ContentResolver.SCHEME_CONTENT).authority(AUTHORITY) in buildState()
105 .appendPath("state").appendPath(authority).appendPath(rootId).appendPath(documentId) in buildState()
111 .authority(AUTHORITY).appendPath("resume").appendPath(packageName).build(); in buildResume()
181 final String authority = uri.getPathSegments().get(1); in query() local
186 new String[] { authority, rootId, documentId }, null, null, sortOrder); in query()
213 final String authority = uri.getPathSegments().get(1); in insert() local
217 key.put(StateColumns.AUTHORITY, authority); in insert()
225 new String[] { authority, rootId, documentId }); in insert()
[all …]
DRecentLoader.java97 public final String authority; field in RecentLoader.RecentTask
102 public RecentTask(String authority, String rootId) { in RecentTask() argument
103 this.authority = authority; in RecentTask()
128 getContext().getContentResolver(), authority); in runInternal()
130 final Uri uri = DocumentsContract.buildRecentDocumentsUri(authority, rootId); in runInternal()
133 mWithRoot = new RootCursorWrapper(authority, rootId, cursor, MAX_DOCS_FROM_ROOT); in runInternal()
136 Log.w(TAG, "Failed to load " + authority + ", " + rootId, e); in runInternal()
177 final RecentTask task = new RecentTask(root.authority, root.rootId); in loadInBackground()
184 ProviderExecutor.forAuthority(task.authority).execute(task); in loadInBackground()
DProviderExecutor.java37 public static ProviderExecutor forAuthority(String authority) { in forAuthority() argument
39 ProviderExecutor executor = sExecutors.get(authority); in forAuthority()
42 executor.setName("ProviderExecutor: " + authority); in forAuthority()
44 sExecutors.put(authority, executor); in forAuthority()
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/model/
DRootInfo.java47 public String authority; field in RootInfo
67 authority = null; in reset()
86 authority = DurableUtils.readNullableString(in); in read()
105 DurableUtils.writeNullableString(out, authority); in write()
140 public static RootInfo fromRootsCursor(String authority, Cursor cursor) { in fromRootsCursor() argument
142 root.authority = authority; in fromRootsCursor()
173 return authority == null && rootId == null; in isRecents()
177 return "com.android.externalstorage.documents".equals(authority); in isExternalStorage()
181 return "com.android.providers.downloads.documents".equals(authority); in isDownloads()
185 return "com.android.providers.media.documents".equals(authority) in isImages()
[all …]
DDocumentInfo.java57 public String authority; field in DocumentInfo
76 authority = null; in reset()
96 authority = DurableUtils.readNullableString(in); in read()
115 DurableUtils.writeNullableString(out, authority); in write()
151 final String authority = getCursorString(cursor, RootCursorWrapper.COLUMN_AUTHORITY); in fromDirectoryCursor() local
152 return fromCursor(cursor, authority); in fromDirectoryCursor()
155 public static DocumentInfo fromCursor(Cursor cursor, String authority) { in fromCursor() argument
157 info.updateFromCursor(cursor, authority); in fromCursor()
161 public void updateFromCursor(Cursor cursor, String authority) { in updateFromCursor() argument
162 this.authority = authority; in updateFromCursor()
[all …]
/frameworks/base/services/core/java/com/android/server/content/
DSyncStorageEngine.java175 PendingOperation(AuthorityInfo authority, int reason, int source, in PendingOperation() argument
177 this.target = authority.target; in PendingOperation()
182 this.authorityId = authority.ident; in PendingOperation()
652 AuthorityInfo authority = getAuthorityLocked( in getSyncAutomatically() local
655 return authority != null && authority.enabled; in getSyncAutomatically()
678 AuthorityInfo authority = in setSyncAutomatically() local
683 if (authority.enabled == sync) { in setSyncAutomatically()
692 if (sync && authority.syncable == AuthorityInfo.SYNCABLE_NOT_INITIALIZED) { in setSyncAutomatically()
693 authority.syncable = AuthorityInfo.NOT_INITIALIZED; in setSyncAutomatically()
695 authority.enabled = sync; in setSyncAutomatically()
[all …]
DContentService.java166 public String[] getPackages(String authority, int userId) { in ContentService()
167 return getSyncAdapterPackagesForAuthorityAsUser(authority, userId); in ContentService()
344 public void requestSync(Account account, String authority, Bundle extras) { in requestSync() argument
355 syncManager.scheduleSync(account, userId, uId, authority, extras, in requestSync()
434 public void cancelSync(Account account, String authority, ComponentName cname) { in cancelSync() argument
435 cancelSyncAsUser(account, authority, cname, UserHandle.getCallingUserId()); in cancelSync()
452 public void cancelSyncAsUser(Account account, String authority, ComponentName cname, in cancelSyncAsUser() argument
454 if (authority != null && authority.length() == 0) { in cancelSyncAsUser()
467 info = new SyncStorageEngine.EndPoint(account, authority, userId); in cancelSyncAsUser()
538 public String[] getSyncAdapterPackagesForAuthorityAsUser(String authority, int userId) { in getSyncAdapterPackagesForAuthorityAsUser() argument
[all …]
/frameworks/base/core/java/android/provider/
DDocumentsContract.java561 public static Uri buildRootsUri(String authority) { in buildRootsUri() argument
563 .authority(authority).appendPath(PATH_ROOT).build(); in buildRootsUri()
572 public static Uri buildRootUri(String authority, String rootId) { in buildRootUri() argument
574 .authority(authority).appendPath(PATH_ROOT).appendPath(rootId).build(); in buildRootUri()
585 public static Uri buildRecentDocumentsUri(String authority, String rootId) { in buildRecentDocumentsUri() argument
587 .authority(authority).appendPath(PATH_ROOT).appendPath(rootId) in buildRecentDocumentsUri()
597 public static Uri buildTreeDocumentUri(String authority, String documentId) { in buildTreeDocumentUri() argument
598 return new Uri.Builder().scheme(ContentResolver.SCHEME_CONTENT).authority(authority) in buildTreeDocumentUri()
610 public static Uri buildDocumentUri(String authority, String documentId) { in buildDocumentUri() argument
612 .authority(authority).appendPath(PATH_DOCUMENT).appendPath(documentId).build(); in buildDocumentUri()
[all …]
/frameworks/base/core/java/android/content/pm/
DProviderInfo.java34 public String authority = null; field in ProviderInfo
105 authority = orig.authority; in ProviderInfo()
119 pw.println(prefix + "authority=" + authority); in dump()
129 out.writeString(authority); in writeToParcel()
153 return "ContentProviderInfo{name=" + authority + " className=" + name + "}"; in toString()
158 authority = in.readString(); in ProviderInfo()
/frameworks/base/core/java/android/net/
DUri.java573 private Part authority; field in Uri.StringUri
576 if (authority == null) { in getAuthorityPart()
579 return authority = Part.fromEncoded(encodedAuthority); in getAuthorityPart()
582 return authority; in getAuthorityPart()
787 .authority(getAuthorityPart()) in buildUpon()
1063 String authority = getEncodedAuthority(); in parseUserInfo() local
1064 if (authority == null) { in parseUserInfo()
1068 int end = authority.indexOf('@'); in parseUserInfo()
1069 return end == NOT_FOUND ? null : authority.substring(0, end); in parseUserInfo()
1086 String authority = getEncodedAuthority(); in parseHost() local
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/content/
DSyncStorageEngineTest.java92 final String authority = "testprovider"; in testPurgeActiveSync() local
102 authority, in testPurgeActiveSync()
217 final String authority = "testprovider"; in testPeriodics() local
225 PeriodicSync sync1 = new PeriodicSync(account1, authority, extras1, period1); in testPeriodics()
226 EndPoint end1 = new EndPoint(account1, authority, 0); in testPeriodics()
228 PeriodicSync sync2 = new PeriodicSync(account1, authority, extras2, period1); in testPeriodics()
229 PeriodicSync sync3 = new PeriodicSync(account1, authority, extras2, period2); in testPeriodics()
230 PeriodicSync sync4 = new PeriodicSync(account2, authority, extras2, period2); in testPeriodics()
234 removePeriodicSyncs(engine, account1, 0, authority); in testPeriodics()
235 removePeriodicSyncs(engine, account2, 0, authority); in testPeriodics()
[all …]
/frameworks/base/test-runner/src/android/test/
DProviderTestCase2.java150 Context context, Class<T> providerClass, String authority) in createProviderForTest() argument
154 providerInfo.authority = authority; in createProviderForTest()
221 Context targetContext, String filenamePrefix, Class<T> providerClass, String authority, in newResolverWithContentProviderFromSql() argument
232 T provider = createProviderForTest(context, providerClass, authority); in newResolverWithContentProviderFromSql()
233 resolver.addProvider(authority, provider); in newResolverWithContentProviderFromSql()
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()
/frameworks/support/v4/java/android/support/v4/content/
DFileProvider.java352 mStrategy = getPathStrategy(context, info.authority); in attachInfo()
375 public static Uri getUriForFile(Context context, String authority, File file) { in getUriForFile() argument
376 final PathStrategy strategy = getPathStrategy(context, authority); in getUriForFile()
528 private static PathStrategy getPathStrategy(Context context, String authority) { in getPathStrategy() argument
531 strat = sCache.get(authority); in getPathStrategy()
534 strat = parsePathStrategy(context, authority); in getPathStrategy()
542 sCache.put(authority, strat); in getPathStrategy()
554 private static PathStrategy parsePathStrategy(Context context, String authority) in parsePathStrategy() argument
556 final SimplePathStrategy strat = new SimplePathStrategy(authority); in parsePathStrategy()
559 .resolveContentProvider(authority, PackageManager.GET_META_DATA); in parsePathStrategy()
[all …]
/frameworks/ex/common/java/com/android/common/
DSearch.java83 String authority = searchable.getSuggestAuthority(); in getSuggestions() local
84 if (authority == null) { in getSuggestions()
90 .authority(authority) in getSuggestions()
/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/core/java/com/android/server/backup/
DAccountSyncSettingsBackupHelper.java138 accountTypeToAuthorities.get(syncAdapter.accountType).add(syncAdapter.authority); in serializeAccountSyncSettingsToJSON()
162 for (String authority : authorities) { in serializeAccountSyncSettingsToJSON()
163 int syncState = ContentResolver.getIsSyncable(account, authority); in serializeAccountSyncSettingsToJSON()
164 boolean syncEnabled = ContentResolver.getSyncAutomatically(account, authority); in serializeAccountSyncSettingsToJSON()
167 authorityJSON.put(KEY_AUTHORITY_NAME, authority); in serializeAccountSyncSettingsToJSON()
338 JSONObject authority = (JSONObject) authorities.get(i); in restoreExistingAccountSyncSettingsFromJSON() local
339 final String authorityName = authority.getString(KEY_AUTHORITY_NAME); in restoreExistingAccountSyncSettingsFromJSON()
340 boolean wasSyncEnabled = authority.getBoolean(KEY_AUTHORITY_SYNC_ENABLED); in restoreExistingAccountSyncSettingsFromJSON()
341 int wasSyncable = authority.getInt(KEY_AUTHORITY_SYNC_STATE); in restoreExistingAccountSyncSettingsFromJSON()

12345