Home
last modified time | relevance | path

Searched refs:accounts (Results 1 – 25 of 117) sorted by relevance

12345

/packages/apps/Email/tests/src/com/android/email/
DAccountTestCase.java19 import android.accounts.AccountManager;
20 import android.accounts.AccountManagerFuture;
21 import android.accounts.AuthenticatorException;
22 import android.accounts.OperationCanceledException;
48 protected android.accounts.Account[] getExchangeAccounts() { in getExchangeAccounts()
52 protected android.accounts.Account makeAccountManagerAccount(String username) { in makeAccountManagerAccount()
53 return new android.accounts.Account(username, TEST_ACCOUNT_TYPE); in makeAccountManagerAccount()
57 final android.accounts.Account account = makeAccountManagerAccount(username); in createAccountManagerAccount()
84 protected void deleteAccountManagerAccount(android.accounts.Account account) { in deleteAccountManagerAccount()
96 for (android.accounts.Account accountManagerAccount: getExchangeAccounts()) { in deleteTemporaryAccountManagerAccounts()
[all …]
/packages/apps/Calendar/src/com/android/calendar/
DCalendarSettingsActivity.java19 import android.accounts.Account;
20 import android.accounts.AccountManager;
46 Account[] accounts = AccountManager.get(this).getAccounts(); in onBuildHeaders() local
47 if (accounts != null) { in onBuildHeaders()
48 int length = accounts.length; in onBuildHeaders()
50 Account acct = accounts[i]; in onBuildHeaders()
64 mAccounts = accounts; in onBuildHeaders()
118 Account[] accounts = AccountManager.get(CalendarSettingsActivity.this).getAccounts();
119 if (accounts != null && !accounts.equals(mAccounts)) {
/packages/apps/Settings/src/com/android/settings/accounts/
DAccountSyncSettings.java17 package com.android.settings.accounts;
19 import android.accounts.Account;
20 import android.accounts.AccountManager;
21 import android.accounts.AccountManagerCallback;
22 import android.accounts.AccountManagerFuture;
23 import android.accounts.AuthenticatorException;
24 import android.accounts.OperationCanceledException;
438 public void onAccountsUpdated(Account[] accounts) { in onAccountsUpdated() argument
439 super.onAccountsUpdated(accounts); in onAccountsUpdated()
440 mAccounts = accounts; in onAccountsUpdated()
[all …]
DAuthenticatorHelper.java17 package com.android.settings.accounts;
19 import android.accounts.Account;
20 import android.accounts.AccountManager;
21 import android.accounts.AuthenticatorDescription;
106 public void onAccountsUpdated(Context context, Account[] accounts) { in onAccountsUpdated() argument
107 if (accounts == null) { in onAccountsUpdated()
108 accounts = AccountManager.get(context).getAccounts(); in onAccountsUpdated()
112 for (Account account: accounts) { in onAccountsUpdated()
DSyncSettings.java17 package com.android.settings.accounts;
19 import android.accounts.Account;
20 import android.accounts.AccountManager;
21 import android.accounts.OnAccountsUpdateListener;
136 public void onAccountsUpdated(Account[] accounts) { in onAccountsUpdated() argument
140 for (int i = 0, n = accounts.length; i < n; i++) { in onAccountsUpdated()
141 final Account account = accounts[i]; in onAccountsUpdated()
DAccountPreferenceBase.java17 package com.android.settings.accounts;
27 import android.accounts.Account;
28 import android.accounts.AccountManager;
29 import android.accounts.AuthenticatorDescription;
30 import android.accounts.OnAccountsUpdateListener;
62 public void onAccountsUpdated(Account[] accounts) { in onAccountsUpdated() argument
DAddAccountSettings.java17 package com.android.settings.accounts;
19 import android.accounts.AccountManager;
20 import android.accounts.AccountManagerCallback;
21 import android.accounts.AccountManagerFuture;
22 import android.accounts.AuthenticatorException;
23 import android.accounts.OperationCanceledException;
DManageAccountsSettings.java17 package com.android.settings.accounts;
19 import android.accounts.Account;
20 import android.accounts.AccountManager;
21 import android.accounts.OnAccountsUpdateListener;
306 public void onAccountsUpdated(Account[] accounts) { in onAccountsUpdated() argument
311 for (int i = 0, n = accounts.length; i < n; i++) { in onAccountsUpdated()
312 final Account account = accounts[i]; in onAccountsUpdated()
/packages/apps/Email/src/com/android/email/provider/
DAccountReconciler.java19 import android.accounts.AccountManager;
20 import android.accounts.AccountManagerFuture;
21 import android.accounts.AuthenticatorException;
22 import android.accounts.OperationCanceledException;
52 android.accounts.Account[] accountManagerAccounts) { in accountsNeedReconciling()
78 android.accounts.Account[] accountManagerAccounts, in reconcileAccounts()
93 android.accounts.Account[] accountManagerAccounts, in reconcileAccountsInternal()
103 for (android.accounts.Account accountManagerAccount: accountManagerAccounts) { in reconcileAccountsInternal()
129 for (android.accounts.Account accountManagerAccount: accountManagerAccounts) { in reconcileAccountsInternal()
/packages/apps/Email/tests/src/com/android/email/service/
DMailServiceTests.java19 import android.accounts.AccountManager;
97 android.accounts.Account[] accountManagerAccounts = AccountManager.get(context) in testTestReconcileAccounts()
99 for (android.accounts.Account accountManagerAccount: accountManagerAccounts) { in testTestReconcileAccounts()
122 android.accounts.Account[] baselineAccounts = in testReconcileAccounts()
132 android.accounts.Account[] accountManagerAccounts = in testReconcileAccounts()
137 android.accounts.Account removedAccount = in testReconcileAccounts()
173 android.accounts.Account[] accountManagerAccounts; in testReconcileDetection()
175 android.accounts.Account[] baselineAccounts = in testReconcileDetection()
180 accountManagerAccounts = new android.accounts.Account[0]; in testReconcileDetection()
192 context, providerAccounts, new android.accounts.Account[0])); in testReconcileDetection()
/packages/apps/Browser/src/com/android/browser/
DGoogleAccountLogin.java19 import android.accounts.Account;
20 import android.accounts.AccountManager;
21 import android.accounts.AccountManagerCallback;
22 import android.accounts.AccountManagerFuture;
223 Account[] accounts = getAccounts(activity); in startLoginIfNeeded() local
224 if (accounts == null || accounts.length == 0) { in startLoginIfNeeded()
230 new GoogleAccountLogin(activity, accounts[0], runnable); in startLoginIfNeeded()
DAccountsChangedReceiver.java18 import android.accounts.Account;
19 import android.accounts.AccountManager;
54 Account[] accounts = AccountManager.get(mContext).getAccounts(); in run() local
61 if (!contains(accounts, name, type)) { in run()
80 boolean contains(Account[] accounts, String name, String type) { in contains() argument
81 for (Account a : accounts) { in contains()
/packages/apps/Settings/src/com/android/settings/
DSettings.java19 import android.accounts.Account;
20 import android.accounts.AccountManager;
21 import android.accounts.OnAccountsUpdateListener;
55 import com.android.settings.accounts.AccountSyncSettings;
56 import com.android.settings.accounts.AuthenticatorHelper;
57 import com.android.settings.accounts.ManageAccountsSettings;
489 Account[] accounts = AccountManager.get(this).getAccountsByType(accountType); in insertAccountsHeaders() local
490 boolean skipToAccount = accounts.length == 1 in insertAccountsHeaders()
504 accHeader.extras.putParcelable(AccountSyncSettings.ACCOUNT_KEY, accounts[0]); in insertAccountsHeaders()
506 accounts[0]); in insertAccountsHeaders()
[all …]
DMasterClear.java19 import android.accounts.Account;
20 import android.accounts.AccountManager;
21 import android.accounts.AuthenticatorDescription;
177 LinearLayout contents = (LinearLayout)mContentView.findViewById(R.id.accounts); in loadAccountList()
183 Account[] accounts = mgr.getAccounts(); in loadAccountList() local
184 final int N = accounts.length; in loadAccountList()
198 Account account = accounts[i]; in loadAccountList()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DContactsActor.java19 import android.accounts.Account;
20 import android.accounts.AccountManager;
21 import android.accounts.AccountManagerCallback;
22 import android.accounts.AccountManagerFuture;
23 import android.accounts.AuthenticatorException;
24 import android.accounts.OnAccountsUpdateListener;
25 import android.accounts.OperationCanceledException;
518 public void setAccounts(Account[] accounts) { in setAccounts() argument
519 mAccounts = accounts; in setAccounts()
DContactDirectoryManagerTest.java19 import android.accounts.Account;
422 Account[] accounts = new Account[]{ in testAccountRemoval() local
425 mActor.setAccounts(accounts); in testAccountRemoval()
426 ((ContactsProvider2)getProvider()).onAccountsUpdated(accounts); in testAccountRemoval()
438 accounts = new Account[]{new Account("account-name1", "account-type1")}; in testAccountRemoval()
439 mActor.setAccounts(accounts); in testAccountRemoval()
440 ((ContactsProvider2)getProvider()).onAccountsUpdated(accounts); in testAccountRemoval()
/packages/apps/Contacts/src/com/android/contacts/util/
DAccountPromptUtils.java19 import android.accounts.AccountManager;
20 import android.accounts.AccountManagerCallback;
21 import android.accounts.AccountManagerFuture;
22 import android.accounts.AuthenticatorDescription;
23 import android.accounts.AuthenticatorException;
24 import android.accounts.OperationCanceledException;
/packages/experimental/LoaderApp/src/com/android/loaderapp/model/
DSources.java24 import android.accounts.Account;
25 import android.accounts.AccountManager;
26 import android.accounts.AuthenticatorDescription;
27 import android.accounts.OnAccountsUpdateListener;
176 public void onAccountsUpdated(Account[] accounts) { in onAccountsUpdated() argument
251 final Account[] accounts = am.getAccounts(); in getAccounts() local
254 for (Account account : accounts) { in getAccounts()
/packages/apps/ContactsCommon/src/com/android/contacts/common/model/
DAccountTypeManager.java19 import android.accounts.Account;
20 import android.accounts.AccountManager;
21 import android.accounts.AuthenticatorDescription;
22 import android.accounts.OnAccountsUpdateListener;
347 public void onAccountsUpdated(Account[] accounts) { in onAccountsUpdated() argument
486 Account[] accounts = mAccountManager.getAccounts(); in loadAccountsInBackground() local
487 for (Account account : accounts) { in loadAccountsInBackground()
684 Collection<AccountWithDataSet> accounts, in findAllInvitableAccountTypes() argument
687 for (AccountWithDataSet account : accounts) { in findAllInvitableAccountTypes()
/packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/
DCalendarSyncTestingBase.java19 import android.accounts.Account;
20 import android.accounts.AccountManager;
352 Account[] accounts = mAccountManager.getAccountsByType("com.google"); in getAccount() local
354 assertTrue("Didn't find any Google accounts", accounts.length > 0); in getAccount()
356 Account account = accounts[accounts.length - 1]; in getAccount()
357 Log.v(TAG, "Found " + accounts.length + " accounts; using the last one, " + account.name); in getAccount()
/packages/apps/Email/src/com/android/email/service/
DEasTestAuthenticatorService.java19 import android.accounts.AbstractAccountAuthenticator;
20 import android.accounts.Account;
21 import android.accounts.AccountAuthenticatorResponse;
22 import android.accounts.AccountManager;
23 import android.accounts.NetworkErrorException;
DPopImapAuthenticatorService.java24 import android.accounts.AbstractAccountAuthenticator;
25 import android.accounts.Account;
26 import android.accounts.AccountAuthenticatorResponse;
27 import android.accounts.AccountManager;
28 import android.accounts.NetworkErrorException;
DMailService.java19 import android.accounts.AccountManager;
20 import android.accounts.AccountManagerCallback;
543 android.accounts.Account accountManagerAccount = in setupSyncReportsLocked()
544 new android.accounts.Account(account.mEmailAddress, in setupSyncReportsLocked()
690 android.accounts.Account[] accountManagerAccounts = AccountManager.get(context)
711 android.accounts.Account[] accountManagerAccounts = AccountManager.get(context) in hasMismatchInPopImapAccounts()
727 List<Account> emailProviderAccounts, android.accounts.Account[] accountManagerAccounts, in reconcileAccountsWithAccountManager()
DEasAuthenticatorService.java24 import android.accounts.AbstractAccountAuthenticator;
25 import android.accounts.Account;
26 import android.accounts.AccountAuthenticatorResponse;
27 import android.accounts.AccountManager;
28 import android.accounts.NetworkErrorException;
/packages/apps/Email/src/com/android/email/activity/setup/
DAccountSetupOptions.java19 import android.accounts.AccountAuthenticatorResponse;
20 import android.accounts.AccountManager;
21 import android.accounts.AccountManagerCallback;
22 import android.accounts.AccountManagerFuture;
23 import android.accounts.AuthenticatorException;
24 import android.accounts.OperationCanceledException;

12345