Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e1718de6 authored by Jeff Brown's avatar Jeff Brown Committed by Android (Google) Code Review
Browse files

Merge "Add a preference panel for mouse speed." into honeycomb-mr2

parents 10c3f367 1a84fd1f
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -1024,6 +1024,17 @@
 visibility="public"
>
</field>
<field name="SET_POINTER_SPEED"
 type="java.lang.String"
 transient="false"
 volatile="false"
 value="&quot;android.permission.SET_POINTER_SPEED&quot;"
 static="true"
 final="true"
 deprecated="not deprecated"
 visibility="public"
>
</field>
<field name="SET_PREFERRED_APPLICATIONS"
 type="java.lang.String"
 transient="false"
+11 −0
Original line number Diff line number Diff line
@@ -1790,6 +1790,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.
@@ -1854,6 +1864,7 @@ public final class Settings {
            USE_PTP_INTERFACE,
            SIP_CALL_OPTIONS,
            SIP_RECEIVE_CALLS,
            POINTER_SPEED,
        };

        // Settings moved to Settings.Secure
+5 −0
Original line number Diff line number Diff line
@@ -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);
}
+7 −0
Original line number Diff line number Diff line
@@ -1071,6 +1071,13 @@
        android:description="@string/permdesc_setOrientation"
        android:protectionLevel="signature" />

    <!-- Allows low-level access to setting the pointer speed.
         Not for use by normal applications. -->
    <permission android:name="android.permission.SET_POINTER_SPEED"
        android:label="@string/permlab_setPointerSpeed"
        android:description="@string/permdesc_setPointerSpeed"
        android:protectionLevel="signature" />

    <!-- Allows an application to install packages. -->
    <permission android:name="android.permission.INSTALL_PACKAGES"
        android:label="@string/permlab_installPackages"
+7 −0
Original line number Diff line number Diff line
@@ -699,6 +699,13 @@
        the rotation of the screen at any time. Should never be needed for
        normal applications.</string>

    <!-- Title of an application permission, listed so the user can choose whether they want to allow the application to do this. [CHAR LIMIT=30] -->
    <string name="permlab_setPointerSpeed">change pointer speed</string>
    <!-- Description of an application permission, listed so the user can choose whether they want to allow the application to do this. [CHAR LIMIT=NONE] -->
    <string name="permdesc_setPointerSpeed">Allows an application to change
        the mouse or trackpad pointer speed at any time. Should never be needed for
        normal applications.</string>

    <!-- Title of an application permission, listed so the user can choose whether they want to allow the application to do this. -->
    <string name="permlab_signalPersistentProcesses">send Linux signals to applications</string>
    <!-- Description of an application permission, listed so the user can choose whether they want to allow the application to do this. -->
Loading