Home
last modified time | relevance | path

Searched refs:targetDensity (Results 1 – 16 of 16) sorted by relevance

/frameworks/base/graphics/java/android/graphics/drawable/
DInsetDrawable.java346 void onDensityChanged(int sourceDensity, int targetDensity) { in onDensityChanged() argument
347 super.onDensityChanged(sourceDensity, targetDensity); in onDensityChanged()
349 applyDensityScaling(sourceDensity, targetDensity); in onDensityChanged()
359 private void applyDensityScaling(int sourceDensity, int targetDensity) { in applyDensityScaling() argument
360 mInsetLeft.scaleFromDensity(sourceDensity, targetDensity); in applyDensityScaling()
361 mInsetTop.scaleFromDensity(sourceDensity, targetDensity); in applyDensityScaling()
362 mInsetRight.scaleFromDensity(sourceDensity, targetDensity); in applyDensityScaling()
363 mInsetBottom.scaleFromDensity(sourceDensity, targetDensity); in applyDensityScaling()
403 void scaleFromDensity(int sourceDensity, int targetDensity) { in scaleFromDensity() argument
405 mDimension = Bitmap.scaleFromDensity(mDimension, sourceDensity, targetDensity); in scaleFromDensity()
DNinePatchDrawable.java671 final int targetDensity = mTargetDensity; in computeBitmapSize() local
673 targetDensity : ninePatch.getDensity(); in computeBitmapSize()
678 sourceOpticalInsets.left, sourceDensity, targetDensity, true); in computeBitmapSize()
680 sourceOpticalInsets.top, sourceDensity, targetDensity, true); in computeBitmapSize()
682 sourceOpticalInsets.right, sourceDensity, targetDensity, true); in computeBitmapSize()
684 sourceOpticalInsets.bottom, sourceDensity, targetDensity, true); in computeBitmapSize()
696 sourcePadding.left, sourceDensity, targetDensity, true); in computeBitmapSize()
698 sourcePadding.top, sourceDensity, targetDensity, true); in computeBitmapSize()
700 sourcePadding.right, sourceDensity, targetDensity, true); in computeBitmapSize()
702 sourcePadding.bottom, sourceDensity, targetDensity, true); in computeBitmapSize()
[all …]
DLayerDrawable.java1901 public final void setDensity(int targetDensity) {
1902 if (mDensity != targetDensity) {
1904 mDensity = targetDensity;
1906 applyDensityScaling(sourceDensity, targetDensity);
1910 private void applyDensityScaling(int sourceDensity, int targetDensity) {
1911 mInsetL = Drawable.scaleFromDensity(mInsetL, sourceDensity, targetDensity, false);
1912 mInsetT = Drawable.scaleFromDensity(mInsetT, sourceDensity, targetDensity, false);
1913 mInsetR = Drawable.scaleFromDensity(mInsetR, sourceDensity, targetDensity, false);
1914 mInsetB = Drawable.scaleFromDensity(mInsetB, sourceDensity, targetDensity, false);
1916 mInsetS = Drawable.scaleFromDensity(mInsetS, sourceDensity, targetDensity, false);
[all …]
DDrawableWrapper.java146 final int targetDensity = densityDpi == 0 ? DisplayMetrics.DENSITY_DEFAULT : densityDpi; in inflate() local
147 state.setDensity(targetDensity); in inflate()
524 public final void setDensity(int targetDensity) { in setDensity() argument
525 if (mDensity != targetDensity) { in setDensity()
527 mDensity = targetDensity; in setDensity()
529 onDensityChanged(sourceDensity, targetDensity); in setDensity()
542 void onDensityChanged(int sourceDensity, int targetDensity) { in onDensityChanged() argument
DGradientDrawable.java2144 public final void setDensity(int targetDensity) {
2145 if (mDensity != targetDensity) {
2147 mDensity = targetDensity;
2149 applyDensityScaling(sourceDensity, targetDensity);
2157 private void applyDensityScaling(int sourceDensity, int targetDensity) {
2160 mInnerRadius, sourceDensity, targetDensity, true);
2164 mThickness, sourceDensity, targetDensity, true);
2168 mOpticalInsets.left, sourceDensity, targetDensity, true);
2170 mOpticalInsets.top, sourceDensity, targetDensity, true);
2172 mOpticalInsets.right, sourceDensity, targetDensity, true);
[all …]
DVectorDrawable.java584 final int targetDensity = mTargetDensity; in computeVectorSize() local
585 if (targetDensity != sourceDensity) { in computeVectorSize()
587 targetDensity, true); in computeVectorSize()
589 targetDensity, true); in computeVectorSize()
591 opticalInsets.left, sourceDensity, targetDensity, false); in computeVectorSize()
593 opticalInsets.right, sourceDensity, targetDensity, false); in computeVectorSize()
595 opticalInsets.top, sourceDensity, targetDensity, false); in computeVectorSize()
597 opticalInsets.bottom, sourceDensity, targetDensity, false); in computeVectorSize()
1110 public final boolean setDensity(int targetDensity) { in setDensity() argument
1111 if (mDensity != targetDensity) { in setDensity()
[all …]
DDrawable.java1626 static float scaleFromDensity(float pixels, int sourceDensity, int targetDensity) { in scaleFromDensity() argument
1627 return pixels * targetDensity / sourceDensity; in scaleFromDensity()
1649 int pixels, int sourceDensity, int targetDensity, boolean isSize) { in scaleFromDensity() argument
1650 if (pixels == 0 || sourceDensity == targetDensity) { in scaleFromDensity()
1654 final float result = pixels * targetDensity / (float) sourceDensity; in scaleFromDensity()
DAdaptiveIconDrawable.java965 public final void setDensity(int targetDensity) { in setDensity() argument
966 if (mDensity != targetDensity) { in setDensity()
967 mDensity = targetDensity; in setDensity()
1030 public final void setDensity(int targetDensity) { in setDensity() argument
1031 if (mDensity != targetDensity) { in setDensity()
1032 mDensity = targetDensity; in setDensity()
DRippleDrawable.java1356 protected void onDensityChanged(int sourceDensity, int targetDensity) { in onDensityChanged() argument
1357 super.onDensityChanged(sourceDensity, targetDensity); in onDensityChanged()
1359 applyDensityScaling(sourceDensity, targetDensity); in onDensityChanged()
1362 private void applyDensityScaling(int sourceDensity, int targetDensity) { in applyDensityScaling() argument
1365 mMaxRadius, sourceDensity, targetDensity, true); in applyDensityScaling()
DBitmapDrawable.java587 final int targetDensity = mTargetDensity; in updateShaderMatrix() local
588 final boolean needScaling = sourceDensity != 0 && sourceDensity != targetDensity; in updateShaderMatrix()
600 final float densityScale = targetDensity / (float) sourceDensity; in updateShaderMatrix()
DDrawableContainer.java964 final int targetDensity = Drawable.resolveDensity(res, mDensity); in updateDensity() local
966 mDensity = targetDensity; in updateDensity()
968 if (sourceDensity != targetDensity) { in updateDensity()
/frameworks/base/graphics/java/android/graphics/
DBitmapFactory.java718 final int targetDensity = opts.inTargetDensity; in setDensityFromOptions() local
719 if (targetDensity == 0 || density == targetDensity || density == opts.inScreenDensity) { in setDensityFromOptions()
726 outputBitmap.setDensity(targetDensity); in setDensityFromOptions()
DBitmap.java1786 public int getScaledWidth(int targetDensity) { in getScaledWidth() argument
1787 return scaleFromDensity(getWidth(), mDensity, targetDensity); in getScaledWidth()
1800 public int getScaledHeight(int targetDensity) { in getScaledHeight() argument
1801 return scaleFromDensity(getHeight(), mDensity, targetDensity); in getScaledHeight()
/frameworks/base/libs/hwui/jni/
DBitmapFactory.cpp346 const int targetDensity = env->GetIntField(options, gOptions_targetDensityFieldID); in doDecode() local
348 if (density != 0 && targetDensity != 0 && density != screenDensity) { in doDecode()
349 scale = (float) targetDensity / density; in doDecode()
/frameworks/base/services/core/java/com/android/server/wm/
DWindowManagerService.java3807 final int targetDensity = forcedDensity != 0 in setCurrentUser() local
3809 displayContent.setForcedDensity(targetDensity, UserHandle.USER_CURRENT); in setCurrentUser()
/frameworks/base/tools/aapt2/integration-tests/CommandTests/
Dandroid-33.jarAndroidManifest.xml META-INF/ META-INF/MANIFEST.MF NOTICES/ NOTICES/libcore ...