Home
last modified time | relevance | path

Searched refs:getX (Results 1 – 25 of 31) 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()
191 mLastX = event.getX(); 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()
207 mLastX = event.getX(); 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/renderscript/src/android/renderscript/cts/
DImageProcessingTest.java96 a1_copy.copy2DRangeFrom(0, 0, a1.getType().getX(), a1.getType().getY(), a1, 0, 0); in testBlur()
680 a1_copy.copy2DRangeFrom(0, 0, a1.getType().getX(), a1.getType().getY(), a1, 0, 0); in testColorMatrix()
681 a2_copy.copy2DRangeFrom(0, 0, a2.getType().getX(), a2.getType().getY(), a2, 0, 0); in testColorMatrix()
691 a1_copy.copy2DRangeFrom(0, 0, a1.getType().getX(), a1.getType().getY(), a1, 0, 0); in testColorMatrix()
692 a2_copy.copy2DRangeFrom(0, 0, a2.getType().getX(), a2.getType().getY(), a2, 0, 0); in testColorMatrix()
709 a1_copy.copy2DRangeFrom(0, 0, a1.getType().getX(), a1.getType().getY(), a1, 0, 0); in testConvolve3x3()
733 a1_copy.copy2DRangeFrom(0, 0, a1.getType().getX(), a1.getType().getY(), a1, 0, 0); in testConvolve5x5()
759 a1_copy.copy2DRangeFrom(0, 0, a1.getType().getX(), a1.getType().getY(), a1, 0, 0); in testLUT()
806 a1_copy.copy2DRangeFrom(0, 0, a1.getType().getX(), a1.getType().getY(), a1, 0, 0); in testScriptGroup()
DTypeTest.java135 assertTrue(b.create().getX() == 3); in testGetX()
142 assertTrue(t.getX() == 3); in testGetY()
DAllocationTest.java109 assertEquals(A.getType().getX(), i); in createSizedHelper()
845 assertTrue(a.getType().getX() == 100); in testDimReturnsZero()
854 assertTrue(a.getType().getX() == 1); in testDimReturnsZero()
863 assertTrue(a.getType().getX() == 102); in testDimReturnsZero()
871 assertTrue(a.getType().getX() == 102); in testDimReturnsZero()
879 assertTrue(a.getType().getX() == 2); in testDimReturnsZero()
DComputeTest.java727 int x = t.getX(); in setUpAllocation()
738 int x = t.getX(); in checkAllocation()
/cts/tests/camera/src/android/hardware/camera2/cts/rs/
DScriptYuvMeans1d.java65 int width = mInputAllocation.getType().getX(); in updateScriptInput()
DScriptYuvMeans2dTo1d.java82 int width = mInputAllocation.getType().getX(); in updateScriptInput()
DAllocationInfo.java66 new Size(allocation.getType().getX(), allocation.getType().getY()), in newInstance()
/cts/tests/tests/view/src/android/view/cts/
DMotionEventTest.java113 assertEquals(X_3F, mMotionEvent1.getX(), DELTA); in testObtainBasic()
133 assertEquals(mMotionEvent2.getX(), mMotionEventDynamic.getX(), DELTA); in testObtainFromMotionEvent()
135 assertEquals(mMotionEvent2.getX(), mMotionEventDynamic.getRawX(), DELTA); in testObtainFromMotionEvent()
155 assertEquals(X_3F, mMotionEventDynamic.getX(), DELTA); in testObtainAllFields()
271 assertEquals(mMotionEvent2.getX(), motionEvent.getX(), DELTA); in testWriteToParcel()
323 assertEquals(X_3F, mMotionEvent2.getX(), DELTA); in testOffsetLocationForPointerSource()
338 assertEquals(X_3F, mMotionEvent2.getX(), DELTA); in testNoLocationOffsetForNonPointerSource()
353 assertEquals(X_3F, mMotionEvent2.getX(), DELTA); in testSetLocation()
729 .append(ev.getX(i)).append(",").append(ev.getY(i)).append("), orientation=") in dump()
DPixelCopyTest.java898 Function<Float, Integer> getX = (Float x) -> (int) (bitmap.getWidth() * x); in assertBitmapQuadColor() local
903 getX.apply(.25f), getY.apply(.25f), threshold); in assertBitmapQuadColor()
905 getX.apply(.75f), getY.apply(.25f), threshold); in assertBitmapQuadColor()
907 getX.apply(.25f), getY.apply(.75f), threshold); in assertBitmapQuadColor()
909 getX.apply(.75f), getY.apply(.75f), threshold); in assertBitmapQuadColor()
914 getX.apply(below), getY.apply(below), threshold); in assertBitmapQuadColor()
916 getX.apply(above), getY.apply(below), threshold); in assertBitmapQuadColor()
918 getX.apply(below), getY.apply(above), threshold); in assertBitmapQuadColor()
920 getX.apply(above), getY.apply(above), threshold); in assertBitmapQuadColor()
DViewUnbufferedTest.java147 assertEquals((int) sentEvent.getX(), receivedEvent.mX + offsets[0]); in compareEvent()
249 (int) event.getX(), (int) event.getY(), event.getSource())); in receivedEvent()
DMotionEventUtils.java130 assertEquals("X coordinates should be the same", that.getX(), this.x, DELTA); in verifyMatches()
174 that.getX(pointerIndex), this.x, DELTA); in verifyMatches()
/cts/tests/tests/animation/src/android/animation/cts/
DShapeHolder.java48 public float getX() { in getX() method in ShapeHolder
DCreationTest.java146 public float getX() { in getX() method in CreationTest.DummyAnimatorTarget
DAnimationActivity.java268 canvas.translate(shapeHolder.getX(), shapeHolder.getY()); in onDraw()
/cts/libs/view/src/com/android/view/
DPosition.java31 public float getX() { in getX() method in Position
/cts/tests/tests/view/src/android/view/animation/cts/
DAnimatorInflaterTest.java237 assertEquals(resetValue, mTestView.getX(), 0.0f); in loadStateListAnimatorWithChangingResetStateTest()
264 assertEquals(targetValue, mTestView.getX(), 0.0f); in loadChangingStateListAnimatorTest()
306 public float getX() { in getX() method in AnimatorInflaterTest.DummyObject
/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/tests/rsblas/src/android/renderscript/cts/
DIntrinsicBLAS.java210 int N = A.getType().getX(); in validateGEMV()
231 if (X.getType().getX() != expectedXDim || in validateGEMV()
232 Y.getType().getX() != expectedYDim) { in validateGEMV()
1238 if (A.getType().getX() != N) { in validateSYMV()
1254 if (X.getType().getX() != expectedXDim) { in validateSYMV()
1258 if (Y.getType().getX() != expectedYDim) { in validateSYMV()
1546 int N = (int)Math.sqrt((double)Ap.getType().getX() * 2); in validateSPMV()
1547 if (Ap.getType().getX() != ((N * (N+1)) / 2)) { in validateSPMV()
1554 if (X.getType().getX() != expectedXDim) { in validateSPMV()
1558 if (Y.getType().getX() != expectedYDim) { in validateSPMV()
[all …]
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DCtsMouseUtil.java129 && ((int) actual.getX()) == mX in matches()
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DViewPropertyAnimatorTests.java405 assertEquals(27.0f, target.getX()); in testViewX()
426 assertEquals(167.0f, target.getX()); in testViewXBy()
/cts/tests/tests/widget/src/android/widget/cts/
DTextViewReceiveContentTest.java658 DragEvent dragEvent = createDragEvent(DragEvent.ACTION_DRAG_LOCATION, mTextView.getX(), in testDragAndDrop_nonEditableTextViewChangedToEditable_actionDragLocation()
690 DragEvent dragEvent = createDragEvent(DragEvent.ACTION_DROP, mTextView.getX(), in testDragAndDrop_nonEditableTextViewChangedToEditable_actionDrop()
853 DragEvent dropEvent = createDragEvent(DragEvent.ACTION_DROP, mTextView.getX(), in triggerDropEvent()
861 when(dragEvent.getX()).thenReturn(x); in createDragEvent()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/utils/
DGestureUtils.java249 return Math.hypot(event.getX() - point.x, event.getY() - point.y) <= tol; in isAtPoint()
260 "received (" + event.getX() + ", " + event.getY() + ")"); in isAtPoint()
/cts/tests/tests/rscpp/librscpptest/
Drs_jni_type.cpp182 passed &= (t->getX() == 3); in Java_android_cts_rscpp_RSTypeTest_testGet()

12