Home
last modified time | relevance | path

Searched refs:DENSITY_DEFAULT (Results 1 – 25 of 45) sorted by relevance

12

/frameworks/base/core/java/android/util/
DDisplayMetrics.java199 public static final int DENSITY_DEFAULT = DENSITY_MEDIUM; field in DisplayMetrics
205 public static final float DENSITY_DEFAULT_SCALE = 1.0f / DENSITY_DEFAULT;
350 density = DENSITY_DEVICE / (float) DENSITY_DEFAULT; in setToDefaults()
424 SystemProperties.getInt("ro.sf.lcd_density", DENSITY_DEFAULT)); in getDeviceDensity()
DTypedValue.java177 public static final int DENSITY_DEFAULT = 0; field in TypedValue
/frameworks/base/services/core/java/com/android/server/wm/
DLaunchParamsUtil.java20 import static android.util.DisplayMetrics.DENSITY_DEFAULT;
77 final float density = (float) displayArea.getConfiguration().densityDpi / DENSITY_DEFAULT; in getDefaultFreeformSize()
142 final float density = (float) displayArea.getConfiguration().densityDpi / DENSITY_DEFAULT; in adjustBoundsToFitInDisplayArea()
DDesktopModeLaunchParamsModifier.java19 import static android.util.DisplayMetrics.DENSITY_DEFAULT;
96 float density = (float) task.getConfiguration().densityDpi / DENSITY_DEFAULT; in calculate()
/frameworks/base/core/tests/coretests/src/android/content/res/
DResourcesManagerTest.java58 defaultDisplayMetrics.densityDpi = DisplayMetrics.DENSITY_DEFAULT; in setUp()
59 defaultDisplayMetrics.xdpi = DisplayMetrics.DENSITY_DEFAULT; in setUp()
60 defaultDisplayMetrics.ydpi = DisplayMetrics.DENSITY_DEFAULT; in setUp()
65 defaultDisplayMetrics.noncompatXdpi = DisplayMetrics.DENSITY_DEFAULT; in setUp()
66 defaultDisplayMetrics.noncompatYdpi = DisplayMetrics.DENSITY_DEFAULT; in setUp()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DDesktopModeLaunchParamsModifierTests.java22 import static android.util.DisplayMetrics.DENSITY_DEFAULT;
120 float density = (float) task.getConfiguration().densityDpi / DENSITY_DEFAULT; in dpiToPx()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/mediaprojection/appselector/view/
DTaskPreviewSizeProviderTest.kt24 import android.util.DisplayMetrics.DENSITY_DEFAULT
119 val densityDpi = minDimension * DENSITY_DEFAULT / targetSmallestWidthDpi in givenDisplay()
/frameworks/base/packages/SettingsProvider/src/android/provider/settings/backup/
DLargeScreenSettings.java50 float densityRatio = (float) densityDpi / DisplayMetrics.DENSITY_DEFAULT; in dpiFromPx()
/frameworks/base/graphics/java/android/graphics/drawable/
DDrawableWrapper.java146 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()
DBitmapDrawable.java96 private int mTargetDensity = DisplayMetrics.DENSITY_DEFAULT;
289 mTargetDensity = density == 0 ? DisplayMetrics.DENSITY_DEFAULT : density; in setTargetDensity()
837 if (value.density == TypedValue.DENSITY_DEFAULT) { in updateStateFromTypedArray()
838 density = DisplayMetrics.DENSITY_DEFAULT; in updateStateFromTypedArray()
997 int mTargetDensity = DisplayMetrics.DENSITY_DEFAULT;
DNinePatchDrawable.java83 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()
DAnimatedImageDrawable.java224 if (value.density == TypedValue.DENSITY_DEFAULT) { in updateStateFromTypedArray()
225 density = DisplayMetrics.DENSITY_DEFAULT; in updateStateFromTypedArray()
DDrawable.java1286 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()
DInsetDrawable.java373 final int density = densityDpi == 0 ? DisplayMetrics.DENSITY_DEFAULT : densityDpi; in newDrawable()
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/
DFloatingWindowUtil.java39 return dp * metrics.densityDpi / (float) DisplayMetrics.DENSITY_DEFAULT; in dpToPx()
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/windowdecor/
DWindowDecorationTests.java163 taskInfo.configuration.densityDpi = DisplayMetrics.DENSITY_DEFAULT * 2; in testLayoutResultCalculation_invisibleTask()
217 taskInfo.configuration.densityDpi = DisplayMetrics.DENSITY_DEFAULT * 2; in testLayoutResultCalculation_visibleFocusedTask()
311 taskInfo.configuration.densityDpi = DisplayMetrics.DENSITY_DEFAULT * 2; in testLayoutResultCalculation_visibleFocusedTaskToInvisible()
417 taskInfo.configuration.densityDpi = DisplayMetrics.DENSITY_DEFAULT * 2; in testAddWindow()
494 taskInfo.configuration.densityDpi = DisplayMetrics.DENSITY_DEFAULT * 2; in testLayoutResultCalculation_fullWidthCaption()
/frameworks/base/graphics/java/android/graphics/
DBitmapFactory.java565 if (density == TypedValue.DENSITY_DEFAULT) { in decodeResourceStream()
566 opts.inDensity = DisplayMetrics.DENSITY_DEFAULT; in decodeResourceStream()
DImageDecoder.java444 if (value.density == TypedValue.DENSITY_DEFAULT) { in AssetInputStreamSource()
445 mDensity = DisplayMetrics.DENSITY_DEFAULT; in AssetInputStreamSource()
513 if (value.density == TypedValue.DENSITY_DEFAULT) { in createImageDecoder()
514 mResDensity = DisplayMetrics.DENSITY_DEFAULT; in createImageDecoder()
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/
DUtils.kt57 return dp * (density / DisplayMetrics.DENSITY_DEFAULT) in dpToPixels()
/frameworks/base/core/java/android/content/res/
DCompatibilityInfo.java268 applicationDensity = DisplayMetrics.DENSITY_DEFAULT; in CompatibilityInfo()
270 / (float) DisplayMetrics.DENSITY_DEFAULT; in CompatibilityInfo()
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/recents/utilities/
DUtilities.java150 float densityRatio = (float) densityDpi / DisplayMetrics.DENSITY_DEFAULT; in dpiFromPx()
/frameworks/base/tools/aapt/
DAaptConfig.cpp290 || 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/opt/bitmap/src/com/android/bitmap/drawable/
DBasicBitmapDrawable.java320 Math.min(1f, (float) MAX_BITMAP_DENSITY / DisplayMetrics.DENSITY_DEFAULT in decode()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DRenderAction.java130 metrics.densityDpi / (float) DisplayMetrics.DENSITY_DEFAULT; in init()
/frameworks/base/libs/androidfw/
DConfigDescription.cpp331 if (out) out->density = ResTable_config::DENSITY_DEFAULT; in parseDensity()
858 config->density != ResTable_config::DENSITY_DEFAULT) { in ApplyVersionForCompatibility()

12