/packages/apps/Browser/src/com/android/browser/ |
D | BrowserSettings.java | 108 private SharedPreferences mPrefs; field in BrowserSettings 139 mPrefs = PreferenceManager.getDefaultSharedPreferences(mContext); in BrowserSettings() 192 mPrefs.registerOnSharedPreferenceChangeListener(BrowserSettings.this); 197 if (mPrefs.contains(PREF_TEXT_SIZE)) { 220 mPrefs.edit().remove(PREF_TEXT_SIZE).apply(); 413 return mPrefs.getBoolean(PREF_DEBUG_MENU, false); in isDebugEnabled() 417 Editor edit = mPrefs.edit(); in setDebugEnabled() 472 long gal = mPrefs.getLong(GoogleAccountLogin.PREF_AUTOLOGIN_TIME, -1); in resetDefaultPreferences() 473 mPrefs.edit() in resetDefaultPreferences() 534 return mPrefs; in getPreferences() [all …]
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/ |
D | IntentStore.java | 40 private SharedPreferences mPrefs; field in IntentStore 63 mPrefs = context.getSharedPreferences(preferencesName, Context.MODE_PRIVATE); in IntentStore() 98 mPrefs.edit().clear().commit(); in clear() 102 SharedPreferences.Editor editor = mPrefs.edit(); in save() 138 if (!mPrefs.getBoolean(IS_SET, false)) { in load() 146 String value = mPrefs.getString(key, null); in load() 152 if (mPrefs.contains(key)) { in load() 153 result.putExtra(key, mPrefs.getLong(key, 0)); in load() 157 if (mPrefs.contains(key)) { in load() 158 result.putExtra(key, mPrefs.getInt(key, 0)); in load() [all …]
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/ |
D | KeyboardThemeTests.java | 33 private SharedPreferences mPrefs; field in KeyboardThemeTests 43 mPrefs = PreferenceManager.getDefaultSharedPreferences(getContext()); in setUp() 66 mPrefs.edit().putString(prefKey, themeIdString).apply(); in setKeyboardThemePreference() 71 mPrefs.edit().remove(prefKey).apply(); in setKeyboardThemePreference() 76 mPrefs.edit().putString(prefKey, ILLEGAL_THEME_ID_STRING).apply(); in setKeyboardThemePreference() 80 assertEquals(expectedThemeId, KeyboardTheme.getKeyboardTheme(mPrefs, sdkVersion).mThemeId); in assertKeyboardTheme() 143 KeyboardTheme.getDefaultKeyboardTheme(mPrefs, sdkVersion); in assertDefaultKeyboardTheme() 149 assertEquals(isValidKeyboardThemeId(previousThemeId), mPrefs.contains(oldPrefKey)); in assertDefaultKeyboardTheme() 153 assertFalse(mPrefs.contains(oldPrefKey)); in assertDefaultKeyboardTheme() 197 final KeyboardTheme theme = KeyboardTheme.getKeyboardTheme(mPrefs, sdkVersion); in assertUpgradeKeyboardToLxxOn() [all …]
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/ |
D | Settings.java | 129 private SharedPreferences mPrefs; field in Settings 150 mPrefs = PreferenceManager.getDefaultSharedPreferences(context); in onCreate() 151 mPrefs.registerOnSharedPreferenceChangeListener(this); in onCreate() 155 mPrefs.unregisterOnSharedPreferenceChangeListener(this); in onDestroy() 179 final SharedPreferences prefs = mPrefs; in loadSettings() 391 mPrefs.edit().remove(PREF_LAST_USED_PERSONALIZATION_TOKEN).apply(); in writeLastUsedPersonalizationToken() 394 mPrefs.edit().putString(PREF_LAST_USED_PERSONALIZATION_TOKEN, tokenStr).apply(); in writeLastUsedPersonalizationToken() 399 final String tokenStr = mPrefs.getString(PREF_LAST_USED_PERSONALIZATION_TOKEN, null); in readLastUsedPersonalizationToken() 404 mPrefs.edit().putLong(PREF_LAST_PERSONALIZATION_DICT_WIPED_TIME, timestamp).apply(); in writeLastPersonalizationDictWipedTime() 408 return mPrefs.getLong(PREF_LAST_PERSONALIZATION_DICT_WIPED_TIME, 0); in readLastPersonalizationDictGeneratedTime() [all …]
|
D | CustomInputStyleSettingsFragment.java | 63 private SharedPreferences mPrefs; field in CustomInputStyleSettingsFragment 423 mPrefs = getPreferenceManager().getSharedPreferences(); in onCreate() 447 Settings.readPrefAdditionalSubtypes(mPrefs, getResources()); in onActivityCreated() 611 final String oldSubtypes = Settings.readPrefAdditionalSubtypes(mPrefs, getResources()); in onPause() 617 Settings.writePrefAdditionalSubtypes(mPrefs, prefSubtypes); in onPause()
|
/packages/apps/DeskClock/src/com/android/deskclock/timer/ |
D | TimerFullScreenFragment.java | 90 private SharedPreferences mPrefs; field in TimerFullScreenFragment 461 mPrefs = PreferenceManager.getDefaultSharedPreferences(getActivity()); in onCreateView() 485 mPrefs.registerOnSharedPreferenceChangeListener(this); in onResume() 487 mAdapter = createAdapter(getActivity(), mPrefs); in onResume() 505 if (mPrefs.getBoolean(Timers.FROM_NOTIFICATION, false)) { in onResume() 508 SharedPreferences.Editor editor = mPrefs.edit(); in onResume() 512 if (mPrefs.getBoolean(Timers.FROM_ALERT, false)) { in onResume() 515 SharedPreferences.Editor editor = mPrefs.edit(); in onResume() 598 mPrefs.unregisterOnSharedPreferenceChangeListener(this); in onPause() 686 SharedPreferences.Editor editor = mPrefs.edit(); in updateAllTimesUpTimers() [all …]
|
D | TimerFragment.java | 76 private SharedPreferences mPrefs; field in TimerFragment 184 mPrefs = PreferenceManager.getDefaultSharedPreferences(context); in onActivityCreated() 198 mAdapter = new TimerFragmentAdapter(getChildFragmentManager(), mPrefs); in onResume() 203 mPrefs.registerOnSharedPreferenceChangeListener(this); in onResume() 207 final SharedPreferences.Editor editor = mPrefs.edit(); in onResume() 208 if (mPrefs.getBoolean(Timers.FROM_NOTIFICATION, false)) { in onResume() 211 if (mPrefs.getBoolean(Timers.FROM_ALERT, false)) { in onResume() 264 mPrefs.unregisterOnSharedPreferenceChangeListener(this); in onPause() 345 t.writeToSharedPref(mPrefs); in updateTimerState() 675 if (prefs.equals(mPrefs)) { in onSharedPreferenceChanged() [all …]
|
/packages/apps/Contacts/src/com/android/contacts/editor/ |
D | ContactEditorUtils.java | 57 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/keyboard/emoji/ |
D | EmojiCategory.java | 100 private final SharedPreferences mPrefs; field in EmojiCategory 115 mPrefs = prefs; in EmojiCategory() 131 Settings.readLastShownEmojiCategoryId(mPrefs, EmojiCategory.ID_PEOPLE); in EmojiCategory() 134 Settings.readLastShownEmojiCategoryId(mPrefs, EmojiCategory.ID_SYMBOLS); in EmojiCategory() 192 Settings.writeLastShownEmojiCategoryId(mPrefs, categoryId); in setCurrentCategoryId() 205 mPrefs, mCurrentCategoryId, mCurrentCategoryPageId); in saveLastTypedCategoryPage() 225 Settings.readLastTypedEmojiCategoryPageId(mPrefs, categoryId); in getPageIdFromCategoryId() 285 final DynamicGridKeyboard kbd = new DynamicGridKeyboard(mPrefs, in getKeyboard() 296 final DynamicGridKeyboard tempKeyboard = new DynamicGridKeyboard(mPrefs, in getKeyboard()
|
D | DynamicGridKeyboard.java | 43 private final SharedPreferences mPrefs; field in DynamicGridKeyboard 64 mPrefs = prefs; in DynamicGridKeyboard() 142 Settings.writeEmojiRecentKeys(mPrefs, jsonStr); in saveRecentKeys() 170 final String str = Settings.readEmojiRecentKeys(mPrefs); in loadRecentKeys()
|
/packages/apps/Settings/src/com/android/settings/ |
D | HomeSettings.java | 85 private ArrayList<HomeAppPreference> mPrefs; field in HomeSettings 101 HomeAppPreference pref = mPrefs.get(index); 112 uninstallApp(mPrefs.get(index)); 152 for (int i = 0; i < mPrefs.size(); i++) { in onActivityResult() 153 HomeAppPreference pref = mPrefs.get(i); in onActivityResult() 165 if (mPrefs.size() < 2) { in onActivityResult() 181 mPrefs = new ArrayList<HomeAppPreference>(); in buildHomeActivitiesList() 207 mPrefs.add(pref); in buildHomeActivitiesList()
|
D | DataUsageSummary.java | 209 private SharedPreferences mPrefs; field in DataUsageSummary 302 mPrefs = getActivity().getSharedPreferences(PREF_FILE, Context.MODE_PRIVATE); in onCreate() 326 mShowWifi = mPrefs.getBoolean(PREF_SHOW_WIFI, false); in onCreate() 327 mShowEthernet = mPrefs.getBoolean(PREF_SHOW_ETHERNET, false); in onCreate() 591 mPrefs.edit().putBoolean(PREF_SHOW_WIFI, mShowWifi).apply(); in onOptionsItemSelected() 598 mPrefs.edit().putBoolean(PREF_SHOW_ETHERNET, mShowEthernet).apply(); in onOptionsItemSelected()
|
/packages/apps/Contacts/src/com/android/contacts/list/ |
D | ContactBrowseListFragment.java | 80 private SharedPreferences mPrefs; field in ContactBrowseListFragment 182 mPrefs = PreferenceManager.getDefaultSharedPreferences(activity); in onAttach() 627 ContactListFilter.storeToPreferences(mPrefs, mFilter); in saveSelectedUri() 629 Editor editor = mPrefs.edit(); in saveSelectedUri() 645 String selectedUri = mPrefs.getString(getPersistentSelectionKey(), null); in restoreSelectedUri() 654 ContactListFilter.storeToPreferences(mPrefs, mFilter); in saveFilter() 658 mFilter = ContactListFilter.restoreDefaultPreferences(mPrefs); in restoreFilter()
|
/packages/apps/Launcher3/src/com/android/launcher3/compat/ |
D | PackageInstallerCompatV16.java | 45 protected final SharedPreferences mPrefs; field in PackageInstallerCompatV16 52 mPrefs = context.getSharedPreferences(PREFS, Context.MODE_PRIVATE); in PackageInstallerCompatV16() 90 for (String packageName: mPrefs.getAll().keySet()) { in replayUpdates() 91 final String json = mPrefs.getString(packageName, null); in replayUpdates() 106 SharedPreferences.Editor editor = mPrefs.edit(); in recordPackageUpdate()
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | FastScrollingIndexCacheTest.java | 31 private MockSharedPreferences mPrefs; field in FastScrollingIndexCacheTest 55 mPrefs = new MockSharedPreferences(); in setUp() 56 mCache = FastScrollingIndexCache.getInstanceForTest(mPrefs); in setUp() 143 FastScrollingIndexCache cache2 = FastScrollingIndexCache.getInstanceForTest(mPrefs); in testPutAndGet() 151 mPrefs.edit().putString(FastScrollingIndexCache.PREFERENCE_KEY, "123"); in testMalformedPreferences()
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | FastScrollingIndexCache.java | 69 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/ |
D | ViewImage.java | 101 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()
|
D | ImageGallery.java | 83 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/ |
D | ClockFragment.java | 56 private SharedPreferences mPrefs; field in ClockFragment 204 mPrefs = PreferenceManager.getDefaultSharedPreferences(getActivity()); in onCreateView() 219 mPrefs.registerOnSharedPreferenceChangeListener(this); in onResume() 259 mPrefs.unregisterOnSharedPreferenceChangeListener(this); in onPause()
|
/packages/apps/Contacts/src/com/android/contacts/activities/ |
D | ActionBarAdapter.java | 85 private final SharedPreferences mPrefs; field in ActionBarAdapter 109 mPrefs = PreferenceManager.getDefaultSharedPreferences(mContext); in ActionBarAdapter() 419 mPrefs.edit().putInt(PERSISTENT_LAST_TAB, tab).apply(); in saveLastTabPreference() 424 return mPrefs.getInt(PERSISTENT_LAST_TAB, TabState.DEFAULT); in loadLastTabPreference()
|
/packages/apps/Nfc/src/com/android/nfc/ |
D | NfcService.java | 201 private SharedPreferences mPrefs; field in NfcService 338 mPrefs = mContext.getSharedPreferences(PREF, Context.MODE_PRIVATE); in NfcService() 339 mPrefsEditor = mPrefs.edit(); in NfcService() 344 mIsNdefPushEnabled = mPrefs.getBoolean(PREF_NDEF_PUSH_ON, NDEF_PUSH_ON_DEFAULT); in NfcService() 494 boolean airplaneOverride = mPrefs.getBoolean(PREF_AIRPLANE_OVERRIDE, false); in doInBackground() 495 if (mPrefs.getBoolean(PREF_NFC_ON, NFC_ON_DEFAULT) && in doInBackground() 503 if (mPrefs.getBoolean(PREF_FIRST_BOOT, true)) { in doInBackground() 1998 } else if (!isAirplaneModeOn && mPrefs.getBoolean(PREF_NFC_ON, NFC_ON_DEFAULT)) {
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/ |
D | KeyboardSwitcher.java | 49 private SharedPreferences mPrefs; field in KeyboardSwitcher 84 mPrefs = prefs; in initInternal() 93 mLatinIME, KeyboardTheme.getKeyboardTheme(mPrefs)); in updateKeyboardTheme() 350 mLatinIME, KeyboardTheme.getKeyboardTheme(mPrefs)); in onCreateInputView()
|
/packages/wallpapers/Basic/src/com/android/wallpaper/polarclock/ |
D | PolarClockWallpaper.java | 296 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/ |
D | ConversationList.java | 112 private SharedPreferences mPrefs; field in ConversationList 159 mPrefs = PreferenceManager.getDefaultSharedPreferences(this); in onCreate() 160 boolean checkedMessageLimits = mPrefs.getBoolean(CHECKED_MESSAGE_LIMITS, false); in onCreate() 342 SharedPreferences.Editor editor = mPrefs.edit(); in runOneTimeStorageLimitCheckForLegacyMessages() 365 SharedPreferences.Editor editor = mPrefs.edit(); in markCheckedMessageLimit()
|
/packages/apps/DeskClock/src/com/android/deskclock/worldclock/ |
D | CitiesActivity.java | 97 private SharedPreferences mPrefs; field in CitiesActivity 309 mPrefs.edit().putInt(PREF_SORT, sortType).commit(); in sortCities() 459 mPrefs = PreferenceManager.getDefaultSharedPreferences(this); in onCreate() 460 mSortType = mPrefs.getInt(PREF_SORT, SORT_BY_NAME); in onCreate()
|