Lines Matching refs:sourceDensity
507 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, targetDensity);
1025 private void applyDensityScaling(int sourceDensity, int targetDensity) {
1026 mBaseWidth = Drawable.scaleFromDensity(mBaseWidth, sourceDensity, targetDensity);
1027 mBaseHeight = Drawable.scaleFromDensity(mBaseHeight, sourceDensity, targetDensity);
1030 mOpticalInsets.left, sourceDensity, targetDensity, false);
1032 mOpticalInsets.top, sourceDensity, targetDensity, false);
1034 mOpticalInsets.right, sourceDensity, targetDensity, false);
1036 mOpticalInsets.bottom, sourceDensity, targetDensity, false);