Searched refs:sourceDensity (Results 1 - 10 of 10) sorted by relevance

/frameworks/base/graphics/java/android/graphics/drawable/
H A DInsetDrawable.java276 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 DNinePatchDrawable.java667 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 DGradientDrawable.java1887 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 DLayerDrawable.java1880 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 DVectorDrawable.java507 final int sourceDensity = mVectorState.mDensity;
509 if (targetDensity != sourceDensity) {
511 (int) mVectorState.mBaseWidth, sourceDensity, targetDensity, true);
513 (int) mVectorState.mBaseHeight,sourceDensity, targetDensity, true);
515 opticalInsets.left, sourceDensity, targetDensity, false);
517 opticalInsets.right, sourceDensity, targetDensity, false);
519 opticalInsets.top, sourceDensity, targetDensity, false);
521 opticalInsets.bottom, sourceDensity, targetDensity, false);
1017 final int sourceDensity = mDensity;
1019 applyDensityScaling(sourceDensity, targetDensit
1025 applyDensityScaling(int sourceDensity, int targetDensity) argument
[all...]
H A DDrawable.java1443 * @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 DRippleDrawable.java1006 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 DDrawableWrapper.java483 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 DBitmapDrawable.java558 final int sourceDensity = bitmap.getDensity();
560 final boolean needScaling = sourceDensity != 0 && sourceDensity != targetDensity;
572 final float densityScale = targetDensity / (float) sourceDensity;
H A DDrawableContainer.java935 final int sourceDensity = mDensity;
938 if (sourceDensity != targetDensity) {

Completed in 110 milliseconds