Home
last modified time | relevance | path

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

123456

/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.java77 float staticDim = TypedValue.complexToDimension(staticValue.data, res.getDisplayMetrics()); in testVoidConfigChange()
98 res.getDisplayMetrics()); in testEffectiveConfigChange()
120 float staticDim = TypedValue.complexToDimension(staticValue.data, res.getDisplayMetrics()); in testConfigChangeMultipleResources()
122 res.getDisplayMetrics()); in testConfigChangeMultipleResources()
154 .complexToDimension(staticValues[i].data, res.getDisplayMetrics()); in testConfigChangeMultipleThemes()
159 res.getDisplayMetrics()); in testConfigChangeMultipleThemes()
/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.java161 int dpi = res.getDisplayMetrics().densityDpi; in createFromFile()
185 int dpi = res.getDisplayMetrics().densityDpi; in createFromAsset()
209 int dpi = res.getDisplayMetrics().densityDpi; in createFromResource()
/frameworks/support/v7/appcompat/src/android/support/v7/internal/widget/
DResourcesWrapper.java49 super(resources.getAssets(), resources.getDisplayMetrics(), resources.getConfiguration()); in ResourcesWrapper()
236 public DisplayMetrics getDisplayMetrics() { in getDisplayMetrics() method in ResourcesWrapper
237 return mResources.getDisplayMetrics(); in getDisplayMetrics()
/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()
DListActivity.java115 final DisplayMetrics metrics = r.getDisplayMetrics(); in getView()
DTransparentListActivity.java113 final DisplayMetrics metrics = r.getDisplayMetrics(); in getView()
/frameworks/opt/bitmap/sample/src/com/example/bitmapsample/
DBitmapView.java38 mDensity = getResources().getDisplayMetrics().density; in BitmapView()
/frameworks/opt/setupwizard/library/test/src/com/android/setupwizardlib/test/
DIllustrationTest.java41 context.getResources().getDisplayMetrics().density = 2.0f; in testAspectRatio()
/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.java61 = MIN_VELOCITY_DP_PER_SECOND * ctx.getResources().getDisplayMetrics().density; in FlingAnimationUtils()
63 = HIGH_VELOCITY_DP_PER_SECOND * ctx.getResources().getDisplayMetrics().density; in FlingAnimationUtils()
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/
DSpTexts.java44 final float density = res.getDisplayMetrics().density; in add()
/frameworks/base/core/java/com/android/internal/view/
DActionBarPolicy.java50 return mContext.getResources().getDisplayMetrics().widthPixels / 2; in getEmbeddedMenuWidthLimit()
DFloatingActionMode.java203 mContext.getResources().getDisplayMetrics().widthPixels, in isContentRectWithinBounds()
204 mContext.getResources().getDisplayMetrics().heightPixels); in isContentRectWithinBounds()
/frameworks/base/core/tests/coretests/src/android/text/format/
DFormatterTest.java50 res.updateConfiguration(config, res.getDisplayMetrics()); in setLocale()
/frameworks/support/v7/appcompat/src/android/support/v7/internal/view/
DActionBarPolicy.java58 return mContext.getResources().getDisplayMetrics().widthPixels / 2; in getEmbeddedMenuWidthLimit()
/frameworks/base/core/java/com/android/internal/widget/
DWeightedLinearLayout.java58 final DisplayMetrics metrics = getContext().getResources().getDisplayMetrics(); in onMeasure()
/frameworks/base/tests/RenderScriptTests/PerfTest/src/com/android/perftest/
DTextTest.java85 DisplayMetrics metrics = mRes.getDisplayMetrics(); in initTextScript()
/frameworks/support/v7/appcompat/src/android/support/v7/internal/view/menu/
DActionMenuItemView.java82 final float density = res.getDisplayMetrics().density; in ActionMenuItemView()
247 final int screenWidth = context.getResources().getDisplayMetrics().widthPixels; in onLongClick()
/frameworks/base/tests/DpiTest/src/com/google/android/test/dpi/
DDpiTestActivity.java171 if (!scale) d.setTargetDensity(getResources().getDisplayMetrics()); in addBitmapDrawable()
237 final DisplayMetrics metrics = getResources().getDisplayMetrics(); in onMeasure()
/frameworks/base/core/java/com/android/internal/view/menu/
DActionMenuItemView.java83 final float density = res.getDisplayMetrics().density; in ActionMenuItemView()
270 final int screenWidth = context.getResources().getDisplayMetrics().widthPixels; in onLongClick()

123456