/packages/apps/Settings/src/com/android/settings/display/ |
D | DensityPreference.java | 51 final DisplayMetrics metrics = res.getDisplayMetrics(); in getCurrentSwDp() local 52 final float density = metrics.density; in getCurrentSwDp() 53 final int minDimensionPx = Math.min(metrics.widthPixels, metrics.heightPixels); in getCurrentSwDp() 74 final DisplayMetrics metrics = res.getDisplayMetrics(); in onDialogClosed() local 76 final int minDimensionPx = Math.min(metrics.widthPixels, metrics.heightPixels); in onDialogClosed()
|
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/ |
D | StringTexture.java | 37 FontMetricsInt metrics, int width, int height) { in StringTexture() argument 41 mMetrics = metrics; in StringTexture() 73 FontMetricsInt metrics = paint.getFontMetricsInt(); in newInstance() local 75 int height = metrics.bottom - metrics.top; in newInstance() 79 return new StringTexture(text, paint, metrics, width, height); in newInstance()
|
/packages/apps/DevCamera/src/com/android/devcamera/ |
D | CameraDeviceReport.java | 381 DisplayMetrics metrics = new DisplayMetrics(); in printDisplayInfo() local 383 windowMgr.getDefaultDisplay().getMetrics(metrics); in printDisplayInfo() 384 Log.v(TAG, "screen width pixels = " + metrics.widthPixels); in printDisplayInfo() 385 Log.v(TAG, "screen height pixels = " + metrics.heightPixels); in printDisplayInfo() 387 windowMgr.getDefaultDisplay().getRealMetrics(metrics); in printDisplayInfo() 388 Log.v(TAG, "real screen width pixels = " + metrics.widthPixels); in printDisplayInfo() 389 Log.v(TAG, "real screen height pixels = " + metrics.heightPixels); in printDisplayInfo()
|
D | DevCameraActivity.java | 297 DisplayMetrics metrics = new DisplayMetrics(); in displayWidth() local 298 this.getWindowManager().getDefaultDisplay().getRealMetrics(metrics); in displayWidth() 299 return metrics.widthPixels; in displayWidth() 303 DisplayMetrics metrics = new DisplayMetrics(); in displayHeight() local 304 this.getWindowManager().getDefaultDisplay().getRealMetrics(metrics); in displayHeight() 305 return metrics.heightPixels; in displayHeight()
|
/packages/apps/Gallery/src/com/android/camera/ |
D | GridViewSpecial.java | 81 DisplayMetrics metrics) { in LayoutSpec() argument 82 mCellWidth = dpToPx(w, metrics); in LayoutSpec() 83 mCellHeight = dpToPx(h, metrics); in LayoutSpec() 84 mCellSpacing = dpToPx(intercellSpacing, metrics); in LayoutSpec() 85 mLeftEdgePadding = dpToPx(leftEdgePadding, metrics); in LayoutSpec() 96 DisplayMetrics metrics = new DisplayMetrics(); in initCellSize() local 97 a.getWindowManager().getDefaultDisplay().getMetrics(metrics); in initCellSize() 99 new LayoutSpec(67, 67, 8, 0, metrics), in initCellSize() 100 new LayoutSpec(92, 92, 8, 0, metrics), in initCellSize() 105 private static int dpToPx(int dp, DisplayMetrics metrics) { in dpToPx() argument [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/util/ |
D | GalleryUtils.java | 80 DisplayMetrics metrics = new DisplayMetrics(); in initialize() local 83 wm.getDefaultDisplay().getMetrics(metrics); in initialize() 84 sPixelDensity = metrics.density; in initialize() 88 initializeThumbnailSizes(metrics, r); in initialize() 91 private static void initializeThumbnailSizes(DisplayMetrics metrics, Resources r) { in initializeThumbnailSizes() argument 92 int maxPixels = Math.max(metrics.heightPixels, metrics.widthPixels); in initializeThumbnailSizes()
|
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/data/ |
D | MtpBitmapFetch.java | 108 DisplayMetrics metrics = new DisplayMetrics(); in configureForContext() local 110 wm.getDefaultDisplay().getMetrics(metrics); in configureForContext() 111 sMaxSize = Math.max(metrics.heightPixels, metrics.widthPixels); in configureForContext()
|
/packages/apps/Settings/src/com/android/settings/password/ |
D | ChooseLockPassword.java | 676 final PasswordMetrics metrics = PasswordMetrics.computeForPassword(password); in validatePassword() local 682 if (metrics.letters > 0 || metrics.symbols > 0) { in validatePassword() 692 if (metrics.letters < mPasswordMinLetters) { in validatePassword() 697 if (metrics.upperCase < mPasswordMinUpperCase) { in validatePassword() 702 if (metrics.lowerCase < mPasswordMinLowerCase) { in validatePassword() 707 if (metrics.symbols < mPasswordMinSymbols) { in validatePassword() 712 if (metrics.numeric < mPasswordMinNumeric) { in validatePassword() 717 if (metrics.nonLetter < mPasswordMinNonLetter) { in validatePassword()
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/colorpicker/ |
D | ColorPickerDialog.java | 48 DisplayMetrics metrics = new DisplayMetrics(); in ColorPickerDialog() local 50 wm.getDefaultDisplay().getMetrics(metrics); in ColorPickerDialog() 51 int height = metrics.heightPixels*8/10; in ColorPickerDialog() 52 int width = metrics.widthPixels*8/10; in ColorPickerDialog()
|
D | ColorCompareView.java | 61 DisplayMetrics metrics = ctx.getResources().getDisplayMetrics(); in ColorCompareView() local 62 float mDpToPix = metrics.density; in ColorCompareView()
|
D | ColorValueView.java | 59 DisplayMetrics metrics = ctx.getResources().getDisplayMetrics(); in ColorValueView() local 60 float mDpToPix = metrics.density; in ColorValueView()
|
D | ColorOpacityView.java | 63 DisplayMetrics metrics = ctx.getResources().getDisplayMetrics(); in ColorOpacityView() local 64 float mDpToPix = metrics.density; in ColorOpacityView()
|
D | ColorSaturationView.java | 65 DisplayMetrics metrics = ctx.getResources().getDisplayMetrics(); in ColorSaturationView() local 66 float mDpToPix = metrics.density; in ColorSaturationView()
|
D | ColorBrightnessView.java | 65 DisplayMetrics metrics = ctx.getResources().getDisplayMetrics(); in ColorBrightnessView() local 66 float mDpToPix = metrics.density; in ColorBrightnessView()
|
D | ColorHueView.java | 66 DisplayMetrics metrics = ctx.getResources().getDisplayMetrics(); in ColorHueView() local 67 float mDpToPix = metrics.density; in ColorHueView()
|
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
D | TimeBar.java | 97 DisplayMetrics metrics = context.getResources().getDisplayMetrics(); in TimeBar() local 98 float textSizeInPx = metrics.density * TEXT_SIZE_IN_DP; in TimeBar() 108 mScrubberPadding = (int) (metrics.density * SCRUBBER_PADDING_IN_DP); in TimeBar() 110 mVPaddingInPx = (int) (metrics.density * V_PADDING_IN_DP); in TimeBar()
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | Utilities.java | 479 public static float dpiFromPx(int size, DisplayMetrics metrics){ in dpiFromPx() argument 480 float densityRatio = (float) metrics.densityDpi / DisplayMetrics.DENSITY_DEFAULT; in dpiFromPx() 483 public static int pxFromDp(float size, DisplayMetrics metrics) { in pxFromDp() argument 485 size, metrics)); in pxFromDp() 487 public static int pxFromSp(float size, DisplayMetrics metrics) { in pxFromSp() argument 489 size, metrics)); in pxFromSp()
|
/packages/apps/Car/Hvac/src/com/android/car/hvac/ |
D | HvacUiService.java | 97 DisplayMetrics metrics = new DisplayMetrics(); in onCreate() local 98 mWindowManager.getDefaultDisplay().getRealMetrics(metrics); in onCreate() 99 mScreenBottom = metrics.heightPixels - getStatusBarHeight(); in onCreate() 100 mScreenWidth = metrics.widthPixels; in onCreate()
|
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/ |
D | PicasaSource.java | 96 DisplayMetrics metrics = new DisplayMetrics(); in getDisplayLongSide() local 99 wm.getDefaultDisplay().getMetrics(metrics); in getDisplayLongSide() 100 return Math.max(metrics.heightPixels, metrics.widthPixels); in getDisplayLongSide()
|
/packages/apps/Settings/src/com/android/settings/deletionhelper/ |
D | AutomaticStorageManagerSwitchBarController.java | 46 MetricsFeatureProvider metrics, in AutomaticStorageManagerSwitchBarController() argument 51 mMetrics = Preconditions.checkNotNull(metrics); in AutomaticStorageManagerSwitchBarController()
|
/packages/apps/Terminal/src/com/android/terminal/ |
D | TerminalLineView.java | 40 public TerminalLineView(Context context, Terminal term, TerminalMetrics metrics) { in TerminalLineView() argument 43 mMetrics = metrics; in TerminalLineView()
|
/packages/apps/Gallery2/src/com/android/photos/views/ |
D | TiledImageRenderer.java | 166 DisplayMetrics metrics = new DisplayMetrics(); in isHighResolution() local 169 wm.getDefaultDisplay().getMetrics(metrics); in isHighResolution() 170 return metrics.heightPixels > 2048 || metrics.widthPixels > 2048; in isHighResolution()
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
D | TileImageView.java | 146 DisplayMetrics metrics = new DisplayMetrics(); in isHighResolution() local 149 wm.getDefaultDisplay().getMetrics(metrics); in isHighResolution() 150 return metrics.heightPixels > 2048 || metrics.widthPixels > 2048; in isHighResolution()
|
/packages/apps/WallpaperPicker/src/com/android/photos/views/ |
D | TiledImageRenderer.java | 166 DisplayMetrics metrics = new DisplayMetrics(); in isHighResolution() local 169 wm.getDefaultDisplay().getMetrics(metrics); in isHighResolution() 170 return metrics.heightPixels > 2048 || metrics.widthPixels > 2048; in isHighResolution()
|
/packages/apps/Calendar/tests/src/com/android/calendar/ |
D | UtilsTests.java | 134 DisplayMetrics metrics = new DisplayMetrics(); in getDisplayMetrics() local 135 metrics.density = 2.0f; in getDisplayMetrics() 136 return metrics; in getDisplayMetrics()
|