Home
last modified time | relevance | path

Searched refs:sx (Results 1 – 25 of 59) sorted by relevance

123

/frameworks/rs/tests/java_api/ImageProcessing2/src/com/android/rs/image/
DColorCube.java35 final int sx = 32; in initCube() local
40 tb.setX(sx); in initCube()
46 int dat[] = new int[sx * sy * sz]; in initCube()
49 for (int x = 0; x < sx; x++ ) { in initCube()
51 v |= (0xff * x / (sx - 1)); 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.java43 final int sx = 32; in initCube() local
48 tb.setX(sx); in initCube()
54 int dat[] = new int[sx * sy * sz]; in initCube()
57 for (int x = 0; x < sx; x++ ) { in initCube()
59 v |= (0xff * x / (sx - 1)); 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.java43 final int sx = 32; in initCube() local
48 tb.setX(sx); in initCube()
54 int dat[] = new int[sx * sy * sz]; in initCube()
57 for (int x = 0; x < sx; x++ ) { in initCube()
59 v |= (0xff * x / (sx - 1)); in initCube()
62 dat[z*sy*sx + y*sx + x] = v; in initCube()
/frameworks/base/graphics/java/android/graphics/
DMatrix.java72 public void setScale(float sx, float sy, float px, float py) {
77 public void setScale(float sx, float sy) {
124 public boolean preScale(float sx, float sy, float px, float py) {
130 public boolean preScale(float sx, float sy) {
172 public boolean postScale(float sx, float sy, float px, float py) {
178 public boolean postScale(float sx, float sy) {
330 public void setScale(float sx, float sy, float px, float py) { in setScale() argument
331 nSetScale(native_instance, sx, sy, px, py); in setScale()
335 public void setScale(float sx, float sy) { in setScale() argument
336 nSetScale(native_instance, sx, sy); in setScale()
[all …]
DCanvas.java718 public void scale(float sx, float sy) { in scale() argument
719 if (sx == 1.0f && sy == 1.0f) return; in scale()
720 nScale(mNativeCanvasWrapper, sx, sy); in scale()
731 public final void scale(float sx, float sy, float px, float py) { in scale() argument
732 if (sx == 1.0f && sy == 1.0f) return; in scale()
734 scale(sx, sy); in scale()
768 public void skew(float sx, float sy) { in skew() argument
769 if (sx == 0.0f && sy == 0.0f) return; in skew()
770 nSkew(mNativeCanvasWrapper, sx, sy); in skew()
1494 private static native void nScale(long canvasHandle, float sx, float sy);
[all …]
/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
296 data[kScaleX] = sx; in loadScale()
303 void Matrix4::loadSkew(float sx, float sy) { in loadSkew() argument
307 data[kSkewX] = sx; in loadSkew()
512 void Matrix4::decomposeScale(float& sx, float& sy) const { in decomposeScale() argument
515 sx = copysignf(sqrtf(len), data[mat4::kScaleX]); in decomposeScale()
/frameworks/base/core/java/android/gesture/
DGestureUtils.java99 float sx = targetPatchSize / gestureWidth; in spatialSampling() local
103 float scale = sx < sy ? sx : sy; in spatialSampling()
104 sx = scale; in spatialSampling()
113 float scale = sx < sy ? sx : sy; in spatialSampling()
114 sx = scale; in spatialSampling()
117 if (sx > sy) { in spatialSampling()
119 if (scale < sx) { in spatialSampling()
120 sx = scale; in spatialSampling()
123 float scale = sx * NONUNIFORM_SCALE; in spatialSampling()
145 pts[i] = (strokepoints[i] + preDx) * sx + postDx; in spatialSampling()
[all …]
DGestureStroke.java166 float sx = width / rect.width(); in toPath() local
168 float scale = sx > sy ? sy : sx; in toPath()
DGesture.java238 final float sx = (width - 2 * inset) / bounds.width(); in toBitmap() local
240 final float scale = sx > sy ? sy : sx; in toBitmap()
/frameworks/base/core/jni/android/opengl/
Dpoly_clip.cpp81 wp = (float *)&q->vert[q->n].sx; in poly_clip_to_halfspace()
116 if (v->sx < -sw) x0out++; /* out on left */ in poly_clip_to_frustum()
117 if (v->sx > sw) x1out++; /* out on right */ in poly_clip_to_frustum()
141 if (x0out) CLIP_AND_SWAP(sx, -1.0f, -1.0f, p, q, r); in poly_clip_to_frustum()
142 if (x1out) CLIP_AND_SWAP(sx, 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/libs/gui/
DGLConsumerUtils.cpp69 float tx = 0.0f, ty = 0.0f, sx = 1.0f, sy = 1.0f; in computeTransformMatrix() local
102 sx = (float(cropRect.width()) - (2.0f * shrinkAmount)) / in computeTransformMatrix()
113 sx, 0, 0, 0, in computeTransformMatrix()
/frameworks/base/libs/hwui/jni/
Dandroid_graphics_Matrix.cpp168 …static void setScale__FFFF(CRITICAL_JNI_PARAMS_COMMA jlong objHandle, jfloat sx, jfloat sy, jfloat… in setScale__FFFF() argument
171 obj->setScale(sx, sy, px, py); in setScale__FFFF()
174 static void setScale__FF(CRITICAL_JNI_PARAMS_COMMA jlong objHandle, jfloat sx, jfloat sy) { in setScale__FF() argument
176 obj->setScale(sx, sy); in setScale__FF()
225 …static void preScale__FFFF(CRITICAL_JNI_PARAMS_COMMA jlong objHandle, jfloat sx, jfloat sy, jfloat… in preScale__FFFF() argument
228 obj->preScale(sx, sy, px, py); in preScale__FFFF()
231 static void preScale__FF(CRITICAL_JNI_PARAMS_COMMA jlong objHandle, jfloat sx, jfloat sy) { in preScale__FF() argument
233 obj->preScale(sx, sy); in preScale__FF()
269 static void postScale__FFFF(CRITICAL_JNI_PARAMS_COMMA jlong objHandle, jfloat sx, jfloat sy, in postScale__FFFF() argument
272 obj->postScale(sx, sy, px, py); in postScale__FFFF()
[all …]
/frameworks/base/opengl/java/android/opengl/
DMatrix.java826 float sx = (float) Math.sin(x); in setRotateEulerM() local
832 float sxsy = sx * sy; in setRotateEulerM()
841 rm[rmOffset + 6] = -sx * cy; in setRotateEulerM()
844 rm[rmOffset + 8] = -sxsy * cz + sx * sz; in setRotateEulerM()
845 rm[rmOffset + 9] = sxsy * sz + sx * cz; in setRotateEulerM()
884 float sx = (float) Math.sin(x); in setRotateEulerM2() local
890 float sxsy = sx * sy; in setRotateEulerM2()
899 rm[rmOffset + 6] = -sx * cy; in setRotateEulerM2()
902 rm[rmOffset + 8] = -cxsy * cz + sx * sz; in setRotateEulerM2()
903 rm[rmOffset + 9] = cxsy * sz + sx * cz; in setRotateEulerM2()
[all …]
/frameworks/native/opengl/tests/gl_jni/jni/
Dgl_code.cpp54 float sx = fy * upZ - fz * upY; in gluLookAt() local
60 float uy = sz * fx - sx * fz; in gluLookAt()
61 float uz = sx * fy - sy * fx; in gluLookAt()
64 m[0] = sx; in gluLookAt()
/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.cpp60 float sx = fy * upZ - fz * upY; in gluLookAt() local
66 float uy = sz * fx - sx * fz; in gluLookAt()
67 float uz = sx * fy - sy * fx; in gluLookAt()
70 m[0] = sx; in gluLookAt()
/frameworks/base/packages/SystemUI/src/com/android/systemui/battery/
DAccessorizedBatteryDrawable.kt112 val sx = b.right / BATTERY_WIDTH_WITH_SHIELD in <lambda>() constant
114 scaleMatrix.setScale(sx, sy) in <lambda>()
117 shieldLeftOffsetScaled = sx * SHIELD_LEFT_OFFSET in <lambda>()
121 (sx * SHIELD_STROKE).coerceAtLeast( in <lambda>()
/frameworks/base/libs/hwui/canvas/
DCanvasFrontend.h171 void scale(float sx, float sy) { in scale() argument
173 m.setScale(sx, sy); in scale()
177 void skew(float sx, float sy) { in skew() argument
179 m.setSkew(sx, sy); in skew()
/frameworks/base/core/java/android/view/animation/
DScaleAnimation.java242 float sx = 1.0f; in applyTransformation() local
247 sx = mFromX + ((mToX - mFromX) * interpolatedTime); in applyTransformation()
254 t.getMatrix().setScale(sx, sy); in applyTransformation()
256 t.getMatrix().setScale(sx, sy, scale * mPivotX, scale * mPivotY); in applyTransformation()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/animation/
DAnimatableScaleMatrix.java94 public void setScale(float sx, float sy, float px, float py) { in setScale() argument
95 mScaleX = sx; in setScale()
/frameworks/native/opengl/tests/gl_basic/
Dgl_basic.cpp65 float sx = fy * upZ - fz * upY; in gluLookAt() local
71 float uy = sz * fx - sx * fz; in gluLookAt()
72 float uz = sx * fy - sy * fx; in gluLookAt()
75 m[0] = sx; in gluLookAt()
/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/loaders/
DLoaderDicom.java473 float sx = Float.parseFloat(pss[0]); in buildRSVolume() local
479 float min = Math.min(sx,Math.min(sy,sz)); in buildRSVolume()
480 v.mVoxelDim[0] = sx/min; in buildRSVolume()
597 float sx = Float.parseFloat(pss[0]); in buildRSVolume2() local
603 float min = Math.min(sx,Math.min(sy,sz)); in buildRSVolume2()
604 v.mVoxelDim[0] = sx/min; in buildRSVolume2()
/frameworks/native/opengl/tests/testLatency/src/com/android/testlatency/
DTestLatencyView.java119 float sx = (x + dx * step) * mScaleX + mOffsetX; in onDrawFrame() local
124 mTriangleVerticesData2[i] = sx + mTriangleVerticesData[i]; in onDrawFrame()

123