/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/ |
D | Settings.java | 137 public void onSharedPreferenceChanged(final SharedPreferences prefs, final String key) { in onSharedPreferenceChanged() argument 155 final SharedPreferences prefs = mPrefs; in loadSettings() local 159 return new SettingsValues(prefs, locale, res, inputAttributes); in loadSettings() 190 public static boolean readKeypressSoundEnabled(final SharedPreferences prefs, in readKeypressSoundEnabled() argument 192 return prefs.getBoolean(Settings.PREF_SOUND_ON, in readKeypressSoundEnabled() 196 public static boolean readVibrationEnabled(final SharedPreferences prefs, in readVibrationEnabled() argument 199 return hasVibrator && prefs.getBoolean(PREF_VIBRATE_ON, in readVibrationEnabled() 210 public static boolean readBlockPotentiallyOffensive(final SharedPreferences prefs, in readBlockPotentiallyOffensive() argument 212 return prefs.getBoolean(Settings.PREF_BLOCK_POTENTIALLY_OFFENSIVE, in readBlockPotentiallyOffensive() 220 public static boolean readGestureInputEnabled(final SharedPreferences prefs, in readGestureInputEnabled() argument [all …]
|
D | SettingsValues.java | 107 public SettingsValues(final SharedPreferences prefs, final Locale locale, final Resources res, in SettingsValues() argument 137 mAutoCap = prefs.getBoolean(Settings.PREF_AUTO_CAP, true); in SettingsValues() 138 mVibrateOn = Settings.readVibrationEnabled(prefs, res); in SettingsValues() 139 mSoundOn = Settings.readKeypressSoundEnabled(prefs, res); in SettingsValues() 140 mKeyPreviewPopupOn = Settings.readKeyPreviewPopupEnabled(prefs, res); in SettingsValues() 141 mSlidingKeyInputPreviewEnabled = prefs.getBoolean( in SettingsValues() 143 mShowsVoiceInputKey = needsToShowVoiceInputKey(prefs, res); in SettingsValues() 144 final String autoCorrectionThresholdRawValue = prefs.getString( in SettingsValues() 147 mIncludesOtherImesInLanguageSwitchList = prefs.getBoolean( in SettingsValues() 149 mShowsLanguageSwitchKey = Settings.readShowsLanguageSwitchKey(prefs); in SettingsValues() [all …]
|
D | SettingsFragment.java | 93 addPreferencesFromResource(R.xml.prefs); in onCreate() 114 final SharedPreferences prefs = getPreferenceManager().getSharedPreferences(); in onCreate() local 115 prefs.registerOnSharedPreferenceChangeListener(this); in onCreate() 129 if (Settings.isInternal(prefs)) { in onCreate() 200 Settings.readKeyPreviewPopupEnabled(prefs, res)); in onCreate() 208 Settings.readShowsLanguageSwitchKey(prefs)); in onCreate() 237 setupKeyLongpressTimeoutSettings(prefs, res); in onCreate() 238 setupKeypressVibrationDurationSettings(prefs, res); in onCreate() 239 setupKeypressSoundVolumeSettings(prefs, res); in onCreate() 240 refreshEnablingsOfKeypressSoundAndVibrationSettings(prefs, res); in onCreate() [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() 257 mEQPresetNames[preset] = prefs.getString( in initEffectsPreferences() 280 final short eQPreset = (short) prefs.getInt(Key.eq_current_preset.toString(), in initEffectsPreferences() 294 bandLevel[band] = (short) prefs.getInt( in initEffectsPreferences() [all …]
|
/packages/apps/DeskClock/src/com/android/deskclock/timer/ |
D | TimerObj.java | 83 public void writeToSharedPref(SharedPreferences prefs) { in writeToSharedPref() argument 84 SharedPreferences.Editor editor = prefs.edit(); in writeToSharedPref() 98 Set <String> timersList = prefs.getStringSet(PREF_TIMERS_LIST, new HashSet<String>()); in writeToSharedPref() 109 public void readFromSharedPref(SharedPreferences prefs) { in readFromSharedPref() argument 112 mStartTime = prefs.getLong(key, 0); in readFromSharedPref() 114 mTimeLeft = prefs.getLong(key, 0); in readFromSharedPref() 116 mOriginalLength = prefs.getLong(key, 0); in readFromSharedPref() 118 mSetupLength = prefs.getLong(key, 0); in readFromSharedPref() 120 mState = prefs.getInt(key, 0); in readFromSharedPref() 122 mLabel = prefs.getString(key, ""); in readFromSharedPref() [all …]
|
D | TimerReceiver.java | 63 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context); in onReceive() local 64 TimerObj.getTimersFromSharedPrefs(prefs, mTimers); in onReceive() 101 t.writeToSharedPref(prefs); in onReceive() 139 t.writeToSharedPref(prefs); in onReceive() 142 prefs.edit().putBoolean(Timers.FROM_NOTIFICATION, true).apply(); in onReceive() 148 t.deleteFromSharedPref(prefs); in onReceive() 167 t.writeToSharedPref(prefs); in onReceive() 170 prefs.edit().putBoolean(Timers.FROM_NOTIFICATION, true).apply(); in onReceive() 175 if (!prefs.getBoolean(Timers.NOTIF_APP_OPEN, false)) { in onReceive() 238 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context); in showInUseNotification() local [all …]
|
/packages/apps/DeskClock/src/com/android/deskclock/stopwatch/ |
D | StopwatchService.java | 255 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences( in saveNotification() local 257 SharedPreferences.Editor editor = prefs.edit(); in saveNotification() 273 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences( in showSavedNotification() local 275 long clockBaseTime = prefs.getLong(Stopwatches.NOTIF_CLOCK_BASE, -1); in showSavedNotification() 276 long clockElapsedTime = prefs.getLong(Stopwatches.NOTIF_CLOCK_ELAPSED, -1); in showSavedNotification() 277 boolean clockRunning = prefs.getBoolean(Stopwatches.NOTIF_CLOCK_RUNNING, false); in showSavedNotification() 278 int numLaps = prefs.getInt(Stopwatches.PREF_LAP_NUM, -1); in showSavedNotification() 294 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences( in clearSavedNotification() local 296 SharedPreferences.Editor editor = prefs.edit(); in clearSavedNotification() 310 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences( in readFromSharedPrefs() local [all …]
|
D | StopwatchFragment.java | 461 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getActivity()); in onResume() local 462 prefs.registerOnSharedPreferenceChangeListener(this); in onResume() 463 readFromSharedPref(prefs); in onResume() 464 mTime.readFromSharedPref(prefs, "sw"); in onResume() 500 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getActivity()); in onPause() local 501 prefs.unregisterOnSharedPreferenceChangeListener(this); in onPause() 502 writeToSharedPref(prefs); in onPause() 503 mTime.writeToSharedPref(prefs, "sw"); in onPause() 554 SharedPreferences prefs = in doReset() local 556 Utils.clearSwSharedPref(prefs); in doReset() [all …]
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/research/ |
D | ResearchSettings.java | 36 public static String readResearchLoggerUuid(final SharedPreferences prefs) { in readResearchLoggerUuid() argument 37 if (prefs.contains(PREF_RESEARCH_LOGGER_UUID)) { in readResearchLoggerUuid() 38 return prefs.getString(PREF_RESEARCH_LOGGER_UUID, null); in readResearchLoggerUuid() 42 prefs.edit().putString(PREF_RESEARCH_LOGGER_UUID, newUuid).apply(); in readResearchLoggerUuid() 46 public static boolean readResearchLoggerEnabledFlag(final SharedPreferences prefs) { in readResearchLoggerEnabledFlag() argument 47 return prefs.getBoolean(PREF_RESEARCH_LOGGER_ENABLED_FLAG, false); in readResearchLoggerEnabledFlag() 50 public static void writeResearchLoggerEnabledFlag(final SharedPreferences prefs, in writeResearchLoggerEnabledFlag() argument 52 prefs.edit().putBoolean(PREF_RESEARCH_LOGGER_ENABLED_FLAG, isEnabled).apply(); in writeResearchLoggerEnabledFlag() 55 public static boolean readHasSeenSplash(final SharedPreferences prefs) { in readHasSeenSplash() argument 56 return prefs.getBoolean(PREF_RESEARCH_LOGGER_HAS_SEEN_SPLASH, false); in readHasSeenSplash() [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 …]
|
D | GeneralPreferences.java | 191 SharedPreferences prefs = CalendarUtils.getSharedPreferences(activity, in onCreate() local 197 if (!prefs.getBoolean(KEY_HOME_TZ_ENABLED, false)) { in onCreate() 198 mTimeZoneId = prefs.getString(KEY_HOME_TZ, Time.getCurrentTimezone()); in onCreate() 360 private void migrateOldPreferences(SharedPreferences prefs) { in migrateOldPreferences() argument 363 mVibrate.setChecked(Utils.getDefaultVibrate(getActivity(), prefs)); in migrateOldPreferences() local 366 if (!prefs.contains(KEY_ALERTS) && prefs.contains(KEY_ALERTS_TYPE)) { in migrateOldPreferences() 367 String type = prefs.getString(KEY_ALERTS_TYPE, ALERT_TYPE_STATUS_BAR); in migrateOldPreferences() 382 prefs.edit().remove(KEY_ALERTS_TYPE).commit(); in migrateOldPreferences()
|
D | OtherPreferences.java | 95 SharedPreferences prefs = manager.getSharedPreferences(); in onCreate() local 116 int startHour = prefs.getInt(KEY_OTHER_QUIET_HOURS_START_HOUR, in onCreate() 118 int startMinute = prefs.getInt(KEY_OTHER_QUIET_HOURS_START_MINUTE, in onCreate() 127 int endHour = prefs.getInt(KEY_OTHER_QUIET_HOURS_END_HOUR, in onCreate() 129 int endMinute = prefs.getInt(KEY_OTHER_QUIET_HOURS_END_MINUTE, in onCreate() 189 SharedPreferences prefs = getPreferenceManager().getSharedPreferences(); in onTimeSet() local 190 SharedPreferences.Editor editor = prefs.edit(); in onTimeSet()
|
/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 | AlarmInitReceiver.java | 59 SharedPreferences prefs = in onReceive() 62 TimerObj.resetTimersInSharedPrefs(prefs); in onReceive() 63 Utils.clearSwSharedPref(prefs); in onReceive() 65 if (!prefs.getBoolean(PREF_VOLUME_DEF_DONE, false)) { in onReceive() 68 switchVolumeButtonDefault(prefs); in onReceive() 82 private void switchVolumeButtonDefault(SharedPreferences prefs) { in switchVolumeButtonDefault() argument 83 SharedPreferences.Editor editor = prefs.edit(); in switchVolumeButtonDefault()
|
/packages/apps/Settings/src/com/android/settings/bluetooth/ |
D | DockService.java | 205 final SharedPreferences prefs = getPrefs(); in onStartCommand() local 209 int retryCount = prefs.getInt(KEY_CONNECT_RETRY_COUNT, 0); in onStartCommand() 211 prefs.edit().putInt(KEY_CONNECT_RETRY_COUNT, retryCount + 1).apply(); in onStartCommand() 219 int retryCount = prefs.getInt(KEY_CONNECT_RETRY_COUNT, 0); in onStartCommand() 221 prefs.edit().putInt(KEY_CONNECT_RETRY_COUNT, retryCount + 1).apply(); in onStartCommand() 236 prefs.edit().remove(KEY_CONNECT_RETRY_COUNT).apply(); in onStartCommand() 307 final SharedPreferences prefs = getPrefs(); in msgTypeDisableBluetooth() local 309 prefs.edit().remove(KEY_DISABLE_BT_WHEN_UNDOCKED).apply(); in msgTypeDisableBluetooth() 313 prefs.edit().putBoolean(KEY_DISABLE_BT, true).apply(); in msgTypeDisableBluetooth() 334 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 …]
|
D | AlertUtils.java | 249 SharedPreferences prefs = getFiredAlertsTable(context); 250 return prefs.contains(getFiredAlertsKey(eventId, beginTime, alarmTime)); 260 SharedPreferences prefs = getFiredAlertsTable(context); 261 SharedPreferences.Editor editor = prefs.edit(); 272 SharedPreferences prefs = getFiredAlertsTable(context); 276 long lastFlushTimeMs = prefs.getLong(KEY_LAST_FLUSH_TIME_MS, 0); 283 SharedPreferences.Editor editor = prefs.edit(); 285 for (Map.Entry<String, ?> entry : prefs.getAll().entrySet()) {
|
/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()
|
/packages/apps/Email/src/com/android/email2/ui/ |
D | MailActivityEmail.java | 195 Preferences prefs = Preferences.getPreferences(this); in onCreate() local 196 DEBUG = prefs.getEnableDebugLogging(); in onCreate() 197 sDebugInhibitGraphicsAcceleration = prefs.getInhibitGraphicsAcceleration(); in onCreate() 198 enableStrictMode(prefs.getEnableStrictMode()); in onCreate() 216 Preferences prefs = Preferences.getPreferences(context); in updateLoggingFlags() local 217 int debugLogging = prefs.getEnableDebugLogging() ? EmailServiceProxy.DEBUG_BIT : 0; in updateLoggingFlags() 219 prefs.getEnableExchangeLogging() ? EmailServiceProxy.DEBUG_VERBOSE_BIT : 0; in updateLoggingFlags() 221 prefs.getEnableExchangeFileLogging() ? EmailServiceProxy.DEBUG_FILE_BIT : 0; in updateLoggingFlags() 223 prefs.getEnableStrictMode() ? EmailServiceProxy.DEBUG_ENABLE_STRICT_MODE : 0; in updateLoggingFlags()
|
/packages/apps/Email/src/com/android/email/provider/ |
D | WidgetProvider.java | 49 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/Nfc/nxp/src/com/android/nfc/dhimpl/ |
D | NativeNfcManager.java | 111 SharedPreferences prefs = mContext.getSharedPreferences(PREF, Context.MODE_PRIVATE); in checkFirmware() local 112 long prev_fw_modtime = prefs.getLong(PREF_FIRMWARE_MODTIME, FIRMWARE_MODTIME_DEFAULT); in checkFirmware() 125 prefs.edit().putLong(PREF_FIRMWARE_MODTIME, modtime).apply(); in checkFirmware() 138 SharedPreferences prefs = mContext.getSharedPreferences(PREF, Context.MODE_PRIVATE); in initialize() local 139 SharedPreferences.Editor editor = prefs.edit(); in initialize() 141 if (prefs.getBoolean(NativeNfcSecureElement.PREF_SE_WIRED, false)) { in initialize() 156 SharedPreferences prefs = mContext.getSharedPreferences(PREF, Context.MODE_PRIVATE); in deinitialize() local 157 SharedPreferences.Editor editor = prefs.edit(); in deinitialize()
|
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/ |
D | CellBroadcastConfigService.java | 145 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this); in onHandleIntent() local 152 boolean enableEmergencyAlerts = prefs.getBoolean( in onHandleIntent() 162 prefs.getBoolean(CellBroadcastSettings.KEY_ENABLE_CHANNEL_50_ALERTS, true); in onHandleIntent() 165 boolean enableEtwsTestAlerts = prefs.getBoolean( in onHandleIntent() 168 boolean enableCmasExtremeAlerts = prefs.getBoolean( in onHandleIntent() 171 boolean enableCmasSevereAlerts = prefs.getBoolean( in onHandleIntent() 174 boolean enableCmasAmberAlerts = prefs.getBoolean( in onHandleIntent() 177 boolean enableCmasTestAlerts = prefs.getBoolean( in onHandleIntent()
|