Skip to content
This repository has been archived by the owner on Dec 28, 2022. It is now read-only.

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

Conflicts:
	core/res/res/values/config.xml
	core/res/res/values/strings.xml
	core/res/res/values/symbols.xml
  • Loading branch information
masiullah authored and yghazikantelinen committed Apr 24, 2013
1 parent c4c6dff commit 74de02d
Show file tree
Hide file tree
Showing 5 changed files with 323 additions and 2 deletions.
49 changes: 49 additions & 0 deletions core/java/android/provider/Settings.java
Original file line number Diff line number Diff line change
Expand Up @@ -3121,6 +3121,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
Original file line number Diff line number Diff line change
Expand Up @@ -1123,4 +1123,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>
4 changes: 3 additions & 1 deletion core/res/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4161,5 +4161,7 @@
<string name="symbol_picker_lt">\u2264\u00ab\u2039</string>
<string name="symbol_picker_gt">\u2265\u00bb\u203a</string>

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

</resources>
5 changes: 5 additions & 0 deletions core/res/res/values/symbols.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2005,4 +2005,9 @@
<java-symbol type="string" name="symbol_picker_Y" />
<java-symbol type="string" name="symbol_picker_z" />
<java-symbol type="string" name="symbol_picker_Z" />

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

</resources>
Loading

0 comments on commit 74de02d

Please sign in to comment.