/frameworks/base/core/tests/coretests/src/android/content/res/ |
D | ConfigurationBoundResourceCacheTest.java | 77 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/ |
D | TestWallpaper.java | 107 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/ |
D | Font.java | 161 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/ |
D | ResourcesWrapper.java | 49 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/ |
D | RotationActivity.java | 39 return (int) (c.getResources().getDisplayMetrics().density * dip + 0.5f); in dipToPx()
|
D | ViewLayersActivity3.java | 57 final DisplayMetrics metrics = r.getDisplayMetrics(); in getView()
|
D | ViewLayersActivity2.java | 60 final DisplayMetrics metrics = r.getDisplayMetrics(); in getView()
|
D | ViewLayersActivity4.java | 64 final DisplayMetrics metrics = r.getDisplayMetrics(); in getView()
|
D | ListActivity.java | 115 final DisplayMetrics metrics = r.getDisplayMetrics(); in getView()
|
D | TransparentListActivity.java | 113 final DisplayMetrics metrics = r.getDisplayMetrics(); in getView()
|
D | DisplayListLayersActivity.java | 79 return (int) (getResources().getDisplayMetrics().density * size + 0.5f); in dipToPx()
|
/frameworks/opt/bitmap/sample/src/com/example/bitmapsample/ |
D | BitmapView.java | 38 mDensity = getResources().getDisplayMetrics().density; in BitmapView()
|
/frameworks/base/core/java/android/view/ |
D | ViewConfiguration.java | 280 final DisplayMetrics metrics = res.getDisplayMetrics(); in ViewConfiguration() 359 final DisplayMetrics metrics = context.getResources().getDisplayMetrics(); in get()
|
/frameworks/base/packages/Keyguard/src/com/android/keyguard/ |
D | KeyguardWidgetFrame.java | 106 float density = res.getDisplayMetrics().density; in KeyguardWidgetFrame() 107 int padding = (int) (res.getDisplayMetrics().density * 8); in KeyguardWidgetFrame() 476 float density = getResources().getDisplayMetrics().density; in performAppWidgetSizeCallbacksIfNecessary()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
D | FlingAnimationUtils.java | 62 = MIN_VELOCITY_DP_PER_SECOND * ctx.getResources().getDisplayMetrics().density; in FlingAnimationUtils() 64 = HIGH_VELOCITY_DP_PER_SECOND * ctx.getResources().getDisplayMetrics().density; in FlingAnimationUtils()
|
/frameworks/base/core/java/com/android/internal/view/ |
D | ActionBarPolicy.java | 50 return mContext.getResources().getDisplayMetrics().widthPixels / 2; in getEmbeddedMenuWidthLimit()
|
/frameworks/support/v7/appcompat/src/android/support/v7/internal/view/ |
D | ActionBarPolicy.java | 58 return mContext.getResources().getDisplayMetrics().widthPixels / 2; in getEmbeddedMenuWidthLimit()
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | WeightedLinearLayout.java | 58 final DisplayMetrics metrics = getContext().getResources().getDisplayMetrics(); in onMeasure()
|
/frameworks/base/tests/RenderScriptTests/PerfTest/src/com/android/perftest/ |
D | TextTest.java | 85 DisplayMetrics metrics = mRes.getDisplayMetrics(); in initTextScript()
|
/frameworks/base/core/java/com/android/internal/view/menu/ |
D | ActionMenuItemView.java | 83 final float density = res.getDisplayMetrics().density; in ActionMenuItemView() 270 final int screenWidth = context.getResources().getDisplayMetrics().widthPixels; in onLongClick()
|
/frameworks/support/v7/appcompat/src/android/support/v7/internal/view/menu/ |
D | ActionMenuItemView.java | 86 final float density = res.getDisplayMetrics().density; in ActionMenuItemView() 253 final int screenWidth = context.getResources().getDisplayMetrics().widthPixels; in onLongClick()
|
/frameworks/base/tests/DpiTest/src/com/google/android/test/dpi/ |
D | DpiTestActivity.java | 171 if (!scale) d.setTargetDensity(getResources().getDisplayMetrics()); in addBitmapDrawable() 237 final DisplayMetrics metrics = getResources().getDisplayMetrics(); in onMeasure()
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
D | Drawable.java | 987 ? res.getDisplayMetrics().noncompatDensityDpi : DisplayMetrics.DENSITY_DEVICE; in createFromResourceStream() 1114 ((BitmapDrawable) drawable).setTargetDensity(r.getDisplayMetrics()); in createFromXmlInner() 1120 ((NinePatchDrawable) drawable).setTargetDensity(r.getDisplayMetrics()); in createFromXmlInner()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recent/ |
D | RecentsHorizontalScrollView.java | 315 float densityScale = getResources().getDisplayMetrics().density; in onConfigurationChanged() 363 DisplayMetrics dm = getResources().getDisplayMetrics(); in setAdapter()
|
/frameworks/base/core/java/android/app/ |
D | Presentation.java | 284 return dm.equalsPhysical(getResources().getDisplayMetrics()); in isConfigurationStillValid()
|