/frameworks/base/core/java/android/content/ |
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 | UriMatcher.java | 154 * @param authority the authority to match 160 public void addURI(String authority, String path, int code) argument 179 String token = i < 0 ? authority : tokens[i];
|
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 | 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 | 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 | 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 | SearchRecentSuggestionsProvider.java | 48 * android:authorities="your.suggestion.authority" /></pre> 57 * android:searchSuggestAuthority="your.suggestion.authority" 165 * @param authority This must match the authority that you've declared in your manifest. 173 protected void setupSuggestions(String authority, int mode) { argument 174 if (TextUtils.isEmpty(authority) || 182 mAuthority = new String(authority);
|
H A D | SyncRequest.java | 345 * Specify an authority and account for this transfer. 347 * @param authority A String identifying the content provider to be synced. 352 public Builder setSyncAdapter(Account account, String authority) { argument 356 if (authority != null && authority.length() == 0) { 361 mAuthority = authority;
|
/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)) {
|
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
|
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...] |
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/ |
H A D | DocumentsApplication.java | 54 ContentResolver resolver, String authority) throws RemoteException { 56 authority); 58 throw new RemoteException("Failed to acquire provider for " + authority); 53 acquireUnstableProviderOrThrow( ContentResolver resolver, String authority) argument
|
H A D | IconUtils.java | 203 public static Drawable loadPackageIcon(Context context, String authority, int icon) { argument 205 if (authority != null) { 207 final ProviderInfo info = pm.resolveContentProvider(authority, 0); 219 Context context, String mimeType, String authority, String docId, int mode) { 222 if ("com.android.providers.media.documents".equals(authority) 218 loadMimeIcon( Context context, String mimeType, String authority, String docId, int mode) argument
|
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...] |
H A D | RootCursorWrapper.java | 38 public static final String COLUMN_AUTHORITY = "android:authority"; 41 public RootCursorWrapper(String authority, String rootId, Cursor cursor, int maxCount) { argument 42 mAuthority = authority;
|
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...] |
/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/core/java/android/content/pm/ |
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
|
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/base/core/java/android/provider/ |
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/packages/DocumentsUI/src/com/android/documentsui/model/ |
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...] |
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...] |
/frameworks/base/services/tests/servicestests/src/com/android/server/content/ |
H A D | SyncStorageEngineTest.java | 92 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 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...] |