/packages/apps/Contacts/src/com/android/contacts/util/ |
AccountsListAdapter.java | 41 private List<AccountInfo> mAccounts; 60 mAccounts = new ArrayList<>(accounts.size()); 66 final AccountInfo currentInfo = mAccounts.isEmpty() 68 : AccountInfo.getAccount(accounts, mAccounts.get(0).getAccount()); 70 mAccounts.clear(); 71 mAccounts.addAll(accounts); 74 && !mAccounts.isEmpty() 75 && !mAccounts.get(0).sameAccount(currentAccount) 76 && mAccounts.remove(currentInfo)) { 77 mAccounts.add(0, currentInfo) [all...] |
/packages/apps/Contacts/tests/src/com/android/contacts/test/mocks/ |
MockAccountTypeManager.java | 39 public AccountWithDataSet[] mAccounts; 43 this.mAccounts = accounts; 67 return Arrays.asList(mAccounts);
|
/cts/tests/tests/content/src/android/content/cts/ |
MockSyncAdapter.java | 33 private volatile ArrayList<Account> mAccounts = new ArrayList<Account>(); 42 return mAccounts; 66 mAccounts.clear(); 82 mAccounts.add(account); 100 mAccounts.clear(); 114 mAccounts.add(account);
|
/packages/services/Telephony/src/com/android/phone/settings/ |
AccountSelectionPreference.java | 49 private PhoneAccountHandle[] mAccounts; 78 mAccounts = accountsList.toArray(new PhoneAccountHandle[accountsList.size()]); 79 mEntryValues = new String[mAccounts.length + 1]; 80 mEntries = new CharSequence[mAccounts.length + 1]; 84 int selectedIndex = mAccounts.length; // Points to nullSelectionString by default 86 for ( ; i < mAccounts.length; i++) { 87 PhoneAccount account = telecomManager.getPhoneAccount(mAccounts[i]); 90 label = pm.getUserBadgedLabel(label, mAccounts[i].getUserHandle()); 98 if (Objects.equals(currentSelection, mAccounts[i])) { 117 PhoneAccountHandle account = index < mAccounts.length ? mAccounts[index] : null [all...] |
/packages/apps/Calendar/src/com/android/calendar/ |
CalendarSettingsActivity.java | 38 private Account[] mAccounts; 64 mAccounts = accounts; 125 if (accounts != null && !accounts.equals(mAccounts)) {
|
/packages/apps/Contacts/src/com/android/contacts/preference/ |
DefaultAccountPreference.java | 35 private List<AccountInfo> mAccounts; 49 mAccounts = accounts; 65 if (mAccounts != null) { 66 mListAdapter.setAccounts(mAccounts, null); 78 if (defaultAccount == null || mAccounts == null || 79 !AccountInfo.contains(mAccounts, defaultAccount)) { 82 return AccountInfo.getAccount(mAccounts, defaultAccount).getNameLabel();
|
/packages/apps/UnifiedEmail/src/com/android/mail/compose/ |
FromAddressSpinner.java | 37 private List<Account> mAccounts; 94 final List<Account> accounts = AccountUtils.mergeAccountLists(mAccounts, 97 mAccounts = accounts; 112 mAccounts = ImmutableList.of(replyAccount); 123 if (mAccounts == null || mAccounts.size() == 0) { 130 for (Account account : mAccounts) {
|
ComposeActivity.java | 345 private Account[] mAccounts; 772 mAccounts = null; [all...] |
/packages/services/Telephony/src/com/android/services/telephony/ |
TelecomAccountRegistry.java | 436 if (!mAccounts.contains(this)) { 532 private List<AccountEntry> mAccounts = new LinkedList<AccountEntry>(); 572 for (AccountEntry entry : mAccounts) { 590 for (AccountEntry entry : mAccounts) { 608 for (AccountEntry entry : mAccounts) { 626 Optional<AccountEntry> result = mAccounts.stream().filter( 646 for (AccountEntry entry : mAccounts) { 670 for (AccountEntry entry : mAccounts) { 712 for (AccountEntry entry : mAccounts) { [all...] |
/development/samples/ContactManager/src/com/example/android/contactmanager/ |
ContactAdder.java | 55 private ArrayList<AccountData> mAccounts; 103 mAccounts = new ArrayList<AccountData>(); 104 mAccountAdapter = new AccountAdapter(this, mAccounts); 247 mAccounts.clear(); 260 mAccounts.add(data);
|
/frameworks/base/core/java/android/accounts/ |
ChooseAccountActivity.java | 50 private Parcelable[] mAccounts = null; 62 mAccounts = getIntent().getParcelableArrayExtra(AccountManager.KEY_ACCOUNTS); 67 if (mAccounts == null) { 97 AccountInfo[] mAccountInfos = new AccountInfo[mAccounts.length]; 98 for (int i = 0; i < mAccounts.length; i++) { 99 mAccountInfos[i] = new AccountInfo(((Account) mAccounts[i]).name, 100 getDrawableForType(((Account) mAccounts[i]).type)); 148 Account account = (Account) mAccounts[position];
|
ChooseTypeAndAccountActivity.java | 125 private LinkedHashMap<Account, Integer> mAccounts; 181 // restore mAccounts 186 mAccounts = new LinkedHashMap<>(); 188 mAccounts.put((Account) accounts[i], visibility.get(i)); 199 mAccounts = getAcceptableAccountChoices(AccountManager.get(this)); 206 mPossiblyVisibleAccounts = new ArrayList<>(mAccounts.size()); 207 for (Map.Entry<Account, Integer> entry : mAccounts.entrySet()) { 279 // save mAccounts 280 Parcelable[] accounts = new Parcelable[mAccounts.size()]; 281 ArrayList<Integer> visibility = new ArrayList<>(mAccounts.size()) [all...] |
/packages/apps/Contacts/src/com/android/contacts/editor/ |
AccountHeaderPresenter.java | 58 private List<AccountInfo> mAccounts; 101 mAccounts = accounts; 104 if (mCurrentAccount == null || !AccountInfo.contains(mAccounts, mCurrentAccount)) { 105 mCurrentAccount = mAccounts.isEmpty() ? null : accounts.get(0).getAccount(); 130 if (mAccounts == null) return; 134 if (mAccounts.size() > 1) { 154 final AccountInfo accountInfo = AccountInfo.getAccount(mAccounts, mCurrentAccount); 178 new AccountsListAdapter(mContext, mAccounts, mCurrentAccount); 215 final AccountInfo accountInfo = AccountInfo.getAccount(mAccounts, account);
|
RawContactEditorView.java | 205 private List<AccountInfo> mAccounts = new ArrayList<>(); 451 if (mPrimaryAccount == null && mAccounts != null) { 453 .getOnlyOrDefaultAccount(AccountInfo.extractAccounts(mAccounts)); 517 mAccounts.clear(); 518 mAccounts.addAll(accounts); 759 if (mAccounts.isEmpty()) { 760 mAccounts.add(account); 778 if (mHasNewContact && !mIsUserProfile && mAccounts.size() > 1) { 804 AccountInfo.sortAccounts(current, mAccounts); 807 new AccountsListAdapter(getContext(), mAccounts, current) [all...] |
/packages/services/Telephony/sip/src/com/android/services/telephony/sip/ |
SipAccountRegistry.java | 106 private final List<AccountEntry> mAccounts = new CopyOnWriteArrayList<>(); 167 mAccounts.remove(accountEntry); 273 mAccounts.add(entry); 284 for (AccountEntry entry : mAccounts) {
|
/frameworks/base/services/core/java/com/android/server/content/ |
SyncStorageEngine.java | 403 private final HashMap<AccountAndUser, AccountInfo> mAccounts 792 for (AccountInfo accountInfo : mAccounts.values()) { 817 for (AccountInfo accountInfo : mAccounts.values()) { [all...] |
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ |
FolderListFragment.java | [all...] |
/packages/apps/Contacts/tests/src/com/android/contacts/database/ |
SimContactDaoTests.java | 288 private List<AccountWithDataSet> mAccounts; 316 mAccounts = new ArrayList<>(); 324 for (AccountWithDataSet account : mAccounts) { 331 mAccounts.add(mAccountHelper.addTestAccount()); 354 mAccounts.add(account); 387 mAccounts.add(account1); 390 mAccounts.add(account2); 433 mAccounts.add(account); 478 mAccounts.add(account); 483 mAccounts.add(account) [all...] |
/packages/apps/Dialer/java/com/android/contacts/common/model/ |
AccountTypeManager.java | 244 private List<AccountWithDataSet> mAccounts = new ArrayList<>(); 550 mAccounts = allAccounts; 566 + mAccounts.size() 604 return contactWritableOnly ? mContactWritableAccounts : mAccounts;
|
/packages/apps/Settings/src/com/android/settings/dashboard/ |
SupportItemAdapter.java | 82 private Account[] mAccounts; 107 mAccounts = mSupportFeatureProvider.getSupportEligibleAccounts(mActivity); 172 if (!Arrays.equals(mAccounts, accounts)) { 173 if (mAccounts.length == 0) { 176 final int index = ArrayUtils.indexOf(accounts, mAccounts[mSelectedAccountIndex]); 180 mAccounts = accounts; 207 if (mAccounts.length == 0) { 371 extractAccountNames(mAccounts)); 451 mAccounts[mSelectedAccountIndex], type); 455 mSupportFeatureProvider.startSupport(mActivity, mAccounts[mSelectedAccountIndex], type) [all...] |
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
ContactsActor.java | 97 private Account[] mAccounts = new Account[0]; 130 return mAccounts; 726 mAccounts = accounts;
|
/packages/providers/CalendarProvider/src/com/android/providers/calendar/ |
CalendarProvider2.java | [all...] |
/external/robolectric/v3/runtime/ |
android-all-4.1.2_r1-robolectric-0.jar | |
android-all-4.2.2_r1.2-robolectric-0.jar | |
/prebuilts/misc/common/robolectric/lib/ |
android-all-4.1.2_r1-robolectric-0.jar | |