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.java337 PhoneAccountHandle defaultAccount = in testDefaultOutgoing() local
339 assertEquals(telAccount, defaultAccount); in testDefaultOutgoing()
347 defaultAccount = mRegistrar.getOutgoingPhoneAccountForSchemeOfCurrentUser( in testDefaultOutgoing()
349 assertEquals(sipAccount, defaultAccount); in testDefaultOutgoing()
350 defaultAccount = mRegistrar.getOutgoingPhoneAccountForSchemeOfCurrentUser( in testDefaultOutgoing()
352 assertEquals(telAccount, defaultAccount); in testDefaultOutgoing()
360 defaultAccount = mRegistrar.getOutgoingPhoneAccountForSchemeOfCurrentUser( in testDefaultOutgoing()
362 assertEquals(telAccount, defaultAccount); in testDefaultOutgoing()
388 PhoneAccountHandle defaultAccount = in testReplacePhoneAccountByGroup() local
390 assertEquals(telAccount1, defaultAccount); in testReplacePhoneAccountByGroup()
[all …]
/packages/apps/Contacts/src/com/android/contacts/preference/
DContactsPreferences.java257 final AccountWithDataSet defaultAccount = getDefaultAccount(); in shouldShowAccountChangedNotification() local
264 return defaultAccount == null || !defaultAccount.equals(localAccount); in shouldShowAccountChangedNotification()
272 if (defaultAccount == null) { in shouldShowAccountChangedNotification()
276 if (!currentWritableAccounts.contains(defaultAccount)) { in shouldShowAccountChangedNotification()
387 final String defaultAccount = previousPrefs.getString(mDefaultAccountKey, null); in maybeMigrateSystemSettings() local
388 if (!TextUtils.isEmpty(defaultAccount)) { in maybeMigrateSystemSettings()
390 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.java92 public void saveDefaultAccount(AccountWithDataSet defaultAccount) { in saveDefaultAccount() argument
93 if (defaultAccount == null) { in saveDefaultAccount()
96 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.java261 final String defaultAccount = prefs.getString(defaultAccountKey, null);
262 final AccountWithDataSet accountWithDataSet = defaultAccount == null ? null :
263 AccountWithDataSet.unstringify(defaultAccount);