/frameworks/base/core/java/android/content/ |
H A D | SyncInfo.java | 43 * The authority of the provider that is currently being synced. 45 public final String authority; field in class:SyncInfo 61 int authorityId, String authority, long startTime) { 62 return new SyncInfo(authorityId, REDACTED_ACCOUNT, authority, startTime); 66 public SyncInfo(int authorityId, Account account, String authority, long startTime) { argument 69 this.authority = authority; 77 this.authority = other.authority; 90 parcel.writeString(authority); 60 createAccountRedacted( int authorityId, String authority, long startTime) argument [all...] |
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 | PeriodicSync.java | 32 /** The authority of the sync. Can be null. */ 33 public final String authority; field in class:PeriodicSync 47 public PeriodicSync(Account account, String authority, Bundle extras, long periodInSeconds) { argument 49 this.authority = authority; 66 this.authority = other.authority; 76 public PeriodicSync(Account account, String authority, Bundle extras, argument 79 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 | SyncAdaptersCache.java | 62 final String authority = 66 if (authority == null || accountType == null) { 83 return new SyncAdapterType(authority, accountType, userVisible, supportsUploading, 102 public String[] getSyncAdapterPackagesForAuthority(String authority, int userId) { argument 110 if (adapterMap.containsKey(authority)) { 111 return adapterMap.get(authority); 119 if (authority.equals(serviceInfo.type.authority) 126 adapterMap.put(authority, syncAdapterPackages); 143 out.attribute(null, "authority", ite [all...] |
H A D | IContentService.aidl | 58 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. 146 String[] getSyncAdapterPackagesForAuthorityAsUser(String authority, int userId); 149 * Returns true if there is currently a operation for the given account/authority or service 151 * @param account account for authority, must be null if cname is non-null. 156 boolean isSyncActive(in Account account, String authority, in ComponentName cname); 159 * Returns the status that matches the authority [all...] |
H A D | AbstractThreadedSyncAdapter.java | 67 * android:contentAuthority="authority" 78 * indicate which content authority and for which account types this sync adapter serves. 83 * with an authority whenever that authority's content provider does a 164 public void startSync(ISyncContext syncContext, String authority, Account account, argument 178 if (ContentResolver.getIsSyncable(account, authority) < 0) { 179 ContentResolver.setIsSyncable(account, authority, 1); 188 syncContextClient, authority, account, extras); 226 public void initialize(Account account, String authority) throws RemoteException { argument 229 startSync(null, authority, accoun 245 SyncThread(String name, SyncContext syncContext, String authority, Account account, Bundle extras) argument 322 onPerformSync(Account account, Bundle extras, String authority, ContentProviderClient provider, SyncResult syncResult) argument 335 onSecurityException(Account account, Bundle extras, String authority, SyncResult syncResult) argument [all...] |
H A D | ContentResolver.java | 168 * the given account/authority pair. One required initialization step is to 1218 String authority = uri.getAuthority(); 1220 if (TextUtils.isEmpty(authority)) { 1221 throw new FileNotFoundException("No authority: " + uri); 1224 r = mContext.getPackageManager().getResourcesForApplication(authority); 1226 throw new FileNotFoundException("No package found for authority: " + uri); 1242 id = r.getIdentifier(path.get(1), path.get(0), authority); 1295 * @param authority the authority of the ContentProvider to which this batch should be applied 1303 public @NonNull ContentProviderResult[] applyBatch(@NonNull String authority, argument 1904 requestSync(Account account, String authority, Bundle extras) argument 1912 requestSyncAsUser(Account account, String authority, @UserIdInt int userId, Bundle extras) argument 1998 cancelSync(Account account, String authority) argument 2009 cancelSyncAsUser(Account account, String authority, @UserIdInt int userId) argument 2045 getSyncAdapterPackagesForAuthorityAsUser(String authority, @UserIdInt int userId) argument 2063 getSyncAutomatically(Account account, String authority) argument 2075 getSyncAutomaticallyAsUser(Account account, String authority, @UserIdInt int userId) argument 2093 setSyncAutomatically(Account account, String authority, boolean sync) argument 2101 setSyncAutomaticallyAsUser(Account account, String authority, boolean sync, @UserIdInt int userId) argument 2143 addPeriodicSync(Account account, String authority, Bundle extras, long pollFrequency) argument 2193 removePeriodicSync(Account account, String authority, Bundle extras) argument 2236 getPeriodicSyncs(Account account, String authority) argument 2250 getIsSyncable(Account account, String authority) argument 2262 getIsSyncableAsUser(Account account, String authority, @UserIdInt int userId) argument 2277 setIsSyncable(Account account, String authority, int syncable) argument 2348 isSyncActive(Account account, String authority) argument 2425 getSyncStatus(Account account, String authority) argument 2437 getSyncStatusAsUser(Account account, String authority, @UserIdInt int userId) argument 2454 isSyncPending(Account account, String authority) argument 2462 isSyncPendingAsUser(Account account, String authority, @UserIdInt int userId) argument [all...] |
/frameworks/base/packages/DocumentsUI/tests/src/com/android/documentsui/dirlist/ |
H A D | TestContext.java | 27 * Returns a Context configured with test provider for authority. 29 static Context createStorageTestContext(Context context, String authority) { argument 32 testResolver.addProvider(authority, provider);
|
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/ |
H A D | RootsCache.java | 132 assert(mRecentsRoot.authority == null); 153 * Gather roots from storage providers belonging to given authority. 155 public void updateAuthorityAsync(String authority) { argument 156 final ProviderInfo info = mContext.getPackageManager().resolveContentProvider(authority, 0); 199 for (String authority : mStoppedAuthorities) { 200 if (DEBUG) Log.d(TAG, "Loading stopped authority " + authority); 201 mRoots.putAll(authority, loadRootsForAuthority(resolver, authority, true)); 208 * Load roots from a stopped authority 211 loadStoppedAuthority(String authority) argument 297 loadRootsForAuthority(ContentResolver resolver, String authority, boolean forceRefresh) argument 352 getRootOneshot(String authority, String rootId) argument 364 getRootBlocking(String authority, String rootId) argument 372 getRootLocked(String authority, String rootId) argument 427 getRootsForAuthorityBlocking(String authority) argument [all...] |
H A D | RecentsProvider.java | 69 // state/authority/rootId/docId 86 public static final String AUTHORITY = "authority"; 105 .authority(AUTHORITY).appendPath("recent").build(); 108 public static Uri buildState(String authority, String rootId, String documentId) { argument 109 return new Uri.Builder().scheme(ContentResolver.SCHEME_CONTENT).authority(AUTHORITY) 110 .appendPath("state").appendPath(authority).appendPath(rootId).appendPath(documentId) 116 .authority(AUTHORITY).appendPath("resume").appendPath(packageName).build(); 186 final String authority = uri.getPathSegments().get(1); 191 new String[] { authority, rootId, documentId }, null, null, sortOrder); 218 final String authority [all...] |
H A D | ProviderExecutor.java | 34 public static ProviderExecutor forAuthority(String authority) { argument 36 ProviderExecutor executor = sExecutors.get(authority); 39 executor.setName("ProviderExecutor: " + authority); 41 sExecutors.put(authority, executor);
|
H A D | RecentsLoader.java | 120 mTasks.put(root, new RecentsTask(root.authority, root.rootId)); 126 ProviderExecutor.forAuthority(task.authority).execute(task); 256 public final String authority; field in class:RecentsLoader.RecentsTask 261 public RecentsTask(String authority, String rootId) { argument 262 this.authority = authority; 287 getContext().getContentResolver(), authority); 289 final Uri uri = DocumentsContract.buildRecentDocumentsUri(authority, rootId); 292 mWithRoot = new RootCursorWrapper(authority, rootId, cursor, MAX_DOCS_FROM_ROOT); 295 Log.w(TAG, "Failed to load " + authority [all...] |
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/model/ |
H A D | RootInfo.java | 83 public String authority; field in class:RootInfo 104 authority = null; 124 authority = DurableUtils.readNullableString(in); 143 DurableUtils.writeNullableString(out, authority); 178 public static RootInfo fromRootsCursor(String authority, Cursor cursor) { argument 180 root.authority = authority; 233 return DocumentsContract.buildRootUri(authority, rootId); 237 return authority == null && rootId == null; 248 return "com.android.externalstorage.documents".equals(authority); [all...] |
H A D | DocumentInfo.java | 49 public String authority; field in class:DocumentInfo 68 authority = null; 87 authority = DurableUtils.readNullableString(in); 106 DurableUtils.writeNullableString(out, authority); 143 final String authority = getCursorString(cursor, RootCursorWrapper.COLUMN_AUTHORITY); 144 return fromCursor(cursor, authority); 147 public static DocumentInfo fromCursor(Cursor cursor, String authority) { argument 150 info.updateFromCursor(cursor, authority); 154 public void updateFromCursor(Cursor cursor, String authority) { argument 155 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; 124 pw.println(prefix + "authority=" + authority); 135 out.writeString(authority); 159 return "ContentProviderInfo{name=" + authority + " className=" + name + "}"; 164 authority = in.readString();
|
/frameworks/base/test-runner/src/android/test/ |
H A D | ProviderTestCase2.java | 36 * 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 D | SyncBaseInstrumentation.java | 53 protected void syncProvider(Uri uri, String accountName, String authority) throws Exception { argument 58 ContentResolver.requestSync(account, authority, extras); 73 if (ContentResolver.isSyncActive(account, authority)) {
|
H A D | ProviderTestCase.java | 96 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 D | ImportTestResolver.java | 35 public ContentProviderResult[] applyBatch(String authority, argument 37 equalsString(authority, RawContacts.CONTENT_URI.toString());
|
/frameworks/base/packages/DocumentsUI/tests/src/com/android/documentsui/model/ |
H A D | DocumentInfoTest.java | 26 = createDocInfo("authority.a", "doc.1", "text/plain"); 30 assertEquals(TEST_DOC, createDocInfo("authority.a", "doc.1", "text/plain")); 43 assertFalse(TEST_DOC.equals(createDocInfo("authority.b", "doc.1", "text/plain"))); 47 assertFalse(TEST_DOC.equals(createDocInfo("authority.a", "doc.2", "text/plain"))); 51 assertFalse(TEST_DOC.equals(createDocInfo("authority.a", "doc.1", "image/png"))); 54 private static DocumentInfo createDocInfo(String authority, String docId, String mimeType) { argument 56 doc.authority = authority;
|
/frameworks/base/core/java/android/provider/ |
H A D | DocumentsContract.java | 669 public static Uri buildRootsUri(String authority) { argument 671 .authority(authority).appendPath(PATH_ROOT).build(); 680 public static Uri buildRootUri(String authority, String rootId) { argument 682 .authority(authority).appendPath(PATH_ROOT).appendPath(rootId).build(); 703 public static Uri buildRecentDocumentsUri(String authority, String rootId) { argument 705 .authority(authority).appendPath(PATH_ROOT).appendPath(rootId) 715 public static Uri buildTreeDocumentUri(String authority, Strin argument 728 buildDocumentUri(String authority, String documentId) argument 783 buildChildDocumentsUri(String authority, String parentDocumentId) argument 829 buildSearchDocumentsUri( String authority, String rootId, String query) argument 880 isDocumentsProvider(Context context, String authority) argument [all...] |
/frameworks/base/core/java/android/net/ |
H A D | Uri.java | 101 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 573 private Part authority; field in class:Uri.StringUri 1144 private final Part authority; field in class:Uri.HierarchicalUri 1149 HierarchicalUri(String scheme, Part authority, PathPart path, Part query, Part fragment) argument 1326 private Part authority; field in class:Uri.Builder 1369 authority(Part authority) argument 1380 authority(String authority) argument 1387 encodedAuthority(String authority) argument [all...] |
/frameworks/base/services/core/java/com/android/server/content/ |
H A D | SyncStorageEngine.java | 337 /** Called when an authority is removed. */ 558 AuthorityInfo authority = getAuthorityLocked( 561 return authority != null && authority.enabled; 584 AuthorityInfo authority = 589 if (authority.enabled == sync) { 598 if (sync && authority.syncable == AuthorityInfo.SYNCABLE_NOT_INITIALIZED) { 599 authority.syncable = AuthorityInfo.NOT_INITIALIZED; 601 authority.enabled = sync; 616 AuthorityInfo authority 2052 requestSync(Account account, int userId, int reason, String authority, Bundle extras) argument [all...] |