Home
last modified time | relevance | path

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

/packages/apps/Contacts/src/com/android/contacts/preference/
DContactsPreferences.java306 final AccountWithDataSet defaultAccount = getDefaultAccount(); in shouldShowAccountChangedNotification() local
313 return defaultAccount == null || !defaultAccount.equals(localAccount); in shouldShowAccountChangedNotification()
321 if (defaultAccount == null) { in shouldShowAccountChangedNotification()
325 if (!currentWritableAccounts.contains(defaultAccount)) { in shouldShowAccountChangedNotification()
436 final String defaultAccount = previousPrefs.getString(mDefaultAccountKey, null); in maybeMigrateSystemSettings() local
437 if (!TextUtils.isEmpty(defaultAccount)) { in maybeMigrateSystemSettings()
439 defaultAccount); in maybeMigrateSystemSettings()
445 String defaultAccount = mPreferences.getString(mDefaultAccountKey, null); in maybeMigrateSystemSettings() local
446 if (!TextUtils.isEmpty(defaultAccount)) { in maybeMigrateSystemSettings()
448 defaultAccount); in maybeMigrateSystemSettings()
/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/services/Telecomm/tests/src/com/android/server/telecom/tests/
DPhoneAccountRegistrarTest.java547 PhoneAccountHandle defaultAccount = in testDefaultOutgoing() local
549 assertEquals(telAccount, defaultAccount); in testDefaultOutgoing()
557 defaultAccount = mRegistrar.getOutgoingPhoneAccountForSchemeOfCurrentUser( in testDefaultOutgoing()
559 assertEquals(sipAccount, defaultAccount); in testDefaultOutgoing()
560 defaultAccount = mRegistrar.getOutgoingPhoneAccountForSchemeOfCurrentUser( in testDefaultOutgoing()
562 assertEquals(telAccount, defaultAccount); in testDefaultOutgoing()
570 defaultAccount = mRegistrar.getOutgoingPhoneAccountForSchemeOfCurrentUser( in testDefaultOutgoing()
572 assertEquals(telAccount, defaultAccount); in testDefaultOutgoing()
598 PhoneAccountHandle defaultAccount = in testReplacePhoneAccountByGroup() local
600 assertEquals(telAccount1, defaultAccount); in testReplacePhoneAccountByGroup()
[all …]
/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);
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DContactsDatabaseHelper.java4286 Account defaultAccount = null; in getDefaultAccount() local
4295 defaultAccount = new Account(accountName, accountType); in getDefaultAccount()
4299 return defaultAccount; in getDefaultAccount()
DContactsProvider2.java2579 final Account defaultAccount = mDbHelper.get().getDefaultAccount(); in call() local
2580 response.putParcelable(Settings.KEY_DEFAULT_ACCOUNT, defaultAccount); in call()