/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 | 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()
|
/frameworks/opt/bitmap/sample/src/com/example/bitmapsample/ |
D | BitmapView.java | 38 mDensity = getResources().getDisplayMetrics().density; in BitmapView()
|
/frameworks/opt/setupwizard/library/test/src/com/android/setupwizardlib/test/ |
D | IllustrationTest.java | 41 context.getResources().getDisplayMetrics().density = 2.0f; in testAspectRatio()
|
/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 | 61 = 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/ |
D | SpTexts.java | 44 final float density = res.getDisplayMetrics().density; in add()
|
/frameworks/base/core/java/com/android/internal/view/ |
D | ActionBarPolicy.java | 50 return mContext.getResources().getDisplayMetrics().widthPixels / 2; in getEmbeddedMenuWidthLimit()
|
D | FloatingActionMode.java | 203 mContext.getResources().getDisplayMetrics().widthPixels, in isContentRectWithinBounds() 204 mContext.getResources().getDisplayMetrics().heightPixels); in isContentRectWithinBounds()
|
/frameworks/base/core/tests/coretests/src/android/text/format/ |
D | FormatterTest.java | 50 res.updateConfiguration(config, res.getDisplayMetrics()); in setLocale()
|
/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/support/v7/appcompat/src/android/support/v7/internal/view/menu/ |
D | ActionMenuItemView.java | 82 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/ |
D | DpiTestActivity.java | 171 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/ |
D | ActionMenuItemView.java | 83 final float density = res.getDisplayMetrics().density; in ActionMenuItemView() 270 final int screenWidth = context.getResources().getDisplayMetrics().widthPixels; in onLongClick()
|