Home
last modified time | relevance | path

Searched refs:AccountInfo (Results 1 – 25 of 28) sorted by relevance

12

/packages/apps/Contacts/src/com/android/contacts/model/account/
DAccountInfo.java32 public class AccountInfo { class
37 public AccountInfo(AccountDisplayInfo displayInfo, AccountType type) { in AccountInfo() method in AccountInfo
83 public boolean sameAccount(AccountInfo other) { in sameAccount()
97 public static boolean contains(List<AccountInfo> accounts, AccountInfo account) { in contains()
107 public static boolean contains(List<AccountInfo> accounts, AccountWithDataSet account) { in contains()
114 public static AccountInfo getAccount(List<AccountInfo> accounts, AccountWithDataSet account) { in getAccount()
117 for (AccountInfo info : accounts) { in getAccount()
128 public static void sortAccounts(AccountWithDataSet defaultAccount, List<AccountInfo> accounts) { in sortAccounts()
135 public static List<AccountWithDataSet> extractAccounts(List<AccountInfo> accounts) { in extractAccounts()
139 private static Comparator<AccountInfo> sourceComparator(AccountWithDataSet defaultAccount) { in sourceComparator()
[all …]
DAccountsLoader.java38 public class AccountsLoader extends ListenableFutureLoader<List<AccountInfo>> {
40 private final Predicate<AccountInfo> mFilter;
43 this(context, Predicates.<AccountInfo>alwaysTrue()); in AccountsLoader()
46 public AccountsLoader(Context context, Predicate<AccountInfo> filter) { in AccountsLoader()
53 protected ListenableFuture<List<AccountInfo>> loadData() { in loadData()
58 protected boolean isSameData(List<AccountInfo> previous, List<AccountInfo> next) { in isSameData()
59 return Objects.equal(AccountInfo.extractAccounts(previous), in isSameData()
60 AccountInfo.extractAccounts(next)); in isSameData()
65 void onAccountsLoaded(List<AccountInfo> accounts); in onAccountsLoaded()
78 final FragmentType fragment, int loaderId, final Predicate<AccountInfo> filter) { in loadAccounts()
[all …]
DDeviceLocalAccountType.java39 public AccountInfo wrapAccount(Context context, AccountWithDataSet account) { in wrapAccount()
42 return new AccountInfo( in wrapAccount()
DFallbackAccountType.java105 public AccountInfo wrapAccount(Context context, AccountWithDataSet account) { in wrapAccount()
106 return new AccountInfo( in wrapAccount()
DSimAccountType.java117 public AccountInfo wrapAccount(Context context, AccountWithDataSet account) { in wrapAccount()
120 return new AccountInfo( in wrapAccount()
DAccountType.java192 public AccountInfo wrapAccount(Context context, AccountWithDataSet account) { in wrapAccount()
197 return new AccountInfo( in wrapAccount()
/packages/apps/Contacts/src/com/android/contacts/model/
DAccountTypeManager.java43 import com.android.contacts.model.account.AccountInfo;
85 public enum AccountFilter implements Predicate<AccountInfo> {
88 public boolean apply(@Nullable AccountInfo input) { in apply()
94 public boolean apply(@Nullable AccountInfo input) { in apply()
100 public boolean apply(@Nullable AccountInfo input) { in apply()
141 public ListenableFuture<List<AccountInfo>> getAccountsAsync() {
142 return Futures.immediateFuture(Collections.<AccountInfo>emptyList());
146 public ListenableFuture<List<AccountInfo>> filterAccountsAsync(
147 Predicate<AccountInfo> filter) {
148 return Futures.immediateFuture(Collections.<AccountInfo>emptyList());
[all …]
/packages/apps/Contacts/src/com/android/contacts/util/
DAccountsListAdapter.java29 import com.android.contacts.model.account.AccountInfo;
41 private List<AccountInfo> mAccounts;
45 this(context, Collections.<AccountInfo>emptyList(), null); in AccountsListAdapter()
48 public AccountsListAdapter(Context context, List<AccountInfo> accounts) { in AccountsListAdapter()
56 public AccountsListAdapter(Context context, List<AccountInfo> accounts, in AccountsListAdapter()
64 public void setAccounts(List<AccountInfo> accounts, AccountWithDataSet currentAccount) { in setAccounts()
66 final AccountInfo currentInfo = mAccounts.isEmpty() in setAccounts()
67 ? AccountInfo.getAccount(accounts, currentAccount) in setAccounts()
68 : AccountInfo.getAccount(accounts, mAccounts.get(0).getAccount()); in setAccounts()
DAccountFilterUtil.java45 import com.android.contacts.model.account.AccountInfo;
129 new Function<List<AccountInfo>, List<ContactListFilter>>() { in loadData()
131 public List<ContactListFilter> apply(List<AccountInfo> input) { in loadData()
137 private List<ContactListFilter> getFiltersForAccounts(List<AccountInfo> accounts) { in getFiltersForAccounts()
139 AccountInfo.sortAccounts(getDefaultAccount(getContext()), accounts); in getFiltersForAccounts()
141 for (AccountInfo accountInfo : accounts) { in getFiltersForAccounts()
233 final AccountInfo info = AccountTypeManager.getInstance(context)
/packages/apps/Contacts/src/com/android/contacts/editor/
DAccountHeaderPresenter.java29 import com.android.contacts.model.account.AccountInfo;
58 private List<AccountInfo> mAccounts;
100 public void setAccounts(List<AccountInfo> accounts) { in setAccounts()
104 if (mCurrentAccount == null || !AccountInfo.contains(mAccounts, mCurrentAccount)) { in setAccounts()
154 final AccountInfo accountInfo = AccountInfo.getAccount(mAccounts, mCurrentAccount); in addAccountHeader()
215 final AccountInfo accountInfo = AccountInfo.getAccount(mAccounts, account); in getAccountLabel()
DRawContactEditorView.java61 import com.android.contacts.model.account.AccountInfo;
205 private List<AccountInfo> mAccounts = new ArrayList<>();
460 .getOnlyOrDefaultAccount(AccountInfo.extractAccounts(mAccounts)); in setState()
523 public void setAccounts(List<AccountInfo> accounts) { in setAccounts()
760 final AccountInfo account = mCurrentRawContactDelta != null in setAccountInfo()
811 AccountInfo.sortAccounts(current, mAccounts); in addAccountSelector()
DSelectAccountDialogFragment.java31 import com.android.contacts.model.account.AccountInfo;
152 public void onAccountsLoaded(List<AccountInfo> accounts) { in onAccountsLoaded()
DPickRawContactDialogFragment.java30 import com.android.contacts.model.account.AccountInfo;
116 final AccountInfo accountInfo = in getView()
DEditorUiUtils.java54 import com.android.contacts.model.account.AccountInfo;
114 AccountInfo accountInfo) { in getAccountHeaderLabelForMyProfile()
DContactEditorFragment.java82 import com.android.contacts.model.account.AccountInfo;
363 protected List<AccountInfo> mWritableAccounts = Collections.emptyList();
719 public void onAccountsLoaded(List<AccountInfo> data) { in onAccountsLoaded()
740 if (!AccountInfo.contains(data, account) && !data.isEmpty()) { in onAccountsLoaded()
1058 final List<AccountWithDataSet> accounts = AccountInfo.extractAccounts(mWritableAccounts); in selectAccountAndCreateContact()
/packages/apps/Contacts/tests/src/com/android/contacts/test/mocks/
DMockAccountTypeManager.java21 import com.android.contacts.model.account.AccountInfo;
71 public ListenableFuture<List<AccountInfo>> getAccountsAsync() { in getAccountsAsync()
76 public ListenableFuture<List<AccountInfo>> filterAccountsAsync(Predicate<AccountInfo> filter) { in filterAccountsAsync()
81 public AccountInfo getAccountInfoForAccount(AccountWithDataSet account) { in getAccountInfoForAccount()
/packages/apps/Contacts/src/com/android/contacts/preference/
DDefaultAccountPreference.java26 import com.android.contacts.model.account.AccountInfo;
35 private List<AccountInfo> mAccounts;
48 public void setAccounts(List<AccountInfo> accounts) { in setAccounts()
79 !AccountInfo.contains(mAccounts, defaultAccount)) { in getSummary()
82 return AccountInfo.getAccount(mAccounts, defaultAccount).getNameLabel(); in getSummary()
/packages/apps/Contacts/tests/src/com/android/contacts/editor/
DEditorUiUtilsTest.java29 import com.android.contacts.model.account.AccountInfo;
79 final AccountInfo account = new AccountInfo(new AccountDisplayInfo(ACCOUNT, ACCOUNT_NAME, in testGetProfileAccountInfo_NonLocalAccount()
94 final AccountInfo account = new AccountInfo(new AccountDisplayInfo(ACCOUNT, "Device", in testGetProfileAccountInfo_DeviceLocalAccount()
/packages/apps/Contacts/src/com/android/contacts/
DSimImportFragment.java50 import com.android.contacts.model.account.AccountInfo;
266 private void restoreAdapterSelectedStates(List<AccountInfo> accounts) { in restoreAdapterSelectedStates()
271 for (AccountInfo account : accounts) { in restoreAdapterSelectedStates()
476 final List<AccountInfo> accounts = (List<AccountInfo>) input.get(0); in loadData()
499 public List<AccountInfo> accounts;
/packages/apps/Contacts/src/com/android/contacts/activities/
DContactEditorAccountsChangedActivity.java36 import com.android.contacts.model.account.AccountInfo;
120 private void updateDisplayedAccounts(List<AccountInfo> accounts) { in updateDisplayedAccounts()
154 final AccountInfo accountInfo = accounts.get(0); in updateDisplayedAccounts()
230 public void onAccountsLoaded(List<AccountInfo> accounts) { in onAccountsLoaded()
DAttachPhotoActivity.java52 import com.android.contacts.model.account.AccountInfo;
85 private ListenableFuture<List<AccountInfo>> mAccountsFuture;
367 final List<AccountInfo> accountInfos = Futures.getUnchecked(mAccountsFuture); in selectAccountAndCreateContact()
369 final List<AccountWithDataSet> accounts = AccountInfo.extractAccounts(accountInfos); in selectAccountAndCreateContact()
/packages/apps/Contacts/src/com/android/contacts/list/
DCustomContactListFilterActivity.java62 import com.android.contacts.model.account.AccountInfo;
147 new Function<List<AccountInfo>, AccountSet>() { in loadData()
150 public AccountSet apply(@Nullable List<AccountInfo> input) { in loadData()
156 private AccountSet createAccountSet(List<AccountInfo> sourceAccounts) { in createAccountSet()
164 for (AccountInfo info : sourceAccounts) { in createAccountSet()
458 public final AccountInfo mAccountInfo;
476 public AccountDisplay(ContentResolver resolver, AccountInfo accountInfo) {
DDefaultContactBrowseListFragment.java72 import com.android.contacts.model.account.AccountInfo;
160 private Future<List<AccountInfo>> mWritableAccountsFuture;
349 final List<AccountInfo> syncableAccounts = in shouldShowEmptyView()
353 for (AccountInfo info : syncableAccounts) { in shouldShowEmptyView()
545 final List<AccountInfo> accountInfos = Futures.getUnchecked(mWritableAccountsFuture); in onEnableAutoSync()
547 final List<AccountWithDataSet> accounts = AccountInfo.extractAccounts(accountInfos); in onEnableAutoSync()
615 final List<AccountWithDataSet> accounts = AccountInfo.extractAccounts( in syncContacts()
/packages/apps/Contacts/src/com/android/contacts/interactions/
DImportDialogFragment.java48 import com.android.contacts.model.account.AccountInfo;
72 private Future<List<AccountInfo>> mAccountsFuture;
265 final List<AccountWithDataSet> accountList = AccountInfo.extractAccounts( in handleImportRequest()
/packages/apps/Contacts/src/com/android/contacts/drawer/
DDrawerFragment.java46 import com.android.contacts.model.account.AccountInfo;
281 public void onAccountsLoaded(List<AccountInfo> accounts) { in onAccountsLoaded()

12