Home
last modified time | relevance | path

Searched refs:coords (Results 1 – 11 of 11) sorted by relevance

/cts/tests/tests/systemui/src/android/systemui/cts/
DTouchHelper.java73 MotionEvent.PointerCoords coords = new MotionEvent.PointerCoords(); in getMotionEvent() local
74 coords.pressure = 1; in getMotionEvent()
75 coords.size = 1; in getMotionEvent()
76 coords.x = x; in getMotionEvent()
77 coords.y = y; in getMotionEvent()
81 new MotionEvent.PointerCoords[] { coords }, in getMotionEvent()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/renderers/
DWedge.java63 float[] coords; in Wedge() local
74 coords = verts.clone(); in Wedge()
85 coords = verts.clone(); in Wedge()
90 mFVertexBuffer.put(coords[i * 3 + j] * 2.0f); in Wedge()
96 mTexBuffer.put(coords[i * 3 + j] * 2.0f + 0.5f); in Wedge()
/cts/tests/tests/view/src/android/view/cts/
DMotionEventTest.java739 PointerCoords coords = new PointerCoords(); in testPointerCoordsDefaultConstructor() local
741 assertEquals(0f, coords.x, 0.0f); in testPointerCoordsDefaultConstructor()
742 assertEquals(0f, coords.y, 0.0f); in testPointerCoordsDefaultConstructor()
743 assertEquals(0f, coords.pressure, 0.0f); in testPointerCoordsDefaultConstructor()
744 assertEquals(0f, coords.size, 0.0f); in testPointerCoordsDefaultConstructor()
745 assertEquals(0f, coords.touchMajor, 0.0f); in testPointerCoordsDefaultConstructor()
746 assertEquals(0f, coords.touchMinor, 0.0f); in testPointerCoordsDefaultConstructor()
747 assertEquals(0f, coords.toolMajor, 0.0f); in testPointerCoordsDefaultConstructor()
748 assertEquals(0f, coords.toolMinor, 0.0f); in testPointerCoordsDefaultConstructor()
749 assertEquals(0f, coords.orientation, 0.0f); in testPointerCoordsDefaultConstructor()
[all …]
DTouchDelegateTest.java216 MotionEvent.PointerCoords[] coords = new MotionEvent.PointerCoords[pointerCount]; in dispatchMultiTouchMotionEventToActivity() local
222 coords[i] = new MotionEvent.PointerCoords(); in dispatchMultiTouchMotionEventToActivity()
223 coords[i].x = mActivity.x + i * 10; // small offset so that pointers do not overlap in dispatchMultiTouchMotionEventToActivity()
224 coords[i].y = y; in dispatchMultiTouchMotionEventToActivity()
228 properties, coords, 0, 0, 0, 0, in dispatchMultiTouchMotionEventToActivity()
DViewTest.java4413 MotionEvent.PointerCoords[] coords = new MotionEvent.PointerCoords[] { in testFilterTouchesWhenObscured() local
4417 1, props, coords, 0, 0, 0, 0, -1, 0, InputDevice.SOURCE_TOUCHSCREEN, in testFilterTouchesWhenObscured()
4420 1, props, coords, 0, 0, 0, 0, -1, 0, InputDevice.SOURCE_TOUCHSCREEN, in testFilterTouchesWhenObscured()
/cts/tests/tests/text/src/android/text/method/cts/
DBaseMovementMethodTest.java211 final MotionEvent.PointerCoords[] coords = new MotionEvent.PointerCoords[1]; in createScrollEvent() local
212 coords[0] = new MotionEvent.PointerCoords(); in createScrollEvent()
213 coords[0].setAxisValue(MotionEvent.AXIS_VSCROLL, vertical); in createScrollEvent()
214 coords[0].setAxisValue(MotionEvent.AXIS_HSCROLL, horizontal); in createScrollEvent()
217 pointerProperties, coords, meta, 0, 1.0f, 1.0f, 0, 0, in createScrollEvent()
/cts/tests/openglperf2/assets/fragment/
Dblur33 vec2 coords = v_TexCoordinate.xy + ((float(i) - 5.0) * u_Scale);
34 color += texture2D(u_Texture, coords) * weights[i];
/cts/hostsidetests/securitybulletin/securityPatch/Bug-115739809/
Dpoc.cpp144 outMsg->body.motion.pointers[i].coords.bits = in sanitizeMessage()
145 msg.body.motion.pointers[i].coords.bits; in sanitizeMessage()
146 const uint32_t count = BitSet64::count(msg.body.motion.pointers[i].coords.bits); in sanitizeMessage()
147 memcpy(&outMsg->body.motion.pointers[i].coords.values[0], in sanitizeMessage()
148 &msg.body.motion.pointers[i].coords.values[0], in sanitizeMessage()
149 count * sizeof(msg.body.motion.pointers[i].coords.values[0])); in sanitizeMessage()
/cts/tests/tests/hardware/src/android/hardware/input/cts/tests/
DInputTestCase.java328 MotionEvent.PointerCoords[] coords = new MotionEvent.PointerCoords[pointerCount]; in splitBatchedMotionEvent() local
331 coords[p] = new MotionEvent.PointerCoords(); in splitBatchedMotionEvent()
332 event.getHistoricalPointerCoords(p, h, coords[p]); in splitBatchedMotionEvent()
336 pointerCount, properties, coords, in splitBatchedMotionEvent()
/cts/libs/input/src/com/android/cts/input/
DInputJsonParser.java502 MotionEvent.PointerCoords[] coords = new MotionEvent.PointerCoords[pointerCount]; in parseMotionEvent() local
504 coords[i] = new MotionEvent.PointerCoords(); in parseMotionEvent()
530 coords[i].setAxisValue(MotionEvent.axisFromString(axis), value); in parseMotionEvent()
536 pointerCount, properties, coords, 0, buttonState, 0f, 0f, in parseMotionEvent()
/cts/tests/tests/media/src/android/media/cts/
DEncodeVirtualDisplayWithCompositionTestImpl.java374 int[][] coords = new int[][] {{ww, hh}, {ww * 3, hh}, {ww * 3, hh * 3}, {ww, hh * 3}}; in checkRotatedFrameQuadrants() local
381 for (int i = 0; i < coords.length; i++) { in checkRotatedFrameQuadrants()
382 int[] c = coords[i]; in checkRotatedFrameQuadrants()