/frameworks/support/v4/donut/android/support/v4/content/res/ |
D | ConfigurationHelperDonut.java | 27 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/ |
D | InterestingConfigChanges.java | 29 boolean densityChanged = mLastDensity != res.getDisplayMetrics().densityDpi; in applyNewConfig() 32 mLastDensity = res.getDisplayMetrics().densityDpi; in applyNewConfig()
|
/frameworks/base/core/tests/coretests/src/android/content/res/ |
D | ConfigurationBoundResourceCacheTest.java | 84 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/ |
D | Display.java | 41 return context.getResources().getDisplayMetrics().density; in density() 52 context.getResources().getDisplayMetrics()); in actionBarHeight()
|
/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 | 162 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/ |
D | ResourcesWrapper.java | 46 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/ |
D | ResourcesManager.java | 151 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/ |
D | ViewConfiguration.java | 285 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/ |
D | FlingAnimationUtils.java | 56 = 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/ |
D | VectorEnabledTintResources.java | 50 super(res.getAssets(), res.getDisplayMetrics(), res.getConfiguration()); in VectorEnabledTintResources()
|
/frameworks/opt/bitmap/sample/src/com/example/bitmapsample/ |
D | BitmapView.java | 38 mDensity = getResources().getDisplayMetrics().density; in BitmapView()
|
/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()
|
/frameworks/support/v7/appcompat/tests/src/android/support/v7/widget/ |
D | TintResourcesTest.java | 56 super(res.getAssets(), res.getDisplayMetrics(), res.getConfiguration()); in TestResources()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/ |
D | RecentsConfiguration.java | 70 float screenDensity = context.getResources().getDisplayMetrics().density; in RecentsConfiguration()
|
/frameworks/opt/setupwizard/library/test/src/com/android/setupwizardlib/test/ |
D | IllustrationTest.java | 41 context.getResources().getDisplayMetrics().density = 2.0f; in testAspectRatio()
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
D | DrawableWrapper.java | 133 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/ |
D | NotificationExpandButton.java | 56 int touchTargetSize = (int) (getResources().getDisplayMetrics().density * 48); in extendRectToMinTouchSize()
|
D | WeightedLinearLayout.java | 58 final DisplayMetrics metrics = getContext().getResources().getDisplayMetrics(); in onMeasure()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/ |
D | SpTexts.java | 44 final float density = res.getDisplayMetrics().density; in add()
|
/frameworks/base/core/java/android/content/res/ |
D | Resources.java | 595 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/ |
D | FormatterTest.java | 50 res.updateConfiguration(config, res.getDisplayMetrics()); in setLocale()
|