Searched refs:scale (Results 26 - 50 of 171) sorted by relevance

1234567

/frameworks/base/core/java/android/widget/
H A DSeekBar.java87 void onProgressRefresh(float scale, boolean fromUser) { argument
88 super.onProgressRefresh(scale, fromUser);
H A DAnalogClock.java152 float scale = Math.min(hScale, vScale);
154 setMeasuredDimension(resolveSizeAndState((int) (mDialWidth * scale), widthMeasureSpec, 0),
155 resolveSizeAndState((int) (mDialHeight * scale), heightMeasureSpec, 0));
187 float scale = Math.min((float) availableWidth / (float) w,
190 canvas.scale(scale, scale, x, y);
H A DImageView.java537 * Return the current scale type in use by this ImageView.
903 float scale;
907 scale = (float) vheight / (float) dheight;
908 dx = (vwidth - dwidth * scale) * 0.5f;
910 scale = (float) vwidth / (float) dwidth;
911 dy = (vheight - dheight * scale) * 0.5f;
914 mDrawMatrix.setScale(scale, scale);
918 float scale;
923 scale
[all...]
/frameworks/base/core/jni/android/graphics/
H A DBitmapFactory.cpp94 static void scaleNinePatchChunk(android::Res_png_9patch* chunk, float scale) { argument
95 chunk->paddingLeft = int(chunk->paddingLeft * scale + 0.5f);
96 chunk->paddingTop = int(chunk->paddingTop * scale + 0.5f);
97 chunk->paddingRight = int(chunk->paddingRight * scale + 0.5f);
98 chunk->paddingBottom = int(chunk->paddingBottom * scale + 0.5f);
101 chunk->xDivs[i] = int(chunk->xDivs[i] * scale + 0.5f);
108 chunk->yDivs[i] = int(chunk->yDivs[i] * scale + 0.5f);
115 static jbyteArray nativeScaleNinePatch(JNIEnv* env, jobject, jbyteArray chunkObject, jfloat scale, argument
126 scaleNinePatchChunk(chunk, scale);
160 bool applyScale = false, float scale
395 nativeDecodeStreamScaled(JNIEnv* env, jobject clazz, jobject is, jbyteArray storage, jobject padding, jobject options, jboolean applyScale, jfloat scale) argument
489 nativeDecodeAssetScaled(JNIEnv* env, jobject clazz, jint native_asset, jobject padding, jobject options, jboolean applyScale, jfloat scale) argument
[all...]
H A DRegion.cpp128 // Scale the rectangle by given scale and set the reuslt to the dst.
129 static void scale_rect(SkIRect* dst, const SkIRect& src, float scale) { argument
130 dst->fLeft = (int)::roundf(src.fLeft * scale);
131 dst->fTop = (int)::roundf(src.fTop * scale);
132 dst->fRight = (int)::roundf(src.fRight * scale);
133 dst->fBottom = (int)::roundf(src.fBottom * scale);
136 // Scale the region by given scale and set the reuslt to the dst.
138 static void scale_rgn(SkRegion* dst, const SkRegion& src, float scale) { argument
144 scale_rect(&r, iter.rect(), scale);
150 static void Region_scale(JNIEnv* env, jobject region, jfloat scale, jobjec argument
153 scale_rgn(GetSkRegion(env, dst), *rgn, scale); local
[all...]
H A DNinePatch.cpp92 SkScalar scale = SkFloatToScalar(destDensity / (float)srcDensity); local
94 canvas->scale(scale, scale);
96 bounds.fRight = SkScalarDiv(bounds.fRight-bounds.fLeft, scale);
97 bounds.fBottom = SkScalarDiv(bounds.fBottom-bounds.fTop, scale);
/frameworks/av/media/libstagefright/codecs/aacenc/basic_op/
H A Doper_32b.c247 Word32 scale; local
252 scale = norm_l(value);
253 if(scale & 1) scale--;
255 value <<= scale; local
262 scale >>= 1;
266 root >>= scale; local
/frameworks/base/core/java/android/view/
H A DVelocityTracker.java337 float scale = 1;
339 a += c[i] * scale;
340 scale *= time;
/frameworks/base/core/java/android/view/animation/
H A DRotateAnimation.java168 float scale = getScaleFactor();
173 t.getMatrix().setRotate(degrees, mPivotX * scale, mPivotY * scale);
H A DScaleAnimation.java26 * An animation that controls the scale of an object. You can specify the point
244 float scale = getScaleFactor();
256 t.getMatrix().setScale(sx, sy, scale * mPivotX, scale * mPivotY);
260 float resolveScale(float scale, int type, int data, int size, int psize) { argument
267 return scale;
/frameworks/ex/photoviewer/src/com/android/ex/photo/
H A DPhotoViewPager.java98 final float scale = Math.max(0, 1.f - position * 0.3f);
99 page.setScaleX(scale);
100 page.setScaleY(scale);
/frameworks/opt/photoviewer/src/com/android/ex/photo/
H A DPhotoViewPager.java98 final float scale = Math.max(0, 1.f - position * 0.3f);
99 page.setScaleX(scale);
100 page.setScaleY(scale);
/frameworks/base/graphics/java/android/graphics/drawable/shapes/
H A DPathShape.java57 canvas.scale(mScaleX, mScaleY);
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DColoredRectsActivity.java84 canvas.scale(2, 2);
106 canvas.scale(2, 2);
112 canvas.scale(2, 2);
118 canvas.scale(0.5f, 8);
H A DMipMapActivity.java66 canvas.scale(0.3f, 0.3f);
72 canvas.scale(0.3f, 0.3f);
/frameworks/rs/scriptc/
H A Drs_quaternion.rsh202 float scale, invScale;
207 scale = sin(theta * (1.0f - t)) * invSinTheta;
210 scale = 1.0f - t;
215 scale = sin(M_PI * (0.5f - t));
219 rsQuaternionSet(q, tempq0.w*scale + tempq1.w*invScale, tempq0.x*scale + tempq1.x*invScale,
220 tempq0.y*scale + tempq1.y*invScale, tempq0.z*scale + tempq1.z*invScale);
/frameworks/support/renderscript/v8/rs_support/scriptc/
H A Drs_quaternion.rsh202 float scale, invScale;
207 scale = sin(theta * (1.0f - t)) * invSinTheta;
210 scale = 1.0f - t;
215 scale = sin(M_PI * (0.5f - t));
219 rsQuaternionSet(q, tempq0.w*scale + tempq1.w*invScale, tempq0.x*scale + tempq1.x*invScale,
220 tempq0.y*scale + tempq1.y*invScale, tempq0.z*scale + tempq1.z*invScale);
/frameworks/base/tests/RenderScriptTests/SceneGraph/src/com/android/testapp/
H A DTouchHandler.java72 public void onActionScale(float scale) { argument
76 mDistValue.z *= 1.0f / scale;
/frameworks/base/graphics/java/android/graphics/
H A DRegion.java223 * Scale the region by the given scale amount. This re-constructs new region by
226 * in less internal rects if 0 < scale < 1. Zero and Negative scale result in
231 public void scale(float scale) { argument
232 scale(scale, null);
236 * Set the dst region to the result of scaling this region by the given scale amount.
240 public native void scale(float scale, Regio argument
[all...]
/frameworks/base/core/java/android/gesture/
H A DGesture.java240 final float scale = sx > sy ? sy : sx;
241 paint.setStrokeWidth(2.0f / scale);
243 path.offset(-bounds.left + (width - bounds.width() * scale) / 2.0f,
244 -bounds.top + (height - bounds.height() * scale) / 2.0f);
247 canvas.scale(scale, scale);
H A DGestureUtils.java103 float scale = sx < sy ? sx : sy;
104 sx = scale;
105 sy = scale;
113 float scale = sx < sy ? sx : sy;
114 sx = scale;
115 sy = scale;
118 float scale = sy * NONUNIFORM_SCALE;
119 if (scale < sx) {
120 sx = scale;
123 float scale
585 static float[] scale(float[] points, float sx, float sy) { method in class:GestureUtils
[all...]
/frameworks/base/core/tests/coretests/src/android/text/
H A DStaticLayoutTest.java180 fmi.top, fmi.descent + s.scale(fmi.descent - fmi.top),
181 fmi.ascent, fmi.descent + s.scale(fmi.descent - fmi.ascent),
182 fmi.ascent, fmi.bottom + s.scale(fmi.bottom - fmi.ascent));
202 fmi.top, fmi.descent + s.scale(fmi.descent - fmi.top),
203 fmi.ascent, fmi.descent + s.scale(fmi.descent - fmi.ascent),
204 fmi.ascent, fmi.bottom + s.scale(fmi.bottom - fmi.ascent));
209 // Models the effect of the scale and add parameters. I think the current
220 public int scale(float height) { method in class:StaticLayoutTest.Scaler
224 Log.i("Scale", "expected scale: " + rndVal +
225 " != returned scale
[all...]
/frameworks/base/tests/DpiTest/src/com/google/android/test/dpi/
H A DDpiTestActivity.java164 private void addBitmapDrawable(LinearLayout layout, int resource, boolean scale) { argument
166 bitmap = loadAndPrintDpi(resource, scale);
171 if (!scale) d.setTargetDensity(getResources().getDisplayMetrics());
190 private void addCanvasBitmap(LinearLayout layout, int resource, boolean scale) { argument
192 bitmap = loadAndPrintDpi(resource, scale);
214 private Bitmap loadAndPrintDpi(int id, boolean scale) { argument
216 if (scale) {
/frameworks/av/media/libstagefright/
H A DVBRISeeker.cpp76 size_t scale = U16_AT(&vbriHeader[20]); local
78 ALOGV("%d entries, scale=%d, size_per_entry=%d",
80 scale,
118 numBytes *= scale;
/frameworks/av/media/libstagefright/codecs/aacenc/SampleCode/
H A DAAC_E_SAMPLES.c115 int scale = 441; local
117 scale = 480;
118 param->bitRate = 640*param->nChannels*param->sampleRate/scale;

Completed in 348 milliseconds

1234567