/cts/tests/tests/hardware/src/android/hardware/input/cts/tests/ |
D | VirtualStylusTest.java | 167 final int pressure = 0; in sendHoverEvents() local 169 sendMotionEvent(VirtualStylusMotionEvent.ACTION_DOWN, x0, y0, pressure, toolType); in sendHoverEvents() 170 sendMotionEvent(VirtualStylusMotionEvent.ACTION_MOVE, x0, y1, pressure, toolType); in sendHoverEvents() 171 sendMotionEvent(VirtualStylusMotionEvent.ACTION_MOVE, x1, y1, pressure, toolType); in sendHoverEvents() 172 sendMotionEvent(VirtualStylusMotionEvent.ACTION_UP, x1, y1, pressure, toolType); in sendHoverEvents() 243 final int pressure = 255; in verifyStylusTouchWithTilt() local 246 sendMotionEvent(VirtualStylusMotionEvent.ACTION_DOWN, x0, y0, pressure, toolType, in verifyStylusTouchWithTilt() 248 sendMotionEvent(VirtualStylusMotionEvent.ACTION_MOVE, x0, y1, pressure, toolType, in verifyStylusTouchWithTilt() 250 sendMotionEvent(VirtualStylusMotionEvent.ACTION_MOVE, x1, y1, pressure, toolType, in verifyStylusTouchWithTilt() 252 sendMotionEvent(VirtualStylusMotionEvent.ACTION_UP, x1, y1, pressure, toolType, in verifyStylusTouchWithTilt() [all …]
|
D | VirtualTouchEventTest.java | 39 final float pressure = 0.5f; in parcelAndUnparcel_matches() local 48 .setPressure(pressure) in parcelAndUnparcel_matches() 170 final float pressure = 0.5f; in touchEvent_palmAndCancelUsedProperly() local 178 .setPressure(pressure) in touchEvent_palmAndCancelUsedProperly() 188 assertWithMessage("Incorrect pressure").that(event.getPressure()).isEqualTo(pressure); in touchEvent_palmAndCancelUsedProperly() 223 final float pressure = 0.5f; in touchEvent_validWithPressureAndAxis_created() local 231 .setPressure(pressure) in touchEvent_validWithPressureAndAxis_created() 241 assertWithMessage("Incorrect pressure").that(event.getPressure()).isEqualTo(pressure); in touchEvent_validWithPressureAndAxis_created()
|
D | VirtualStylusMotionEventTest.java | 47 final int pressure = 10; in parcelAndUnparcel_matches() local 56 .setPressure(pressure) in parcelAndUnparcel_matches() 231 final int pressure = 10; in stylusMotionEvent_validWithPressureAndTilt_created() local 240 .setPressure(pressure) in stylusMotionEvent_validWithPressureAndTilt_created() 253 assertWithMessage("Incorrect pressure").that(event.getPressure()).isEqualTo(pressure); in stylusMotionEvent_validWithPressureAndTilt_created()
|
/cts/tests/tests/hardware/src/android/hardware/input/cts/virtualcreators/ |
D | VirtualInputEventCreator.java | 29 float pressure, float relativeX, float relativeY, float vScroll) { in createMouseEvent() argument 37 pointerCoords.setAxisValue(MotionEvent.AXIS_PRESSURE, pressure); in createMouseEvent() 58 float pressure) { in createMouseEvent() argument 59 return createMouseEvent(action, x, y, buttonState, pressure, 0 /* relativeX */, in createMouseEvent() 63 public static MotionEvent createTouchscreenEvent(int action, float x, float y, float pressure, in createTouchscreenEvent() argument 70 pointerCoords.setAxisValue(MotionEvent.AXIS_PRESSURE, pressure); in createTouchscreenEvent() 150 float pressure, int buttonState) { in createStylusEvent() argument 151 return createStylusEvent(action, toolType, x, y, pressure, buttonState, 0f /* tilt */, in createStylusEvent() 156 float pressure, int buttonState, float tilt, float orientation) { in createStylusEvent() argument 162 pointerCoords.setAxisValue(MotionEvent.AXIS_PRESSURE, pressure); in createStylusEvent()
|
/cts/tests/tests/view/src/android/view/cts/ |
D | MotionEventUtils.java | 80 private float pressure = 1.0f; field in MotionEventUtils.PointerCoordsBuilder 89 public PointerCoordsBuilder withPressure(float pressure) { in withPressure() argument 90 this.pressure = pressure; in withPressure() 125 pointerCoords.pressure = pressure; in build() 145 assertEquals("Pressure should be the same", that.getPressure(), this.pressure, DELTA); in verifyMatches() 147 that.getAxisValue(MotionEvent.AXIS_PRESSURE), this.pressure, DELTA); in verifyMatches() 194 that.getPressure(pointerIndex), this.pressure, DELTA); in verifyMatches() 196 that.getAxisValue(MotionEvent.AXIS_PRESSURE, pointerIndex), this.pressure, in verifyMatches() 251 that.getHistoricalPressure(position), this.pressure, DELTA); in verifyMatchesHistorical() 253 that.getHistoricalAxisValue(MotionEvent.AXIS_PRESSURE, position), this.pressure, in verifyMatchesHistorical() [all …]
|
D | MotionEventTest.java | 703 float pressure = 1.0f; in testGetHistorySize() local 710 mMotionEvent2.addBatch(eventTime, x, y, pressure, size, 0); in testGetHistorySize() 831 assertEquals(0f, coords.pressure, 0.0f); in testPointerCoordsDefaultConstructor() 845 coords.pressure = 3; in testPointerCoordsCopyConstructor() 857 assertEquals(3f, copy.pressure, 0.0f); in testPointerCoordsCopyConstructor() 872 coords.pressure = 3; in testPointerCoordsCopyFrom() 885 assertEquals(3f, copy.pressure, 0.0f); in testPointerCoordsCopyFrom()
|
/cts/libs/input/src/com/android/cts/input/ |
D | InputEventMatchers.kt | 213 fun withPressure(pressure: Float): Matcher<MotionEvent> = object : TypeSafeMatcher<MotionEvent>() { in withPressure() 215 description.appendText("With pressure = $pressure") in withPressure() 219 return abs(event.pressure - pressure) < EPSILON in withPressure()
|
D | UinputTouchDevice.kt | 108 fun sendPressure(pressure: Int) { in sendPressure() 109 injectEvent(intArrayOf(EV_ABS, ABS_MT_PRESSURE, pressure)) in sendPressure()
|
/cts/tests/tests/systemui/src/android/systemui/cts/ |
D | TouchHelper.java | 74 coords.pressure = 1; in getMotionEvent()
|
/cts/tests/tests/mediacujtest/common/src/android/media/cujcommon/cts/ |
D | PinchToZoomTestPlayerListener.java | 60 pointerCoords.pressure = 1; in getDisplayPointer()
|
/cts/tests/inputmethod/util/src/android/view/inputmethod/cts/util/ |
D | TestUtils.java | 543 coords[0].pressure = 1; in getMotionEvent()
|
/cts/tests/autofillservice/src/android/autofillservice/cts/testcore/ |
D | UiBot.java | 1567 coords.pressure = 1.0F;
|
/cts/tests/tests/tv/src/android/media/tv/cts/ |
D | TvInputServiceTest.java | 1263 assertThat(actual).pressure().isEqualTo(expected.getPressure()); in assertMotionEventEquals()
|
/cts/common/device-side/bedstead/remoteframeworkclasses/java/apis/ |
D | current.txt | 18629 field public static final String STRING_TYPE_PRESSURE = "android.sensor.pressure"; 51968 field public float pressure;
|