From f24f7a5fd4314bf5dba43c70d47ea49c012e6422 Mon Sep 17 00:00:00 2001 From: Adnan Begovic Date: Thu, 29 Oct 2015 12:39:39 -0700 Subject: [PATCH] cmsdk: Introduce various new Settings from fwb. Change-Id: I93e8be7e5d6c80feccdbe248fa265538e6ae4893 --- .../cyanogenmod/providers/CMSettings.java | 86 +++++++++++++++++++ 1 file changed, 86 insertions(+) diff --git a/src/java/cyanogenmod/providers/CMSettings.java b/src/java/cyanogenmod/providers/CMSettings.java index 0889c938..946aebaa 100644 --- a/src/java/cyanogenmod/providers/CMSettings.java +++ b/src/java/cyanogenmod/providers/CMSettings.java @@ -644,6 +644,44 @@ public final class CMSettings { */ public static final String STATUS_BAR_SHOW_BATTERY_PERCENT = "status_bar_show_battery_percent"; // endregion + + /** + * Whether the phone ringtone should be played in an increasing manner + * @hide + */ + public static final String INCREASING_RING = "increasing_ring"; + + /** + * Start volume fraction for increasing ring volume + * @hide + */ + public static final String INCREASING_RING_START_VOLUME = "increasing_ring_start_vol"; + + /** + * Ramp up time (seconds) for increasing ring + * @hide + */ + public static final String INCREASING_RING_RAMP_UP_TIME = "increasing_ring_ramp_up_time"; + + /** + * Volume Adjust Sounds Enable, This is the noise made when using volume hard buttons + * Defaults to 1 - sounds enabled + * @hide + */ + public static final String VOLUME_ADJUST_SOUNDS_ENABLED = "volume_adjust_sounds_enabled"; + + /** + * Navigation controls to Use + * @hide + */ + public static final String NAV_BUTTONS = "nav_buttons"; + + /** + * Volume key controls ringtone or media sound stream + * @hide + */ + public static final String VOLUME_KEYS_CONTROL_RING_STREAM = + "volume_keys_control_ring_stream"; } /** @@ -1084,6 +1122,54 @@ public final class CMSettings { */ public static final String PRIVACY_GUARD_DEFAULT = "privacy_guard_default"; + /** + * The global recents long press activity chosen by the user. + * This setting is stored as a flattened component name as + * per {@link ComponentName#flattenToString()}. + * + * @hide + */ + public static final String RECENTS_LONG_PRESS_ACTIVITY = "recents_long_press_activity"; + + /** + * What happens when the user presses the Home button when the + * phone is ringing.
+ * Values:
+ * 1 - Nothing happens. (Default behavior)
+ * 2 - The Home button answer the current call.
+ * + * @hide + */ + public static final String RING_HOME_BUTTON_BEHAVIOR = "ring_home_button_behavior"; + + /** + * RING_HOME_BUTTON_BEHAVIOR value for "do nothing". + * @hide + */ + public static final int RING_HOME_BUTTON_BEHAVIOR_DO_NOTHING = 0x1; + + /** + * RING_HOME_BUTTON_BEHAVIOR value for "answer". + * @hide + */ + public static final int RING_HOME_BUTTON_BEHAVIOR_ANSWER = 0x2; + + /** + * RING_HOME_BUTTON_BEHAVIOR default value. + * @hide + */ + public static final int RING_HOME_BUTTON_BEHAVIOR_DEFAULT = + RING_HOME_BUTTON_BEHAVIOR_DO_NOTHING; + + /** + * When the user has enable the option to have a "bug report" command + * in the power menu. + * @deprecated Use {@link android.provider.Settings.Global#BUGREPORT_IN_POWER_MENU} instead + * @hide + */ + @Deprecated + public static final String BUGREPORT_IN_POWER_MENU = "bugreport_in_power_menu"; + // endregion }