diff options
author | Jeff Brown <jeffbrown@google.com> | 2010-07-14 18:48:53 -0700 |
---|---|---|
committer | Jeff Brown <jeffbrown@google.com> | 2010-07-15 18:32:33 -0700 |
commit | c5ed5910c9ef066cec6a13bbb404ec57b1e92637 (patch) | |
tree | b06dfdac2d807dae78a2634007b6e627eefd0804 /api | |
parent | d9452ecd0ce6c8e0518055929ba1fd0712146405 (diff) | |
download | frameworks_base-c5ed5910c9ef066cec6a13bbb404ec57b1e92637.zip frameworks_base-c5ed5910c9ef066cec6a13bbb404ec57b1e92637.tar.gz frameworks_base-c5ed5910c9ef066cec6a13bbb404ec57b1e92637.tar.bz2 |
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
Diffstat (limited to 'api')
-rw-r--r-- | api/9.xml | 58 | ||||
-rw-r--r-- | api/current.xml | 784 |
2 files changed, 794 insertions, 48 deletions
@@ -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" diff --git a/api/current.xml b/api/current.xml index f448b85..0626cd5 100644 --- a/api/current.xml +++ b/api/current.xml @@ -173010,6 +173010,285 @@ </parameter> </constructor> </class> +<class name="InputDevice" + extends="java.lang.Object" + abstract="false" + static="false" + final="true" + deprecated="not deprecated" + visibility="public" +> +<constructor name="InputDevice" + type="android.view.InputDevice" + static="false" + final="false" + deprecated="not deprecated" + visibility="public" +> +</constructor> +<method name="getKeyCharacterMap" + return="android.view.KeyCharacterMap" + abstract="false" + native="false" + synchronized="false" + static="false" + final="false" + deprecated="not deprecated" + visibility="public" +> +</method> +<method name="getName" + return="java.lang.String" + abstract="false" + native="false" + synchronized="false" + static="false" + final="false" + deprecated="not deprecated" + visibility="public" +> +</method> +<method name="getSources" + return="int" + abstract="false" + native="false" + synchronized="false" + static="false" + final="false" + deprecated="not deprecated" + visibility="public" +> +</method> +<field name="SOURCE_CLASS_BUTTON" + type="int" + transient="false" + volatile="false" + value="1" + static="true" + final="true" + deprecated="not deprecated" + visibility="public" +> +</field> +<field name="SOURCE_CLASS_JOYSTICK" + type="int" + transient="false" + volatile="false" + value="16" + static="true" + final="true" + deprecated="not deprecated" + visibility="public" +> +</field> +<field name="SOURCE_CLASS_MASK" + type="int" + transient="false" + volatile="false" + value="255" + static="true" + final="true" + deprecated="not deprecated" + visibility="public" +> +</field> +<field name="SOURCE_CLASS_POINTER" + type="int" + transient="false" + volatile="false" + value="2" + static="true" + final="true" + deprecated="not deprecated" + visibility="public" +> +</field> +<field name="SOURCE_CLASS_POSITION" + type="int" + transient="false" + volatile="false" + value="8" + static="true" + final="true" + deprecated="not deprecated" + visibility="public" +> +</field> +<field name="SOURCE_CLASS_TRACKBALL" + type="int" + transient="false" + volatile="false" + value="4" + static="true" + final="true" + deprecated="not deprecated" + visibility="public" +> +</field> +<field name="SOURCE_DPAD" + type="int" + transient="false" + volatile="false" + value="513" + static="true" + final="true" + deprecated="not deprecated" + visibility="public" +> +</field> +<field name="SOURCE_GAMEPAD" + type="int" + transient="false" + volatile="false" + value="1025" + static="true" + final="true" + deprecated="not deprecated" + visibility="public" +> +</field> +<field name="SOURCE_JOYSTICK_LEFT" + type="int" + transient="false" + volatile="false" + value="16777232" + static="true" + final="true" + deprecated="not deprecated" + visibility="public" +> +</field> +<field name="SOURCE_JOYSTICK_RIGHT" + type="int" + transient="false" + volatile="false" + value="33554448" + static="true" + final="true" + deprecated="not deprecated" + visibility="public" +> +</field> +<field name="SOURCE_KEYBOARD" + type="int" + transient="false" + volatile="false" + value="257" + static="true" + final="true" + deprecated="not deprecated" + visibility="public" +> +</field> +<field name="SOURCE_MOUSE" + type="int" + transient="false" + volatile="false" + value="8194" + static="true" + final="true" + deprecated="not deprecated" + visibility="public" +> +</field> +<field name="SOURCE_TOUCHPAD" + type="int" + transient="false" + volatile="false" + value="1048584" + static="true" + final="true" + deprecated="not deprecated" + visibility="public" +> +</field> +<field name="SOURCE_TOUCHSCREEN" + type="int" + transient="false" + volatile="false" + value="4098" + static="true" + final="true" + deprecated="not deprecated" + visibility="public" +> +</field> +<field name="SOURCE_TRACKBALL" + type="int" + transient="false" + volatile="false" + value="65540" + static="true" + final="true" + deprecated="not deprecated" + visibility="public" +> +</field> +<field name="SOURCE_UNKNOWN" + type="int" + transient="false" + volatile="false" + value="0" + static="true" + final="true" + deprecated="not deprecated" + visibility="public" +> +</field> +</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> +<method name="getSource" + 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> +<field name="mSource" + type="int" + transient="false" + volatile="false" + static="false" + final="false" + deprecated="not deprecated" + visibility="protected" +> +</field> +</class> <class name="InputQueue" extends="java.lang.Object" abstract="false" @@ -173389,7 +173668,7 @@ </field> </class> <class name="KeyEvent" - extends="java.lang.Object" + extends="android.view.InputEvent" abstract="false" static="false" final="false" @@ -173467,10 +173746,36 @@ </parameter> <parameter name="metaState" type="int"> </parameter> -<parameter name="device" type="int"> +<parameter name="deviceId" type="int"> +</parameter> +<parameter name="scancode" type="int"> +</parameter> +</constructor> +<constructor name="KeyEvent" + type="android.view.KeyEvent" + static="false" + final="false" + deprecated="not deprecated" + visibility="public" +> +<parameter name="downTime" type="long"> +</parameter> +<parameter name="eventTime" type="long"> +</parameter> +<parameter name="action" type="int"> +</parameter> +<parameter name="code" type="int"> +</parameter> +<parameter name="repeat" type="int"> +</parameter> +<parameter name="metaState" type="int"> +</parameter> +<parameter name="deviceId" type="int"> </parameter> <parameter name="scancode" type="int"> </parameter> +<parameter name="flags" type="int"> +</parameter> </constructor> <constructor name="KeyEvent" type="android.view.KeyEvent" @@ -173491,12 +173796,14 @@ </parameter> <parameter name="metaState" type="int"> </parameter> -<parameter name="device" type="int"> +<parameter name="deviceId" type="int"> </parameter> <parameter name="scancode" type="int"> </parameter> <parameter name="flags" type="int"> </parameter> +<parameter name="source" type="int"> +</parameter> </constructor> <constructor name="KeyEvent" type="android.view.KeyEvent" @@ -173509,7 +173816,7 @@ </parameter> <parameter name="characters" type="java.lang.String"> </parameter> -<parameter name="device" type="int"> +<parameter name="deviceId" type="int"> </parameter> <parameter name="flags" type="int"> </parameter> @@ -173682,17 +173989,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" @@ -176776,7 +177072,7 @@ </method> </interface> <class name="MotionEvent" - extends="java.lang.Object" + extends="android.view.InputEvent" abstract="false" static="false" final="true" @@ -176808,6 +177104,23 @@ <parameter name="metaState" type="int"> </parameter> </method> +<method name="addBatch" + return="void" + abstract="false" + native="false" + synchronized="false" + static="false" + final="true" + deprecated="not deprecated" + visibility="public" +> +<parameter name="eventTime" type="long"> +</parameter> +<parameter name="pointerCoords" type="android.view.MotionEvent.PointerCoords[]"> +</parameter> +<parameter name="metaState" type="int"> +</parameter> +</method> <method name="describeContents" return="int" abstract="false" @@ -176865,7 +177178,18 @@ visibility="public" > </method> -<method name="getDeviceId" +<method name="getDownTime" + return="long" + abstract="false" + native="false" + synchronized="false" + static="false" + final="true" + deprecated="not deprecated" + visibility="public" +> +</method> +<method name="getEdgeFlags" return="int" abstract="false" native="false" @@ -176876,7 +177200,7 @@ visibility="public" > </method> -<method name="getDownTime" +<method name="getEventTime" return="long" abstract="false" native="false" @@ -176887,8 +177211,8 @@ visibility="public" > </method> -<method name="getEdgeFlags" - return="int" +<method name="getHistoricalEventTime" + return="long" abstract="false" native="false" synchronized="false" @@ -176897,9 +177221,11 @@ deprecated="not deprecated" visibility="public" > +<parameter name="pos" type="int"> +</parameter> </method> -<method name="getEventTime" - return="long" +<method name="getHistoricalOrientation" + return="float" abstract="false" native="false" synchronized="false" @@ -176908,9 +177234,26 @@ deprecated="not deprecated" visibility="public" > +<parameter name="pos" type="int"> +</parameter> </method> -<method name="getHistoricalEventTime" - return="long" +<method name="getHistoricalOrientation" + return="float" + abstract="false" + native="false" + synchronized="false" + static="false" + final="true" + deprecated="not deprecated" + visibility="public" +> +<parameter name="pointerIndex" type="int"> +</parameter> +<parameter name="pos" type="int"> +</parameter> +</method> +<method name="getHistoricalPointerCoords" + return="void" abstract="false" native="false" synchronized="false" @@ -176919,8 +177262,12 @@ deprecated="not deprecated" visibility="public" > +<parameter name="pointerIndex" type="int"> +</parameter> <parameter name="pos" type="int"> </parameter> +<parameter name="outPointerCoords" type="android.view.MotionEvent.PointerCoords"> +</parameter> </method> <method name="getHistoricalPressure" return="float" @@ -176978,6 +177325,118 @@ <parameter name="pos" type="int"> </parameter> </method> +<method name="getHistoricalToolMajor" + return="float" + abstract="false" + native="false" + synchronized="false" + static="false" + final="true" + deprecated="not deprecated" + visibility="public" +> +<parameter name="pos" type="int"> +</parameter> +</method> +<method name="getHistoricalToolMajor" + return="float" + abstract="false" + native="false" + synchronized="false" + static="false" + final="true" + deprecated="not deprecated" + visibility="public" +> +<parameter name="pointerIndex" type="int"> +</parameter> +<parameter name="pos" type="int"> +</parameter> +</method> +<method name="getHistoricalToolMinor" + return="float" + abstract="false" + native="false" + synchronized="false" + static="false" + final="true" + deprecated="not deprecated" + visibility="public" +> +<parameter name="pos" type="int"> +</parameter> +</method> +<method name="getHistoricalToolMinor" + return="float" + abstract="false" + native="false" + synchronized="false" + static="false" + final="true" + deprecated="not deprecated" + visibility="public" +> +<parameter name="pointerIndex" type="int"> +</parameter> +<parameter name="pos" type="int"> +</parameter> +</method> +<method name="getHistoricalTouchMajor" + return="float" + abstract="false" + native="false" + synchronized="false" + static="false" + final="true" + deprecated="not deprecated" + visibility="public" +> +<parameter name="pos" type="int"> +</parameter> +</method> +<method name="getHistoricalTouchMajor" + return="float" + abstract="false" + native="false" + synchronized="false" + static="false" + final="true" + deprecated="not deprecated" + visibility="public" +> +<parameter name="pointerIndex" type="int"> +</parameter> +<parameter name="pos" type="int"> +</parameter> +</method> +<method name="getHistoricalTouchMinor" + return="float" + abstract="false" + native="false" + synchronized="false" + static="false" + final="true" + deprecated="not deprecated" + visibility="public" +> +<parameter name="pos" type="int"> +</parameter> +</method> +<method name="getHistoricalTouchMinor" + return="float" + abstract="false" + native="false" + synchronized="false" + static="false" + final="true" + deprecated="not deprecated" + visibility="public" +> +<parameter name="pointerIndex" type="int"> +</parameter> +<parameter name="pos" type="int"> +</parameter> +</method> <method name="getHistoricalX" return="float" abstract="false" @@ -177056,6 +177515,45 @@ visibility="public" > </method> +<method name="getOrientation" + return="float" + abstract="false" + native="false" + synchronized="false" + static="false" + final="true" + deprecated="not deprecated" + visibility="public" +> +</method> +<method name="getOrientation" + return="float" + abstract="false" + native="false" + synchronized="false" + static="false" + final="true" + deprecated="not deprecated" + visibility="public" +> +<parameter name="pointerIndex" type="int"> +</parameter> +</method> +<method name="getPointerCoords" + return="void" + abstract="false" + native="false" + synchronized="false" + static="false" + final="true" + deprecated="not deprecated" + visibility="public" +> +<parameter name="pointerIndex" type="int"> +</parameter> +<parameter name="outPointerCoords" type="android.view.MotionEvent.PointerCoords"> +</parameter> +</method> <method name="getPointerCount" return="int" abstract="false" @@ -177150,6 +177648,102 @@ <parameter name="pointerIndex" type="int"> </parameter> </method> +<method name="getToolMajor" + return="float" + abstract="false" + native="false" + synchronized="false" + static="false" + final="true" + deprecated="not deprecated" + visibility="public" +> +</method> +<method name="getToolMajor" + return="float" + abstract="false" + native="false" + synchronized="false" + static="false" + final="true" + deprecated="not deprecated" + visibility="public" +> +<parameter name="pointerIndex" type="int"> +</parameter> +</method> +<method name="getToolMinor" + return="float" + abstract="false" + native="false" + synchronized="false" + static="false" + final="true" + deprecated="not deprecated" + visibility="public" +> +</method> +<method name="getToolMinor" + return="float" + abstract="false" + native="false" + synchronized="false" + static="false" + final="true" + deprecated="not deprecated" + visibility="public" +> +<parameter name="pointerIndex" type="int"> +</parameter> +</method> +<method name="getTouchMajor" + return="float" + abstract="false" + native="false" + synchronized="false" + static="false" + final="true" + deprecated="not deprecated" + visibility="public" +> +</method> +<method name="getTouchMajor" + return="float" + abstract="false" + native="false" + synchronized="false" + static="false" + final="true" + deprecated="not deprecated" + visibility="public" +> +<parameter name="pointerIndex" type="int"> +</parameter> +</method> +<method name="getTouchMinor" + return="float" + abstract="false" + native="false" + synchronized="false" + static="false" + final="true" + deprecated="not deprecated" + visibility="public" +> +</method> +<method name="getTouchMinor" + return="float" + abstract="false" + native="false" + synchronized="false" + static="false" + final="true" + deprecated="not deprecated" + visibility="public" +> +<parameter name="pointerIndex" type="int"> +</parameter> +</method> <method name="getX" return="float" abstract="false" @@ -177236,6 +177830,41 @@ </parameter> <parameter name="action" type="int"> </parameter> +<parameter name="pointers" type="int"> +</parameter> +<parameter name="pointerIds" type="int[]"> +</parameter> +<parameter name="pointerCoords" type="android.view.MotionEvent.PointerCoords[]"> +</parameter> +<parameter name="metaState" type="int"> +</parameter> +<parameter name="xPrecision" type="float"> +</parameter> +<parameter name="yPrecision" type="float"> +</parameter> +<parameter name="deviceId" type="int"> +</parameter> +<parameter name="edgeFlags" type="int"> +</parameter> +<parameter name="source" type="int"> +</parameter> +</method> +<method name="obtain" + return="android.view.MotionEvent" + abstract="false" + native="false" + synchronized="false" + static="true" + final="false" + deprecated="not deprecated" + visibility="public" +> +<parameter name="downTime" type="long"> +</parameter> +<parameter name="eventTime" type="long"> +</parameter> +<parameter name="action" type="int"> +</parameter> <parameter name="x" type="float"> </parameter> <parameter name="y" type="float"> @@ -177676,6 +178305,113 @@ > </field> </class> +<class name="MotionEvent.PointerCoords" + extends="java.lang.Object" + abstract="false" + static="true" + final="true" + deprecated="not deprecated" + visibility="public" +> +<constructor name="MotionEvent.PointerCoords" + type="android.view.MotionEvent.PointerCoords" + static="false" + final="false" + deprecated="not deprecated" + visibility="public" +> +</constructor> +<field name="orientation" + type="float" + transient="false" + volatile="false" + static="false" + final="false" + deprecated="not deprecated" + visibility="public" +> +</field> +<field name="pressure" + type="float" + transient="false" + volatile="false" + static="false" + final="false" + deprecated="not deprecated" + visibility="public" +> +</field> +<field name="size" + type="float" + transient="false" + volatile="false" + static="false" + final="false" + deprecated="not deprecated" + visibility="public" +> +</field> +<field name="toolMajor" + type="float" + transient="false" + volatile="false" + static="false" + final="false" + deprecated="not deprecated" + visibility="public" +> +</field> +<field name="toolMinor" + type="float" + transient="false" + volatile="false" + static="false" + final="false" + deprecated="not deprecated" + visibility="public" +> +</field> +<field name="touchMajor" + type="float" + transient="false" + volatile="false" + static="false" + final="false" + deprecated="not deprecated" + visibility="public" +> +</field> +<field name="touchMinor" + type="float" + transient="false" + volatile="false" + static="false" + final="false" + deprecated="not deprecated" + visibility="public" +> +</field> +<field name="x" + type="float" + transient="false" + volatile="false" + static="false" + final="false" + deprecated="not deprecated" + visibility="public" +> +</field> +<field name="y" + type="float" + transient="false" + volatile="false" + static="false" + final="false" + deprecated="not deprecated" + visibility="public" +> +</field> +</class> <class name="OrientationEventListener" extends="java.lang.Object" abstract="true" |