Skip to content

Commit

Permalink
Answer call with hardware HOME button (2/2)
Browse files Browse the repository at this point in the history
preparation to winter time

Conflicts:
	policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
Change-Id: Ic11449acf87c6b4d932142b74158af7441658b3d

	modified:   core/java/android/provider/Settings.java
	deleted:    policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
	modified:   services/core/java/com/android/server/policy/PhoneWindowManager.java
  • Loading branch information
sanja-byelkin authored and jsnweitzel committed Dec 24, 2015
1 parent 8f00ba5 commit 0f64710
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 7,022 deletions.
30 changes: 30 additions & 0 deletions core/java/android/provider/Settings.java
Expand Up @@ -5915,6 +5915,36 @@ public static boolean putFloatForUser(ContentResolver cr, String name, float val
*/
public static final String DOZE_ENABLED = "doze_enabled";

/**
* What happens when the user presses the Home button when the
* phone is ringing.<br/>
* <b>Values:</b><br/>
* 1 - Nothing happens. (Default behavior)<br/>
* 2 - The Home button answer the current call.<br/>
*
* @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;

/**
* The current night mode that has been selected by the user. Owned
* and controlled by UiModeManagerService. Constants are as per
Expand Down

0 comments on commit 0f64710

Please sign in to comment.