/frameworks/base/graphics/java/android/graphics/drawable/ |
D | InsetDrawable.java | 276 void onDensityChanged(int sourceDensity, int targetDensity) { in onDensityChanged() argument 277 super.onDensityChanged(sourceDensity, targetDensity); in onDensityChanged() 279 applyDensityScaling(sourceDensity, targetDensity); in onDensityChanged() 289 private void applyDensityScaling(int sourceDensity, int targetDensity) { in applyDensityScaling() argument 290 mInsetLeft = Bitmap.scaleFromDensity(mInsetLeft, sourceDensity, targetDensity); in applyDensityScaling() 291 mInsetTop = Bitmap.scaleFromDensity(mInsetTop, sourceDensity, targetDensity); in applyDensityScaling() 292 mInsetRight = Bitmap.scaleFromDensity(mInsetRight, sourceDensity, targetDensity); in applyDensityScaling() 293 mInsetBottom = Bitmap.scaleFromDensity(mInsetBottom, sourceDensity, targetDensity); in applyDensityScaling()
|
D | NinePatchDrawable.java | 667 final int sourceDensity = ninePatch.getDensity(); in computeBitmapSize() local 673 sourceOpticalInsets.left, sourceDensity, targetDensity, true); in computeBitmapSize() 675 sourceOpticalInsets.top, sourceDensity, targetDensity, true); in computeBitmapSize() 677 sourceOpticalInsets.right, sourceDensity, targetDensity, true); in computeBitmapSize() 679 sourceOpticalInsets.bottom, sourceDensity, targetDensity, true); in computeBitmapSize() 691 sourcePadding.left, sourceDensity, targetDensity, false); in computeBitmapSize() 693 sourcePadding.top, sourceDensity, targetDensity, false); in computeBitmapSize() 695 sourcePadding.right, sourceDensity, targetDensity, false); in computeBitmapSize() 697 sourcePadding.bottom, sourceDensity, targetDensity, false); in computeBitmapSize() 703 ninePatch.getHeight(), sourceDensity, targetDensity, true); in computeBitmapSize() [all …]
|
D | GradientDrawable.java | 1887 final int sourceDensity = mDensity; 1890 applyDensityScaling(sourceDensity, targetDensity); 1894 private void applyDensityScaling(int sourceDensity, int targetDensity) { 1897 mInnerRadius, sourceDensity, targetDensity, true); 1901 mThickness, sourceDensity, targetDensity, true); 1905 mOpticalInsets.left, sourceDensity, targetDensity, true); 1907 mOpticalInsets.top, sourceDensity, targetDensity, true); 1909 mOpticalInsets.right, sourceDensity, targetDensity, true); 1911 mOpticalInsets.bottom, sourceDensity, targetDensity, true); 1916 mPadding.left, sourceDensity, targetDensity, false); [all …]
|
D | LayerDrawable.java | 1880 final int sourceDensity = mDensity; 1883 applyDensityScaling(sourceDensity, targetDensity); 1887 private void applyDensityScaling(int sourceDensity, int targetDensity) { 1888 mInsetL = Drawable.scaleFromDensity(mInsetL, sourceDensity, targetDensity, false); 1889 mInsetT = Drawable.scaleFromDensity(mInsetT, sourceDensity, targetDensity, false); 1890 mInsetR = Drawable.scaleFromDensity(mInsetR, sourceDensity, targetDensity, false); 1891 mInsetB = Drawable.scaleFromDensity(mInsetB, sourceDensity, targetDensity, false); 1893 mInsetS = Drawable.scaleFromDensity(mInsetS, sourceDensity, targetDensity, false); 1896 mInsetE = Drawable.scaleFromDensity(mInsetE, sourceDensity, targetDensity, false); 1899 mWidth = Drawable.scaleFromDensity(mWidth, sourceDensity, targetDensity, true); [all …]
|
D | VectorDrawable.java | 476 final int sourceDensity = mVectorState.mDensity; in computeVectorSize() local 478 if (targetDensity != sourceDensity) { in computeVectorSize() 480 (int) mVectorState.mBaseWidth, sourceDensity, targetDensity, true); in computeVectorSize() 482 (int) mVectorState.mBaseHeight,sourceDensity, targetDensity, true); in computeVectorSize() 484 opticalInsets.left, sourceDensity, targetDensity, false); in computeVectorSize() 486 opticalInsets.right, sourceDensity, targetDensity, false); in computeVectorSize() 488 opticalInsets.top, sourceDensity, targetDensity, false); in computeVectorSize() 490 opticalInsets.bottom, sourceDensity, targetDensity, false); in computeVectorSize() 986 final int sourceDensity = mDensity; in setDensity() local 988 applyDensityScaling(sourceDensity, targetDensity); in setDensity() [all …]
|
D | Drawable.java | 1447 static float scaleFromDensity(float pixels, int sourceDensity, int targetDensity) { in scaleFromDensity() argument 1448 return pixels * targetDensity / sourceDensity; in scaleFromDensity() 1470 int pixels, int sourceDensity, int targetDensity, boolean isSize) { in scaleFromDensity() argument 1471 if (pixels == 0 || sourceDensity == targetDensity) { in scaleFromDensity() 1475 final float result = pixels * targetDensity / (float) sourceDensity; in scaleFromDensity()
|
D | RippleDrawable.java | 1006 protected void onDensityChanged(int sourceDensity, int targetDensity) { in onDensityChanged() argument 1007 super.onDensityChanged(sourceDensity, targetDensity); in onDensityChanged() 1009 applyDensityScaling(sourceDensity, targetDensity); in onDensityChanged() 1012 private void applyDensityScaling(int sourceDensity, int targetDensity) { in applyDensityScaling() argument 1015 mMaxRadius, sourceDensity, targetDensity, true); in applyDensityScaling()
|
D | DrawableWrapper.java | 483 final int sourceDensity = mDensity; in setDensity() local 486 onDensityChanged(sourceDensity, targetDensity); in setDensity() 499 void onDensityChanged(int sourceDensity, int targetDensity) { in onDensityChanged() argument
|
D | BitmapDrawable.java | 558 final int sourceDensity = bitmap.getDensity(); in updateShaderMatrix() local 560 final boolean needScaling = sourceDensity != 0 && sourceDensity != targetDensity; in updateShaderMatrix() 572 final float densityScale = targetDensity / (float) sourceDensity; in updateShaderMatrix()
|
D | DrawableContainer.java | 935 final int sourceDensity = mDensity; in updateDensity() local 938 if (sourceDensity != targetDensity) { in updateDensity()
|