Home
last modified time | relevance | path

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

12

/frameworks/base/tools/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/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/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/base/packages/DocumentsUI/src/com/android/documentsui/dirlist/
DDocumentHolder.java142 int[] coords = new int[2]; in onSingleTapUp() local
143 mSelectionHotspot.getLocationOnScreen(coords); in onSingleTapUp()
144 Rect rect = new Rect(coords[0], coords[1], coords[0] + mSelectionHotspot.getWidth(), in onSingleTapUp()
145 coords[1] + mSelectionHotspot.getHeight()); in onSingleTapUp()
/frameworks/base/core/java/com/android/internal/widget/
DPointerLocationView.java442 MotionEvent.PointerCoords coords, int id, MotionEvent event) { in logCoords() argument
499 .append(" (").append(coords.x, 3).append(", ").append(coords.y, 3) in logCoords()
500 .append(") Pressure=").append(coords.pressure, 3) in logCoords()
501 .append(" Size=").append(coords.size, 3) in logCoords()
502 .append(" TouchMajor=").append(coords.touchMajor, 3) in logCoords()
503 .append(" TouchMinor=").append(coords.touchMinor, 3) in logCoords()
504 .append(" ToolMajor=").append(coords.toolMajor, 3) in logCoords()
505 .append(" ToolMinor=").append(coords.toolMinor, 3) in logCoords()
506 .append(" Orientation=").append((float)(coords.orientation * 180 / Math.PI), 1) in logCoords()
509 coords.getAxisValue(MotionEvent.AXIS_TILT) * 180 / Math.PI), 1) in logCoords()
[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/tools/layoutlib/bridge/src/android/graphics/
DRoundRectangle.java336 public int currentSegment(float[] coords) { in getPathIterator() argument
343 coords[nc++] = (float) (x + ctrls[i] * width + ctrls[i + 1] / 2d); in getPathIterator()
344 coords[nc++] = (float) (y + ctrls[i + 2] * height + ctrls[i + 3] / 2d); in getPathIterator()
347 at.transform(coords, 0, coords, 0, nc / 2); in getPathIterator()
353 public int currentSegment(double[] coords) { in getPathIterator() argument
360 coords[nc++] = x + ctrls[i] * width + ctrls[i + 1] / 2d; in getPathIterator()
361 coords[nc++] = y + ctrls[i + 2] * height + ctrls[i + 3] / 2d; in getPathIterator()
364 at.transform(coords, 0, coords, 0, nc / 2); in getPathIterator()
/frameworks/base/packages/DocumentsUI/tests/src/com/android/documentsui/dirlist/
DDocumentHolderTest.java81 PointerCoords coords[] = new PointerCoords[] { in createEvent() local
87 coords[0].x = rect.left; in createEvent()
88 coords[0].y = rect.top; in createEvent()
96 coords, // pointer coords in createEvent()
/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 …]
DGLLogWrapper.java2639 public void glDrawTexfvOES(float[] coords, int offset) { in glDrawTexfvOES() argument
2641 arg("coords", 5, coords, offset); in glDrawTexfvOES()
2644 mgl11Ext.glDrawTexfvOES(coords, offset); in glDrawTexfvOES()
2648 public void glDrawTexfvOES(FloatBuffer coords) { in glDrawTexfvOES() argument
2650 arg("coords", 5, coords); in glDrawTexfvOES()
2652 mgl11Ext.glDrawTexfvOES(coords); in glDrawTexfvOES()
2668 public void glDrawTexivOES(int[] coords, int offset) { in glDrawTexivOES() argument
2670 arg("coords", 5, coords, offset); in glDrawTexivOES()
2673 mgl11Ext.glDrawTexivOES(coords, offset); in glDrawTexivOES()
2677 public void glDrawTexivOES(IntBuffer coords) { in glDrawTexivOES() argument
[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.cpp1555 void glDrawTexsvOES(const GLshort* coords) { in glDrawTexsvOES() argument
1557 drawTexiOES(coords[0], coords[1], coords[2], coords[3], coords[4], c); in glDrawTexsvOES()
1559 void glDrawTexivOES(const GLint* coords) { in glDrawTexivOES() argument
1561 drawTexiOES(coords[0], coords[1], coords[2], coords[3], coords[4], c); in glDrawTexivOES()
1572 void glDrawTexfvOES(const GLfloat* coords) { in glDrawTexfvOES() argument
1575 gglFloatToFixed(coords[0]), in glDrawTexfvOES()
1576 gglFloatToFixed(coords[1]), in glDrawTexfvOES()
1577 gglFloatToFixed(coords[2]), in glDrawTexfvOES()
1578 gglFloatToFixed(coords[3]), in glDrawTexfvOES()
1579 gglFloatToFixed(coords[4]), in glDrawTexfvOES()
[all …]
/frameworks/base/core/jni/
Dandroid_opengl_GLES11Ext.cpp524 GLshort *coords = (GLshort *) 0; in android_glDrawTexsvOES___3SI() local
547 coords = coords_base + offset; in android_glDrawTexsvOES___3SI()
550 (GLshort *)coords in android_glDrawTexsvOES___3SI()
573 GLshort *coords = (GLshort *) 0; in android_glDrawTexsvOES__Ljava_nio_ShortBuffer_2() local
575 coords = (GLshort *)getPointer(_env, coords_buf, (jarray*)&_array, &_remaining, &_bufferOffset); in android_glDrawTexsvOES__Ljava_nio_ShortBuffer_2()
582 if (coords == NULL) { in android_glDrawTexsvOES__Ljava_nio_ShortBuffer_2()
584 coords = (GLshort *) (_coordsBase + _bufferOffset); in android_glDrawTexsvOES__Ljava_nio_ShortBuffer_2()
587 (GLshort *)coords in android_glDrawTexsvOES__Ljava_nio_ShortBuffer_2()
592 _env->ReleaseShortArrayElements(_array, (jshort*)coords, JNI_ABORT); in android_glDrawTexsvOES__Ljava_nio_ShortBuffer_2()
608 GLint *coords = (GLint *) 0; in android_glDrawTexivOES___3II() local
[all …]
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DMagnificationGestureHandler.java245 PointerCoords[] coords = getTempPointerCoordsWithMinSize(pointerCount); in dispatchTransformedEvent() local
249 event.getPointerCoords(i, coords[i]); in dispatchTransformedEvent()
250 coords[i].x = (coords[i].x - scaledOffsetX) / scale; in dispatchTransformedEvent()
251 coords[i].y = (coords[i].y - scaledOffsetY) / scale; in dispatchTransformedEvent()
256 coords, 0, 0, 1.0f, 1.0f, event.getDeviceId(), 0, event.getSource(), in dispatchTransformedEvent()
DTouchExplorer.java425 PointerCoords[] coords = new PointerCoords[1]; in onDoubleTap() local
426 coords[0] = new PointerCoords(); in onDoubleTap()
427 coords[0].x = clickLocation.x; in onDoubleTap()
428 coords[0].y = clickLocation.y; in onDoubleTap()
431 coords, 0, 0, 1.0f, 1.0f, event.getDeviceId(), 0, in onDoubleTap()
990 PointerCoords[] coords = PointerCoords.createArray(pointerCount); in offsetEvent() local
993 event.getPointerCoords(i, coords[i]); in offsetEvent()
995 coords[i].x += offsetX; in offsetEvent()
996 coords[i].y += offsetY; in offsetEvent()
1001 props, coords, event.getMetaState(), event.getButtonState(), in offsetEvent()
/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/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/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/opt/setupwizard/library/main/src/com/android/setupwizardlib/util/
DSystemBarHelper.java344 int[] coords = new int[2]; in getBottomDistance() local
345 view.getLocationInWindow(coords); in getBottomDistance()
346 return view.getRootView().getHeight() - coords[1] - view.getHeight(); in getBottomDistance()
/frameworks/base/core/java/android/hardware/camera2/impl/
DCameraMetadataNative.java794 double[] coords = get(CaptureResult.JPEG_GPS_COORDINATES); in getGpsLocation() local
797 if (areValuesAllNull(processingMethod, coords, timeStamp)) { in getGpsLocation()
808 if (coords != null) { in getGpsLocation()
809 l.setLatitude(coords[0]); in getGpsLocation()
810 l.setLongitude(coords[1]); in getGpsLocation()
811 l.setAltitude(coords[2]); in getGpsLocation()
824 double[] coords = { l.getLatitude(), l.getLongitude(), l.getAltitude() }; in setGpsLocation() local
829 set(CaptureRequest.JPEG_GPS_COORDINATES, coords); in setGpsLocation()

12