Skip to content

Commit

Permalink
Stylus gestures features (1/2)
Browse files Browse the repository at this point in the history
Forward-port of CyanogenMod/android_frameworks_base@9f3ee9f
to JB

Change-Id: I9c8a03dce226d2463659846ff3a12435efdf5c1d
Signed-off-by: scotthartbti <scott.hart.bti@gmail.com>

Conflicts:
	core/java/android/provider/Settings.java
  • Loading branch information
masiullah authored and scotthartbti committed Apr 13, 2013
1 parent 5423748 commit 74cd7d2
Show file tree
Hide file tree
Showing 5 changed files with 326 additions and 1 deletion.
49 changes: 49 additions & 0 deletions core/java/android/provider/Settings.java
Expand Up @@ -3350,6 +3350,55 @@ public static void setShowGTalkServiceStatusForUser(ContentResolver cr, boolean
*/
public static final String POWER_MENU_PROFILES_ENABLED = "power_menu_profiles_enabled";

/**
* Enable Stylus Gestures
*
* @hide
*/
public static final String ENABLE_STYLUS_GESTURES = "enable_stylus_gestures";

/**
* Left Swipe Action
*
* @hide
*/
public static final String GESTURES_LEFT_SWIPE = "gestures_left_swipe";

/**
* Right Swipe Action
*
* @hide
*/
public static final String GESTURES_RIGHT_SWIPE = "gestures_right_swipe";

/**
* Up Swipe Action
*
* @hide
*/
public static final String GESTURES_UP_SWIPE = "gestures_up_swipe";

/**
* down Swipe Action
*
* @hide
*/
public static final String GESTURES_DOWN_SWIPE = "gestures_down_swipe";

/**
* Long press Action
*
* @hide
*/
public static final String GESTURES_LONG_PRESS = "gestures_long_press";

/**
* double tap Action
*
* @hide
*/
public static final String GESTURES_DOUBLE_TAP = "gestures_double_tap";

/**
* Whether power menu airplane toggle is enabled
* @hide
Expand Down
3 changes: 3 additions & 0 deletions core/res/res/values/config.xml
Expand Up @@ -1134,4 +1134,7 @@

<!-- True if the Sym key should open the InputMethodPicker (default) -->
<bool name="config_symKeyShowsImePicker">true</bool>

<!-- Boolean to enable Stylus gestures -->
<bool name="config_stylusGestures">false</bool>
</resources>
7 changes: 7 additions & 0 deletions core/res/res/values/strings.xml
Expand Up @@ -4090,4 +4090,11 @@
<!-- Hardware Rotation lock string -->
<string name="toast_rotation_unlocked">Display rotation unlocked</string>
<string name="toast_rotation_locked">Display rotation locked</string>

<!-- **** CYANOGENMOD ADDITIONS START **** -->

<!-- stylus gestures support -->
<string name="stylus_app_not_installed">%s is not installed</string>

<!-- **** CYANOGENMOD ADDITIONS END **** -->
</resources>
4 changes: 4 additions & 0 deletions core/res/res/values/symbols.xml
Expand Up @@ -1944,4 +1944,8 @@

<!-- IME Picker showing upon pressing Sym Key -->
<java-symbol type="bool" name="config_symKeyShowsImePicker" />

<!-- Stylus gestures -->
<java-symbol type="bool" name="config_stylusGestures" />
<java-symbol type="string" name="stylus_app_not_installed" />
</resources>

0 comments on commit 74cd7d2

Please sign in to comment.