Home
last modified time | relevance | path

Searched refs:prefs (Results 1 – 25 of 238) sorted by relevance

12345678910

/packages/apps/DeskClock/src/com/android/deskclock/data/
DSettingsDAO.java73 static int getGlobalIntentId(SharedPreferences prefs) { in getGlobalIntentId() argument
74 return prefs.getInt(KEY_ALARM_GLOBAL_ID, -1); in getGlobalIntentId()
80 static void updateGlobalIntentId(SharedPreferences prefs) { in updateGlobalIntentId() argument
81 final int globalId = prefs.getInt(KEY_ALARM_GLOBAL_ID, -1) + 1; in updateGlobalIntentId()
82 prefs.edit().putInt(KEY_ALARM_GLOBAL_ID, globalId).apply(); in updateGlobalIntentId()
88 static CitySort getCitySort(SharedPreferences prefs) { in getCitySort() argument
90 final int citySortOrdinal = prefs.getInt(KEY_SORT_PREFERENCE, defaultSortOrdinal); in getCitySort()
97 static void toggleCitySort(SharedPreferences prefs) { in toggleCitySort() argument
98 final CitySort oldSort = getCitySort(prefs); in toggleCitySort()
100 prefs.edit().putInt(KEY_SORT_PREFERENCE, newSort.ordinal()).apply(); in toggleCitySort()
[all …]
DTimerDAO.java72 static List<Timer> getTimers(SharedPreferences prefs) { in getTimers() argument
74 final Set<String> timerIds = prefs.getStringSet(TIMER_IDS, Collections.<String>emptySet()); in getTimers()
80 final int stateValue = prefs.getInt(STATE + id, RESET.getValue()); in getTimers()
86 final long length = prefs.getLong(LENGTH + id, Long.MIN_VALUE); in getTimers()
87 final long totalLength = prefs.getLong(TOTAL_LENGTH + id, Long.MIN_VALUE); in getTimers()
88 final long lastStartTime = prefs.getLong(LAST_START_TIME + id, Timer.UNUSED); in getTimers()
89 final long lastWallClockTime = prefs.getLong(LAST_WALL_CLOCK_TIME + id, in getTimers()
91 final long remainingTime = prefs.getLong(REMAINING_TIME + id, totalLength); in getTimers()
92 final String label = prefs.getString(LABEL + id, null); in getTimers()
93 final boolean deleteAfterUse = prefs.getBoolean(DELETE_AFTER_USE + id, false); in getTimers()
[all …]
DStopwatchDAO.java58 static Stopwatch getStopwatch(SharedPreferences prefs) { in getStopwatch() argument
59 final int stateIndex = prefs.getInt(STATE, RESET.ordinal()); in getStopwatch()
61 final long lastStartTime = prefs.getLong(LAST_START_TIME, Stopwatch.UNUSED); in getStopwatch()
62 final long lastWallClockTime = prefs.getLong(LAST_WALL_CLOCK_TIME, Stopwatch.UNUSED); in getStopwatch()
63 final long accumulatedTime = prefs.getLong(ACCUMULATED_TIME, 0); in getStopwatch()
69 setStopwatch(prefs, s); in getStopwatch()
77 static void setStopwatch(SharedPreferences prefs, Stopwatch stopwatch) { in setStopwatch() argument
78 final SharedPreferences.Editor editor = prefs.edit(); in setStopwatch()
98 static List<Lap> getLaps(SharedPreferences prefs) { in getLaps() argument
100 final int lapCount = prefs.getInt(LAP_COUNT, 0); in getLaps()
[all …]
DCustomRingtoneDAO.java53 static CustomRingtone addCustomRingtone(SharedPreferences prefs, Uri uri, String title) { in addCustomRingtone() argument
54 final long id = prefs.getLong(NEXT_RINGTONE_ID, 0); in addCustomRingtone()
55 final Set<String> ids = getRingtoneIds(prefs); in addCustomRingtone()
58 prefs.edit() in addCustomRingtone()
71 static void removeCustomRingtone(SharedPreferences prefs, long id) { in removeCustomRingtone() argument
72 final Set<String> ids = getRingtoneIds(prefs); in removeCustomRingtone()
75 final SharedPreferences.Editor editor = prefs.edit(); in removeCustomRingtone()
90 static List<CustomRingtone> getCustomRingtones(SharedPreferences prefs) { in getCustomRingtones() argument
91 final Set<String> ids = prefs.getStringSet(RINGTONE_IDS, Collections.<String>emptySet()); in getCustomRingtones()
96 final Uri uri = Uri.parse(prefs.getString(RINGTONE_URI + id, null)); in getCustomRingtones()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/
DSettings.java156 public void onSharedPreferenceChanged(final SharedPreferences prefs, final String key) { in onSharedPreferenceChanged() argument
177 final SharedPreferences prefs = mPrefs; in loadSettings() local
181 return new SettingsValues(context, prefs, res, inputAttributes); in loadSettings()
204 public static boolean readKeypressSoundEnabled(final SharedPreferences prefs, in readKeypressSoundEnabled() argument
206 return prefs.getBoolean(PREF_SOUND_ON, in readKeypressSoundEnabled()
210 public static boolean readVibrationEnabled(final SharedPreferences prefs, in readVibrationEnabled() argument
213 return hasVibrator && prefs.getBoolean(PREF_VIBRATE_ON, in readVibrationEnabled()
217 public static boolean readAutoCorrectEnabled(final SharedPreferences prefs, in readAutoCorrectEnabled() argument
219 return prefs.getBoolean(PREF_AUTO_CORRECTION, true); in readAutoCorrectEnabled()
226 public static boolean readBlockPotentiallyOffensive(final SharedPreferences prefs, in readBlockPotentiallyOffensive() argument
[all …]
DSettingsValues.java122 public SettingsValues(final Context context, final SharedPreferences prefs, final Resources res, in SettingsValues() argument
134 mAutoCap = prefs.getBoolean(Settings.PREF_AUTO_CAP, true); in SettingsValues()
135 mVibrateOn = Settings.readVibrationEnabled(prefs, res); in SettingsValues()
136 mSoundOn = Settings.readKeypressSoundEnabled(prefs, res); in SettingsValues()
137 mKeyPreviewPopupOn = Settings.readKeyPreviewPopupEnabled(prefs, res); in SettingsValues()
138 mSlidingKeyInputPreviewEnabled = prefs.getBoolean( in SettingsValues()
140 mShowsVoiceInputKey = needsToShowVoiceInputKey(prefs, res) in SettingsValues()
144 ? prefs.getBoolean(Settings.PREF_INCLUDE_OTHER_IMES_IN_LANGUAGE_SWITCH_LIST, false) in SettingsValues()
147 ? Settings.readShowsLanguageSwitchKey(prefs) : true /* forcibly */; in SettingsValues()
148 mUseContactsDict = prefs.getBoolean(Settings.PREF_KEY_USE_CONTACTS_DICT, true); in SettingsValues()
[all …]
DAdvancedSettingsFragment.java57 final SharedPreferences prefs = getPreferenceManager().getSharedPreferences(); in onCreate() local
59 if (!Settings.isInternal(prefs)) { in onCreate()
88 Settings.readKeyPreviewPopupEnabled(prefs, res)); in onCreate()
100 final SharedPreferences prefs = getPreferenceManager().getSharedPreferences(); in onResume() local
105 public void onSharedPreferenceChanged(final SharedPreferences prefs, final String key) { in onSharedPreferenceChanged() argument
109 Settings.readKeyPreviewPopupEnabled(prefs, res)); in onSharedPreferenceChanged()
118 final SharedPreferences prefs = getSharedPreferences(); in refreshEnablingsOfKeypressSoundAndVibrationSettings() local
121 Settings.readVibrationEnabled(prefs, res)); in refreshEnablingsOfKeypressSoundAndVibrationSettings()
123 Settings.readKeypressSoundEnabled(prefs, res)); in refreshEnablingsOfKeypressSoundAndVibrationSettings()
132 final SharedPreferences prefs = getSharedPreferences(); in setupKeypressVibrationDurationSettings() local
[all …]
DDebugSettingsFragment.java127 public void onSharedPreferenceChanged(final SharedPreferences prefs, final String key) { in onSharedPreferenceChanged() argument
129 mDebugMode.setChecked(prefs.getBoolean(DebugSettings.PREF_DEBUG_MODE, false)); in onSharedPreferenceChanged()
154 final SharedPreferences prefs = getSharedPreferences(); in setupKeyPreviewAnimationScale() local
173 prefs.edit().putFloat(key, getValueFromPercentage(value)).apply(); in setupKeyPreviewAnimationScale()
178 prefs.edit().remove(key).apply(); in setupKeyPreviewAnimationScale()
184 Settings.readKeyPreviewAnimationScale(prefs, key, defaultValue)); in setupKeyPreviewAnimationScale()
206 final SharedPreferences prefs = getSharedPreferences(); in setupKeyPreviewAnimationDuration() local
215 prefs.edit().putInt(key, value).apply(); in setupKeyPreviewAnimationDuration()
220 prefs.edit().remove(key).apply(); in setupKeyPreviewAnimationDuration()
225 return Settings.readKeyPreviewAnimationDuration(prefs, key, defaultValue); in setupKeyPreviewAnimationDuration()
[all …]
/packages/apps/Messaging/src/com/android/messaging/util/
DBuglePrefsImpl.java45 final SharedPreferences prefs = mContext.getSharedPreferences( in getInt() local
47 return prefs.getInt(key, defaultValue); in getInt()
53 final SharedPreferences prefs = mContext.getSharedPreferences( in getLong() local
55 return prefs.getLong(key, defaultValue); in getLong()
61 final SharedPreferences prefs = mContext.getSharedPreferences( in getBoolean() local
63 return prefs.getBoolean(key, defaultValue); in getBoolean()
69 final SharedPreferences prefs = mContext.getSharedPreferences( in getString() local
71 return prefs.getString(key, defaultValue); in getString()
83 final SharedPreferences prefs = mContext.getSharedPreferences( in putInt() local
85 final SharedPreferences.Editor editor = prefs.edit(); in putInt()
[all …]
/packages/apps/MusicFX/src/com/android/musicfx/
DControlPanelEffect.java159 final SharedPreferences prefs = context.getSharedPreferences(packageName, in initEffectsPreferences() local
161 final SharedPreferences.Editor editor = prefs.edit(); in initEffectsPreferences()
167 final boolean isGlobalEnabled = prefs.getBoolean(Key.global_enabled.toString(), in initEffectsPreferences()
173 final boolean isVIEnabled = prefs.getBoolean(Key.virt_enabled.toString(), in initEffectsPreferences()
176 final int vIStrength = prefs.getInt(Key.virt_strength.toString(), in initEffectsPreferences()
199 final boolean isBBEnabled = prefs.getBoolean(Key.bb_enabled.toString(), in initEffectsPreferences()
201 final int bBStrength = prefs.getInt(Key.bb_strength.toString(), in initEffectsPreferences()
259 mEQPresetNames[preset] = prefs.getString( in initEffectsPreferences()
279 final short eQPreset = (short) prefs.getInt(Key.eq_current_preset.toString(), in initEffectsPreferences()
293 bandLevel[band] = (short) prefs.getInt( in initEffectsPreferences()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/usb/
DUsbDetailsFunctionsControllerTest.java112 List<RadioButtonPreference> prefs = getRadioPreferences(); in displayRefresh_allAllowed_shouldCreatePrefs() local
115 for (RadioButtonPreference pref : prefs) { in displayRefresh_allAllowed_shouldCreatePrefs()
138 List<RadioButtonPreference> prefs = getRadioPreferences(); in displayRefresh_onlyMidiAllowed_shouldCreateOnlyMidiPref() local
139 assertThat(prefs.size()).isEqualTo(1); in displayRefresh_onlyMidiAllowed_shouldCreateOnlyMidiPref()
140 assertThat(prefs.get(0).getKey()) in displayRefresh_onlyMidiAllowed_shouldCreateOnlyMidiPref()
150 List<RadioButtonPreference> prefs = getRadioPreferences(); in displayRefresh_mtpEnabled_shouldCheckSwitches() local
152 assertThat(prefs.get(0).getKey()) in displayRefresh_mtpEnabled_shouldCheckSwitches()
154 assertThat(prefs.get(0).isChecked()).isTrue(); in displayRefresh_mtpEnabled_shouldCheckSwitches()
164 List<RadioButtonPreference> prefs = getRadioPreferences(); in onClickMtp_noneEnabled_shouldEnableMtp() local
165 prefs.get(0).performClick(); in onClickMtp_noneEnabled_shouldEnableMtp()
[all …]
/packages/services/Telecomm/src/com/android/server/telecom/
DQuickResponseUtils.java64 final SharedPreferences prefs = context.getSharedPreferences( in maybeMigrateLegacyQuickResponses() local
68 final boolean responsesExist = prefs.contains(KEY_CANNED_RESPONSE_PREF_1) in maybeMigrateLegacyQuickResponses()
69 || prefs.contains(KEY_CANNED_RESPONSE_PREF_2) in maybeMigrateLegacyQuickResponses()
70 || prefs.contains(KEY_CANNED_RESPONSE_PREF_3) in maybeMigrateLegacyQuickResponses()
71 || prefs.contains(KEY_CANNED_RESPONSE_PREF_4); in maybeMigrateLegacyQuickResponses()
109 final SharedPreferences.Editor editor = prefs.edit(); in maybeMigrateLegacyQuickResponses()
129 public static void maybeResetQuickResponses(Context context, SharedPreferences prefs) { in maybeResetQuickResponses() argument
133 String currentValue1 = prefs.getString(QuickResponseUtils.KEY_CANNED_RESPONSE_PREF_1, ""); in maybeResetQuickResponses()
135 prefs.edit().remove(QuickResponseUtils.KEY_CANNED_RESPONSE_PREF_1).apply(); in maybeResetQuickResponses()
141 String currentValue2 = prefs.getString(QuickResponseUtils.KEY_CANNED_RESPONSE_PREF_2, ""); in maybeResetQuickResponses()
[all …]
/packages/apps/Traceur/src/com/google/android/traceur/
DReceiver.java73 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context); in onReceive() local
83prefs.edit().putBoolean(context.getString(R.string.pref_key_tracing_on), false).commit(); in onReceive()
99 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context); in updateTracing() local
101 prefs.getBoolean(context.getString(R.string.pref_key_tracing_on), false); in updateTracing()
108 Set<String> activeAvailableTags = getActiveTags(context, prefs, true); in updateTracing()
109 Set<String> activeTags = getActiveTags(context, prefs, false); in updateTracing()
112 postCategoryNotification(context, prefs); in updateTracing()
116 prefs.getString(context.getString(R.string.pref_key_buffer_size), in updateTracing()
119 … boolean appTracing = prefs.getBoolean(context.getString(R.string.pref_key_apps), true); in updateTracing()
120 … boolean longTrace = prefs.getBoolean(context.getString(R.string.pref_key_long_traces), true); in updateTracing()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/
DKeyboardTheme.java115 static KeyboardTheme getDefaultKeyboardTheme(final SharedPreferences prefs, in getDefaultKeyboardTheme() argument
117 final String klpThemeIdString = prefs.getString(KLP_KEYBOARD_THEME_KEY, null); in getDefaultKeyboardTheme()
134 prefs.edit().remove(KLP_KEYBOARD_THEME_KEY).apply(); in getDefaultKeyboardTheme()
150 public static void saveKeyboardThemeId(final int themeId, final SharedPreferences prefs) { in saveKeyboardThemeId() argument
151 saveKeyboardThemeId(themeId, prefs, BuildCompatUtils.EFFECTIVE_SDK_INT); in saveKeyboardThemeId()
163 static void saveKeyboardThemeId(final int themeId, final SharedPreferences prefs, in saveKeyboardThemeId() argument
166 prefs.edit().putString(prefKey, Integer.toString(themeId)).apply(); in saveKeyboardThemeId()
170 final SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context); in getKeyboardTheme() local
172 return getKeyboardTheme(prefs, BuildCompatUtils.EFFECTIVE_SDK_INT, availableThemeArray); in getKeyboardTheme()
195 static KeyboardTheme getKeyboardTheme(final SharedPreferences prefs, final int sdkVersion, in getKeyboardTheme() argument
[all …]
/packages/apps/Email/provider_src/com/android/email/
DDebugUtils.java18 final Preferences prefs = Preferences.getPreferences(context); in init() local
19 DEBUG = prefs.getEnableDebugLogging(); in init()
20 DEBUG_EXCHANGE = prefs.getEnableExchangeLogging(); in init()
21 DEBUG_FILE = prefs.getEnableExchangeFileLogging(); in init()
25 enableStrictMode(prefs.getEnableStrictMode()); in init()
32 Preferences prefs = Preferences.getPreferences(context); in updateLoggingFlags() local
33 int debugLogging = prefs.getEnableDebugLogging() ? EmailServiceProxy.DEBUG_BIT : 0; in updateLoggingFlags()
35 prefs.getEnableExchangeLogging() ? EmailServiceProxy.DEBUG_EXCHANGE_BIT: 0; in updateLoggingFlags()
37 prefs.getEnableExchangeFileLogging() ? EmailServiceProxy.DEBUG_FILE_BIT : 0; in updateLoggingFlags()
39 prefs.getEnableStrictMode() ? EmailServiceProxy.DEBUG_ENABLE_STRICT_MODE : 0; in updateLoggingFlags()
/packages/apps/Calendar/src/com/android/calendar/
DUtils.java219 SharedPreferences prefs = GeneralPreferences.getSharedPreferences(activity); in getViewTypeFromIntentAndSharedPref() local
227 return prefs.getInt(GeneralPreferences.KEY_DETAILED_VIEW, in getViewTypeFromIntentAndSharedPref()
236 return prefs.getInt( in getViewTypeFromIntentAndSharedPref()
301 public static boolean getDefaultVibrate(Context context, SharedPreferences prefs) { in getDefaultVibrate() argument
303 if (prefs.contains(KEY_ALERTS_VIBRATE_WHEN)) { in getDefaultVibrate()
308 String vibrateWhen = prefs.getString(KEY_ALERTS_VIBRATE_WHEN, null); in getDefaultVibrate()
311 prefs.edit().remove(KEY_ALERTS_VIBRATE_WHEN).commit(); in getDefaultVibrate()
315 vibrate = prefs.getBoolean(GeneralPreferences.KEY_ALERTS_VIBRATE, in getDefaultVibrate()
322 SharedPreferences prefs = GeneralPreferences.getSharedPreferences(context); in getSharedPreference() local
323 Set<String> ss = prefs.getStringSet(key, null); in getSharedPreference()
[all …]
DCalendarUtils.java126 SharedPreferences prefs = getSharedPreferences((Context)cookie, mPrefsName); in onQueryComplete() local
128 setSharedPreference(prefs, KEY_HOME_TZ_ENABLED, mUseHomeTZ); in onQueryComplete()
129 setSharedPreference(prefs, KEY_HOME_TZ, mHomeTZ); in onQueryComplete()
223 SharedPreferences prefs = getSharedPreferences(context, mPrefsName); in setTimeZone() local
224 setSharedPreference(prefs, KEY_HOME_TZ_ENABLED, mUseHomeTZ); in setTimeZone()
225 setSharedPreference(prefs, KEY_HOME_TZ, mHomeTZ); in setTimeZone()
273 SharedPreferences prefs = getSharedPreferences(context, mPrefsName); in getTimeZone() local
274 mUseHomeTZ = prefs.getBoolean(KEY_HOME_TZ_ENABLED, false); in getTimeZone()
275 mHomeTZ = prefs.getString(KEY_HOME_TZ, Time.getCurrentTimezone()); in getTimeZone()
330 public static void setSharedPreference(SharedPreferences prefs, String key, String value) { in setSharedPreference() argument
[all …]
/packages/services/Telephony/src/com/android/phone/settings/
DVoicemailProviderSettingsUtil.java55 SharedPreferences prefs = getPrefs(context); in load() local
57 String vmNumberSetting = prefs.getString(key + VM_NUMBER_TAG, null); in load()
66 int fwdLen = prefs.getInt(fwdKey + FWD_SETTINGS_LENGTH_TAG, 0); in load()
72 cfi[i].status = prefs.getInt(settingKey + FWD_SETTING_STATUS, 0); in load()
73 cfi[i].reason = prefs.getInt( in load()
78 cfi[i].number = prefs.getString(settingKey + FWD_SETTING_NUMBER, ""); in load()
79 cfi[i].timeSeconds = prefs.getInt(settingKey + FWD_SETTING_TIME, 20); in load()
103 SharedPreferences prefs = getPrefs(context); in save() local
104 SharedPreferences.Editor editor = prefs.edit(); in save()
136 SharedPreferences prefs = getPrefs(context); in delete() local
[all …]
/packages/apps/Car/tests/TestMediaApp/src/com/android/car/media/testmediaapp/prefs/
DTmaPrefsFragment.java17 package com.android.car.media.testmediaapp.prefs;
27 import com.android.car.media.testmediaapp.prefs.TmaEnumPrefs.TmaAccountType;
28 import com.android.car.media.testmediaapp.prefs.TmaEnumPrefs.TmaBrowseNodeType;
29 import com.android.car.media.testmediaapp.prefs.TmaEnumPrefs.TmaNodeReplyDelay;
30 import com.android.car.media.testmediaapp.prefs.TmaPrefs.PrefEntry;
38 TmaPrefs prefs = TmaPrefs.getInstance(context); in onCreatePreferences() local
41 screen.addPreference(createEnumPref(context, "Account Type", prefs.mAccountType, in onCreatePreferences()
43 screen.addPreference(createEnumPref(context, "Root node type", prefs.mRootNodeType, in onCreatePreferences()
45 screen.addPreference(createEnumPref(context, "Root reply delay", prefs.mRootReplyDelay, in onCreatePreferences()
/packages/apps/Dialer/java/com/android/voicemail/impl/settings/
DVisualVoicemailSettingsUtil.java139 VisualVoicemailPreferences prefs = new VisualVoicemailPreferences(context, phoneAccount); in isEnabled() local
140 if (prefs.contains(IS_ENABLED_KEY)) { in isEnabled()
143 return prefs.getBoolean(IS_ENABLED_KEY, false); in isEnabled()
151 VisualVoicemailPreferences prefs = new VisualVoicemailPreferences(context, phoneAccount); in isArchiveEnabled() local
152 return prefs.getBoolean(ARCHIVE_ENABLED_KEY, false); in isArchiveEnabled()
159 VisualVoicemailPreferences prefs = new VisualVoicemailPreferences(context, phoneAccount); in isVoicemailTranscriptionEnabled() local
160 return prefs.getBoolean(TRANSCRIBE_VOICEMAILS_KEY, false); in isVoicemailTranscriptionEnabled()
167 VisualVoicemailPreferences prefs = new VisualVoicemailPreferences(context, phoneAccount); in isVoicemailDonationEnabled() local
168 return prefs.getBoolean(DONATE_VOICEMAILS_KEY, false); in isVoicemailDonationEnabled()
181 VisualVoicemailPreferences prefs = new VisualVoicemailPreferences(context, phoneAccount); in isEnabledUserSet() local
[all …]
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastConfigService.java125 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this); in setCellBroadcastOnSub() local
131 boolean enableAlertsMasterToggle = enableForSub && prefs.getBoolean( in setCellBroadcastOnSub()
140 boolean enableCmasExtremeAlerts = enableAlertsMasterToggle && prefs.getBoolean( in setCellBroadcastOnSub()
143 boolean enableCmasSevereAlerts = enableAlertsMasterToggle && prefs.getBoolean( in setCellBroadcastOnSub()
146 boolean enableCmasAmberAlerts = enableAlertsMasterToggle && prefs.getBoolean( in setCellBroadcastOnSub()
150 && prefs.getBoolean(CellBroadcastSettings.KEY_ENABLE_TEST_ALERTS, false); in setCellBroadcastOnSub()
154 && prefs.getBoolean(CellBroadcastSettings.KEY_ENABLE_AREA_UPDATE_INFO_ALERTS, in setCellBroadcastOnSub()
158 && prefs.getBoolean(CellBroadcastSettings.KEY_ENABLE_PUBLIC_SAFETY_MESSAGES, in setCellBroadcastOnSub()
161 && prefs.getBoolean(CellBroadcastSettings.KEY_ENABLE_STATE_LOCAL_TEST_ALERTS, in setCellBroadcastOnSub()
164 boolean enableEmergencyAlerts = enableAlertsMasterToggle && prefs.getBoolean( in setCellBroadcastOnSub()
/packages/services/Car/tests/GarageModeTestApp/src/com/google/android/car/garagemode/testapp/
DWatchdog.java47 public Watchdog(Context context, TextView view, SharedPreferences prefs) { in Watchdog() argument
49 mSharedPrefs = prefs; in Watchdog()
50 mEvents = getEventsFromSharedPrefs(prefs); in Watchdog()
88 private LinkedList<String> getEventsFromSharedPrefs(SharedPreferences prefs) { in getEventsFromSharedPrefs() argument
90 String file = prefs.getString(PREFS_EVENTS_LIST, ""); in getEventsFromSharedPrefs()
97 private void saveEventsToSharedPrefs(SharedPreferences prefs, LinkedList<String> list) { in saveEventsToSharedPrefs() argument
106 SharedPreferences.Editor editor = prefs.edit(); in saveEventsToSharedPrefs()
/packages/apps/Dialer/java/com/android/contacts/common/list/
DContactListFilter.java97 public static void storeToPreferences(SharedPreferences prefs, ContactListFilter filter) { in storeToPreferences() argument
101 prefs in storeToPreferences()
114 public static ContactListFilter restoreDefaultPreferences(SharedPreferences prefs) { in restoreDefaultPreferences() argument
115 ContactListFilter filter = restoreFromPreferences(prefs); in restoreDefaultPreferences()
127 private static ContactListFilter restoreFromPreferences(SharedPreferences prefs) { in restoreFromPreferences() argument
128 int filterType = prefs.getInt(KEY_FILTER_TYPE, FILTER_TYPE_DEFAULT); in restoreFromPreferences()
133 String accountName = prefs.getString(KEY_ACCOUNT_NAME, null); in restoreFromPreferences()
134 String accountType = prefs.getString(KEY_ACCOUNT_TYPE, null); in restoreFromPreferences()
135 String dataSet = prefs.getString(KEY_DATA_SET, null); in restoreFromPreferences()
/packages/apps/Email/provider_src/com/android/email/provider/
DWidgetProvider.java49 final SharedPreferences prefs = context.getSharedPreferences(LEGACY_PREFS_NAME, 0); in onDeleted() local
50 final SharedPreferences.Editor editor = prefs.edit(); in onDeleted()
89 final SharedPreferences prefs = context.getSharedPreferences(LEGACY_PREFS_NAME, 0); in migrateLegacyWidgetInformation() local
90 final SharedPreferences.Editor editor = prefs.edit(); in migrateLegacyWidgetInformation()
176 final SharedPreferences prefs = context.getSharedPreferences(LEGACY_PREFS_NAME, 0); in loadAccountIdPref() local
177 long accountId = prefs.getLong(LEGACY_ACCOUNT_ID_PREFIX + appWidgetId, Account.NO_ACCOUNT); in loadAccountIdPref()
187 final SharedPreferences prefs = context.getSharedPreferences(LEGACY_PREFS_NAME, 0); in loadMailboxIdPref() local
188 long mailboxId = prefs.getLong(LEGACY_MAILBOX_ID_PREFIX + appWidgetId, Mailbox.NO_MAILBOX); in loadMailboxIdPref()
/packages/apps/DocumentsUI/src/com/android/documentsui/
DInjector.java35 import com.android.documentsui.prefs.ScopedPreferences;
53 public final ScopedPreferences prefs; field in Injector
86 ScopedPreferences prefs, in Injector() argument
91 this(features, config, prefs, messages, dialogs, fileTypeLookup, in Injector()
99 ScopedPreferences prefs, in Injector() argument
108 this.prefs = prefs; in Injector()

12345678910