Searched refs:getDisplayMetrics (Results 1 – 12 of 12) sorted by relevance
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/ |
D | RobolectricTest.java | 145 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/ |
D | ResourcesTest.java | 127 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()
|
D | ViewConfigurationTest.java | 40 assertEquals(1f, context.getResources().getDisplayMetrics().density); in methodsShouldReturnAndroidConstants()
|
/external/deqp/framework/platform/android/ |
D | tcuAndroidUtil.hpp | 82 DisplayMetrics getDisplayMetrics (ANativeActivity* activity);
|
D | tcuAndroidUtil.cpp | 432 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/ |
D | TouchCatcherView.java | 55 float density = getResources().getDisplayMetrics().density; in initialisePaint()
|
/external/glide/library/src/main/java/com/bumptech/glide/load/engine/cache/ |
D | MemorySizeCalculator.java | 33 new DisplayMetricsScreenDimensions(context.getResources().getDisplayMetrics())); in MemorySizeCalculator()
|
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/ |
D | ShadowViewConfiguration.java | 74 DisplayMetrics metrics = context.getResources().getDisplayMetrics(); in setup()
|
D | ShadowResources.java | 139 public DisplayMetrics getDisplayMetrics() { in getDisplayMetrics() method in ShadowResources
|
/external/androidplot/AndroidPlot-Core/src/main/java/com/androidplot/util/ |
D | PixelUtils.java | 48 metrics = ctx.getResources().getDisplayMetrics(); in init()
|
/external/glide/library/src/main/java/com/bumptech/glide/load/resource/bitmap/ |
D | GlideBitmapDrawable.java | 39 final int density = res.getDisplayMetrics().densityDpi; in GlideBitmapDrawable()
|
/external/sl4a/InterpreterForAndroid/src/com/googlecode/android_scripting/activity/ |
D | Main.java | 126 final float scale = getResources().getDisplayMetrics().density; in initializeViews()
|