/frameworks/base/libs/rs/java/Rollo/res/raw/ |
D | rollo.c | 69 float scale = 1.0f / zoom; in main() local 74 float rot = drawRot * scale; in main() 75 float rotStep = 16.0f / 180.0f * 3.14f * scale; in main() 84 float tx1 = tmpSin * diam - (tmpCos * scale * 0.9f); in main() 85 float tx2 = tx1 + (tmpCos * scale * 1.8f); in main() 86 float tz1 = tmpCos * diam + (tmpSin * scale * 0.9f); in main() 87 float tz2 = tz1 - (tmpSin * scale * 1.8f); in main() 91 float ty1 = ((y * 3.1f) - 5.f) * scale; in main() 92 float ty2 = ty1 + scale * 1.8f; in main() 110 rot = drawRot * scale; in main() [all …]
|
/frameworks/base/core/java/android/content/res/ |
D | CompatibilityInfo.java | 148 int dens, float scale, float invertedScale) { in CompatibilityInfo() argument 152 applicationScale = scale; in CompatibilityInfo() 263 rect.scale(applicationInvertedScale); in translateRectInScreenToAppWinFrame() 270 transparentRegion.scale(applicationScale); in translateRegionInWindowToScreen() 296 canvas.scale(applicationScale, applicationScale); in translateCanvas() 303 event.scale(applicationInvertedScale); in translateEventInScreenToAppWindow() 311 params.scale(applicationScale); in translateWindowLayout() 318 rect.scale(applicationScale); in translateRectInAppWindowToScreen() 325 rect.scale(applicationInvertedScale); in translateRectInScreenToAppWindow() 333 params.scale(applicationScale); in translateLayoutParamsInAppWindowToScreen()
|
/frameworks/base/core/java/android/widget/ |
D | AbsSeekBar.java | 172 void onProgressRefresh(float scale, boolean fromUser) { 175 setThumbPos(getWidth(), thumb, scale, Integer.MIN_VALUE); 196 float scale = max > 0 ? (float) getProgress() / (float) max : 0; 200 setThumbPos(w, thumb, scale, 0); 217 setThumbPos(w, thumb, scale, gap); 225 private void setThumbPos(int w, Drawable thumb, float scale, int gap) { 234 int thumbPos = (int) (scale * available); 323 float scale; 326 scale = 0.0f; 328 scale = 1.0f; [all …]
|
D | ImageView.java | 180 int scale = alpha + (alpha >> 7); in onSetAlpha() local 181 if (mViewAlphaScale != scale) { in onSetAlpha() 182 mViewAlphaScale = scale; in onSetAlpha() 762 float scale; in configureBounds() local 766 scale = (float) vheight / (float) dheight; in configureBounds() 767 dx = (vwidth - dwidth * scale) * 0.5f; in configureBounds() 769 scale = (float) vwidth / (float) dwidth; in configureBounds() 770 dy = (vheight - dheight * scale) * 0.5f; in configureBounds() 773 mDrawMatrix.setScale(scale, scale); in configureBounds() 777 float scale; in configureBounds() local [all …]
|
D | AnalogClock.java | 147 float scale = Math.min(hScale, vScale); in onMeasure() local 149 setMeasuredDimension(resolveSize((int) (mDialWidth * scale), widthMeasureSpec), in onMeasure() 150 resolveSize((int) (mDialHeight * scale), heightMeasureSpec)); in onMeasure() 182 float scale = Math.min((float) availableWidth / (float) w, in onDraw() local 185 canvas.scale(scale, scale, x, y); in onDraw()
|
D | SeekBar.java | 85 void onProgressRefresh(float scale, boolean fromUser) { in onProgressRefresh() argument 86 super.onProgressRefresh(scale, fromUser); in onProgressRefresh()
|
D | RatingBar.java | 244 void onProgressRefresh(float scale, boolean fromUser) { in onProgressRefresh() argument 245 super.onProgressRefresh(scale, fromUser); in onProgressRefresh()
|
/frameworks/base/media/java/android/media/ |
D | ThumbnailUtil.java | 246 float scale; in extractMiniThumb() local 248 scale = width / (float) source.getWidth(); in extractMiniThumb() 250 scale = height / (float) source.getHeight(); in extractMiniThumb() 253 matrix.setScale(scale, scale); in extractMiniThumb() 393 float scale = targetHeight / bitmapHeightF; in transform() local 394 if (scale < .9F || scale > 1F) { in transform() 395 scaler.setScale(scale, scale); in transform() 400 float scale = targetWidth / bitmapWidthF; in transform() local 401 if (scale < .9F || scale > 1F) { in transform() 402 scaler.setScale(scale, scale); in transform()
|
/frameworks/base/core/jni/android/graphics/ |
D | Region.cpp | 106 static void scale_rect(SkIRect* dst, const SkIRect& src, float scale) { in scale_rect() argument 107 dst->fLeft = (int)::roundf(src.fLeft * scale); in scale_rect() 108 dst->fTop = (int)::roundf(src.fTop * scale); in scale_rect() 109 dst->fRight = (int)::roundf(src.fRight * scale); in scale_rect() 110 dst->fBottom = (int)::roundf(src.fBottom * scale); in scale_rect() 115 static void scale_rgn(SkRegion* dst, const SkRegion& src, float scale) { in scale_rgn() argument 121 scale_rect(&r, iter.rect(), scale); in scale_rgn() 127 static void Region_scale(JNIEnv* env, jobject region, jfloat scale, jobject dst) { in Region_scale() argument 130 scale_rgn(GetSkRegion(env, dst), *rgn, scale); in Region_scale() 132 scale_rgn(rgn, *rgn, scale); in Region_scale()
|
D | NinePatch.cpp | 93 SkScalar scale = SkFloatToScalar(destDensity / (float)srcDensity); in draw() local 95 canvas->scale(scale, scale); in draw() 97 bounds.fRight = SkScalarDiv(bounds.fRight-bounds.fLeft, scale); in draw() 98 bounds.fBottom = SkScalarDiv(bounds.fBottom-bounds.fTop, scale); in draw()
|
D | BitmapFactory.cpp | 606 static jbyteArray nativeScaleNinePatch(JNIEnv* env, jobject, jbyteArray chunkObject, jfloat scale, in nativeScaleNinePatch() argument 617 chunk->paddingLeft = int(chunk->paddingLeft * scale + 0.5f); in nativeScaleNinePatch() 618 chunk->paddingTop = int(chunk->paddingTop * scale + 0.5f); in nativeScaleNinePatch() 619 chunk->paddingRight = int(chunk->paddingRight * scale + 0.5f); in nativeScaleNinePatch() 620 chunk->paddingBottom = int(chunk->paddingBottom * scale + 0.5f); in nativeScaleNinePatch() 623 chunk->xDivs[i] = int(chunk->xDivs[i] * scale + 0.5f); in nativeScaleNinePatch() 630 chunk->yDivs[i] = int(chunk->yDivs[i] * scale + 0.5f); in nativeScaleNinePatch()
|
/frameworks/base/graphics/java/android/graphics/ |
D | Region.java | 223 public void scale(float scale) { in scale() method in Region 224 scale(scale, null); in scale() 232 public native void scale(float scale, Region dst); in scale() method in Region
|
D | Rect.java | 553 public void scale(float scale) { in scale() method in Rect 554 if (scale != 1.0f) { in scale() 555 left = (int) (left * scale + 0.5f); in scale() 556 top = (int) (top * scale + 0.5f); in scale() 557 right = (int) (right * scale + 0.5f); in scale() 558 bottom = (int) (bottom * scale + 0.5f); in scale()
|
D | BitmapFactory.java | 485 float scale = targetDensity / (float)density; in finishDecode() local 488 bm = Bitmap.createScaledBitmap(oldBitmap, (int) (bm.getWidth() * scale + 0.5f), in finishDecode() 489 (int) (bm.getHeight() * scale + 0.5f), true); in finishDecode() 493 np = nativeScaleNinePatch(np, scale, outPadding); in finishDecode() 568 private static native byte[] nativeScaleNinePatch(byte[] chunk, float scale, Rect pad); in nativeScaleNinePatch() argument
|
/frameworks/base/core/java/android/gesture/ |
D | Gesture.java | 225 final float scale = sx > sy ? sy : sx; in toBitmap() local 226 paint.setStrokeWidth(2.0f / scale); in toBitmap() 228 path.offset(-bounds.left + (width - bounds.width() * scale) / 2.0f, in toBitmap() 229 -bounds.top + (height - bounds.height() * scale) / 2.0f); in toBitmap() 232 canvas.scale(scale, scale); in toBitmap()
|
D | GestureStroke.java | 153 float scale = sx > sy ? sy : sx; in toPath() local 154 GestureUtilities.scale(pts, scale, scale); in toPath()
|
/frameworks/base/tests/DpiTest/src/com/google/android/test/dpi/ |
D | DpiTestActivity.java | 161 private void addBitmapDrawable(LinearLayout layout, int resource, boolean scale) { in addBitmapDrawable() argument 163 bitmap = loadAndPrintDpi(resource, scale); in addBitmapDrawable() 168 if (!scale) d.setTargetDensity(getResources().getDisplayMetrics()); in addBitmapDrawable() 187 private void addCanvasBitmap(LinearLayout layout, int resource, boolean scale) { in addCanvasBitmap() argument 189 bitmap = loadAndPrintDpi(resource, scale); in addCanvasBitmap() 211 private Bitmap loadAndPrintDpi(int id, boolean scale) { in loadAndPrintDpi() argument 213 if (scale) { in loadAndPrintDpi()
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/ |
D | ResourceHelper.java | 229 float scale; field in ResourceHelper.UnitEntry 231 UnitEntry(String name, int type, int unit, float scale) { in UnitEntry() argument 235 this.scale = scale; in UnitEntry() 374 outScale[0] = unit.scale;
|
/frameworks/base/core/java/android/view/ |
D | WindowManager.java | 1039 public void scale(float scale) { in scale() argument 1040 x = (int) (x * scale + 0.5f); in scale() 1041 y = (int) (y * scale + 0.5f); in scale() 1043 width = (int) (width * scale + 0.5f); in scale() 1046 height = (int) (height * scale + 0.5f); in scale()
|
D | MotionEvent.java | 498 public void scale(float scale) { in scale() method in MotionEvent 499 mRawX *= scale; in scale() 500 mRawY *= scale; in scale() 501 mXPrecision *= scale; in scale() 502 mYPrecision *= scale; in scale() 506 history[i + SAMPLE_X] *= scale; in scale() 507 history[i + SAMPLE_Y] *= scale; in scale() 509 history[i + SAMPLE_SIZE] *= scale; // TODO: square this? in scale()
|
/frameworks/base/core/java/android/webkit/ |
D | WebView.java | 1200 float scale = b.getFloat("scale", 1.0f); in restorePicture() local 1205 mHistoryWidth = Math.round(p.getWidth() * scale); in restorePicture() 1206 mHistoryHeight = Math.round(p.getHeight() * scale); in restorePicture() 1211 mActualScale = scale; in restorePicture() 1874 final float scale = mActualScale; in viewInvalidate() local 1876 invalidate((int)Math.floor(l * scale), in viewInvalidate() 1877 (int)Math.floor(t * scale) + dy, in viewInvalidate() 1878 (int)Math.ceil(r * scale), in viewInvalidate() 1879 (int)Math.ceil(b * scale) + dy); in viewInvalidate() 1885 final float scale = mActualScale; in viewInvalidateDelayed() local [all …]
|
/frameworks/base/media/libstagefright/ |
D | MediaPlayerImpl.cpp | 272 int32_t units, scale; in videoEntry() local 277 buffer->meta_data()->findInt32(kKeyTimeScale, &scale); in videoEntry() 280 int64_t pts_us = (int64_t)units * 1000000 / scale; in videoEntry() 394 int32_t units, scale; in init() local 396 && meta->findInt32(kKeyTimeScale, &scale)) { in init() 397 int64_t duration_us = (int64_t)units * 1000000 / scale; in init()
|
D | AudioPlayer.cpp | 213 int32_t units, scale; in fillBuffer() local 217 mInputBuffer->meta_data()->findInt32(kKeyTimeScale, &scale); in fillBuffer() 221 mPositionTimeMediaUs = (int64_t)units * 1000000 / scale; in fillBuffer()
|
/frameworks/base/awt/org/apache/harmony/awt/gl/color/ |
D | ColorConverter.java | 88 scaler.scale(normalizedVal, srcChanData, srcDataPos); in translateColor() 143 scaler.scale(buffer[i], srcShortData, srcDataPos); in translateColor() 192 short srcData[] = scaler.scale(src); in translateColor()
|
/frameworks/base/core/java/android/app/ |
D | WallpaperManager.java | 702 float scale = 1.0f; in generateBitmap() local 704 scale = width / (float)targetRect.right; in generateBitmap() 706 scale = height / (float)targetRect.bottom; in generateBitmap() 708 targetRect.right = (int)(targetRect.right*scale); in generateBitmap() 709 targetRect.bottom = (int)(targetRect.bottom*scale); in generateBitmap()
|