Home
last modified time | relevance | path

Searched refs:authority (Results 1 – 25 of 101) 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()
DContentResolver.java1152 String authority = uri.getAuthority(); in getResourceId() local
1154 if (TextUtils.isEmpty(authority)) { in getResourceId()
1158 r = mContext.getPackageManager().getResourcesForApplication(authority); in getResourceId()
1176 id = r.getIdentifier(path.get(1), path.get(0), authority); in getResourceId()
1236 public ContentProviderResult[] applyBatch(String authority, in applyBatch() argument
1239 ContentProviderClient provider = acquireContentProviderClient(authority); in applyBatch()
1241 throw new IllegalArgumentException("Unknown authority " + authority); in applyBatch()
1765 public static void requestSync(Account account, String authority, Bundle extras) { in requestSync() argument
1766 requestSyncAsUser(account, authority, UserHandle.myUserId(), extras); in requestSync()
1773 public static void requestSyncAsUser(Account account, String authority, int userId, in requestSyncAsUser() argument
[all …]
DAbstractThreadedSyncAdapter.java151 public void startSync(ISyncContext syncContext, String authority, Account account, in startSync() argument
165 if (ContentResolver.getIsSyncable(account, authority) < 0) { in startSync()
166 ContentResolver.setIsSyncable(account, authority, 1); in startSync()
175 syncContextClient, authority, account, extras); in startSync()
213 public void initialize(Account account, String authority) throws RemoteException { in initialize() argument
216 startSync(null, authority, account, extras); in initialize()
232 private SyncThread(String name, SyncContext syncContext, String authority, in SyncThread() argument
236 mAuthority = authority; in SyncThread()
306 String authority, ContentProviderClient provider, SyncResult syncResult); in onPerformSync() 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
154 boolean isSyncActive(in Account account, String authority, in ComponentName cname); in isSyncActive() argument
164 SyncStatusInfo getSyncStatus(in Account account, String authority, in ComponentName cname); in getSyncStatus() argument
165 SyncStatusInfo getSyncStatusAsUser(in Account account, String authority, in ComponentName cname, in getSyncStatusAsUser() argument
175 boolean isSyncPending(in Account account, String authority, in ComponentName cname); in isSyncPending() argument
176 boolean isSyncPendingAsUser(in Account account, String authority, in ComponentName cname, in isSyncPendingAsUser() argument
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()
DISyncAdapter.aidl38 void startSync(ISyncContext syncContext, String authority, in startSync() argument
54 void initialize(in Account account, String authority); in initialize() argument
/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
68 authority = null; in reset()
88 authority = DurableUtils.readNullableString(in); in read()
107 DurableUtils.writeNullableString(out, authority); in write()
142 public static RootInfo fromRootsCursor(String authority, Cursor cursor) { in fromRootsCursor() argument
144 root.authority = authority; in fromRootsCursor()
175 return authority == null && rootId == null; in isRecents()
179 return "com.android.externalstorage.documents".equals(authority); in isExternalStorage()
183 return "com.android.providers.downloads.documents".equals(authority); in isDownloads()
187 return "com.android.providers.media.documents".equals(authority) in isImages()
[all …]
DDocumentInfo.java56 public String authority; field in DocumentInfo
75 authority = null; in reset()
95 authority = DurableUtils.readNullableString(in); in read()
114 DurableUtils.writeNullableString(out, authority); in write()
150 final String authority = getCursorString(cursor, RootCursorWrapper.COLUMN_AUTHORITY); in fromDirectoryCursor() local
151 return fromCursor(cursor, authority); in fromDirectoryCursor()
154 public static DocumentInfo fromCursor(Cursor cursor, String authority) { in fromCursor() argument
156 info.updateFromCursor(cursor, authority); in fromCursor()
160 public void updateFromCursor(Cursor cursor, String authority) { in updateFromCursor() argument
161 this.authority = authority; in updateFromCursor()
[all …]
/frameworks/base/services/core/java/com/android/server/content/
DSyncStorageEngine.java173 PendingOperation(AuthorityInfo authority, int reason, int source, in PendingOperation() argument
175 this.target = authority.target; in PendingOperation()
180 this.authorityId = authority.ident; in PendingOperation()
627 AuthorityInfo authority = getAuthorityLocked( in getSyncAutomatically() local
630 return authority != null && authority.enabled; in getSyncAutomatically()
653 AuthorityInfo authority = in setSyncAutomatically() local
658 if (authority.enabled == sync) { in setSyncAutomatically()
664 authority.enabled = sync; in setSyncAutomatically()
678 AuthorityInfo authority = getAuthorityLocked( in getIsSyncable() local
681 if (authority == null) { in getIsSyncable()
[all …]
DContentService.java316 public void requestSync(Account account, String authority, Bundle extras) { in requestSync() argument
327 syncManager.scheduleSync(account, userId, uId, authority, extras, in requestSync()
406 public void cancelSync(Account account, String authority, ComponentName cname) { in cancelSync() argument
407 cancelSyncAsUser(account, authority, cname, UserHandle.getCallingUserId()); in cancelSync()
424 public void cancelSyncAsUser(Account account, String authority, ComponentName cname, in cancelSyncAsUser() argument
426 if (authority != null && authority.length() == 0) { in cancelSyncAsUser()
439 info = new SyncStorageEngine.EndPoint(account, authority, userId); in cancelSyncAsUser()
568 public void addPeriodicSync(Account account, String authority, Bundle extras, in addPeriodicSync() argument
573 if (TextUtils.isEmpty(authority)) { in addPeriodicSync()
590 new SyncStorageEngine.EndPoint(account, authority, userId); in addPeriodicSync()
[all …]
/frameworks/base/core/java/android/provider/
DDocumentsContract.java533 public static Uri buildRootsUri(String authority) { in buildRootsUri() argument
535 .authority(authority).appendPath(PATH_ROOT).build(); in buildRootsUri()
544 public static Uri buildRootUri(String authority, String rootId) { in buildRootUri() argument
546 .authority(authority).appendPath(PATH_ROOT).appendPath(rootId).build(); in buildRootUri()
557 public static Uri buildRecentDocumentsUri(String authority, String rootId) { in buildRecentDocumentsUri() argument
559 .authority(authority).appendPath(PATH_ROOT).appendPath(rootId) in buildRecentDocumentsUri()
569 public static Uri buildTreeDocumentUri(String authority, String documentId) { in buildTreeDocumentUri() argument
570 return new Uri.Builder().scheme(ContentResolver.SCHEME_CONTENT).authority(authority) in buildTreeDocumentUri()
582 public static Uri buildDocumentUri(String authority, String documentId) { in buildDocumentUri() argument
584 .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.java568 private Part authority; field in Uri.StringUri
571 if (authority == null) { in getAuthorityPart()
574 return authority = Part.fromEncoded(encodedAuthority); in getAuthorityPart()
577 return authority; in getAuthorityPart()
782 .authority(getAuthorityPart()) in buildUpon()
1058 String authority = getEncodedAuthority(); in parseUserInfo() local
1059 if (authority == null) { in parseUserInfo()
1063 int end = authority.indexOf('@'); in parseUserInfo()
1064 return end == NOT_FOUND ? null : authority.substring(0, end); in parseUserInfo()
1081 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 …]

12345