/frameworks/base/core/java/android/util/ |
D | DisplayMetrics.java | 265 public static final int DENSITY_DEFAULT = DENSITY_MEDIUM; field in DisplayMetrics 271 public static final float DENSITY_DEFAULT_SCALE = 1.0f / DENSITY_DEFAULT; 437 density = DENSITY_DEVICE / (float) DENSITY_DEFAULT; in setToDefaults() 512 SystemProperties.getInt("ro.sf.lcd_density", DENSITY_DEFAULT)); in getDeviceDensity()
|
/frameworks/libs/systemui/toruslib/torus-utils/src/main/java/com/google/android/torus/utils/display/ |
D | DisplayUtils.kt | 91 val densityRatio = displayMetrics.densityDpi / DisplayMetrics.DENSITY_DEFAULT.toFloat() in convertPixelToDp() 105 val densityRatio = displayMetrics.densityDpi / DisplayMetrics.DENSITY_DEFAULT.toFloat() in convertDpToPixel()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | LaunchParamsUtil.java | 20 import static android.util.DisplayMetrics.DENSITY_DEFAULT; 79 final float density = (float) displayArea.getConfiguration().densityDpi / DENSITY_DEFAULT; in getDefaultFreeformSize() 144 final float density = (float) displayArea.getConfiguration().densityDpi / DENSITY_DEFAULT; in adjustBoundsToFitInDisplayArea()
|
/frameworks/base/packages/SettingsProvider/src/android/provider/settings/backup/ |
D | LargeScreenSettings.java | 50 float densityRatio = (float) densityDpi / DisplayMetrics.DENSITY_DEFAULT; in dpiFromPx()
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
D | DrawableWrapper.java | 146 final int targetDensity = densityDpi == 0 ? DisplayMetrics.DENSITY_DEFAULT : densityDpi; in inflate() 174 final int density = densityDpi == 0 ? DisplayMetrics.DENSITY_DEFAULT : densityDpi; in applyTheme() 483 int mDensity = DisplayMetrics.DENSITY_DEFAULT; 512 mDensity = density == 0 ? DisplayMetrics.DENSITY_DEFAULT : density; in DrawableWrapperState()
|
D | BitmapDrawable.java | 97 private int mTargetDensity = DisplayMetrics.DENSITY_DEFAULT; 296 mTargetDensity = density == 0 ? DisplayMetrics.DENSITY_DEFAULT : density; in setTargetDensity() 844 if (value.density == TypedValue.DENSITY_DEFAULT) { in updateStateFromTypedArray() 845 density = DisplayMetrics.DENSITY_DEFAULT; in updateStateFromTypedArray() 1004 int mTargetDensity = DisplayMetrics.DENSITY_DEFAULT;
|
D | NinePatchDrawable.java | 83 private int mTargetDensity = DisplayMetrics.DENSITY_DEFAULT; 181 density = DisplayMetrics.DENSITY_DEFAULT; in setTargetDensity() 434 if (value.density == TypedValue.DENSITY_DEFAULT) { in updateStateFromTypedArray() 435 density = DisplayMetrics.DENSITY_DEFAULT; in updateStateFromTypedArray()
|
D | AnimatedImageDrawable.java | 224 if (value.density == TypedValue.DENSITY_DEFAULT) { in updateStateFromTypedArray() 225 density = DisplayMetrics.DENSITY_DEFAULT; in updateStateFromTypedArray()
|
D | Drawable.java | 1286 if (value.density == TypedValue.DENSITY_DEFAULT) { in getBitmapDrawable() 1287 density = DisplayMetrics.DENSITY_DEFAULT; in getBitmapDrawable() 1671 return densityDpi == 0 ? DisplayMetrics.DENSITY_DEFAULT : densityDpi; in resolveDensity()
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | LaunchParamsModifierTestsBase.java | 20 import static android.util.DisplayMetrics.DENSITY_DEFAULT; 60 display.getConfiguration().densityDpi = DENSITY_DEFAULT; in createNewDisplayContent()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/mediaprojection/appselector/view/ |
D | TaskPreviewSizeProviderTest.kt | 24 import android.util.DisplayMetrics.DENSITY_DEFAULT 136 val densityDpi = minDimension * DENSITY_DEFAULT / targetSmallestWidthDpi in givenDisplay()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/ |
D | FloatingWindowUtil.java | 39 return dp * metrics.densityDpi / (float) DisplayMetrics.DENSITY_DEFAULT; in dpToPx()
|
/frameworks/base/core/tests/coretests/src/android/content/res/ |
D | ResourcesManagerTest.java | 75 defaultDisplayMetrics.densityDpi = DisplayMetrics.DENSITY_DEFAULT; in setUp() 76 defaultDisplayMetrics.xdpi = DisplayMetrics.DENSITY_DEFAULT; in setUp() 77 defaultDisplayMetrics.ydpi = DisplayMetrics.DENSITY_DEFAULT; in setUp() 82 defaultDisplayMetrics.noncompatXdpi = DisplayMetrics.DENSITY_DEFAULT; in setUp() 83 defaultDisplayMetrics.noncompatYdpi = DisplayMetrics.DENSITY_DEFAULT; in setUp()
|
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/windowdecor/ |
D | WindowDecorationTests.java | 194 taskInfo.configuration.densityDpi = DisplayMetrics.DENSITY_DEFAULT * 2; in testLayoutResultCalculation_invisibleTask() 234 taskInfo.configuration.densityDpi = DisplayMetrics.DENSITY_DEFAULT * 2; in testLayoutResultCalculation_visibleFocusedTask() 305 taskInfo.configuration.densityDpi = DisplayMetrics.DENSITY_DEFAULT * 2; in testLayoutResultCalculation_visibleFocusedTaskToInvisible() 404 taskInfo.configuration.densityDpi = DisplayMetrics.DENSITY_DEFAULT * 2; in testAddViewHostViewContainer() 457 taskInfo.configuration.densityDpi = DisplayMetrics.DENSITY_DEFAULT * 2; in testLayoutResultCalculation_fullWidthCaption() 497 taskInfo.configuration.densityDpi = DisplayMetrics.DENSITY_DEFAULT * 2; in testRelayout_applyTransactionInSyncWithDraw() 788 taskInfo.configuration.densityDpi = DisplayMetrics.DENSITY_DEFAULT * 2; in testTaskPositionAndCropNotSetWhenFalse() 818 taskInfo.configuration.densityDpi = DisplayMetrics.DENSITY_DEFAULT * 2; in testTaskPositionAndCropSetWhenSetTrue()
|
/frameworks/base/core/java/android/content/res/ |
D | CompatibilityInfo.java | 303 applicationDensity = DisplayMetrics.DENSITY_DEFAULT; in CompatibilityInfo() 305 / (float) DisplayMetrics.DENSITY_DEFAULT; in CompatibilityInfo() 308 / (float) DisplayMetrics.DENSITY_DEFAULT; in CompatibilityInfo()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/data/repository/ |
D | DisplayStateRepository.kt | 147 val densityRatio = densityDpi.toFloat() / DisplayMetrics.DENSITY_DEFAULT in dpiFromPx()
|
/frameworks/base/graphics/java/android/graphics/ |
D | BitmapFactory.java | 580 if (density == TypedValue.DENSITY_DEFAULT) { in decodeResourceStream() 581 opts.inDensity = DisplayMetrics.DENSITY_DEFAULT; in decodeResourceStream()
|
D | ImageDecoder.java | 447 if (value.density == TypedValue.DENSITY_DEFAULT) { in AssetInputStreamSource() 448 mDensity = DisplayMetrics.DENSITY_DEFAULT; in AssetInputStreamSource() 516 if (value.density == TypedValue.DENSITY_DEFAULT) { in createImageDecoder() 517 mResDensity = DisplayMetrics.DENSITY_DEFAULT; in createImageDecoder()
|
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/recents/utilities/ |
D | Utilities.java | 155 float densityRatio = (float) densityDpi / DisplayMetrics.DENSITY_DEFAULT; in dpiFromPx()
|
/frameworks/base/core/java/android/view/ |
D | RoundScrollbarRenderer.java | 193 / DisplayMetrics.DENSITY_DEFAULT; in dpToPx()
|
/frameworks/base/packages/SystemUI/shared/biometrics/src/com/android/systemui/biometrics/ |
D | Utils.kt | 58 return dp * (density / DisplayMetrics.DENSITY_DEFAULT) in dpToPixels()
|
/frameworks/base/tools/aapt/ |
D | AaptConfig.cpp | 290 || config->density != ResTable_config::DENSITY_DEFAULT) { in applyVersionForCompatibility() 574 if (out) out->density = ResTable_config::DENSITY_DEFAULT; in parseDensity() 894 if (config.density == ResTable_config::DENSITY_DEFAULT) { in isDensityOnly()
|
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/keyguard/ui/composable/section/ |
D | LockSection.kt | 156 DisplayMetrics.DENSITY_DEFAULT.toFloat() in <lambda>()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/ui/view/layout/sections/ |
D | DefaultDeviceEntrySection.kt | 142 DisplayMetrics.DENSITY_DEFAULT.toFloat() in <lambda>()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/ui/binder/ |
D | KeyguardPreviewClockViewBinder.kt | 155 DisplayMetrics.DENSITY_DEFAULT.toFloat() in <lambda>()
|