Home
last modified time | relevance | path

Searched refs:getDisplayMetrics (Results 1 – 12 of 12) sorted by relevance

/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/
DRobolectricTest.java145 assertThat(new Activity().getResources().getDisplayMetrics().density, equalTo(1.0f)); in shouldUseSetDensityForContexts()
147 assertThat(new Activity().getResources().getDisplayMetrics().density, equalTo(1.5f)); in shouldUseSetDensityForContexts()
152 assertThat(new Activity().getResources().getDisplayMetrics().widthPixels, equalTo(480)); in shouldUseSetDisplayForContexts()
153 assertThat(new Activity().getResources().getDisplayMetrics().heightPixels, equalTo(800)); in shouldUseSetDisplayForContexts()
161 assertThat(new Activity().getResources().getDisplayMetrics().widthPixels, equalTo(100)); in shouldUseSetDisplayForContexts()
162 assertThat(new Activity().getResources().getDisplayMetrics().heightPixels, equalTo(200)); in shouldUseSetDisplayForContexts()
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
DResourcesTest.java127 assertThat(activity.getResources().getDisplayMetrics().density, equalTo(1f)); in testDensity()
130 assertThat(activity.getResources().getDisplayMetrics().density, equalTo(1.5f)); in testDensity()
133 assertThat(anotherActivity.getResources().getDisplayMetrics().density, equalTo(1.5f)); in testDensity()
139 assertThat(activity.getResources().getDisplayMetrics().heightPixels, equalTo(800)); in displayMetricsShouldNotHaveLotsOfZeros()
140 assertThat(activity.getResources().getDisplayMetrics().widthPixels, equalTo(480)); in displayMetricsShouldNotHaveLotsOfZeros()
DViewConfigurationTest.java40 assertEquals(1f, context.getResources().getDisplayMetrics().density); in methodsShouldReturnAndroidConstants()
/external/deqp/framework/platform/android/
DtcuAndroidUtil.hpp82 DisplayMetrics getDisplayMetrics (ANativeActivity* activity);
DtcuAndroidUtil.cpp432 DisplayMetrics getDisplayMetrics (JNIEnv* env, jobject activity) in getDisplayMetrics() function
599 DisplayMetrics getDisplayMetrics (ANativeActivity* activity) in getDisplayMetrics() function
603 return getDisplayMetrics(env.getEnv(), activity->clazz); in getDisplayMetrics()
608 const DisplayMetrics displayMetrics = getDisplayMetrics(activity); in getCDDRequiredSystemMemory()
/external/walt/android/WALT/app/src/main/java/org/chromium/latency/walt/
DTouchCatcherView.java55 float density = getResources().getDisplayMetrics().density; in initialisePaint()
/external/glide/library/src/main/java/com/bumptech/glide/load/engine/cache/
DMemorySizeCalculator.java33 new DisplayMetricsScreenDimensions(context.getResources().getDisplayMetrics())); in MemorySizeCalculator()
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/
DShadowViewConfiguration.java74 DisplayMetrics metrics = context.getResources().getDisplayMetrics(); in setup()
DShadowResources.java139 public DisplayMetrics getDisplayMetrics() { in getDisplayMetrics() method in ShadowResources
/external/androidplot/AndroidPlot-Core/src/main/java/com/androidplot/util/
DPixelUtils.java48 metrics = ctx.getResources().getDisplayMetrics(); in init()
/external/glide/library/src/main/java/com/bumptech/glide/load/resource/bitmap/
DGlideBitmapDrawable.java39 final int density = res.getDisplayMetrics().densityDpi; in GlideBitmapDrawable()
/external/sl4a/InterpreterForAndroid/src/com/googlecode/android_scripting/activity/
DMain.java126 final float scale = getResources().getDisplayMetrics().density; in initializeViews()