Home
last modified time | relevance | path

Searched refs:displayMetrics (Results 1 – 3 of 3) sorted by relevance

/external/glide/library/src/main/java/com/bumptech/glide/load/engine/cache/
DMemorySizeCalculator.java95 private final DisplayMetrics displayMetrics; field in MemorySizeCalculator.DisplayMetricsScreenDimensions
97 public DisplayMetricsScreenDimensions(DisplayMetrics displayMetrics) { in DisplayMetricsScreenDimensions() argument
98 this.displayMetrics = displayMetrics; in DisplayMetricsScreenDimensions()
103 return displayMetrics.widthPixels; in getWidthPixels()
108 return displayMetrics.heightPixels; in getHeightPixels()
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/
DShadowResources.java39 private DisplayMetrics displayMetrics; field in ShadowResources
135 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()
/external/deqp/framework/platform/android/
DtcuAndroidUtil.cpp488 ScreenClass getScreenClass (const DisplayMetrics& displayMetrics) in getScreenClass() argument
504 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() argument
548 if (isValidDensityClass(displayMetrics.densityDpi)) in getDensityClass()
549 return (DensityClass)displayMetrics.densityDpi; in getDensityClass()
608 const DisplayMetrics displayMetrics = getDisplayMetrics(activity); in getCDDRequiredSystemMemory() local
609 const ScreenClass screenClass = getScreenClass(displayMetrics); in getCDDRequiredSystemMemory()
624 const DensityClass densityClass = getDensityClass(displayMetrics); in getCDDRequiredSystemMemory()