Lines Matching refs:authority

110      * the given account/authority pair. One required initialization step is to
648 String authority = uri.getAuthority();
650 if (TextUtils.isEmpty(authority)) {
651 throw new FileNotFoundException("No authority: " + uri);
654 r = mContext.getPackageManager().getResourcesForApplication(authority);
656 throw new FileNotFoundException("No package found for authority: " + uri);
672 id = r.getIdentifier(path.get(1), path.get(0), authority);
751 * @param authority the authority of the ContentProvider to which this batch should be applied
759 public ContentProviderResult[] applyBatch(String authority,
762 ContentProviderClient provider = acquireContentProviderClient(authority);
764 throw new IllegalArgumentException("Unknown authority " + authority);
974 * with the authority of name, starting the provider if necessary. Returns
981 * with the authority of name or null if there isn't one.
1107 * @param authority which authority should be synced
1110 public static void requestSync(Account account, String authority, Bundle extras) {
1113 getContentService().requestSync(account, authority, extras);
1167 * Cancel any active or pending syncs that match account and authority. The account and
1168 * authority can each independently be set to null, which means that syncs with any account
1169 * or authority, respectively, will match.
1172 * @param authority filters the syncs that match by this authority
1174 public static void cancelSync(Account account, String authority) {
1176 getContentService().cancelSync(account, authority);
1197 * @param authority the provider whose setting we are querying
1200 public static boolean getSyncAutomatically(Account account, String authority) {
1202 return getContentService().getSyncAutomatically(account, authority);
1212 * @param authority the provider whose behavior is being controlled
1215 public static void setSyncAutomatically(Account account, String authority, boolean sync) {
1217 getContentService().setSyncAutomatically(account, authority, sync);
1225 * Specifies that a sync should be requested with the specified the account, authority,
1227 * with the account, authority and extras then a new periodic sync won't be added, instead
1242 * @param authority the provider to specify in the sync request
1248 public static void addPeriodicSync(Account account, String authority, Bundle extras,
1254 if (authority == null) {
1255 throw new IllegalArgumentException("authority must not be null");
1267 getContentService().addPeriodicSync(account, authority, extras, pollFrequency);
1275 * Remove a periodic sync. Has no affect if account, authority and extras don't match
1279 * @param authority the provider of the periodic sync to remove
1282 public static void removePeriodicSync(Account account, String authority, Bundle extras) {
1287 if (authority == null) {
1288 throw new IllegalArgumentException("authority must not be null");
1291 getContentService().removePeriodicSync(account, authority, extras);
1298 * Get the list of information about the periodic syncs for the given account and authority.
1301 * @param authority the provider whose periodic syncs we are querying
1304 public static List<PeriodicSync> getPeriodicSyncs(Account account, String authority) {
1308 if (authority == null) {
1309 throw new IllegalArgumentException("authority must not be null");
1312 return getContentService().getPeriodicSyncs(account, authority);
1322 public static int getIsSyncable(Account account, String authority) {
1324 return getContentService().getIsSyncable(account, authority);
1334 public static void setIsSyncable(Account account, String authority, int syncable) {
1336 getContentService().setIsSyncable(account, authority, syncable);
1374 * account or authority in the pending list, or actively being processed.
1376 * @param authority the provider whose behavior is being queried
1377 * @return true if a sync is active for the given account or authority.
1379 public static boolean isSyncActive(Account account, String authority) {
1381 return getContentService().isSyncActive(account, authority);
1424 * Returns the status that matches the authority.
1426 * @param authority the provider whose behavior is being queried
1427 * @return the SyncStatusInfo for the authority, or null if none exists
1430 public static SyncStatusInfo getSyncStatus(Account account, String authority) {
1432 return getContentService().getSyncStatus(account, authority);
1441 * @param authority the provider whose behavior is being queried
1442 * @return true if there is a pending sync with the matching account and authority
1444 public static boolean isSyncPending(Account account, String authority) {
1446 return getContentService().isSyncPending(account, authority);