/frameworks/base/core/java/android/webkit/ |
D | ZoomManager.java | 324 /* package */ final float computeReadingLevelScale(float scale) { in computeReadingLevelScale() argument 326 scale + MIN_DOUBLE_TAP_SCALE_INCREMENT); in computeReadingLevelScale() 362 public final float computeScaleWithLimits(float scale) { in computeScaleWithLimits() argument 363 if (scale < mMinZoomScale) { in computeScaleWithLimits() 364 scale = mMinZoomScale; in computeScaleWithLimits() 365 } else if (scale > mMaxZoomScale) { in computeScaleWithLimits() 366 scale = mMaxZoomScale; in computeScaleWithLimits() 368 return scale; in computeScaleWithLimits() 371 public final boolean isScaleOverLimits(float scale) { in isScaleOverLimits() argument 372 return scale <= mMinZoomScale || scale >= mMaxZoomScale; in isScaleOverLimits() [all …]
|
/frameworks/base/libs/androidfw/ |
D | VelocityControl.cpp | 72 float scale = mParameters.scale; in move() local 74 float speed = hypotf(vx, vy) * scale; in move() 77 scale *= mParameters.acceleration; in move() 81 scale *= 1 + (speed - mParameters.lowThreshold) in move() 89 mParameters.scale, mParameters.lowThreshold, mParameters.highThreshold, in move() 91 vx, vy, speed, scale / mParameters.scale); in move() 96 mParameters.scale, mParameters.lowThreshold, mParameters.highThreshold, in move() 102 *deltaX *= scale; in move() 105 *deltaY *= scale; in move()
|
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/ |
D | VignetteFilter.java | 97 float scale[] = new float[2]; in initParameters() local 99 scale[0] = 1f; in initParameters() 100 scale[1] = ((float) mHeight) / mWidth; in initParameters() 102 scale[0] = ((float) mWidth) / mHeight; in initParameters() 103 scale[1] = 1f; in initParameters() 105 float max_dist = ((float) Math.sqrt(scale[0] * scale[0] + scale[1] * scale[1])) * 0.5f; in initParameters() 106 mProgram.setHostValue("scale", scale); in initParameters()
|
D | LomoishFilter.java | 156 float scale[] = new float[2]; in initParameters() local 158 scale[0] = 1f; in initParameters() 159 scale[1] = ((float) mHeight) / mWidth; in initParameters() 161 scale[0] = ((float) mWidth) / mHeight; in initParameters() 162 scale[1] = 1f; in initParameters() 164 float max_dist = ((float) Math.sqrt(scale[0] * scale[0] + scale[1] * scale[1])) * 0.5f; in initParameters() 166 mProgram.setHostValue("scale", scale); in initParameters()
|
D | DocumentaryFilter.java | 147 float scale[] = new float[2]; in initParameters() local 149 scale[0] = 1f; in initParameters() 150 scale[1] = ((float) mHeight) / mWidth; in initParameters() 152 scale[0] = ((float) mWidth) / mHeight; in initParameters() 153 scale[1] = 1f; in initParameters() 155 float max_dist = ((float) Math.sqrt(scale[0] * scale[0] + scale[1] * scale[1])) * 0.5f; in initParameters() 157 mProgram.setHostValue("scale", scale); in initParameters()
|
D | FisheyeFilter.java | 151 float scale[] = new float[2]; in updateProgramParams() local 153 scale[0] = 1f; in updateProgramParams() 154 scale[1] = ((float) mHeight) / mWidth; in updateProgramParams() 156 scale[0] = ((float) mWidth) / mHeight; in updateProgramParams() 157 scale[1] = 1f; in updateProgramParams() 160 float bound2 = 0.25f * (scale[0] * scale[0] + scale[1] * scale[1]); in updateProgramParams() 168 mProgram.setHostValue("scale", scale); in updateProgramParams()
|
D | StraightenFilter.java | 143 float scale = 0.5f * Math.min( mWidth / maxWidth, in updateParameters() local 146 p0.set(scale * p0.x / mWidth + 0.5f, scale * p0.y / mHeight + 0.5f); in updateParameters() 147 p1.set(scale * p1.x / mWidth + 0.5f, scale * p1.y / mHeight + 0.5f); in updateParameters() 148 p2.set(scale * p2.x / mWidth + 0.5f, scale * p2.y / mHeight + 0.5f); in updateParameters() 149 p3.set(scale * p3.x / mWidth + 0.5f, scale * p3.y / mHeight + 0.5f); in updateParameters()
|
/frameworks/base/core/java/android/content/res/ |
D | CompatibilityInfo.java | 245 int dens, float scale, float invertedScale) { in CompatibilityInfo() argument 248 applicationScale = scale; in CompatibilityInfo() 311 rect.scale(applicationInvertedScale); in translateRectInScreenToAppWinFrame() 318 transparentRegion.scale(applicationScale); in translateRegionInWindowToScreen() 344 canvas.scale(applicationScale, applicationScale); in translateCanvas() 351 event.scale(applicationInvertedScale); in translateEventInScreenToAppWindow() 359 params.scale(applicationScale); in translateWindowLayout() 366 rect.scale(applicationScale); in translateRectInAppWindowToScreen() 373 rect.scale(applicationInvertedScale); in translateRectInScreenToAppWindow() 380 final float scale = applicationInvertedScale; in translatePointInScreenToAppWindow() local [all …]
|
/frameworks/base/include/androidfw/ |
D | VelocityControl.h | 37 float scale; member 65 scale(1.0f), lowThreshold(0.0f), highThreshold(0.0f), acceleration(1.0f) { in VelocityControlParameters() 68 VelocityControlParameters(float scale, float lowThreshold, in VelocityControlParameters() 70 scale(scale), lowThreshold(lowThreshold), in VelocityControlParameters()
|
/frameworks/base/core/java/android/widget/ |
D | AbsSeekBar.java | 227 void onProgressRefresh(float scale, boolean fromUser) { 228 super.onProgressRefresh(scale, fromUser); 231 setThumbPos(getWidth(), thumb, scale, Integer.MIN_VALUE); 257 float scale = max > 0 ? (float) getProgress() / (float) max : 0; 261 setThumbPos(w, thumb, scale, 0); 278 setThumbPos(w, thumb, scale, gap); 286 private void setThumbPos(int w, Drawable thumb, float scale, int gap) { 295 int thumbPos = (int) (scale * available); 427 float scale; 431 scale = 0.0f; [all …]
|
/frameworks/base/tests/TileBenchmark/src/com/test/tilebenchmark/ |
D | RunData.java | 34 public float scale; field in RunData.TileData 37 boolean isReady, int level, float scale) { in TileData() argument 44 this.scale = scale; in TileData() 50 + (isReady ? "ready" : "NOTready") + " at scale " + scale; in toString()
|
/frameworks/base/graphics/java/android/graphics/ |
D | BitmapFactory.java | 492 float scale = 1.0f; in decodeStream() local 498 scale = targetDensity / (float) density; in decodeStream() 502 bm = nativeDecodeAsset(asset, outPadding, opts, true, scale); in decodeStream() 519 float scale = 1.0f; in decodeStream() local 525 scale = targetDensity / (float) density; in decodeStream() 529 bm = nativeDecodeStream(is, tempStorage, outPadding, opts, true, scale); in decodeStream() 564 float scale = targetDensity / (float) density; in finishDecode() local 565 if (scale != 1.0f) { in finishDecode() 567 bm = Bitmap.createScaledBitmap(oldBitmap, (int) (bm.getWidth() * scale + 0.5f), in finishDecode() 568 (int) (bm.getHeight() * scale + 0.5f), true); in finishDecode() [all …]
|
/frameworks/base/media/java/android/media/ |
D | ThumbnailUtils.java | 184 float scale = 512f / max; in createVideoThumbnail() local 185 int w = Math.round(scale * width); in createVideoThumbnail() 186 int h = Math.round(scale * height); in createVideoThumbnail() 224 float scale; in extractThumbnail() local 226 scale = width / (float) source.getWidth(); in extractThumbnail() 228 scale = height / (float) source.getHeight(); in extractThumbnail() 231 matrix.setScale(scale, scale); in extractThumbnail() 411 float scale = targetHeight / bitmapHeightF; in transform() local 412 if (scale < .9F || scale > 1F) { in transform() 413 scaler.setScale(scale, scale); in transform() [all …]
|
/frameworks/base/services/java/com/android/server/display/ |
D | OverlayDisplayWindow.java | 222 float scale = mWindowScale * mLiveScale; in updateWindowParams() local 223 scale = Math.min(scale, (float)mDefaultDisplayInfo.logicalWidth / mWidth); in updateWindowParams() 224 scale = Math.min(scale, (float)mDefaultDisplayInfo.logicalHeight / mHeight); in updateWindowParams() 225 scale = Math.max(MIN_SCALE, Math.min(MAX_SCALE, scale)); in updateWindowParams() 227 float offsetScale = (scale / mWindowScale - 1.0f) * 0.5f; in updateWindowParams() 228 int width = (int)(mWidth * scale); in updateWindowParams() 229 int height = (int)(mHeight * scale); in updateWindowParams() 236 Slog.d(TAG, "updateWindowParams: scale=" + scale in updateWindowParams() 242 mTextureView.setScaleX(scale); in updateWindowParams() 243 mTextureView.setScaleY(scale); in updateWindowParams()
|
/frameworks/base/core/jni/android/graphics/ |
D | BitmapFactory.cpp | 94 static void scaleNinePatchChunk(android::Res_png_9patch* chunk, float scale) { in scaleNinePatchChunk() argument 95 chunk->paddingLeft = int(chunk->paddingLeft * scale + 0.5f); in scaleNinePatchChunk() 96 chunk->paddingTop = int(chunk->paddingTop * scale + 0.5f); in scaleNinePatchChunk() 97 chunk->paddingRight = int(chunk->paddingRight * scale + 0.5f); in scaleNinePatchChunk() 98 chunk->paddingBottom = int(chunk->paddingBottom * scale + 0.5f); in scaleNinePatchChunk() 101 chunk->xDivs[i] = int(chunk->xDivs[i] * scale + 0.5f); in scaleNinePatchChunk() 108 chunk->yDivs[i] = int(chunk->yDivs[i] * scale + 0.5f); in scaleNinePatchChunk() 115 static jbyteArray nativeScaleNinePatch(JNIEnv* env, jobject, jbyteArray chunkObject, jfloat scale, in nativeScaleNinePatch() argument 126 scaleNinePatchChunk(chunk, scale); in nativeScaleNinePatch() 160 bool applyScale = false, float scale = 1.0f) { in doDecode() argument [all …]
|
D | Region.cpp | 129 static void scale_rect(SkIRect* dst, const SkIRect& src, float scale) { in scale_rect() argument 130 dst->fLeft = (int)::roundf(src.fLeft * scale); in scale_rect() 131 dst->fTop = (int)::roundf(src.fTop * scale); in scale_rect() 132 dst->fRight = (int)::roundf(src.fRight * scale); in scale_rect() 133 dst->fBottom = (int)::roundf(src.fBottom * scale); in scale_rect() 138 static void scale_rgn(SkRegion* dst, const SkRegion& src, float scale) { in scale_rgn() argument 144 scale_rect(&r, iter.rect(), scale); in scale_rgn() 150 static void Region_scale(JNIEnv* env, jobject region, jfloat scale, jobject dst) { in Region_scale() argument 153 scale_rgn(GetSkRegion(env, dst), *rgn, scale); in Region_scale() 155 scale_rgn(rgn, *rgn, scale); in Region_scale()
|
/frameworks/av/media/libstagefright/codecs/aacenc/basic_op/ |
D | oper_32b.c | 247 Word32 scale; in rsqrt() local 252 scale = norm_l(value); in rsqrt() 253 if(scale & 1) scale--; in rsqrt() 255 value <<= scale; in rsqrt() 262 scale >>= 1; in rsqrt() 266 root >>= scale; in rsqrt()
|
/frameworks/base/services/java/com/android/server/am/ |
D | ProcessList.java | 189 float scale = scaleMem > scaleDisp ? scaleMem : scaleDisp; in updateOomLevels() local 190 if (scale < 0) scale = 0; in updateOomLevels() 191 else if (scale > 1) scale = 1; in updateOomLevels() 195 mOomMinFree[i] = (long)(low + ((high-low)*scale)); in updateOomLevels()
|
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
D | BitmapFactory_Delegate.java | 67 float scale = targetDensity / (float)density; in finishDecode() local 70 bm = Bitmap.createScaledBitmap(oldBitmap, (int) (bm.getWidth() * scale + 0.5f), in finishDecode() 71 (int) (bm.getHeight() * scale + 0.5f), true); in finishDecode() 75 np = nativeScaleNinePatch(np, scale, outPadding); in finishDecode() 95 Rect padding, Options opts, boolean applyScale, float scale) { in nativeDecodeStream() argument 154 boolean applyScale, float scale) { in nativeDecodeAsset() argument 167 /*package*/ static byte[] nativeScaleNinePatch(byte[] chunk, float scale, Rect pad) { in nativeScaleNinePatch() argument
|
/frameworks/base/tests/RenderScriptTests/ImageProcessing2/src/com/android/rs/image/ |
D | Fisheye.java | 32 private float scale = 0.5f; field in Fisheye 59 scale = progress / 50.0f; in onBar1Changed() 77 center_y, scale); in do_init() local 82 center_y, scale); in do_init() local 87 scale); in do_init() local 92 scale); in do_init() local
|
D | Vignette.java | 32 private float scale = 0.5f; field in Vignette 73 scale = progress / 50.0f; in onBar1Changed() 99 center_y, scale, shade, slope); in do_init() local 104 center_y, scale, shade, slope); in do_init() local 109 scale, shade, slope); in do_init() local 114 scale, shade, slope); in do_init() local
|
/frameworks/base/tests/RenderScriptTests/ImageProcessing/src/com/android/rs/image/ |
D | Fisheye.java | 35 private float scale = 0.5f; field in Fisheye 62 scale = progress / 50.0f; in onBar1Changed() 80 center_y, scale); in do_init() local 85 center_y, scale); in do_init() local 90 scale); in do_init() local 95 scale); in do_init() local
|
D | Vignette.java | 35 private float scale = 0.5f; field in Vignette 76 scale = progress / 50.0f; in onBar1Changed() 102 center_y, scale, shade, slope); in do_init() local 107 center_y, scale, shade, slope); in do_init() local 112 scale, shade, slope); in do_init() local 117 scale, shade, slope); in do_init() local
|
/frameworks/base/tests/TransformTest/src/com/google/android/test/transform/ |
D | TransformTestActivity.java | 78 float scale = detector.getScaleFactor(); in onScale() local 80 Log.d("ttest", "Scale: " + scale); in onScale() 83 if (mScale * scale > 0.1f) { in onScale() 84 if (mScale * scale < 10.f) { in onScale() 85 mScale *= scale; in onScale() 101 diffX = diffX*scale - diffX; in onScale() 102 diffY = diffY*scale - diffY; in onScale()
|
/frameworks/base/tests/RenderScriptTests/PerfTest/src/com/android/perftest/ |
D | ui_test.rs | 142 static void createParticle(Particle_t *part, int idx, float scale) { 167 d = mapf(-4.0f, gGalaxyRadius + 4.0f, 0.0f, scale, d); 171 gSpeed[idx] = rsRand(0.0015f, 0.0025f) * (0.5f + (scale / d)) * 0.8f; 181 float scale = gGalaxyRadius / (gWidth * 0.5f); 184 createParticle(part, i, scale); 204 float scale = 512.0f / gWidth; 205 float x = -scale - scale * 0.05f; 206 float y = -scale; 208 scale *= 2.0f; 211 x + scale * 1.1f, y, 0.0f, [all …]
|