/frameworks/base/tools/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/ |
H A D | ImageUtils.java | 64 double scale = THUMBNAIL_SIZE / (double)maxDimension; 65 BufferedImage thumbnail = scale(image, scale, scale); 197 * @param xScale x scale 198 * @param yScale y scale 202 public static BufferedImage scale(@NonNull BufferedImage source, double xScale, double yScale) { method in class:ImageUtils
|
/frameworks/base/core/java/android/widget/ |
H A D | ImageView.java | 723 * Return the current scale type in use by this ImageView. 1138 float scale; 1142 scale = (float) vheight / (float) dheight; 1143 dx = (vwidth - dwidth * scale) * 0.5f; 1145 scale = (float) vwidth / (float) dwidth; 1146 dy = (vheight - dheight * scale) * 0.5f; 1149 mDrawMatrix.setScale(scale, scale); 1153 float scale; 1158 scale [all...] |
H A D | RatingBar.java | 251 void onProgressRefresh(float scale, boolean fromUser, int progress) { argument 252 super.onProgressRefresh(scale, fromUser, progress);
|
H A D | EdgeEffect.java | 223 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 D | ProcessList.java | 232 float scale = scaleMem > scaleDisp ? scaleMem : scaleDisp; 233 if (scale < 0) scale = 0; 234 else if (scale > 1) scale = 1; 253 mOomMinFree[i] = (int)(low + ((high-low)*scale));
|
/frameworks/native/cmds/flatland/ |
H A D | GLHelper.cpp | 225 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 D | GLHelper.h | 74 bool computeWindowScale(uint32_t w, uint32_t h, float* scale);
|
/frameworks/base/libs/input/ |
H A D | PointerController.h | 115 float scale; member in struct:android::PointerController::Spot 119 : id(id), sprite(sprite), alpha(1.0f), scale(1.0f),
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
H A D | KeyguardClockPositionAlgorithm.java | 169 private float getClockAlpha(float scale) { argument 173 float alpha = (scale - fadeEnd) 194 * The scale of the Clock
|
/frameworks/rs/java/tests/VrDemo/src/com/example/android/rs/vr/engine/ |
H A D | TriData.java | 63 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 D | ActionMenuItemView.java | 188 final float scale = (float) mMaxIconSize / width; 190 height *= scale; 193 final float scale = (float) mMaxIconSize / height; 195 width *= scale;
|
/frameworks/base/rs/java/android/renderscript/ |
H A D | Matrix2f.java | 115 * 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/internal/view/menu/ |
H A D | ActionMenuItemView.java | 186 final float scale = (float) mMaxIconSize / width; 188 height *= scale; 191 final float scale = (float) mMaxIconSize / height; 193 width *= scale;
|
/frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/ |
H A D | Matrix2f.java | 118 * 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 D | pitch_f4.c | 173 Word32 corr, exp_corr, norm, exp, scale; local 201 scale = -(exp >> 1); /* (1<<scale) < 1/sqrt(energy rounded) */ 241 L_tmp2 = exp_corr + exp_norm + scale;
|
/frameworks/base/core/java/android/hardware/radio/ |
H A D | RadioMetadata.java | 404 float scale = Math.min(widthScale, heightScale); 405 int height = (int) (bmp.getHeight() * scale); 406 int width = (int) (bmp.getWidth() * scale);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/ |
H A D | StackScrollState.java | 186 float scale = view.getScaleX(); 190 float newScale = state.scale; 229 // apply scale 230 if (scale != newScale) {
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
H A D | RenderDrawable.java | 131 // 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);
|
H A D | ResourceHelper.java | 357 float scale; field in class:ResourceHelper.UnitEntry 359 UnitEntry(String name, int type, int unit, float scale) { argument 363 this.scale = scale; 474 private static void computeTypedValue(TypedValue outValue, float value, float scale) { argument 475 value *= scale; 533 outScale[0] = unit.scale;
|
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/view/ |
H A D | Illustration.java | 168 // Scale the background bounds by the same scale to compensate for the scale done to the 183 canvas.scale(mScale, mScale, 0, 0); 187 canvas.scale(-1, 1); 198 canvas.scale(-1, 1);
|
/frameworks/base/core/java/android/view/animation/ |
H A D | Animation.java | 480 * How much to scale the duration by. 482 * @param scale The amount to scale the duration. 484 public void scaleCurrentDuration(float scale) { argument 485 mDuration = (long) (mDuration * scale); 486 mStartOffset = (long) (mStartOffset * scale); 632 * The scale factor is set by the call to <code>getTransformation</code>. Overrides of 637 * @return float The scale factor that should be applied to pre-scaled values in 774 * a scale animation will.</p> 786 * whereas a 200% scale animatio 940 getTransformation(long currentTime, Transformation outTransformation, float scale) argument [all...] |
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
H A D | Region_Delegate.java | 245 /*package*/ static void scale(Region thisRegion, float scale, Region dst) { argument 261 mtx.scale(scale, scale);
|
/frameworks/base/core/java/android/view/ |
H A D | AccessibilityInteractionController.java | 745 point.x *= spec.scale; 746 point.y *= spec.scale; 769 boundsInParent.scale(applicationScale); 770 boundsInScreen.scale(applicationScale); 773 boundsInParent.scale(spec.scale); 775 boundsInScreen.scale(spec.scale); 787 final float scale = attachInfo.mApplicationScale * spec.scale; [all...] |
/frameworks/base/packages/WallpaperCropper/src/com/android/photos/ |
H A D | BitmapRegionTileSource.java | 134 mTempCanvas.scale(1f / sampleSize, 1f / sampleSize); 189 float scale = (float) previewSize / Math.max(width, height); 190 opts.inSampleSize = BitmapUtils.computeSampleSizeLarger(scale); 509 float scale = (float) targetSize / (float) (Math.max(result.getWidth(), result.getHeight())); 511 if (scale <= 0.5) { 512 result = BitmapUtils.resizeBitmapByScale(result, scale, true);
|
/frameworks/base/core/java/android/app/ |
H A D | ResourcesManager.java | 161 final float scale = compatInfo.applicationScale; 164 ResourcesKey key = new ResourcesKey(resDir, displayId, overrideConfigCopy, scale); 167 // Resources is app scale dependent. 168 if (DEBUG) Slog.w(TAG, "getTopLevelResources: " + resDir + " / " + scale);
|