Home
last modified time | relevance | path

Searched refs:getDefaultAccount (Results 1 – 11 of 11) sorted by relevance

/packages/apps/ContactsCommon/src/com/android/contacts/common/preference/
DDefaultAccountPreference.java60 final String defaultAccount = String.valueOf(mPreferences.getDefaultAccount()); in prepare()
77 return mPreferences.getDefaultAccount(); in getSummary()
82 if (value == null && mPreferences.getDefaultAccount() == null) { in persistString()
85 if (value == null || mPreferences.getDefaultAccount() == null in persistString()
86 || !value.equals(mPreferences.getDefaultAccount())) { in persistString()
DContactsPreferences.java172 public String getDefaultAccount() { in getDefaultAccount() method in ContactsPreferences
317 mDefaultAccount = getDefaultAccount(); in refreshValue()
/packages/apps/Contacts/tests/src/com/android/contacts/editor/
DContactEditorUtilsTest.java128 assertNull(mTarget.getDefaultAccount()); in testSaveDefaultAndAllAccounts()
136 assertEquals(ACCOUNT_1_A, mTarget.getDefaultAccount()); in testSaveDefaultAndAllAccounts()
144 assertEquals(ACCOUNT_1_B, mTarget.getDefaultAccount()); in testSaveDefaultAndAllAccounts()
152 assertNull(mTarget.getDefaultAccount()); in testSaveDefaultAndAllAccounts()
/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/preference/
DContactsPreferencesTest.java145 Assert.assertEquals("name1", mContactsPreferences.getDefaultAccount()); in testRefreshDefaultAccount()
148 Assert.assertEquals("name2", mContactsPreferences.getDefaultAccount()); in testRefreshDefaultAccount()
/packages/apps/Contacts/src/com/android/contacts/editor/
DContactEditorUtils.java152 public AccountWithDataSet getDefaultAccount() { in getDefaultAccount() method in ContactEditorUtils
223 final AccountWithDataSet defaultAccount = getDefaultAccount(); in shouldShowAccountChangedNotification()
DCompactRawContactsEditorView.java637 mPrimaryAccount = ContactEditorUtils.getInstance(getContext()).getDefaultAccount(); in setState()
DContactEditorBaseFragment.java1102 AccountWithDataSet defaultAccount = mEditorUtils.getDefaultAccount(); in selectAccountAndCreateContact()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DSynchronousContactsProvider2.java150 protected Account getDefaultAccount() { in getDefaultAccount() method in SynchronousContactsProvider2
/packages/apps/Contacts/src/com/android/contacts/activities/
DAttachPhotoActivity.java354 AccountWithDataSet defaultAccount = editorUtils.getDefaultAccount(); in selectAccountAndCreateContact()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DLegacyApiSupport.java548 mAccount = mContactsProvider.getDefaultAccount(); in ensureDefaultAccount()
DContactsProvider2.java9497 protected Account getDefaultAccount() { in getDefaultAccount() method in ContactsProvider2