/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/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/util/ |
D | DisplayMetrics.java | 30 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()
|
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/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/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/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/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/SystemUI/tests/src/com/android/systemui/classifier/brightline/ |
D | ClassifierTest.java | 19 import android.util.DisplayMetrics; 39 DisplayMetrics displayMetrics = new DisplayMetrics(); in setup()
|
/frameworks/base/tests/UiBench/src/com/android/test/uibench/ |
D | BitmapUploadActivity.java | 28 import android.util.DisplayMetrics; 35 private final DisplayMetrics mMetrics = new DisplayMetrics();
|
D | ResizeHWLayerActivity.java | 23 import android.util.DisplayMetrics; 36 DisplayMetrics metrics = getResources().getDisplayMetrics(); in onCreate()
|
/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/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/base/graphics/java/android/graphics/drawable/ |
D | RippleComponent.java | 20 import android.util.DisplayMetrics; 60 mDensityScale = densityDpi * DisplayMetrics.DENSITY_DEFAULT_SCALE; in setup()
|
/frameworks/base/core/java/android/app/ |
D | ActivityManager.java | 68 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 …]
|
D | Presentation.java | 38 import android.util.DisplayMetrics; 299 DisplayMetrics dm = new DisplayMetrics(); in isConfigurationStillValid()
|
/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/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/tests/HwAccelerationTest/src/com/android/test/hwui/ |
D | ViewLayersActivity3.java | 23 import android.util.DisplayMetrics; 57 final DisplayMetrics metrics = r.getDisplayMetrics(); in getView()
|
D | ViewLayersActivity2.java | 23 import android.util.DisplayMetrics; 60 final DisplayMetrics metrics = r.getDisplayMetrics(); in getView()
|
/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/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()
|