/cts/tests/input/src/android/input/cts/ |
D | MotionEventIsResampledTest.kt | 102 fun checkPointerCoords(coords: MotionEvent.PointerCoords) { in testIsResampled() 104 assertEquals(y.toFloat(), coords.y) in testIsResampled() 110 val shouldBeResampled = !xCoords.contains(coords.x) in testIsResampled() 111 assertEquals(shouldBeResampled, coords.isResampled()) in testIsResampled() 112 if (coords.isResampled()) numResamples++ in testIsResampled() 120 val coords = MotionEvent.PointerCoords() in testIsResampled() constant 122 event.getHistoricalPointerCoords(0, i, coords) in testIsResampled() 123 checkPointerCoords(coords) in testIsResampled() 125 event.getPointerCoords(0, coords) in testIsResampled() 126 checkPointerCoords(coords) in testIsResampled()
|
D | TouchInjector.kt | 62 val coords = arrayOfNulls<MotionEvent.PointerCoords>(pointerCount) in sendMultiTouchEvent() constant 68 coords[i] = MotionEvent.PointerCoords() in sendMultiTouchEvent() 69 coords[i]!!.x = pointers[i].x in sendMultiTouchEvent() 70 coords[i]!!.y = pointers[i].y in sendMultiTouchEvent() 77 pointerCount, properties, coords, 0 /*metaState*/, 0 /*buttonState*/, in sendMultiTouchEvent() 87 pointerCount, properties, coords, 0 /*metaState*/, 0 /*buttonState*/, in sendMultiTouchEvent()
|
D | MotionPredictorTest.kt | 85 val coords = arrayOfNulls<MotionEvent.PointerCoords>(pointerCount) in getMotionEvent() constant 91 coords[i] = PointerCoords() in getMotionEvent() 92 coords[i]!!.x = x in getMotionEvent() 93 coords[i]!!.y = y in getMotionEvent() 94 coords[i]!!.setAxisValue(MotionEvent.AXIS_TILT, tilt) in getMotionEvent() 95 coords[i]!!.orientation = orientation in getMotionEvent() 104 coords, in getMotionEvent()
|
D | VelocityTrackerTest.kt | 286 val coords = MotionEvent.PointerCoords() in createScrollMotionEvent() constant 287 coords.setAxisValue(MotionEvent.AXIS_SCROLL, mScroll) in createScrollMotionEvent() 295 arrayOf(props), arrayOf(coords), in createScrollMotionEvent()
|
/cts/tests/tests/systemui/src/android/systemui/cts/ |
D | TouchHelper.java | 73 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/ |
D | Wedge.java | 63 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/ |
D | MotionEventTest.java | 827 PointerCoords coords = new PointerCoords(); in testPointerCoordsDefaultConstructor() local 829 assertEquals(0f, coords.x, 0.0f); in testPointerCoordsDefaultConstructor() 830 assertEquals(0f, coords.y, 0.0f); in testPointerCoordsDefaultConstructor() 831 assertEquals(0f, coords.pressure, 0.0f); in testPointerCoordsDefaultConstructor() 832 assertEquals(0f, coords.size, 0.0f); in testPointerCoordsDefaultConstructor() 833 assertEquals(0f, coords.touchMajor, 0.0f); in testPointerCoordsDefaultConstructor() 834 assertEquals(0f, coords.touchMinor, 0.0f); in testPointerCoordsDefaultConstructor() 835 assertEquals(0f, coords.toolMajor, 0.0f); in testPointerCoordsDefaultConstructor() 836 assertEquals(0f, coords.toolMinor, 0.0f); in testPointerCoordsDefaultConstructor() 837 assertEquals(0f, coords.orientation, 0.0f); in testPointerCoordsDefaultConstructor() [all …]
|
D | TouchDelegateTest.java | 227 MotionEvent.PointerCoords[] coords = new MotionEvent.PointerCoords[pointerCount]; in dispatchMultiTouchMotionEventToActivity() local 233 coords[i] = new MotionEvent.PointerCoords(); in dispatchMultiTouchMotionEventToActivity() 234 coords[i].x = mActivity.x + i * 10; // small offset so that pointers do not overlap in dispatchMultiTouchMotionEventToActivity() 235 coords[i].y = y; in dispatchMultiTouchMotionEventToActivity() 239 properties, coords, 0, 0, 0, 0, in dispatchMultiTouchMotionEventToActivity()
|
D | ViewTest.java | 4564 MotionEvent.PointerCoords[] coords = new MotionEvent.PointerCoords[] { in testFilterTouchesWhenObscured() local 4568 1, props, coords, 0, 0, 0, 0, -1, 0, InputDevice.SOURCE_TOUCHSCREEN, in testFilterTouchesWhenObscured() 4571 1, props, coords, 0, 0, 0, 0, -1, 0, InputDevice.SOURCE_TOUCHSCREEN, in testFilterTouchesWhenObscured()
|
/cts/hostsidetests/securitybulletin/securityPatch/Bug-115739809/ |
D | poc.cpp | 150 outMsg->body.motion.pointers[i].coords.bits = in sanitizeMessage() 151 msg.body.motion.pointers[i].coords.bits; in sanitizeMessage() 152 const uint32_t count = BitSet64::count(msg.body.motion.pointers[i].coords.bits); in sanitizeMessage() 153 memcpy(&outMsg->body.motion.pointers[i].coords.values[0], in sanitizeMessage() 154 &msg.body.motion.pointers[i].coords.values[0], in sanitizeMessage() 155 count * sizeof(msg.body.motion.pointers[i].coords.values[0])); in sanitizeMessage() 156 outMsg->body.motion.pointers[i].coords.isResampled = in sanitizeMessage() 157 msg.body.motion.pointers[i].coords.isResampled; in sanitizeMessage()
|
/cts/apps/CameraITS/tests/scene8/ |
D | test_ae_awb_regions.py | 45 aa_width, aa_height, coords, img_width, img_height): 72 sensor_coords = (coords[0] * aspect_ratio_multiplication_factor + buffer, 73 coords[1] * aspect_ratio_multiplication_factor) 80 sensor_coords = (coords[0] * aspect_ratio_multiplication_factor, 81 coords[1] * aspect_ratio_multiplication_factor + buffer)
|
/cts/tests/openglperf2/assets/fragment/ |
D | blur | 33 vec2 coords = v_TexCoordinate.xy + ((float(i) - 5.0) * u_Scale); 34 color += texture2D(u_Texture, coords) * weights[i];
|
/cts/tests/inputmethod/util/src/android/view/inputmethod/cts/util/ |
D | TestUtils.java | 539 MotionEvent.PointerCoords[] coords = in getMotionEvent() local 541 coords[0].x = x; in getMotionEvent() 542 coords[0].y = y; in getMotionEvent() 543 coords[0].pressure = 1; in getMotionEvent() 546 1 /* pointerCount */, properties, coords, 0 /* metaState */, in getMotionEvent() 598 MotionEvent.PointerCoords[] coords = new MotionEvent.PointerCoords[pointerCount]; in splitBatchedMotionEvent() local 601 coords[p] = new MotionEvent.PointerCoords(); in splitBatchedMotionEvent() 602 event.getHistoricalPointerCoords(p, h, coords[p]); in splitBatchedMotionEvent() 606 pointerCount, properties, coords, in splitBatchedMotionEvent()
|
/cts/tests/tests/text/src/android/text/method/cts/ |
D | BaseMovementMethodTest.java | 289 final MotionEvent.PointerCoords[] coords = new MotionEvent.PointerCoords[1]; in createScrollEvent() local 290 coords[0] = new MotionEvent.PointerCoords(); in createScrollEvent() 291 coords[0].setAxisValue(MotionEvent.AXIS_VSCROLL, vertical); in createScrollEvent() 292 coords[0].setAxisValue(MotionEvent.AXIS_HSCROLL, horizontal); in createScrollEvent() 295 pointerProperties, coords, meta, 0, 1.0f, 1.0f, 0, 0, in createScrollEvent()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | HorizontalScrollViewTest.java | 977 int[] coords = new int[2]; in testSurfaceViewStretchAtEnd() 978 mScrollViewStretch.getLocationInWindow(coords); in testSurfaceViewStretchAtEnd() 983 coords[0] + mScrollViewStretch.getWidth() / 2, in testSurfaceViewStretchAtEnd() 984 coords[1] + mScrollViewStretch.getHeight() / 2)); in testSurfaceViewStretchAtEnd() 1053 int[] coords = new int[2]; in testSurfaceViewStretchAtEndWithScale() 1054 mScrollViewStretch.getLocationInWindow(coords); in testSurfaceViewStretchAtEndWithScale() 1062 coords[0] + containerWidth / 4, in testSurfaceViewStretchAtEndWithScale() 1063 coords[1] + containerHeight / 4); in testSurfaceViewStretchAtEndWithScale() 1065 coords[0] + containerWidth / 2 + containerWidth / 4, in testSurfaceViewStretchAtEndWithScale() 1066 coords[1] + containerHeight / 4); in testSurfaceViewStretchAtEndWithScale() [all …]
|
D | ScrollViewTest.java | 1049 int[] coords = new int[2]; in testSurfaceViewStretchAtEnd() 1050 mScrollViewStretch.getLocationInWindow(coords); in testSurfaceViewStretchAtEnd() 1055 coords[0] + mScrollViewStretch.getWidth() / 2, in testSurfaceViewStretchAtEnd() 1056 coords[1] + mScrollViewStretch.getHeight() / 2)); in testSurfaceViewStretchAtEnd() 1124 int[] coords = new int[2]; in testSurfaceViewStretchAtEndWithScale() 1125 mScrollViewStretch.getLocationInWindow(coords); in testSurfaceViewStretchAtEndWithScale() 1133 coords[0] + containerWidth / 4, in testSurfaceViewStretchAtEndWithScale() 1134 coords[1] + (containerHeight / 4) + 3 in testSurfaceViewStretchAtEndWithScale() 1138 coords[0] + containerWidth / 2 + containerWidth / 4, in testSurfaceViewStretchAtEndWithScale() 1139 coords[1] + (containerHeight / 4) + 3 in testSurfaceViewStretchAtEndWithScale() [all …]
|
/cts/tests/tests/hardware/src/android/hardware/input/cts/tests/ |
D | InputTestCase.java | 369 MotionEvent.PointerCoords[] coords = new MotionEvent.PointerCoords[pointerCount]; in splitBatchedMotionEvent() local 372 coords[p] = new MotionEvent.PointerCoords(); in splitBatchedMotionEvent() 373 event.getHistoricalPointerCoords(p, h, coords[p]); in splitBatchedMotionEvent() 377 pointerCount, properties, coords, in splitBatchedMotionEvent()
|
/cts/libs/input/src/com/android/cts/input/ |
D | InputJsonParser.java | 503 MotionEvent.PointerCoords[] coords = new MotionEvent.PointerCoords[pointerCount]; in parseMotionEvent() local 505 coords[i] = new MotionEvent.PointerCoords(); in parseMotionEvent() 531 coords[i].setAxisValue(MotionEvent.axisFromString(axis), value); in parseMotionEvent() 537 pointerCount, properties, coords, 0, buttonState, 0f, 0f, in parseMotionEvent()
|
/cts/tests/autofillservice/src/android/autofillservice/cts/testcore/ |
D | UiBot.java | 1566 final MotionEvent.PointerCoords coords = new MotionEvent.PointerCoords(); 1567 coords.pressure = 1.0F; 1568 coords.size = 1.0F; 1569 coords.x = p.x; 1570 coords.y = p.y; 1573 new MotionEvent.PointerCoords[]{coords}, 0, 0, 1.0F, 1.0F, 0, 0,
|
/cts/tests/tests/media/codec/src/android/media/codec/cts/ |
D | EncodeVirtualDisplayWithCompositionTestImpl.java | 364 int[][] coords = new int[][] {{ww, hh}, {ww * 3, hh}, {ww * 3, hh * 3}, {ww, hh * 3}}; in checkRotatedFrameQuadrants() local 371 for (int i = 0; i < coords.length; i++) { in checkRotatedFrameQuadrants() 372 int[] c = coords[i]; in checkRotatedFrameQuadrants()
|