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

Commit c5ed5910 authored by Jeff Brown's avatar Jeff Brown
Browse files

Add support for new input sources.

Added several new coordinate values to MotionEvents to capture
touch major/minor area, tool major/minor area and orientation.

Renamed NDK input constants per convention.

Added InputDevice class in Java which will eventually provide
useful information about available input devices.

Added APIs for manufacturing new MotionEvent objects with multiple
pointers and all necessary coordinate data.

Fixed a bug in the input dispatcher where it could get stuck with
a pointer down forever.

Fixed a bug in the WindowManager where the input window list could
end up containing stale removed windows.

Fixed a bug in the WindowManager where the input channel was being
removed only after the final animation transition had taken place
which caused spurious WINDOW DIED log messages to be printed.

Change-Id: Ie55084da319b20aad29b28a0499b8dd98bb5da68
parent d9452ecd
Loading
Loading
Loading
Loading
+34 −24
Original line number Diff line number Diff line
@@ -167794,6 +167794,38 @@
</parameter>
</constructor>
</class>
<class name="InputEvent"
 extends="java.lang.Object"
 abstract="true"
 static="false"
 final="false"
 deprecated="not deprecated"
 visibility="public"
>
<implements name="android.os.Parcelable">
</implements>
<method name="getDeviceId"
 return="int"
 abstract="false"
 native="false"
 synchronized="false"
 static="false"
 final="true"
 deprecated="not deprecated"
 visibility="public"
>
</method>
<field name="mDeviceId"
 type="int"
 transient="false"
 volatile="false"
 static="false"
 final="false"
 deprecated="not deprecated"
 visibility="protected"
>
</field>
</class>
<class name="KeyCharacterMap"
 extends="java.lang.Object"
 abstract="false"
@@ -168130,7 +168162,7 @@
</field>
</class>
<class name="KeyEvent"
 extends="java.lang.Object"
 extends="android.view.InputEvent"
 abstract="false"
 static="false"
 final="false"
@@ -168423,17 +168455,6 @@
<parameter name="c" type="int">
</parameter>
</method>
<method name="getDeviceId"
 return="int"
 abstract="false"
 native="false"
 synchronized="false"
 static="false"
 final="true"
 deprecated="not deprecated"
 visibility="public"
>
</method>
<method name="getDisplayLabel"
 return="char"
 abstract="false"
@@ -171308,7 +171329,7 @@
</method>
</interface>
<class name="MotionEvent"
 extends="java.lang.Object"
 extends="android.view.InputEvent"
 abstract="false"
 static="false"
 final="true"
@@ -171397,17 +171418,6 @@
 visibility="public"
>
</method>
<method name="getDeviceId"
 return="int"
 abstract="false"
 native="false"
 synchronized="false"
 static="false"
 final="true"
 deprecated="not deprecated"
 visibility="public"
>
</method>
<method name="getDownTime"
 return="long"
 abstract="false"
+818 −82

File changed.

Preview size limit exceeded, changes collapsed.

+6 −2

File changed.

Preview size limit exceeded, changes collapsed.

+6 −2
Original line number Diff line number Diff line
@@ -30,6 +30,8 @@ import android.util.Slog;
public final class InputChannel implements Parcelable {
    private static final String TAG = "InputChannel";
    
    private static final boolean DEBUG = false;
    
    public static final Parcelable.Creator<InputChannel> CREATOR
            = new Parcelable.Creator<InputChannel>() {
        public InputChannel createFromParcel(Parcel source) {
@@ -85,7 +87,9 @@ public final class InputChannel implements Parcelable {
            throw new IllegalArgumentException("name must not be null");
        }

        if (DEBUG) {
            Slog.d(TAG, "Opening input channel pair '" + name + "'");
        }
        return nativeOpenInputChannelPair(name);
    }
    
+231 −0

File added.

Preview size limit exceeded, changes collapsed.

Loading