Home
last modified time | relevance | path

Searched refs:DisplayMetrics (Results 1 – 25 of 31) sorted by relevance

12

/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowDisplayManager.java9 import android.util.DisplayMetrics;
40 …public static void configureDefaultDisplay(Configuration configuration, DisplayMetrics displayMetr… in configureDefaultDisplay()
49 …private static DisplayInfo createDisplayInfo(Configuration configuration, DisplayMetrics displayMe… in createDisplayInfo()
99 DisplayMetrics displayMetrics = new DisplayMetrics(); in createDisplayInfo()
107 configuration.screenWidthDp = baseDisplayInfo.logicalWidth * DisplayMetrics.DENSITY_DEFAULT in createDisplayInfo()
109 configuration.screenHeightDp = baseDisplayInfo.logicalHeight * DisplayMetrics.DENSITY_DEFAULT in createDisplayInfo()
114 baseDisplayInfo.logicalDensityDpi * DisplayMetrics.DENSITY_DEFAULT_SCALE; in createDisplayInfo()
DShadowDisplay.java9 import android.util.DisplayMetrics;
67 protected void getMetrics(DisplayMetrics outMetrics) { in getMetrics()
69 outMetrics.density = densityDpi * DisplayMetrics.DENSITY_DEFAULT_SCALE; in getMetrics()
92 protected void getRealMetrics(DisplayMetrics outMetrics) { in getRealMetrics()
170 setDensityDpi((int) (density * DisplayMetrics.DENSITY_DEFAULT)); in setDensity()
399 void configureForJBOnly(Configuration configuration, DisplayMetrics displayMetrics) { in configureForJBOnly()
412 scaledDensity = displayMetrics.densityDpi * DisplayMetrics.DENSITY_DEFAULT_SCALE; in configureForJBOnly()
DShadowPackageParser.java8 import android.util.DisplayMetrics;
47 from(DisplayMetrics.class, new DisplayMetrics()), in callParsePackage()
DShadowViewConfiguration.java24 import android.util.DisplayMetrics;
73 DisplayMetrics metrics = context.getResources().getDisplayMetrics(); in setup()
DShadowWindowManagerImpl.java8 import android.util.DisplayMetrics;
34 Configuration configuration, DisplayMetrics displayMetrics) { in configureDefaultDisplayForJBOnly()
DShadowBitmap.java13 import android.util.DisplayMetrics;
194 return createBitmap((DisplayMetrics) null, width, height, config); in createBitmap()
199 DisplayMetrics displayMetrics, in createBitmap()
204 return createBitmap((DisplayMetrics) null, width, height, config); in createBitmap()
209 DisplayMetrics displayMetrics, int width, int height, Bitmap.Config config) { in createBitmap()
DShadowDrawable.java13 import android.util.DisplayMetrics;
64 opts.inScreenDensity = DisplayMetrics.DENSITY_DEFAULT; in createFromResourceStream()
DShadowResources.java24 import android.util.DisplayMetrics;
77 DisplayMetrics metrics = new DisplayMetrics(); in getSystem()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowDisplayTest.java10 import android.util.DisplayMetrics;
35 shadow.setDensityDpi(DisplayMetrics.DENSITY_HIGH); in shouldProvideDisplayMetrics()
45 DisplayMetrics metrics = new DisplayMetrics(); in shouldProvideDisplayMetrics()
50 assertEquals(DisplayMetrics.DENSITY_HIGH, metrics.densityDpi); in shouldProvideDisplayMetrics()
57 metrics = new DisplayMetrics(); in shouldProvideDisplayMetrics()
62 assertEquals(DisplayMetrics.DENSITY_HIGH, metrics.densityDpi); in shouldProvideDisplayMetrics()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/android/
DBootstrap.java6 import android.util.DisplayMetrics;
14 public static void setUpDisplay(Configuration configuration, DisplayMetrics displayMetrics) { in setUpDisplay()
23 Configuration configuration, DisplayMetrics displayMetrics) { in applyQualifiers()
55 private static void fixJellyBean(Configuration configuration, DisplayMetrics displayMetrics) { in fixJellyBean()
DDeviceConfig.java8 import android.util.DisplayMetrics;
98 Configuration configuration, DisplayMetrics displayMetrics) { in applyToConfiguration()
231 DisplayMetrics displayMetrics) { in setDensity()
236 displayMetrics.density = displayMetrics.densityDpi * DisplayMetrics.DENSITY_DEFAULT_SCALE; in setDensity()
243 static void applyRules(Configuration configuration, DisplayMetrics displayMetrics, int apiLevel) { in applyRules()
DConfigurationV25.java12 import android.util.DisplayMetrics;
70 …public static String resourceQualifierString(Configuration config, DisplayMetrics displayMetrics) { in resourceQualifierString()
74 …public static String resourceQualifierString(Configuration config, DisplayMetrics displayMetrics, … in resourceQualifierString()
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/
DDisplayFacade.java25 import android.util.DisplayMetrics;
89 public DisplayMetrics displayGetRealMetrics( in displayGetRealMetrics()
94 DisplayMetrics outMetrics = new DisplayMetrics(); in displayGetRealMetrics()
/external/deqp/framework/platform/android/
DtcuAndroidUtil.hpp58 struct DisplayMetrics struct
70 DisplayMetrics (void) in DisplayMetrics() function
82 DisplayMetrics getDisplayMetrics (ANativeActivity* activity);
DtcuAndroidUtil.cpp432 DisplayMetrics getDisplayMetrics (JNIEnv* env, jobject activity) in getDisplayMetrics()
439 DisplayMetrics metrics; in getDisplayMetrics()
488 ScreenClass getScreenClass (const DisplayMetrics& displayMetrics) in getScreenClass()
546 DensityClass getDensityClass (const DisplayMetrics& displayMetrics) in getDensityClass()
599 DisplayMetrics getDisplayMetrics (ANativeActivity* activity) in getDisplayMetrics()
608 const DisplayMetrics displayMetrics = getDisplayMetrics(activity); in getCDDRequiredSystemMemory()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/
DRuntimeEnvironment.java9 import android.util.DisplayMetrics;
108 public static String getQualifiers(Configuration configuration, DisplayMetrics displayMetrics) { in getQualifiers()
123 DisplayMetrics displayMetrics = new DisplayMetrics(); in setQualifiers()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/android/
DBootstrapTest.java47 import android.util.DisplayMetrics;
63 private DisplayMetrics displayMetrics;
69 displayMetrics = new DisplayMetrics(); in setUp()
105 DisplayMetrics displayMetrics = in shouldSetUpRealisticDisplay()
140 DisplayMetrics displayMetrics = in shouldSetUpRealisticDisplay_landscapeHighDensity()
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()
DDeviceConfigTest.java8 import android.util.DisplayMetrics;
22 private DisplayMetrics displayMetrics;
29 displayMetrics = new DisplayMetrics(); in setUp()
/external/glide/library/src/main/java/com/bumptech/glide/load/engine/cache/
DMemorySizeCalculator.java7 import android.util.DisplayMetrics;
95 private final DisplayMetrics displayMetrics;
97 public DisplayMetricsScreenDimensions(DisplayMetrics displayMetrics) { in DisplayMetricsScreenDimensions()
/external/replicaisland/src/com/replica/replicaisland/
DAnimationPlayerActivity.java28 import android.util.DisplayMetrics;
89 DisplayMetrics metrics = new DisplayMetrics(); in onCreate()
/external/androidplot/AndroidPlot-Core/src/main/java/com/androidplot/util/
DPixelUtils.java23 import android.util.DisplayMetrics;
33 private static DisplayMetrics metrics;
/external/glide/library/src/main/java/com/bumptech/glide/load/resource/bitmap/
DGlideBitmapDrawable.java11 import android.util.DisplayMetrics;
40 targetDensity = density == 0 ? DisplayMetrics.DENSITY_DEFAULT : density; in GlideBitmapDrawable()
/external/setupcompat/partnerconfig/java/com/google/android/setupcompat/partnerconfig/
DPartnerConfigHelper.java33 import android.util.DisplayMetrics;
364 DisplayMetrics displayMetrics = context.getResources().getDisplayMetrics(); in getDimensionFromTypedValue()
/external/robolectric-shadows/robolectric/src/main/java/org/robolectric/android/internal/
DParallelUniverse.java31 import android.util.DisplayMetrics;
106 DisplayMetrics displayMetrics = new DisplayMetrics(); in setUpApplicationState()
/external/tensorflow/tensorflow/examples/android/src/org/tensorflow/demo/
DStylizeActivity.java36 import android.util.DisplayMetrics;
393 DisplayMetrics displayMetrics = new DisplayMetrics(); in onPreviewSizeChosen()

12