Home
last modified time | relevance | path

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

1234567

/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;
50 protected android.accounts.Account[] getExchangeAccounts() { in getExchangeAccounts()
54 protected android.accounts.Account makeAccountManagerAccount(String username) { in makeAccountManagerAccount()
55 return new android.accounts.Account(username, TEST_ACCOUNT_TYPE); in makeAccountManagerAccount()
59 final android.accounts.Account account = makeAccountManagerAccount(username); in createAccountManagerAccount()
86 protected void deleteAccountManagerAccount(android.accounts.Account account) { in deleteAccountManagerAccount()
98 for (android.accounts.Account accountManagerAccount: getExchangeAccounts()) { in deleteTemporaryAccountManagerAccounts()
[all …]
/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;
54 private static List<android.accounts.Account> getAllAmAccounts(final Context context) { in getAllAmAccounts()
64 final ImmutableList.Builder<android.accounts.Account> builder = ImmutableList.builder(); in getAllAmAccounts()
66 final android.accounts.Account[] accounts = am.getAccountsByType(type); in getAllAmAccounts() local
67 builder.add(accounts); in getAllAmAccounts()
111 final List<android.accounts.Account> amAccounts = getAllAmAccounts(context); in reconcileAccounts()
122 private static boolean hasAmAccount(final List<android.accounts.Account> accounts, in hasAmAccount() argument
[all …]
/packages/services/Telecomm/src/com/android/server/telecom/
DPhoneAccountRegistrar.java150 for (int i = 0; i < mState.accounts.size(); i++) { in getUserSelectedOutgoingPhoneAccount()
151 if (mState.accounts.get(i).getAccountHandle().equals(mState.defaultOutgoing)) { in getUserSelectedOutgoingPhoneAccount()
167 for (PhoneAccount m : mState.accounts) { in setUserSelectedOutgoingPhoneAccount()
221 for (int i = 0; i < mState.accounts.size(); i++) { in getSimCallManager()
222 if (mState.accounts.get(i).getAccountHandle().equals(mState.simCallManager)) { in getSimCallManager()
266 for (PhoneAccount m : mState.accounts) { in getAllPhoneAccountHandles()
273 return new ArrayList<>(mState.accounts); in getAllPhoneAccounts()
282 return mState.accounts.size(); in getAllPhoneAccountsCount()
313 for (PhoneAccount m : mState.accounts) { in getPhoneAccountsForPackage()
334 for (PhoneAccount m : mState.accounts) { in getPhoneAccount()
[all …]
/packages/apps/UnifiedEmail/src/com/android/mail/utils/
DAccountUtils.java41 public static List<Account> mergeAccountLists(List<Account> inList, Account[] accounts, in mergeAccountLists() argument
54 for (int i = 0; i < accounts.length; i++) { in mergeAccountLists()
55 final String accountName = accounts[i].getEmailAddress(); in mergeAccountLists()
59 newAccountList.add(accounts[i]); in mergeAccountLists()
73 final List<Account> accounts = Lists.newArrayList(); in getSyncingAccounts() local
82 accounts.add(account); in getSyncingAccounts()
91 return accounts.toArray(new Account[accounts.size()]); in getSyncingAccounts()
102 final List<Account> accounts = Lists.newArrayList(); in getAccounts() local
108 accounts.add(Account.builder().buildFrom(accountsCursor)); in getAccounts()
116 return accounts.toArray(new Account[accounts.size()]); in getAccounts()
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
DMailboxSelectionActivity.java207 private void completeSetupWithAccounts(final Cursor accounts) { in completeSetupWithAccounts() argument
211 updateAccountList(accounts); in completeSetupWithAccounts()
216 private void updateAccountList(final Cursor accounts) { in updateAccountList() argument
220 if (accounts == null || accounts.getCount() == 0) { in updateAccountList()
235 } else if (mConfigureWidget && accounts.getCount() == 1) { in updateAccountList()
239 accounts.moveToFirst(); in updateAccountList()
240 selectAccount(Account.builder().buildFrom(accounts)); in updateAccountList()
254 mAdapter = new SimpleCursorAdapter(this, R.layout.mailbox_item, accounts, in updateAccountList()
369 ArrayList<Account> accounts = new ArrayList<Account>(); in onLoadFinished() local
376 accounts.add(account); in onLoadFinished()
[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()
124 Account[] accounts = AccountManager.get(CalendarSettingsActivity.this).getAccounts();
125 if (accounts != null && !accounts.equals(mAccounts)) {
/packages/apps/Settings/src/com/android/settings/accounts/
DAuthenticatorHelper.java17 package com.android.settings.accounts;
21 import android.accounts.Account;
22 import android.accounts.AccountManager;
23 import android.accounts.AuthenticatorDescription;
180 void onAccountsUpdated(Account[] accounts) { in onAccountsUpdated() argument
182 if (accounts == null) { in onAccountsUpdated()
183 accounts = AccountManager.get(mContext).getAccountsAsUser(mUserHandle.getIdentifier()); in onAccountsUpdated()
187 for (int i = 0; i < accounts.length; i++) { in onAccountsUpdated()
188 final Account account = accounts[i]; in onAccountsUpdated()
202 final Account[] accounts = AccountManager.get(mContext) in onReceive() local
[all …]
DAccountSyncSettings.java17 package com.android.settings.accounts;
21 import android.accounts.Account;
22 import android.accounts.AccountManager;
23 import android.accounts.AccountManagerCallback;
24 import android.accounts.AccountManagerFuture;
25 import android.accounts.AuthenticatorException;
26 import android.accounts.OperationCanceledException;
460 Account[] accounts = AccountManager.get(getActivity()).getAccountsByTypeAsUser( in accountExists()
462 final int count = accounts.length; in accountExists()
464 if (accounts[i].equals(account)) { in accountExists()
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;
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accounts/
DAccountSyncSettings.java17 package com.android.tv.settings.accounts;
26 import android.accounts.Account;
27 import android.accounts.AccountManager;
28 import android.accounts.OnAccountsUpdateListener;
137 public void onAccountsUpdated(Account[] accounts) { in onAccountsUpdated() argument
138 mAccounts = accounts; in onAccountsUpdated()
139 loadSyncActions(accounts); in onAccountsUpdated()
194 private void loadSyncActions(Account[] accounts) { in loadSyncActions() argument
195 new LoadActionsTask().execute(accounts); in loadSyncActions()
198 private ArrayList<Action> getActions(Account[] accounts) { in getActions() argument
[all …]
DAuthenticatorHelper.java17 package com.android.tv.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()
DRemoveAccountDialog.java17 package com.android.tv.settings.accounts;
26 import android.accounts.Account;
27 import android.accounts.AccountManager;
28 import android.accounts.AccountManagerCallback;
29 import android.accounts.AccountManagerFuture;
30 import android.accounts.AuthenticatorException;
31 import android.accounts.OperationCanceledException;
DAddAccountWithTypeActivity.java17 package com.android.tv.settings.accounts;
22 import android.accounts.AccountManager;
23 import android.accounts.AccountManagerCallback;
24 import android.accounts.AccountManagerFuture;
25 import android.accounts.AuthenticatorException;
26 import android.accounts.OperationCanceledException;
/packages/apps/Exchange/src/com/android/exchange/service/
DPingSyncSynchronizer.java166 final android.accounts.Account amAccount = in syncEnd()
167 new android.accounts.Account(account.mEmailAddress, in syncEnd()
172 final android.accounts.Account amAccount = in syncEnd()
173 new android.accounts.Account(account.mEmailAddress, in syncEnd()
189 private boolean pingEnd(final android.accounts.Account amAccount) { in pingEnd()
209 final android.accounts.Account amAccount) { in scheduleDelayedPing()
228 final android.accounts.Account amAccount = in pushModify()
229 new android.accounts.Account(account.mEmailAddress, in pushModify()
357 public void pingEnd(final long accountId, final android.accounts.Account amAccount) { in pingEnd()
/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/services/Telecomm/tests/src/com/android/server/telecom/tests/unit/
DPhoneAccountRegistrarTest.java273 assertEquals(a.accounts.size(), b.accounts.size()); in assertStateEquals()
274 for (int i = 0; i < a.accounts.size(); i++) { in assertStateEquals()
275 assertPhoneAccountEquals(a.accounts.get(i), b.accounts.get(i)); in assertStateEquals()
281 s.accounts.add(makeQuickAccount("id0", 0)); in makeQuickState()
282 s.accounts.add(makeQuickAccount("id1", 1)); in makeQuickState()
283 s.accounts.add(makeQuickAccount("id2", 2)); in makeQuickState()
/packages/apps/Settings/src/com/android/settings/
DMasterClear.java19 import android.accounts.Account;
20 import android.accounts.AccountManager;
21 import android.accounts.AuthenticatorDescription;
178 LinearLayout contents = (LinearLayout)mContentView.findViewById(R.id.accounts); in loadAccountList()
184 Account[] accounts = mgr.getAccounts(); in loadAccountList() local
185 final int N = accounts.length; in loadAccountList()
199 Account account = accounts[i]; in loadAccountList()
/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;
345 public void onAccountsUpdated(Account[] accounts) { in onAccountsUpdated() argument
478 Account[] accounts = mAccountManager.getAccounts(); in loadAccountsInBackground() local
479 for (Account account : accounts) { in loadAccountsInBackground()
672 Collection<AccountWithDataSet> accounts, in findAllInvitableAccountTypes() argument
675 for (AccountWithDataSet account : accounts) { in findAllInvitableAccountTypes()
/packages/apps/Email/src/com/android/email/service/
DEmailServiceUtils.java19 import android.accounts.AccountManager;
20 import android.accounts.AccountManagerCallback;
21 import android.accounts.AccountManagerFuture;
22 import android.accounts.AuthenticatorException;
23 import android.accounts.OperationCanceledException;
329 android.accounts.Account amAccount, final Map<String, String> protocolMap) { in updateAccountManagerType()
396 new android.accounts.Account(amName, oldType)); in updateAccountManagerType()
408 new android.accounts.Account(amName, oldType)); in updateAccountManagerType()
452 new android.accounts.Account(amName, accountType), in updateAccountManagerType()
468 new android.accounts.Account(amName, accountType), in updateAccountManagerType()
/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;
656 public void setAccounts(Account[] accounts) { in setAccounts() argument
657 mAccounts = accounts; in setAccounts()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/
DBrowseInfo.java19 import android.accounts.Account;
20 import android.accounts.AccountManager;
46 import com.android.tv.settings.accounts.AccountImageUriGetter;
47 import com.android.tv.settings.accounts.AccountSettingsActivity;
48 import com.android.tv.settings.accounts.AuthenticatorHelper;
496 Account[] accounts = AccountManager.get(mContext).getAccountsByType(accountType); in addAccounts() local
498 googleAccountCount = accounts.length; in addAccounts()
500 for (final Account account : accounts) { in addAccounts()
/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()

1234567