Home
last modified time | relevance | path

Searched refs:sharedPreferences (Results 1 – 25 of 32) sorted by relevance

12

/packages/apps/TvSettings/QuickSettings/src/com/android/tv/quicksettings/
DQuickSettingsPreferenceFragment.java85 final SharedPreferences sharedPreferences = getPreferenceManager().getSharedPreferences(); in onResume() local
86 sharedPreferences.registerOnSharedPreferenceChangeListener(this); in onResume()
87 sharedPreferences.registerOnSharedPreferenceChangeListener(mPresetSettingsListener); in onResume()
89 updateDescriptions(sharedPreferences); in onResume()
97 final SharedPreferences sharedPreferences = getPreferenceManager().getSharedPreferences(); in onPause() local
98 sharedPreferences.unregisterOnSharedPreferenceChangeListener(this); in onPause()
99 sharedPreferences.unregisterOnSharedPreferenceChangeListener(mPresetSettingsListener); in onPause()
102 private void updateDescriptions(SharedPreferences sharedPreferences) { in updateDescriptions() argument
105 mBacklightPref.setSummary(String.format("%d", sharedPreferences.getInt("backlight", in updateDescriptions()
107 mContrastPref.setSummary(String.format("%d", sharedPreferences.getInt("contrast", in updateDescriptions()
[all …]
DSetting.java38 public Setting(SharedPreferences sharedPreferences, String key, String title, int max) { in Setting() argument
39 mSharedPreferences = sharedPreferences; in Setting()
46 public Setting(SharedPreferences sharedPreferences, String key, String title) { in Setting() argument
47 mSharedPreferences = sharedPreferences; in Setting()
DPresetSettingsListener.java33 public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) { in onSharedPreferenceChanged() argument
37 final String preset = sharedPreferences.getString(key, "standard"); in onSharedPreferenceChanged()
59 final SharedPreferences.Editor prefs = sharedPreferences.edit(); in onSharedPreferenceChanged()
/packages/apps/Calendar/tests/src/com/android/calendar/
DDbTestUtils.java46 private final FakeSharedPreferences sharedPreferences; field in DbTestUtils
52 private SharedPreferences sharedPreferences; field in DbTestUtils.FakeContext
69 public void setSharedPreferences(SharedPreferences sharedPreferences) { in setSharedPreferences() argument
70 this.sharedPreferences = sharedPreferences; in setSharedPreferences()
75 if (sharedPreferences != null) { in getSharedPreferences()
76 return sharedPreferences; in getSharedPreferences()
176 this.sharedPreferences = new FakeSharedPreferences(); in DbTestUtils()
178 context.setSharedPreferences(sharedPreferences); in DbTestUtils()
194 return sharedPreferences; in getMockSharedPreferences()
/packages/apps/UnifiedEmail/src/com/android/mail/preferences/
DMailPrefs.java268 final SharedPreferences sharedPreferences = getSharedPreferences(); in getRemovalAction() local
270 sharedPreferences.getString(PreferenceKeys.REMOVAL_ACTION, null); in getRemovalAction()
274 return sharedPreferences.getString(PreferenceKeys.REMOVAL_ACTION, in getRemovalAction()
291 final SharedPreferences sharedPreferences = getSharedPreferences(); in getIsConversationListSwipeEnabled() local
292 return sharedPreferences.getBoolean(PreferenceKeys.CONVERSATION_LIST_SWIPE, true); in getIsConversationListSwipeEnabled()
384 final SharedPreferences sharedPreferences = getSharedPreferences(); in getDisplayImagesFromSender() local
387 final Set<String> currentPatterns = sharedPreferences.getStringSet( in getDisplayImagesFromSender()
434 final SharedPreferences sharedPreferences = getSharedPreferences(); in getSenderWhitelist() local
436 return sharedPreferences.getStringSet(PreferenceKeys.DISPLAY_IMAGES, defaultAddressSet); in getSenderWhitelist()
441 final SharedPreferences sharedPreferences = getSharedPreferences(); in getSenderWhitelistPatterns() local
[all …]
DVersionedPrefs.java194 final SharedPreferences sharedPreferences = getSharedPreferences(); in getBackupPreferences() local
195 final Map<String, ?> preferences = sharedPreferences.getAll(); in getBackupPreferences()
/packages/apps/Settings/src/com/android/settings/bluetooth/
DLocalBluetoothPreferences.java86 SharedPreferences sharedPreferences = getSharedPreferences(context); in shouldShowDialogInForeground() local
89 long lastDiscoverableEndTime = sharedPreferences.getLong( in shouldShowDialogInForeground()
100 } else if ((sharedPreferences.getLong(KEY_DISCOVERING_TIMESTAMP, 0) + in shouldShowDialogInForeground()
107 String lastSelectedDevice = sharedPreferences.getString( in shouldShowDialogInForeground()
111 long lastDeviceSelectedTime = sharedPreferences.getLong( in shouldShowDialogInForeground()
/packages/apps/Messaging/src/com/android/messaging/ui/appsettings/
DApplicationSettingsActivity.java159 private void updateSoundSummary(final SharedPreferences sharedPreferences) { in updateSoundSummary() argument
164 String ringtoneString = sharedPreferences.getString(mRingtonePreferenceKey, null); in updateSoundSummary()
170 final SharedPreferences.Editor editor = sharedPreferences.edit(); in updateSoundSummary()
246 public void onSharedPreferenceChanged(final SharedPreferences sharedPreferences, in onSharedPreferenceChanged() argument
251 updateSoundSummary(sharedPreferences); in onSharedPreferenceChanged()
DApnEditorActivity.java430 public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) { in onSharedPreferenceChanged() argument
433 pref.setSummary(checkNull(sharedPreferences.getString(key, ""))); in onSharedPreferenceChanged()
/packages/apps/Contacts/tests/src/com/android/contacts/tests/quickcontact/
DQuickContactTestsActivity.java76 final SharedPreferences sharedPreferences = getSharedPreferences(PREF_NAME, MODE_PRIVATE); in onCreate() local
77 final String uriString = sharedPreferences.getString(PREF_SETTING_URI, null); in onCreate()
101 final SharedPreferences sharedPreferences = getSharedPreferences(PREF_NAME, MODE_PRIVATE); in onDestroy() local
102 final Editor editor = sharedPreferences.edit(); in onDestroy()
/packages/providers/PartnerBookmarksProvider/src/com/android/providers/partnerbookmarks/
DPartnerBookmarksProvider.java131 private final SharedPreferences sharedPreferences; field in PartnerBookmarksProvider.DatabaseHelper
135 sharedPreferences = context.getSharedPreferences( in DatabaseHelper()
149 sharedPreferences.getString(ACTIVE_CONFIGURATION_PREFNAME, null); in prepareForConfiguration()
160 Editor editor = sharedPreferences.edit(); in setActiveConfiguration()
/packages/wallpapers/Basic/src/com/android/wallpaper/polarclock/
DPolarClockWallpaper.java383 public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, in onSharedPreferenceChanged() argument
388 mShowSeconds = sharedPreferences.getBoolean( in onSharedPreferenceChanged()
393 mVariableLineWidth = sharedPreferences.getBoolean( in onSharedPreferenceChanged()
398 String paletteId = sharedPreferences.getString( in onSharedPreferenceChanged()
DPolarClockSettings.java50 public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, in onSharedPreferenceChanged() argument
/packages/apps/Calendar/src/com/android/calendar/
DGeneralPreferences.java152 final SharedPreferences sharedPreferences = getSharedPreferences(activity); in onCreate() local
222 migrateOldPreferences(sharedPreferences); in onCreate()
280 public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) { in onSharedPreferenceChanged() argument
/packages/apps/ContactsCommon/src/com/android/contacts/common/testing/
DInjectedServices.java49 public void setSharedPreferences(SharedPreferences sharedPreferences) { in setSharedPreferences() argument
50 this.mSharedPreferences = sharedPreferences; in setSharedPreferences()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/spellcheck/
DSpellCheckerSettingsFragment.java59 public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) { in onSharedPreferenceChanged() argument
64 if (!sharedPreferences.getBoolean(key, false)) { in onSharedPreferenceChanged()
/packages/apps/DeskClock/src/com/android/deskclock/timer/
DTimerFragmentAdapter.java33 public TimerFragmentAdapter(FragmentManager fm, SharedPreferences sharedPreferences) { in TimerFragmentAdapter() argument
35 mSharedPrefs = sharedPreferences; in TimerFragmentAdapter()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/
DCorrectionSettingsFragment.java120 …public void onSharedPreferenceChanged(final SharedPreferences sharedPreferences, final String key)… in onSharedPreferenceChanged() argument
124 if (!sharedPreferences.getBoolean(key, false)) { in onSharedPreferenceChanged()
/packages/apps/ContactsCommon/src/com/android/contacts/common/location/
DCountryDetector.java171 final SharedPreferences sharedPreferences = in getLocationBasedCountryIso() local
173 return sharedPreferences.getString(KEY_PREFERENCE_CURRENT_COUNTRY, null); in getLocationBasedCountryIso()
/packages/apps/Settings/src/com/android/settings/
DApnEditor.java756 public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) { in onSharedPreferenceChanged() argument
760 pref.setSummary(starify(sharedPreferences.getString(key, ""))); in onSharedPreferenceChanged()
764 pref.setSummary(checkNull(sharedPreferences.getString(key, ""))); in onSharedPreferenceChanged()
/packages/apps/Browser/src/com/android/browser/
DBrowserSettings.java339 SharedPreferences sharedPreferences, String key) { in onSharedPreferenceChanged() argument
349 mController.getUi().setUseQuickControls(sharedPreferences.getBoolean(key, false)); in onSharedPreferenceChanged()
/packages/inputmethods/LatinIME/tools/dicttool/compat/android/content/
DSharedPreferences.java21 public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key); in onSharedPreferenceChanged() argument
/packages/apps/Browser/src/com/android/browser/preferences/
DWebViewPreview.java97 SharedPreferences sharedPreferences, String key) { in onSharedPreferenceChanged() argument
/packages/apps/ContactsCommon/src/com/android/contacts/common/preference/
DContactsPreferences.java159 public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, final String key) { in onSharedPreferenceChanged() argument
/packages/apps/LegacyCamera/src/com/android/camera/
DComboPreferences.java235 public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, in onSharedPreferenceChanged() argument

12