/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/ |
D | Settings.java | 156 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 …]
|
D | SettingsValues.java | 122 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 …]
|
D | AdvancedSettingsFragment.java | 57 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 …]
|
D | DebugSettingsFragment.java | 127 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/DeskClock/src/com/android/deskclock/timer/ |
D | TimerObj.java | 85 public void writeToSharedPref(SharedPreferences prefs) { in writeToSharedPref() argument 88 final Set<String> timerIds = getTimerIds(prefs); in writeToSharedPref() 91 final SharedPreferences.Editor editor = prefs.edit() in writeToSharedPref() 106 public void readFromSharedPref(SharedPreferences prefs) { in readFromSharedPref() argument 109 mStartTime = prefs.getLong(PREF_START_TIME + id, 0); in readFromSharedPref() 110 mTimeLeft = prefs.getLong(PREF_TIME_LEFT + id, 0); in readFromSharedPref() 111 mOriginalLength = prefs.getLong(PREF_ORIGINAL_TIME + id, 0); in readFromSharedPref() 112 mSetupLength = prefs.getLong(PREF_SETUP_TIME + id, 0); in readFromSharedPref() 113 mState = prefs.getInt(PREF_STATE + id, 0); in readFromSharedPref() 114 mPriorState = prefs.getInt(PREF_PRIOR_STATE + id, 0); in readFromSharedPref() [all …]
|
/packages/apps/MusicFX/src/com/android/musicfx/ |
D | ControlPanelEffect.java | 159 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/services/Telephony/src/com/android/phone/settings/ |
D | VoicemailNotificationSettingsUtil.java | 49 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(phone.getContext()); in setVibrationEnabled() local 50 SharedPreferences.Editor editor = prefs.edit(); in setVibrationEnabled() 56 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(phone.getContext()); in isVibrationEnabled() local 57 migrateVoicemailVibrationSettingsIfNeeded(phone, prefs); in isVibrationEnabled() 58 return prefs.getBoolean(getVoicemailVibrationSharedPrefsKey(phone), false /* defValue */); in isVibrationEnabled() 62 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(phone.getContext()); in setRingtoneUri() local 65 SharedPreferences.Editor editor = prefs.edit(); in setRingtoneUri() 71 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(phone.getContext()); in getRingtoneUri() local 72 migrateVoicemailRingtoneSettingsIfNeeded(phone, prefs); in getRingtoneUri() 73 String uriString = prefs.getString( in getRingtoneUri() [all …]
|
D | VisualVoicemailSettingsUtil.java | 61 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context); in setVisualVoicemailEnabled() local 62 SharedPreferences.Editor editor = prefs.edit(); in setVisualVoicemailEnabled() 76 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context); in isVisualVoicemailEnabled() local 77 return prefs.getBoolean(getVisualVoicemailSharedPrefsKey(IS_ENABLED_KEY, phoneAccount), in isVisualVoicemailEnabled() 96 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context); in isVisualVoicemailUserSet() local 97 return prefs.getBoolean( in isVisualVoicemailUserSet() 104 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context); in setVisualVoicemailCredentialsFromStatusMessage() local 105 SharedPreferences.Editor editor = prefs.edit(); in setVisualVoicemailCredentialsFromStatusMessage() 124 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context); in getVisualVoicemailCredentials() local 125 return prefs.getString(getVisualVoicemailSharedPrefsKey(key, phoneAccount), null); in getVisualVoicemailCredentials() [all …]
|
D | VoicemailProviderSettingsUtil.java | 55 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/DeskClock/src/com/android/deskclock/stopwatch/ |
D | StopwatchService.java | 71 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this) ; in onStartCommand() local 72 prefs.edit().putBoolean(Stopwatches.NOTIF_CLOCK_RUNNING, true).apply(); in onStartCommand() 93 prefs = PreferenceManager.getDefaultSharedPreferences(this); in onStartCommand() 94 prefs.edit().putBoolean(Stopwatches.NOTIF_CLOCK_RUNNING, false).apply(); in onStartCommand() 278 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences( in saveNotification() local 280 SharedPreferences.Editor editor = prefs.edit(); in saveNotification() 296 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences( in showSavedNotification() local 298 long clockBaseTime = prefs.getLong(Stopwatches.NOTIF_CLOCK_BASE, -1); in showSavedNotification() 299 long clockElapsedTime = prefs.getLong(Stopwatches.NOTIF_CLOCK_ELAPSED, -1); in showSavedNotification() 300 boolean clockRunning = prefs.getBoolean(Stopwatches.NOTIF_CLOCK_RUNNING, false); in showSavedNotification() [all …]
|
D | StopwatchFragment.java | 452 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getActivity()); in onResume() local 453 prefs.registerOnSharedPreferenceChangeListener(this); in onResume() 454 readFromSharedPref(prefs); in onResume() 455 mTime.readFromSharedPref(prefs, "sw"); in onResume() 492 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getActivity()); in onPause() local 493 prefs.unregisterOnSharedPreferenceChangeListener(this); in onPause() 494 writeToSharedPref(prefs); in onPause() 495 mTime.writeToSharedPref(prefs, "sw"); in onPause() 545 SharedPreferences prefs = in doReset() local 547 Utils.clearSwSharedPref(prefs); in doReset() [all …]
|
/packages/apps/Messaging/src/com/android/messaging/util/ |
D | BuglePrefsImpl.java | 45 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/Calendar/src/com/android/calendar/ |
D | Utils.java | 221 SharedPreferences prefs = GeneralPreferences.getSharedPreferences(activity); in getViewTypeFromIntentAndSharedPref() local 229 return prefs.getInt(GeneralPreferences.KEY_DETAILED_VIEW, in getViewTypeFromIntentAndSharedPref() 238 return prefs.getInt( in getViewTypeFromIntentAndSharedPref() 310 public static boolean getDefaultVibrate(Context context, SharedPreferences prefs) { in getDefaultVibrate() argument 312 if (prefs.contains(KEY_ALERTS_VIBRATE_WHEN)) { in getDefaultVibrate() 317 String vibrateWhen = prefs.getString(KEY_ALERTS_VIBRATE_WHEN, null); in getDefaultVibrate() 320 prefs.edit().remove(KEY_ALERTS_VIBRATE_WHEN).commit(); in getDefaultVibrate() 324 vibrate = prefs.getBoolean(GeneralPreferences.KEY_ALERTS_VIBRATE, in getDefaultVibrate() 331 SharedPreferences prefs = GeneralPreferences.getSharedPreferences(context); in getSharedPreference() local 332 Set<String> ss = prefs.getStringSet(key, null); in getSharedPreference() [all …]
|
D | CalendarUtils.java | 126 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/apps/FMRadio/src/com/android/fmradio/ |
D | FmUtils.java | 213 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context); in getLastSearchedLocation() local 215 String strLatitude = prefs.getString(FM_LOCATION_LATITUDE, "0.0"); in getLastSearchedLocation() 216 String strLongitude = prefs.getString(FM_LOCATION_LONGITUDE, "0.0"); in getLastSearchedLocation() 226 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context); in setLastSearchedLocation() local 227 SharedPreferences.Editor editor = prefs.edit(); in setLastSearchedLocation() 239 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context); in isFirstTimePlayFm() local 240 boolean isFirstTime = prefs.getBoolean(FM_IS_FIRST_TIME_PLAY, true); in isFirstTimePlayFm() 249 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context); in setIsFirstTimePlayFm() local 250 SharedPreferences.Editor editor = prefs.edit(); in setIsFirstTimePlayFm() 259 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context); in isFirstEnterStationList() local [all …]
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/ |
D | KeyboardTheme.java | 115 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/ |
D | DebugUtils.java | 18 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/DeskClock/src/com/android/deskclock/ |
D | CircleTimerView.java | 224 public void writeToSharedPref(SharedPreferences prefs, String key) { in writeToSharedPref() argument 225 SharedPreferences.Editor editor = prefs.edit(); in writeToSharedPref() 236 public void readFromSharedPref(SharedPreferences prefs, String key) { in readFromSharedPref() argument 237 mPaused = prefs.getBoolean(key + PREF_CTV_PAUSED, false); in readFromSharedPref() 238 mIntervalTime = prefs.getLong(key + PREF_CTV_INTERVAL, 0); in readFromSharedPref() 239 mIntervalStartTime = prefs.getLong(key + PREF_CTV_INTERVAL_START, -1); in readFromSharedPref() 240 mCurrentIntervalTime = prefs.getLong(key + PREF_CTV_CURRENT_INTERVAL, 0); in readFromSharedPref() 241 mAccumulatedTime = prefs.getLong(key + PREF_CTV_ACCUM_TIME, 0); in readFromSharedPref() 242 mMarkerTime = prefs.getLong(key + PREF_CTV_MARKER_TIME, -1); in readFromSharedPref() 243 mTimerMode = prefs.getBoolean(key + PREF_CTV_TIMER_MODE, false); in readFromSharedPref() [all …]
|
D | HandleDeskClockApiCalls.java | 133 final SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(mAppContext); in handleStopwatchIntent() local 135 prefs.getBoolean(Stopwatches.NOTIF_CLOCK_RUNNING, false); in handleStopwatchIntent() 233 final SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(mContext); in doInBackground() local 234 TimerObj.getTimersFromSharedPrefs(prefs, timers); in doInBackground() 255 timer.deleteFromSharedPref(prefs); in doInBackground() 272 timer.writeToSharedPref(prefs); in doInBackground() 294 timer.writeToSharedPref(prefs); in doInBackground() 319 timer.writeToSharedPref(prefs); in doInBackground() 420 final SharedPreferences prefs = in doInBackground() local 447 Cities.readCitiesFromSharedPrefs(prefs); in doInBackground() [all …]
|
D | AlarmInitReceiver.java | 64 final SharedPreferences prefs = in onReceive() 67 TimerObj.resetTimersInSharedPrefs(prefs); in onReceive() 68 Utils.clearSwSharedPref(prefs); in onReceive() 70 if (!prefs.getBoolean(PREF_VOLUME_DEF_DONE, false)) { in onReceive() 73 switchVolumeButtonDefault(prefs); in onReceive() 91 private void switchVolumeButtonDefault(SharedPreferences prefs) { in switchVolumeButtonDefault() argument 92 SharedPreferences.Editor editor = prefs.edit(); in switchVolumeButtonDefault()
|
/packages/apps/Settings/src/com/android/settings/bluetooth/ |
D | DockService.java | 213 final SharedPreferences prefs = getPrefs(); in onStartCommand() local 217 int retryCount = prefs.getInt(KEY_CONNECT_RETRY_COUNT, 0); in onStartCommand() 219 prefs.edit().putInt(KEY_CONNECT_RETRY_COUNT, retryCount + 1).apply(); in onStartCommand() 227 int retryCount = prefs.getInt(KEY_CONNECT_RETRY_COUNT, 0); in onStartCommand() 229 prefs.edit().putInt(KEY_CONNECT_RETRY_COUNT, retryCount + 1).apply(); in onStartCommand() 244 prefs.edit().remove(KEY_CONNECT_RETRY_COUNT).apply(); in onStartCommand() 315 final SharedPreferences prefs = getPrefs(); in msgTypeDisableBluetooth() local 317 prefs.edit().remove(KEY_DISABLE_BT_WHEN_UNDOCKED).apply(); in msgTypeDisableBluetooth() 321 prefs.edit().putBoolean(KEY_DISABLE_BT, true).apply(); in msgTypeDisableBluetooth() 342 final SharedPreferences prefs = getPrefs(); in msgTypeUndockedPermanent() local [all …]
|
/packages/apps/Calendar/tests/src/com/android/calendar/alerts/ |
D | AlertServiceTest.java | 395 MockSharedPreferences prefs = new MockSharedPreferences(); in testGenerateAlerts_none() local 402 AlertService.generateAlerts(mContext, ntm, new MockAlarmManager(mContext), prefs, in testGenerateAlerts_none() 410 MockSharedPreferences prefs = new MockSharedPreferences(); in testGenerateAlerts_single() local 422 … AlertService.generateAlerts(mContext, ntm, alarmMgr, prefs, at.getAlertCursor(), currentTime, in testGenerateAlerts_single() 431 … AlertService.generateAlerts(mContext, ntm, alarmMgr, prefs, at.getAlertCursor(), currentTime, in testGenerateAlerts_single() 439 … AlertService.generateAlerts(mContext, ntm, alarmMgr, prefs, at.getAlertCursor(), currentTime, in testGenerateAlerts_single() 447 MockSharedPreferences prefs = new MockSharedPreferences(); in testGenerateAlerts_multiple() local 491 AlertService.generateAlerts(mContext, ntm, alarmMgr, prefs, at.getAlertCursor(), in testGenerateAlerts_multiple() 504 AlertService.generateAlerts(mContext, ntm, alarmMgr, prefs, at.getAlertCursor(), in testGenerateAlerts_multiple() 513 AlertService.generateAlerts(mContext, ntm, alarmMgr, prefs, at.getAlertCursor(), in testGenerateAlerts_multiple() [all …]
|
/packages/apps/DeskClock/src/com/android/deskclock/worldclock/ |
D | Cities.java | 32 SharedPreferences prefs, HashMap<String, CityObj> cities) { in saveCitiesToSharedPrefs() argument 33 SharedPreferences.Editor editor = prefs.edit(); in saveCitiesToSharedPrefs() 46 public static HashMap<String, CityObj> readCitiesFromSharedPrefs(SharedPreferences prefs) { in readCitiesFromSharedPrefs() argument 47 int size = prefs.getInt(NUMBER_OF_CITIES, -1); in readCitiesFromSharedPrefs() 51 CityObj o = new CityObj(prefs, i); in readCitiesFromSharedPrefs() 60 private static void dumpCities(SharedPreferences prefs, String title) { in dumpCities() argument 61 int size = prefs.getInt(NUMBER_OF_CITIES, -1); in dumpCities() 67 CityObj o = new CityObj(prefs, i); in dumpCities()
|
/packages/apps/Calendar/src/com/android/calendar/alerts/ |
D | AlertService.java | 270 SharedPreferences prefs = GeneralPreferences.getSharedPreferences(context); in updateAlertNotification() local 276 if (!prefs.getBoolean(GeneralPreferences.KEY_ALERTS, true)) { in updateAlertNotification() 303 return generateAlerts(context, nm, AlertUtils.createAlarmManager(context), prefs, in updateAlertNotification() 308 AlarmManagerInterface alarmMgr, SharedPreferences prefs, Cursor alertCursor, in generateAlerts() argument 329 NotificationPrefs notificationPrefs = new NotificationPrefs(context, prefs, in generateAlerts() 863 Context context, boolean highPriority, NotificationPrefs prefs, in postNotification() argument 873 info.endMillis, info.eventId, notificationId, prefs.getDoPopup(), priorityVal); in postNotification() 878 quietUpdate = prefs.quietUpdate; in postNotification() 882 ringtone = prefs.getRingtoneAndSilence(); in postNotification() 885 prefs.getDefaultVibrate(), ringtone, in postNotification() [all …]
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/ |
D | ContactListFilter.java | 163 public static void storeToPreferences(SharedPreferences prefs, ContactListFilter filter) { in storeToPreferences() argument 167 prefs.edit() in storeToPreferences() 179 public static ContactListFilter restoreDefaultPreferences(SharedPreferences prefs) { in restoreDefaultPreferences() argument 180 ContactListFilter filter = restoreFromPreferences(prefs); in restoreDefaultPreferences() 193 private static ContactListFilter restoreFromPreferences(SharedPreferences prefs) { in restoreFromPreferences() argument 194 int filterType = prefs.getInt(KEY_FILTER_TYPE, FILTER_TYPE_DEFAULT); in restoreFromPreferences() 199 String accountName = prefs.getString(KEY_ACCOUNT_NAME, null); in restoreFromPreferences() 200 String accountType = prefs.getString(KEY_ACCOUNT_TYPE, null); in restoreFromPreferences() 201 String dataSet = prefs.getString(KEY_DATA_SET, null); in restoreFromPreferences()
|