Java Code Examples for android.content.ContentResolver#getIsSyncable()
The following examples show how to use
android.content.ContentResolver#getIsSyncable() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: Sources.java From opentasks with Apache License 2.0 | 5 votes |
/** * Return all accounts that support the task authority. * * @return A {@link List} of {@link Account}s, will never be <code>null</code>. */ public List<Account> getExistingAccounts() { List<Account> result = new ArrayList<Account>(); Account[] accounts = mAccountManager.getAccounts(); for (Account account : accounts) { if (getModel(account.type) != null && ContentResolver.getIsSyncable(account, mAuthority) > 0) { result.add(account); } } return result; }
Example 2
Source File: SystemSyncContentResolverDelegate.java From 365browser with Apache License 2.0 | 4 votes |
@Override public int getIsSyncable(Account account, String authority) { return ContentResolver.getIsSyncable(account, authority); }
Example 3
Source File: SyncAdapterHelper.java From COCOFramework with Apache License 2.0 | 4 votes |
public boolean isAutoSync(Account mAccount) { return ContentResolver.getIsSyncable(mAccount, AUTHORITY) > 0 && ContentResolver.getMasterSyncAutomatically() && ContentResolver.getSyncAutomatically(mAccount, AUTHORITY); }
Example 4
Source File: AccountManagerHelper.java From moVirt with Apache License 2.0 | 4 votes |
public boolean isSyncable(MovirtAccount account) { return account != null && ContentResolver.getIsSyncable(account.getAccount(), OVirtContract.CONTENT_AUTHORITY) == 1; }
Example 5
Source File: SystemSyncContentResolverDelegate.java From android-chromium with BSD 2-Clause "Simplified" License | 4 votes |
@Override public int getIsSyncable(Account account, String authority) { return ContentResolver.getIsSyncable(account, authority); }
Example 6
Source File: SystemSyncContentResolverDelegate.java From android-chromium with BSD 2-Clause "Simplified" License | 4 votes |
@Override public int getIsSyncable(Account account, String authority) { return ContentResolver.getIsSyncable(account, authority); }