Home
last modified time | relevance | path

Searched refs:mAccounts (Results 1 – 15 of 15) sorted by relevance

/packages/apps/Contacts/src/com/android/contacts/util/
DAccountsListAdapter.java41 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/
DAccountSelectionPreference.java46 private PhoneAccountHandle[] mAccounts; field in AccountSelectionPreference
75 mAccounts = accountsList.toArray(new PhoneAccountHandle[accountsList.size()]); in setModel()
76 mEntryValues = new String[mAccounts.length + 1]; in setModel()
77 mEntries = new CharSequence[mAccounts.length + 1]; in setModel()
81 int selectedIndex = mAccounts.length; // Points to nullSelectionString by default in setModel()
83 for ( ; i < mAccounts.length; i++) { in setModel()
84 PhoneAccount account = telecomManager.getPhoneAccount(mAccounts[i]); in setModel()
87 label = pm.getUserBadgedLabel(label, mAccounts[i].getUserHandle()); in setModel()
95 if (Objects.equals(currentSelection, mAccounts[i])) { in setModel()
114 PhoneAccountHandle account = index < mAccounts.length ? mAccounts[index] : null; in onPreferenceChange()
/packages/services/Telephony/src/com/android/services/telephony/
DTelecomAccountRegistry.java763 if (!mAccounts.contains(this)) { in onVideoCapabilitiesChanged()
776 if (!mAccounts.contains(this)) { in updateAdhocConfCapability()
796 if (!mAccounts.contains(this)) { in updateVideoPresenceCapability()
1052 for (AccountEntry account : mAccounts) {
1064 for (AccountEntry account : mAccounts) {
1077 private List<AccountEntry> mAccounts = new LinkedList<AccountEntry>(); field in TelecomAccountRegistry
1144 for (AccountEntry entry : mAccounts) { in isVideoPauseSupported()
1162 for (AccountEntry entry : mAccounts) { in isMergeCallSupported()
1180 for (AccountEntry entry : mAccounts) { in isVideoConferencingSupported()
1198 Optional<AccountEntry> result = mAccounts.stream().filter( in isMergeOfWifiCallsAllowedWhenVoWifiOff()
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/deviceinfo/
DBrandedAccountPreferenceController.java35 private final Account[] mAccounts; field in BrandedAccountPreferenceController
41 mAccounts = accountFeatureProvider.getAccounts(mContext); in BrandedAccountPreferenceController()
50 if (mAccounts != null && mAccounts.length > 0) { in getAvailabilityStatus()
62 if (accountPreference != null && (mAccounts == null || mAccounts.length == 0)) { in displayPreference()
67 accountPreference.setSummary(mAccounts[0].name); in displayPreference()
71 mAccounts[0]); in displayPreference()
/packages/apps/Settings/src/com/android/settings/deviceinfo/
DBrandedAccountPreferenceController.java35 private final Account[] mAccounts; field in BrandedAccountPreferenceController
41 mAccounts = accountFeatureProvider.getAccounts(mContext); in BrandedAccountPreferenceController()
50 if (mAccounts != null && mAccounts.length > 0) { in getAvailabilityStatus()
62 if (accountPreference != null && (mAccounts == null || mAccounts.length == 0)) { in displayPreference()
67 accountPreference.setSummary(mAccounts[0].name); in displayPreference()
71 mAccounts[0]); in displayPreference()
/packages/apps/Contacts/src/com/android/contacts/editor/
DAccountHeaderPresenter.java58 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()
DRawContactEditorView.java205 private List<AccountInfo> mAccounts = new ArrayList<>(); field in RawContactEditorView
458 if (mPrimaryAccount == null && mAccounts != null) { in setState()
460 .getOnlyOrDefaultAccount(AccountInfo.extractAccounts(mAccounts)); in setState()
524 mAccounts.clear(); in setAccounts()
525 mAccounts.addAll(accounts); in setAccounts()
766 if (mAccounts.isEmpty()) { in setAccountInfo()
767 mAccounts.add(account); in setAccountInfo()
785 if (mHasNewContact && !mIsUserProfile && mAccounts.size() > 1) { in setAccountInfo()
811 AccountInfo.sortAccounts(current, mAccounts); in addAccountSelector()
814 new AccountsListAdapter(getContext(), mAccounts, current); in addAccountSelector()
/packages/apps/Contacts/src/com/android/contacts/preference/
DDefaultAccountPreference.java35 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/Contacts/src/com/android/contacts/list/
DCustomContactListFilterActivity.java558 private AccountSet mAccounts;
569 mAccounts = accounts;
621 final AccountDisplay account = mAccounts.get(groupPosition);
648 final AccountDisplay account = mAccounts.get(groupPosition);
673 final AccountDisplay account = mAccounts.get(groupPosition);
679 return mAccounts.get(groupPosition);
684 if (mAccounts == null) {
687 return mAccounts.size();
837 if (mAdapter == null || mAdapter.mAccounts == null) {
843 final ArrayList<ContentProviderOperation> diff = mAdapter.mAccounts.buildDiff();
[all …]
/packages/apps/Contacts/tests/src/com/android/contacts/database/
DSimContactDaoTests.java289 private List<AccountWithDataSet> mAccounts; field in SimContactDaoTests.FindAccountsIntegrationTests
317 mAccounts = new ArrayList<>(); in setUp()
325 for (AccountWithDataSet account : mAccounts) { in tearDown()
332 mAccounts.add(mAccountHelper.addTestAccount()); in returnsEmptyMapWhenNoMatchingContactsExist()
355 mAccounts.add(account); in hasAccountWithMatchingContactsWhenSingleMatchingContactExists()
388 mAccounts.add(account1); in hasMultipleAccountsWhenMultipleMatchingContactsExist()
391 mAccounts.add(account2); in hasMultipleAccountsWhenMultipleMatchingContactsExist()
434 mAccounts.add(account); in matchesByNameIfSimContactHasNoPhone()
479 mAccounts.add(account); in largeNumberOfSimContacts()
484 mAccounts.add(account); in largeNumberOfSimContacts()
/packages/services/Telephony/sip/src/com/android/services/telephony/sip/
DSipAccountRegistry.java106 private final List<AccountEntry> mAccounts = new CopyOnWriteArrayList<>(); field in SipAccountRegistry
167 mAccounts.remove(accountEntry); in removeSipProfile()
274 mAccounts.add(entry); in startSipServiceForProfile()
285 for (AccountEntry entry : mAccounts) { in getAccountEntry()
/packages/apps/Contacts/tests/src/com/android/contacts/test/mocks/
DMockAccountTypeManager.java39 public AccountWithDataSet[] mAccounts; field in MockAccountTypeManager
43 this.mAccounts = accounts; in MockAccountTypeManager()
67 return Arrays.asList(mAccounts); in blockForWritableAccounts()
/packages/apps/Dialer/java/com/android/contacts/common/model/
DAccountTypeManager.java244 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/
DContactsActor.java105 private Account[] mAccounts = new Account[0]; field in ContactsActor
139 return mAccounts; in getAccounts()
786 mAccounts = accounts; in setAccounts()
/packages/providers/CalendarProvider/src/com/android/providers/calendar/
DCalendarProvider2.java5233 private Account[] mAccounts; field in CalendarProvider2.AccountsUpdatedThread
5236 mAccounts = accounts; in AccountsUpdatedThread()
5247 removeStaleAccounts(mAccounts); in run()