/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 | 46 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/ |
D | TelecomAccountRegistry.java | 655 if (!mAccounts.contains(this)) { in onVideoCapabilitiesChanged() 832 for (AccountEntry account : mAccounts) { 844 for (AccountEntry account : mAccounts) { 856 private List<AccountEntry> mAccounts = new LinkedList<AccountEntry>(); field in TelecomAccountRegistry 900 for (AccountEntry entry : mAccounts) { in isVideoPauseSupported() 918 for (AccountEntry entry : mAccounts) { in isMergeCallSupported() 936 for (AccountEntry entry : mAccounts) { in isVideoConferencingSupported() 954 Optional<AccountEntry> result = mAccounts.stream().filter( in isMergeOfWifiCallsAllowedWhenVoWifiOff() 974 for (AccountEntry entry : mAccounts) { in isMergeImsCallSupported() 992 for (AccountEntry entry : mAccounts) { in isManageImsConferenceCallSupported() [all …]
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/deviceinfo/ |
D | BrandedAccountPreferenceController.java | 35 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/ |
D | BrandedAccountPreferenceController.java | 35 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/ |
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 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/ |
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/Contacts/src/com/android/contacts/list/ |
D | CustomContactListFilterActivity.java | 558 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/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 | 289 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/ |
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/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 | 100 private Account[] mAccounts = new Account[0]; field in ContactsActor 134 return mAccounts; in getAccounts() 770 mAccounts = accounts; in setAccounts()
|
/packages/providers/CalendarProvider/src/com/android/providers/calendar/ |
D | CalendarProvider2.java | 5233 private Account[] mAccounts; field in CalendarProvider2.AccountsUpdatedThread 5236 mAccounts = accounts; in AccountsUpdatedThread() 5247 removeStaleAccounts(mAccounts); in run()
|