Searched refs:authority (Results 1 - 25 of 56) 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 DPeriodicSync.java30 /** The authority of the sync. Can be null. */
31 public final String authority; field in class:PeriodicSync
48 public PeriodicSync(Account account, String authority, Bundle extras, long periodInSeconds) { argument
50 this.authority = authority;
67 this.authority = other.authority;
77 public PeriodicSync(Account account, String authority, Bundle extras, argument
80 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 DSyncInfo.java37 * The authority of the provider that is currently being synced.
39 public final String authority; field in class:SyncInfo
49 public SyncInfo(int authorityId, Account account, String authority, argument
53 this.authority = authority;
66 parcel.writeString(authority);
74 authority = parcel.readString();
H A DIContentService.aidl57 void requestSync(in Account account, String authority, in Bundle extras);
59 void cancelSync(in Account account, String authority);
121 * account or authority in the pending list, or actively being processed.
123 boolean isSyncActive(in Account account, String authority);
134 * Returns the status that matches the authority. If there are multiples accounts for
135 * the authority, the one with the latest "lastSuccessTime" status is returned.
136 * @param authority the authority whose row should be selected
137 * @return the SyncStatusInfo for the authority, or null if none exists
139 SyncStatusInfo getSyncStatus(in Account account, String authority);
[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);
/frameworks/base/services/java/com/android/server/content/
H A DSyncStorageEngine.java163 final String authority; field in class:SyncStorageEngine.PendingOperation
172 String authority, Bundle extras, boolean expedited) {
177 this.authority = authority;
189 this.authority = other.authority;
211 final String authority; field in class:SyncStorageEngine.AuthorityInfo
229 authority = toCopy.authority;
245 * Create an authority wit
171 PendingOperation(Account account, int userId, int reason, int source, String authority, Bundle extras, boolean expedited) argument
253 AuthorityInfo(Account account, int userId, String authority, int ident) argument
333 onSyncRequest(Account account, int userId, int reason, String authority, Bundle extras) argument
904 removeAuthority(Account account, int userId, String authority) argument
920 isSyncActive(Account account, int userId, String authority) argument
1331 getCopyOfAuthorityWithSyncStatus( Account account, int userId, String authority) argument
1362 getStatusByAccountAndAuthority(Account account, int userId, String authority) argument
1386 isSyncPending(Account account, int userId, String authority) argument
1911 parsePeriodicSync(XmlPullParser parser, AuthorityInfo authority) argument
2507 requestSync(Account account, int userId, int reason, String authority, Bundle extras) argument
[all...]
H A DSyncQueue.java66 op.account, op.userId, op.authority);
68 SyncAdapterType.newKey(op.authority, op.account.type), op.userId);
70 Log.w(TAG, "Missing sync adapter info for authority " + op.authority + ", userId "
75 op.account, op.userId, op.reason, op.syncSource, op.authority, op.extras,
77 mSyncStorageEngine.getDelayUntilTime(op.account, op.userId, op.authority),
126 operation.authority, operation.extras, operation.expedited);
171 if (op.account.equals(account) && op.authority.equals(providerName)
183 if (op.account.equals(account) && op.authority.equals(providerName)) {
190 public void remove(Account account, int userId, String authority) { argument
[all...]
H A DSyncOperation.java60 public final String authority; field in class:SyncOperation
85 public SyncOperation(Account account, int userId, int reason, int source, String authority, argument
90 this.authority = authority;
145 this.authority = other.authority;
172 .append(authority)
234 sb.append("authority: ").append(authority);
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/
H A DRootsCache.java104 mRecentsRoot.authority = null;
125 * Gather roots from storage providers belonging to given authority.
127 public void updateAuthorityAsync(String authority) { argument
128 final ProviderInfo info = mContext.getPackageManager().resolveContentProvider(authority, 0);
152 for (String authority : mStoppedAuthorities) {
153 if (LOGD) Log.d(TAG, "Loading stopped authority " + authority);
154 mRoots.putAll(authority, loadRootsForAuthority(resolver, authority));
185 mTaskRoots.put(mRecentsRoot.authority, mRecentsRoo
238 loadRootsForAuthority(ContentResolver resolver, String authority) argument
275 getRootOneshot(String authority, String rootId) argument
287 getRootBlocking(String authority, String rootId) argument
295 getRootLocked(String authority, String rootId) argument
[all...]
H A DProviderExecutor.java32 public static Executor forAuthority(String authority) { argument
34 ProviderExecutor executor = sExecutors.get(authority);
37 executor.setName("ProviderExecutor: " + authority);
39 sExecutors.put(authority, executor);
H A DRecentLoader.java93 public final String authority; field in class:RecentLoader.RecentTask
98 public RecentTask(String authority, String rootId) { argument
99 this.authority = authority;
124 getContext().getContentResolver(), authority);
126 final Uri uri = DocumentsContract.buildRecentDocumentsUri(authority, rootId);
129 mWithRoot = new RootCursorWrapper(authority, rootId, cursor, MAX_DOCS_FROM_ROOT);
132 Log.w(TAG, "Failed to load " + authority + ", " + rootId, e);
173 final RecentTask task = new RecentTask(root.authority, root.rootId);
180 ProviderExecutor.forAuthority(task.authority)
[all...]
H A DRecentsProvider.java48 // state/authority/rootId/docId
65 public static final String AUTHORITY = "authority";
81 .authority(AUTHORITY).appendPath("recent").build();
84 public static Uri buildState(String authority, String rootId, String documentId) { argument
85 return new Uri.Builder().scheme(ContentResolver.SCHEME_CONTENT).authority(AUTHORITY)
86 .appendPath("state").appendPath(authority).appendPath(rootId).appendPath(documentId)
92 .authority(AUTHORITY).appendPath("resume").appendPath(packageName).build();
162 final String authority = uri.getPathSegments().get(1);
167 new String[] { authority, rootId, documentId }, null, null, sortOrder);
194 final String authority
[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.java47 public String authority; field in class:DocumentInfo
66 authority = null;
86 authority = DurableUtils.readNullableString(in);
105 DurableUtils.writeNullableString(out, authority);
141 final String authority = getCursorString(cursor, RootCursorWrapper.COLUMN_AUTHORITY);
142 return fromCursor(cursor, authority);
145 public static DocumentInfo fromCursor(Cursor cursor, String authority) { argument
147 info.updateFromCursor(cursor, authority);
151 public void updateFromCursor(Cursor cursor, String authority) { argument
152 this.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/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/test-runner/src/android/test/
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)) {
/frameworks/base/core/java/android/provider/
H A DDocumentsContract.java502 public static Uri buildRootsUri(String authority) { argument
504 .authority(authority).appendPath(PATH_ROOT).build();
513 public static Uri buildRootUri(String authority, String rootId) { argument
515 .authority(authority).appendPath(PATH_ROOT).appendPath(rootId).build();
526 public static Uri buildRecentDocumentsUri(String authority, String rootId) { argument
528 .authority(authority).appendPath(PATH_ROOT).appendPath(rootId)
540 public static Uri buildDocumentUri(String authority, Strin argument
556 buildChildDocumentsUri(String authority, String parentDocumentId) argument
571 buildSearchDocumentsUri( String authority, String rootId, String query) argument
[all...]
H A DSearchRecentSuggestions.java123 * @param authority This must match the authority that you've declared in your manifest.
131 public SearchRecentSuggestions(Context context, String authority, int mode) { argument
132 if (TextUtils.isEmpty(authority) ||
141 mAuthority = new String(authority);
/frameworks/base/core/java/android/net/
H A DUri.java98 ambiguous in terms of differentiating between an authority component
102 matching. In other words, the authority component wins."
105 <scheme>://<authority><path>?<query>
199 * Gets the decoded authority part of this URI. For
200 * server addresses, the authority is structured as follows:
205 * @return the authority for this URI or null if not present
210 * Gets the encoded authority part of this URI. For
211 * server addresses, the authority is structured as follows:
216 * @return the authority for this URI or null if not present
221 * Gets the decoded user information from the authority
565 private Part authority; field in class:Uri.StringUri
1136 private final Part authority; field in class:Uri.HierarchicalUri
1141 HierarchicalUri(String scheme, Part authority, PathPart path, Part query, Part fragment) argument
1318 private Part authority; field in class:Uri.Builder
1361 authority(Part authority) argument
1372 authority(String authority) argument
1379 encodedAuthority(String authority) argument
[all...]
/frameworks/base/services/tests/servicestests/src/com/android/server/content/
H A DSyncStorageEngineTest.java77 final String authority = "testprovider";
86 account, 0, SyncOperation.REASON_PERIODIC, authority, time0,
113 assertEquals(pop.authority, popRetrieved.authority);
128 final String authority = "testprovider";
136 PeriodicSync sync1 = new PeriodicSync(account1, authority, extras1, period1);
137 PeriodicSync sync2 = new PeriodicSync(account1, authority, extras2, period1);
138 PeriodicSync sync3 = new PeriodicSync(account1, authority, extras2, period2);
139 PeriodicSync sync4 = new PeriodicSync(account2, authority, extras2, period2);
143 removePeriodicSyncs(engine, account1, 0, authority);
238 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 354 milliseconds

123