/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 | 36 * 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 D | PeriodicSync.java | 30 /** 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 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 | 155 * the given account/authority pair. One required initialization step is to 1176 String authority = uri.getAuthority(); 1178 if (TextUtils.isEmpty(authority)) { 1179 throw new FileNotFoundException("No authority: " + uri); 1182 r = mContext.getPackageManager().getResourcesForApplication(authority); 1184 throw new FileNotFoundException("No package found for authority: " + uri); 1200 id = r.getIdentifier(path.get(1), path.get(0), authority); 1252 * @param authority the authority of the ContentProvider to which this batch should be applied 1260 public @NonNull ContentProviderResult[] applyBatch(@NonNull String authority, argument 1812 requestSync(Account account, String authority, Bundle extras) argument 1820 requestSyncAsUser(Account account, String authority, int userId, Bundle extras) argument 1906 cancelSync(Account account, String authority) argument 1917 cancelSyncAsUser(Account account, String authority, int userId) argument 1952 getSyncAdapterPackagesForAuthorityAsUser(String authority, int userId) argument 1970 getSyncAutomatically(Account account, String authority) argument 1982 getSyncAutomaticallyAsUser(Account account, String authority, int userId) argument 2000 setSyncAutomatically(Account account, String authority, boolean sync) argument 2008 setSyncAutomaticallyAsUser(Account account, String authority, boolean sync, int userId) argument 2049 addPeriodicSync(Account account, String authority, Bundle extras, long pollFrequency) argument 2099 removePeriodicSync(Account account, String authority, Bundle extras) argument 2142 getPeriodicSyncs(Account account, String authority) argument 2156 getIsSyncable(Account account, String authority) argument 2168 getIsSyncableAsUser(Account account, String authority, int userId) argument 2182 setIsSyncable(Account account, String authority, int syncable) argument 2253 isSyncActive(Account account, String authority) argument 2330 getSyncStatus(Account account, String authority) argument 2342 getSyncStatusAsUser(Account account, String authority, int userId) argument 2359 isSyncPending(Account account, String authority) argument 2367 isSyncPendingAsUser(Account account, String authority, int userId) argument [all...] |
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/model/ |
H A D | RootInfo.java | 47 public String authority; field in class:RootInfo 67 authority = null; 86 authority = DurableUtils.readNullableString(in); 105 DurableUtils.writeNullableString(out, authority); 140 public static RootInfo fromRootsCursor(String authority, Cursor cursor) { argument 142 root.authority = authority; 173 return authority == null && rootId == null; 177 return "com.android.externalstorage.documents".equals(authority); 181 return "com.android.providers.downloads.documents".equals(authority); [all...] |
H A D | DocumentInfo.java | 57 public String authority; field in class:DocumentInfo 76 authority = null; 96 authority = DurableUtils.readNullableString(in); 115 DurableUtils.writeNullableString(out, authority); 151 final String authority = getCursorString(cursor, RootCursorWrapper.COLUMN_AUTHORITY); 152 return fromCursor(cursor, authority); 155 public static DocumentInfo fromCursor(Cursor cursor, String authority) { argument 157 info.updateFromCursor(cursor, authority); 161 public void updateFromCursor(Cursor cursor, String authority) { argument 162 this.authority [all...] |
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/ |
H A D | RootsCache.java | 104 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 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/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();
|
H A D | PackageManagerInternal.java | 47 * Gets the sync adapter packages for given authority and user. 48 * @param authority The authority. 52 public String[] getPackages(String authority, int userId); argument
|
/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 | 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)) {
|
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/services/core/java/com/android/server/content/ |
H A D | SyncStorageEngine.java | 175 PendingOperation(AuthorityInfo authority, int reason, int source, argument 177 this.target = authority.target; 182 this.authorityId = authority.ident; 652 AuthorityInfo authority = getAuthorityLocked( 655 return authority != null && authority.enabled; 678 AuthorityInfo authority = 683 if (authority.enabled == sync) { 692 if (sync && authority.syncable == AuthorityInfo.SYNCABLE_NOT_INITIALIZED) { 693 authority 2737 requestSync(Account account, int userId, int reason, String authority, Bundle extras) argument [all...] |
H A D | ContentService.java | 159 // Let the package manager query for the sync adapters for a given authority 166 public String[] getPackages(String authority, int userId) { 167 return getSyncAdapterPackagesForAuthorityAsUser(authority, userId); 344 public void requestSync(Account account, String authority, Bundle extras) { argument 355 syncManager.scheduleSync(account, userId, uId, authority, extras, 426 * if they match the authority and account, if they are present. 429 * @param authority filter the pending and active syncs to cancel using this authority, or 434 public void cancelSync(Account account, String authority, ComponentName cname) { argument 435 cancelSyncAsUser(account, authority, cnam 452 cancelSyncAsUser(Account account, String authority, ComponentName cname, int userId) argument 538 getSyncAdapterPackagesForAuthorityAsUser(String authority, int userId) argument 611 addPeriodicSync(Account account, String authority, Bundle extras, long pollFrequency) argument 644 removePeriodicSync(Account account, String authority, Bundle extras) argument 786 isSyncActive(Account account, String authority, ComponentName cname) argument 826 getSyncStatus(Account account, String authority, ComponentName cname) argument 834 getSyncStatusAsUser(Account account, String authority, ComponentName cname, int userId) argument 864 isSyncPending(Account account, String authority, ComponentName cname) argument 869 isSyncPendingAsUser(Account account, String authority, ComponentName cname, int userId) argument [all...] |
/frameworks/base/core/java/android/provider/ |
H A D | DocumentsContract.java | 561 public static Uri buildRootsUri(String authority) { argument 563 .authority(authority).appendPath(PATH_ROOT).build(); 572 public static Uri buildRootUri(String authority, String rootId) { argument 574 .authority(authority).appendPath(PATH_ROOT).appendPath(rootId).build(); 585 public static Uri buildRecentDocumentsUri(String authority, String rootId) { argument 587 .authority(authority).appendPath(PATH_ROOT).appendPath(rootId) 597 public static Uri buildTreeDocumentUri(String authority, Strin argument 610 buildDocumentUri(String authority, String documentId) argument 665 buildChildDocumentsUri(String authority, String parentDocumentId) argument 711 buildSearchDocumentsUri( String authority, String rootId, String query) argument 743 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...] |