Home
last modified time | relevance | path

Searched refs:mPrefs (Results 1 – 20 of 20) sorted by relevance

/packages/apps/Browser/src/com/android/browser/
DBrowserSettings.java107 private SharedPreferences mPrefs; field in BrowserSettings
136 mPrefs = PreferenceManager.getDefaultSharedPreferences(mContext); in BrowserSettings()
184 mPrefs.registerOnSharedPreferenceChangeListener(BrowserSettings.this);
189 if (mPrefs.contains(PREF_TEXT_SIZE)) {
212 mPrefs.edit().remove(PREF_TEXT_SIZE).apply();
434 return mPrefs.getBoolean(PREF_DEBUG_MENU, false); in isDebugEnabled()
438 Editor edit = mPrefs.edit(); in setDebugEnabled()
493 long gal = mPrefs.getLong(GoogleAccountLogin.PREF_AUTOLOGIN_TIME, -1); in resetDefaultPreferences()
494 mPrefs.edit() in resetDefaultPreferences()
565 return mPrefs; in getPreferences()
[all …]
/packages/apps/Contacts/src/com/android/contacts/editor/
DContactEditorUtils.java56 private final SharedPreferences mPrefs; field in ContactEditorUtils
66 mPrefs = PreferenceManager.getDefaultSharedPreferences(mContext); in ContactEditorUtils()
78 mPrefs.edit().remove(KEY_DEFAULT_ACCOUNT).remove(KEY_KNOWN_ACCOUNTS) in cleanupForTest()
83 mPrefs.edit().remove(KEY_DEFAULT_ACCOUNT).apply(); in removeDefaultAccountForTest()
91 mPrefs.edit().putString(KEY_KNOWN_ACCOUNTS, "").putString(KEY_DEFAULT_ACCOUNT, "").apply(); in resetPreferenceValues()
103 return !mPrefs.getBoolean(KEY_ANYTHING_SAVED, false); in isFirstLaunch()
116 final SharedPreferences.Editor editor = mPrefs.edit() in saveDefaultAndAllAccounts()
144 final String saved = mPrefs.getString(KEY_DEFAULT_ACCOUNT, null); in getDefaultAccount()
176 final String saved = mPrefs.getString(KEY_KNOWN_ACCOUNTS, null); in getSavedAccounts()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/deprecated/
DLanguageSwitcherProxy.java34 private SharedPreferences mPrefs; field in LanguageSwitcherProxy
46 sInstance.mPrefs = prefs; in init()
53 sInstance.mLanguageSwitcher.onConfigurationChanged(conf, sInstance.mPrefs); in onConfigurationChanged()
58 sInstance.mLanguageSwitcher.loadLocales(sInstance.mPrefs, null); in loadSettings()
75 mLanguageSwitcher.persist(mPrefs); in setLocale()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/deprecated/voice/
DHints.java51 private final SharedPreferences mPrefs; field in Hints
68 mPrefs = prefs; in Hints()
108 SharedPreferences.Editor editor = mPrefs.edit(); in registerVoiceResult()
122 final SharedPreferences prefs = mPrefs; in shouldShowSwipeHint()
160 final SharedPreferences prefs = mPrefs; in showHint()
181 final SharedPreferences prefs = mPrefs; in getAndIncrementPref()
/packages/apps/Contacts/src/com/android/contacts/list/
DPhoneNumberPickerFragment.java45 private SharedPreferences mPrefs; field in PhoneNumberPickerFragment
147 mPrefs = PreferenceManager.getDefaultSharedPreferences(activity); in onAttach()
153 mPrefs = null; in onDetach()
286 if (mPrefs != null) { in setFilter()
288 ContactListFilter.storeToPreferences(mPrefs, mFilter); in setFilter()
DContactBrowseListFragment.java76 private SharedPreferences mPrefs; field in ContactBrowseListFragment
162 mPrefs = PreferenceManager.getDefaultSharedPreferences(activity); in onAttach()
632 ContactListFilter.storeToPreferences(mPrefs, mFilter); in saveSelectedUri()
634 Editor editor = mPrefs.edit(); in saveSelectedUri()
650 String selectedUri = mPrefs.getString(getPersistentSelectionKey(), null); in restoreSelectedUri()
659 ContactListFilter.storeToPreferences(mPrefs, mFilter); in saveFilter()
663 mFilter = ContactListFilter.restoreDefaultPreferences(mPrefs); in restoreFilter()
DPhoneFavoriteFragment.java196 private SharedPreferences mPrefs; field in PhoneFavoriteFragment
234 mPrefs = PreferenceManager.getDefaultSharedPreferences(activity); in onAttach()
321 mPrefs = null; in onDetach()
451 if (mPrefs != null) { in setFilter()
453 ContactListFilter.storeToPreferences(mPrefs, mFilter); in setFilter()
DCustomContactListFilterActivity.java89 private SharedPreferences mPrefs; field in CustomContactListFilterActivity
99 mPrefs = PreferenceManager.getDefaultSharedPreferences(this); in onCreate()
/packages/apps/Contacts/src/com/android/contacts/activities/
DActionBarAdapter.java70 private final SharedPreferences mPrefs; field in ActionBarAdapter
105 mPrefs = PreferenceManager.getDefaultSharedPreferences(mContext); in ActionBarAdapter()
372 mPrefs.edit().putInt(PERSISTENT_LAST_TAB, tab.ordinal()).apply(); in saveLastTabPreference()
377 return TabState.fromInt(mPrefs.getInt(PERSISTENT_LAST_TAB, DEFAULT_TAB.ordinal())); in loadLastTabPreference()
DDialtactsActivity.java105 private SharedPreferences mPrefs; field in DialtactsActivity
413 mPrefs = PreferenceManager.getDefaultSharedPreferences(this); in onCreate()
414 mLastManuallySelectedFragment = mPrefs.getInt(PREF_LAST_MANUALLY_SELECTED_TAB, in onCreate()
525 mPrefs.edit().putInt(PREF_LAST_MANUALLY_SELECTED_TAB, mLastManuallySelectedFragment) in onPause()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/deprecated/languageswitcher/
DInputLanguageSelection.java51 private SharedPreferences mPrefs; field in InputLanguageSelection
83 mPrefs = PreferenceManager.getDefaultSharedPreferences(this); in onCreate()
84 mSelectedLanguages = mPrefs.getString(Settings.PREF_SELECTED_LANGUAGES, ""); in onCreate()
207 Editor editor = mPrefs.edit(); in onPause()
/packages/wallpapers/Basic/src/com/android/wallpaper/polarclock/
DPolarClockWallpaper.java296 private SharedPreferences mPrefs; field in PolarClockWallpaper.ClockEngine
353 mPrefs = PolarClockWallpaper.this.getSharedPreferences(SHARED_PREFS_NAME, 0); in onCreate()
354 mPrefs.registerOnSharedPreferenceChangeListener(this); in onCreate()
357 onSharedPreferenceChanged(mPrefs, null); in onCreate()
/packages/apps/Mms/src/com/android/mms/ui/
DConversationList.java104 private SharedPreferences mPrefs; field in ConversationList
140 mPrefs = PreferenceManager.getDefaultSharedPreferences(this); in onCreate()
141 boolean checkedMessageLimits = mPrefs.getBoolean(CHECKED_MESSAGE_LIMITS, false); in onCreate()
210 SharedPreferences.Editor editor = mPrefs.edit(); in runOneTimeStorageLimitCheckForLegacyMessages()
232 SharedPreferences.Editor editor = mPrefs.edit(); in markCheckedMessageLimit()
/packages/apps/Gallery/src/com/android/camera/
DViewImage.java101 private SharedPreferences mPrefs; field in ViewImage
563 mPrefs = PreferenceManager.getDefaultSharedPreferences(this); in onCreate()
715 mUseShuffleOrder = mPrefs.getBoolean(PREF_SHUFFLE_SLIDESHOW, false); in setMode()
716 mSlideShowLoop = mPrefs.getBoolean(PREF_SLIDESHOW_REPEAT, false); in setMode()
718 mPrefs, "pref_gallery_slideshow_transition_key", 0); in setMode()
720 mPrefs, "pref_gallery_slideshow_interval_key", 3) * 1000; in setMode()
882 String sortOrder = mPrefs.getString( in buildImageListFromUri()
DImageGallery.java83 private SharedPreferences mPrefs; field in ImageGallery
108 mPrefs = PreferenceManager.getDefaultSharedPreferences(this); in onCreate()
430 mPrefs.getString("pref_gallery_size_key", "1")));
433 String sortOrder = mPrefs.getString("pref_gallery_sort_key", null);
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/
DKeyboardSwitcher.java64 private SharedPreferences mPrefs; field in KeyboardSwitcher
174 mPrefs = prefs; in initInternal()
236 Settings.Values.isKeyPreviewPopupEnabled(mPrefs, mResources), in setKeyboard()
237 Settings.Values.getKeyPreviewPopupDismissDelay(mPrefs, mResources)); in setKeyboard()
/packages/apps/Nfc/src/com/android/nfc/
DNfcService.java179 private SharedPreferences mPrefs; field in NfcService
303 mPrefs = getSharedPreferences(PREF, Context.MODE_PRIVATE); in onCreate()
304 mPrefsEditor = mPrefs.edit(); in onCreate()
307 mIsNdefPushEnabled = mPrefs.getBoolean(PREF_NDEF_PUSH_ON, NDEF_PUSH_ON_DEFAULT); in onCreate()
410 if (mPrefs.getBoolean(PREF_NFC_ON, NFC_ON_DEFAULT) && in doInBackground()
418 if (mPrefs.getBoolean(PREF_FIRST_BOOT, true)) { in doInBackground()
1720 } else if (!isAirplaneModeOn && mPrefs.getBoolean(PREF_NFC_ON, NFC_ON_DEFAULT)) {
/packages/apps/DeskClock/src/com/android/deskclock/
DAlarmClock.java57 private SharedPreferences mPrefs; field in AlarmClock
198 mPrefs = getSharedPreferences(PREFERENCES, 0); in onCreate()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DLatinIME.java172 private SharedPreferences mPrefs; field in LatinIME
457 mPrefs = prefs; in onCreate()
514 if (null == mPrefs) mPrefs = PreferenceManager.getDefaultSharedPreferences(this); in loadSettings()
516 mSettingsValues = new Settings.Values(mPrefs, this, mSubtypeSwitcher.getInputLocaleStr()); in loadSettings()
733 updateSuggestionVisibility(mPrefs, mResources); in onStartInputViewInternal()
738 mVoiceProxy.loadSettings(attribute, mPrefs); in onStartInputViewInternal()
2169 mKeypressVibrationDuration = Utils.getCurrentVibrationDuration(mPrefs, mResources); in updateKeypressVibrationDuration()
/packages/apps/Settings/src/com/android/settings/
DDataUsageSummary.java185 private SharedPreferences mPrefs; field in DataUsageSummary
261 mPrefs = getActivity().getSharedPreferences(PREF_FILE, Context.MODE_PRIVATE); in onCreate()
266 mShowWifi = mPrefs.getBoolean(PREF_SHOW_WIFI, false); in onCreate()
267 mShowEthernet = mPrefs.getBoolean(PREF_SHOW_ETHERNET, false); in onCreate()
494 mPrefs.edit().putBoolean(PREF_SHOW_WIFI, mShowWifi).apply(); in onOptionsItemSelected()
501 mPrefs.edit().putBoolean(PREF_SHOW_ETHERNET, mShowEthernet).apply(); in onOptionsItemSelected()