Searched refs:displayMetrics (Results 1 – 3 of 3) sorted by relevance
95 private final DisplayMetrics displayMetrics; field in MemorySizeCalculator.DisplayMetricsScreenDimensions97 public DisplayMetricsScreenDimensions(DisplayMetrics displayMetrics) { in DisplayMetricsScreenDimensions() argument98 this.displayMetrics = displayMetrics; in DisplayMetricsScreenDimensions()103 return displayMetrics.widthPixels; in getWidthPixels()108 return displayMetrics.heightPixels; in getHeightPixels()
39 private DisplayMetrics displayMetrics; field in ShadowResources135 displayMetrics = null; in setDisplay()140 if (displayMetrics == null) { in getDisplayMetrics()145 displayMetrics = new DisplayMetrics(); in getDisplayMetrics()146 display.getMetrics(displayMetrics); in getDisplayMetrics()148 displayMetrics.density = this.density; in getDisplayMetrics()149 return displayMetrics; in getDisplayMetrics()
488 ScreenClass getScreenClass (const DisplayMetrics& displayMetrics) in getScreenClass() argument504 const float dpScale = float(displayMetrics.densityDpi) / 160.f; in getScreenClass()507 const int widthP = de::max(displayMetrics.widthPixels, displayMetrics.heightPixels); in getScreenClass()508 const int heightP = de::min(displayMetrics.widthPixels, displayMetrics.heightPixels); in getScreenClass()546 DensityClass getDensityClass (const DisplayMetrics& displayMetrics) in getDensityClass() argument548 if (isValidDensityClass(displayMetrics.densityDpi)) in getDensityClass()549 return (DensityClass)displayMetrics.densityDpi; in getDensityClass()608 const DisplayMetrics displayMetrics = getDisplayMetrics(activity); in getCDDRequiredSystemMemory() local609 const ScreenClass screenClass = getScreenClass(displayMetrics); in getCDDRequiredSystemMemory()624 const DensityClass densityClass = getDensityClass(displayMetrics); in getCDDRequiredSystemMemory()