Searched refs:sx (Results 1 - 25 of 49) sorted by path

12

/frameworks/base/core/java/android/gesture/
H A DGesture.java238 final float sx = (width - 2 * inset) / bounds.width();
240 final float scale = sx > sy ? sy : sx;
H A DGestureStroke.java167 float sx = width / rect.width();
169 float scale = sx > sy ? sy : sx;
H A DGestureUtils.java99 float sx = targetPatchSize / gestureWidth;
103 float scale = sx < sy ? sx : sy;
104 sx = scale;
113 float scale = sx < sy ? sx : sy;
114 sx = scale;
117 if (sx > sy) {
119 if (scale < sx) {
120 sx
585 scale(float[] points, float sx, float sy) argument
[all...]
/frameworks/base/core/java/android/hardware/
H A DSensorManager.java1192 final boolean sx = (X>=0x80);
1201 if (x==i) outR[offset+i] = sx ? -inR[offset+0] : inR[offset+0];
/frameworks/base/core/java/android/view/
H A DGLES20Canvas.java386 public void skew(float sx, float sy) { argument
387 nSkew(mRenderer, sx, sy);
390 private static native void nSkew(long renderer, float sx, float sy); argument
400 public void scale(float sx, float sy) { argument
401 nScale(mRenderer, sx, sy);
404 private static native void nScale(long renderer, float sx, float sy); argument
H A DView.java3717 float sx = 1f;
3814 sx = a.getFloat(attr, 1f);
4185 setScaleX(sx);
14970 int sx = 0;
14974 sx = mScrollX;
14987 canvas.translate(mLeft - sx, mTop - sy);
15011 transX = -sx;
15063 final int scrollX = hasDisplayList ? 0 : sx;
15085 canvas.clipRect(sx, sy, sx
[all...]
/frameworks/base/core/java/android/view/animation/
H A DScaleAnimation.java242 float sx = 1.0f;
247 sx = mFromX + ((mToX - mFromX) * interpolatedTime);
254 t.getMatrix().setScale(sx, sy);
256 t.getMatrix().setScale(sx, sy, scale * mPivotX, scale * mPivotY);
/frameworks/base/core/jni/android/graphics/
H A DBitmapFactory.cpp390 const float sx = scaledWidth / float(decodingBitmap.width()); local
414 canvas.scale(sx, sy);
H A DMatrix.cpp77 static void setScale__FFFF(JNIEnv* env, jobject clazz, jlong objHandle, jfloat sx, jfloat sy, jfloat px, jfloat py) { argument
79 obj->setScale(sx, sy, px, py);
81 static void setScale__FF(JNIEnv* env, jobject clazz, jlong objHandle, jfloat sx, jfloat sy) { argument
83 obj->setScale(sx, sy);
121 static void preScale__FFFF(JNIEnv* env, jobject clazz, jlong objHandle, jfloat sx, jfloat sy, jfloat px, jfloat py) { argument
123 obj->preScale(sx, sy, px, py);
126 static void preScale__FF(JNIEnv* env, jobject clazz, jlong objHandle, jfloat sx, jfloat sy) { argument
128 obj->preScale(sx, sy);
162 static void postScale__FFFF(JNIEnv* env, jobject clazz, jlong objHandle, jfloat sx, jfloat sy, jfloat px, jfloat py) { argument
164 obj->postScale(sx, s
167 postScale__FF(JNIEnv* env, jobject clazz, jlong objHandle, jfloat sx, jfloat sy) argument
[all...]
H A DSkiaCanvas.cpp77 virtual void scale(float sx, float sy);
78 virtual void skew(float sx, float sy);
379 void SkiaCanvas::scale(float sx, float sy) { argument
380 mCanvas->scale(sx, sy);
383 void SkiaCanvas::skew(float sx, float sy) { argument
384 mCanvas->skew(sx, sy);
/frameworks/base/core/jni/android/opengl/
H A Dpoly.h35 float sx, sy, sz, sw; /* screen space position (sometimes homo.) */ member in struct:android::__anon790
H A Dpoly_clip.cpp52 * s[index] is sx, sy, or sz (screen space x, y, or z).
82 wp = (float *)&q->vert[q->n].sx;
95 * using the homogeneous screen coordinates (sx, sy, sz, sw) of each vertex,
96 * testing if v->sx/v->sw > box->x0 and v->sx/v->sw < box->x1,
117 if (v->sx < -sw) x0out++; /* out on left */
118 if (v->sx > sw) x1out++; /* out on right */
142 if (x0out) CLIP_AND_SWAP(sx, -1.0f, -1.0f, p, q, r);
143 if (x1out) CLIP_AND_SWAP(sx, 1.0f, 1.0f, p, q, r);
H A Dutil.cpp79 ALOGI("[%d] %g, %g, %g %g", i, pV->sx, pV->sy, pV->sz, pV->sw);
137 float* pDest = & poly.vert[0].sx;
/frameworks/base/core/jni/
H A Dandroid_graphics_Canvas.cpp127 static void scale(JNIEnv*, jobject, jlong canvasHandle, jfloat sx, jfloat sy) { argument
128 get_canvas(canvasHandle)->scale(sx, sy);
131 static void skew(JNIEnv*, jobject, jlong canvasHandle, jfloat sx, jfloat sy) { argument
132 get_canvas(canvasHandle)->skew(sx, sy);
H A Dandroid_view_GLES20Canvas.cpp313 jlong rendererPtr, jfloat sx, jfloat sy) {
315 renderer->scale(sx, sy);
319 jlong rendererPtr, jfloat sx, jfloat sy) {
321 renderer->skew(sx, sy);
312 android_view_GLES20Canvas_scale(JNIEnv* env, jobject clazz, jlong rendererPtr, jfloat sx, jfloat sy) argument
318 android_view_GLES20Canvas_skew(JNIEnv* env, jobject clazz, jlong rendererPtr, jfloat sx, jfloat sy) argument
H A Dandroid_view_RenderNode.cpp247 jobject clazz, jlong renderNodePtr, float sx) {
248 return SET_AND_DIRTY(setScaleX, sx, RenderNode::SCALE_X);
246 android_view_RenderNode_setScaleX(JNIEnv* env, jobject clazz, jlong renderNodePtr, float sx) argument
/frameworks/base/graphics/java/android/graphics/
H A DBitmap.java593 final float sx = dstWidth / (float)width;
595 m.setScale(sx, sy);
H A DCanvas.java595 * @param sx The amount to scale in X
598 public void scale(float sx, float sy) { argument
599 native_scale(mNativeCanvasWrapper, sx, sy);
605 * @param sx The amount to scale in X
610 public final void scale(float sx, float sy, float px, float py) { argument
612 scale(sx, sy);
641 * @param sx The amount to skew in X
644 public void skew(float sx, float sy) { argument
645 native_skew(mNativeCanvasWrapper, sx, sy);
1987 float sx, floa
1986 native_scale(long canvasHandle, float sx, float sy) argument
1989 native_skew(long canvasHandle, float sx, float sy) argument
[all...]
H A DMatrix.java59 public void setScale(float sx, float sy, float px, float py) {
64 public void setScale(float sx, float sy) {
111 public boolean preScale(float sx, float sy, float px, float py) {
117 public boolean preScale(float sx, float sy) {
159 public boolean postScale(float sx, float sy, float px, float py) {
165 public boolean postScale(float sx, float sy) {
307 * Set the matrix to scale by sx and sy, with a pivot point at (px, py).
311 public void setScale(float sx, float sy, float px, float py) { argument
312 native_setScale(native_instance, sx, sy, px, py);
315 /** Set the matrix to scale by sx an
316 setScale(float sx, float sy) argument
393 preScale(float sx, float sy, float px, float py) argument
402 preScale(float sx, float sy) argument
465 postScale(float sx, float sy, float px, float py) argument
474 postScale(float sx, float sy) argument
848 native_setScale(long native_object, float sx, float sy, float px, float py) argument
850 native_setScale(long native_object, float sx, float sy) argument
869 native_preScale(long native_object, float sx, float sy, float px, float py) argument
871 native_preScale(long native_object, float sx, float sy) argument
885 native_postScale(long native_object, float sx, float sy, float px, float py) argument
887 native_postScale(long native_object, float sx, float sy) argument
[all...]
/frameworks/base/include/private/graphics/
H A DCanvas.h69 virtual void scale(float sx, float sy) = 0;
70 virtual void skew(float sx, float sy) = 0;
/frameworks/base/libs/hwui/
H A DDisplayListOp.h442 ScaleOp(float sx, float sy) argument
443 : mSx(sx), mSy(sy) {}
462 SkewOp(float sx, float sy) argument
463 : mSx(sx), mSy(sy) {}
H A DDisplayListRenderer.cpp143 void DisplayListRenderer::scale(float sx, float sy) { argument
144 addStateOp(new (alloc()) ScaleOp(sx, sy));
145 StatefulBaseRenderer::scale(sx, sy);
148 void DisplayListRenderer::skew(float sx, float sy) { argument
149 addStateOp(new (alloc()) SkewOp(sx, sy));
150 StatefulBaseRenderer::skew(sx, sy);
H A DDisplayListRenderer.h87 virtual void scale(float sx, float sy);
88 virtual void skew(float sx, float sy);
H A DMatrix.cpp267 void Matrix4::loadScale(float sx, float sy, float sz) { argument
270 data[kScaleX] = sx;
277 void Matrix4::loadSkew(float sx, float sy) { argument
281 data[kSkewX] = sx;
479 void Matrix4::decomposeScale(float& sx, float& sy) const { argument
482 sx = copysignf(sqrtf(len), data[mat4::kScaleX]);
H A DMatrix.h127 void loadScale(float sx, float sy, float sz);
128 void loadSkew(float sx, float sy);
170 void scale(float sx, float sy, float sz) { argument
172 u.loadScale(sx, sy, sz);
176 void skew(float sx, float sy) { argument
178 u.loadSkew(sx, sy);
211 void decomposeScale(float& sx, float& sy) const;

Completed in 2601 milliseconds

12