Lines Matching refs:authority

99      * the given account/authority pair. One required initialization step is to
505 String authority = uri.getAuthority();
507 if (TextUtils.isEmpty(authority)) {
508 throw new FileNotFoundException("No authority: " + uri);
511 r = mContext.getPackageManager().getResourcesForApplication(authority);
513 throw new FileNotFoundException("No package found for authority: " + uri);
529 id = r.getIdentifier(path.get(1), path.get(0), authority);
606 * @param authority the authority of the ContentProvider to which this batch should be applied
614 public ContentProviderResult[] applyBatch(String authority,
617 ContentProviderClient provider = acquireContentProviderClient(authority);
619 throw new IllegalArgumentException("Unknown authority " + authority);
769 * with the authority of name, starting the provider if necessary. Returns
776 * with the authority of name or null if there isn't one.
902 * @param authority which authority should be synced
905 public static void requestSync(Account account, String authority, Bundle extras) {
908 getContentService().requestSync(account, authority, extras);
962 * Cancel any active or pending syncs that match account and authority. The account and
963 * authority can each independently be set to null, which means that syncs with any account
964 * or authority, respectively, will match.
967 * @param authority filters the syncs that match by this authority
969 public static void cancelSync(Account account, String authority) {
971 getContentService().cancelSync(account, authority);
992 * @param authority the provider whose setting we are querying
995 public static boolean getSyncAutomatically(Account account, String authority) {
997 return getContentService().getSyncAutomatically(account, authority);
1007 * @param authority the provider whose behavior is being controlled
1010 public static void setSyncAutomatically(Account account, String authority, boolean sync) {
1012 getContentService().setSyncAutomatically(account, authority, sync);
1020 * Specifies that a sync should be requested with the specified the account, authority,
1022 * with the account, authority and extras then a new periodic sync won't be added, instead
1037 * @param authority the provider to specify in the sync request
1043 public static void addPeriodicSync(Account account, String authority, Bundle extras,
1049 if (authority == null) {
1050 throw new IllegalArgumentException("authority must not be null");
1062 getContentService().addPeriodicSync(account, authority, extras, pollFrequency);
1070 * Remove a periodic sync. Has no affect if account, authority and extras don't match
1074 * @param authority the provider of the periodic sync to remove
1077 public static void removePeriodicSync(Account account, String authority, Bundle extras) {
1082 if (authority == null) {
1083 throw new IllegalArgumentException("authority must not be null");
1086 getContentService().removePeriodicSync(account, authority, extras);
1093 * Get the list of information about the periodic syncs for the given account and authority.
1096 * @param authority the provider whose periodic syncs we are querying
1099 public static List<PeriodicSync> getPeriodicSyncs(Account account, String authority) {
1103 if (authority == null) {
1104 throw new IllegalArgumentException("authority must not be null");
1107 return getContentService().getPeriodicSyncs(account, authority);
1117 public static int getIsSyncable(Account account, String authority) {
1119 return getContentService().getIsSyncable(account, authority);
1129 public static void setIsSyncable(Account account, String authority, int syncable) {
1131 getContentService().setIsSyncable(account, authority, syncable);
1169 * account or authority in the pending list, or actively being processed.
1171 * @param authority the provider whose behavior is being queried
1172 * @return true if a sync is active for the given account or authority.
1174 public static boolean isSyncActive(Account account, String authority) {
1176 return getContentService().isSyncActive(account, authority);
1195 * Returns the status that matches the authority.
1197 * @param authority the provider whose behavior is being queried
1198 * @return the SyncStatusInfo for the authority, or null if none exists
1201 public static SyncStatusInfo getSyncStatus(Account account, String authority) {
1203 return getContentService().getSyncStatus(account, authority);
1212 * @param authority the provider whose behavior is being queried
1213 * @return true if there is a pending sync with the matching account and authority
1215 public static boolean isSyncPending(Account account, String authority) {
1217 return getContentService().isSyncPending(account, authority);