Searched defs:sourceDensity (Results 1 - 7 of 7) sorted by relevance

/frameworks/base/graphics/java/android/graphics/drawable/
H A DInsetDrawable.java344 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 DDrawableWrapper.java498 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 DDrawable.java1510 * @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 DRippleDrawable.java1012 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 DGradientDrawable.java1897 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 DLayerDrawable.java1894 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 DVectorDrawable.java483 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...]

Completed in 878 milliseconds