/frameworks/base/core/java/android/content/ |
H A D | SyncAdapterType.java | 28 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 D | SyncInfo.java | 37 * 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; 61 this.authority = other.authority; 74 parcel.writeString(authority); 82 authority = parcel.readString();
|
H A D | PeriodicSync.java | 30 /** 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 D | ISyncAdapter.aidl | 34 * @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 D | IContentService.aidl | 57 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 D | AbstractThreadedSyncAdapter.java | 54 * 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 D | SyncAdaptersCache.java | 51 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 D | SyncStorageEngine.java | 163 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 1351 getCopyOfAuthorityWithSyncStatus( Account account, int userId, String authority) argument 1382 getStatusByAccountAndAuthority(Account account, int userId, String authority) argument 1406 isSyncPending(Account account, int userId, String authority) argument 1931 parsePeriodicSync(XmlPullParser parser, AuthorityInfo authority) argument 2527 requestSync(Account account, int userId, int reason, String authority, Bundle extras) argument [all...] |
H A D | SyncQueue.java | 66 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), 124 operation.authority, operation.extras, operation.isExpedited()); 169 if (op.account.equals(account) && op.authority.equals(providerName) 181 if (op.account.equals(account) && op.authority.equals(providerName)) { 188 public void remove(Account account, int userId, String authority) { argument [all...] |
H A D | SyncOperation.java | 60 public final String authority; field in class:SyncOperation 86 public SyncOperation(Account account, int userId, int reason, int source, String authority, argument 91 this.authority = authority; 124 this.authority = other.authority; 178 .append(authority) 240 sb.append("authority: ").append(authority);
|
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/ |
H A D | RootsCache.java | 104 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 239 loadRootsForAuthority(ContentResolver resolver, String authority) argument 276 getRootOneshot(String authority, String rootId) argument 288 getRootBlocking(String authority, String rootId) argument 296 getRootLocked(String authority, String rootId) argument [all...] |
H A D | RecentsProvider.java | 67 // 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 D | ProviderExecutor.java | 37 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 D | RecentLoader.java | 97 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/base/packages/DocumentsUI/src/com/android/documentsui/model/ |
H A D | RootInfo.java | 47 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 D | DocumentInfo.java | 47 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 D | Search.java | 83 String authority = searchable.getSuggestAuthority(); 84 if (authority == null) { 90 .authority(authority)
|
/frameworks/base/core/java/android/content/pm/ |
H A D | ProviderInfo.java | 34 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 D | ImportTestResolver.java | 35 public ContentProviderResult[] applyBatch(String authority, argument 37 equalsString(authority, RawContacts.CONTENT_URI.toString());
|
/frameworks/base/test-runner/src/android/test/ |
H A D | SyncBaseInstrumentation.java | 47 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 D | DocumentsContract.java | 506 public static Uri buildRootsUri(String authority) { argument 508 .authority(authority).appendPath(PATH_ROOT).build(); 517 public static Uri buildRootUri(String authority, String rootId) { argument 519 .authority(authority).appendPath(PATH_ROOT).appendPath(rootId).build(); 530 public static Uri buildRecentDocumentsUri(String authority, String rootId) { argument 532 .authority(authority).appendPath(PATH_ROOT).appendPath(rootId) 544 public static Uri buildDocumentUri(String authority, Strin argument 560 buildChildDocumentsUri(String authority, String parentDocumentId) argument 575 buildSearchDocumentsUri( String authority, String rootId, String query) argument [all...] |
H A D | SearchRecentSuggestions.java | 123 * @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 D | Uri.java | 98 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 D | SyncStorageEngineTest.java | 77 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 D | FileProvider.java | 85 * 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...] |