Searched refs:scale (Results 101 - 125 of 277) sorted by relevance

1234567891011>>

/frameworks/base/libs/hwui/
H A DMatrix.cpp227 double scale = 1.0 / local
236 v.data[kTranslateY] * v.data[kPerspective1]) * scale;
238 v.data[kSkewX] * v.data[kPerspective2]) * scale;
240 v.data[kTranslateX] * v.data[kScaleY]) * scale;
243 v.data[kSkewY] * v.data[kPerspective2]) * scale;
245 v.data[kTranslateX] * v.data[kPerspective0]) * scale;
247 v.data[kScaleX] * v.data[kTranslateY]) * scale;
250 v.data[kScaleY] * v.data[kPerspective0]) * scale;
252 v.data[kScaleX] * v.data[kPerspective1]) * scale;
254 v.data[kSkewX] * v.data[kSkewY]) * scale;
[all...]
/frameworks/base/tools/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/
H A DImageUtils.java64 double scale = THUMBNAIL_SIZE / (double)maxDimension;
65 BufferedImage thumbnail = scale(image, scale, scale);
201 * @param xScale x scale
202 * @param yScale y scale
206 public static BufferedImage scale(@NonNull BufferedImage source, double xScale, double yScale) { method in class:ImageUtils
/frameworks/base/core/java/android/accessibilityservice/
H A DAccessibilityService.java374 float scale, float centerX, float centerY);
687 private void onMagnificationChanged(@NonNull Region region, float scale, argument
691 region, scale, centerX, centerY);
810 void dispatchMagnificationChanged(final @NonNull Region region, final float scale, argument
834 region, scale, centerX, centerY);
839 listener.onMagnificationChanged(this, region, scale, centerX, centerY);
845 * Returns the current magnification scale.
852 * @return the current magnification scale
862 Log.w(LOG_TAG, "Failed to obtain scale", re);
929 * magnification scale an
373 onMagnificationChanged(@onNull Region region, float scale, float centerX, float centerY) argument
1003 setScale(float scale, boolean animate) argument
1066 onMagnificationChanged(@onNull MagnificationController controller, @NonNull Region region, float scale, float centerX, float centerY) argument
1554 onMagnificationChanged(@onNull Region region, float scale, float centerX, float centerY) argument
[all...]
H A DIAccessibilityServiceConnection.aidl82 boolean setMagnificationScaleAndCenter(float scale, float centerX, float centerY,
/frameworks/base/services/core/java/com/android/server/wm/
H A DAppTransition.java596 scale = (x - y) / x
597 <=> x = -y / (scale - 1)
616 Animation scale = new ScaleAnimation(scaleW, 1, scaleH, 1,
619 scale.setInterpolator(mDecelerateInterpolator);
625 set.addAnimation(scale);
951 Animation scale = new ScaleAnimation(1f, scaleW, 1f, scaleW, pivotX, pivotY);
952 scale.setInterpolator(interpolator);
953 scale.setDuration(duration);
986 set.addAnimation(scale);
993 Animation scale
[all...]
/frameworks/opt/photoviewer/src/com/android/ex/photo/
H A DPhotoViewController.java153 /** The temporary image so that we can quickly scale up the fullscreen thumbnail */
172 /** The maximum scale factor applied to images when they are initially displayed */
274 // Set the max initial scale, defaulting to 1x
327 // We are not running the scale up animation. Just let the fragments
997 // We need to take a full screen image, and scale/translate it so that
1004 final float scale = Math.max(scaleW, scaleY);
1007 totalWidth, scale);
1009 totalHeight, scale);
1020 mTemporaryImage.setScaleX(scale);
1021 mTemporaryImage.setScaleY(scale);
1173 calculateTranslate(int start, int startSize, int totalSize, float scale) argument
[all...]
/frameworks/base/core/java/android/widget/
H A DImageView.java775 * Return the current scale type in use by this ImageView.
1206 float scale;
1210 scale = (float) vheight / (float) dheight;
1211 dx = (vwidth - dwidth * scale) * 0.5f;
1213 scale = (float) vwidth / (float) dwidth;
1214 dy = (vheight - dheight * scale) * 0.5f;
1217 mDrawMatrix.setScale(scale, scale);
1221 float scale;
1226 scale
[all...]
H A DRatingBar.java252 void onProgressRefresh(float scale, boolean fromUser, int progress) { argument
253 super.onProgressRefresh(scale, fromUser, progress);
H A DEdgeEffect.java223 final float scale = (float) (Math.max(0, 1 - 1 /
226 mGlowScaleY = mGlowScaleYStart = scale;
327 canvas.scale(1.f, Math.min(mGlowScaleY, 1.f) * mBaseGlowScale, centerX, 0);
/frameworks/base/services/core/java/com/android/server/am/
H A DProcessList.java246 float scale = scaleMem > scaleDisp ? scaleMem : scaleDisp;
247 if (scale < 0) scale = 0;
248 else if (scale > 1) scale = 1;
267 mOomMinFree[i] = (int)(low + ((high-low)*scale));
/frameworks/native/cmds/flatland/
H A DGLHelper.cpp225 bool GLHelper::computeWindowScale(uint32_t w, uint32_t h, float* scale) { argument
241 *scale = scaleX < scaleY ? scaleX : scaleY;
267 float scale; local
268 result = computeWindowScale(w, h, &scale);
279 err = sc->setMatrix(scale, 0.0f, 0.0f, scale);
H A DGLHelper.h74 bool computeWindowScale(uint32_t w, uint32_t h, float* scale);
/frameworks/base/core/jni/
H A Dandroid_graphics_Canvas.cpp148 static void scale(JNIEnv*, jobject, jlong canvasHandle, jfloat sx, jfloat sy) { function in namespace:android::CanvasJNI
149 get_canvas(canvasHandle)->scale(sx, sy);
355 SkScalar scale = dstDensity / (float)srcDensity; local
357 canvas->scale(scale, scale);
365 canvas->drawNinePatch(skiaBitmap, *chunk, 0, 0, (right-left)/scale, (bottom-top)/scale,
393 SkScalar scale = canvasDensity / (float)bitmapDensity; local
395 canvas->scale(scal
[all...]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/drawable/
H A DCircleFramedDrawable.java106 public void setScale(float scale) { argument
107 mScale = scale;
/frameworks/rs/java/tests/VrDemo/src/com/example/android/rs/vr/engine/
H A DTriData.java63 public void scale(float[] s) { method in class:TriData
71 public void scale(double[] s) { method in class:TriData
/frameworks/base/core/java/com/android/internal/view/menu/
H A DActionMenuItemView.java199 final float scale = (float) mMaxIconSize / width;
201 height *= scale;
204 final float scale = (float) mMaxIconSize / height;
206 width *= scale;
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/
H A DTaskViewThumbnail.java191 float scale = 1f - mDimAlpha;
193 mat[0] = scale;
194 mat[6] = scale;
195 mat[12] = scale;
220 * Updates the scale of the bitmap relative to this view.
237 // If we are in the same orientation as the screenshot, just scale it to the
241 // Scale the landscape thumbnail up to app size, then scale that to the task
247 // Otherwise, scale the screenshot to fit 1:1 in the current orientation
251 // Otherwise, if this is a freeform task with task bounds, then scale the thumbnail
/frameworks/base/rs/java/android/renderscript/
H A DMatrix2f.java115 * Sets current values to be a scale matrix of given dimensions
117 * @param x scale component x
118 * @param y scale component y
170 * scale matrix of given dimensions
172 * @param x scale component x
173 * @param y scale component y
175 public void scale(float x, float y) { method in class:Matrix2f
/frameworks/support/v7/appcompat/src/android/support/v7/view/menu/
H A DActionMenuItemView.java204 final float scale = (float) mMaxIconSize / width;
206 height *= scale;
209 final float scale = (float) mMaxIconSize / height;
211 width *= scale;
/frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/
H A DMatrix2f.java118 * Sets current values to be a scale matrix of given dimensions
120 * @param x scale component x
121 * @param y scale component y
173 * scale matrix of given dimensions
175 * @param x scale component x
176 * @param y scale component y
178 public void scale(float x, float y) { method in class:Matrix2f
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/
H A Dpitch_f4.c173 Word32 corr, exp_corr, norm, exp, scale; local
201 scale = -(exp >> 1); /* (1<<scale) < 1/sqrt(energy rounded) */
241 L_tmp2 = L_add(exp_corr, exp_norm + scale);
/frameworks/base/services/core/java/com/android/server/pm/
H A DBackgroundDexOptService.java111 int scale = intent.getIntExtra(BatteryManager.EXTRA_SCALE, -1);
113 if (level < 0 || scale <= 0) {
118 return (100 * level / scale);
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
H A DRenderDrawable.java131 // We need to find scale such that scale * w <= screenWidth, scale * h <= screenHeight
132 double scale = Math.min((double) screenWidth / w, (double) screenHeight / h);
134 // scale * w / scale * h = w / h, so, proportions are preserved.
135 w = (int) Math.floor(scale * w);
136 h = (int) Math.floor(scale * h);
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/view/
H A DIllustration.java169 // Scale the background bounds by the same scale to compensate for the scale done to the
184 canvas.scale(mScale, mScale, 0, 0);
188 canvas.scale(-1, 1);
199 canvas.scale(-1, 1);
/frameworks/base/core/java/android/view/animation/
H A DAnimation.java485 * How much to scale the duration by.
487 * @param scale The amount to scale the duration.
489 public void scaleCurrentDuration(float scale) { argument
490 mDuration = (long) (mDuration * scale);
491 mStartOffset = (long) (mStartOffset * scale);
637 * The scale factor is set by the call to <code>getTransformation</code>. Overrides of
642 * @return float The scale factor that should be applied to pre-scaled values in
779 * a scale animation will.</p>
791 * whereas a 200% scale animatio
949 getTransformation(long currentTime, Transformation outTransformation, float scale) argument
[all...]

Completed in 1213 milliseconds

1234567891011>>