/packages/apps/Contacts/src/com/android/contacts/util/ |
D | AccountsListAdapter.java | 41 private List<AccountInfo> mAccounts; field in AccountsListAdapter 60 mAccounts = new ArrayList<>(accounts.size()); in AccountsListAdapter() 66 final AccountInfo currentInfo = mAccounts.isEmpty() in setAccounts() 68 : AccountInfo.getAccount(accounts, mAccounts.get(0).getAccount()); in setAccounts() 70 mAccounts.clear(); in setAccounts() 71 mAccounts.addAll(accounts); in setAccounts() 74 && !mAccounts.isEmpty() in setAccounts() 75 && !mAccounts.get(0).sameAccount(currentAccount) in setAccounts() 76 && mAccounts.remove(currentInfo)) { in setAccounts() 77 mAccounts.add(0, currentInfo); in setAccounts() [all …]
|
/packages/services/Telephony/src/com/android/phone/settings/ |
D | AccountSelectionPreference.java | 49 private PhoneAccountHandle[] mAccounts; field in AccountSelectionPreference 78 mAccounts = accountsList.toArray(new PhoneAccountHandle[accountsList.size()]); in setModel() 79 mEntryValues = new String[mAccounts.length + 1]; in setModel() 80 mEntries = new CharSequence[mAccounts.length + 1]; in setModel() 84 int selectedIndex = mAccounts.length; // Points to nullSelectionString by default in setModel() 86 for ( ; i < mAccounts.length; i++) { in setModel() 87 PhoneAccount account = telecomManager.getPhoneAccount(mAccounts[i]); in setModel() 90 label = pm.getUserBadgedLabel(label, mAccounts[i].getUserHandle()); in setModel() 98 if (Objects.equals(currentSelection, mAccounts[i])) { in setModel() 117 PhoneAccountHandle account = index < mAccounts.length ? mAccounts[index] : null; in onPreferenceChange()
|
/packages/services/Telephony/src/com/android/services/telephony/ |
D | TelecomAccountRegistry.java | 436 if (!mAccounts.contains(this)) { in onVideoCapabilitiesChanged() 532 private List<AccountEntry> mAccounts = new LinkedList<AccountEntry>(); field in TelecomAccountRegistry 572 for (AccountEntry entry : mAccounts) { in isVideoPauseSupported() 590 for (AccountEntry entry : mAccounts) { in isMergeCallSupported() 608 for (AccountEntry entry : mAccounts) { in isVideoConferencingSupported() 626 Optional<AccountEntry> result = mAccounts.stream().filter( in isMergeOfWifiCallsAllowedWhenVoWifiOff() 646 for (AccountEntry entry : mAccounts) { in isMergeImsCallSupported() 670 for (AccountEntry entry : mAccounts) { in getAddress() 712 for (AccountEntry entry : mAccounts) { in hasAccountEntryForPhoneAccount() 762 mAccounts.add(new AccountEntry(phone, false /* emergency */, in setupAccounts() [all …]
|
/packages/apps/Contacts/src/com/android/contacts/editor/ |
D | AccountHeaderPresenter.java | 58 private List<AccountInfo> mAccounts; field in AccountHeaderPresenter 101 mAccounts = accounts; in setAccounts() 104 if (mCurrentAccount == null || !AccountInfo.contains(mAccounts, mCurrentAccount)) { in setAccounts() 105 mCurrentAccount = mAccounts.isEmpty() ? null : accounts.get(0).getAccount(); in setAccounts() 130 if (mAccounts == null) return; in updateDisplayedAccount() 134 if (mAccounts.size() > 1) { in updateDisplayedAccount() 154 final AccountInfo accountInfo = AccountInfo.getAccount(mAccounts, mCurrentAccount); in addAccountHeader() 178 new AccountsListAdapter(mContext, mAccounts, mCurrentAccount); in showPopup() 215 final AccountInfo accountInfo = AccountInfo.getAccount(mAccounts, account); in getAccountLabel()
|
D | RawContactEditorView.java | 205 private List<AccountInfo> mAccounts = new ArrayList<>(); field in RawContactEditorView 451 if (mPrimaryAccount == null && mAccounts != null) { in setState() 453 .getOnlyOrDefaultAccount(AccountInfo.extractAccounts(mAccounts)); in setState() 517 mAccounts.clear(); in setAccounts() 518 mAccounts.addAll(accounts); in setAccounts() 759 if (mAccounts.isEmpty()) { in setAccountInfo() 760 mAccounts.add(account); in setAccountInfo() 778 if (mHasNewContact && !mIsUserProfile && mAccounts.size() > 1) { in setAccountInfo() 804 AccountInfo.sortAccounts(current, mAccounts); in addAccountSelector() 807 new AccountsListAdapter(getContext(), mAccounts, current); in addAccountSelector()
|
/packages/apps/Contacts/src/com/android/contacts/preference/ |
D | DefaultAccountPreference.java | 35 private List<AccountInfo> mAccounts; field in DefaultAccountPreference 49 mAccounts = accounts; in setAccounts() 65 if (mAccounts != null) { in prepare() 66 mListAdapter.setAccounts(mAccounts, null); in prepare() 78 if (defaultAccount == null || mAccounts == null || in getSummary() 79 !AccountInfo.contains(mAccounts, defaultAccount)) { in getSummary() 82 return AccountInfo.getAccount(mAccounts, defaultAccount).getNameLabel(); in getSummary()
|
/packages/apps/UnifiedEmail/src/com/android/mail/compose/ |
D | FromAddressSpinner.java | 37 private List<Account> mAccounts; field in FromAddressSpinner 94 final List<Account> accounts = AccountUtils.mergeAccountLists(mAccounts, in initialize() 97 mAccounts = accounts; in initialize() 112 mAccounts = ImmutableList.of(replyAccount); in initialize() 123 if (mAccounts == null || mAccounts.size() == 0) { in initFromSpinner() 130 for (Account account : mAccounts) { in initFromSpinner()
|
D | ComposeActivity.java | 346 private Account[] mAccounts; field in ComposeActivity 791 mAccounts = null; in checkValidAccounts() 805 mAccounts = null; in checkValidAccounts() 809 mAccounts = AccountUtils.getSyncingAccounts(this); in checkValidAccounts() 842 if (mAccounts != null && mAccounts.length > 0) { in obtainAccount() 846 for (Account a : mAccounts) { in obtainAccount() 854 for (Account a : mAccounts) { in obtainAccount() 861 account = mAccounts[0]; in obtainAccount() 986 mFromSpinner.initialize(mComposeMode, mAccount, mAccounts, mRefMessage); in onResume() 1029 final boolean hasAccounts = mAccounts != null && mAccounts.length > 0; in onRestoreInstanceState() [all …]
|
/packages/apps/Settings/src/com/android/settings/dashboard/ |
D | SupportItemAdapter.java | 82 private Account[] mAccounts; field in SupportItemAdapter 107 mAccounts = mSupportFeatureProvider.getSupportEligibleAccounts(mActivity); in SupportItemAdapter() 172 if (!Arrays.equals(mAccounts, accounts)) { in setAccounts() 173 if (mAccounts.length == 0) { in setAccounts() 176 final int index = ArrayUtils.indexOf(accounts, mAccounts[mSelectedAccountIndex]); in setAccounts() 180 mAccounts = accounts; in setAccounts() 207 if (mAccounts.length == 0) { in addEscalationCards() 371 extractAccountNames(mAccounts)); in bindAccountPicker() 451 mAccounts[mSelectedAccountIndex], type); in tryStartDisclaimerAndSupport() 455 mSupportFeatureProvider.startSupport(mActivity, mAccounts[mSelectedAccountIndex], type); in tryStartDisclaimerAndSupport() [all …]
|
/packages/apps/Contacts/src/com/android/contacts/list/ |
D | CustomContactListFilterActivity.java | 551 private AccountSet mAccounts; 562 mAccounts = accounts; 614 final AccountDisplay account = mAccounts.get(groupPosition); 641 final AccountDisplay account = mAccounts.get(groupPosition); 666 final AccountDisplay account = mAccounts.get(groupPosition); 672 return mAccounts.get(groupPosition); 677 if (mAccounts == null) { 680 return mAccounts.size(); 830 if (mAdapter == null || mAdapter.mAccounts == null) { 836 final ArrayList<ContentProviderOperation> diff = mAdapter.mAccounts.buildDiff(); [all …]
|
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ |
D | FolderListFragment.java | 1306 private List<DrawerItem> mAccounts; field in FolderListFragment.AccountsAdapter 1309 mAccounts = new ArrayList<>(); in AccountsAdapter() 1313 mAccounts = accounts; in setAccounts() 1319 return mAccounts.size(); in getCount() 1325 if (position >= mAccounts.size()) { in getItem() 1328 return mAccounts.get(position); in getItem() 1627 private List<Account> mAccounts = new ArrayList<>(); field in FolderListFragment.MiniDrawerAccountsAdapter 1630 mAccounts.clear(); in setAccounts() 1635 mAccounts.add(currentAccount); in setAccounts() 1639 mAccounts.add(account); in setAccounts() [all …]
|
/packages/apps/Contacts/tests/src/com/android/contacts/database/ |
D | SimContactDaoTests.java | 288 private List<AccountWithDataSet> mAccounts; field in SimContactDaoTests.FindAccountsIntegrationTests 316 mAccounts = new ArrayList<>(); in setUp() 324 for (AccountWithDataSet account : mAccounts) { in tearDown() 331 mAccounts.add(mAccountHelper.addTestAccount()); in returnsEmptyMapWhenNoMatchingContactsExist() 354 mAccounts.add(account); in hasAccountWithMatchingContactsWhenSingleMatchingContactExists() 387 mAccounts.add(account1); in hasMultipleAccountsWhenMultipleMatchingContactsExist() 390 mAccounts.add(account2); in hasMultipleAccountsWhenMultipleMatchingContactsExist() 433 mAccounts.add(account); in matchesByNameIfSimContactHasNoPhone() 478 mAccounts.add(account); in largeNumberOfSimContacts() 483 mAccounts.add(account); in largeNumberOfSimContacts()
|
/packages/services/Telephony/sip/src/com/android/services/telephony/sip/ |
D | SipAccountRegistry.java | 106 private final List<AccountEntry> mAccounts = new CopyOnWriteArrayList<>(); field in SipAccountRegistry 167 mAccounts.remove(accountEntry); in removeSipProfile() 273 mAccounts.add(entry); in startSipServiceForProfile() 284 for (AccountEntry entry : mAccounts) { in getAccountEntry()
|
/packages/apps/Contacts/tests/src/com/android/contacts/test/mocks/ |
D | MockAccountTypeManager.java | 39 public AccountWithDataSet[] mAccounts; field in MockAccountTypeManager 43 this.mAccounts = accounts; in MockAccountTypeManager() 67 return Arrays.asList(mAccounts); in blockForWritableAccounts()
|
/packages/apps/Calendar/src/com/android/calendar/ |
D | CalendarSettingsActivity.java | 38 private Account[] mAccounts; field in CalendarSettingsActivity 64 mAccounts = accounts; in onBuildHeaders() 125 if (accounts != null && !accounts.equals(mAccounts)) {
|
/packages/apps/Dialer/java/com/android/contacts/common/model/ |
D | AccountTypeManager.java | 244 private List<AccountWithDataSet> mAccounts = new ArrayList<>(); field in AccountTypeManagerImpl 550 mAccounts = allAccounts; in loadAccountsInBackground() 566 + mAccounts.size() in loadAccountsInBackground() 604 return contactWritableOnly ? mContactWritableAccounts : mAccounts; in getAccounts()
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | ContactsActor.java | 97 private Account[] mAccounts = new Account[0]; field in ContactsActor 130 return mAccounts; in getAccounts() 726 mAccounts = accounts; in setAccounts()
|
/packages/providers/CalendarProvider/src/com/android/providers/calendar/ |
D | CalendarProvider2.java | 4928 private Account[] mAccounts; field in CalendarProvider2.AccountsUpdatedThread 4931 mAccounts = accounts; in AccountsUpdatedThread() 4942 removeStaleAccounts(mAccounts); in run()
|