Home
last modified time | relevance | path

Searched refs:getY (Results 1 – 25 of 44) sorted by relevance

12

/cts/tests/tests/systemui/src/android/systemui/cts/
DWindowInsetsPresenterDrawable.java187 mPath.moveTo(event.getX(), event.getY()); in onTouch()
188 p = new Point((int) event.getX(), (int) event.getY()); in onTouch()
192 mLastY = event.getY(); in onTouch()
197 mPath.lineTo(event.getX(), event.getY()); in onTouch()
198 p = new Point((int) event.getX(), (int) event.getY()); in onTouch()
204 mPath.quadTo(mLastX, mLastY, event.getX(), event.getY()); in onTouch()
205 p = new Point((int) event.getX(), (int) event.getY()); in onTouch()
208 mLastY = event.getY(); in onTouch()
212 mPath.lineTo(event.getX(), event.getY()); in onTouch()
213 p = new Point((int) event.getX(), (int) event.getY()); in onTouch()
/cts/tests/tests/hardware/src/android/hardware/cts/
DGeomagneticFieldTest.java74 Math.toDegrees(Math.atan2(field.getY(), field.getX()))); in assertMagneticField()
77 Math.sqrt(field.getX() * field.getX() + field.getY() * field.getY()), in assertMagneticField()
/cts/tests/tests/hardware/src/android/hardware/input/cts/tests/
DVirtualTouchEventTest.java62 assertWithMessage("Recreated event has different y").that(originalEvent.getY()) in parcelAndUnparcel_matches()
63 .isEqualTo(recreatedEvent.getY()); in parcelAndUnparcel_matches()
186 assertWithMessage("Incorrect y").that(event.getY()).isEqualTo(y); in touchEvent_palmAndCancelUsedProperly()
212 assertWithMessage("Incorrect y").that(event.getY()).isEqualTo(y); in touchEvent_valid_created()
239 assertWithMessage("Incorrect y").that(event.getY()).isEqualTo(y); in touchEvent_validWithPressureAndAxis_created()
DVirtualStylusMotionEventTest.java74 assertWithMessage("Recreated event has different y").that(originalEvent.getY()) in parcelAndUnparcel_matches()
75 .isEqualTo(recreatedEvent.getY()); in parcelAndUnparcel_matches()
222 assertWithMessage("Incorrect y").that(event.getY()).isEqualTo(y); in stylusMotionEvent_validWithoutPressureAndTilt_created()
250 assertWithMessage("Incorrect y").that(event.getY()).isEqualTo(y); in stylusMotionEvent_validWithPressureAndTilt_created()
/cts/tests/tests/telephony/current/src/android/telephony/satellite/cts/
DAntennaDirectionTest.java36 assertThat(antennaDirection.getY()).isEqualTo(Y); in testConstructorsAndGetters()
75 assertThat(antennaDirection.getY()).isEqualTo(Y); in testGetY()
/cts/tests/tests/graphics/src/android/graphics/cts/
DGainmapTest.java573 Function<Float, Integer> getY = (Float y) -> (int) (bitmap.getHeight() * y); in assertBitmapQuadColor() local
577 getX.apply(.25f), getY.apply(.25f), threshold); in assertBitmapQuadColor()
579 getX.apply(.75f), getY.apply(.25f), threshold); in assertBitmapQuadColor()
581 getX.apply(.25f), getY.apply(.75f), threshold); in assertBitmapQuadColor()
583 getX.apply(.75f), getY.apply(.75f), threshold); in assertBitmapQuadColor()
588 getX.apply(below), getY.apply(below), threshold); in assertBitmapQuadColor()
590 getX.apply(above), getY.apply(below), threshold); in assertBitmapQuadColor()
592 getX.apply(below), getY.apply(above), threshold); in assertBitmapQuadColor()
594 getX.apply(above), getY.apply(above), threshold); in assertBitmapQuadColor()
/cts/tests/tests/renderscript/src/android/renderscript/cts/
DImageProcessingTest.java101 a1_copy.copy2DRangeFrom(0, 0, a1.getType().getX(), a1.getType().getY(), a1, 0, 0); in testBlur()
736 a1_copy.copy2DRangeFrom(0, 0, a1.getType().getX(), a1.getType().getY(), a1, 0, 0); in testColorMatrix()
737 a2_copy.copy2DRangeFrom(0, 0, a2.getType().getX(), a2.getType().getY(), a2, 0, 0); in testColorMatrix()
747 a1_copy.copy2DRangeFrom(0, 0, a1.getType().getX(), a1.getType().getY(), a1, 0, 0); in testColorMatrix()
748 a2_copy.copy2DRangeFrom(0, 0, a2.getType().getX(), a2.getType().getY(), a2, 0, 0); in testColorMatrix()
765 a1_copy.copy2DRangeFrom(0, 0, a1.getType().getX(), a1.getType().getY(), a1, 0, 0); in testConvolve3x3()
789 a1_copy.copy2DRangeFrom(0, 0, a1.getType().getX(), a1.getType().getY(), a1, 0, 0); in testConvolve5x5()
815 a1_copy.copy2DRangeFrom(0, 0, a1.getType().getX(), a1.getType().getY(), a1, 0, 0); in testLUT()
862 a1_copy.copy2DRangeFrom(0, 0, a1.getType().getX(), a1.getType().getY(), a1, 0, 0); in testScriptGroup()
DSampleTest.java41 int w = t.getY(); in createAlloc()
DAllocationTest.java849 assertTrue(a.getType().getY() == 0); in testDimReturnsZero()
858 assertTrue(a.getType().getY() == 0); in testDimReturnsZero()
867 assertTrue(a.getType().getY() == 0); in testDimReturnsZero()
875 assertTrue(a.getType().getY() == 123); in testDimReturnsZero()
883 assertTrue(a.getType().getY() == 33); in testDimReturnsZero()
/cts/tests/tests/animation/src/android/animation/cts/
DShapeHolder.java56 public float getY() { in getY() method in ShapeHolder
DPropertyValuesHolderTest.java174 final float initialY = mActivity.view.newBall.getY(); in testResetValues()
182 assertEquals(100f, mActivity.view.newBall.getY(), 0.0f); in testResetValues()
194 assertEquals(200f, mActivity.view.newBall.getY(), 0.0f); in testResetValues()
210 float updatedY = mActivity.view.newBall.getY(); in testResetValues()
217 assertEquals("Animation should run as expected", 100f, mActivity.view.newBall.getY(), 0.0f); in testResetValues()
231 updatedY = mActivity.view.newBall.getY(); in testResetValues()
239 assertEquals("Animation should run as expected", 100f, mActivity.view.newBall.getY(), 0.0f); in testResetValues()
810 float y = mActivity.view.newBall.getY(); in getYPosition()
DAnimatorTest.java166 float y = mActivity.view.newBall.getY(); in testEnd()
236 public float getY() { in testNullObjectAnimator() method in AnimatorTest.AnimTarget
DCreationTest.java162 public float getY() { in getY() method in CreationTest.DummyAnimatorTarget
/cts/libs/view/src/com/android/view/
DPosition.java35 public float getY() { in getY() method in Position
/cts/tests/tests/view/src/android/view/cts/
DMotionEventTest.java150 assertEquals(Y_4F, mMotionEvent1.getY(), DELTA); in testObtainBasic()
171 assertEquals(mMotionEvent2.getY(), mMotionEventDynamic.getY(), DELTA); in testObtainFromMotionEvent()
173 assertEquals(mMotionEvent2.getY(), mMotionEventDynamic.getRawY(), DELTA); in testObtainFromMotionEvent()
194 assertEquals(Y_4F, mMotionEventDynamic.getY(), DELTA); in testObtainAllFields()
340 assertEquals(mMotionEvent2.getY(), motionEvent.getY(), DELTA); in testWriteToParcel()
397 assertEquals(Y_4F, mMotionEvent2.getY(), DELTA); in testOffsetLocationForPointerSource()
412 assertEquals(Y_4F, mMotionEvent2.getY(), DELTA); in testNoLocationOffsetForNonPointerSource()
427 assertEquals(Y_4F, mMotionEvent2.getY(), DELTA); in testSetLocation()
817 .append(ev.getX(i)).append(",").append(ev.getY(i)).append("), orientation=") in dump()
1120 new PointF(javaMotionEvent.getX(), javaMotionEvent.getY()) in testNativeToJavaConverter()
DPixelCopyTest.java1094 Function<Float, Integer> getY = (Float y) -> (int) (bitmap.getHeight() * y); in assertBitmapQuadColor() local
1098 getX.apply(.25f), getY.apply(.25f), threshold); in assertBitmapQuadColor()
1100 getX.apply(.75f), getY.apply(.25f), threshold); in assertBitmapQuadColor()
1102 getX.apply(.25f), getY.apply(.75f), threshold); in assertBitmapQuadColor()
1104 getX.apply(.75f), getY.apply(.75f), threshold); in assertBitmapQuadColor()
1109 getX.apply(below), getY.apply(below), threshold); in assertBitmapQuadColor()
1111 getX.apply(above), getY.apply(below), threshold); in assertBitmapQuadColor()
1113 getX.apply(below), getY.apply(above), threshold); in assertBitmapQuadColor()
1115 getX.apply(above), getY.apply(above), threshold); in assertBitmapQuadColor()
DViewUnbufferedTest.java158 assertEquals((int) sentEvent.getY(), receivedEvent.mY + offsets[1]); in compareEvent()
259 Math.round(event.getX()), Math.round(event.getY()), event.getSource())); in receivedEvent()
DMotionEventUtils.java141 assertEquals("Y coordinates should be the same", that.getY(), this.y, DELTA); in verifyMatches()
189 that.getY(pointerIndex), this.y, DELTA); in verifyMatches()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/projection/touch/
DTouchPointView.java72 finger.point = new Point((int)event.getX(pointerIndex), (int)event.getY(pointerIndex)); in onTouchEvent()
/cts/tests/input/src/android/input/cts/
DMotionPredictorTest.kt168 assertEquals(20f, predicted.getY(), yDelta) in testNoMotion()
204 assertEquals(expectedY, predicted.getY(), yDelta) in testLinearMotion()
/cts/tests/tests/rsblas/src/android/renderscript/cts/
DIntrinsicBLAS.java198 if (X.getType().getY() > 2) { in validateVecInput()
209 int M = A.getType().getY(); in validateGEMV()
216 if (X.getType().getY() > 1 || Y.getType().getY() > 1) { in validateGEMV()
1237 int N = A.getType().getY(); in validateSYMV()
1246 if (X.getType().getY() > 1 || Y.getType().getY() > 1) { in validateSYMV()
1538 if (X.getType().getY() > 1 || Y.getType().getY() > 1) { in validateSPMV()
1542 if (Ap.getType().getY() > 1) { in validateSPMV()
1709 int N = A.getType().getY(); in validateTRMV()
1717 if (X.getType().getY() > 1) { in validateTRMV()
2281 if (X.getType().getY() > 1) { in validateTPMV()
[all …]
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DViewPropertyAnimatorTests.java441 assertEquals(77.0f, target.getY()); in testViewY()
462 assertEquals(157.0f, target.getY()); in testViewYBy()
/cts/tests/tests/view/src/android/view/animation/cts/
DAnimatorInflaterTest.java254 assertEquals(resetValue, mTestView.getY(), 0.0f); in loadStateListAnimatorWithChangingResetStateTest()
346 public float getY() { in getY() method in AnimatorInflaterTest.DummyObject
/cts/tests/tests/widget/src/android/widget/cts/
DTextViewReceiveContentTest.java668 mTextView.getY(), null); in testDragAndDrop_nonEditableTextViewChangedToEditable_actionDragLocation()
700 mTextView.getY(), clip); in testDragAndDrop_nonEditableTextViewChangedToEditable_actionDrop()
863 mTextView.getY(), clip); in triggerDropEvent()
871 when(dragEvent.getY()).thenReturn(y); in createDragEvent()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DCtsMouseUtil.java135 && Math.round(actual.getY()) == mY; in matches()

12