Lines Matching defs:targetDensity

1892         public final void setDensity(int targetDensity) {
1893 if (mDensity != targetDensity) {
1895 mDensity = targetDensity;
1897 applyDensityScaling(sourceDensity, targetDensity);
1901 private void applyDensityScaling(int sourceDensity, int targetDensity) {
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, targetDensity, true);
1916 mHeight = Drawable.scaleFromDensity(mHeight, sourceDensity, targetDensity, true);
1994 public final void setDensity(int targetDensity) {
1995 if (mDensity != targetDensity) {
1997 mDensity = targetDensity;
1999 onDensityChanged(sourceDensity, targetDensity);
2003 protected void onDensityChanged(int sourceDensity, int targetDensity) {
2004 applyDensityScaling(sourceDensity, targetDensity);
2007 private void applyDensityScaling(int sourceDensity, int targetDensity) {
2010 mPaddingLeft, sourceDensity, targetDensity, false);
2014 mPaddingTop, sourceDensity, targetDensity, false);
2018 mPaddingRight, sourceDensity, targetDensity, false);
2022 mPaddingBottom, sourceDensity, targetDensity, false);
2026 mPaddingStart, sourceDensity, targetDensity, false);
2030 mPaddingEnd, sourceDensity, targetDensity, false);