/frameworks/base/graphics/java/android/graphics/drawable/ |
H A D | InsetDrawable.java | 344 void onDensityChanged(int sourceDensity, int targetDensity) { argument 345 super.onDensityChanged(sourceDensity, targetDensity); 347 applyDensityScaling(sourceDensity, targetDensity); 354 * @param sourceDensity the previous constant state density 357 private void applyDensityScaling(int sourceDensity, int targetDensity) { argument 358 mInsetLeft.scaleFromDensity(sourceDensity, targetDensity); 359 mInsetTop.scaleFromDensity(sourceDensity, targetDensity); 360 mInsetRight.scaleFromDensity(sourceDensity, targetDensity); 361 mInsetBottom.scaleFromDensity(sourceDensity, targetDensity); 401 void scaleFromDensity(int sourceDensity, in argument [all...] |
H A D | NinePatchDrawable.java | 663 final int sourceDensity = ninePatch.getDensity(); 669 sourceOpticalInsets.left, sourceDensity, targetDensity, true); 671 sourceOpticalInsets.top, sourceDensity, targetDensity, true); 673 sourceOpticalInsets.right, sourceDensity, targetDensity, true); 675 sourceOpticalInsets.bottom, sourceDensity, targetDensity, true); 687 sourcePadding.left, sourceDensity, targetDensity, false); 689 sourcePadding.top, sourceDensity, targetDensity, false); 691 sourcePadding.right, sourceDensity, targetDensity, false); 693 sourcePadding.bottom, sourceDensity, targetDensity, false); 699 ninePatch.getHeight(), sourceDensity, targetDensit [all...] |
H A D | GradientDrawable.java | 1897 final int sourceDensity = mDensity; 1900 applyDensityScaling(sourceDensity, targetDensity); 1904 private void applyDensityScaling(int sourceDensity, int targetDensity) { argument 1907 mInnerRadius, sourceDensity, targetDensity, true); 1911 mThickness, sourceDensity, targetDensity, true); 1915 mOpticalInsets.left, sourceDensity, targetDensity, true); 1917 mOpticalInsets.top, sourceDensity, targetDensity, true); 1919 mOpticalInsets.right, sourceDensity, targetDensity, true); 1921 mOpticalInsets.bottom, sourceDensity, targetDensity, true); 1926 mPadding.left, sourceDensity, targetDensit [all...] |
H A D | LayerDrawable.java | 1894 final int sourceDensity = mDensity; 1897 applyDensityScaling(sourceDensity, targetDensity); 1901 private void applyDensityScaling(int sourceDensity, int targetDensity) { argument 1902 mInsetL = Drawable.scaleFromDensity(mInsetL, sourceDensity, targetDensity, false); 1903 mInsetT = Drawable.scaleFromDensity(mInsetT, sourceDensity, targetDensity, false); 1904 mInsetR = Drawable.scaleFromDensity(mInsetR, sourceDensity, targetDensity, false); 1905 mInsetB = Drawable.scaleFromDensity(mInsetB, sourceDensity, targetDensity, false); 1907 mInsetS = Drawable.scaleFromDensity(mInsetS, sourceDensity, targetDensity, false); 1910 mInsetE = Drawable.scaleFromDensity(mInsetE, sourceDensity, targetDensity, false); 1913 mWidth = Drawable.scaleFromDensity(mWidth, sourceDensity, targetDensit 2003 onDensityChanged(int sourceDensity, int targetDensity) argument 2007 applyDensityScaling(int sourceDensity, int targetDensity) argument [all...] |
H A D | VectorDrawable.java | 483 final int sourceDensity = mVectorState.mDensity; 485 if (targetDensity != sourceDensity) { 486 mDpiScaledWidth = Drawable.scaleFromDensity(mVectorState.mBaseWidth, sourceDensity, 488 mDpiScaledHeight = Drawable.scaleFromDensity(mVectorState.mBaseHeight,sourceDensity, 491 opticalInsets.left, sourceDensity, targetDensity, false); 493 opticalInsets.right, sourceDensity, targetDensity, false); 495 opticalInsets.top, sourceDensity, targetDensity, false); 497 opticalInsets.bottom, sourceDensity, targetDensity, false); 998 final int sourceDensity = mDensity; 1000 applyDensityScaling(sourceDensity, targetDensit 1006 applyDensityScaling(int sourceDensity, int targetDensity) argument [all...] |
H A D | Drawable.java | 1510 * @param sourceDensity the source density 1514 static float scaleFromDensity(float pixels, int sourceDensity, int targetDensity) { argument 1515 return pixels * targetDensity / sourceDensity; 1530 * @param sourceDensity the source density 1537 int pixels, int sourceDensity, int targetDensity, boolean isSize) { 1538 if (pixels == 0 || sourceDensity == targetDensity) { 1542 final float result = pixels * targetDensity / (float) sourceDensity; 1536 scaleFromDensity( int pixels, int sourceDensity, int targetDensity, boolean isSize) argument
|
H A D | RippleDrawable.java | 1012 protected void onDensityChanged(int sourceDensity, int targetDensity) { argument 1013 super.onDensityChanged(sourceDensity, targetDensity); 1015 applyDensityScaling(sourceDensity, targetDensity); 1018 private void applyDensityScaling(int sourceDensity, int targetDensity) { argument 1021 mMaxRadius, sourceDensity, targetDensity, true);
|
H A D | DrawableWrapper.java | 498 final int sourceDensity = mDensity; 501 onDensityChanged(sourceDensity, targetDensity); 511 * @param sourceDensity the previous constant state density 514 void onDensityChanged(int sourceDensity, int targetDensity) { argument
|
H A D | BitmapDrawable.java | 559 final int sourceDensity = bitmap.getDensity(); 561 final boolean needScaling = sourceDensity != 0 && sourceDensity != targetDensity; 573 final float densityScale = targetDensity / (float) sourceDensity;
|
H A D | DrawableContainer.java | 961 final int sourceDensity = mDensity; 964 if (sourceDensity != targetDensity) {
|