HomeSort by relevance Sort by last modified time
    Searched refs:getDisplayMetrics (Results 1 - 25 of 551) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /frameworks/support/compat/gingerbread/android/support/v4/content/res/
ConfigurationHelperGingerbread.java 27 final DisplayMetrics metrics = resources.getDisplayMetrics();
32 final DisplayMetrics metrics = resources.getDisplayMetrics();
42 return resources.getDisplayMetrics().densityDpi;
  /frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/
InterestingConfigChanges.java 29 boolean densityChanged = mLastDensity != res.getDisplayMetrics().densityDpi;
32 mLastDensity = res.getDisplayMetrics().densityDpi;
  /frameworks/base/packages/DocumentsUI/src/com/android/documentsui/
Display.java 41 return context.getResources().getDisplayMetrics().density;
52 context.getResources().getDisplayMetrics());
  /external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
ResourcesTest.java 127 assertThat(activity.getResources().getDisplayMetrics().density, equalTo(1f));
130 assertThat(activity.getResources().getDisplayMetrics().density, equalTo(1.5f));
133 assertThat(anotherActivity.getResources().getDisplayMetrics().density, equalTo(1.5f));
139 assertThat(activity.getResources().getDisplayMetrics().heightPixels, equalTo(800));
140 assertThat(activity.getResources().getDisplayMetrics().widthPixels, equalTo(480));
  /cts/tests/tests/transition/src/android/transition/cts/
ChangeBoundsTest.java 180 SMALL_OFFSET_DP, resources.getDisplayMetrics());
187 SMALL_SQUARE_SIZE_DP + SMALL_OFFSET_DP, resources.getDisplayMetrics());
189 LARGE_SQUARE_SIZE_DP - SMALL_OFFSET_DP, resources.getDisplayMetrics());
210 resources.getDisplayMetrics());
236 SMALL_SQUARE_SIZE_DP, resources.getDisplayMetrics());
238 LARGE_SQUARE_SIZE_DP, resources.getDisplayMetrics());
254 LARGE_SQUARE_SIZE_DP, resources.getDisplayMetrics());
271 SMALL_SQUARE_SIZE_DP, resources.getDisplayMetrics());
273 LARGE_SQUARE_SIZE_DP, resources.getDisplayMetrics());
  /external/deqp/framework/platform/android/
tcuAndroidUtil.hpp 82 DisplayMetrics getDisplayMetrics (ANativeActivity* activity);
  /frameworks/support/samples/SupportLeanbackShowcase/app/src/main/java/android/support/v17/leanback/supportleanbackshowcase/utils/
Utils.java 30 float density = ctx.getResources().getDisplayMetrics().density;
  /frameworks/support/v7/appcompat/tests/src/android/support/v7/custom/
ContextWrapperFrameLayout.java 54 super(res.getAssets(), res.getDisplayMetrics(), res.getConfiguration());
  /packages/apps/PackageInstaller/src/com/android/packageinstaller/
CaffeinatedScrollView.java 50 mBottomSlop = (int)(4 * getResources().getDisplayMetrics().density);
  /packages/apps/Settings/src/com/android/settings/display/
DensityPreference.java 46 final DisplayMetrics metrics = res.getDisplayMetrics();
69 final DisplayMetrics metrics = res.getDisplayMetrics();
  /external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/
RobolectricTest.java 145 assertThat(new Activity().getResources().getDisplayMetrics().density, equalTo(1.0f));
147 assertThat(new Activity().getResources().getDisplayMetrics().density, equalTo(1.5f));
152 assertThat(new Activity().getResources().getDisplayMetrics().widthPixels, equalTo(480));
153 assertThat(new Activity().getResources().getDisplayMetrics().heightPixels, equalTo(800));
161 assertThat(new Activity().getResources().getDisplayMetrics().widthPixels, equalTo(100));
162 assertThat(new Activity().getResources().getDisplayMetrics().heightPixels, equalTo(200));
  /packages/apps/Launcher3/tests/src/com/android/launcher3/
InvariantDeviceProfileTest.java 131 resources.getDisplayMetrics());
134 resources.getDisplayMetrics());
147 resources.getDisplayMetrics()));
165 resources.getDisplayMetrics());
168 resources.getDisplayMetrics());
182 resources.getDisplayMetrics()));
  /frameworks/base/rs/java/android/renderscript/
Font.java 162 int dpi = res.getDisplayMetrics().densityDpi;
186 int dpi = res.getDisplayMetrics().densityDpi;
210 int dpi = res.getDisplayMetrics().densityDpi;
  /packages/apps/DeskClock/src/com/android/alarmclock/
WidgetUtils.java 57 float density = res.getDisplayMetrics().density;
97 float density = res.getDisplayMetrics().density;
131 float density = res.getDisplayMetrics().density;
  /frameworks/base/core/tests/coretests/src/android/content/res/
ConfigurationBoundResourceCacheTest.java 84 float staticDim = TypedValue.complexToDimension(staticValue.data, res.getDisplayMetrics());
106 res.getDisplayMetrics());
129 float staticDim = TypedValue.complexToDimension(staticValue.data, res.getDisplayMetrics());
131 res.getDisplayMetrics());
165 .complexToDimension(staticValues[i].data, res.getDisplayMetrics());
170 res.getDisplayMetrics());
  /cts/libs/deviceutil/src/android/cts/util/
WidgetTestUtils.java 103 Assert.assertEquals(expected * context.getResources().getDisplayMetrics().density,
109 float density = context.getResources().getDisplayMetrics().density;
  /cts/hostsidetests/services/activitymanager/app/src/android/server/app/
AbstractLifecycleLogActivity.java 55 final DisplayMetrics metrics = getResources().getDisplayMetrics();
  /developers/build/prebuilts/androidtv/leanback/app/src/main/java/com/example/android/leanback/
Utils.java 95 float density = ctx.getResources().getDisplayMetrics().density;
  /developers/build/prebuilts/androidtv/leanback/app/src/main/java/com/example/android/tvleanback/
Utils.java 64 float density = ctx.getResources().getDisplayMetrics().density;
  /frameworks/base/core/java/com/android/internal/widget/
NotificationExpandButton.java 56 int touchTargetSize = (int) (getResources().getDisplayMetrics().density * 48);
  /frameworks/base/packages/SystemUI/src/com/android/systemui/recents/
RecentsConfiguration.java 70 float screenDensity = context.getResources().getDisplayMetrics().density;
  /frameworks/base/packages/SystemUI/src/com/android/systemui/volume/
SpTexts.java 44 final float density = res.getDisplayMetrics().density;
  /frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
RotationActivity.java 39 return (int) (c.getResources().getDisplayMetrics().density * dip + 0.5f);
ViewLayersActivity3.java 57 final DisplayMetrics metrics = r.getDisplayMetrics();
  /frameworks/base/tests/WallpaperTest/src/com/example/wallpapertest/
TestWallpaper.java 107 tpaint.density = getResources().getDisplayMetrics().density;
110 tpaint.setTextSize(18 * getResources().getDisplayMetrics().scaledDensity);
111 tpaint.setShadowLayer(4 * getResources().getDisplayMetrics().density, 0, 0, 0xff000000);
115 mPadding = (int)(16 * getResources().getDisplayMetrics().density);

Completed in 846 milliseconds

1 2 3 4 5 6 7 8 91011>>