/frameworks/base/core/java/android/util/ |
D | DisplayMetrics.java | 199 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()
|
D | TypedValue.java | 159 public static final int DENSITY_DEFAULT = 0; field in TypedValue
|
/frameworks/base/core/tests/coretests/src/android/content/res/ |
D | ResourcesManagerTest.java | 50 mDisplayMetrics.densityDpi = DisplayMetrics.DENSITY_DEFAULT; in setUp() 51 mDisplayMetrics.xdpi = DisplayMetrics.DENSITY_DEFAULT; in setUp() 52 mDisplayMetrics.ydpi = DisplayMetrics.DENSITY_DEFAULT; in setUp() 55 mDisplayMetrics.noncompatXdpi = DisplayMetrics.DENSITY_DEFAULT; in setUp() 56 mDisplayMetrics.noncompatYdpi = DisplayMetrics.DENSITY_DEFAULT; in setUp()
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | DisplayPolicyTestsBase.java | 19 import static android.util.DisplayMetrics.DENSITY_DEFAULT; 85 Math.min(DISPLAY_WIDTH, DISPLAY_HEIGHT) * DENSITY_DEFAULT / DISPLAY_DENSITY; in setUpDisplayPolicy() 87 Math.min(DISPLAY_WIDTH, DISPLAY_HEIGHT) * DENSITY_DEFAULT / DISPLAY_DENSITY; in setUpDisplayPolicy()
|
D | TaskRecordTests.java | 27 import static android.util.DisplayMetrics.DENSITY_DEFAULT; 186 parentConfig.densityDpi = DisplayMetrics.DENSITY_DEFAULT; in testFitWithinBounds() 402 assertEquals((shortSide - statusBarHeight) * DENSITY_DEFAULT / parentConfig.densityDpi, in testComputeConfigResourceOverrides() 404 assertEquals(longSide * DENSITY_DEFAULT / parentConfig.densityDpi, in testComputeConfigResourceOverrides()
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
D | DrawableWrapper.java | 145 final int targetDensity = densityDpi == 0 ? DisplayMetrics.DENSITY_DEFAULT : densityDpi; in inflate() 173 final int density = densityDpi == 0 ? DisplayMetrics.DENSITY_DEFAULT : densityDpi; in applyTheme() 476 int mDensity = DisplayMetrics.DENSITY_DEFAULT; 505 mDensity = density == 0 ? DisplayMetrics.DENSITY_DEFAULT : density; in DrawableWrapperState()
|
D | BitmapDrawable.java | 96 private int mTargetDensity = DisplayMetrics.DENSITY_DEFAULT; 288 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;
|
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 | 1292 if (value.density == TypedValue.DENSITY_DEFAULT) { in getBitmapDrawable() 1293 density = DisplayMetrics.DENSITY_DEFAULT; in getBitmapDrawable() 1680 return densityDpi == 0 ? DisplayMetrics.DENSITY_DEFAULT : densityDpi; in resolveDensity()
|
D | InsetDrawable.java | 372 final int density = densityDpi == 0 ? DisplayMetrics.DENSITY_DEFAULT : densityDpi; in newDrawable()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
D | CornerHandleView.java | 123 / DisplayMetrics.DENSITY_DEFAULT); in convertDpToPixel() 127 return px * DisplayMetrics.DENSITY_DEFAULT in convertPixelToDp()
|
/frameworks/layoutlib/bridge/src/android/graphics/ |
D | ImageDecoder.java | 158 if (value.density == TypedValue.DENSITY_DEFAULT) { in AssetInputStreamSource() 159 mDensity = DisplayMetrics.DENSITY_DEFAULT; in AssetInputStreamSource()
|
/frameworks/base/graphics/java/android/graphics/ |
D | BitmapFactory.java | 564 if (density == TypedValue.DENSITY_DEFAULT) { in decodeResourceStream() 565 opts.inDensity = DisplayMetrics.DENSITY_DEFAULT; in decodeResourceStream()
|
D | ImageDecoder.java | 415 if (value.density == TypedValue.DENSITY_DEFAULT) { in AssetInputStreamSource() 416 mDensity = DisplayMetrics.DENSITY_DEFAULT; in AssetInputStreamSource() 479 if (value.density == TypedValue.DENSITY_DEFAULT) { in createImageDecoder() 480 mResDensity = DisplayMetrics.DENSITY_DEFAULT; in createImageDecoder()
|
/frameworks/layoutlib/bridge/src/android/view/shadow/ |
D | HighQualityShadowPainter.java | 84 (densityDpi / DisplayMetrics.DENSITY_DEFAULT); in validate() 144 …Px = ShadowConstants.SPOT_SHADOW_LIGHT_Z_HEIGHT_DP * (densityDpi / DisplayMetrics.DENSITY_DEFAULT); in paintSpotShadow()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | WindowManagerShellCommand.java | 299 density = DisplayMetrics.DENSITY_DEFAULT; in parseDimension() 302 DisplayMetrics.DENSITY_DEFAULT; in parseDimension()
|
D | TaskLaunchParamsModifier.java | 34 import static android.util.DisplayMetrics.DENSITY_DEFAULT; 479 float density = (float) display.getConfiguration().densityDpi / DENSITY_DEFAULT; in cascadeBounds() 597 final float density = (float) display.getConfiguration().densityDpi / DENSITY_DEFAULT; in getDefaultFreeformSize()
|
/frameworks/base/core/java/android/view/ |
D | DisplayCutout.java | 19 import static android.util.DisplayMetrics.DENSITY_DEFAULT; 604 displayWidth, displayHeight, DENSITY_DEVICE_STABLE / (float) DENSITY_DEFAULT); in fromResourcesRectApproximation() 615 displayWidth, displayHeight, DENSITY_DEVICE_STABLE / (float) DENSITY_DEFAULT).first; in pathFromResources()
|
/frameworks/base/core/java/android/content/res/ |
D | CompatibilityInfo.java | 247 applicationDensity = DisplayMetrics.DENSITY_DEFAULT; in CompatibilityInfo() 249 / (float) DisplayMetrics.DENSITY_DEFAULT; in CompatibilityInfo()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/ |
D | FaceDialogView.java | 483 / DisplayMetrics.DENSITY_DEFAULT); in dpToPixels() 488 / DisplayMetrics.DENSITY_DEFAULT); in pixelsToDp()
|
/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/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
D | RenderAction.java | 116 metrics.densityDpi / (float) DisplayMetrics.DENSITY_DEFAULT; in init()
|
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/ |
D | BasicBitmapDrawable.java | 320 Math.min(1f, (float) MAX_BITMAP_DENSITY / DisplayMetrics.DENSITY_DEFAULT in decode()
|
/frameworks/base/libs/androidfw/ |
D | ConfigDescription.cpp | 331 if (out) out->density = ResTable_config::DENSITY_DEFAULT; in parseDensity() 858 config->density != ResTable_config::DENSITY_DEFAULT) { in ApplyVersionForCompatibility()
|