Home
last modified time | relevance | path

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

123456

/frameworks/base/core/java/android/content/
DSyncAdapterType.java29 public final String authority; field in SyncAdapterType
39 public SyncAdapterType(String authority, String accountType, boolean userVisible, in SyncAdapterType() argument
41 if (TextUtils.isEmpty(authority)) { in SyncAdapterType()
42 throw new IllegalArgumentException("the authority must not be empty: " + authority); in SyncAdapterType()
47 this.authority = authority; in SyncAdapterType()
59 public SyncAdapterType(String authority, String accountType, boolean userVisible, in SyncAdapterType() argument
65 if (TextUtils.isEmpty(authority)) { in SyncAdapterType()
66 throw new IllegalArgumentException("the authority must not be empty: " + authority); in SyncAdapterType()
71 this.authority = authority; in SyncAdapterType()
82 private SyncAdapterType(String authority, String accountType) { in SyncAdapterType() argument
[all …]
DPeriodicSync.java33 public final String authority; field in PeriodicSync
47 public PeriodicSync(Account account, String authority, Bundle extras, long periodInSeconds) { in PeriodicSync() argument
49 this.authority = authority; in PeriodicSync()
66 this.authority = other.authority; in PeriodicSync()
76 public PeriodicSync(Account account, String authority, Bundle extras, in PeriodicSync() argument
79 this.authority = authority; in PeriodicSync()
87 this.authority = in.readString(); in PeriodicSync()
101 dest.writeString(authority); in writeToParcel()
129 && authority.equals(other.authority) in equals()
161 ", authority: " + authority + in toString()
DSyncInfo.java45 public final String authority; field in SyncInfo
61 int authorityId, String authority, long startTime) { in createAccountRedacted() argument
62 return new SyncInfo(authorityId, REDACTED_ACCOUNT, authority, startTime); in createAccountRedacted()
66 public SyncInfo(int authorityId, Account account, String authority, long startTime) { in SyncInfo() argument
69 this.authority = authority; in SyncInfo()
77 this.authority = other.authority; in SyncInfo()
90 parcel.writeString(authority); in writeToParcel()
98 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 …]
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
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
DContentResolver.java1220 String authority = uri.getAuthority(); in getResourceId() local
1222 if (TextUtils.isEmpty(authority)) { in getResourceId()
1226 r = mContext.getPackageManager().getResourcesForApplication(authority); in getResourceId()
1244 id = r.getIdentifier(path.get(1), path.get(0), authority); in getResourceId()
1305 public @NonNull ContentProviderResult[] applyBatch(@NonNull String authority, in applyBatch() argument
1308 Preconditions.checkNotNull(authority, "authority"); in applyBatch()
1310 ContentProviderClient provider = acquireContentProviderClient(authority); in applyBatch()
1312 throw new IllegalArgumentException("Unknown authority " + authority); in applyBatch()
1907 public static void requestSync(Account account, String authority, Bundle extras) { in requestSync() argument
1908 requestSyncAsUser(account, authority, UserHandle.myUserId(), extras); in requestSync()
[all …]
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/
DRootsCache.java132 assert(mRecentsRoot.authority == null); in updateAsync()
155 public void updateAuthorityAsync(String authority) { in updateAuthorityAsync() argument
156 final ProviderInfo info = mContext.getPackageManager().resolveContentProvider(authority, 0); in updateAuthorityAsync()
199 for (String authority : mStoppedAuthorities) { in loadStoppedAuthorities()
200 if (DEBUG) Log.d(TAG, "Loading stopped authority " + authority); in loadStoppedAuthorities()
201 mRoots.putAll(authority, loadRootsForAuthority(resolver, authority, true)); in loadStoppedAuthorities()
211 private void loadStoppedAuthority(String authority) { in loadStoppedAuthority() argument
214 if (!mStoppedAuthorities.contains(authority)) { in loadStoppedAuthority()
218 Log.d(TAG, "Loading stopped authority " + authority); in loadStoppedAuthority()
220 mRoots.putAll(authority, loadRootsForAuthority(resolver, authority, true)); in loadStoppedAuthority()
[all …]
DRecentsProvider.java105 .authority(AUTHORITY).appendPath("recent").build(); in buildRecent()
108 public static Uri buildState(String authority, String rootId, String documentId) { in buildState() argument
109 return new Uri.Builder().scheme(ContentResolver.SCHEME_CONTENT).authority(AUTHORITY) in buildState()
110 .appendPath("state").appendPath(authority).appendPath(rootId).appendPath(documentId) in buildState()
116 .authority(AUTHORITY).appendPath("resume").appendPath(packageName).build(); in buildResume()
186 final String authority = uri.getPathSegments().get(1); in query() local
191 new String[] { authority, rootId, documentId }, null, null, sortOrder); in query()
218 final String authority = uri.getPathSegments().get(1); in insert() local
222 key.put(StateColumns.AUTHORITY, authority); in insert()
230 new String[] { authority, rootId, documentId }); in insert()
[all …]
DRecentsLoader.java120 mTasks.put(root, new RecentsTask(root.authority, root.rootId)); in loadInBackgroundLocked()
126 ProviderExecutor.forAuthority(task.authority).execute(task); in loadInBackgroundLocked()
161 Log.e(TAG, "Failed to query Recents for authority: " + task.authority in loadInBackgroundLocked()
259 public final String authority; field in RecentsLoader.RecentsTask
264 public RecentsTask(String authority, String rootId) { in RecentsTask() argument
265 this.authority = authority; in RecentsTask()
290 getContext().getContentResolver(), authority); in runInternal()
292 final Uri uri = DocumentsContract.buildRecentDocumentsUri(authority, rootId); in runInternal()
295 mWithRoot = new RootCursorWrapper(authority, rootId, cursor, MAX_DOCS_FROM_ROOT); in runInternal()
298 Log.w(TAG, "Failed to load " + authority + ", " + rootId, e); in runInternal()
DIconUtils.java27 public static Drawable loadPackageIcon(Context context, String authority, int icon) { in loadPackageIcon() argument
29 if (authority != null) { in loadPackageIcon()
31 final ProviderInfo info = pm.resolveContentProvider(authority, 0); in loadPackageIcon()
43 Context context, String mimeType, String authority, String docId, int mode) { in loadMimeIcon() argument
DProviderExecutor.java34 public static ProviderExecutor forAuthority(String authority) { in forAuthority() argument
36 ProviderExecutor executor = sExecutors.get(authority); in forAuthority()
39 executor.setName("ProviderExecutor: " + authority); in forAuthority()
41 sExecutors.put(authority, executor); in forAuthority()
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/model/
DRootInfo.java83 public String authority; field in RootInfo
104 authority = null; in reset()
124 authority = DurableUtils.readNullableString(in); in read()
143 DurableUtils.writeNullableString(out, authority); in write()
178 public static RootInfo fromRootsCursor(String authority, Cursor cursor) { in fromRootsCursor() argument
180 root.authority = authority; in fromRootsCursor()
233 return DocumentsContract.buildRootUri(authority, rootId); in getUri()
237 return authority == null && rootId == null; in isRecents()
248 return "com.android.externalstorage.documents".equals(authority); in isExternalStorage()
252 return "com.android.providers.downloads.documents".equals(authority); in isDownloads()
[all …]
DDocumentInfo.java49 public String authority; field in DocumentInfo
68 authority = null; in reset()
87 authority = DurableUtils.readNullableString(in); in read()
106 DurableUtils.writeNullableString(out, authority); in write()
143 final String authority = getCursorString(cursor, RootCursorWrapper.COLUMN_AUTHORITY); in fromDirectoryCursor() local
144 return fromCursor(cursor, authority); in fromDirectoryCursor()
147 public static DocumentInfo fromCursor(Cursor cursor, String authority) { in fromCursor() argument
150 info.updateFromCursor(cursor, authority); in fromCursor()
154 public void updateFromCursor(Cursor cursor, String authority) { in updateFromCursor() argument
155 this.authority = authority; in updateFromCursor()
[all …]
/frameworks/base/services/core/java/com/android/server/content/
DSyncStorageEngine.java572 AuthorityInfo authority = getAuthorityLocked( in getSyncAutomatically() local
575 return authority != null && authority.enabled; in getSyncAutomatically()
598 AuthorityInfo authority = in setSyncAutomatically() local
603 if (authority.enabled == sync) { in setSyncAutomatically()
612 if (sync && authority.syncable == AuthorityInfo.SYNCABLE_NOT_INITIALIZED) { in setSyncAutomatically()
613 authority.syncable = AuthorityInfo.NOT_INITIALIZED; in setSyncAutomatically()
615 authority.enabled = sync; in setSyncAutomatically()
630 AuthorityInfo authority = getAuthorityLocked( in getIsSyncable() local
633 if (authority == null) { in getIsSyncable()
636 return authority.syncable; in getIsSyncable()
[all …]
DContentService.java257 public String[] getPackages(String authority, int userId) { in ContentService()
258 return getSyncAdapterPackagesForAuthorityAsUser(authority, userId); in ContentService()
455 public void requestSync(Account account, String authority, Bundle extras) { in requestSync() argument
467 syncManager.scheduleSync(account, userId, uId, authority, extras, in requestSync()
551 public void cancelSync(Account account, String authority, ComponentName cname) { in cancelSync() argument
552 cancelSyncAsUser(account, authority, cname, UserHandle.getCallingUserId()); in cancelSync()
569 public void cancelSyncAsUser(Account account, String authority, ComponentName cname, in cancelSyncAsUser() argument
571 if (authority != null && authority.length() == 0) { in cancelSyncAsUser()
587 info = new SyncStorageEngine.EndPoint(account, authority, userId); in cancelSyncAsUser()
656 public String[] getSyncAdapterPackagesForAuthorityAsUser(String authority, int userId) { in getSyncAdapterPackagesForAuthorityAsUser() argument
[all …]
/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/core/java/android/provider/
DDocumentsContract.java668 public static Uri buildRootsUri(String authority) { in buildRootsUri() argument
670 .authority(authority).appendPath(PATH_ROOT).build(); in buildRootsUri()
679 public static Uri buildRootUri(String authority, String rootId) { in buildRootUri() argument
681 .authority(authority).appendPath(PATH_ROOT).appendPath(rootId).build(); in buildRootUri()
702 public static Uri buildRecentDocumentsUri(String authority, String rootId) { in buildRecentDocumentsUri() argument
704 .authority(authority).appendPath(PATH_ROOT).appendPath(rootId) in buildRecentDocumentsUri()
714 public static Uri buildTreeDocumentUri(String authority, String documentId) { in buildTreeDocumentUri() argument
715 return new Uri.Builder().scheme(ContentResolver.SCHEME_CONTENT).authority(authority) in buildTreeDocumentUri()
727 public static Uri buildDocumentUri(String authority, String documentId) { in buildDocumentUri() argument
729 .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()
124 pw.println(prefix + "authority=" + authority); in dump()
135 out.writeString(authority); in writeToParcel()
159 return "ContentProviderInfo{name=" + authority + " className=" + name + "}"; in toString()
164 authority = in.readString(); in ProviderInfo()
/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()
/frameworks/support/core-utils/java/android/support/v4/content/
DFileProvider.java375 mStrategy = getPathStrategy(context, info.authority); in attachInfo()
398 public static Uri getUriForFile(Context context, String authority, File file) { in getUriForFile() argument
399 final PathStrategy strategy = getPathStrategy(context, authority); in getUriForFile()
551 private static PathStrategy getPathStrategy(Context context, String authority) { in getPathStrategy() argument
554 strat = sCache.get(authority); in getPathStrategy()
557 strat = parsePathStrategy(context, authority); in getPathStrategy()
565 sCache.put(authority, strat); in getPathStrategy()
577 private static PathStrategy parsePathStrategy(Context context, String authority) in parsePathStrategy() argument
579 final SimplePathStrategy strat = new SimplePathStrategy(authority); in parsePathStrategy()
582 .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/packages/DocumentsUI/tests/src/com/android/documentsui/model/
DDocumentInfoTest.java54 private static DocumentInfo createDocInfo(String authority, String docId, String mimeType) { in createDocInfo() argument
56 doc.authority = authority; in createDocInfo()
/frameworks/base/core/java/com/android/server/backup/
DAccountSyncSettingsBackupHelper.java143 accountTypeToAuthorities.get(syncAdapter.accountType).add(syncAdapter.authority); in serializeAccountSyncSettingsToJSON()
167 for (String authority : authorities) { in serializeAccountSyncSettingsToJSON()
168 int syncState = ContentResolver.getIsSyncable(account, authority); in serializeAccountSyncSettingsToJSON()
169 boolean syncEnabled = ContentResolver.getSyncAutomatically(account, authority); in serializeAccountSyncSettingsToJSON()
172 authorityJSON.put(KEY_AUTHORITY_NAME, authority); in serializeAccountSyncSettingsToJSON()
403 JSONObject authority = (JSONObject) authorities.get(i); in restoreExistingAccountSyncSettingsFromJSON() local
404 final String authorityName = authority.getString(KEY_AUTHORITY_NAME); in restoreExistingAccountSyncSettingsFromJSON()
405 boolean wasSyncEnabled = authority.getBoolean(KEY_AUTHORITY_SYNC_ENABLED); in restoreExistingAccountSyncSettingsFromJSON()
406 int wasSyncable = authority.getInt(KEY_AUTHORITY_SYNC_STATE); in restoreExistingAccountSyncSettingsFromJSON()

123456