Home
last modified time | relevance | path

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

12345678910

/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/
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/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/services/Telecomm/tests/src/com/android/server/telecom/tests/
DPhoneAccountRegistrarTest.java606 List<PhoneAccount> accounts = mRegistrar.getAllPhoneAccounts(Process.myUserHandle()); in testSortSimFirst() local
607 assertTrue(accounts.get(0).getLabel().toString().equals("2")); in testSortSimFirst()
608 assertTrue(accounts.get(1).getLabel().toString().equals("1")); in testSortSimFirst()
644 List<PhoneAccount> accounts = mRegistrar.getAllPhoneAccounts(Process.myUserHandle()); in testSortBySortOrder() local
645 assertTrue(accounts.get(0).getLabel().toString().equals("c")); in testSortBySortOrder()
646 assertTrue(accounts.get(1).getLabel().toString().equals("b")); in testSortBySortOrder()
647 assertTrue(accounts.get(2).getLabel().toString().equals("a")); in testSortBySortOrder()
681 List<PhoneAccount> accounts = mRegistrar.getAllPhoneAccounts(Process.myUserHandle()); in testSortByLabel() local
682 assertTrue(accounts.get(0).getLabel().toString().equals("a")); in testSortByLabel()
683 assertTrue(accounts.get(1).getLabel().toString().equals("b")); in testSortByLabel()
[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/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/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/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/Settings/tests/robotests/src/com/android/settings/accounts/
DAccountPreferenceControllerTest.java16 package com.android.settings.accounts;
18 import android.accounts.Account;
19 import android.accounts.AccountManager;
20 import android.accounts.AuthenticatorDescription;
41 import com.android.settingslib.accounts.AuthenticatorHelper;
337 Account[] accounts = {new Account("Account1", "com.acct1")}; in onResume_twoAccountsOfSameType_shouldAddThreePreferences() local
338 when(mAccountManager.getAccountsAsUser(anyInt())).thenReturn(accounts); in onResume_twoAccountsOfSameType_shouldAddThreePreferences()
416 Account[] accounts = {new Account("Acct1", "com.acct1")}; in onResume_noAccountChange_shouldNotAddAccountPreference() local
417 when(mAccountManager.getAccountsAsUser(anyInt())).thenReturn(accounts); in onResume_noAccountChange_shouldNotAddAccountPreference()
451 Account[] accounts = {new Account("Acct1", "com.acct1")}; in onResume_oneNewAccount_shouldAddOneAccountPreference() local
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/dashboard/
DSupportItemAdapterTest.java19 import android.accounts.Account;
160 Account accounts[]) { in testBindAccountPickerInner() argument
161 bindAccountPickerInner(viewHolder, accounts); in testBindAccountPickerInner()
167 assertThat(adapter.getCount()).isEqualTo(accounts.length + 1); in testBindAccountPickerInner()
168 for (int i = 0; i < accounts.length; i++) { in testBindAccountPickerInner()
169 assertThat(adapter.getItem(i)).isEqualTo(accounts[i].name); in testBindAccountPickerInner()
181 Account accounts[]) { in bindAccountPickerInner() argument
182 when(mSupportFeatureProvider.getSupportEligibleAccounts(mActivity)).thenReturn(accounts); in bindAccountPickerInner()
/packages/services/Telecomm/src/com/android/server/telecom/
DPhoneAccountRegistrar.java290 List<PhoneAccount> accounts = getAllPhoneAccounts(userHandle).stream() in getPhoneAccountByGroupId() local
297 if (accounts.size() > 1) { in getPhoneAccountByGroupId()
300 return accounts.isEmpty() ? null : accounts.get(0); in getPhoneAccountByGroupId()
664 mState.accounts.remove(oldAccount); in addOrReplacePhoneAccount()
694 mState.accounts.add(account); in addOrReplacePhoneAccount()
714 if (mState.accounts.remove(account)) { in unregisterPhoneAccount()
730 Iterator<PhoneAccount> it = mState.accounts.iterator(); in clearAccounts()
737 mState.accounts.remove(phoneAccount); in clearAccounts()
896 for (PhoneAccount m : mState.accounts) { in getPhoneAccountUnchecked()
985 List<PhoneAccount> accounts = new ArrayList<>(mState.accounts.size()); in getPhoneAccounts() local
[all …]
/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/TvSettings/Settings/src/com/android/tv/settings/accounts/
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/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/apps/TvSettings/Settings/src/com/android/tv/settings/
DMainFragment.java19 import android.accounts.Account;
20 import android.accounts.AccountManager;
21 import android.accounts.AuthenticatorDescription;
46 import com.android.settingslib.accounts.AuthenticatorHelper;
49 import com.android.tv.settings.accounts.AccountSyncFragment;
50 import com.android.tv.settings.accounts.AddAccountWithTypeActivity;
241 Account[] accounts = am.getAccountsByType(authDesc.type); in updateAccounts() local
242 if (accounts == null || accounts.length == 0) { in updateAccounts()
255 for (final Account account : accounts) { in updateAccounts()
/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()
/packages/apps/Settings/src/com/android/settings/accounts/
DRemoveAccountPreferenceController.java16 package com.android.settings.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.java21 import android.accounts.Account;
22 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/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/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/
DAccountsSettingsFragment.java41 import com.android.inputmethod.latin.accounts.AccountStateChangedListener;
42 import com.android.inputmethod.latin.accounts.LoginAccountUtils;
349 AlertDialog createAccountPicker(final String[] accounts, in createAccountPicker() argument
352 if (accounts == null || accounts.length == 0) { in createAccountPicker()
362 for (int i = 0; i < accounts.length; i++) { in createAccountPicker()
363 if (TextUtils.equals(accounts[i], selectedAccount)) { in createAccountPicker()
371 .setSingleChoiceItems(accounts, index, null) in createAccountPicker()

12345678910