/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 | 29 public final String authority; field in class:SyncAdapterType 39 public SyncAdapterType(String authority, String accountType, boolean userVisible, argument 41 if (TextUtils.isEmpty(authority)) { 42 throw new IllegalArgumentException("the authority must not be empty: " + authority); 47 this.authority = authority; 59 public SyncAdapterType(String authority, String accountType, boolean userVisible, argument 65 if (TextUtils.isEmpty(authority)) { 66 throw new IllegalArgumentException("the authority mus 82 SyncAdapterType(String authority, String accountType) argument 167 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 | SyncAdaptersCache.java | 63 final String authority = 67 if (TextUtils.isEmpty(authority) || TextUtils.isEmpty(accountType)) { 84 return new SyncAdapterType(authority, accountType, userVisible, supportsUploading, 103 public String[] getSyncAdapterPackagesForAuthority(String authority, int userId) { argument 111 if (adapterMap.containsKey(authority)) { 112 return adapterMap.get(authority); 120 if (authority.equals(serviceInfo.type.authority) 127 adapterMap.put(authority, syncAdapterPackages); 144 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 | ISyncAdapter.aidl | 43 * @param authority the authority that should be synced 47 void startSync(ISyncContext syncContext, String authority,
|
H A D | AbstractThreadedSyncAdapter.java | 74 * android:contentAuthority="authority" 85 * indicate which content authority and for which account types this sync adapter serves. 90 * with an authority whenever that authority's content provider does a 182 public void startSync(ISyncContext syncContext, String authority, Account account, argument 188 Log.d(TAG, "startSync() start " + authority + " " + account + " " + extras); 204 if (ContentResolver.getIsSyncable(account, authority) < 0) { 205 ContentResolver.setIsSyncable(account, authority, 1); 214 syncContextClient, authority, account, extras); 296 private SyncThread(String name, SyncContext syncContext, String authority, argument 449 onPerformSync(Account account, Bundle extras, String authority, ContentProviderClient provider, SyncResult syncResult) argument 462 onSecurityException(Account account, Bundle extras, String authority, SyncResult syncResult) argument [all...] |
H A D | ContentResolver.java | 178 * the given account/authority pair. One required initialization step is to 1531 String authority = uri.getAuthority(); 1533 if (TextUtils.isEmpty(authority)) { 1534 throw new FileNotFoundException("No authority: " + uri); 1537 r = mContext.getPackageManager().getResourcesForApplication(authority); 1539 throw new FileNotFoundException("No package found for authority: " + uri); 1555 id = r.getIdentifier(path.get(1), path.get(0), authority); 1608 * @param authority the authority of the ContentProvider to which this batch should be applied 1616 public @NonNull ContentProviderResult[] applyBatch(@NonNull String authority, argument 2269 requestSync(Account account, String authority, Bundle extras) argument 2277 requestSyncAsUser(Account account, String authority, @UserIdInt int userId, Bundle extras) argument 2363 cancelSync(Account account, String authority) argument 2375 cancelSyncAsUser(Account account, String authority, @UserIdInt int userId) argument 2412 getSyncAdapterPackagesForAuthorityAsUser(String authority, @UserIdInt int userId) argument 2430 getSyncAutomatically(Account account, String authority) argument 2442 getSyncAutomaticallyAsUser(Account account, String authority, @UserIdInt int userId) argument 2460 setSyncAutomatically(Account account, String authority, boolean sync) argument 2468 setSyncAutomaticallyAsUser(Account account, String authority, boolean sync, @UserIdInt int userId) argument 2510 addPeriodicSync(Account account, String authority, Bundle extras, long pollFrequency) argument 2553 removePeriodicSync(Account account, String authority, Bundle extras) argument 2595 getPeriodicSyncs(Account account, String authority) argument 2609 getIsSyncable(Account account, String authority) argument 2621 getIsSyncableAsUser(Account account, String authority, @UserIdInt int userId) argument 2636 setIsSyncable(Account account, String authority, int syncable) argument 2705 isSyncActive(Account account, String authority) argument 2782 getSyncStatus(Account account, String authority) argument 2794 getSyncStatusAsUser(Account account, String authority, @UserIdInt int userId) argument 2811 isSyncPending(Account account, String authority) argument 2819 isSyncPendingAsUser(Account account, String authority, @UserIdInt int userId) argument [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 111 authority = orig.authority; 130 pw.println(prefix + "authority=" + authority); 141 out.writeString(authority); 165 return "ContentProviderInfo{name=" + authority + " className=" + name + "}"; 170 authority = in.readString();
|
/frameworks/base/test-runner/src/android/test/ |
H A D | ProviderTestCase2.java | 37 * given an authority. This allows you to inject test providers and to null out 102 * @param providerAuthority The provider's authority string 151 Context context, Class<T> providerClass, String authority) 155 providerInfo.authority = authority; 193 * with an authority name set to the authority parameter, and using an SQLite database as 210 * @param authority The authority string to associated with the test provider 222 Context targetContext, String filenamePrefix, Class<T> providerClass, String authority, 150 createProviderForTest( Context context, Class<T> providerClass, String authority) argument 221 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/support/frameworks/support/samples/Support7Demos/src/main/java/com/example/android/supportv7/widget/selection/fancy/ |
H A D | ContentUriKeyProvider.java | 32 ContentUriKeyProvider(String authority, String[] values) { argument 43 .encodedAuthority(authority)
|
/frameworks/support/samples/Support7Demos/src/main/java/com/example/android/supportv7/widget/selection/fancy/ |
H A D | ContentUriKeyProvider.java | 32 ContentUriKeyProvider(String authority, String[] values) { argument 43 .encodedAuthority(authority)
|
/frameworks/base/core/java/android/provider/ |
H A D | SettingsSlicesContract.java | 26 * authority, authority {@link Uri}, and key constants. 56 * A content:// style uri to the Settings Slices authority, {@link #AUTHORITY}. 60 .authority(AUTHORITY)
|
/frameworks/base/services/core/java/com/android/server/timezone/ |
H A D | PackageManagerHelper.java | 37 boolean contentProviderRegistered(String authority, String requiredPackageName); argument
|
/frameworks/base/services/core/java/com/android/server/slice/ |
H A D | SliceClientPermissions.java | 45 private static final String TAG_AUTHORITY = "authority"; 50 private static final String ATTR_AUTHORITY = "authority"; 54 // Keyed off (authority, userId) rather than the standard (pkg, userId) 72 public synchronized SliceAuthority getOrCreateAuthority(PkgUser authority, PkgUser provider) { argument 73 SliceAuthority ret = mAuths.get(authority); 75 ret = new SliceAuthority(authority.getPkg(), provider, this); 76 mAuths.put(authority, ret); 82 public synchronized SliceAuthority getAuthority(PkgUser authority) { argument 83 return mAuths.get(authority); 96 public void removeAuthority(String authority, in argument 206 SliceAuthority(String authority, PkgUser pkg, DirtyTracker tracker) argument [all...] |
H A D | SliceShellCommand.java | 59 pw.println(" get-permissions <authority>"); 60 pw.println(" List the pkgs that have permission to an authority."); 65 private int runGetPermissions(String authority) { argument 76 .authority(authority) 79 getOutPrintWriter().println(authority + " is not a slice provider"); 99 for (String pkg : mService.getAllPackagesGranted(authority)) {
|
H A D | SliceProviderPermissions.java | 39 private static final String TAG_AUTHORITY = "authority"; 44 private static final String ATTR_AUTHORITY = "authority"; 63 public synchronized SliceAuthority getOrCreateAuthority(String authority) { argument 64 SliceAuthority ret = mAuths.get(authority); 66 ret = new SliceAuthority(authority, this); 67 mAuths.put(authority, ret); 116 SliceAuthority authority = new SliceAuthority( 118 authority.readFrom(parser); 119 provider.mAuths.put(authority.getAuthority(), authority); 139 SliceAuthority(String authority, DirtyTracker tracker) argument [all...] |
/frameworks/base/telephony/java/android/telephony/mbms/ |
H A D | MbmsTempFileProvider.java | 102 mAuthority = info.authority; 106 public static Uri getUriForFile(Context context, String authority, File file) { argument 142 .authority(authority).encodedPath(encodedPath).build(); 145 public static File getFileForUri(Context context, String authority, Uri uri) argument 150 if (!Objects.equals(authority, uri.getAuthority())) { 151 throw new IllegalArgumentException("Uri does not have a matching authority: " + 152 authority + ", " + uri.getAuthority());
|
/frameworks/base/services/core/java/com/android/server/content/ |
H A D | SyncStorageEngine.java | 372 /** Called when an authority is removed. */ 377 * Validator that maintains a lazy cache of accounts and providers to tell if an authority or 404 // An authority is only valid if it has a content provider installed on the system 405 boolean isAuthorityValid(String authority, int userId) { argument 411 if (!authorityMap.containsKey(authority)) { 412 authorityMap.put(authority, mPackageManager.resolveContentProviderAsUser(authority, 416 return authorityMap.get(authority); 659 AuthorityInfo authority = getAuthorityLocked( 662 return authority ! 2229 requestSync(Account account, int userId, int reason, String authority, Bundle extras, @SyncExemption int syncExemptionFlag) argument [all...] |
/frameworks/base/core/java/android/net/ |
H A D | Uri.java | 103 ambiguous in terms of differentiating between an authority component 107 matching. In other words, the authority component wins." 110 <scheme>://<authority><path>?<query> 205 * Gets the decoded authority part of this URI. For 206 * server addresses, the authority is structured as follows: 211 * @return the authority for this URI or null if not present 217 * Gets the encoded authority part of this URI. For 218 * server addresses, the authority is structured as follows: 223 * @return the authority for this URI or null if not present 229 * Gets the decoded user information from the authority 588 private Part authority; field in class:Uri.StringUri 1167 private final Part authority; field in class:Uri.HierarchicalUri 1172 HierarchicalUri(String scheme, Part authority, PathPart path, Part query, Part fragment) argument 1349 private Part authority; field in class:Uri.Builder 1392 authority(Part authority) argument 1403 authority(String authority) argument 1410 encodedAuthority(String authority) argument [all...] |
/frameworks/support/compat/src/main/java/androidx/core/content/ |
H A D | FileProvider.java | 90 * attribute to a URI authority based on a domain you control; for example, if you control the 91 * domain <code>mydomain.com</code> you should use the authority 259 * authority <code>com.mydomain.fileprovider</code>. To get a content URI for the file 392 mStrategy = getPathStrategy(context, info.authority); 407 * @param authority The authority of a {@link FileProvider} defined in a 415 public static Uri getUriForFile(@NonNull Context context, @NonNull String authority, argument 417 final PathStrategy strategy = getPathStrategy(context, authority); 570 * Return {@link PathStrategy} for given authority, either by parsing or 573 private static PathStrategy getPathStrategy(Context context, String authority) { argument 599 parsePathStrategy(Context context, String authority) argument 695 SimplePathStrategy(String authority) argument [all...] |