Summary:
Methods
| Inherited Methods
MotionEventSubject
Kotlin
|Java
public
final
class
MotionEventSubject
extends Subject
java.lang.Object | ||
↳ | com.google.common.truth.Subject | |
↳ | androidx.test.ext.truth.view.MotionEventSubject |
Subject
for MotionEvent
.
Summary
Public methods | |
---|---|
static
MotionEventSubject
|
assertThat(MotionEvent event)
|
void
|
hasAction(int action)
|
void
|
hasActionButton(int actionButton)
Check the value of |
void
|
hasButtonState(int buttonState)
|
void
|
hasDeviceId(int deviceId)
|
void
|
hasDownTime(long downTime)
|
void
|
hasEdgeFlags(int edgeFlags)
|
void
|
hasEventTime(long eventTime)
|
void
|
hasFlags(int flags)
|
void
|
hasHistorySize(int historySize)
|
void
|
hasMetaState(int metaState)
|
void
|
hasPointerCount(int pointerCount)
|
LongSubject
|
historicalEventTime(int pos)
|
FloatSubject
|
historicalOrientation(int pos)
|
PointerCoordsSubject
|
historicalPointerCoords(int pointerIndex, int pos)
|
FloatSubject
|
historicalPressure(int pos)
|
FloatSubject
|
historicalSize(int pos)
|
FloatSubject
|
historicalToolMajor(int pos)
|
FloatSubject
|
historicalToolMinor(int pos)
|
FloatSubject
|
historicalTouchMajor(int pos)
|
FloatSubject
|
historicalTouchMinor(int pos)
|
FloatSubject
|
historicalX(int pos)
|
FloatSubject
|
historicalY(int pos)
|
static
Factory<MotionEventSubject, MotionEvent>
|
motionEvents()
|
FloatSubject
|
orientation()
|
FloatSubject
|
orientation(int pointerIndex)
|
PointerCoordsSubject
|
pointerCoords(int pointerIndex)
|
IntegerSubject
|
pointerId(int pointerIndex)
|
PointerPropertiesSubject
|
pointerProperties(int pointerIndex)
|
FloatSubject
|
pressure(int pointerIndex)
|
FloatSubject
|
pressure()
|
FloatSubject
|
rawX()
|
FloatSubject
|
rawY()
|
FloatSubject
|
size(int pointerIndex)
|
FloatSubject
|
size()
|
FloatSubject
|
toolMajor()
|
FloatSubject
|
toolMajor(int pointerIndex)
|
FloatSubject
|
toolMinor(int pointerIndex)
|
FloatSubject
|
toolMinor()
|
FloatSubject
|
touchMajor()
|
FloatSubject
|
touchMajor(int pointerIndex)
|
FloatSubject
|
touchMinor()
|
FloatSubject
|
touchMinor(int pointerIndex)
|
FloatSubject
|
x(int pointerIndex)
|
FloatSubject
|
x()
|
FloatSubject
|
xPrecision()
|
FloatSubject
|
y(int pointerIndex)
|
FloatSubject
|
y()
|
FloatSubject
|
yPrecision()
|
Inherited methods | |
---|---|
Public methods
assertThat
public static MotionEventSubject assertThat (MotionEvent event)
Parameters | |
---|---|
event |
MotionEvent |
Returns | |
---|---|
MotionEventSubject |
hasAction
public void hasAction (int action)
Parameters | |
---|---|
action |
int |
hasActionButton
public void hasActionButton (int actionButton)
Check the value of MotionEvent.getActionButton()
Parameters | |
---|---|
actionButton |
int |
Throws | |
---|---|
IllegalStateException |
if called on below Android API 23 |
hasButtonState
public void hasButtonState (int buttonState)
Parameters | |
---|---|
buttonState |
int |
hasDeviceId
public void hasDeviceId (int deviceId)
Parameters | |
---|---|
deviceId |
int |
hasDownTime
public void hasDownTime (long downTime)
Parameters | |
---|---|
downTime |
long |
hasEdgeFlags
public void hasEdgeFlags (int edgeFlags)
Parameters | |
---|---|
edgeFlags |
int |
hasEventTime
public void hasEventTime (long eventTime)
Parameters | |
---|---|
eventTime |
long |
hasFlags
public void hasFlags (int flags)
Parameters | |
---|---|
flags |
int |
hasHistorySize
public void hasHistorySize (int historySize)
Parameters | |
---|---|
historySize |
int |
hasMetaState
public void hasMetaState (int metaState)
Parameters | |
---|---|
metaState |
int |
hasPointerCount
public void hasPointerCount (int pointerCount)
Parameters | |
---|---|
pointerCount |
int |
historicalEventTime
public LongSubject historicalEventTime (int pos)
Parameters | |
---|---|
pos |
int |
Returns | |
---|---|
LongSubject |
historicalOrientation
public FloatSubject historicalOrientation (int pos)
Parameters | |
---|---|
pos |
int |
Returns | |
---|---|
FloatSubject |
historicalPointerCoords
public PointerCoordsSubject historicalPointerCoords (int pointerIndex, int pos)
Parameters | |
---|---|
pointerIndex |
int |
pos |
int |
Returns | |
---|---|
PointerCoordsSubject |
historicalPressure
public FloatSubject historicalPressure (int pos)
Parameters | |
---|---|
pos |
int |
Returns | |
---|---|
FloatSubject |
historicalSize
public FloatSubject historicalSize (int pos)
Parameters | |
---|---|
pos |
int |
Returns | |
---|---|
FloatSubject |
historicalToolMajor
public FloatSubject historicalToolMajor (int pos)
Parameters | |
---|---|
pos |
int |
Returns | |
---|---|
FloatSubject |
historicalToolMinor
public FloatSubject historicalToolMinor (int pos)
Parameters | |
---|---|
pos |
int |
Returns | |
---|---|
FloatSubject |
historicalTouchMajor
public FloatSubject historicalTouchMajor (int pos)
Parameters | |
---|---|
pos |
int |
Returns | |
---|---|
FloatSubject |
historicalTouchMinor
public FloatSubject historicalTouchMinor (int pos)
Parameters | |
---|---|
pos |
int |
Returns | |
---|---|
FloatSubject |
historicalX
public FloatSubject historicalX (int pos)
Parameters | |
---|---|
pos |
int |
Returns | |
---|---|
FloatSubject |
historicalY
public FloatSubject historicalY (int pos)
Parameters | |
---|---|
pos |
int |
Returns | |
---|---|
FloatSubject |
motionEvents
public static Factory<MotionEventSubject, MotionEvent> motionEvents ()
Returns | |
---|---|
Factory<MotionEventSubject, MotionEvent> |
orientation
public FloatSubject orientation ()
Returns | |
---|---|
FloatSubject |
orientation
public FloatSubject orientation (int pointerIndex)
Parameters | |
---|---|
pointerIndex |
int |
Returns | |
---|---|
FloatSubject |
pointerCoords
public PointerCoordsSubject pointerCoords (int pointerIndex)
Parameters | |
---|---|
pointerIndex |
int |
Returns | |
---|---|
PointerCoordsSubject |
pointerId
public IntegerSubject pointerId (int pointerIndex)
Parameters | |
---|---|
pointerIndex |
int |
Returns | |
---|---|
IntegerSubject |
pointerProperties
public PointerPropertiesSubject pointerProperties (int pointerIndex)
Parameters | |
---|---|
pointerIndex |
int |
Returns | |
---|---|
PointerPropertiesSubject |
pressure
public FloatSubject pressure (int pointerIndex)
Parameters | |
---|---|
pointerIndex |
int |
Returns | |
---|---|
FloatSubject |
pressure
public FloatSubject pressure ()
Returns | |
---|---|
FloatSubject |
rawX
public FloatSubject rawX ()
Returns | |
---|---|
FloatSubject |
rawY
public FloatSubject rawY ()
Returns | |
---|---|
FloatSubject |
size
public FloatSubject size (int pointerIndex)
Parameters | |
---|---|
pointerIndex |
int |
Returns | |
---|---|
FloatSubject |
size
public FloatSubject size ()
Returns | |
---|---|
FloatSubject |
toolMajor
public FloatSubject toolMajor ()
Returns | |
---|---|
FloatSubject |
toolMajor
public FloatSubject toolMajor (int pointerIndex)
Parameters | |
---|---|
pointerIndex |
int |
Returns | |
---|---|
FloatSubject |
toolMinor
public FloatSubject toolMinor (int pointerIndex)
Parameters | |
---|---|
pointerIndex |
int |
Returns | |
---|---|
FloatSubject |
toolMinor
public FloatSubject toolMinor ()
Returns | |
---|---|
FloatSubject |
touchMajor
public FloatSubject touchMajor ()
Returns | |
---|---|
FloatSubject |
touchMajor
public FloatSubject touchMajor (int pointerIndex)
Parameters | |
---|---|
pointerIndex |
int |
Returns | |
---|---|
FloatSubject |
touchMinor
public FloatSubject touchMinor ()
Returns | |
---|---|
FloatSubject |
touchMinor
public FloatSubject touchMinor (int pointerIndex)
Parameters | |
---|---|
pointerIndex |
int |
Returns | |
---|---|
FloatSubject |
x
public FloatSubject x (int pointerIndex)
Parameters | |
---|---|
pointerIndex |
int |
Returns | |
---|---|
FloatSubject |
x
public FloatSubject x ()
Returns | |
---|---|
FloatSubject |
xPrecision
public FloatSubject xPrecision ()
Returns | |
---|---|
FloatSubject |
y
public FloatSubject y (int pointerIndex)
Parameters | |
---|---|
pointerIndex |
int |
Returns | |
---|---|
FloatSubject |
y
public FloatSubject y ()
Returns | |
---|---|
FloatSubject |
yPrecision
public FloatSubject yPrecision ()
Returns | |
---|---|
FloatSubject |