Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 6 additions & 29 deletions core/java/android/provider/Settings.java
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down