Home
last modified time | relevance | path

Searched refs:DisplayMetrics (Results 1 – 25 of 151) 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/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/util/
DDisplayMetrics.java30 public class DisplayMetrics { class
324 public DisplayMetrics() { in DisplayMetrics() method in DisplayMetrics
327 public void setTo(DisplayMetrics o) { in setTo()
367 return o instanceof DisplayMetrics && equals((DisplayMetrics)o); in equals()
376 public boolean equals(DisplayMetrics other) { in equals()
391 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/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/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/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/packages/SystemUI/src/com/android/systemui/tuner/
DTunablePadding.java17 import android.util.DisplayMetrics;
47 DisplayMetrics metrics = new DisplayMetrics(); in TunablePadding()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/classifier/brightline/
DClassifierTest.java19 import android.util.DisplayMetrics;
39 DisplayMetrics displayMetrics = new DisplayMetrics(); in setup()
/frameworks/base/tests/UiBench/src/com/android/test/uibench/
DBitmapUploadActivity.java28 import android.util.DisplayMetrics;
35 private final DisplayMetrics mMetrics = new DisplayMetrics();
DResizeHWLayerActivity.java23 import android.util.DisplayMetrics;
36 DisplayMetrics metrics = getResources().getDisplayMetrics(); in onCreate()
/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/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/base/graphics/java/android/graphics/drawable/
DRippleComponent.java20 import android.util.DisplayMetrics;
60 mDensityScale = densityDpi * DisplayMetrics.DENSITY_DEFAULT_SCALE; in setup()
/frameworks/base/core/java/android/app/
DActivityManager.java68 import android.util.DisplayMetrics;
3581 case DisplayMetrics.DENSITY_LOW:
3582 return DisplayMetrics.DENSITY_MEDIUM;
3583 case DisplayMetrics.DENSITY_MEDIUM:
3584 return DisplayMetrics.DENSITY_HIGH;
3585 case DisplayMetrics.DENSITY_TV:
3586 return DisplayMetrics.DENSITY_XHIGH;
3587 case DisplayMetrics.DENSITY_HIGH:
3588 return DisplayMetrics.DENSITY_XHIGH;
3589 case DisplayMetrics.DENSITY_XHIGH:
[all …]
DPresentation.java38 import android.util.DisplayMetrics;
299 DisplayMetrics dm = new DisplayMetrics(); in isConfigurationStillValid()
/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/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/tests/HwAccelerationTest/src/com/android/test/hwui/
DViewLayersActivity3.java23 import android.util.DisplayMetrics;
57 final DisplayMetrics metrics = r.getDisplayMetrics(); in getView()
DViewLayersActivity2.java23 import android.util.DisplayMetrics;
60 final DisplayMetrics metrics = r.getDisplayMetrics(); in getView()
/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/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()

1234567