Home
last modified time | relevance | path

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

12345678910>>...13

/packages/providers/ContactsProvider/tests/assets/upgradeTest/
Dcontacts2_1108.sql14 CREATE TABLE accounts (_id INTEGER PRIMARY KEY AUTOINCREMENT,account_name TEXT, account_type TEXT, … table
17 …ts (_id INTEGER PRIMARY KEY AUTOINCREMENT,account_id INTEGER REFERENCES accounts(_id),sourceid TEX…
38 …ackage_id INTEGER REFERENCES package(_id),account_id INTEGER REFERENCES accounts(_id),sourceid TEX…
139accounts.account_name AS account_name,accounts.account_type AS account_type,accounts.data_set AS d…
140accounts.account_name AS account_name,accounts.account_type AS account_type,accounts.data_set AS d…
142accounts.account_name AS account_name,accounts.account_type AS account_type,accounts.data_set AS d…
143accounts.account_name AS account_name,accounts.account_type AS account_type,accounts.data_set AS d…
145accounts.account_name, accounts.account_type, accounts.data_set, stream_items.raw_contact_id as ra…
146 …ype, data_set, data, deleted FROM metadata_sync JOIN accounts ON (metadata_sync.account_id=account…
147 …pe, data_set, state FROM metadata_sync_state JOIN accounts ON (metadata_sync_state.account_id=acco…
[all …]
/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/provider_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;
56 private static List<android.accounts.Account> getAllAmAccounts(final Context context) { in getAllAmAccounts()
66 final ImmutableList.Builder<android.accounts.Account> builder = ImmutableList.builder(); in getAllAmAccounts()
68 final android.accounts.Account[] accounts = am.getAccountsByType(type); in getAllAmAccounts() local
69 builder.add(accounts); in getAllAmAccounts()
113 final List<android.accounts.Account> amAccounts = getAllAmAccounts(context); in reconcileAccounts()
124 private static boolean hasAmAccount(final List<android.accounts.Account> accounts, in hasAmAccount() argument
[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/Contacts/src/com/android/contacts/model/account/
DAccountInfo.java97 public static boolean contains(List<AccountInfo> accounts, AccountInfo account) { in contains() argument
98 return contains(accounts, account.getAccount()); in contains()
107 public static boolean contains(List<AccountInfo> accounts, AccountWithDataSet account) { in contains() argument
108 return getAccount(accounts, account) != null; in contains()
114 public static AccountInfo getAccount(List<AccountInfo> accounts, AccountWithDataSet account) { in getAccount() argument
115 Preconditions.checkNotNull(accounts); in getAccount()
117 for (AccountInfo info : accounts) { in getAccount()
128 public static void sortAccounts(AccountWithDataSet defaultAccount, List<AccountInfo> accounts) { in sortAccounts() argument
129 Collections.sort(accounts, sourceComparator(defaultAccount)); in sortAccounts()
135 public static List<AccountWithDataSet> extractAccounts(List<AccountInfo> accounts) { in extractAccounts() argument
[all …]
DAccountDisplayInfoFactory.java46 public AccountDisplayInfoFactory(Context context, List<AccountWithDataSet> accounts) { in AccountDisplayInfoFactory() argument
48 ObjectFactory.getDeviceLocalAccountTypeFactory(context), accounts); in AccountDisplayInfoFactory()
53 List<AccountWithDataSet> accounts) { in AccountDisplayInfoFactory() argument
58 mSimAccountCount = countOfType(DeviceLocalAccountTypeFactory.TYPE_SIM, accounts); in AccountDisplayInfoFactory()
59 mDeviceAccountCount = countOfType(DeviceLocalAccountTypeFactory.TYPE_DEVICE, accounts); in AccountDisplayInfoFactory()
85 final List<AccountWithDataSet> accounts = new ArrayList<>(filters.size()); in fromListFilters() local
87 accounts.add(filter.toAccountWithDataSet()); in fromListFilters()
89 return new AccountDisplayInfoFactory(context, accounts); in fromListFilters()
101 List<AccountWithDataSet> accounts) { in countOfType() argument
103 for (AccountWithDataSet account : accounts) { in countOfType()
/packages/apps/Contacts/src/com/android/contacts/model/
DAccountTypeManager.java19 import android.accounts.Account;
20 import android.accounts.AccountManager;
21 import android.accounts.OnAccountsUpdateListener;
247 final Account[] accounts = accountManager.getAccountsByType(
249 if (accounts == null || accounts.length == 0) {
260 for (int i = 0; i < accounts.length; i++) {
261 if (TextUtils.equals(accountWithDataSet.name, accounts[i].name)
262 && TextUtils.equals(accountWithDataSet.type, accounts[i].type)) {
263 return accounts[i];
269 return accounts[0];
[all …]
/packages/apps/Contacts/src/com/android/contacts/util/
DAccountsListAdapter.java48 public AccountsListAdapter(Context context, List<AccountInfo> accounts) { in AccountsListAdapter() argument
49 this(context, accounts, null); in AccountsListAdapter()
56 public AccountsListAdapter(Context context, List<AccountInfo> accounts, in AccountsListAdapter() argument
60 mAccounts = new ArrayList<>(accounts.size()); in AccountsListAdapter()
61 setAccounts(accounts, currentAccount); in AccountsListAdapter()
64 public void setAccounts(List<AccountInfo> accounts, AccountWithDataSet currentAccount) { in setAccounts() argument
67 ? AccountInfo.getAccount(accounts, currentAccount) in setAccounts()
68 : AccountInfo.getAccount(accounts, mAccounts.get(0).getAccount()); in setAccounts()
71 mAccounts.addAll(accounts); in setAccounts()
/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/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/accounts/
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;
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accounts/
DAccountsFragment.java17 package com.android.tv.settings.accounts;
19 import android.accounts.Account;
20 import android.accounts.AccountManager;
21 import android.accounts.AuthenticatorDescription;
39 import com.android.settingslib.accounts.AuthenticatorHelper;
65 setPreferencesFromResource(R.xml.accounts, null); in onCreatePreferences()
104 Account[] accounts = am.getAccountsByType(authDesc.type); in updateAccounts() local
105 if (accounts == null || accounts.length == 0) { in updateAccounts()
112 for (final Account account : accounts) { in updateAccounts()
DRemoveAccountDialog.java17 package com.android.tv.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;
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/services/Telecomm/tests/src/com/android/server/telecom/tests/
DPhoneAccountRegistrarTest.java646 List<PhoneAccount> accounts = mRegistrar.getAllPhoneAccounts(Process.myUserHandle()); in testSortSimFirst() local
647 assertTrue(accounts.get(0).getLabel().toString().equals("2")); in testSortSimFirst()
648 assertTrue(accounts.get(1).getLabel().toString().equals("1")); in testSortSimFirst()
685 List<PhoneAccount> accounts = mRegistrar.getAllPhoneAccounts(Process.myUserHandle()); in testSortBySortOrder() local
686 assertTrue(accounts.get(0).getLabel().toString().equals("c")); in testSortBySortOrder()
687 assertTrue(accounts.get(1).getLabel().toString().equals("b")); in testSortBySortOrder()
688 assertTrue(accounts.get(2).getLabel().toString().equals("a")); in testSortBySortOrder()
723 List<PhoneAccount> accounts = mRegistrar.getAllPhoneAccounts(Process.myUserHandle()); in testSortByLabel() local
724 assertTrue(accounts.get(0).getLabel().toString().equals("a")); in testSortByLabel()
725 assertTrue(accounts.get(1).getLabel().toString().equals("b")); in testSortByLabel()
[all …]
DCallsManagerTest.java314 List<PhoneAccountHandle> accounts = mCallsManager.findOutgoingCallPhoneAccount( in testFindOutgoingCallPhoneAccountSelfManaged() local
317 assertEquals(1, accounts.size()); in testFindOutgoingCallPhoneAccountSelfManaged()
318 assertEquals(SELF_MANAGED_HANDLE, accounts.get(0)); in testFindOutgoingCallPhoneAccountSelfManaged()
336 List<PhoneAccountHandle> accounts = mCallsManager.findOutgoingCallPhoneAccount( in testFindOutgoingCallAccountDefault() local
341 assertEquals(1, accounts.size()); in testFindOutgoingCallAccountDefault()
342 assertEquals(SIM_1_HANDLE, accounts.get(0)); in testFindOutgoingCallAccountDefault()
360 List<PhoneAccountHandle> accounts = mCallsManager.findOutgoingCallPhoneAccount( in testFindOutgoingCallAccountNoDefault() local
364 assertEquals(2, accounts.size()); in testFindOutgoingCallAccountNoDefault()
365 assertTrue(accounts.contains(SIM_1_HANDLE)); in testFindOutgoingCallAccountNoDefault()
366 assertTrue(accounts.contains(SIM_2_HANDLE)); in testFindOutgoingCallAccountNoDefault()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/accounts/
DAccountPreferenceControllerTest.java16 package com.android.settings.accounts;
32 import android.accounts.Account;
33 import android.accounts.AccountManager;
34 import android.accounts.AuthenticatorDescription;
338 Account[] accounts = {new Account("Account1", "com.acct1")}; in onResume_twoAccountsOfSameType_shouldAddThreePreferences() local
339 when(mAccountManager.getAccountsAsUser(anyInt())).thenReturn(accounts); in onResume_twoAccountsOfSameType_shouldAddThreePreferences()
417 Account[] accounts = {new Account("Acct1", "com.acct1")}; in onResume_noAccountChange_shouldNotAddAccountPreference() local
418 when(mAccountManager.getAccountsAsUser(anyInt())).thenReturn(accounts); in onResume_noAccountChange_shouldNotAddAccountPreference()
452 Account[] accounts = {new Account("Acct1", "com.acct1")}; in onResume_oneNewAccount_shouldAddOneAccountPreference() local
453 when(mAccountManager.getAccountsAsUser(anyInt())).thenReturn(accounts); in onResume_oneNewAccount_shouldAddOneAccountPreference()
[all …]
DRemoveAccountPreferenceControllerTest.java16 package com.android.settings.accounts;
30 import android.accounts.Account;
31 import android.accounts.AccountManager;
32 import android.accounts.AccountManagerCallback;
33 import android.accounts.AccountManagerFuture;
34 import android.accounts.AuthenticatorDescription;
35 import android.accounts.AuthenticatorException;
36 import android.accounts.OperationCanceledException;
/packages/apps/Car/Settings/src/com/android/car/settings/accounts/
DAccountDetailsFragment.java16 package com.android.car.settings.accounts;
18 import android.accounts.Account;
19 import android.accounts.AccountManager;
20 import android.accounts.AccountManagerCallback;
21 import android.accounts.AuthenticatorException;
22 import android.accounts.OperationCanceledException;
47 import com.android.settingslib.accounts.AuthenticatorHelper;
162 Account[] accounts = AccountManager.get(getContext()).getAccountsByTypeAsUser(mAccount.type, in accountExists() local
165 return Arrays.asList(accounts).contains(mAccount); in accountExists()
DAddAccountActivity.java16 package com.android.car.settings.accounts;
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;
/packages/providers/ContactsProvider/src/com/android/providers/contacts/aggregation/util/
DContactAggregatorHelper.java46 final Map<Long, Set<Integer>> accounts = new ArrayMap<>(); in mergeComponentsWithDisjointAccounts() local
53 Set<Integer> s = accounts.get(acctId); in mergeComponentsWithDisjointAccounts()
58 accounts.put(acctId, s); in mergeComponentsWithDisjointAccounts()
64 for (Long accountId : accounts.keySet()) { in mergeComponentsWithDisjointAccounts()
65 final Set<Integer> s = accounts.get(accountId); in mergeComponentsWithDisjointAccounts()
78 for (Long accountId : accounts.keySet()) { in mergeComponentsWithDisjointAccounts()
79 final Set<Integer> s = accounts.get(accountId); in mergeComponentsWithDisjointAccounts()
/packages/apps/Settings/tests/unit/src/com/android/settings/accounts/
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;
/packages/apps/Contacts/src/com/android/contacts/list/
DContactListFilter.java19 import android.accounts.Account;
403 public boolean isSyncable(List<AccountWithDataSet> accounts) { in isSyncable() argument
413 if (accounts != null && accounts.size() > 0) { in isSyncable()
416 for (AccountWithDataSet account : accounts) { in isSyncable()
437 public List<Account> getSyncableAccounts(List<AccountWithDataSet> accounts) { in getSyncableAccounts() argument
445 if (accounts != null && accounts.size() > 0) { in getSyncableAccounts()
446 for (AccountWithDataSet account : accounts) { in getSyncableAccounts()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/accounts/
DRemoveAccountPreferenceController.java16 package com.android.car.developeroptions.accounts;
18 import android.accounts.Account;
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/Contacts/tests/src/com/android/contacts/tests/
DAccountsTestHelper.java20 import android.accounts.Account;
21 import android.accounts.AccountManager;
101 final List<Account> accounts = Arrays.asList( in hasTestAccount() local
103 return accounts.contains(new Account(name, TEST_ACCOUNT_TYPE)); in hasTestAccount()
130 final Account[] accounts = accountManager.getAccountsByType(TEST_ACCOUNT_TYPE); in removeAccountsWithPrefix() local
131 for (Account account : accounts) { in removeAccountsWithPrefix()
/packages/apps/Contacts/src/com/android/contacts/activities/
DContactEditorAccountsChangedActivity.java120 private void updateDisplayedAccounts(List<AccountInfo> accounts) { in updateDisplayedAccounts() argument
121 final int numAccounts = accounts.size(); in updateDisplayedAccounts()
141 mAccountListAdapter = new AccountsListAdapter(this, accounts); in updateDisplayedAccounts()
144 } else if (numAccounts == 1 && !accounts.get(0).getAccount().isNullAccount()) { in updateDisplayedAccounts()
154 final AccountInfo accountInfo = accounts.get(0); in updateDisplayedAccounts()
230 public void onAccountsLoaded(List<AccountInfo> accounts) { in onAccountsLoaded() argument
231 updateDisplayedAccounts(accounts); in onAccountsLoaded()

12345678910>>...13