/aosp14/frameworks/base/graphics/java/android/graphics/drawable/ |
H A D | InsetDrawable.java | 346 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()
|
H A D | NinePatchDrawable.java | 671 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() 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() 708 ninePatch.getHeight(), sourceDensity, targetDensity, true); in computeBitmapSize() 710 ninePatch.getWidth(), sourceDensity, targetDensity, true); in computeBitmapSize() [all …]
|
H A D | LayerDrawable.java | 1901 public final void setDensity(int targetDensity) { 1902 if (mDensity != targetDensity) { 1904 mDensity = targetDensity; 1906 applyDensityScaling(sourceDensity, targetDensity); 2004 public final void setDensity(int targetDensity) { 2005 if (mDensity != targetDensity) { 2007 mDensity = targetDensity; 2009 onDensityChanged(sourceDensity, targetDensity); 2014 applyDensityScaling(sourceDensity, targetDensity); 2024 mPaddingTop, sourceDensity, targetDensity, false); [all …]
|
H A D | DrawableWrapper.java | 146 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
|
H A D | GradientDrawable.java | 2144 public final void setDensity(int targetDensity) { 2145 if (mDensity != targetDensity) { 2147 mDensity = targetDensity; 2149 applyDensityScaling(sourceDensity, targetDensity); 2160 mInnerRadius, sourceDensity, targetDensity, true); 2164 mThickness, sourceDensity, targetDensity, true); 2181 mPadding.top, sourceDensity, targetDensity, false); 2202 mStrokeWidth, sourceDensity, targetDensity, true); 2206 mStrokeDashGap, sourceDensity, targetDensity); 2210 mStrokeDashGap, sourceDensity, targetDensity); [all …]
|
H A D | VectorDrawable.java | 584 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() 1110 public final boolean setDensity(int targetDensity) { in setDensity() argument 1111 if (mDensity != targetDensity) { in setDensity() 1113 mDensity = targetDensity; in setDensity() [all …]
|
H A D | Drawable.java | 1626 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()
|
H A D | AdaptiveIconDrawable.java | 965 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()
|
H A D | RippleDrawable.java | 1356 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()
|
H A D | BitmapDrawable.java | 580 final int targetDensity = mTargetDensity; in updateShaderMatrix() local 581 final boolean needScaling = sourceDensity != 0 && sourceDensity != targetDensity; in updateShaderMatrix() 593 final float densityScale = targetDensity / (float) sourceDensity; in updateShaderMatrix()
|
H A D | DrawableContainer.java | 964 final int targetDensity = Drawable.resolveDensity(res, mDensity); in updateDensity() local 966 mDensity = targetDensity; in updateDensity() 968 if (sourceDensity != targetDensity) { in updateDensity()
|
/aosp14/frameworks/base/graphics/java/android/graphics/ |
H A D | BitmapFactory.java | 715 final int targetDensity = opts.inTargetDensity; in setDensityFromOptions() local 716 if (targetDensity == 0 || density == targetDensity || density == opts.inScreenDensity) { in setDensityFromOptions() 723 outputBitmap.setDensity(targetDensity); in setDensityFromOptions()
|
H A D | Bitmap.java | 1683 public int getScaledWidth(int targetDensity) { in getScaledWidth() argument 1684 return scaleFromDensity(getWidth(), mDensity, targetDensity); in getScaledWidth() 1697 public int getScaledHeight(int targetDensity) { in getScaledHeight() argument 1698 return scaleFromDensity(getHeight(), mDensity, targetDensity); in getScaledHeight()
|
/aosp14/frameworks/base/libs/hwui/jni/ |
H A D | BitmapFactory.cpp | 349 const int targetDensity = env->GetIntField(options, gOptions_targetDensityFieldID); in doDecode() local 351 if (density != 0 && targetDensity != 0 && density != screenDensity) { in doDecode() 352 scale = (float) targetDensity / density; in doDecode()
|
/aosp14/frameworks/base/services/core/java/com/android/server/wm/ |
H A D | WindowManagerService.java | 3587 final int targetDensity = forcedDensity != 0 in setCurrentUser() local 3589 displayContent.setForcedDensity(targetDensity, UserHandle.USER_CURRENT); in setCurrentUser()
|
/aosp14/frameworks/base/tools/aapt2/integration-tests/CommandTests/ |
H A D | android-33.jar | AndroidManifest.xml
META-INF/
META-INF/MANIFEST.MF
NOTICES/
NOTICES/libcore ... |