Home
last modified time | relevance | path

Searched refs:defaultAccount (Results 1 – 8 of 8) sorted by relevance

/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DPhoneAccountRegistrarTest.java273 PhoneAccountHandle defaultAccount = in testDefaultOutgoing() local
275 assertEquals(telAccount, defaultAccount); in testDefaultOutgoing()
283 defaultAccount = mRegistrar.getOutgoingPhoneAccountForSchemeOfCurrentUser( in testDefaultOutgoing()
285 assertEquals(sipAccount, defaultAccount); in testDefaultOutgoing()
286 defaultAccount = mRegistrar.getOutgoingPhoneAccountForSchemeOfCurrentUser( in testDefaultOutgoing()
288 assertEquals(telAccount, defaultAccount); in testDefaultOutgoing()
296 defaultAccount = mRegistrar.getOutgoingPhoneAccountForSchemeOfCurrentUser( in testDefaultOutgoing()
298 assertEquals(telAccount, defaultAccount); in testDefaultOutgoing()
324 PhoneAccountHandle defaultAccount = in testReplacePhoneAccountByGroup() local
326 assertEquals(telAccount1, defaultAccount); in testReplacePhoneAccountByGroup()
[all …]
/packages/apps/Contacts/src/com/android/contacts/preference/
DContactsPreferences.java257 final AccountWithDataSet defaultAccount = getDefaultAccount(); in shouldShowAccountChangedNotification() local
263 return defaultAccount == null || !defaultAccount.isNullAccount(); in shouldShowAccountChangedNotification()
271 if (defaultAccount == null) { in shouldShowAccountChangedNotification()
275 if (!currentWritableAccounts.contains(defaultAccount)) { in shouldShowAccountChangedNotification()
386 final String defaultAccount = previousPrefs.getString(mDefaultAccountKey, null); in maybeMigrateSystemSettings() local
387 if (!TextUtils.isEmpty(defaultAccount)) { in maybeMigrateSystemSettings()
389 defaultAccount); in maybeMigrateSystemSettings()
DDefaultAccountPreference.java77 final AccountWithDataSet defaultAccount = mPreferences.getDefaultAccount(); in getSummary() local
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/model/account/
DAccountInfo.java128 public static void sortAccounts(AccountWithDataSet defaultAccount, List<AccountInfo> accounts) { in sortAccounts() argument
129 Collections.sort(accounts, sourceComparator(defaultAccount)); in sortAccounts()
139 private static Comparator<AccountInfo> sourceComparator(AccountWithDataSet defaultAccount) { in sourceComparator() argument
140 final AccountComparator accountComparator = new AccountComparator(defaultAccount); in sourceComparator()
DAccountComparator.java28 public AccountComparator(AccountWithDataSet defaultAccount) { in AccountComparator() argument
29 mDefaultAccount = defaultAccount; in AccountComparator()
/packages/apps/Contacts/src/com/android/contacts/editor/
DContactEditorUtils.java90 public void saveDefaultAccount(AccountWithDataSet defaultAccount) { in saveDefaultAccount() argument
91 if (defaultAccount == null) { in saveDefaultAccount()
94 mContactsPrefs.setDefaultAccount(defaultAccount); in saveDefaultAccount()
DContactEditorFragment.java1073 AccountWithDataSet defaultAccount = mEditorUtils.getOnlyOrDefaultAccount(accounts); in selectAccountAndCreateContact() local
1074 createContact(defaultAccount); in selectAccountAndCreateContact()
/packages/apps/Contacts/src/com/android/contacts/model/
DAccountTypeManager.java254 final String defaultAccount = prefs.getString(defaultAccountKey, null);
255 final AccountWithDataSet accountWithDataSet = defaultAccount == null ? null :
256 AccountWithDataSet.unstringify(defaultAccount);