Searched refs:densityDpi (Results 1 – 15 of 15) sorted by relevance
52 private Integer densityDpi; field in ShadowDisplay69 outMetrics.density = densityDpi * DisplayMetrics.DENSITY_DEFAULT_SCALE; in getMetrics()70 outMetrics.densityDpi = densityDpi; in getMetrics()179 public void setDensityDpi(int densityDpi) { in setDensityDpi() argument181 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()
73 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()
222 shadowBitmap.density = displayMetrics.densityDpi; in createBitmap()
224 int densityDpi; in resourceQualifierString() local226 densityDpi = config.densityDpi; in resourceQualifierString()228 densityDpi = displayMetrics.densityDpi; in resourceQualifierString()231 switch (densityDpi) { in resourceQualifierString()262 parts.add(densityDpi + "dpi"); in resourceQualifierString()
230 private static void setDensity(int densityDpi, int apiLevel, Configuration configuration, in setDensity() argument233 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()
61 displayMetrics.xdpi = displayMetrics.noncompatXdpi = displayMetrics.densityDpi; in fixJellyBean()62 displayMetrics.ydpi = displayMetrics.noncompatYdpi = displayMetrics.densityDpi; in fixJellyBean()
62 int densityDpi; member73 , densityDpi (0) in DisplayMetrics()
449 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()
170 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()
50 assertEquals(DisplayMetrics.DENSITY_HIGH, metrics.densityDpi); in shouldProvideDisplayMetrics()62 assertEquals(DisplayMetrics.DENSITY_HIGH, metrics.densityDpi); in shouldProvideDisplayMetrics()
136 metrics.densityDpi = 1000; in shouldCreateMutableBitmapWithDisplayMetrics()
33 float density = getResources().getDisplayMetrics().densityDpi; in initialise()
28 float density = getResources().getDisplayMetrics().densityDpi; in initialise()
42 float density = getResources().getDisplayMetrics().densityDpi; in initialise()
39 final int density = res.getDisplayMetrics().densityDpi; in GlideBitmapDrawable()