Home
last modified time | relevance | path

Searched refs:metrics (Results 1 – 25 of 35) sorted by relevance

12

/packages/apps/Settings/src/com/android/settings/
DDisplay.java68 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/
DWalkAroundWallpaper.java168 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/
DGridViewSpecial.java81 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/
DStringTexture.java38 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/
DPackageUtil.java55 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/
DGalleryUtils.java79 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/
DMtpBitmapFetch.java101 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/
DTimeBar.java97 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/
DGalaxyView.java32 DisplayMetrics metrics = new DisplayMetrics(); in surfaceChanged() local
35 .getDefaultDisplay().getMetrics(metrics); in surfaceChanged()
38 mRender.init(metrics.densityDpi, mRS, getResources(), w, h); in surfaceChanged()
DGalaxy4Wallpaper.java51 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/
DNoiseFieldWallpaper.java35 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/
DPhaseBeamWallpaper.java32 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/
DPicasaSource.java98 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/
DPlayheadView.java72 final DisplayMetrics metrics = new DisplayMetrics(); in PlayheadView() local
73 display.getMetrics(metrics); in PlayheadView()
74 mScreenWidth = metrics.widthPixels; in PlayheadView()
DTransitionView.java128 final DisplayMetrics metrics = new DisplayMetrics(); in TransitionView() local
129 display.getMetrics(metrics); in TransitionView()
130 mScreenWidth = metrics.widthPixels; in TransitionView()
DAudioTrackView.java128 final DisplayMetrics metrics = new DisplayMetrics(); in AudioTrackView() local
129 display.getMetrics(metrics); in AudioTrackView()
130 mScreenWidth = metrics.widthPixels; in AudioTrackView()
DMediaItemView.java124 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/
DTiledImageRenderer.java143 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/
DTileImageView.java147 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/
DUtilsTests.java134 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/
DUtil.java95 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/
DBrowserSettings.java185 DisplayMetrics metrics = mContext.getResources().getDisplayMetrics();
186 mFontSizeMult = metrics.scaledDensity / metrics.density;
/packages/apps/Camera/src/com/android/camera/
DUtil.java140 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/
DUtil.java141 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/
DColorValueView.java57 DisplayMetrics metrics = ctx.getResources().getDisplayMetrics(); in ColorValueView() local
58 float mDpToPix = metrics.density; in ColorValueView()

12