Home
last modified time | relevance | path

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

123

/frameworks/av/services/camera/libcameraservice/device3/
DDistortionMapper.cpp289 quad->coords[0], quad->coords[1], in mapRawToCorrected()
290 quad->coords[2], quad->coords[3], in mapRawToCorrected()
291 quad->coords[4], quad->coords[5], in mapRawToCorrected()
292 quad->coords[6], quad->coords[7]); in mapRawToCorrected()
300 corrQuad->coords[0], corrQuad->coords[1], in mapRawToCorrected()
301 corrQuad->coords[2], corrQuad->coords[3], in mapRawToCorrected()
302 corrQuad->coords[4], corrQuad->coords[5], in mapRawToCorrected()
303 corrQuad->coords[6], corrQuad->coords[7]); in mapRawToCorrected()
311 float corrX = corrQuad->coords[0] + u * (corrQuad->coords[2] - corrQuad->coords[0]); in mapRawToCorrected()
313 float corrY = corrQuad->coords[1] + v * (corrQuad->coords[7] - corrQuad->coords[1]); in mapRawToCorrected()
[all …]
/frameworks/native/services/inputflinger/reader/mapper/gestures/
DGestureConverter.cpp167 PointerCoords coords; in handleMove() local
168 coords.clear(); in handleMove()
169 coords.setAxisValue(AMOTION_EVENT_AXIS_X, xCursorPosition); in handleMove()
170 coords.setAxisValue(AMOTION_EVENT_AXIS_Y, yCursorPosition); in handleMove()
171 coords.setAxisValue(AMOTION_EVENT_AXIS_RELATIVE_X, deltaX); in handleMove()
172 coords.setAxisValue(AMOTION_EVENT_AXIS_RELATIVE_Y, deltaY); in handleMove()
174 coords.setAxisValue(AMOTION_EVENT_AXIS_PRESSURE, down ? 1.0f : 0.0f); in handleMove()
178 /* pointerCount= */ 1, mFingerProps.data(), &coords, xCursorPosition, in handleMove()
191 PointerCoords coords; in handleButtonsChange() local
192 coords.clear(); in handleButtonsChange()
[all …]
/frameworks/native/services/inputflinger/reader/mapper/
DCapturedTouchpadEventConverter.cpp166 std::vector<PointerCoords> coords; in sync() local
179 coordsIndexForSlotNumber[slotNumber] = coords.size(); in sync()
180 coords.push_back(makePointerCoordsForSlot(mMotionAccumulator.getSlot(slotNumber))); in sync()
184 makeMotionArgs(when, readTime, AMOTION_EVENT_ACTION_MOVE, coords, properties)); in sync()
205 if (coords.size() - upSlots.size() + downSlots.size() == 0) { in sync()
221 coords, properties, /*actionButton=*/button)); in sync()
230 if (coords.size() == 1) { in sync()
235 out.push_back(makeMotionArgs(when, readTime, action, coords, properties, /*actionButton=*/0, in sync()
239 coords.erase(coords.begin() + indexToRemove); in sync()
253 const size_t coordsIndex = coords.size(); in sync()
[all …]
/frameworks/base/tests/FlickerTests/src/com/android/server/wm/flicker/helpers/
DGestureHelper.java194 @NonNull PointerCoords[] coords, long downTime, int index) { in nonPrimaryPointerDown() argument
196 if (props.length != coords.length || coords.length < 2) { in nonPrimaryPointerDown()
203 + (index << MotionEvent.ACTION_POINTER_INDEX_SHIFT), coords.length, props, coords); in nonPrimaryPointerDown()
209 @NonNull PointerCoords[] coords, @NonNull Tuple[] endPoints, long downTime, int steps) { in movePointers() argument
211 if (props.length != coords.length || coords.length != endPoints.length) { in movePointers()
221 Tuple[] startPoints = new Tuple[coords.length]; in movePointers()
223 for (int i = 0; i < coords.length; i++) { in movePointers()
224 startPoints[i] = new Tuple(coords[i].x, coords[i].y); in movePointers()
235 for (int j = 0; j < coords.length; j++) { in movePointers()
236 coords[j].x += (endPoints[j].x - startPoints[j].x) / steps; in movePointers()
[all …]
/frameworks/native/services/inputflinger/tests/
DInputProcessorConverter_test.cpp35 PointerCoords coords; in generateBasicMotionArgs() local
36 coords.clear(); in generateBasicMotionArgs()
37 coords.setAxisValue(AMOTION_EVENT_AXIS_X, 1); in generateBasicMotionArgs()
38 coords.setAxisValue(AMOTION_EVENT_AXIS_Y, 2); in generateBasicMotionArgs()
39 coords.setAxisValue(AMOTION_EVENT_AXIS_SIZE, 0.5); in generateBasicMotionArgs()
46 /*pointerCount=*/1, &properties, &coords, /*xPrecision=*/0, in generateBasicMotionArgs()
53 static float getMotionEventAxis(common::PointerCoords coords, common::Axis axis) { in getMotionEventAxis() argument
54 uint32_t index = BitSet64::getIndexOfBit(static_cast<uint64_t>(coords.bits), in getMotionEventAxis()
56 return coords.values[index]; in getMotionEventAxis()
DInputMapperTest.cpp221 void InputMapperTest::assertPointerCoords(const PointerCoords& coords, float x, float y, in assertPointerCoords() argument
226 ASSERT_NEAR(x, coords.getAxisValue(AMOTION_EVENT_AXIS_X), scaledAxisEpsilon); in assertPointerCoords()
227 ASSERT_NEAR(y, coords.getAxisValue(AMOTION_EVENT_AXIS_Y), scaledAxisEpsilon); in assertPointerCoords()
228 ASSERT_NEAR(pressure, coords.getAxisValue(AMOTION_EVENT_AXIS_PRESSURE), EPSILON); in assertPointerCoords()
229 ASSERT_NEAR(size, coords.getAxisValue(AMOTION_EVENT_AXIS_SIZE), EPSILON); in assertPointerCoords()
230 ASSERT_NEAR(touchMajor, coords.getAxisValue(AMOTION_EVENT_AXIS_TOUCH_MAJOR), scaledAxisEpsilon); in assertPointerCoords()
231 ASSERT_NEAR(touchMinor, coords.getAxisValue(AMOTION_EVENT_AXIS_TOUCH_MINOR), scaledAxisEpsilon); in assertPointerCoords()
232 ASSERT_NEAR(toolMajor, coords.getAxisValue(AMOTION_EVENT_AXIS_TOOL_MAJOR), scaledAxisEpsilon); in assertPointerCoords()
233 ASSERT_NEAR(toolMinor, coords.getAxisValue(AMOTION_EVENT_AXIS_TOOL_MINOR), scaledAxisEpsilon); in assertPointerCoords()
234 ASSERT_NEAR(orientation, coords.getAxisValue(AMOTION_EVENT_AXIS_ORIENTATION), EPSILON); in assertPointerCoords()
[all …]
DInputProcessor_test.cpp42 PointerCoords coords; in generateBasicMotionArgs() local
43 coords.clear(); in generateBasicMotionArgs()
44 coords.setAxisValue(AMOTION_EVENT_AXIS_X, 1); in generateBasicMotionArgs()
45 coords.setAxisValue(AMOTION_EVENT_AXIS_Y, 1); in generateBasicMotionArgs()
52 /*pointerCount=*/1, &properties, &coords, /*xPrecision=*/0, in generateBasicMotionArgs()
/frameworks/base/opengl/java/javax/microedition/khronos/opengles/
DGL11Ext.java55 float[] coords, in glDrawTexfvOES() argument
60 java.nio.FloatBuffer coords in glDrawTexfvOES() argument
72 int[] coords, in glDrawTexivOES() argument
77 java.nio.IntBuffer coords in glDrawTexivOES() argument
89 short[] coords, in glDrawTexsvOES() argument
94 java.nio.ShortBuffer coords in glDrawTexsvOES() argument
106 int[] coords, in glDrawTexxvOES() argument
111 java.nio.IntBuffer coords in glDrawTexxvOES() argument
/frameworks/native/libs/input/tests/
DInputEvent_test.cpp47 PointerCoords coords; in TEST_F() local
48 coords.clear(); in TEST_F()
50 ASSERT_EQ(0ULL, coords.bits); in TEST_F()
51 ASSERT_FALSE(coords.isResampled); in TEST_F()
55 PointerCoords coords; in TEST_F() local
56 coords.clear(); in TEST_F()
59 ASSERT_EQ(0, coords.getAxisValue(0)) in TEST_F()
61 ASSERT_EQ(0, coords.getAxisValue(1)) in TEST_F()
65 ASSERT_EQ(OK, coords.setAxisValue(1, 5)); in TEST_F()
66 ASSERT_EQ(5, coords.values[0]); in TEST_F()
[all …]
DMotionPredictor_test.cpp50 PointerCoords coords; in getMotionEvent() local
51 coords.clear(); in getMotionEvent()
52 coords.setAxisValue(AMOTION_EVENT_AXIS_X, x); in getMotionEvent()
53 coords.setAxisValue(AMOTION_EVENT_AXIS_Y, y); in getMotionEvent()
54 pointerCoords.push_back(coords); in getMotionEvent()
/frameworks/av/services/camera/libcameraservice/tests/
DDistortionMapperTest.cpp134 auto coords = basicCoords; in TEST() local
136 res = m.mapCorrectedToRaw(coords.data(), 5, mapperInfo, /*clamp*/true); in TEST()
139 for (size_t i = 0; i < coords.size(); i++) { in TEST()
140 EXPECT_EQ(coords[i], basicCoords[i]); in TEST()
143 res = m.mapRawToCorrected(coords.data(), 5, mapperInfo, /*clamp*/true); in TEST()
146 for (size_t i = 0; i < coords.size(); i++) { in TEST()
147 EXPECT_EQ(coords[i], basicCoords[i]); in TEST()
206 auto coords = basicCoords; in TEST() local
208 res = m.mapCorrectedToRaw(coords.data(), 5, mapperInfo, /*clamp*/true, /*simple*/true); in TEST()
211 ASSERT_EQ(coords[0], 0); ASSERT_EQ(coords[1], 0); in TEST()
[all …]
DZoomRatioTest.cpp182 auto coords = originalCoords; in subScaleCoordinatesTest() local
183 mapper.scaleCoordinates(coords.data(), coords.size()/2, 1.0f, false /*clamp*/, width, height); in subScaleCoordinatesTest()
184 for (size_t i = 0; i < coords.size(); i++) { in subScaleCoordinatesTest()
185 EXPECT_EQ(coords[i], originalCoords[i]); in subScaleCoordinatesTest()
199 coords = originalCoords; in subScaleCoordinatesTest()
200 mapper.scaleCoordinates(coords.data(), coords.size()/2, 2.0f, false /*clamp*/, width, height); in subScaleCoordinatesTest()
201 for (size_t i = 0; i < coords.size(); i++) { in subScaleCoordinatesTest()
202 EXPECT_LE(std::abs(coords[i] - expected2xCoords[i]), kMaxAllowedPixelError); in subScaleCoordinatesTest()
216 coords = originalCoords; in subScaleCoordinatesTest()
217 mapper.scaleCoordinates(coords.data(), coords.size()/2, 2.0f, true /*clamp*/, width, height); in subScaleCoordinatesTest()
[all …]
/frameworks/base/services/accessibility/java/com/android/server/accessibility/gestures/
DEventDispatcher.java202 PointerCoords[] coords = PointerCoords.createArray(pointerCount); in offsetEvent() local
205 event.getPointerCoords(i, coords[i]); in offsetEvent()
207 coords[i].x += offsetX; in offsetEvent()
208 coords[i].y += offsetY; in offsetEvent()
217 coords, in offsetEvent()
324 MotionEvent.PointerCoords[] coords = new MotionEvent.PointerCoords[pointerCount]; in computeInjectionDownEvent() local
331 coords[i] = new MotionEvent.PointerCoords(); in computeInjectionDownEvent()
332 coords[i].x = x; in computeInjectionDownEvent()
333 coords[i].y = y; in computeInjectionDownEvent()
348 coords, in computeInjectionDownEvent()
[all …]
/frameworks/base/core/tests/coretests/src/android/view/
DViewGroupTest.java73 MotionEvent.PointerCoords[] coords = new MotionEvent.PointerCoords[2]; in testDispatchMouseEventsUnderCursor() local
74 coords[0] = new MotionEvent.PointerCoords(); in testDispatchMouseEventsUnderCursor()
75 coords[0].x = 80; in testDispatchMouseEventsUnderCursor()
76 coords[0].y = 50; in testDispatchMouseEventsUnderCursor()
77 coords[1] = new MotionEvent.PointerCoords(); in testDispatchMouseEventsUnderCursor()
78 coords[1].x = 240; in testDispatchMouseEventsUnderCursor()
79 coords[1].y = 50; in testDispatchMouseEventsUnderCursor()
85 2 /* pointerCount */, properties, coords, 0 /* metaState */, 0 /* buttonState */, in testDispatchMouseEventsUnderCursor()
100 2 /* pointerCount */, properties, coords, 0 /* metaState */, 0 /* buttonState */, in testDispatchMouseEventsUnderCursor()
DMotionEventTest.java54 final PointerCoords[] coords = new PointerCoords[pointerCount]; in testObtainWithDisplayId() local
59 coords[i] = c; in testObtainWithDisplayId()
68 pointerCount, properties, coords, in testObtainWithDisplayId()
88 pointerCount, properties, coords, in testObtainWithDisplayId()
129 final PointerCoords[] coords = new PointerCoords[pointerCount]; in testCalculatesCursorPositionForMultiTouchMouseEvents() local
136 coords[i] = new PointerCoords(); in testCalculatesCursorPositionForMultiTouchMouseEvents()
137 coords[i].x = 20 + i * 20; in testCalculatesCursorPositionForMultiTouchMouseEvents()
138 coords[i].y = 60 - i * 20; in testCalculatesCursorPositionForMultiTouchMouseEvents()
142 0 /* eventTime */, ACTION_POINTER_DOWN, pointerCount, properties, coords, in testCalculatesCursorPositionForMultiTouchMouseEvents()
/frameworks/native/libs/input/
DMotionPredictor.cpp121 const PointerCoords* coords = event.getHistoricalRawPointerCoords(0, i); in record() local
124 .position.x = coords->getAxisValue(AMOTION_EVENT_AXIS_X), in record()
125 .position.y = coords->getAxisValue(AMOTION_EVENT_AXIS_Y), in record()
202 PointerCoords coords; in predict() local
203 coords.clear(); in predict()
204 coords.setAxisValue(AMOTION_EVENT_AXIS_X, predictedPoint.x); in predict()
205 coords.setAxisValue(AMOTION_EVENT_AXIS_Y, predictedPoint.y); in predict()
206 coords.setAxisValue(AMOTION_EVENT_AXIS_PRESSURE, predictedPressure[i]); in predict()
219 event.getPointerCount(), event.getPointerProperties(), &coords); in predict()
221 prediction->addSample(predictionTime, &coords); in predict()
DMotionPredictorMetricsManager.cpp59 const PointerCoords* coords = inputEvent.getRawPointerCoords(/*pointerIndex=*/0); in onRecord() local
60 LOG_ALWAYS_FATAL_IF(coords == nullptr); in onRecord()
61 const GroundTruthPoint groundTruthPoint{{.position = Eigen::Vector2f{coords->getY(), in onRecord()
62 coords->getX()}, in onRecord()
95 const PointerCoords* coords = in onPredict() local
97 LOG_ALWAYS_FATAL_IF(coords == nullptr); in onPredict()
100 PredictionPoint{{.position = Eigen::Vector2f{coords->getY(), coords->getX()}, in onPredict()
/frameworks/native/opengl/tools/glgen/specs/jsr239/
Dglspec-1.1ext3 void glDrawTexfvOES ( const GLfloat *coords )
5 void glDrawTexivOES ( const GLint *coords )
7 void glDrawTexsvOES ( const GLshort *coords )
9 void glDrawTexxvOES ( const GLfixed *coords )
/frameworks/native/services/inputflinger/
DNotifyArgs.cpp118 std::string coords; in dump() local
120 if (!coords.empty()) { in dump()
121 coords += ", "; in dump()
123 coords += StringPrintf("{%" PRIu32 ": ", i); in dump()
124 coords += in dump()
130 coords += StringPrintf(" toolType=%s", ftl::enum_string(toolType).c_str()); in dump()
136 coords += StringPrintf(" major=%.1f minor=%.1f orientation=%.1f", major, minor, in dump()
139 coords += "}"; in dump()
145 coords.c_str(), flags); in dump()
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/common/split/
DDividerViewTest.java103 MotionEvent.PointerCoords coords = new MotionEvent.PointerCoords(); in getMotionEvent() local
104 coords.pressure = 1; in getMotionEvent()
105 coords.size = 1; in getMotionEvent()
106 coords.x = x; in getMotionEvent()
107 coords.y = y; in getMotionEvent()
111 new MotionEvent.PointerCoords[]{coords}, 0, 0, 1.0f, 1.0f, 0, 0, in getMotionEvent()
/frameworks/base/tests/Input/src/com/android/test/input/
DMotionPredictorTest.kt53 val coords = arrayOfNulls<MotionEvent.PointerCoords>(pointerCount) in getStylusMotionEvent() constant
59 coords[i] = PointerCoords() in getStylusMotionEvent()
60 coords[i]!!.x = x in getStylusMotionEvent()
61 coords[i]!!.y = y in getStylusMotionEvent()
65 properties, coords, /*metaState=*/0, /*buttonState=*/0, in getStylusMotionEvent()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/classifier/
DClassifierTest.java178 MotionEvent.PointerCoords coords = new MotionEvent.PointerCoords(); in getPointerCoords() local
179 coords.pressure = 1; in getPointerCoords()
180 coords.size = 1; in getPointerCoords()
181 coords.x = x; in getPointerCoords()
182 coords.y = y; in getPointerCoords()
183 return coords; in getPointerCoords()
/frameworks/base/apct-tests/perftests/core/src/android/input/
DMotionPredictorBenchmark.kt54 val coords = arrayOfNulls<MotionEvent.PointerCoords>(pointerCount) in getStylusMotionEvent() constant
60 coords[i] = PointerCoords() in getStylusMotionEvent()
61 coords[i]!!.x = x in getStylusMotionEvent()
62 coords[i]!!.y = y in getStylusMotionEvent()
66 properties, coords, /*metaState=*/0, /*buttonState=*/0, in getStylusMotionEvent()
/frameworks/base/core/java/com/android/internal/widget/
DPointerLocationView.java504 MotionEvent.PointerCoords coords, int id, MotionEvent event) { in logCoords() argument
561 .append(" (").append(coords.x, 3).append(", ").append(coords.y, 3) in logCoords()
562 .append(") Pressure=").append(coords.pressure, 3) in logCoords()
563 .append(" Size=").append(coords.size, 3) in logCoords()
564 .append(" TouchMajor=").append(coords.touchMajor, 3) in logCoords()
565 .append(" TouchMinor=").append(coords.touchMinor, 3) in logCoords()
566 .append(" ToolMajor=").append(coords.toolMajor, 3) in logCoords()
567 .append(" ToolMinor=").append(coords.toolMinor, 3) in logCoords()
568 .append(" Orientation=").append((float)(coords.orientation * 180 / Math.PI), 1) in logCoords()
571 coords.getAxisValue(MotionEvent.AXIS_TILT) * 180 / Math.PI), 1) in logCoords()
[all …]
/frameworks/native/services/inputflinger/tests/fuzzers/
DInputClassifierFuzzer.cpp32 PointerCoords coords; in generateFuzzedMotionArgs() local
33 coords.clear(); in generateFuzzedMotionArgs()
35 coords.setAxisValue(fdp.ConsumeIntegral<int32_t>(), fdp.ConsumeFloatingPoint<float>()); in generateFuzzedMotionArgs()
50 /*pointerCount=*/1, &properties, &coords, in generateFuzzedMotionArgs()

123