From 1a84fd1fb7a51f3fe4f8865e1cdd09f3490f696c Mon Sep 17 00:00:00 2001 From: Jeff Brown Date: Thu, 2 Jun 2011 01:26:32 -0700 Subject: Add a preference panel for mouse speed. Bug: 4124987 Change-Id: I3ce175d268a1d043cf5878481261b1049a15a149 --- core/java/android/provider/Settings.java | 11 +++++++++++ core/java/android/view/IWindowManager.aidl | 5 +++++ core/res/AndroidManifest.xml | 7 +++++++ core/res/res/values/strings.xml | 7 +++++++ 4 files changed, 30 insertions(+) (limited to 'core') diff --git a/core/java/android/provider/Settings.java b/core/java/android/provider/Settings.java index fbdc0ba..58d9952 100644 --- a/core/java/android/provider/Settings.java +++ b/core/java/android/provider/Settings.java @@ -1791,6 +1791,16 @@ public final class Settings { public static final String SIP_ASK_ME_EACH_TIME = "SIP_ASK_ME_EACH_TIME"; /** + * Pointer speed setting. + * This is an integer value in a range between -7 and +7, so there are 15 possible values. + * -7 = slowest + * 0 = default speed + * +7 = fastest + * @hide + */ + public static final String POINTER_SPEED = "pointer_speed"; + + /** * Settings to backup. This is here so that it's in the same place as the settings * keys and easy to update. * @hide @@ -1854,6 +1864,7 @@ public final class Settings { USE_PTP_INTERFACE, SIP_CALL_OPTIONS, SIP_RECEIVE_CALLS, + POINTER_SPEED, }; // Settings moved to Settings.Secure diff --git a/core/java/android/view/IWindowManager.aidl b/core/java/android/view/IWindowManager.aidl index 4427eb5..ad17edf 100644 --- a/core/java/android/view/IWindowManager.aidl +++ b/core/java/android/view/IWindowManager.aidl @@ -205,4 +205,9 @@ interface IWindowManager * Called by the status bar to notify Views of changes to System UI visiblity. */ void statusBarVisibilityChanged(int visibility); + + /** + * Called by the settings application to temporarily set the pointer speed. + */ + void setPointerSpeed(int speed); } diff --git a/core/res/AndroidManifest.xml b/core/res/AndroidManifest.xml index 2f431c4..441a3bf 100644 --- a/core/res/AndroidManifest.xml +++ b/core/res/AndroidManifest.xml @@ -1071,6 +1071,13 @@ android:description="@string/permdesc_setOrientation" android:protectionLevel="signature" /> + + + + + change pointer speed + + Allows an application to change + the mouse or trackpad pointer speed at any time. Should never be needed for + normal applications. + send Linux signals to applications -- cgit v1.1