Home
last modified time | relevance | path

Searched refs:pressure (Results 1 – 4 of 4) sorted by relevance

/cts/tests/tests/view/src/android/view/cts/
DMotionEventUtils.java80 private float pressure = 1.0f; field in MotionEventUtils.PointerCoordsBuilder
88 public PointerCoordsBuilder withPressure(float pressure) { in withPressure() argument
89 this.pressure = pressure; in withPressure()
119 pointerCoords.pressure = pressure; in build()
138 assertEquals("Pressure should be the same", that.getPressure(), this.pressure, DELTA); in verifyMatches()
140 that.getAxisValue(MotionEvent.AXIS_PRESSURE), this.pressure, DELTA); in verifyMatches()
184 that.getPressure(pointerIndex), this.pressure, DELTA); in verifyMatches()
186 that.getAxisValue(MotionEvent.AXIS_PRESSURE, pointerIndex), this.pressure, in verifyMatches()
237 that.getHistoricalPressure(position), this.pressure, DELTA); in verifyMatchesHistorical()
239 that.getHistoricalAxisValue(MotionEvent.AXIS_PRESSURE, position), this.pressure, in verifyMatchesHistorical()
[all …]
DMotionEventTest.java597 float pressure = 1.0f; in testGetHistorySize() local
604 mMotionEvent2.addBatch(eventTime, x, y, pressure, size, 0); in testGetHistorySize()
724 assertEquals(0f, coords.pressure, 0.0f); in testPointerCoordsDefaultConstructor()
738 coords.pressure = 3; in testPointerCoordsCopyConstructor()
750 assertEquals(3f, copy.pressure, 0.0f); in testPointerCoordsCopyConstructor()
765 coords.pressure = 3; in testPointerCoordsCopyFrom()
778 assertEquals(3f, copy.pressure, 0.0f); in testPointerCoordsCopyFrom()
/cts/tests/tests/systemui/src/android/systemui/cts/
DTouchHelper.java74 coords.pressure = 1; in getMotionEvent()
/cts/tests/tests/tv/src/android/media/tv/cts/
DTvInputServiceTest.java905 assertThat(actual).pressure().isEqualTo(expected.getPressure()); in assertMotionEventEquals()