/packages/apps/DeskClock/src/com/android/deskclock/data/ |
D | SettingsDAO.kt | 62 fun getGlobalIntentId(prefs: SharedPreferences): Int { in getGlobalIntentId() 63 return prefs.getInt(KEY_ALARM_GLOBAL_ID, -1) in getGlobalIntentId() 69 fun updateGlobalIntentId(prefs: SharedPreferences) { in updateGlobalIntentId() 70 val globalId: Int = prefs.getInt(KEY_ALARM_GLOBAL_ID, -1) + 1 in updateGlobalIntentId() 71 prefs.edit().putInt(KEY_ALARM_GLOBAL_ID, globalId).apply() in updateGlobalIntentId() 77 fun getCitySort(prefs: SharedPreferences): CitySort { in getCitySort() 79 val citySortOrdinal: Int = prefs.getInt(KEY_SORT_PREFERENCE, defaultSortOrdinal) in getCitySort() 86 fun toggleCitySort(prefs: SharedPreferences) { in toggleCitySort() 87 val oldSort = getCitySort(prefs) in toggleCitySort() 89 prefs.edit().putInt(KEY_SORT_PREFERENCE, newSort.ordinal).apply() in toggleCitySort() [all …]
|
D | StopwatchDAO.kt | 47 fun getStopwatch(prefs: SharedPreferences): Stopwatch { in getStopwatch() 48 val stateIndex: Int = prefs.getInt(STATE, Stopwatch.State.RESET.ordinal) in getStopwatch() 50 val lastStartTime: Long = prefs.getLong(LAST_START_TIME, Stopwatch.UNUSED) in getStopwatch() 51 val lastWallClockTime: Long = prefs.getLong(LAST_WALL_CLOCK_TIME, Stopwatch.UNUSED) in getStopwatch() 52 val accumulatedTime: Long = prefs.getLong(ACCUMULATED_TIME, 0) in getStopwatch() 58 setStopwatch(prefs, s) in getStopwatch() 66 fun setStopwatch(prefs: SharedPreferences, stopwatch: Stopwatch) { in setStopwatch() 67 val editor: SharedPreferences.Editor = prefs.edit() in setStopwatch() 87 fun getLaps(prefs: SharedPreferences): MutableList<Lap> { in getLaps() 89 val lapCount: Int = prefs.getInt(LAP_COUNT, 0) in getLaps() [all …]
|
D | TimerDAO.kt | 60 fun getTimers(prefs: SharedPreferences): MutableList<Timer> { in getTimers() 62 val timerIds: Set<String> = prefs.getStringSet(TIMER_IDS, emptySet<String>())!! in getTimers() 68 val stateValue: Int = prefs.getInt(STATE + id, Timer.State.RESET.value) in getTimers() 74 val length: Long = prefs.getLong(LENGTH + id, Long.MIN_VALUE) in getTimers() 75 val totalLength: Long = prefs.getLong(TOTAL_LENGTH + id, Long.MIN_VALUE) in getTimers() 76 val lastStartTime: Long = prefs.getLong(LAST_START_TIME + id, Timer.UNUSED) in getTimers() 77 val lastWallClockTime: Long = prefs.getLong(LAST_WALL_CLOCK_TIME + id, Timer.UNUSED) in getTimers() 78 val remainingTime: Long = prefs.getLong(REMAINING_TIME + id, totalLength) in getTimers() 79 val label: String? = prefs.getString(LABEL + id, null) in getTimers() 80 val deleteAfterUse: Boolean = prefs.getBoolean(DELETE_AFTER_USE + id, false) in getTimers() [all …]
|
D | CustomRingtoneDAO.kt | 44 fun addCustomRingtone(prefs: SharedPreferences, uri: Uri, title: String?): CustomRingtone { in addCustomRingtone() 45 val id: Long = prefs.getLong(NEXT_RINGTONE_ID, 0) in addCustomRingtone() 46 val ids = getRingtoneIds(prefs) in addCustomRingtone() 49 prefs.edit() in addCustomRingtone() 62 fun removeCustomRingtone(prefs: SharedPreferences, id: Long) { in removeCustomRingtone() 63 val ids = getRingtoneIds(prefs) in removeCustomRingtone() 66 val editor: SharedPreferences.Editor = prefs.edit() in removeCustomRingtone() 83 fun getCustomRingtones(prefs: SharedPreferences): MutableList<CustomRingtone> { in getCustomRingtones() 84 val ids: Set<String> = prefs.getStringSet(RINGTONE_IDS, emptySet<String>())!! in getCustomRingtones() 89 val uri: Uri = Uri.parse(prefs.getString(RINGTONE_URI + id, null)) in getCustomRingtones() [all …]
|
/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/WallpaperPicker2/tests/common/src/com/android/wallpaper/testing/ |
D | TestWallpaperRefresher.java | 45 WallpaperPreferences prefs = InjectorProvider.getInjector().getPreferences(mAppContext); in refresh() local 47 if (prefs.getLockWallpaperManagerId() > 0) { in refresh() 50 prefs.getHomeWallpaperAttributions(), in refresh() 51 prefs.getHomeWallpaperActionUrl(), in refresh() 52 prefs.getHomeWallpaperCollectionId(), in refresh() 56 prefs.getLockWallpaperAttributions(), in refresh() 57 prefs.getLockWallpaperActionUrl(), in refresh() 58 prefs.getLockWallpaperCollectionId(), in refresh() 61 prefs.getWallpaperPresentationMode()); in refresh() 65 prefs.getHomeWallpaperAttributions(), in refresh() [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/Traceur/src/com/android/traceur/ |
D | Receiver.java | 67 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context); in onReceive() local 82 prefs.edit().putBoolean( in onReceive() 84 prefs.edit().putBoolean( in onReceive() 86 prefs.edit().putBoolean( in onReceive() 97 if (prefs.getBoolean(context.getString(R.string.pref_key_stop_on_bugreport), false) && in onReceive() 98 !prefs.getBoolean(context.getString( in onReceive() 101 … prefs.edit().putBoolean(context.getString(R.string.pref_key_tracing_on), false).commit(); in onReceive() 115 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context); in updateTracing() local 117 prefs.getBoolean(context.getString(R.string.pref_key_tracing_on), false); in updateTracing() 119 prefs.getBoolean(context.getString(R.string.pref_key_stack_sampling_on), false); in updateTracing() [all …]
|
D | TraceService.java | 110 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context); in stopTracingWithoutSaving() local 111 prefs.edit().putBoolean(context.getString( in stopTracingWithoutSaving() 128 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context); in onHandleIntent() local 165 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context); in getRecentTraceType() local 166 boolean recordingWasTrace = prefs.getBoolean( in getRecentTraceType() 168 boolean recordingWasStackSamples = prefs.getBoolean( in getRecentTraceType() 183 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context); in startTracingInternal() local 190 prefs.getBoolean(context.getString(R.string.pref_key_attach_to_bugreport), true); in startTracingInternal() 210 prefs.edit().putBoolean(context.getString(R.string.pref_key_tracing_on), in startTracingInternal() 219 prefs.edit().putBoolean( in startTracingInternal() [all …]
|
D | TracingQsService.java | 57 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this); in update() local 58 boolean tracingOn = prefs.getBoolean(getString(R.string.pref_key_tracing_on), false); in update() 59 boolean stackSamplingOn = prefs.getBoolean( in update() 61 boolean heapDumpOn = prefs.getBoolean( in update() 79 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this); in onClick() local 80 boolean newState = !prefs.getBoolean(getString(R.string.pref_key_tracing_on), false); in onClick() 81 prefs.edit().putBoolean(getString(R.string.pref_key_tracing_on), newState).commit(); in onClick()
|
D | StackSamplingQsService.java | 57 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this); in update() local 58 boolean tracingOn = prefs.getBoolean(getString(R.string.pref_key_tracing_on), false); in update() 59 boolean stackSamplingOn = prefs.getBoolean( in update() 61 boolean heapDumpOn = prefs.getBoolean( in update() 80 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this); in onClick() local 81 boolean newState = !prefs.getBoolean(getString(R.string.pref_key_stack_sampling_on), false); in onClick() 82 prefs.edit().putBoolean(getString(R.string.pref_key_stack_sampling_on), newState).commit(); in onClick()
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
D | QuickResponseUtils.java | 64 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/Settings/tests/robotests/src/com/android/settings/connecteddevice/usb/ |
D | UsbDetailsFunctionsControllerTest.java | 119 List<SelectorWithWidgetPreference> prefs = getRadioPreferences(); in displayRefresh_allAllowed_shouldCreatePrefs() local 122 for (SelectorWithWidgetPreference pref : prefs) { in displayRefresh_allAllowed_shouldCreatePrefs() 145 List<SelectorWithWidgetPreference> prefs = getRadioPreferences(); in displayRefresh_onlyMidiAllowed_shouldCreateOnlyMidiPref() local 146 assertThat(prefs.size()).isEqualTo(1); in displayRefresh_onlyMidiAllowed_shouldCreateOnlyMidiPref() 147 assertThat(prefs.get(0).getKey()) in displayRefresh_onlyMidiAllowed_shouldCreateOnlyMidiPref() 157 List<SelectorWithWidgetPreference> prefs = getRadioPreferences(); in displayRefresh_mtpEnabled_shouldCheckSwitches() local 159 assertThat(prefs.get(0).getKey()) in displayRefresh_mtpEnabled_shouldCheckSwitches() 161 assertThat(prefs.get(0).isChecked()).isTrue(); in displayRefresh_mtpEnabled_shouldCheckSwitches() 170 List<SelectorWithWidgetPreference> prefs = getRadioPreferences(); in displayRefresh_accessoryEnabled_shouldCheckSwitches() local 172 assertThat(prefs.get(0).getKey()) in displayRefresh_accessoryEnabled_shouldCheckSwitches() [all …]
|
/packages/apps/WallpaperPicker2/tests/robotests/src/com/android/wallpaper/picker/preview/data/repository/ |
D | WallpaperPreviewRepositoryTest.kt | 61 private lateinit var prefs: WallpaperPreferences variable in com.android.wallpaper.picker.preview.data.repository.WallpaperPreviewRepositoryTest 68 prefs = TestWallpaperPreferences() in setUp() 76 preferences = prefs, in setWallpaperModel() 94 prefs.setHasSmallPreviewTooltipBeenShown(false) in dismissSmallTooltip() 95 prefs.setHasFullPreviewTooltipBeenShown(false) in dismissSmallTooltip() 99 preferences = prefs, in dismissSmallTooltip() 107 assertThat(prefs.getHasSmallPreviewTooltipBeenShown()).isTrue() in dismissSmallTooltip() 109 assertThat(prefs.getHasFullPreviewTooltipBeenShown()).isFalse() in dismissSmallTooltip() 115 prefs.setHasSmallPreviewTooltipBeenShown(false) in dismissFullTooltip() 116 prefs.setHasFullPreviewTooltipBeenShown(false) in dismissFullTooltip() [all …]
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/enterprise/ |
D | EnterpriseSetDefaultAppsListPreferenceControllerTest.java | 225 List<Preference> prefs = mPreferenceGroup.getPreferences(); in testUpdateState_allSingleApps() local 226 assertWithMessage("children preferences").that(prefs).hasSize(7); in testUpdateState_allSingleApps() 229 assertPreference(prefs, 0, getSingleAppsTitle(R.string.default_browser_title), "app_4"); in testUpdateState_allSingleApps() 230 assertPreference(prefs, 1, getSingleAppsTitle(R.string.default_calendar_app_title), in testUpdateState_allSingleApps() 232 assertPreference(prefs, 2, getMultipleAppsTitle(R.plurals.default_camera_app_title, 1), in testUpdateState_allSingleApps() 234 assertPreference(prefs, 3, getSingleAppsTitle(R.string.default_contacts_app_title), in testUpdateState_allSingleApps() 236 assertPreference(prefs, 4, getMultipleAppsTitle(R.plurals.default_email_app_title, 1), in testUpdateState_allSingleApps() 238 assertPreference(prefs, 5, getSingleAppsTitle(R.string.default_map_app_title), "app_42"); in testUpdateState_allSingleApps() 239 assertPreference(prefs, 6, getMultipleAppsTitle(R.plurals.default_phone_app_title, 1), in testUpdateState_allSingleApps() 258 List<Preference> prefs = mPreferenceGroup.getPreferences(); in testUpdateState_allMultipleApps() local [all …]
|
/packages/apps/MusicFX/src/com/android/musicfx/ |
D | ControlPanelEffect.java | 166 final SharedPreferences prefs = context.getSharedPreferences(packageName, in initEffectsPreferences() local 168 final SharedPreferences.Editor editor = prefs.edit(); in initEffectsPreferences() 186 final boolean isGlobalEnabled = prefs.getBoolean(Key.global_enabled.toString(), in initEffectsPreferences() 192 final boolean isVIEnabled = prefs.getBoolean(Key.virt_enabled.toString(), in initEffectsPreferences() 195 final int vIStrength = prefs.getInt(Key.virt_strength.toString(), in initEffectsPreferences() 218 final boolean isBBEnabled = prefs.getBoolean(Key.bb_enabled.toString(), in initEffectsPreferences() 220 final int bBStrength = prefs.getInt(Key.bb_strength.toString(), in initEffectsPreferences() 278 mEQPresetNames[preset] = prefs.getString( in initEffectsPreferences() 298 final short eQPreset = (short) prefs.getInt(Key.eq_current_preset.toString(), in initEffectsPreferences() 312 bandLevel[band] = (short) prefs.getInt( in initEffectsPreferences() [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/Settings/src/com/android/settings/accounts/ |
D | AccountTypePreferenceLoader.java | 86 PreferenceScreen prefs = null; in addPreferencesForType() local 107 prefs = mFragment.getPreferenceManager().inflateFromResource(themedCtx, in addPreferencesForType() 114 filterBlockedFragments(prefs, fragmentAllowList); in addPreferencesForType() 122 return prefs; in addPreferencesForType() 131 public void updatePreferenceIntents(PreferenceGroup prefs, final String acccountType, in updatePreferenceIntents() argument 134 for (int i = 0; i < prefs.getPreferenceCount(); ) { in updatePreferenceIntents() 135 Preference pref = prefs.getPreference(i); in updatePreferenceIntents() 165 prefs.removePreference(pref); in updatePreferenceIntents() 204 Set<String> generateFragmentAllowlist(@Nullable PreferenceGroup prefs) { in generateFragmentAllowlist() argument 206 if (prefs == null) { in generateFragmentAllowlist() [all …]
|
/packages/services/Telephony/src/com/android/phone/settings/ |
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/Calendar/src/com/android/calendar/ |
D | CalendarUtils.kt | 55 fun setSharedPreference(prefs: SharedPreferences, key: String?, value: Boolean) { in setSharedPreference() 56 val editor: SharedPreferences.Editor = prefs.edit() in setSharedPreference() 76 fun setSharedPreference(prefs: SharedPreferences, key: String?, value: String?) { in setSharedPreference() 77 val editor: SharedPreferences.Editor = prefs.edit() in setSharedPreference() 133 val prefs: SharedPreferences = in onQueryComplete() constant 136 setSharedPreference(prefs, KEY_HOME_TZ_ENABLED, mUseHomeTZ) in onQueryComplete() 137 setSharedPreference(prefs, KEY_HOME_TZ, mHomeTZ) in onQueryComplete() 219 val prefs: SharedPreferences = getSharedPreferences(context, mPrefsName) in setTimeZone() constant 220 setSharedPreference(prefs, KEY_HOME_TZ_ENABLED, mUseHomeTZ) in setTimeZone() 221 setSharedPreference(prefs, KEY_HOME_TZ, mHomeTZ) in setTimeZone() [all …]
|
/packages/apps/Dialer/java/com/android/voicemail/impl/settings/ |
D | VisualVoicemailSettingsUtil.java | 139 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/modules/ImsMedia/test/app/ImsMediaTestingApp/app/src/main/java/com/example/imsmediatestingapp/ |
D | SharedPrefsHandler.java | 12 SharedPreferences prefs; field in SharedPrefsHandler 19 public SharedPrefsHandler(SharedPreferences prefs) { in SharedPrefsHandler() argument 20 this.prefs = prefs; in SharedPrefsHandler() 21 editor = prefs.edit(); in SharedPrefsHandler() 46 String integerSetString = prefs.getString(prefKey, ""); in getIntegerSetFromPrefs()
|