Home | History | Annotate | Download | only in browser

Lines Matching refs:accounts

18 import android.accounts.Account;
19 import android.accounts.AccountManager;
27 import android.provider.BrowserContract.Accounts;
34 Accounts.ACCOUNT_NAME,
35 Accounts.ACCOUNT_TYPE,
37 private static final String SELECTION = Accounts.ACCOUNT_NAME + " IS NOT NULL";
38 private static final String DELETE_SELECTION = Accounts.ACCOUNT_NAME + "=? AND "
39 + Accounts.ACCOUNT_TYPE + "=?";
54 Account[] accounts = AccountManager.get(mContext).getAccounts();
56 Cursor c = cr.query(Accounts.CONTENT_URI, PROJECTION,
61 if (!contains(accounts, name, type)) {
65 cr.update(Accounts.CONTENT_URI, null, null, null);
80 boolean contains(Account[] accounts, String name, String type) {
81 for (Account a : accounts) {