Home
last modified time | relevance | path

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

12345678

/frameworks/support/v4/donut/android/support/v4/content/res/
DConfigurationHelperDonut.java27 final DisplayMetrics metrics = resources.getDisplayMetrics(); in getScreenHeightDp()
32 final DisplayMetrics metrics = resources.getDisplayMetrics(); in getScreenWidthDp()
42 return resources.getDisplayMetrics().densityDpi; in getDensityDpi()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/
DInterestingConfigChanges.java29 boolean densityChanged = mLastDensity != res.getDisplayMetrics().densityDpi; in applyNewConfig()
32 mLastDensity = res.getDisplayMetrics().densityDpi; in applyNewConfig()
/frameworks/base/core/tests/coretests/src/android/content/res/
DConfigurationBoundResourceCacheTest.java84 float staticDim = TypedValue.complexToDimension(staticValue.data, res.getDisplayMetrics()); in testVoidConfigChange()
106 res.getDisplayMetrics()); in testEffectiveConfigChange()
129 float staticDim = TypedValue.complexToDimension(staticValue.data, res.getDisplayMetrics()); in testConfigChangeMultipleResources()
131 res.getDisplayMetrics()); in testConfigChangeMultipleResources()
165 .complexToDimension(staticValues[i].data, res.getDisplayMetrics()); in testConfigChangeMultipleThemes()
170 res.getDisplayMetrics()); in testConfigChangeMultipleThemes()
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/
DDisplay.java41 return context.getResources().getDisplayMetrics().density; in density()
52 context.getResources().getDisplayMetrics()); in actionBarHeight()
/frameworks/base/tests/WallpaperTest/src/com/example/wallpapertest/
DTestWallpaper.java107 tpaint.density = getResources().getDisplayMetrics().density; in onCreate()
110 tpaint.setTextSize(18 * getResources().getDisplayMetrics().scaledDensity); in onCreate()
111 tpaint.setShadowLayer(4 * getResources().getDisplayMetrics().density, 0, 0, 0xff000000); in onCreate()
115 mPadding = (int)(16 * getResources().getDisplayMetrics().density); in onCreate()
/frameworks/base/rs/java/android/renderscript/
DFont.java162 int dpi = res.getDisplayMetrics().densityDpi; in createFromFile()
186 int dpi = res.getDisplayMetrics().densityDpi; in createFromAsset()
210 int dpi = res.getDisplayMetrics().densityDpi; in createFromResource()
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
DResourcesWrapper.java46 super(resources.getAssets(), resources.getDisplayMetrics(), resources.getConfiguration()); in ResourcesWrapper()
233 public DisplayMetrics getDisplayMetrics() { in getDisplayMetrics() method in ResourcesWrapper
234 return mResources.getDisplayMetrics(); in getDisplayMetrics()
/frameworks/base/core/java/android/app/
DResourcesManager.java151 DisplayMetrics getDisplayMetrics() { in getDisplayMetrics() method in ResourcesManager
152 return getDisplayMetrics(Display.DEFAULT_DISPLAY, in getDisplayMetrics()
160 protected @NonNull DisplayMetrics getDisplayMetrics(int displayId, DisplayAdjustments da) { in getDisplayMetrics() method in ResourcesManager
311 final DisplayMetrics dm = getDisplayMetrics(key.mDisplayId, daj); in createResourcesImpl()
777 DisplayMetrics defaultDisplayMetrics = getDisplayMetrics(); in applyConfigurationToResourcesLocked()
819 dm = getDisplayMetrics(displayId, daj); in applyConfigurationToResourcesLocked()
/frameworks/base/core/java/android/view/
DViewConfiguration.java285 final DisplayMetrics metrics = res.getDisplayMetrics(); in ViewConfiguration()
364 final DisplayMetrics metrics = context.getResources().getDisplayMetrics(); in get()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DFlingAnimationUtils.java56 = MIN_VELOCITY_DP_PER_SECOND * ctx.getResources().getDisplayMetrics().density; in FlingAnimationUtils()
58 = HIGH_VELOCITY_DP_PER_SECOND * ctx.getResources().getDisplayMetrics().density; in FlingAnimationUtils()
/frameworks/support/v7/appcompat/src/android/support/v7/app/
DVectorEnabledTintResources.java50 super(res.getAssets(), res.getDisplayMetrics(), res.getConfiguration()); in VectorEnabledTintResources()
/frameworks/opt/bitmap/sample/src/com/example/bitmapsample/
DBitmapView.java38 mDensity = getResources().getDisplayMetrics().density; in BitmapView()
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DRotationActivity.java39 return (int) (c.getResources().getDisplayMetrics().density * dip + 0.5f); in dipToPx()
DViewLayersActivity3.java57 final DisplayMetrics metrics = r.getDisplayMetrics(); in getView()
DViewLayersActivity2.java60 final DisplayMetrics metrics = r.getDisplayMetrics(); in getView()
DViewLayersActivity4.java64 final DisplayMetrics metrics = r.getDisplayMetrics(); in getView()
/frameworks/support/v7/appcompat/tests/src/android/support/v7/widget/
DTintResourcesTest.java56 super(res.getAssets(), res.getDisplayMetrics(), res.getConfiguration()); in TestResources()
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/
DRecentsConfiguration.java70 float screenDensity = context.getResources().getDisplayMetrics().density; in RecentsConfiguration()
/frameworks/opt/setupwizard/library/test/src/com/android/setupwizardlib/test/
DIllustrationTest.java41 context.getResources().getDisplayMetrics().density = 2.0f; in testAspectRatio()
/frameworks/base/graphics/java/android/graphics/drawable/
DDrawableWrapper.java133 final int densityDpi = r.getDisplayMetrics().densityDpi; in inflate()
160 final int densityDpi = t.getResources().getDisplayMetrics().densityDpi; in applyTheme()
462 density = res.getDisplayMetrics().densityDpi; in DrawableWrapperState()
/frameworks/base/core/java/com/android/internal/widget/
DNotificationExpandButton.java56 int touchTargetSize = (int) (getResources().getDisplayMetrics().density * 48); in extendRectToMinTouchSize()
DWeightedLinearLayout.java58 final DisplayMetrics metrics = getContext().getResources().getDisplayMetrics(); in onMeasure()
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/
DSpTexts.java44 final float density = res.getDisplayMetrics().density; in add()
/frameworks/base/core/java/android/content/res/
DResources.java595 return TypedValue.complexToDimension(value.data, impl.getDisplayMetrics()); in getDimension()
630 impl.getDisplayMetrics()); in getDimensionPixelOffset()
665 return TypedValue.complexToDimensionPixelSize(value.data, impl.getDisplayMetrics()); in getDimensionPixelSize()
828 final DisplayMetrics metrics = impl.getDisplayMetrics(); in getDrawableForDensity()
1799 public DisplayMetrics getDisplayMetrics() { in getDisplayMetrics() method in Resources
1800 return mResourcesImpl.getDisplayMetrics(); in getDisplayMetrics()
/frameworks/base/core/tests/coretests/src/android/text/format/
DFormatterTest.java50 res.updateConfiguration(config, res.getDisplayMetrics()); in setLocale()

12345678