/packages/apps/Settings/src/com/android/settings/ |
D | Display.java | 68 DisplayMetrics metrics = getResources().getDisplayMetrics(); in onCreate() local 70 mDisplayMetrics.density = metrics.density; in onCreate() 71 mDisplayMetrics.heightPixels = metrics.heightPixels; in onCreate() 72 mDisplayMetrics.scaledDensity = metrics.scaledDensity; in onCreate() 73 mDisplayMetrics.widthPixels = metrics.widthPixels; in onCreate() 74 mDisplayMetrics.xdpi = metrics.xdpi; in onCreate() 75 mDisplayMetrics.ydpi = metrics.ydpi; in onCreate()
|
/packages/wallpapers/Basic/src/com/android/wallpaper/walkaround/ |
D | WalkAroundWallpaper.java | 168 final DisplayMetrics metrics = resources.getDisplayMetrics(); in startPreview() local 175 size.width == metrics.heightPixels && size.height == metrics.widthPixels) || in startPreview() 177 size.width == metrics.widthPixels && size.height == metrics.heightPixels)) { in startPreview() 186 if (size.width >= metrics.widthPixels && size.height >= metrics.heightPixels) { in startPreview()
|
/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/glrenderer/ |
D | StringTexture.java | 38 FontMetricsInt metrics, int width, int height) { in StringTexture() argument 42 mMetrics = metrics; in StringTexture() 74 FontMetricsInt metrics = paint.getFontMetricsInt(); in newInstance() local 76 int height = metrics.bottom - metrics.top; in newInstance() 80 return new StringTexture(text, paint, metrics, width, height); in newInstance()
|
/packages/apps/PackageInstaller/src/com/android/packageinstaller/ |
D | PackageUtil.java | 55 DisplayMetrics metrics = new DisplayMetrics(); in getApplicationInfo() local 56 metrics.setToDefaults(); in getApplicationInfo() 58 sourceFile, archiveFilePath, metrics, 0); in getApplicationInfo() 71 DisplayMetrics metrics = new DisplayMetrics(); in getPackageInfo() local 72 metrics.setToDefaults(); in getPackageInfo() 74 archiveFilePath, metrics, 0); in getPackageInfo()
|
/packages/apps/Gallery2/src/com/android/gallery3d/util/ |
D | GalleryUtils.java | 79 DisplayMetrics metrics = new DisplayMetrics(); in initialize() local 82 wm.getDefaultDisplay().getMetrics(metrics); in initialize() 83 sPixelDensity = metrics.density; in initialize() 87 initializeThumbnailSizes(metrics, r); in initialize() 90 private static void initializeThumbnailSizes(DisplayMetrics metrics, Resources r) { in initializeThumbnailSizes() argument 91 int maxPixels = Math.max(metrics.heightPixels, metrics.widthPixels); in initializeThumbnailSizes()
|
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/data/ |
D | MtpBitmapFetch.java | 101 DisplayMetrics metrics = new DisplayMetrics(); in configureForContext() local 103 wm.getDefaultDisplay().getMetrics(metrics); in configureForContext() 104 sMaxSize = Math.max(metrics.heightPixels, metrics.widthPixels); in configureForContext()
|
/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/wallpapers/Galaxy4/src/com/android/galaxy4/ |
D | GalaxyView.java | 32 DisplayMetrics metrics = new DisplayMetrics(); in surfaceChanged() local 35 .getDefaultDisplay().getMetrics(metrics); in surfaceChanged() 38 mRender.init(metrics.densityDpi, mRS, getResources(), w, h); in surfaceChanged()
|
D | Galaxy4Wallpaper.java | 51 DisplayMetrics metrics = new DisplayMetrics(); in onCreate() local 53 .getDefaultDisplay().getMetrics(metrics); in onCreate() 54 mDensityDPI = metrics.densityDpi; in onCreate()
|
/packages/wallpapers/NoiseField/src/com/android/noisefield/ |
D | NoiseFieldWallpaper.java | 35 DisplayMetrics metrics = new DisplayMetrics(); in onCreate() local 37 .getDefaultDisplay().getMetrics(metrics); in onCreate() 38 mDensityDPI = metrics.densityDpi; in onCreate()
|
/packages/wallpapers/PhaseBeam/src/com/android/phasebeam/ |
D | PhaseBeamWallpaper.java | 32 DisplayMetrics metrics = new DisplayMetrics(); in onCreate() local 34 .getDefaultDisplay().getMetrics(metrics); in onCreate() 35 mDensityDPI = metrics.densityDpi; in onCreate()
|
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/ |
D | PicasaSource.java | 98 DisplayMetrics metrics = new DisplayMetrics(); in getDisplayLongSide() local 101 wm.getDefaultDisplay().getMetrics(metrics); in getDisplayLongSide() 102 return Math.max(metrics.heightPixels, metrics.widthPixels); in getDisplayLongSide()
|
/packages/apps/VideoEditor/src/com/android/videoeditor/widgets/ |
D | PlayheadView.java | 72 final DisplayMetrics metrics = new DisplayMetrics(); in PlayheadView() local 73 display.getMetrics(metrics); in PlayheadView() 74 mScreenWidth = metrics.widthPixels; in PlayheadView()
|
D | TransitionView.java | 128 final DisplayMetrics metrics = new DisplayMetrics(); in TransitionView() local 129 display.getMetrics(metrics); in TransitionView() 130 mScreenWidth = metrics.widthPixels; in TransitionView()
|
D | AudioTrackView.java | 128 final DisplayMetrics metrics = new DisplayMetrics(); in AudioTrackView() local 129 display.getMetrics(metrics); in AudioTrackView() 130 mScreenWidth = metrics.widthPixels; in AudioTrackView()
|
D | MediaItemView.java | 124 final DisplayMetrics metrics = new DisplayMetrics(); in MediaItemView() local 125 display.getMetrics(metrics); in MediaItemView() 126 mScreenWidth = metrics.widthPixels; in MediaItemView()
|
/packages/apps/Gallery2/src/com/android/photos/views/ |
D | TiledImageRenderer.java | 143 DisplayMetrics metrics = new DisplayMetrics(); in isHighResolution() local 146 wm.getDefaultDisplay().getMetrics(metrics); in isHighResolution() 147 return metrics.heightPixels > 2048 || metrics.widthPixels > 2048; in isHighResolution()
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
D | TileImageView.java | 147 DisplayMetrics metrics = new DisplayMetrics(); in isHighResolution() local 150 wm.getDefaultDisplay().getMetrics(metrics); in isHighResolution() 151 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()
|
/packages/apps/LegacyCamera/src/com/android/camera/ |
D | Util.java | 95 DisplayMetrics metrics = new DisplayMetrics(); in initialize() local 98 wm.getDefaultDisplay().getMetrics(metrics); in initialize() 99 sPixelDensity = metrics.density; in initialize()
|
/packages/apps/Browser/src/com/android/browser/ |
D | BrowserSettings.java | 185 DisplayMetrics metrics = mContext.getResources().getDisplayMetrics(); 186 mFontSizeMult = metrics.scaledDensity / metrics.density;
|
/packages/apps/Camera/src/com/android/camera/ |
D | Util.java | 140 DisplayMetrics metrics = new DisplayMetrics(); in initialize() local 143 wm.getDefaultDisplay().getMetrics(metrics); in initialize() 144 sPixelDensity = metrics.density; in initialize()
|
/packages/apps/Gallery2/src/com/android/camera/ |
D | Util.java | 141 DisplayMetrics metrics = new DisplayMetrics(); in initialize() local 144 wm.getDefaultDisplay().getMetrics(metrics); in initialize() 145 sPixelDensity = metrics.density; in initialize()
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/colorpicker/ |
D | ColorValueView.java | 57 DisplayMetrics metrics = ctx.getResources().getDisplayMetrics(); in ColorValueView() local 58 float mDpToPix = metrics.density; in ColorValueView()
|