/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; 248 final Account[] accounts = accountManager.getAccountsByType( 250 if (accounts == null || accounts.length == 0) { 261 for (int i = 0; i < accounts.length; i++) { 262 if (TextUtils.equals(accountWithDataSet.name, accounts[i].name) 263 && TextUtils.equals(accountWithDataSet.type, accounts[i].type)) { 264 return accounts[i]; 270 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; 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()
|
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;
|
D | AddAccountWithTypeActivity.java | 17 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/ |
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() 749 List<PhoneAccount> accounts = mRegistrar.getAllPhoneAccounts(Process.myUserHandle()); in testSortBySortOrder() local 750 assertTrue(accounts.get(0).getLabel().toString().equals("c")); in testSortBySortOrder() 751 assertTrue(accounts.get(1).getLabel().toString().equals("b")); in testSortBySortOrder() 752 assertTrue(accounts.get(2).getLabel().toString().equals("a")); in testSortBySortOrder() 787 List<PhoneAccount> accounts = mRegistrar.getAllPhoneAccounts(Process.myUserHandle()); in testSortByLabel() local 788 assertTrue(accounts.get(0).getLabel().toString().equals("a")); in testSortByLabel() 789 assertTrue(accounts.get(1).getLabel().toString().equals("b")); in testSortByLabel() [all …]
|
/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; 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 …]
|
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/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; 20 import android.accounts.AccountManagerCallback; 21 import android.accounts.AuthenticatorException; 22 import android.accounts.OperationCanceledException; 44 import com.android.settingslib.accounts.AuthenticatorHelper; 165 Account[] accounts = AccountManager.get(getContext()).getAccountsByTypeAsUser(mAccount.type, in accountExists() local 168 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/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/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/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/Contacts/src/com/android/contacts/list/ |
D | ContactListFilter.java | 19 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/ |
D | RemoveAccountPreferenceController.java | 16 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;
|
D | AccountHeaderPreferenceController.java | 17 package com.android.car.developeroptions.accounts; 19 import static com.android.car.developeroptions.accounts.AccountDetailDashboardFragment.KEY_ACCOUNT; 20 import static com.android.car.developeroptions.accounts.AccountDetailDashboardFragment.KEY_USER_HAN… 22 import android.accounts.Account; 34 import com.android.settingslib.accounts.AuthenticatorHelper;
|
/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/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() 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/TvSettings/Settings/src/com/android/tv/settings/ |
D | MainFragment.java | 19 import android.accounts.Account; 20 import android.accounts.AccountManager; 50 import com.android.tv.settings.accounts.AccountsFragment; 429 Account[] accounts = am.getAccounts(); in updateAccountPref() local 430 if (accounts.length == 0) { in updateAccountPref() 438 if (accounts.length == 1) { in updateAccountPref() 439 accountsPref.setSummary(accounts[0].name); in updateAccountPref() 442 R.plurals.accounts_category_summary, accounts.length, accounts.length)); in updateAccountPref()
|
/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/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;
|