Searched refs:accounts (Results 1 - 25 of 236) sorted by relevance

12345678910

/packages/apps/Calendar/src/com/android/calendar/
H A DRecipientAdapter.java21 import android.accounts.Account;
37 super.setAccount(new android.accounts.Account(account.name, "unknown"));
H A DCalendarSettingsActivity.java19 import android.accounts.Account;
20 import android.accounts.AccountManager;
46 Account[] accounts = AccountManager.get(this).getAccounts();
47 if (accounts != null) {
48 int length = accounts.length;
50 Account acct = accounts[i];
64 mAccounts = accounts;
124 Account[] accounts = AccountManager.get(CalendarSettingsActivity.this).getAccounts();
125 if (accounts != null && !accounts
[all...]
/packages/apps/Settings/src/com/android/settings/accounts/
H A DAccountFeatureProviderImpl.java1 package com.android.settings.accounts;
3 import android.accounts.Account;
H A DAccountFeatureProvider.java17 package com.android.settings.accounts;
19 import android.accounts.Account;
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/shadow/
H A DShadowAccountManager.java19 import android.accounts.AccountManager;
20 import android.accounts.AuthenticatorDescription;
/packages/apps/Email/tests/src/com/android/email/
H A DAccountTestCase.java19 import android.accounts.AccountManager;
20 import android.accounts.AccountManagerFuture;
21 import android.accounts.AuthenticatorException;
22 import android.accounts.OperationCanceledException;
37 * Base class for unit tests that use {@link android.accounts.Account}.
50 protected android.accounts.Account[] getExchangeAccounts() {
54 protected android.accounts.Account makeAccountManagerAccount(String username) {
55 return new android.accounts.Account(username, TEST_ACCOUNT_TYPE);
59 final android.accounts.Account account = makeAccountManagerAccount(username);
86 protected void deleteAccountManagerAccount(android.accounts
[all...]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/accounts/
H A DAuthUtils.java17 package com.android.inputmethod.latin.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;
H A DAccountsChangedReceiver.java17 package com.android.inputmethod.latin.accounts;
19 import android.accounts.AccountManager;
64 * in the list of current accounts.
67 final String[] accounts, final String currentAccount) {
71 for (final String account : accounts) {
66 removeUnknownAccountFromPreference(final SharedPreferences prefs, final String[] accounts, final String currentAccount) argument
/packages/apps/Car/Settings/src/com/android/car/settings/accounts/
H A DAccountManagerHelper.java17 package com.android.car.settings.accounts;
19 import android.accounts.Account;
20 import android.accounts.AccountManager;
26 import com.android.settingslib.accounts.AuthenticatorHelper;
32 * Helper class for managing accounts that belong to a single user.
68 * Returns all the enabled accounts that exist for the current user. These include 1st and 3rd
69 * party accounts.
74 List<Account> accounts = new ArrayList<>();
82 accounts.add(account);
85 return accounts;
[all...]
H A DAccountsItemProvider.java17 package com.android.car.settings.accounts;
19 import android.accounts.Account;
39 * Creates items that represent current user's accounts.
75 List<Account> accounts = getSortedUserAccounts();
79 // Add "Account for $User" title for a list of accounts.
82 accounts.isEmpty() ? mContext.getString(R.string.no_accounts_added) : ""));
84 // Add an item for each account owned by the current user (1st and 3rd party accounts)
85 for (Account account : accounts) {
93 List<Account> accounts = mAccountManagerHelper.getAccountsForCurrentUser();
95 // Sort accounts
[all...]
/packages/apps/UnifiedEmail/src/com/android/mail/utils/
H A DAccountUtils.java32 * Merge two lists of accounts into one list of accounts without duplicates.
34 * @param inList List of accounts.
35 * @param accounts Accounts to merge in.
39 * @return Merged list of accounts.
41 public static List<Account> mergeAccountLists(List<Account> inList, Account[] accounts, argument
51 // Make sure the accounts are actually synchronized
52 // (we won't be able to save/send for accounts that
54 for (int i = 0; i < accounts.length; i++) {
55 final String accountName = accounts[
[all...]
/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/suggestions/eligibility/
H A DAccountEligibilityChecker.java19 import android.accounts.Account;
20 import android.accounts.AccountManager;
41 Account[] accounts = accountManager.getAccountsByType(requiredAccountType);
42 boolean satisfiesRequiredAccount = accounts.length > 0;
/packages/apps/Contacts/src/com/android/contacts/model/account/
H A DAccountInfo.java92 * Returns whether accounts contains an account that is the same as account
97 public static boolean contains(List<AccountInfo> accounts, AccountInfo account) { argument
98 return contains(accounts, account.getAccount());
102 * Returns whether accounts contains an account that is the same as account
107 public static boolean contains(List<AccountInfo> accounts, AccountWithDataSet account) { argument
108 return getAccount(accounts, account) != null;
114 public static AccountInfo getAccount(List<AccountInfo> accounts, AccountWithDataSet account) { argument
115 Preconditions.checkNotNull(accounts);
117 for (AccountInfo info : accounts) {
126 * Sorts the accounts usin
128 sortAccounts(AccountWithDataSet defaultAccount, List<AccountInfo> accounts) argument
135 extractAccounts(List<AccountInfo> accounts) argument
[all...]
H A DAccountDisplayInfoFactory.java30 * Provides methods to get AccountDisplayInfo instances for available accounts.
32 * For most accounts the account name will be used for the label but device accounts and
33 * SIM accounts have friendly names associated with them unless there is more than one of these
34 * types of accounts present in the list.
46 public AccountDisplayInfoFactory(Context context, List<AccountWithDataSet> accounts) { argument
48 ObjectFactory.getDeviceLocalAccountTypeFactory(context), accounts);
53 List<AccountWithDataSet> accounts) {
58 mSimAccountCount = countOfType(DeviceLocalAccountTypeFactory.TYPE_SIM, accounts);
59 mDeviceAccountCount = countOfType(DeviceLocalAccountTypeFactory.TYPE_DEVICE, accounts);
51 AccountDisplayInfoFactory(Context context, AccountTypeManager accountTypeManager, DeviceLocalAccountTypeFactory deviceAccountTypeFactory, List<AccountWithDataSet> accounts) argument
100 countOfType(@eviceLocalAccountTypeFactory.LocalAccountType int type, List<AccountWithDataSet> accounts) argument
[all...]
/packages/apps/Settings/tests/unit/src/com/android/settings/accounts/
H A DAuthenticator.java16 package com.android.settings.accounts;
18 import android.accounts.AbstractAccountAuthenticator;
19 import android.accounts.Account;
20 import android.accounts.AccountAuthenticatorResponse;
21 import android.accounts.AccountManager;
22 import android.accounts.NetworkErrorException;
H A DTestAuthService.java16 package com.android.settings.accounts;
/packages/apps/Contacts/src/com/android/contacts/util/
H A DAccountsListAdapter.java48 public AccountsListAdapter(Context context, List<AccountInfo> accounts) { argument
49 this(context, accounts, null);
56 public AccountsListAdapter(Context context, List<AccountInfo> accounts, argument
60 mAccounts = new ArrayList<>(accounts.size());
61 setAccounts(accounts, currentAccount);
64 public void setAccounts(List<AccountInfo> accounts, AccountWithDataSet currentAccount) { argument
67 ? AccountInfo.getAccount(accounts, currentAccount)
68 : AccountInfo.getAccount(accounts, mAccounts.get(0).getAccount());
71 mAccounts.addAll(accounts);
/packages/apps/Camera2/src_pd/com/android/camera/util/
H A DGoogleHelpHelper.java19 import android.accounts.Account;
/packages/apps/TV/src/com/android/tv/util/account/
H A DAccountHelper.java19 import android.accounts.Account;
35 /** Returns all eligible accounts . */
H A DAccountHelperImpl.java19 import android.accounts.Account;
60 * Returns all eligible accounts.
62 * <p>Override this method to return the accounts needed.
91 Account[] accounts = getEligibleAccounts();
92 return accounts.length == 0 ? null : accounts[0];
/packages/inputmethods/LatinIME/java-overridable/src/com/android/inputmethod/latin/accounts/
H A DLoginAccountUtils.java17 package com.android.inputmethod.latin.accounts;
24 * Utility class for retrieving accounts that may be used for login.
29 * This account type is used when listing the accounts available on the device for login.
38 * Get the accounts available for login.
40 * @return an array of accounts. Empty (never null) if no accounts are available for login.
/packages/apps/Bluetooth/src/com/android/bluetooth/pbapclient/
H A DAuthenticator.java18 import android.accounts.AbstractAccountAuthenticator;
19 import android.accounts.Account;
20 import android.accounts.AccountAuthenticatorResponse;
21 import android.accounts.AccountManager;
22 import android.accounts.NetworkErrorException;
41 // Don't add additional accounts
46 // Don't allow accounts to be added.
/packages/apps/Email/provider_src/com/android/email/provider/
H A DAccountReconciler.java19 import android.accounts.AccountManager;
20 import android.accounts.AccountManagerFuture;
21 import android.accounts.AuthenticatorException;
22 import android.accounts.OperationCanceledException;
52 * Get all AccountManager accounts for all email types.
54 * @return A list of all {@link android.accounts.Account}s created by our app.
56 private static List<android.accounts.Account> getAllAmAccounts(final Context context) {
66 final ImmutableList.Builder<android.accounts.Account> builder = ImmutableList.builder();
68 final android.accounts.Account[] accounts
124 hasAmAccount(final List<android.accounts.Account> accounts, final String name, final String type) argument
140 hasEpAccount(final List<Account> accounts, final String name) argument
[all...]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accounts/
H A DAddAccountWithTypeActivity.java17 package com.android.tv.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/KeyChain/support/src/com/android/keychain/tests/support/
H A DIKeyChainServiceTestSupport.aidl18 import android.accounts.Account;

Completed in 5773 milliseconds

12345678910