Home
last modified time | relevance | path

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

12

/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/util/
DCachedPathIteratorFactory.java128 private static void quadCurveSegment(float[] coords, float t0, float t1) { in quadCurveSegment() argument
132 float mx = mu * mu * coords[0] + 2 * mu * mt * coords[2] + mt * mt * coords[4]; in quadCurveSegment()
133 float my = mu * mu * coords[1] + 2 * mu * mt * coords[3] + mt * mt * coords[5]; in quadCurveSegment()
139 coords[0] = coords[0] * u0 * u0 + coords[2] * 2 * t0 * u0 + coords[4] * t0 * t0; in quadCurveSegment()
140 coords[1] = coords[1] * u0 * u0 + coords[3] * 2 * t0 * u0 + coords[5] * t0 * t0; in quadCurveSegment()
143 coords[4] = coords[0] * u1 * u1 + coords[2] * 2 * t1 * u1 + coords[4] * t1 * t1; in quadCurveSegment()
144 coords[5] = coords[1] * u1 * u1 + coords[3] * 2 * t1 * u1 + coords[5] * t1 * t1; in quadCurveSegment()
147 coords[2] = 2 * mx - coords[0] / 2 - coords[4] / 2; in quadCurveSegment()
148 coords[3] = 2 * my - coords[1] / 2 - coords[5] / 2; in quadCurveSegment()
151 private static void cubicCurveSegment(float[] coords, float t0, float t1) { in cubicCurveSegment() argument
[all …]
/frameworks/av/services/camera/libcameraservice/device3/
DDistortionMapper.cpp246 quad->coords[0], quad->coords[1], in mapRawToCorrected()
247 quad->coords[2], quad->coords[3], in mapRawToCorrected()
248 quad->coords[4], quad->coords[5], in mapRawToCorrected()
249 quad->coords[6], quad->coords[7]); in mapRawToCorrected()
257 corrQuad->coords[0], corrQuad->coords[1], in mapRawToCorrected()
258 corrQuad->coords[2], corrQuad->coords[3], in mapRawToCorrected()
259 corrQuad->coords[4], corrQuad->coords[5], in mapRawToCorrected()
260 corrQuad->coords[6], corrQuad->coords[7]); in mapRawToCorrected()
268 float corrX = corrQuad->coords[0] + u * (corrQuad->coords[2] - corrQuad->coords[0]); in mapRawToCorrected()
270 float corrY = corrQuad->coords[1] + v * (corrQuad->coords[7] - corrQuad->coords[1]); in mapRawToCorrected()
[all …]
/frameworks/native/libs/input/tests/
DInputEvent_test.cpp37 PointerCoords coords; in TEST_F() local
38 coords.clear(); in TEST_F()
40 ASSERT_EQ(0ULL, coords.bits); in TEST_F()
45 PointerCoords coords; in TEST_F() local
46 coords.clear(); in TEST_F()
49 ASSERT_EQ(0, coords.getAxisValue(0)) in TEST_F()
51 ASSERT_EQ(0, coords.getAxisValue(1)) in TEST_F()
55 ASSERT_EQ(OK, coords.setAxisValue(1, 5)); in TEST_F()
56 ASSERT_EQ(5, coords.values[0]); in TEST_F()
57 ASSERT_EQ(0x4000000000000000ULL, coords.bits); in TEST_F()
[all …]
DStructLayout_test.cpp27 PointerCoords coords; member
31 CHECK_OFFSET(Foo, coords, 8); in TestPointerCoordsAlignment()
/frameworks/native/services/inputflinger/tests/
DInputClassifierConverter_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()
45 1/*pointerCount*/, &properties, &coords, 0/*xPrecision*/, 0/*yPrecision*/, in generateBasicMotionArgs()
50 static float getMotionEventAxis(common::V1_0::PointerCoords coords, in getMotionEventAxis() argument
52 uint32_t index = BitSet64::getIndexOfBit(static_cast<uint64_t>(coords.bits), in getMotionEventAxis()
54 return coords.values[index]; in getMotionEventAxis()
DInputClassifier_test.cpp36 PointerCoords coords; in generateBasicMotionArgs() local
37 coords.clear(); in generateBasicMotionArgs()
38 coords.setAxisValue(AMOTION_EVENT_AXIS_X, 1); in generateBasicMotionArgs()
39 coords.setAxisValue(AMOTION_EVENT_AXIS_Y, 1); in generateBasicMotionArgs()
45 1/*pointerCount*/, &properties, &coords, 0/*xPrecision*/, 0/*yPrecision*/, 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/av/services/camera/libcameraservice/tests/
DDistortionMapperTest.cpp134 auto coords = basicCoords; in TEST() local
135 res = m.mapCorrectedToRaw(coords.data(), 5, /*clamp*/true); in TEST()
138 for (size_t i = 0; i < coords.size(); i++) { in TEST()
139 EXPECT_EQ(coords[i], basicCoords[i]); in TEST()
142 res = m.mapRawToCorrected(coords.data(), 5, /*clamp*/true); in TEST()
145 for (size_t i = 0; i < coords.size(); i++) { in TEST()
146 EXPECT_EQ(coords[i], basicCoords[i]); in TEST()
202 auto coords = basicCoords; in TEST() local
203 res = m.mapCorrectedToRaw(coords.data(), 5, /*clamp*/true, /*simple*/true); in TEST()
206 ASSERT_EQ(coords[0], 0); ASSERT_EQ(coords[1], 0); in TEST()
[all …]
/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 )
Dglspec-checks28 glDrawTexfvOES check coords 5
29 glDrawTexivOES check coords 5
30 glDrawTexsvOES check coords 5
31 glDrawTexxvOES check coords 5
/frameworks/base/core/tests/coretests/src/android/view/
DMotionEventTest.java42 final PointerCoords[] coords = new PointerCoords[pointerCount]; in testObtainWithDisplayId() local
47 coords[i] = c; in testObtainWithDisplayId()
56 pointerCount, properties, coords, in testObtainWithDisplayId()
76 pointerCount, properties, coords, in testObtainWithDisplayId()
/frameworks/base/core/java/com/android/internal/widget/
DPointerLocationView.java460 MotionEvent.PointerCoords coords, int id, MotionEvent event) { in logCoords() argument
517 .append(" (").append(coords.x, 3).append(", ").append(coords.y, 3) in logCoords()
518 .append(") Pressure=").append(coords.pressure, 3) in logCoords()
519 .append(" Size=").append(coords.size, 3) in logCoords()
520 .append(" TouchMajor=").append(coords.touchMajor, 3) in logCoords()
521 .append(" TouchMinor=").append(coords.touchMinor, 3) in logCoords()
522 .append(" ToolMajor=").append(coords.toolMajor, 3) in logCoords()
523 .append(" ToolMinor=").append(coords.toolMinor, 3) in logCoords()
524 .append(" Orientation=").append((float)(coords.orientation * 180 / Math.PI), 1) in logCoords()
527 coords.getAxisValue(MotionEvent.AXIS_TILT) * 180 / Math.PI), 1) in logCoords()
[all …]
/frameworks/layoutlib/bridge/src/android/graphics/
DRoundRectangle.java334 public int currentSegment(float[] coords) { in getPathIterator() argument
341 coords[nc++] = (float) (x + ctrls[i] * width + ctrls[i + 1] / 2d); in getPathIterator()
342 coords[nc++] = (float) (y + ctrls[i + 2] * height + ctrls[i + 3] / 2d); in getPathIterator()
345 at.transform(coords, 0, coords, 0, nc / 2); in getPathIterator()
351 public int currentSegment(double[] coords) { in getPathIterator() argument
358 coords[nc++] = x + ctrls[i] * width + ctrls[i + 1] / 2d; in getPathIterator()
359 coords[nc++] = y + ctrls[i + 2] * height + ctrls[i + 3] / 2d; in getPathIterator()
362 at.transform(coords, 0, coords, 0, nc / 2); in getPathIterator()
/frameworks/base/opengl/java/android/opengl/
DGLES11Ext.java199 short[] coords, in glDrawTexsvOES() argument
206 java.nio.ShortBuffer coords in glDrawTexsvOES() argument
212 int[] coords, in glDrawTexivOES() argument
219 java.nio.IntBuffer coords in glDrawTexivOES() argument
225 int[] coords, in glDrawTexxvOES() argument
232 java.nio.IntBuffer coords in glDrawTexxvOES() argument
248 float[] coords, in glDrawTexfvOES() argument
255 java.nio.FloatBuffer coords in glDrawTexfvOES() argument
DGLErrorWrapper.java879 public void glDrawTexfvOES(float[] coords, int offset) { in glDrawTexfvOES() argument
881 mgl11Ext.glDrawTexfvOES(coords, offset); in glDrawTexfvOES()
885 public void glDrawTexfvOES(FloatBuffer coords) { in glDrawTexfvOES() argument
887 mgl11Ext.glDrawTexfvOES(coords); in glDrawTexfvOES()
897 public void glDrawTexivOES(int[] coords, int offset) { in glDrawTexivOES() argument
899 mgl11Ext.glDrawTexivOES(coords, offset); in glDrawTexivOES()
903 public void glDrawTexivOES(IntBuffer coords) { in glDrawTexivOES() argument
905 mgl11Ext.glDrawTexivOES(coords); in glDrawTexivOES()
916 public void glDrawTexsvOES(short[] coords, int offset) { in glDrawTexsvOES() argument
918 mgl11Ext.glDrawTexsvOES(coords, offset); in glDrawTexsvOES()
[all …]
/frameworks/native/opengl/tools/glgen/specs/gles11/
Dchecks.spec39 glDrawTexfvOES check coords 5
40 glDrawTexivOES check coords 5
41 glDrawTexsvOES check coords 5
42 glDrawTexxvOES check coords 5
DGLES11Ext.spec7 void glDrawTexsvOES ( const GLshort *coords )
8 void glDrawTexivOES ( const GLint *coords )
9 void glDrawTexxvOES ( const GLfixed *coords )
11 void glDrawTexfvOES ( const GLfloat *coords )
/frameworks/native/opengl/libagl/
Dtexture.cpp1542 void glDrawTexsvOES(const GLshort* coords) { in glDrawTexsvOES() argument
1544 drawTexiOES(coords[0], coords[1], coords[2], coords[3], coords[4], c); in glDrawTexsvOES()
1546 void glDrawTexivOES(const GLint* coords) { in glDrawTexivOES() argument
1548 drawTexiOES(coords[0], coords[1], coords[2], coords[3], coords[4], c); in glDrawTexivOES()
1559 void glDrawTexfvOES(const GLfloat* coords) { in glDrawTexfvOES() argument
1562 gglFloatToFixed(coords[0]), in glDrawTexfvOES()
1563 gglFloatToFixed(coords[1]), in glDrawTexfvOES()
1564 gglFloatToFixed(coords[2]), in glDrawTexfvOES()
1565 gglFloatToFixed(coords[3]), in glDrawTexfvOES()
1566 gglFloatToFixed(coords[4]), in glDrawTexfvOES()
[all …]
/frameworks/base/media/mca/filterfw/native/core/
Dshader_program.h451 bool PushCoords(ProgramVar attr, float* coords);
454 bool PushSourceCoords(float* coords);
457 bool PushTargetCoords(float* coords);
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
DImageShader.java426 public void setSourceCoords(float[] coords) { in setSourceCoords() argument
427 if (coords.length != 8) { in setSourceCoords()
429 + "got " + coords.length + " coordinates!"); in setSourceCoords()
431 mSourceCoords = Arrays.copyOf(coords, 8); in setSourceCoords()
474 public void setTargetCoords(float[] coords) { in setTargetCoords() argument
475 if (coords.length != 8) { in setTargetCoords()
477 + "got " + coords.length + " coordinates!"); in setTargetCoords()
481 mTargetCoords[i] = coords[i] * 2f - 1f; in setTargetCoords()
/frameworks/base/core/jni/
Dandroid_opengl_GLES11Ext.cpp502 GLshort *coords = (GLshort *) 0; in android_glDrawTexsvOES___3SI() local
525 coords = coords_base + offset; in android_glDrawTexsvOES___3SI()
528 (GLshort *)coords in android_glDrawTexsvOES___3SI()
551 GLshort *coords = (GLshort *) 0; in android_glDrawTexsvOES__Ljava_nio_ShortBuffer_2() local
559 coords = (GLshort *)getPointer(_env, coords_buf, (jarray*)&_array, &_remaining, &_bufferOffset); in android_glDrawTexsvOES__Ljava_nio_ShortBuffer_2()
566 if (coords == NULL) { in android_glDrawTexsvOES__Ljava_nio_ShortBuffer_2()
568 coords = (GLshort *) (_coordsBase + _bufferOffset); in android_glDrawTexsvOES__Ljava_nio_ShortBuffer_2()
571 (GLshort *)coords in android_glDrawTexsvOES__Ljava_nio_ShortBuffer_2()
576 _env->ReleaseShortArrayElements(_array, (jshort*)coords, JNI_ABORT); in android_glDrawTexsvOES__Ljava_nio_ShortBuffer_2()
592 GLint *coords = (GLint *) 0; in android_glDrawTexivOES___3II() local
[all …]
/frameworks/native/opengl/tests/gldual/src/com/android/gldual/
DTriangleRenderer.java133 float[] coords = { in Triangle() local
142 mFVertexBuffer.put(coords[i*3+j] * 2.0f); in Triangle()
/frameworks/base/opengl/java/com/google/android/gles_jni/
DGLImpl.java1741 float[] coords, in glDrawTexfvOES() argument
1748 java.nio.FloatBuffer coords in glDrawTexfvOES() argument
1764 int[] coords, in glDrawTexivOES() argument
1771 java.nio.IntBuffer coords in glDrawTexivOES() argument
1787 short[] coords, in glDrawTexsvOES() argument
1794 java.nio.ShortBuffer coords in glDrawTexsvOES() argument
1810 int[] coords, in glDrawTexxvOES() argument
1817 java.nio.IntBuffer coords in glDrawTexxvOES() argument
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/util/
DSystemBarHelper.java354 int[] coords = new int[2]; in getBottomDistance() local
355 view.getLocationInWindow(coords); in getBottomDistance()
356 return view.getRootView().getHeight() - coords[1] - view.getHeight(); in getBottomDistance()
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DTouchExplorer.java431 PointerCoords[] coords = new PointerCoords[1]; in onDoubleTap() local
432 coords[0] = new PointerCoords(); in onDoubleTap()
433 coords[0].x = clickLocation.x; in onDoubleTap()
434 coords[0].y = clickLocation.y; in onDoubleTap()
437 coords, 0, 0, 1.0f, 1.0f, event.getDeviceId(), 0, in onDoubleTap()
1020 PointerCoords[] coords = PointerCoords.createArray(pointerCount); in offsetEvent() local
1023 event.getPointerCoords(i, coords[i]); in offsetEvent()
1025 coords[i].x += offsetX; in offsetEvent()
1026 coords[i].y += offsetY; in offsetEvent()
1031 props, coords, event.getMetaState(), event.getButtonState(), in offsetEvent()

12