Home
last modified time | relevance | path

Searched refs:sy (Results 1 – 25 of 53) sorted by relevance

123

/frameworks/base/graphics/java/android/graphics/
DMatrix.java66 public void setScale(float sx, float sy, float px, float py) {
71 public void setScale(float sx, float sy) {
118 public boolean preScale(float sx, float sy, float px, float py) {
124 public boolean preScale(float sx, float sy) {
166 public boolean postScale(float sx, float sy, float px, float py) {
172 public boolean postScale(float sx, float sy) {
328 public void setScale(float sx, float sy, float px, float py) { in setScale() argument
329 nSetScale(native_instance, sx, sy, px, py); in setScale()
333 public void setScale(float sx, float sy) { in setScale() argument
334 nSetScale(native_instance, sx, sy); in setScale()
[all …]
DCanvas.java734 public void scale(float sx, float sy) { in scale() argument
735 if (sx == 1.0f && sy == 1.0f) return; in scale()
736 nScale(mNativeCanvasWrapper, sx, sy); in scale()
747 public final void scale(float sx, float sy, float px, float py) { in scale() argument
748 if (sx == 1.0f && sy == 1.0f) return; in scale()
750 scale(sx, sy); in scale()
784 public void skew(float sx, float sy) { in skew() argument
785 if (sx == 0.0f && sy == 0.0f) return; in skew()
786 nSkew(mNativeCanvasWrapper, sx, sy); in skew()
1423 private static native void nScale(long canvasHandle, float sx, float sy); in nScale() argument
[all …]
/frameworks/rs/tests/java_api/ImageProcessing2/src/com/android/rs/image/
DColorCube.java36 final int sy = 32; in initCube() local
41 tb.setY(sy); in initCube()
46 int dat[] = new int[sx * sy * sz]; in initCube()
48 for (int y = 0; y < sy; y++) { in initCube()
52 v |= (0xff * y / (sy - 1)) << 8; in initCube()
54 dat[z*sy*sx + y*sx + x] = v; in initCube()
/frameworks/rs/tests/java_api/ImageProcessing/src/com/android/rs/image/
DColorCube.java44 final int sy = 32; in initCube() local
49 tb.setY(sy); in initCube()
54 int dat[] = new int[sx * sy * sz]; in initCube()
56 for (int y = 0; y < sy; y++) { in initCube()
60 v |= (0xff * y / (sy - 1)) << 8; in initCube()
62 dat[z*sy*sx + y*sx + x] = v; in initCube()
/frameworks/rs/tests/java_api/ImageProcessing_jb/src/com/android/rs/image/
DColorCube.java44 final int sy = 32; in initCube() local
49 tb.setY(sy); in initCube()
54 int dat[] = new int[sx * sy * sz]; in initCube()
56 for (int y = 0; y < sy; y++) { in initCube()
60 v |= (0xff * y / (sy - 1)) << 8; in initCube()
62 dat[z*sy*sx + y*sx + x] = v; in initCube()
/frameworks/base/libs/hwui/
DMatrix.h114 void loadScale(float sx, float sy, float sz);
115 void loadSkew(float sx, float sy);
166 void scale(float sx, float sy, float sz) { in scale() argument
168 u.loadScale(sx, sy, sz); in scale()
172 void skew(float sx, float sy) { in skew() argument
174 u.loadSkew(sx, sy); in skew()
207 void decomposeScale(float& sx, float& sy) const;
DMatrix.cpp293 void Matrix4::loadScale(float sx, float sy, float sz) { in loadScale() argument
297 data[kScaleY] = sy; in loadScale()
303 void Matrix4::loadSkew(float sx, float sy) { in loadSkew() argument
310 data[kSkewY] = sy; in loadSkew()
512 void Matrix4::decomposeScale(float& sx, float& sy) const { in decomposeScale()
517 sy = copysignf(sqrtf(len), data[mat4::kScaleY]); in decomposeScale()
/frameworks/layoutlib/bridge/src/android/graphics/
DMatrix_Delegate.java267 /*package*/ static void nSetScale(long native_object, float sx, float sy, in nSetScale() argument
274 d.mValues = getScale(sx, sy, px, py); in nSetScale()
278 /*package*/ static void nSetScale(long native_object, float sx, float sy) { in nSetScale() argument
288 d.mValues[4] = sy; in nSetScale()
400 /*package*/ static void nPreScale(long native_object, float sx, float sy, in nPreScale() argument
404 d.preTransform(getScale(sx, sy, px, py)); in nPreScale()
409 /*package*/ static void nPreScale(long native_object, float sx, float sy) { in nPreScale() argument
412 d.preTransform(getScale(sx, sy)); in nPreScale()
473 /*package*/ static void nPostScale(long native_object, float sx, float sy, in nPostScale() argument
477 d.postTransform(getScale(sx, sy, px, py)); in nPostScale()
[all …]
/frameworks/base/core/java/android/gesture/
DGestureUtils.java100 float sy = targetPatchSize / gestureHeight; in spatialSampling() local
103 float scale = sx < sy ? sx : sy; in spatialSampling()
105 sy = scale; in spatialSampling()
113 float scale = sx < sy ? sx : sy; in spatialSampling()
115 sy = scale; in spatialSampling()
117 if (sx > sy) { in spatialSampling()
118 float scale = sy * NONUNIFORM_SCALE; in spatialSampling()
124 if (scale < sy) { in spatialSampling()
125 sy = scale; in spatialSampling()
146 pts[i + 1] = (strokepoints[i + 1] + preDy) * sy + postDy; in spatialSampling()
[all …]
DGestureStroke.java167 float sy = height / rect.height(); in toPath() local
168 float scale = sx > sy ? sy : sx; in toPath()
DGesture.java239 final float sy = (height - 2 * inset) / bounds.height(); in toBitmap() local
240 final float scale = sx > sy ? sy : sx; in toBitmap()
/frameworks/base/core/jni/android/graphics/
DMatrix.cpp173 static void setScale__FFFF(jlong objHandle, jfloat sx, jfloat sy, jfloat px, in setScale__FFFF() argument
176 obj->setScale(sx, sy, px, py); in setScale__FFFF()
179 static void setScale__FF(jlong objHandle, jfloat sx, jfloat sy) { in setScale__FF() argument
181 obj->setScale(sx, sy); in setScale__FF()
230 static void preScale__FFFF(jlong objHandle, jfloat sx, jfloat sy, jfloat px, in preScale__FFFF() argument
233 obj->preScale(sx, sy, px, py); in preScale__FFFF()
236 static void preScale__FF(jlong objHandle, jfloat sx, jfloat sy) { in preScale__FF() argument
238 obj->preScale(sx, sy); in preScale__FF()
274 static void postScale__FFFF(jlong objHandle, jfloat sx, jfloat sy, in postScale__FFFF() argument
277 obj->postScale(sx, sy, px, py); in postScale__FFFF()
[all …]
/frameworks/native/libs/gui/
DGLConsumerUtils.cpp62 float tx = 0.0f, ty = 0.0f, sx = 1.0f, sy = 1.0f; in computeTransformMatrix() local
103 sy = (float(cropRect.height()) - (2.0f * shrinkAmount)) / in computeTransformMatrix()
109 0, sy, 0, 0, in computeTransformMatrix()
/frameworks/base/core/jni/android/opengl/
Dpoly_clip.cpp118 if (v->sy < -sw) y0out++; /* out on top */ in poly_clip_to_frustum()
119 if (v->sy > sw) y1out++; /* out on bottom */ in poly_clip_to_frustum()
143 if (y0out) CLIP_AND_SWAP(sy, -1.0f, -1.0f, p, q, r); in poly_clip_to_frustum()
144 if (y1out) CLIP_AND_SWAP(sy, 1.0f, 1.0f, p, q, r); in poly_clip_to_frustum()
Dpoly.h35 float sx, sy, sz, sw; /* screen space position (sometimes homo.) */ member
/frameworks/native/opengl/tests/gl_jni/jni/
Dgl_code.cpp55 float sy = fz * upX - fx * upZ; in gluLookAt() local
59 float ux = sy * fz - sz * fy; in gluLookAt()
61 float uz = sx * fy - sy * fx; in gluLookAt()
69 m[4] = sy; in gluLookAt()
/frameworks/base/opengl/java/android/opengl/
DMatrix.java654 float sy = (float) Math.sin(y); in setRotateEulerM() local
657 float cxsy = cx * sy; in setRotateEulerM()
658 float sxsy = sx * sy; in setRotateEulerM()
662 rm[rmOffset + 2] = sy; in setRotateEulerM()
717 float sy = fz * upX - fx * upZ; in setLookAtM() local
721 float rls = 1.0f / Matrix.length(sx, sy, sz); in setLookAtM()
723 sy *= rls; in setLookAtM()
727 float ux = sy * fz - sz * fy; in setLookAtM()
729 float uz = sx * fy - sy * fx; in setLookAtM()
736 rm[rmOffset + 4] = sy; in setLookAtM()
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/geometry/
DQuad.java280 public Quad scale2(float sx, float sy) { in scale2() argument
281 return new Quad(mTopLeft.x * sx, mTopLeft.y * sy, in scale2()
282 mTopRight.x * sx, mTopRight.y * sy, in scale2()
283 mBottomLeft.x * sx, mBottomLeft.y * sy, in scale2()
284 mBottomRight.x * sx, mBottomRight.y * sy); in scale2()
/frameworks/native/opengl/tests/tritex/
Dtritex.cpp61 float sy = fz * upX - fx * upZ; in gluLookAt() local
65 float ux = sy * fz - sz * fy; in gluLookAt()
67 float uz = sx * fy - sy * fx; in gluLookAt()
75 m[4] = sy; in gluLookAt()
/frameworks/base/core/java/android/view/animation/
DScaleAnimation.java243 float sy = 1.0f; in applyTransformation() local
250 sy = mFromY + ((mToY - mFromY) * interpolatedTime); in applyTransformation()
254 t.getMatrix().setScale(sx, sy); in applyTransformation()
256 t.getMatrix().setScale(sx, sy, scale * mPivotX, scale * mPivotY); in applyTransformation()
/frameworks/layoutlib/bridge/src/android/view/
DViewGroup_Delegate.java156 int sy = child.mScrollY; in transformCanvas() local
158 canvas.translate(child.mLeft - sx, child.mTop - sy); in transformCanvas()
164 int transY = -sy; in transformCanvas()
/frameworks/native/opengl/tests/gl_basic/
Dgl_basic.cpp66 float sy = fz * upX - fx * upZ; in gluLookAt() local
70 float ux = sy * fz - sz * fy; in gluLookAt()
72 float uz = sx * fy - sy * fx; in gluLookAt()
80 m[4] = sy; in gluLookAt()
/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/loaders/
DLoaderDicom.java474 float sy = Float.parseFloat(pss[1]); in buildRSVolume() local
479 float min = Math.min(sx,Math.min(sy,sz)); in buildRSVolume()
481 v.mVoxelDim[1] = sy/min; in buildRSVolume()
598 float sy = Float.parseFloat(pss[1]); in buildRSVolume2() local
603 float min = Math.min(sx,Math.min(sy,sz)); in buildRSVolume2()
605 v.mVoxelDim[1] = sy/min; in buildRSVolume2()
/frameworks/native/opengl/tests/testLatency/src/com/android/testlatency/
DTestLatencyView.java120 float sy = (y + dy * step) * mScaleY + mOffsetY; in onDrawFrame() local
125 mTriangleVerticesData2[i+1] = -sy + mTriangleVerticesData[i+1]; in onDrawFrame()
/frameworks/base/libs/hwui/surfacetexture/
DSurfaceTexture.cpp307 float tx = 0.0f, ty = 0.0f, sx = 1.0f, sy = 1.0f; in computeTransformMatrix() local
346 sy = (float(cropRect.height()) - (2.0f * shrinkAmount)) / bufferHeight; in computeTransformMatrix()
349 mat4 crop(sx, 0, 0, 0, 0, sy, 0, 0, 0, 0, 1, 0, tx, ty, 0, 1); in computeTransformMatrix()

123