Home
last modified time | relevance | path

Searched refs:densityDpi (Results 1 – 15 of 15) sorted by relevance

/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowDisplay.java52 private Integer densityDpi; field in ShadowDisplay
69 outMetrics.density = densityDpi * DisplayMetrics.DENSITY_DEFAULT_SCALE; in getMetrics()
70 outMetrics.densityDpi = densityDpi; in getMetrics()
179 public void setDensityDpi(int densityDpi) { in setDensityDpi() argument
181 this.densityDpi = densityDpi; in setDensityDpi()
184 di -> di.logicalDensityDpi = densityDpi); in setDensityDpi()
409 densityDpi = displayMetrics.densityDpi; in configureForJBOnly()
410 xdpi = (float) displayMetrics.densityDpi; in configureForJBOnly()
411 ydpi = (float) displayMetrics.densityDpi; in configureForJBOnly()
412 scaledDensity = displayMetrics.densityDpi * DisplayMetrics.DENSITY_DEFAULT_SCALE; in configureForJBOnly()
DShadowDisplayManager.java73 displayInfo.logicalDensityDpi = displayMetrics.densityDpi; in createDisplayInfo()
74 displayInfo.physicalXDpi = displayMetrics.densityDpi; in createDisplayInfo()
75 displayInfo.physicalYDpi = displayMetrics.densityDpi; in createDisplayInfo()
111 configuration.densityDpi = baseDisplayInfo.logicalDensityDpi; in createDisplayInfo()
112 displayMetrics.densityDpi = baseDisplayInfo.logicalDensityDpi; in createDisplayInfo()
DShadowBitmap.java222 shadowBitmap.density = displayMetrics.densityDpi; in createBitmap()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/android/
DConfigurationV25.java224 int densityDpi; in resourceQualifierString() local
226 densityDpi = config.densityDpi; in resourceQualifierString()
228 densityDpi = displayMetrics.densityDpi; in resourceQualifierString()
231 switch (densityDpi) { in resourceQualifierString()
262 parts.add(densityDpi + "dpi"); in resourceQualifierString()
DDeviceConfig.java230 private static void setDensity(int densityDpi, int apiLevel, Configuration configuration, in setDensity() argument
233 configuration.densityDpi = densityDpi; in setDensity()
235 displayMetrics.densityDpi = densityDpi; in setDensity()
236 displayMetrics.density = displayMetrics.densityDpi * DisplayMetrics.DENSITY_DEFAULT_SCALE; in setDensity()
333 switch (displayMetrics.densityDpi) { in applyRules()
DBootstrap.java61 displayMetrics.xdpi = displayMetrics.noncompatXdpi = displayMetrics.densityDpi; in fixJellyBean()
62 displayMetrics.ydpi = displayMetrics.noncompatYdpi = displayMetrics.densityDpi; in fixJellyBean()
/external/deqp/framework/platform/android/
DtcuAndroidUtil.hpp62 int densityDpi; member
73 , densityDpi (0) in DisplayMetrics()
DtcuAndroidUtil.cpp449 metrics.densityDpi = getField<int> (env, *nativeMetrics, "densityDpi"); in getDisplayMetrics()
504 const float dpScale = float(displayMetrics.densityDpi) / 160.f; in getScreenClass()
548 if (isValidDensityClass(displayMetrics.densityDpi)) in getDensityClass()
549 return (DensityClass)displayMetrics.densityDpi; in getDensityClass()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/android/
DBootstrapTest.java170 assertThat(configuration.densityDpi).isEqualTo(DisplayMetrics.DENSITY_DEFAULT); in applyQualifiers_shouldAddDefaults()
172 assertThat(displayMetrics.densityDpi).isEqualTo(DisplayMetrics.DENSITY_DEFAULT); in applyQualifiers_shouldAddDefaults()
238 assertThat(configuration.densityDpi).isEqualTo(DisplayMetrics.DENSITY_HIGH); in applyQualifiers_shouldHonorSpecifiedQualifiers()
240 assertThat(displayMetrics.densityDpi).isEqualTo(DisplayMetrics.DENSITY_HIGH); in applyQualifiers_shouldHonorSpecifiedQualifiers()
325 assertThat(displayMetrics.densityDpi).isEqualTo(240); in applyQualifiers_densityOnJellyBean()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowDisplayTest.java50 assertEquals(DisplayMetrics.DENSITY_HIGH, metrics.densityDpi); in shouldProvideDisplayMetrics()
62 assertEquals(DisplayMetrics.DENSITY_HIGH, metrics.densityDpi); in shouldProvideDisplayMetrics()
DShadowBitmapTest.java136 metrics.densityDpi = 1000; in shouldCreateMutableBitmapWithDisplayMetrics()
/external/subsampling-scale-image-view/sample/src/main/java/com/davemorrissey/labs/subscaleview/test/extension/views/
DPinView.java33 float density = getResources().getDisplayMetrics().densityDpi; in initialise()
DCircleView.java28 float density = getResources().getDisplayMetrics().densityDpi; in initialise()
DFreehandView.java42 float density = getResources().getDisplayMetrics().densityDpi; in initialise()
/external/glide/library/src/main/java/com/bumptech/glide/load/resource/bitmap/
DGlideBitmapDrawable.java39 final int density = res.getDisplayMetrics().densityDpi; in GlideBitmapDrawable()