Lines Matching refs:Key
61 static enum Key { enum in ControlPanelEffect
167 final boolean isGlobalEnabled = prefs.getBoolean(Key.global_enabled.toString(), in initEffectsPreferences()
169 editor.putBoolean(Key.global_enabled.toString(), isGlobalEnabled); 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()
179 editor.putBoolean(Key.virt_enabled.toString(), isVIEnabled); in initEffectsPreferences()
180 editor.putInt(Key.virt_strength.toString(), vIStrength); in initEffectsPreferences()
187 editor.putBoolean(Key.virt_strength_supported.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()
203 editor.putBoolean(Key.bb_enabled.toString(), isBBEnabled); in initEffectsPreferences()
204 editor.putInt(Key.bb_strength.toString(), bBStrength); in initEffectsPreferences()
260 Key.eq_preset_name.toString() + preset, in initEffectsPreferences()
268 editor.putInt(Key.eq_level_range.toString() + 0, mEQBandLevelRange[0]); in initEffectsPreferences()
269 editor.putInt(Key.eq_level_range.toString() + 1, mEQBandLevelRange[1]); in initEffectsPreferences()
270 editor.putInt(Key.eq_num_bands.toString(), mEQNumBands); in initEffectsPreferences()
271 editor.putInt(Key.eq_num_presets.toString(), mEQNumPresets); in initEffectsPreferences()
279 final short eQPreset = (short) prefs.getInt(Key.eq_current_preset.toString(), in initEffectsPreferences()
281 editor.putInt(Key.eq_current_preset.toString(), eQPreset); in initEffectsPreferences()
294 Key.eq_preset_user_band_level.toString() + band, in initEffectsPreferences()
297 editor.putInt(Key.eq_band_level.toString() + band, bandLevel[band]); in initEffectsPreferences()
299 editor.putInt(Key.eq_center_freq.toString() + band, mEQCenterFreq[band]); in initEffectsPreferences()
300 editor.putInt(Key.eq_preset_ci_extreme_band_level.toString() + band, in initEffectsPreferences()
302 editor.putInt(Key.eq_preset_user_band_level_default.toString() + band, in initEffectsPreferences()
306 … editor.putString(Key.eq_preset_name.toString() + preset, mEQPresetNames[preset]); in initEffectsPreferences()
308 editor.putInt(Key.eq_preset_opensl_es_band_level.toString() + preset + "_" in initEffectsPreferences()
313 final boolean isEQEnabled = prefs.getBoolean(Key.eq_enabled.toString(), in initEffectsPreferences()
315 editor.putBoolean(Key.eq_enabled.toString(), isEQEnabled); in initEffectsPreferences()
318 final boolean isEnabledPR = prefs.getBoolean(Key.pr_enabled.toString(), in initEffectsPreferences()
320 final short presetPR = (short) prefs.getInt(Key.pr_current_preset.toString(), in initEffectsPreferences()
322 editor.putBoolean(Key.pr_enabled.toString(), isEnabledPR); in initEffectsPreferences()
323 editor.putInt(Key.pr_current_preset.toString(), presetPR); in initEffectsPreferences()
357 final int audioSession, final Key key, final boolean value) { in setParameterBoolean()
365 if (key == Key.global_enabled) { in setParameterBoolean()
373 Key.virt_enabled.toString(), VIRTUALIZER_ENABLED_DEFAULT)); in setParameterBoolean()
375 final int vIStrength = prefs.getInt(Key.virt_strength.toString(), in setParameterBoolean()
378 audioSession, Key.virt_strength, vIStrength); in setParameterBoolean()
382 bassBoostEffect.setEnabled(prefs.getBoolean(Key.bb_enabled.toString(), in setParameterBoolean()
384 final int bBStrength = prefs.getInt(Key.bb_strength.toString(), in setParameterBoolean()
387 audioSession, Key.bb_strength, bBStrength); in setParameterBoolean()
391 equalizerEffect.setEnabled(prefs.getBoolean(Key.eq_enabled.toString(), in setParameterBoolean()
394 packageName, audioSession, Key.eq_band_level); in setParameterBoolean()
399 audioSession, Key.eq_band_level, level, band); in setParameterBoolean()
450 final boolean isGlobalEnabled = prefs.getBoolean(Key.global_enabled.toString(), in setParameterBoolean()
528 final int audioSession, final Key key) { in getParameterBoolean()
555 final int audioSession, final Key key, final int arg0, final int arg1) { in setParameterInt()
600 editor.putInt(Key.eq_preset_user_band_level.toString() + band, value); in setParameterInt()
608 final int numBands = prefs.getInt(Key.eq_num_bands.toString(), in setParameterInt()
610 final int numPresets = prefs.getInt(Key.eq_num_presets.toString(), in setParameterInt()
628 Key.eq_preset_ci_extreme_band_level.toString() + band, in setParameterInt()
633 Key.eq_preset_user_band_level.toString() + band, in setParameterInt()
643 editor.putInt(Key.eq_band_level.toString() + band, level); in setParameterInt()
696 editor.putInt(Key.eq_preset_user_band_level.toString() + band, value); in setParameterInt()
701 final int numBands = prefs.getInt(Key.eq_num_bands.toString(), in setParameterInt()
703 final int numPresets = prefs.getInt(Key.eq_num_presets.toString(), in setParameterInt()
717 Key.eq_preset_opensl_es_band_level.toString() + preset + "_" in setParameterInt()
722 Key.eq_preset_ci_extreme_band_level.toString() + band, in setParameterInt()
727 Key.eq_preset_user_band_level.toString() + band, in setParameterInt()
730 editor.putInt(Key.eq_band_level.toString() + band, bandLevel); in setParameterInt()
776 final int audioSession, final Key key, final int arg) { in setParameterInt()
816 final int audioSession, final Key key) { in getParameterInt()
833 final int audioSession, final Key key, final int arg) { in getParameterInt()
851 final int audioSession, final Key key, final int arg0, final int arg1) { in getParameterInt()
867 final int audioSession, final Key key) { in getParameterIntArray()
888 final int numBands = prefs.getInt(Key.eq_num_bands.toString(), 0); in getParameterIntArray()
946 final int audioSession, final Key key) { in getParameterString()
961 final int audioSession, final Key key, final int arg) { in getParameterString()
984 final boolean isGlobalEnabled = prefs.getBoolean(Key.global_enabled.toString(), in openSession()
986 editor.putBoolean(Key.global_enabled.toString(), isGlobalEnabled); in openSession()
1029 final boolean isEnabled = prefs.getBoolean(Key.virt_enabled.toString(), in openSession()
1033 final int strength = prefs.getInt(Key.virt_strength.toString(), defaultstrength); in openSession()
1052 editor.putBoolean(Key.virt_enabled.toString(), isEnabled); in openSession()
1053 editor.putInt(Key.virt_strength.toString(), settings.strength); in openSession()
1075 final boolean isEnabled = prefs.getBoolean(Key.bb_enabled.toString(), in openSession()
1077 final int strength = prefs.getInt(Key.bb_strength.toString(), in openSession()
1098 editor.putBoolean(Key.bb_enabled.toString(), isEnabled); in openSession()
1099 editor.putInt(Key.bb_strength.toString(), settings.strength); in openSession()
1128 editor.putString(Key.eq_preset_name.toString() + preset, in openSession()
1132 editor.putInt(Key.eq_level_range.toString() + 0, mEQBandLevelRange[0]); in openSession()
1133 editor.putInt(Key.eq_level_range.toString() + 1, mEQBandLevelRange[1]); in openSession()
1134 editor.putInt(Key.eq_num_bands.toString(), mEQNumBands); in openSession()
1135 editor.putInt(Key.eq_num_presets.toString(), mEQNumPresets); in openSession()
1144 .getInt(Key.eq_current_preset.toString(), mEQNumPresets); in openSession()
1158 Key.eq_preset_user_band_level.toString() + band, in openSession()
1164 editor.putInt(Key.eq_current_preset.toString(), eQPreset); in openSession()
1171 editor.putInt(Key.eq_band_level.toString() + band, bandLevel[band]); in openSession()
1172 editor.putInt(Key.eq_center_freq.toString() + band, mEQCenterFreq[band]); in openSession()
1173 editor.putInt(Key.eq_preset_ci_extreme_band_level.toString() + band, in openSession()
1175 editor.putInt(Key.eq_preset_user_band_level_default.toString() + band, in openSession()
1185 final boolean isEnabled = prefs.getBoolean(Key.eq_enabled.toString(), in openSession()
1187 editor.putBoolean(Key.eq_enabled.toString(), isEnabled); in openSession()
1311 setParameterBoolean(context, packageName, audioSession, Key.global_enabled, enabled); in setEnabledAll()