/frameworks/base/graphics/java/android/graphics/drawable/ |
H A D | InsetDrawable.java | 276 void onDensityChanged(int sourceDensity, int targetDensity) { argument 277 super.onDensityChanged(sourceDensity, targetDensity); 279 applyDensityScaling(sourceDensity, targetDensity); 286 * @param sourceDensity the previous constant state density 289 private void applyDensityScaling(int sourceDensity, int targetDensity) { argument 290 mInsetLeft = Bitmap.scaleFromDensity(mInsetLeft, sourceDensity, targetDensity); 291 mInsetTop = Bitmap.scaleFromDensity(mInsetTop, sourceDensity, targetDensity); 292 mInsetRight = Bitmap.scaleFromDensity(mInsetRight, sourceDensity, targetDensity); 293 mInsetBottom = Bitmap.scaleFromDensity(mInsetBottom, sourceDensity, targetDensity);
|
H A D | NinePatchDrawable.java | 667 final int sourceDensity = ninePatch.getDensity(); 673 sourceOpticalInsets.left, sourceDensity, targetDensity, true); 675 sourceOpticalInsets.top, sourceDensity, targetDensity, true); 677 sourceOpticalInsets.right, sourceDensity, targetDensity, true); 679 sourceOpticalInsets.bottom, sourceDensity, targetDensity, true); 691 sourcePadding.left, sourceDensity, targetDensity, false); 693 sourcePadding.top, sourceDensity, targetDensity, false); 695 sourcePadding.right, sourceDensity, targetDensity, false); 697 sourcePadding.bottom, sourceDensity, targetDensity, false); 703 ninePatch.getHeight(), sourceDensity, targetDensit [all...] |
H A D | GradientDrawable.java | 1887 final int sourceDensity = mDensity; 1890 applyDensityScaling(sourceDensity, targetDensity); 1894 private void applyDensityScaling(int sourceDensity, int targetDensity) { argument 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, targetDensit [all...] |
H A D | LayerDrawable.java | 1880 final int sourceDensity = mDensity; 1883 applyDensityScaling(sourceDensity, targetDensity); 1887 private void applyDensityScaling(int sourceDensity, int targetDensity) { argument 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, targetDensit 1989 onDensityChanged(int sourceDensity, int targetDensity) argument 1993 applyDensityScaling(int sourceDensity, int targetDensity) argument [all...] |
H A D | VectorDrawable.java | 476 final int sourceDensity = mVectorState.mDensity; 478 if (targetDensity != sourceDensity) { 480 (int) mVectorState.mBaseWidth, sourceDensity, targetDensity, true); 482 (int) mVectorState.mBaseHeight,sourceDensity, targetDensity, true); 484 opticalInsets.left, sourceDensity, targetDensity, false); 486 opticalInsets.right, sourceDensity, targetDensity, false); 488 opticalInsets.top, sourceDensity, targetDensity, false); 490 opticalInsets.bottom, sourceDensity, targetDensity, false); 986 final int sourceDensity = mDensity; 988 applyDensityScaling(sourceDensity, targetDensit 994 applyDensityScaling(int sourceDensity, int targetDensity) argument [all...] |
H A D | Drawable.java | 1443 * @param sourceDensity the source density 1447 static float scaleFromDensity(float pixels, int sourceDensity, int targetDensity) { argument 1448 return pixels * targetDensity / sourceDensity; 1463 * @param sourceDensity the source density 1470 int pixels, int sourceDensity, int targetDensity, boolean isSize) { 1471 if (pixels == 0 || sourceDensity == targetDensity) { 1475 final float result = pixels * targetDensity / (float) sourceDensity; 1469 scaleFromDensity( int pixels, int sourceDensity, int targetDensity, boolean isSize) argument
|
H A D | RippleDrawable.java | 1006 protected void onDensityChanged(int sourceDensity, int targetDensity) { argument 1007 super.onDensityChanged(sourceDensity, targetDensity); 1009 applyDensityScaling(sourceDensity, targetDensity); 1012 private void applyDensityScaling(int sourceDensity, int targetDensity) { argument 1015 mMaxRadius, sourceDensity, targetDensity, true);
|
H A D | DrawableWrapper.java | 483 final int sourceDensity = mDensity; 486 onDensityChanged(sourceDensity, targetDensity); 496 * @param sourceDensity the previous constant state density 499 void onDensityChanged(int sourceDensity, int targetDensity) { argument
|
H A D | BitmapDrawable.java | 558 final int sourceDensity = bitmap.getDensity(); 560 final boolean needScaling = sourceDensity != 0 && sourceDensity != targetDensity; 572 final float densityScale = targetDensity / (float) sourceDensity;
|
H A D | DrawableContainer.java | 935 final int sourceDensity = mDensity; 938 if (sourceDensity != targetDensity) {
|