Searched refs:authority (Results 1 - 25 of 63) sorted by relevance

123

/frameworks/base/core/java/android/content/
H A DSyncAdapterType.java28 public final String authority; field in class:SyncAdapterType
37 public SyncAdapterType(String authority, String accountType, boolean userVisible, argument
39 if (TextUtils.isEmpty(authority)) {
40 throw new IllegalArgumentException("the authority must not be empty: " + authority);
45 this.authority = authority;
56 public SyncAdapterType(String authority, String accountType, boolean userVisible, argument
61 if (TextUtils.isEmpty(authority)) {
62 throw new IllegalArgumentException("the authority mus
77 SyncAdapterType(String authority, String accountType) argument
151 newKey(String authority, String accountType) argument
[all...]
H A DSyncInfo.java36 * The authority of the provider that is currently being synced.
38 public final String authority; field in class:SyncInfo
48 public SyncInfo(int authorityId, Account account, String authority, long startTime) { argument
51 this.authority = authority;
59 this.authority = other.authority;
72 parcel.writeString(authority);
80 authority = parcel.readString();
H A DPeriodicSync.java30 /** The authority of the sync. Can be null. */
31 public final String authority; field in class:PeriodicSync
45 public PeriodicSync(Account account, String authority, Bundle extras, long periodInSeconds) { argument
47 this.authority = authority;
64 this.authority = other.authority;
74 public PeriodicSync(Account account, String authority, Bundle extras, argument
77 this.authority = authority;
[all...]
H A DISyncAdapter.aidl34 * @param authority the authority that should be synced
38 void startSync(ISyncContext syncContext, String authority,
49 * Initialize the SyncAdapter for this account and authority.
52 * @param authority the authority that should be synced
54 void initialize(in Account account, String authority);
H A DIContentService.aidl58 void requestSync(in Account account, String authority, in Bundle extras);
64 void cancelSync(in Account account, String authority, in ComponentName cname);
65 void cancelSyncAsUser(in Account account, String authority, in ComponentName cname, int userId);
89 * Get a list of periodic operations for a specified authority, or service.
90 * @param account account for authority, must be null if cname is non-null.
147 * Returns true if there is currently a operation for the given account/authority or service
149 * @param account account for authority, must be null if cname is non-null.
154 boolean isSyncActive(in Account account, String authority, in ComponentName cname);
157 * Returns the status that matches the authority. If there are multiples accounts for
158 * the authority, th
[all...]
H A DAbstractThreadedSyncAdapter.java54 * android:contentAuthority="authority"
65 * indicate which content authority and for which account types this sync adapter serves.
70 * with an authority whenever that authority's content provider does a
151 public void startSync(ISyncContext syncContext, String authority, Account account, argument
165 if (ContentResolver.getIsSyncable(account, authority) < 0) {
166 ContentResolver.setIsSyncable(account, authority, 1);
175 syncContextClient, authority, account, extras);
213 public void initialize(Account account, String authority) throws RemoteException { argument
216 startSync(null, authority, accoun
232 SyncThread(String name, SyncContext syncContext, String authority, Account account, Bundle extras) argument
305 onPerformSync(Account account, Bundle extras, String authority, ContentProviderClient provider, SyncResult syncResult) argument
[all...]
H A DSyncAdaptersCache.java51 final String authority =
55 if (authority == null || accountType == null) {
72 return new SyncAdapterType(authority, accountType, userVisible, supportsUploading,
81 out.attribute(null, "authority", item.authority);
87 final String authority = parser.getAttributeValue(null, "authority");
89 return SyncAdapterType.newKey(authority, accountType);
H A DContentResolver.java149 * the given account/authority pair. One required initialization step is to
1152 String authority = uri.getAuthority();
1154 if (TextUtils.isEmpty(authority)) {
1155 throw new FileNotFoundException("No authority: " + uri);
1158 r = mContext.getPackageManager().getResourcesForApplication(authority);
1160 throw new FileNotFoundException("No package found for authority: " + uri);
1176 id = r.getIdentifier(path.get(1), path.get(0), authority);
1228 * @param authority the authority of the ContentProvider to which this batch should be applied
1236 public ContentProviderResult[] applyBatch(String authority, argument
1765 requestSync(Account account, String authority, Bundle extras) argument
1773 requestSyncAsUser(Account account, String authority, int userId, Bundle extras) argument
1859 cancelSync(Account account, String authority) argument
1870 cancelSyncAsUser(Account account, String authority, int userId) argument
1910 getSyncAutomatically(Account account, String authority) argument
1922 getSyncAutomaticallyAsUser(Account account, String authority, int userId) argument
1940 setSyncAutomatically(Account account, String authority, boolean sync) argument
1948 setSyncAutomaticallyAsUser(Account account, String authority, boolean sync, int userId) argument
1989 addPeriodicSync(Account account, String authority, Bundle extras, long pollFrequency) argument
2039 removePeriodicSync(Account account, String authority, Bundle extras) argument
2082 getPeriodicSyncs(Account account, String authority) argument
2096 getIsSyncable(Account account, String authority) argument
2108 getIsSyncableAsUser(Account account, String authority, int userId) argument
2122 setIsSyncable(Account account, String authority, int syncable) argument
2193 isSyncActive(Account account, String authority) argument
2270 getSyncStatus(Account account, String authority) argument
2282 getSyncStatusAsUser(Account account, String authority, int userId) argument
2299 isSyncPending(Account account, String authority) argument
2307 isSyncPendingAsUser(Account account, String authority, int userId) argument
[all...]
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/model/
H A DRootInfo.java47 public String authority; field in class:RootInfo
68 authority = null;
88 authority = DurableUtils.readNullableString(in);
107 DurableUtils.writeNullableString(out, authority);
142 public static RootInfo fromRootsCursor(String authority, Cursor cursor) { argument
144 root.authority = authority;
175 return authority == null && rootId == null;
179 return "com.android.externalstorage.documents".equals(authority);
183 return "com.android.providers.downloads.documents".equals(authority);
[all...]
H A DDocumentInfo.java56 public String authority; field in class:DocumentInfo
75 authority = null;
95 authority = DurableUtils.readNullableString(in);
114 DurableUtils.writeNullableString(out, authority);
150 final String authority = getCursorString(cursor, RootCursorWrapper.COLUMN_AUTHORITY);
151 return fromCursor(cursor, authority);
154 public static DocumentInfo fromCursor(Cursor cursor, String authority) { argument
156 info.updateFromCursor(cursor, authority);
160 public void updateFromCursor(Cursor cursor, String authority) { argument
161 this.authority
[all...]
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/
H A DRootsCache.java104 mRecentsRoot.authority = null;
123 * Gather roots from storage providers belonging to given authority.
125 public void updateAuthorityAsync(String authority) { argument
126 final ProviderInfo info = mContext.getPackageManager().resolveContentProvider(authority, 0);
150 for (String authority : mStoppedAuthorities) {
151 if (LOGD) Log.d(TAG, "Loading stopped authority " + authority);
152 mRoots.putAll(authority, loadRootsForAuthority(resolver, authority));
189 mTaskRoots.put(mRecentsRoot.authority, mRecentsRoo
243 loadRootsForAuthority(ContentResolver resolver, String authority) argument
280 getRootOneshot(String authority, String rootId) argument
292 getRootBlocking(String authority, String rootId) argument
300 getRootLocked(String authority, String rootId) argument
[all...]
H A DRecentsProvider.java67 // state/authority/rootId/docId
84 public static final String AUTHORITY = "authority";
100 .authority(AUTHORITY).appendPath("recent").build();
103 public static Uri buildState(String authority, String rootId, String documentId) { argument
104 return new Uri.Builder().scheme(ContentResolver.SCHEME_CONTENT).authority(AUTHORITY)
105 .appendPath("state").appendPath(authority).appendPath(rootId).appendPath(documentId)
111 .authority(AUTHORITY).appendPath("resume").appendPath(packageName).build();
181 final String authority = uri.getPathSegments().get(1);
186 new String[] { authority, rootId, documentId }, null, null, sortOrder);
213 final String authority
[all...]
H A DProviderExecutor.java37 public static ProviderExecutor forAuthority(String authority) { argument
39 ProviderExecutor executor = sExecutors.get(authority);
42 executor.setName("ProviderExecutor: " + authority);
44 sExecutors.put(authority, executor);
H A DRecentLoader.java97 public final String authority; field in class:RecentLoader.RecentTask
102 public RecentTask(String authority, String rootId) { argument
103 this.authority = authority;
128 getContext().getContentResolver(), authority);
130 final Uri uri = DocumentsContract.buildRecentDocumentsUri(authority, rootId);
133 mWithRoot = new RootCursorWrapper(authority, rootId, cursor, MAX_DOCS_FROM_ROOT);
136 Log.w(TAG, "Failed to load " + authority + ", " + rootId, e);
177 final RecentTask task = new RecentTask(root.authority, root.rootId);
184 ProviderExecutor.forAuthority(task.authority)
[all...]
/frameworks/ex/common/java/com/android/common/
H A DSearch.java83 String authority = searchable.getSuggestAuthority();
84 if (authority == null) {
90 .authority(authority)
/frameworks/base/core/java/android/content/pm/
H A DProviderInfo.java34 public String authority = null; field in class:ProviderInfo
105 authority = orig.authority;
119 pw.println(prefix + "authority=" + authority);
129 out.writeString(authority);
153 return "ContentProviderInfo{name=" + authority + " className=" + name + "}";
158 authority = in.readString();
/frameworks/base/test-runner/src/android/test/
H A DProviderTestCase2.java36 * given an authority. This allows you to inject test providers and to null out
101 * @param providerAuthority The provider's authority string
150 Context context, Class<T> providerClass, String authority)
154 providerInfo.authority = authority;
192 * with an authority name set to the authority parameter, and using an SQLite database as
209 * @param authority The authority string to associated with the test provider
221 Context targetContext, String filenamePrefix, Class<T> providerClass, String authority,
149 createProviderForTest( Context context, Class<T> providerClass, String authority) argument
220 newResolverWithContentProviderFromSql( Context targetContext, String filenamePrefix, Class<T> providerClass, String authority, String databaseName, int databaseVersion, String sql) argument
[all...]
H A DSyncBaseInstrumentation.java47 protected void syncProvider(Uri uri, String accountName, String authority) throws Exception { argument
52 ContentResolver.requestSync(account, authority, extras);
67 if (ContentResolver.isSyncActive(account, authority)) {
H A DProviderTestCase.java96 Context targetContext, Class<T> providerClass, String authority,
109 T provider = ProviderTestCase2.createProviderForTest(context, providerClass, authority);
110 resolver.addProvider(authority, provider);
95 newResolverWithContentProviderFromSql( Context targetContext, Class<T> providerClass, String authority, String databaseName, int databaseVersion, String sql) argument
/frameworks/opt/vcard/tests/src/com/android/vcard/tests/testutils/
H A DImportTestResolver.java35 public ContentProviderResult[] applyBatch(String authority, argument
37 equalsString(authority, RawContacts.CONTENT_URI.toString());
/frameworks/base/services/core/java/com/android/server/content/
H A DSyncStorageEngine.java173 PendingOperation(AuthorityInfo authority, int reason, int source, argument
175 this.target = authority.target;
180 this.authorityId = authority.ident;
627 AuthorityInfo authority = getAuthorityLocked(
630 return authority != null && authority.enabled;
653 AuthorityInfo authority =
658 if (authority.enabled == sync) {
664 authority.enabled = sync;
678 AuthorityInfo authority
2701 requestSync(Account account, int userId, int reason, String authority, Bundle extras) argument
[all...]
/frameworks/base/core/java/android/provider/
H A DDocumentsContract.java533 public static Uri buildRootsUri(String authority) { argument
535 .authority(authority).appendPath(PATH_ROOT).build();
544 public static Uri buildRootUri(String authority, String rootId) { argument
546 .authority(authority).appendPath(PATH_ROOT).appendPath(rootId).build();
557 public static Uri buildRecentDocumentsUri(String authority, String rootId) { argument
559 .authority(authority).appendPath(PATH_ROOT).appendPath(rootId)
569 public static Uri buildTreeDocumentUri(String authority, Strin argument
582 buildDocumentUri(String authority, String documentId) argument
637 buildChildDocumentsUri(String authority, String parentDocumentId) argument
683 buildSearchDocumentsUri( String authority, String rootId, String query) argument
715 isDocumentsProvider(Context context, String authority) argument
[all...]
/frameworks/base/core/java/android/net/
H A DUri.java101 ambiguous in terms of differentiating between an authority component
105 matching. In other words, the authority component wins."
108 <scheme>://<authority><path>?<query>
202 * Gets the decoded authority part of this URI. For
203 * server addresses, the authority is structured as follows:
208 * @return the authority for this URI or null if not present
213 * Gets the encoded authority part of this URI. For
214 * server addresses, the authority is structured as follows:
219 * @return the authority for this URI or null if not present
224 * Gets the decoded user information from the authority
568 private Part authority; field in class:Uri.StringUri
1139 private final Part authority; field in class:Uri.HierarchicalUri
1144 HierarchicalUri(String scheme, Part authority, PathPart path, Part query, Part fragment) argument
1321 private Part authority; field in class:Uri.Builder
1364 authority(Part authority) argument
1375 authority(String authority) argument
1382 encodedAuthority(String authority) argument
[all...]
/frameworks/base/services/tests/servicestests/src/com/android/server/content/
H A DSyncStorageEngineTest.java92 final String authority = "testprovider";
102 authority,
217 final String authority = "testprovider";
225 PeriodicSync sync1 = new PeriodicSync(account1, authority, extras1, period1);
226 EndPoint end1 = new EndPoint(account1, authority, 0);
228 PeriodicSync sync2 = new PeriodicSync(account1, authority, extras2, period1);
229 PeriodicSync sync3 = new PeriodicSync(account1, authority, extras2, period2);
230 PeriodicSync sync4 = new PeriodicSync(account2, authority, extras2, period2);
234 removePeriodicSyncs(engine, account1, 0, authority);
235 removePeriodicSyncs(engine, account2, 0, authority);
337 removePeriodicSyncs(SyncStorageEngine engine, Account account, int userId, String authority) argument
[all...]
/frameworks/support/v4/java/android/support/v4/content/
H A DFileProvider.java85 * attribute to a URI authority based on a domain you control; for example, if you control the
86 * domain <code>mydomain.com</code> you should use the authority
222 * authority <code>com.mydomain.fileprovider</code>. To get a content URI for the file
352 mStrategy = getPathStrategy(context, info.authority);
367 * @param authority The authority of a {@link FileProvider} defined in a
375 public static Uri getUriForFile(Context context, String authority, File file) { argument
376 final PathStrategy strategy = getPathStrategy(context, authority);
525 * Return {@link PathStrategy} for given authority, either by parsing or
528 private static PathStrategy getPathStrategy(Context context, String authority) { argument
554 parsePathStrategy(Context context, String authority) argument
634 SimplePathStrategy(String authority) argument
[all...]

Completed in 511 milliseconds

123