Home
last modified time | relevance | path

Searched refs:mDefaultAccountKey (Results 1 – 2 of 2) sorted by relevance

/packages/apps/Contacts/src/com/android/contacts/editor/
DContactEditorUtils.java57 private final String mDefaultAccountKey; field in ContactEditorUtils
70 mDefaultAccountKey = mContext.getResources().getString( in ContactEditorUtils()
85 mPrefs.edit().remove(mDefaultAccountKey).remove(KEY_KNOWN_ACCOUNTS) in cleanupForTest()
91 mPrefs.edit().remove(mDefaultAccountKey).apply(); in removeDefaultAccountForTest()
99 mPrefs.edit().putString(KEY_KNOWN_ACCOUNTS, "").putString(mDefaultAccountKey, "").apply(); in resetPreferenceValues()
134 editor.remove(mDefaultAccountKey); in saveDefaultAndAllAccounts()
138 editor.putString(mDefaultAccountKey, defaultAccount.stringify()); in saveDefaultAndAllAccounts()
158 final String saved = mPrefs.getString(mDefaultAccountKey, null); in getDefaultAccount()
/packages/apps/ContactsCommon/src/com/android/contacts/common/preference/
DContactsPreferences.java95 private String mDefaultAccountKey; field in ContactsPreferences
103 mDefaultAccountKey = mContext.getResources().getString( in ContactsPreferences()
178 .getString(mDefaultAccountKey, mDefaultAccount); in getDefaultAccount()
192 editor.remove(mDefaultAccountKey); in setDefaultAccount()
194 editor.putString(mDefaultAccountKey, accountWithDataSet.stringify()); in setDefaultAccount()
315 } else if (mDefaultAccountKey.equals(key)) { in refreshValue()
354 if (!mPreferences.contains(mDefaultAccountKey)) { in maybeMigrateSystemSettings()
357 final String defaultAccount = previousPrefs.getString(mDefaultAccountKey, null); in maybeMigrateSystemSettings()