Home
last modified time | relevance | path

Searched refs:DisplayMetrics (Results 1 – 25 of 161) sorted by relevance

1234567

/frameworks/base/packages/SystemUI/src/com/android/systemui/assist/ui/
DDisplayUtils.java20 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/
DDisplayMetrics.java29 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()
DTypedValue.java283 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/
DIWindowManagerImpl.java21 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/
DCompatibilityInfo.java29 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/
DResourcesManagerTest.java23 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()
DResourcesLocaleTest.java22 import android.util.DisplayMetrics;
48 final DisplayMetrics dm = new DisplayMetrics(); in createResourcesWithApk()
/frameworks/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/android/
DBridgeContextTest.java34 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/
DWindowManagerImpl.java19 import android.util.DisplayMetrics;
29 private final DisplayMetrics mMetrics;
32 public WindowManagerImpl(DisplayMetrics metrics) { in WindowManagerImpl()
/frameworks/base/core/tests/coretests/src/android/view/
DScaleGestureDetectorTest.java26 import android.util.DisplayMetrics;
58 final DisplayMetrics dm = new DisplayMetrics(); in testScaleGestureDetector()
/frameworks/base/tests/UiBench/src/com/android/test/uibench/
DBitmapUploadActivity.java28 import android.util.DisplayMetrics;
35 private final DisplayMetrics mMetrics = new DisplayMetrics();
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/
DTunablePadding.java17 import android.util.DisplayMetrics;
47 DisplayMetrics metrics = new DisplayMetrics(); in TunablePadding()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/display/
DDisplayDensityUtils.java24 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/
DClassifierTest.java21 import android.util.DisplayMetrics;
41 DisplayMetrics displayMetrics = new DisplayMetrics(); in setup()
/frameworks/base/core/java/android/app/
DActivityManager.java68 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 …]
DPresentation.java38 import android.util.DisplayMetrics;
299 DisplayMetrics dm = new DisplayMetrics(); in isConfigurationStillValid()
/frameworks/base/services/core/java/com/android/server/pm/
DParallelPackageParser.java22 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/
DSysUiOverlay.java24 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/
DRippleComponent.java20 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/
DDimensionConsistencyTest.java24 import android.util.DisplayMetrics;
62 DisplayMetrics displayMetrics = mContext.getResources().getDisplayMetrics(); in dp2Px()
/frameworks/base/services/core/java/com/android/server/policy/
DIconUtilities.java34 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/
DMockResources.java26 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/
DTunablePaddingTest.java25 import android.util.DisplayMetrics;
116 DisplayMetrics metrics = new DisplayMetrics(); in testTuning()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DCornerHandleView.java26 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/
DBitmapUploadActivity.java30 import android.util.DisplayMetrics;
48 private final DisplayMetrics mMetrics = new DisplayMetrics();

1234567