Home
last modified time | relevance | path

Searched refs:mMetrics (Results 1 – 9 of 9) sorted by relevance

/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/view/
DWindowManagerImpl.java27 private final DisplayMetrics mMetrics; field in WindowManagerImpl
31 mMetrics = metrics; in WindowManagerImpl()
34 info.logicalHeight = mMetrics.heightPixels; in WindowManagerImpl()
35 info.logicalWidth = mMetrics.widthPixels; in WindowManagerImpl()
/frameworks/base/core/java/android/app/
DActivityView.java48 DisplayMetrics mMetrics; field in ActivityView
98 mMetrics = new DisplayMetrics(); in ActivityView()
99 wm.getDefaultDisplay().getMetrics(mMetrics); in ActivityView()
118 mActivityContainer.setSurface(null, mWidth, mHeight, mMetrics.densityDpi); in onVisibilityChanged()
121 mActivityContainer.setSurface(mSurface, mWidth, mHeight, mMetrics.densityDpi); in onVisibilityChanged()
240 mActivityContainer.setSurface(mSurface, mWidth, mHeight, mMetrics.densityDpi); in attachToSurfaceWhenReady()
309 mActivityContainer.setSurface(null, mWidth, mHeight, mMetrics.densityDpi); in onSurfaceTextureDestroyed()
/frameworks/base/core/java/android/content/res/
DResources.java129 final DisplayMetrics mMetrics = new DisplayMetrics(); field in Resources
227 mMetrics.setToDefaults(); in Resources()
578 return TypedValue.complexToDimension(value.data, mMetrics); in getDimension()
614 value.data, mMetrics); in getDimensionPixelOffset()
651 value.data, mMetrics); in getDimensionPixelSize()
830 value.density = mMetrics.densityDpi; in getDrawableForDensity()
832 value.density = (value.density * mMetrics.densityDpi) / density; in getDrawableForDensity()
1751 mMetrics.setTo(metrics); in updateConfiguration()
1762 mCompatibilityInfo.applyToDisplayMetrics(mMetrics); in updateConfiguration()
1769 density = mMetrics.noncompatDensityDpi; in updateConfiguration()
[all …]
DTypedArray.java63 private final DisplayMetrics mMetrics; field in TypedArray
490 data[index+AssetManager.STYLE_DATA], mMetrics); in getDimension()
528 data[index+AssetManager.STYLE_DATA], mMetrics); in getDimensionPixelOffset()
567 data[index+AssetManager.STYLE_DATA], mMetrics); in getDimensionPixelSize()
601 data[index+AssetManager.STYLE_DATA], mMetrics); in getLayoutDimension()
636 data[index+AssetManager.STYLE_DATA], mMetrics); in getLayoutDimension()
977 mMetrics = mResources.mMetrics; in TypedArray()
/frameworks/base/tools/layoutlib/bridge/src/android/view/
DIWindowManagerImpl.java41 private final DisplayMetrics mMetrics; field in IWindowManagerImpl
48 mMetrics = metrics; in IWindowManagerImpl()
56 return mMetrics; in getMetrics()
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
DPaint_Delegate.java60 java.awt.FontMetrics mMetrics; field in Paint_Delegate.FontInfo
537 java.awt.FontMetrics javaMetrics = delegate.mFonts.get(0).mMetrics; in ascent()
554 java.awt.FontMetrics javaMetrics = delegate.mFonts.get(0).mMetrics; in descent()
582 java.awt.FontMetrics javaMetrics = delegate.mFonts.get(0).mMetrics; in getFontMetricsInt()
1190 info.mMetrics = Toolkit.getDefaultToolkit().getFontMetrics(info.mFont); in updateFontObject()
1213 java.awt.FontMetrics javaMetrics = mFonts.get(0).mMetrics; in getFontMetrics()
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
DBridgeContext.java99 private final DisplayMetrics mMetrics; field in BridgeContext
141 mMetrics = metrics; in BridgeContext()
153 mWindowManager = new WindowManagerImpl(mMetrics); in BridgeContext()
169 mMetrics, in initResources()
199 return mMetrics; in getMetrics()
/frameworks/base/core/java/android/content/pm/
DPackageParser.java187 private DisplayMetrics mMetrics; field in PackageParser
336 mMetrics = new DisplayMetrics(); in PackageParser()
337 mMetrics.setToDefaults(); in PackageParser()
354 mMetrics = metrics; in setDisplayMetrics()
862 res = new Resources(assets, mMetrics, null); in parseBaseApk()
904 res = new Resources(assets, mMetrics, null); in parseSplitApk()
/frameworks/base/services/core/java/com/android/server/pm/
DPackageManagerService.java332 final DisplayMetrics mMetrics; field in PackageManagerService
1282 mMetrics = new DisplayMetrics(); in PackageManagerService()
1316 getDefaultDisplayMetrics(context, mMetrics); in PackageManagerService()
4224 pp.setDisplayMetrics(mMetrics); in scanPackageLI()
10397 pp.setDisplayMetrics(mMetrics); in installPackageLI()