/packages/providers/ContactsProvider/tests/assets/upgradeTest/ |
D | contacts2_1108.sql | 14 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… 139 …accounts.account_name AS account_name,accounts.account_type AS account_type,accounts.data_set AS d… 140 …accounts.account_name AS account_name,accounts.account_type AS account_type,accounts.data_set AS d… 142 …accounts.account_name AS account_name,accounts.account_type AS account_type,accounts.data_set AS d… 143 …accounts.account_name AS account_name,accounts.account_type AS account_type,accounts.data_set AS d… 145 …accounts.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/Contacts/src/com/android/contacts/model/account/ |
D | AccountInfo.java | 97 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 …]
|
D | AccountDisplayInfoFactory.java | 46 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/ |
D | AccountTypeManager.java | 19 import android.accounts.Account; 20 import android.accounts.AccountManager; 21 import android.accounts.OnAccountsUpdateListener; 254 final Account[] accounts = accountManager.getAccountsByType( 256 if (accounts == null || accounts.length == 0) { 267 for (int i = 0; i < accounts.length; i++) { 268 if (TextUtils.equals(accountWithDataSet.name, accounts[i].name) 269 && TextUtils.equals(accountWithDataSet.type, accounts[i].type)) { 270 return accounts[i]; 276 return accounts[0]; [all …]
|
/packages/apps/Contacts/src/com/android/contacts/util/ |
D | AccountsListAdapter.java | 48 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/ |
D | AuthUtils.java | 17 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/ |
D | AccountsFragment.java | 17 package com.android.tv.settings.accounts; 21 import android.accounts.Account; 22 import android.accounts.AccountManager; 23 import android.accounts.AuthenticatorDescription; 42 import com.android.settingslib.accounts.AuthenticatorHelper; 72 setPreferencesFromResource(R.xml.accounts, null); in onCreatePreferences() 111 Account[] accounts = am.getAccountsByType(authDesc.type); in updateAccounts() local 112 if (accounts == null || accounts.length == 0) { in updateAccounts() 119 for (final Account account : accounts) { in updateAccounts()
|
D | AccountsTrampolineActivity.java | 17 package com.android.tv.settings.accounts; 19 import static com.android.tv.settings.accounts.AccountsUtil.ACCOUNTS_BASIC_MODE_FRAGMENT; 20 import static com.android.tv.settings.accounts.AccountsUtil.ACCOUNTS_FRAGMENT_DEFAULT; 21 import static com.android.tv.settings.accounts.AccountsUtil.ACCOUNTS_FRAGMENT_RESTRICTED; 22 import static com.android.tv.settings.accounts.AccountsUtil.ACCOUNTS_SLICE_FRAGMENT; 23 import static com.android.tv.settings.accounts.AccountsUtil.ACCOUNTS_SYSTEM_INTENT;
|
D | AddAccountWithTypeActivity.java | 17 package com.android.tv.settings.accounts; 19 import static com.android.tv.settings.accounts.AccountsUtil.ACCOUNTS_FRAGMENT_DEFAULT; 21 import android.accounts.AccountManager; 22 import android.accounts.AccountManagerCallback; 23 import android.accounts.AccountManagerFuture; 24 import android.accounts.AuthenticatorException; 25 import android.accounts.OperationCanceledException;
|
D | RemoveAccountDialog.java | 17 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;
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/aggregation/util/ |
D | ContactAggregatorHelper.java | 46 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/robotests/src/com/android/settings/accounts/ |
D | AccountPreferenceControllerTest.java | 16 package com.android.settings.accounts; 32 import android.accounts.Account; 33 import android.accounts.AccountManager; 34 import android.accounts.AuthenticatorDescription; 342 Account[] accounts = {new Account("Account1", "com.acct1")}; in onResume_twoAccountsOfSameType_shouldAddThreePreferences() local 343 when(mAccountManager.getAccountsAsUser(anyInt())).thenReturn(accounts); in onResume_twoAccountsOfSameType_shouldAddThreePreferences() 421 Account[] accounts = {new Account("Acct1", "com.acct1")}; in onResume_noAccountChange_shouldNotAddAccountPreference() local 422 when(mAccountManager.getAccountsAsUser(anyInt())).thenReturn(accounts); in onResume_noAccountChange_shouldNotAddAccountPreference() 456 Account[] accounts = {new Account("Acct1", "com.acct1")}; in onResume_oneNewAccount_shouldAddOneAccountPreference() local 457 when(mAccountManager.getAccountsAsUser(anyInt())).thenReturn(accounts); in onResume_oneNewAccount_shouldAddOneAccountPreference() [all …]
|
D | RemoveAccountPreferenceControllerTest.java | 16 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/Settings/tests/legacy_unit/src/com/android/settings/accounts/ |
D | Authenticator.java | 16 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/Car/Settings/tests/unit/src/com/android/car/settings/accounts/ |
D | AccountDetailsFragmentTest.java | 17 package com.android.car.settings.accounts; 26 import android.accounts.Account; 27 import android.accounts.AccountManager; 128 Account[] accounts; in addAccounts() local 130 accounts = new Account[]{mAccount}; in addAccounts() 132 accounts = new Account[0]; in addAccounts() 134 when(mMockAccountManager.getAccountsByTypeAsUser(anyString(), any())).thenReturn(accounts); in addAccounts()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/ |
D | MainFragment.java | 19 import static com.android.tv.settings.accounts.AccountsUtil.ACCOUNTS_BASIC_MODE_FRAGMENT; 20 import static com.android.tv.settings.accounts.AccountsUtil.ACCOUNTS_FRAGMENT_DEFAULT; 21 import static com.android.tv.settings.accounts.AccountsUtil.ACCOUNTS_FRAGMENT_RESTRICTED; 22 import static com.android.tv.settings.accounts.AccountsUtil.ACCOUNTS_SLICE_FRAGMENT; 23 import static com.android.tv.settings.accounts.AccountsUtil.ACCOUNTS_SYSTEM_INTENT; 31 import android.accounts.Account; 32 import android.accounts.AccountManager; 64 import com.android.tv.settings.accounts.AccountsFragment; 65 import com.android.tv.settings.accounts.AccountsUtil; 505 Account[] accounts = am.getAccounts(); in updateAccountPrefInfo() local [all …]
|
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/ |
D | PhoneAccountRegistrarTest.java | 710 List<PhoneAccount> accounts = mRegistrar.getAllPhoneAccounts(Process.myUserHandle()); in testSortSimFirst() local 711 assertTrue(accounts.get(0).getLabel().toString().equals("2")); in testSortSimFirst() 712 assertTrue(accounts.get(1).getLabel().toString().equals("1")); in testSortSimFirst() 753 List<PhoneAccount> accounts = mRegistrar.getAllPhoneAccounts(Process.myUserHandle()); in testSortBySortOrder() local 754 assertTrue(accounts.get(0).getLabel().toString().equals("c")); in testSortBySortOrder() 755 assertTrue(accounts.get(1).getLabel().toString().equals("b")); in testSortBySortOrder() 756 assertTrue(accounts.get(2).getLabel().toString().equals("a")); in testSortBySortOrder() 791 List<PhoneAccount> accounts = mRegistrar.getAllPhoneAccounts(Process.myUserHandle()); in testSortByLabel() local 792 assertTrue(accounts.get(0).getLabel().toString().equals("a")); in testSortByLabel() 793 assertTrue(accounts.get(1).getLabel().toString().equals("b")); in testSortByLabel() [all …]
|
/packages/apps/Car/Settings/src/com/android/car/settings/accounts/ |
D | AccountDetailsFragment.java | 16 package com.android.car.settings.accounts; 18 import android.accounts.Account; 19 import android.accounts.AccountManager; 32 import com.android.settingslib.accounts.AuthenticatorHelper; 130 Account[] accounts = AccountManager.get(getContext()).getAccountsByTypeAsUser(mAccount.type, in accountExists() local 133 return Arrays.asList(accounts).contains(mAccount); in accountExists()
|
D | AddAccountActivity.java | 16 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/apps/Contacts/tests/src/com/android/contacts/tests/ |
D | AccountsTestHelper.java | 20 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/list/ |
D | ContactListFilter.java | 19 import android.accounts.Account; 411 public boolean isSyncable(List<AccountWithDataSet> accounts) { in isSyncable() argument 421 if (accounts != null && accounts.size() > 0) { in isSyncable() 424 for (AccountWithDataSet account : accounts) { in isSyncable() 445 public List<Account> getSyncableAccounts(List<AccountWithDataSet> accounts) { in getSyncableAccounts() argument 453 if (accounts != null && accounts.size() > 0) { in getSyncableAccounts() 454 for (AccountWithDataSet account : accounts) { in getSyncableAccounts()
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
D | PhoneAccountRegistrar.java | 287 List<PhoneAccount> accounts = getAllPhoneAccounts(userHandle).stream() in getPhoneAccountByGroupId() local 294 if (accounts.size() > 1) { in getPhoneAccountByGroupId() 297 return accounts.isEmpty() ? null : accounts.get(0); in getPhoneAccountByGroupId() 472 public List<PhoneAccount> filterRestrictedPhoneAccounts(List<PhoneAccount> accounts) { in filterRestrictedPhoneAccounts() argument 474 return new ArrayList<>(accounts); in filterRestrictedPhoneAccounts() 477 return accounts.stream().filter(account -> mTestPhoneAccountPackageNameFilter.equals( in filterRestrictedPhoneAccounts() 802 mState.accounts.remove(oldAccount); in addOrReplacePhoneAccount() 832 mState.accounts.add(account); in addOrReplacePhoneAccount() 854 if (mState.accounts.remove(account)) { in unregisterPhoneAccount() 870 Iterator<PhoneAccount> it = mState.accounts.iterator(); in clearAccounts() [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/pbapclient/ |
D | Authenticator.java | 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/activities/ |
D | ContactEditorAccountsChangedActivity.java | 120 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() 145 && !accounts.get(0).getAccount().equals(AccountWithDataSet.getLocalAccount(this))) { in updateDisplayedAccounts() 155 final AccountInfo accountInfo = accounts.get(0); in updateDisplayedAccounts() 231 public void onAccountsLoaded(List<AccountInfo> accounts) { in onAccountsLoaded() argument 232 updateDisplayedAccounts(accounts); in onAccountsLoaded()
|
/packages/apps/Settings/src/com/android/settings/accounts/ |
D | AccountHeaderPreferenceController.java | 17 package com.android.settings.accounts; 19 import static com.android.settings.accounts.AccountDetailDashboardFragment.KEY_ACCOUNT; 20 import static com.android.settings.accounts.AccountDetailDashboardFragment.KEY_USER_HANDLE; 22 import android.accounts.Account; 34 import com.android.settingslib.accounts.AuthenticatorHelper;
|