/frameworks/base/packages/SystemUI/src/com/android/systemui/assist/ui/ |
D | DisplayUtils.java | 20 import android.util.DisplayMetrics; 34 DisplayMetrics dm = new DisplayMetrics(); in convertDpToPx() 49 DisplayMetrics dm = new DisplayMetrics(); in getWidth() 69 DisplayMetrics dm = new DisplayMetrics(); in getHeight()
|
/frameworks/base/core/java/android/util/ |
D | DisplayMetrics.java | 29 public class DisplayMetrics { class 323 public DisplayMetrics() { in DisplayMetrics() method in DisplayMetrics 326 public void setTo(DisplayMetrics o) { in setTo() 366 return o instanceof DisplayMetrics && equals((DisplayMetrics)o); in equals() 375 public boolean equals(DisplayMetrics other) { in equals() 390 public boolean equalsPhysical(DisplayMetrics other) { in equalsPhysical()
|
D | TypedValue.java | 283 public static float complexToDimension(int data, DisplayMetrics metrics) in complexToDimension() 308 DisplayMetrics metrics) in complexToDimensionPixelOffset() 335 DisplayMetrics metrics) in complexToDimensionPixelSize() 354 public static float complexToDimensionNoisy(int data, DisplayMetrics metrics) in complexToDimensionNoisy() 385 DisplayMetrics metrics) in applyDimension() 414 public float getDimension(DisplayMetrics metrics) in getDimension()
|
/frameworks/layoutlib/bridge/src/android/view/ |
D | IWindowManagerImpl.java | 21 import android.util.DisplayMetrics; 30 private final DisplayMetrics mMetrics; 34 public IWindowManagerImpl(Configuration config, DisplayMetrics metrics, int rotation, in IWindowManagerImpl() 44 public DisplayMetrics getMetrics() { in getMetrics()
|
/frameworks/base/core/java/android/content/res/ |
D | CompatibilityInfo.java | 29 import android.util.DisplayMetrics; 153 applicationDensity = DisplayMetrics.DENSITY_DEVICE; in CompatibilityInfo() 243 applicationDensity = DisplayMetrics.DENSITY_DEVICE; in CompatibilityInfo() 247 applicationDensity = DisplayMetrics.DENSITY_DEFAULT; in CompatibilityInfo() 248 applicationScale = DisplayMetrics.DENSITY_DEVICE in CompatibilityInfo() 249 / (float) DisplayMetrics.DENSITY_DEFAULT; in CompatibilityInfo() 268 this(NEVER_NEEDS_COMPAT, DisplayMetrics.DENSITY_DEVICE, in CompatibilityInfo() 461 public void applyToDisplayMetrics(DisplayMetrics inoutDm) { in applyToDisplayMetrics() 510 public static float computeCompatibleScaling(DisplayMetrics dm, DisplayMetrics outDm) { in computeCompatibleScaling()
|
/frameworks/base/core/tests/coretests/src/android/content/res/ |
D | ResourcesManagerTest.java | 23 import android.util.DisplayMetrics; 39 private DisplayMetrics mDisplayMetrics; 45 mDisplayMetrics = new DisplayMetrics(); in setUp() 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() 65 protected DisplayMetrics getDisplayMetrics(int displayId, DisplayAdjustments daj) { in setUp()
|
D | ResourcesLocaleTest.java | 22 import android.util.DisplayMetrics; 48 final DisplayMetrics dm = new DisplayMetrics(); in createResourcesWithApk()
|
/frameworks/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/android/ |
D | BridgeContextTest.java | 34 import android.util.DisplayMetrics; 55 DisplayMetrics metrics = new DisplayMetrics(); in basic() 102 DisplayMetrics metrics = new DisplayMetrics(); in checkNoErrorWhenUsingDefaults()
|
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/view/ |
D | WindowManagerImpl.java | 19 import android.util.DisplayMetrics; 29 private final DisplayMetrics mMetrics; 32 public WindowManagerImpl(DisplayMetrics metrics) { in WindowManagerImpl()
|
/frameworks/base/core/tests/coretests/src/android/view/ |
D | ScaleGestureDetectorTest.java | 26 import android.util.DisplayMetrics; 58 final DisplayMetrics dm = new DisplayMetrics(); in testScaleGestureDetector()
|
/frameworks/base/tests/UiBench/src/com/android/test/uibench/ |
D | BitmapUploadActivity.java | 28 import android.util.DisplayMetrics; 35 private final DisplayMetrics mMetrics = new DisplayMetrics();
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/ |
D | TunablePadding.java | 17 import android.util.DisplayMetrics; 47 DisplayMetrics metrics = new DisplayMetrics(); in TunablePadding()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/display/ |
D | DisplayDensityUtils.java | 24 import android.util.DisplayMetrics; 99 final DisplayMetrics metrics = new DisplayMetrics(); in DisplayDensityUtils() 107 final int maxDensity = DisplayMetrics.DENSITY_MEDIUM * minDimensionPx / MIN_DIMENSION_DP; in DisplayDensityUtils()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/classifier/brightline/ |
D | ClassifierTest.java | 21 import android.util.DisplayMetrics; 41 DisplayMetrics displayMetrics = new DisplayMetrics(); in setup()
|
/frameworks/base/core/java/android/app/ |
D | ActivityManager.java | 68 import android.util.DisplayMetrics; 3588 case DisplayMetrics.DENSITY_LOW: 3589 return DisplayMetrics.DENSITY_MEDIUM; 3590 case DisplayMetrics.DENSITY_MEDIUM: 3591 return DisplayMetrics.DENSITY_HIGH; 3592 case DisplayMetrics.DENSITY_TV: 3593 return DisplayMetrics.DENSITY_XHIGH; 3594 case DisplayMetrics.DENSITY_HIGH: 3595 return DisplayMetrics.DENSITY_XHIGH; 3596 case DisplayMetrics.DENSITY_XHIGH: [all …]
|
D | Presentation.java | 38 import android.util.DisplayMetrics; 299 DisplayMetrics dm = new DisplayMetrics(); in isConfigurationStillValid()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | ParallelPackageParser.java | 22 import android.util.DisplayMetrics; 47 private final DisplayMetrics mMetrics; 58 DisplayMetrics metrics, File cacheDir, PackageParser.Callback callback) { in ParallelPackageParser()
|
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
D | SysUiOverlay.java | 24 import android.util.DisplayMetrics; 59 private static float dpToPx(DisplayMetrics metrics, float value) { in dpToPx() 67 DisplayMetrics metrics = context.getResources().getDisplayMetrics(); in SysUiOverlay()
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
D | RippleComponent.java | 20 import android.util.DisplayMetrics; 60 mDensityScale = densityDpi * DisplayMetrics.DENSITY_DEFAULT_SCALE; in setup()
|
/frameworks/opt/setupwizard/library/gingerbread/test/robotest/src/com/android/setupwizardlib/util/ |
D | DimensionConsistencyTest.java | 24 import android.util.DisplayMetrics; 62 DisplayMetrics displayMetrics = mContext.getResources().getDisplayMetrics(); in dp2Px()
|
/frameworks/base/services/core/java/com/android/server/policy/ |
D | IconUtilities.java | 34 import android.util.DisplayMetrics; 51 private final DisplayMetrics mDisplayMetrics; 57 DisplayMetrics metrics = mDisplayMetrics = resources.getDisplayMetrics(); in IconUtilities()
|
/frameworks/base/test-mock/src/android/test/mock/ |
D | MockResources.java | 26 import android.util.DisplayMetrics; 51 public void updateConfiguration(Configuration config, DisplayMetrics metrics) { in updateConfiguration() 194 public DisplayMetrics getDisplayMetrics() { in getDisplayMetrics()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/tuner/ |
D | TunablePaddingTest.java | 25 import android.util.DisplayMetrics; 116 DisplayMetrics metrics = new DisplayMetrics(); in testTuning()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
D | CornerHandleView.java | 26 import android.util.DisplayMetrics; 123 / DisplayMetrics.DENSITY_DEFAULT); in convertDpToPixel() 127 return px * DisplayMetrics.DENSITY_DEFAULT in convertPixelToDp()
|
/frameworks/base/tests/JankBench/app/src/main/java/com/android/benchmark/ui/ |
D | BitmapUploadActivity.java | 30 import android.util.DisplayMetrics; 48 private final DisplayMetrics mMetrics = new DisplayMetrics();
|