From 1a02bc1d01bfdb9453fe94bdb23e267fc0152971 Mon Sep 17 00:00:00 2001 From: New One Android Date: Mon, 12 Jan 2015 02:56:53 +0800 Subject: [PATCH] update Add cal_volume_answer --- core/java/android/provider/Settings.java | 35 ++++-------------------- 1 file changed, 6 insertions(+), 29 deletions(-) diff --git a/core/java/android/provider/Settings.java b/core/java/android/provider/Settings.java index 3783000a2299..6ae8e8ff6ce0 100644 --- a/core/java/android/provider/Settings.java +++ b/core/java/android/provider/Settings.java @@ -5368,35 +5368,6 @@ public static boolean putFloatForUser(ContentResolver cr, String name, float val public static final int INCALL_POWER_BUTTON_BEHAVIOR_DEFAULT = INCALL_POWER_BUTTON_BEHAVIOR_SCREEN_OFF; - /** - * If the call will judge whether the volume button settings. - * Values: - * 1 - Running the volume key answer - * 2 - Shut down volume key answer - * - * @hide - */ - public static final String ANSWER_VOLUME_BUTTON_BEHAVIOR = "answer_volume_button_behavior"; - - /** - * ANSWER_VOLUME_BUTTON_BEHAVIOR value for "turn off screen". - * @hide - */ - public static final int ANSWER_VOLUME_BUTTON_BEHAVIOR_SCREEN_OFF = 0x1; - - /** - * ANSWER_VOLUME_BUTTON_BEHAVIOR value for "hang up". - * @hide - */ - public static final int ANSWER_VOLUME_BUTTON_BEHAVIOR_HANGUP = 0x2; - - /** - * ANSWER_VOLUME_BUTTON_BEHAVIOR default value. - * @hide - */ - public static final int ANSWER_VOLUME_BUTTON_BEHAVIOR_DEFAULT = - ANSWER_VOLUME_BUTTON_BEHAVIOR_SCREEN_OFF; - /** * Whether the device should wake when the wake gesture sensor detects motion. * @hide @@ -5408,6 +5379,12 @@ public static boolean putFloatForUser(ContentResolver cr, String name, float val * @hide */ public static final String DOZE_ENABLED = "doze_enabled"; + + /** + * volume answer. + * @hide + */ + public static final String ANSWER_VOLUME_BUTTON_BEHAVIOR_ANSWER = "call_volume_answer"; /** * What happens when the user presses the Home button when the