Lines Matching defs:extras

1354      * @param extras provider-defined Bundle argument.  May be null.
1360 public final Bundle call(Uri uri, String method, String arg, Bundle extras) {
1372 return provider.call(mPackageName, method, arg, extras);
1716 * types may be used in the extras bundle:
1729 * @param extras any extras to pass to the SyncAdapter.
1734 public void startSync(Uri uri, Bundle extras) {
1736 if (extras != null) {
1737 String accountName = extras.getString(SYNC_EXTRAS_ACCOUNT);
1741 extras.remove(SYNC_EXTRAS_ACCOUNT);
1743 requestSync(account, uri != null ? uri.getAuthority() : null, extras);
1749 * types may be used in the extras bundle:
1763 * @param extras any extras to pass to the SyncAdapter.
1765 public static void requestSync(Account account, String authority, Bundle extras) {
1766 requestSyncAsUser(account, authority, UserHandle.myUserId(), extras);
1774 Bundle extras) {
1775 if (extras == null) {
1776 throw new IllegalArgumentException("Must specify extras.");
1781 .setExtras(extras)
1815 * @param extras the Bundle to check
1817 public static void validateSyncExtrasBundle(Bundle extras) {
1819 for (String key : extras.keySet()) {
1820 Object value = extras.get(key);
1960 * and extras at the given frequency. If there is already another periodic sync scheduled
1961 * with the account, authority and extras then a new periodic sync won't be added, instead
1984 * @param extras extra parameters to go along with the sync request
1989 public static void addPeriodicSync(Account account, String authority, Bundle extras,
1991 validateSyncExtrasBundle(extras);
1992 if (extras.getBoolean(SYNC_EXTRAS_MANUAL, false)
1993 || extras.getBoolean(SYNC_EXTRAS_DO_NOT_RETRY, false)
1994 || extras.getBoolean(SYNC_EXTRAS_IGNORE_BACKOFF, false)
1995 || extras.getBoolean(SYNC_EXTRAS_IGNORE_SETTINGS, false)
1996 || extras.getBoolean(SYNC_EXTRAS_INITIALIZE, false)
1997 || extras.getBoolean(SYNC_EXTRAS_FORCE, false)
1998 || extras.getBoolean(SYNC_EXTRAS_EXPEDITED, false)) {
1999 throw new IllegalArgumentException("illegal extras were set");
2002 getContentService().addPeriodicSync(account, authority, extras, pollFrequency);
2012 * extras were set for a periodic sync.
2014 * @param extras bundle to validate.
2016 public static boolean invalidPeriodicExtras(Bundle extras) {
2017 if (extras.getBoolean(ContentResolver.SYNC_EXTRAS_MANUAL, false)
2018 || extras.getBoolean(ContentResolver.SYNC_EXTRAS_DO_NOT_RETRY, false)
2019 || extras.getBoolean(ContentResolver.SYNC_EXTRAS_IGNORE_BACKOFF, false)
2020 || extras.getBoolean(ContentResolver.SYNC_EXTRAS_IGNORE_SETTINGS, false)
2021 || extras.getBoolean(ContentResolver.SYNC_EXTRAS_INITIALIZE, false)
2022 || extras.getBoolean(ContentResolver.SYNC_EXTRAS_FORCE, false)
2023 || extras.getBoolean(ContentResolver.SYNC_EXTRAS_EXPEDITED, false)) {
2030 * Remove a periodic sync. Has no affect if account, authority and extras don't match
2037 * @param extras the extras of the periodic sync to remove
2039 public static void removePeriodicSync(Account account, String authority, Bundle extras) {
2040 validateSyncExtrasBundle(extras);
2042 getContentService().removePeriodicSync(account, authority, extras);
2057 * adapter, frequency, <b>and</b> extras bundle.