Home
last modified time | relevance | path

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

12

/packages/apps/Browser/src/com/android/browser/
DBrowserSettings.java110 private SharedPreferences mPrefs; field in BrowserSettings
142 mPrefs = PreferenceManager.getDefaultSharedPreferences(mContext); in BrowserSettings()
197 mPrefs.registerOnSharedPreferenceChangeListener(BrowserSettings.this);
202 if (mPrefs.contains(PREF_TEXT_SIZE)) {
225 mPrefs.edit().remove(PREF_TEXT_SIZE).apply();
454 return mPrefs.getBoolean(PREF_DEBUG_MENU, false); in isDebugEnabled()
458 Editor edit = mPrefs.edit(); in setDebugEnabled()
513 long gal = mPrefs.getLong(GoogleAccountLogin.PREF_AUTOLOGIN_TIME, -1); in resetDefaultPreferences()
514 mPrefs.edit() in resetDefaultPreferences()
588 return mPrefs; in getPreferences()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/research/
DResearchLogger.java164 private SharedPreferences mPrefs; field in ResearchLogger
213 mPrefs = PreferenceManager.getDefaultSharedPreferences(latinIME); in init()
214 mPrefs.registerOnSharedPreferenceChangeListener(this); in init()
217 sIsLogging = ResearchSettings.readResearchLoggerEnabledFlag(mPrefs); in init()
273 final long lastCleanupTime = ResearchSettings.readResearchLastDirCleanupTime(mPrefs); in cleanLogDirectoryIfNeeded()
277 ResearchSettings.writeResearchLastDirCleanupTime(mPrefs, now); in cleanLogDirectoryIfNeeded()
290 if (mPrefs != null) { in onDestroy()
291 mPrefs.unregisterOnSharedPreferenceChangeListener(this); in onDestroy()
298 if (ResearchSettings.readHasSeenSplash(mPrefs)) { in maybeShowSplashScreen()
351 if (mPrefs == null) { in onUserLoggingConsent()
[all …]
/packages/apps/DeskClock/src/com/android/deskclock/timer/
DTimerFragment.java79 private SharedPreferences mPrefs; field in TimerFragment
487 mPrefs = PreferenceManager.getDefaultSharedPreferences(getActivity()); in onCreateView()
507 mPrefs.registerOnSharedPreferenceChangeListener(this); in onResume()
509 mAdapter = createAdapter(getActivity(), mPrefs); in onResume()
512 if (mPrefs.getBoolean(Timers.FROM_NOTIFICATION, false)) { in onResume()
516 long now = mPrefs.getLong(Timers.NOTIF_TIME, Utils.getTimeNow()); in onResume()
517 int timerId = mPrefs.getInt(Timers.NOTIF_ID, -1); in onResume()
523 SharedPreferences.Editor editor = mPrefs.edit(); in onResume()
527 if (mPrefs.getBoolean(Timers.FROM_ALERT, false)) { in onResume()
530 SharedPreferences.Editor editor = mPrefs.edit(); in onResume()
[all …]
/packages/apps/Contacts/src/com/android/contacts/editor/
DContactEditorUtils.java57 private final SharedPreferences mPrefs; field in ContactEditorUtils
67 mPrefs = PreferenceManager.getDefaultSharedPreferences(mContext); in ContactEditorUtils()
80 mPrefs.edit().remove(KEY_DEFAULT_ACCOUNT).remove(KEY_KNOWN_ACCOUNTS) in cleanupForTest()
86 mPrefs.edit().remove(KEY_DEFAULT_ACCOUNT).apply(); in removeDefaultAccountForTest()
94 mPrefs.edit().putString(KEY_KNOWN_ACCOUNTS, "").putString(KEY_DEFAULT_ACCOUNT, "").apply(); in resetPreferenceValues()
106 return !mPrefs.getBoolean(KEY_ANYTHING_SAVED, false); in isFirstLaunch()
119 final SharedPreferences.Editor editor = mPrefs.edit() in saveDefaultAndAllAccounts()
147 final String saved = mPrefs.getString(KEY_DEFAULT_ACCOUNT, null); in getDefaultAccount()
179 final String saved = mPrefs.getString(KEY_KNOWN_ACCOUNTS, null); in getSavedAccounts()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DUserHistoryDictionary.java76 private final SharedPreferences mPrefs; field in UserHistoryDictionary
106 mPrefs = sp; in UserHistoryDictionary()
197 new UpdateBinaryTask(mBigramList, mLocale, this, mPrefs, getContext()).execute(); in flushPendingWrites()
222 final long last = Settings.readLastUserHistoryWriteTime(mPrefs, mLocale); in loadDictionaryAsyncLocked()
295 private final SharedPreferences mPrefs; field in UserHistoryDictionary.UpdateBinaryTask
304 mPrefs = prefs; in UpdateBinaryTask()
359 Settings.writeLastUserHistoryWriteTime(mPrefs, mLocale); in doWriteTaskLocked()
DSettings.java87 private SharedPreferences mPrefs; field in Settings
107 mPrefs = PreferenceManager.getDefaultSharedPreferences(context); in onCreate()
108 mPrefs.registerOnSharedPreferenceChangeListener(this); in onCreate()
112 mPrefs.unregisterOnSharedPreferenceChangeListener(this); in onDestroy()
122 final SharedPreferences prefs = mPrefs; in loadSettings()
DAdditionalSubtypeSettings.java52 private SharedPreferences mPrefs; field in AdditionalSubtypeSettings
388 mPrefs = getPreferenceManager().getSharedPreferences(); in onCreate()
402 Settings.readPrefAdditionalSubtypes(mPrefs, getResources()); in onActivityCreated()
566 final String oldSubtypes = Settings.readPrefAdditionalSubtypes(mPrefs, getResources()); in onPause()
572 Settings.writePrefAdditionalSubtypes(mPrefs, prefSubtypes); in onPause()
/packages/apps/Contacts/src/com/android/contacts/list/
DContactBrowseListFragment.java80 private SharedPreferences mPrefs; field in ContactBrowseListFragment
179 mPrefs = PreferenceManager.getDefaultSharedPreferences(activity); in onAttach()
640 ContactListFilter.storeToPreferences(mPrefs, mFilter); in saveSelectedUri()
642 Editor editor = mPrefs.edit(); in saveSelectedUri()
658 String selectedUri = mPrefs.getString(getPersistentSelectionKey(), null); in restoreSelectedUri()
667 ContactListFilter.storeToPreferences(mPrefs, mFilter); in saveFilter()
671 mFilter = ContactListFilter.restoreDefaultPreferences(mPrefs); in restoreFilter()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DFastScrollingIndexCacheTest.java32 private MockSharedPreferences mPrefs; field in FastScrollingIndexCacheTest
56 mPrefs = new MockSharedPreferences(); in setUp()
57 mCache = FastScrollingIndexCache.getInstanceForTest(mPrefs); in setUp()
144 FastScrollingIndexCache cache2 = FastScrollingIndexCache.getInstanceForTest(mPrefs); in testPutAndGet()
152 mPrefs.edit().putString(FastScrollingIndexCache.PREFERENCE_KEY, "123"); in testMalformedPreferences()
DContactsActor.java164 private final MockSharedPreferences mPrefs = new MockSharedPreferences(); in ContactsActor()
185 return mPrefs; in ContactsActor()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DFastScrollingIndexCache.java69 private final SharedPreferences mPrefs; field in FastScrollingIndexCache
106 mPrefs = prefs; in FastScrollingIndexCache()
249 mPrefs.edit().remove(PREFERENCE_KEY).commit(); in invalidate()
274 mPrefs.edit().putString(PREFERENCE_KEY, sb.toString()).apply(); in save()
289 final String savedValue = mPrefs.getString(PREFERENCE_KEY, null); in ensureLoaded()
/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/apps/DeskClock/src/com/android/deskclock/
DClockFragment.java54 private SharedPreferences mPrefs; field in ClockFragment
152 mPrefs = PreferenceManager.getDefaultSharedPreferences(getActivity()); in onCreateView()
160 mPrefs.registerOnSharedPreferenceChangeListener(this); in onResume()
196 mPrefs.unregisterOnSharedPreferenceChangeListener(this); in onPause()
/packages/apps/Nfc/nci/src/com/android/nfc/dhimpl/
DNativeNfcSecureElement.java34 SharedPreferences mPrefs; field in NativeNfcSecureElement
40 mPrefs = mContext.getSharedPreferences(NativeNfcManager.PREF, Context.MODE_PRIVATE); in NativeNfcSecureElement()
41 mPrefsEditor = mPrefs.edit(); in NativeNfcSecureElement()
/packages/apps/Nfc/nxp/src/com/android/nfc/dhimpl/
DNativeNfcSecureElement.java34 SharedPreferences mPrefs; field in NativeNfcSecureElement
40 mPrefs = mContext.getSharedPreferences(NativeNfcManager.PREF, Context.MODE_PRIVATE); in NativeNfcSecureElement()
41 mPrefsEditor = mPrefs.edit(); in NativeNfcSecureElement()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/
DKeyboardSwitcher.java74 private SharedPreferences mPrefs; field in KeyboardSwitcher
110 mPrefs = prefs; in initInternal()
186 Settings.readKeyPreviewPopupEnabled(mPrefs, mResources), in setKeyboard()
187 Settings.readKeyPreviewPopupDismissDelay(mPrefs, mResources)); in setKeyboard()
/packages/apps/Nfc/src/com/android/nfc/
DNfcService.java232 private SharedPreferences mPrefs; field in NfcService
399 mPrefs = mContext.getSharedPreferences(PREF, Context.MODE_PRIVATE); in NfcService()
400 mPrefsEditor = mPrefs.edit(); in NfcService()
403 mIsNdefPushEnabled = mPrefs.getBoolean(PREF_NDEF_PUSH_ON, NDEF_PUSH_ON_DEFAULT); in NfcService()
592 boolean airplaneOverride = mPrefs.getBoolean(PREF_AIRPLANE_OVERRIDE, false); in doInBackground()
593 if (mPrefs.getBoolean(PREF_NFC_ON, NFC_ON_DEFAULT) && in doInBackground()
601 if (mPrefs.getBoolean(PREF_FIRST_BOOT, true)) { in doInBackground()
2167 } else if (!isAirplaneModeOn && mPrefs.getBoolean(PREF_NFC_ON, NFC_ON_DEFAULT)) {
DP2pLinkManager.java203 SharedPreferences mPrefs; field in P2pLinkManager
233 mPrefs = context.getSharedPreferences(NfcService.PREF, Context.MODE_PRIVATE); in P2pLinkManager()
234 mFirstBeam = mPrefs.getBoolean(NfcService.PREF_FIRST_BEAM, true); in P2pLinkManager()
558 mPrefs.edit().putBoolean(NfcService.PREF_FIRST_BEAM, false).apply(); in onSendComplete()
/packages/apps/Contacts/src/com/android/contacts/activities/
DActionBarAdapter.java75 private final SharedPreferences mPrefs; field in ActionBarAdapter
131 mPrefs = PreferenceManager.getDefaultSharedPreferences(mContext); in ActionBarAdapter()
534 mPrefs.edit().putInt(PERSISTENT_LAST_TAB, tab).apply(); in saveLastTabPreference()
539 return mPrefs.getInt(PERSISTENT_LAST_TAB, TabState.DEFAULT); in loadLastTabPreference()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
DUserHistoryDictionaryTests.java37 private SharedPreferences mPrefs; field in UserHistoryDictionaryTests
46 mPrefs = PreferenceManager.getDefaultSharedPreferences(getContext()); in setUp()
92 locale, mPrefs); in testRandomWords()
/packages/apps/Mms/src/com/android/mms/ui/
DConversationList.java106 private SharedPreferences mPrefs; field in ConversationList
145 mPrefs = PreferenceManager.getDefaultSharedPreferences(this); in onCreate()
146 boolean checkedMessageLimits = mPrefs.getBoolean(CHECKED_MESSAGE_LIMITS, false); in onCreate()
259 SharedPreferences.Editor editor = mPrefs.edit(); in runOneTimeStorageLimitCheckForLegacyMessages()
282 SharedPreferences.Editor editor = mPrefs.edit(); in markCheckedMessageLimit()
/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/Dialer/src/com/android/dialer/
DDialtactsActivity.java109 private SharedPreferences mPrefs; field in DialtactsActivity
529 mPrefs = PreferenceManager.getDefaultSharedPreferences(this); in onCreate()
530 mLastManuallySelectedFragment = mPrefs.getInt(PREF_LAST_MANUALLY_SELECTED_TAB, in onCreate()
712 mPrefs.edit().putInt(PREF_LAST_MANUALLY_SELECTED_TAB, mLastManuallySelectedFragment) in onPause()
/packages/apps/Settings/src/com/android/settings/
DDataUsageSummary.java198 private SharedPreferences mPrefs; field in DataUsageSummary
274 mPrefs = getActivity().getSharedPreferences(PREF_FILE, Context.MODE_PRIVATE); in onCreate()
285 mShowWifi = mPrefs.getBoolean(PREF_SHOW_WIFI, false); in onCreate()
286 mShowEthernet = mPrefs.getBoolean(PREF_SHOW_ETHERNET, false); in onCreate()
533 mPrefs.edit().putBoolean(PREF_SHOW_WIFI, mShowWifi).apply(); in onOptionsItemSelected()
540 mPrefs.edit().putBoolean(PREF_SHOW_ETHERNET, mShowEthernet).apply(); in onOptionsItemSelected()

12