/frameworks/base/core/java/android/content/ |
D | SyncAdapterType.java | 31 public final String authority; field in SyncAdapterType 46 public SyncAdapterType(String authority, String accountType, boolean userVisible, in SyncAdapterType() argument 48 if (TextUtils.isEmpty(authority)) { in SyncAdapterType() 49 throw new IllegalArgumentException("the authority must not be empty: " + authority); in SyncAdapterType() 54 this.authority = authority; in SyncAdapterType() 66 public SyncAdapterType(String authority, String accountType, boolean userVisible, in SyncAdapterType() argument 72 if (TextUtils.isEmpty(authority)) { in SyncAdapterType() 73 throw new IllegalArgumentException("the authority must not be empty: " + authority); in SyncAdapterType() 78 this.authority = authority; in SyncAdapterType() 90 private SyncAdapterType(String authority, String accountType) { in SyncAdapterType() argument [all …]
|
D | PeriodicSync.java | 33 public final String authority; field in PeriodicSync 47 public PeriodicSync(Account account, String authority, Bundle extras, long periodInSeconds) { in PeriodicSync() argument 49 this.authority = authority; in PeriodicSync() 66 this.authority = other.authority; in PeriodicSync() 76 public PeriodicSync(Account account, String authority, Bundle extras, in PeriodicSync() argument 79 this.authority = authority; in PeriodicSync() 87 this.authority = in.readString(); in PeriodicSync() 101 dest.writeString(authority); in writeToParcel() 129 && authority.equals(other.authority) in equals() 161 ", authority: " + authority + in toString()
|
D | SyncInfo.java | 48 public final String authority; field in SyncInfo 64 int authorityId, String authority, long startTime) { in createAccountRedacted() argument 65 return new SyncInfo(authorityId, REDACTED_ACCOUNT, authority, startTime); in createAccountRedacted() 70 public SyncInfo(int authorityId, Account account, String authority, long startTime) { in SyncInfo() argument 73 this.authority = authority; in SyncInfo() 81 this.authority = other.authority; in SyncInfo() 94 parcel.writeString(authority); in writeToParcel() 103 authority = parcel.readString(); in SyncInfo()
|
D | SyncAdaptersCache.java | 65 final String authority = in parseServiceAttributes() local 69 if (TextUtils.isEmpty(authority) || TextUtils.isEmpty(accountType)) { in parseServiceAttributes() 86 return new SyncAdapterType(authority, accountType, userVisible, supportsUploading, in parseServiceAttributes() 105 public String[] getSyncAdapterPackagesForAuthority(String authority, int userId) { in getSyncAdapterPackagesForAuthority() argument 113 if (adapterMap.containsKey(authority)) { in getSyncAdapterPackagesForAuthority() 114 return adapterMap.get(authority); in getSyncAdapterPackagesForAuthority() 122 if (authority.equals(serviceInfo.type.authority) in getSyncAdapterPackagesForAuthority() 129 adapterMap.put(authority, syncAdapterPackages); in getSyncAdapterPackagesForAuthority() 146 out.attribute(null, "authority", item.authority); in writeAsXml() 152 final String authority = parser.getAttributeValue(null, "authority"); in createFromXml() local [all …]
|
D | IContentService.aidl | 58 void requestSync(in Account account, String authority, in Bundle extras, String callingPackage); in requestSync() argument 65 void cancelSync(in Account account, String authority, in ComponentName cname); in cancelSync() argument 66 void cancelSyncAsUser(in Account account, String authority, in ComponentName cname, int userId); in cancelSyncAsUser() argument 152 String[] getSyncAdapterPackagesForAuthorityAsUser(String authority, int userId); in getSyncAdapterPackagesForAuthorityAsUser() argument 163 boolean isSyncActive(in Account account, String authority, in ComponentName cname); in isSyncActive() argument 173 SyncStatusInfo getSyncStatus(in Account account, String authority, in ComponentName cname); in getSyncStatus() argument 174 SyncStatusInfo getSyncStatusAsUser(in Account account, String authority, in ComponentName cname, in getSyncStatusAsUser() argument 184 boolean isSyncPending(in Account account, String authority, in ComponentName cname); in isSyncPending() argument 185 boolean isSyncPendingAsUser(in Account account, String authority, in ComponentName cname, in isSyncPendingAsUser() argument
|
D | AbstractThreadedSyncAdapter.java | 182 public void startSync(ISyncContext syncContext, String authority, Account account, in startSync() argument 188 Log.d(TAG, "startSync() start " + authority + " " + account + " " + extras); in startSync() 204 if (ContentResolver.getIsSyncable(account, authority) < 0) { in startSync() 205 ContentResolver.setIsSyncable(account, authority, 1); in startSync() 214 syncContextClient, authority, account, extras); in startSync() 296 private SyncThread(String name, SyncContext syncContext, String authority, in SyncThread() argument 300 mAuthority = authority; in SyncThread() 450 String authority, ContentProviderClient provider, SyncResult syncResult); in onPerformSync() argument 463 String authority, SyncResult syncResult) { in onSecurityException() argument
|
D | ContentResolver.java | 2061 String authority = uri.getAuthority(); 2063 if (TextUtils.isEmpty(authority)) { 2067 r = mContext.getPackageManager().getResourcesForApplication(authority); 2085 id = r.getIdentifier(path.get(1), path.get(0), authority); 2179 public @NonNull ContentProviderResult[] applyBatch(@NonNull String authority, 2182 Objects.requireNonNull(authority, "authority"); 2186 if (mWrapped != null) return mWrapped.applyBatch(authority, operations); 2191 ContentProviderClient provider = acquireContentProviderClient(authority); 2193 throw new IllegalArgumentException("Unknown authority " + authority); 2389 public final @Nullable Bundle call(@NonNull String authority, @NonNull String method, [all …]
|
/frameworks/base/services/core/java/com/android/server/slice/ |
D | SliceClientPermissions.java | 72 public synchronized SliceAuthority getOrCreateAuthority(PkgUser authority, PkgUser provider) { in getOrCreateAuthority() argument 73 SliceAuthority ret = mAuths.get(authority); in getOrCreateAuthority() 75 ret = new SliceAuthority(authority.getPkg(), provider, this); in getOrCreateAuthority() 76 mAuths.put(authority, ret); in getOrCreateAuthority() 82 public synchronized SliceAuthority getAuthority(PkgUser authority) { in getAuthority() argument 83 return mAuths.get(authority); in getAuthority() 96 public void removeAuthority(String authority, int userId) { in removeAuthority() argument 97 if (mAuths.remove(new PkgUser(authority, userId)) != null) { in removeAuthority() 104 SliceAuthority authority = getAuthority(new PkgUser(uri.getAuthority(), userId)); in hasPermission() 105 return authority != null && authority.hasPermission(uri.getPathSegments()); in hasPermission() [all …]
|
D | SliceProviderPermissions.java | 63 public synchronized SliceAuthority getOrCreateAuthority(String authority) { in getOrCreateAuthority() argument 64 SliceAuthority ret = mAuths.get(authority); in getOrCreateAuthority() 66 ret = new SliceAuthority(authority, this); in getOrCreateAuthority() 67 mAuths.put(authority, ret); in getOrCreateAuthority() 116 SliceAuthority authority = new SliceAuthority( in createFrom() local 118 authority.readFrom(parser); in createFrom() 119 provider.mAuths.put(authority.getAuthority(), authority); in createFrom() local 139 public SliceAuthority(String authority, DirtyTracker tracker) { in SliceAuthority() argument 140 mAuthority = authority; in SliceAuthority()
|
D | SliceShellCommand.java | 65 private int runGetPermissions(String authority) { in runGetPermissions() argument 76 .authority(authority) in runGetPermissions() 79 getOutPrintWriter().println(authority + " is not a slice provider"); in runGetPermissions() 99 for (String pkg : mService.getAllPackagesGranted(authority)) { in runGetPermissions()
|
/frameworks/base/core/java/android/content/pm/parsing/component/ |
D | ParsedProvider.java | 38 private String authority; field in ParsedProvider 58 this.authority = other.authority; in ParsedProvider() 70 public void setAuthority(String authority) { in setAuthority() argument 71 this.authority = TextUtils.safeIntern(authority); in setAuthority() 108 dest.writeString(this.authority); in writeToParcel() 126 this.authority = in.readString(); in ParsedProvider() 152 return authority; in getAuthority()
|
/frameworks/base/core/java/android/net/ |
D | Uri.java | 594 private Part authority; field in Uri.StringUri 597 if (authority == null) { in getAuthorityPart() 600 return authority = Part.fromEncoded(encodedAuthority); in getAuthorityPart() 603 return authority; in getAuthorityPart() 816 .authority(getAuthorityPart()) in buildUpon() 1092 String authority = getEncodedAuthority(); in parseUserInfo() local 1093 if (authority == null) { in parseUserInfo() 1097 int end = authority.lastIndexOf('@'); in parseUserInfo() 1098 return end == NOT_FOUND ? null : authority.substring(0, end); in parseUserInfo() 1114 final String authority = getEncodedAuthority(); in parseHost() local [all …]
|
/frameworks/base/core/java/android/provider/ |
D | DocumentsContract.java | 897 public static Uri buildRootsUri(String authority) { in buildRootsUri() argument 899 .authority(authority).appendPath(PATH_ROOT).build(); in buildRootsUri() 908 public static Uri buildRootUri(String authority, String rootId) { in buildRootUri() argument 910 .authority(authority).appendPath(PATH_ROOT).appendPath(rootId).build(); in buildRootUri() 921 public static Uri buildRecentDocumentsUri(String authority, String rootId) { in buildRecentDocumentsUri() argument 923 .authority(authority).appendPath(PATH_ROOT).appendPath(rootId) in buildRecentDocumentsUri() 933 public static Uri buildTreeDocumentUri(String authority, String documentId) { in buildTreeDocumentUri() argument 934 return new Uri.Builder().scheme(ContentResolver.SCHEME_CONTENT).authority(authority) in buildTreeDocumentUri() 946 public static Uri buildDocumentUri(String authority, String documentId) { in buildDocumentUri() argument 947 return getBaseDocumentUriBuilder(authority).appendPath(documentId).build(); in buildDocumentUri() [all …]
|
/frameworks/base/core/java/android/content/pm/ |
D | ProviderInfo.java | 34 public String authority = null; field in ProviderInfo 117 authority = orig.authority; in ProviderInfo() 137 pw.println(prefix + "authority=" + authority); in dump() 148 out.writeString8(authority); in writeToParcel() 173 return "ContentProviderInfo{name=" + authority + " className=" + name + "}"; in toString() 178 authority = in.readString8(); in ProviderInfo()
|
/frameworks/base/services/core/java/com/android/server/content/ |
D | SyncStorageEngine.java | 420 boolean isAuthorityValid(String authority, int userId) { in isAuthorityValid() argument 426 if (!authorityMap.containsKey(authority)) { in isAuthorityValid() 427 authorityMap.put(authority, mPackageManager.resolveContentProviderAsUser(authority, in isAuthorityValid() 431 return authorityMap.get(authority); in isAuthorityValid() 688 AuthorityInfo authority = getAuthorityLocked( in getSyncAutomatically() local 691 return authority != null && authority.enabled; in getSyncAutomatically() 721 AuthorityInfo authority = in setSyncAutomatically() local 726 if (authority.enabled == sync) { in setSyncAutomatically() 735 if (sync && authority.syncable == AuthorityInfo.SYNCABLE_NOT_INITIALIZED) { in setSyncAutomatically() 736 authority.syncable = AuthorityInfo.NOT_INITIALIZED; in setSyncAutomatically() [all …]
|
D | ContentService.java | 300 permissionManagerInternal.setSyncAdapterPackagesProvider((authority, userId) -> { in ContentService() argument 301 return getSyncAdapterPackagesForAuthorityAsUser(authority, userId); in ContentService() 463 final String authority = validatedProviders.keyAt(i).first; in notifyChange() local 473 authority, getSyncExemptionForCaller(callingUid), in notifyChange() 481 if (Objects.equals(uri.getAuthority(), authority)) { in notifyChange() 585 public void requestSync(Account account, String authority, Bundle extras, in requestSync() argument 602 syncManager.scheduleSync(account, userId, callingUid, authority, extras, in requestSync() 693 public void cancelSync(Account account, String authority, ComponentName cname) { in cancelSync() argument 694 cancelSyncAsUser(account, authority, cname, UserHandle.getCallingUserId()); in cancelSync() 711 public void cancelSyncAsUser(Account account, String authority, ComponentName cname, in cancelSyncAsUser() argument [all …]
|
/frameworks/base/test-runner/src/android/test/ |
D | ProviderTestCase2.java | 151 Context context, Class<T> providerClass, String authority) in createProviderForTest() argument 155 providerInfo.authority = authority; in createProviderForTest() 222 Context targetContext, String filenamePrefix, Class<T> providerClass, String authority, in newResolverWithContentProviderFromSql() argument 233 T provider = createProviderForTest(context, providerClass, authority); in newResolverWithContentProviderFromSql() 234 resolver.addProvider(authority, provider); in newResolverWithContentProviderFromSql()
|
D | SyncBaseInstrumentation.java | 53 protected void syncProvider(Uri uri, String accountName, String authority) throws Exception { in syncProvider() argument 58 ContentResolver.requestSync(account, authority, extras); in syncProvider() 73 if (ContentResolver.isSyncActive(account, authority)) { in syncProvider()
|
/frameworks/base/packages/SettingsLib/Tile/src/com/android/settingslib/drawer/ |
D | TileUtils.java | 328 providerInfo.authority); in loadProviderTiles() 356 ? new Pair<>(((ProviderInfo) componentInfo).authority, in loadTile() 379 static Bundle getSwitchDataFromProvider(Context context, String authority, String key) { in getSwitchDataFromProvider() argument 381 final Uri uri = buildUri(authority, SwitchesProvider.METHOD_GET_SWITCH_DATA, key); in getSwitchDataFromProvider() 386 private static List<Bundle> getSwitchDataFromProvider(Context context, String authority) { in getSwitchDataFromProvider() argument 388 final Uri uri = buildUri(authority, SwitchesProvider.METHOD_GET_SWITCH_DATA); in getSwitchDataFromProvider() 431 static Uri buildUri(String authority, String method, String key) { in buildUri() argument 434 .authority(authority) in buildUri() 440 private static Uri buildUri(String authority, String method) { in buildUri() argument 443 .authority(authority) in buildUri() [all …]
|
/frameworks/base/telephony/java/android/telephony/mbms/ |
D | MbmsTempFileProvider.java | 102 mAuthority = info.authority; in attachInfo() 106 public static Uri getUriForFile(Context context, String authority, File file) { in getUriForFile() argument 142 .authority(authority).encodedPath(encodedPath).build(); in getUriForFile() 145 public static File getFileForUri(Context context, String authority, Uri uri) in getFileForUri() argument 150 if (!Objects.equals(authority, uri.getAuthority())) { in getFileForUri() 152 authority + ", " + uri.getAuthority()); in getFileForUri()
|
/frameworks/base/core/tests/coretests/src/android/net/ |
D | UriTest.java | 53 .authority("crazybob.org") in testParcelling() 146 .authority("crazybob.org") in testEqualsAndHashCode() 427 private static void testHierarchical(String scheme, String authority, in testHierarchical() argument 431 if (authority != null) { in testHierarchical() 432 sb.append("//").append(authority); in testHierarchical() 456 uriString, ssp, uri, scheme, authority, path, query, fragment); in testHierarchical() 458 uriString, ssp, uri, scheme, authority, path, query, fragment); in testHierarchical() 465 uriString, ssp, uri, scheme, authority, path, query, fragment); in testHierarchical() 467 uriString, ssp, uri, scheme, authority, path, query, fragment); in testHierarchical() 475 .encodedAuthority(authority) in testHierarchical() [all …]
|
/frameworks/ex/common/java/com/android/common/ |
D | Search.java | 83 String authority = searchable.getSuggestAuthority(); in getSuggestions() local 84 if (authority == null) { in getSuggestions() 90 .authority(authority) in getSuggestions()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/clock/ |
D | ClockOptionsProviderTest.java | 73 .authority(AUTHORITY) in setUp() 82 .authority(AUTHORITY) in testGetType_listOptions() 92 .authority(AUTHORITY) in testGetType_preview() 103 .authority(AUTHORITY) in testGetType_thumbnail() 166 .authority(AUTHORITY) in testOpenFile_preview() 182 .authority(AUTHORITY) in testOpenFile_thumbnail()
|
/frameworks/base/core/java/com/android/server/backup/ |
D | AccountSyncSettingsBackupHelper.java | 146 accountTypeToAuthorities.get(syncAdapter.accountType).add(syncAdapter.authority); in serializeAccountSyncSettingsToJSON() 171 for (String authority : authorities) { in serializeAccountSyncSettingsToJSON() 172 int syncState = ContentResolver.getIsSyncableAsUser(account, authority, userId); in serializeAccountSyncSettingsToJSON() 173 boolean syncEnabled = ContentResolver.getSyncAutomaticallyAsUser(account, authority, in serializeAccountSyncSettingsToJSON() 177 authorityJSON.put(KEY_AUTHORITY_NAME, authority); in serializeAccountSyncSettingsToJSON() 412 JSONObject authority = (JSONObject) authorities.get(i); in restoreExistingAccountSyncSettingsFromJSON() local 413 final String authorityName = authority.getString(KEY_AUTHORITY_NAME); in restoreExistingAccountSyncSettingsFromJSON() 414 boolean wasSyncEnabled = authority.getBoolean(KEY_AUTHORITY_SYNC_ENABLED); in restoreExistingAccountSyncSettingsFromJSON() 415 int wasSyncable = authority.getInt(KEY_AUTHORITY_SYNC_STATE); in restoreExistingAccountSyncSettingsFromJSON()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/textclassifier/ |
D | IconsUriHelperTest.java | 48 .authority(IconsUriHelper.AUTHORITY) in testGetContentUri() 99 .authority(IconsUriHelper.AUTHORITY) in testGetResourceInfo_unrecognizedUri() 113 .authority(IconsUriHelper.AUTHORITY) in testGetResourceInfo_invalidScheme() 127 .authority("invalid.authority") in testGetResourceInfo_invalidAuthority()
|