Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/content/res/
DResources.java116 /*package*/ final DisplayMetrics mMetrics = new DisplayMetrics(); field in Resources
203 mMetrics.setToDefaults(); in Resources()
541 return TypedValue.complexToDimension(value.data, mMetrics); in getDimension()
574 value.data, mMetrics); in getDimensionPixelOffset()
608 value.data, mMetrics); in getDimensionPixelSize()
1427 mMetrics.setTo(metrics); in updateConfiguration()
1439 mCompatibilityInfo.applyToDisplayMetrics(mMetrics); in updateConfiguration()
1456 mMetrics.scaledDensity = mMetrics.density * mConfiguration.fontScale; in updateConfiguration()
1466 if (mMetrics.widthPixels >= mMetrics.heightPixels) { in updateConfiguration()
1467 width = mMetrics.widthPixels; in updateConfiguration()
[all …]
DTypedArray.java395 data[index+AssetManager.STYLE_DATA], mResources.mMetrics); in getDimension()
427 data[index+AssetManager.STYLE_DATA], mResources.mMetrics); in getDimensionPixelOffset()
460 data[index+AssetManager.STYLE_DATA], mResources.mMetrics); in getDimensionPixelSize()
488 data[index+AssetManager.STYLE_DATA], mResources.mMetrics); in getLayoutDimension()
517 data[index+AssetManager.STYLE_DATA], mResources.mMetrics); in getLayoutDimension()
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
DPaint_Delegate.java60 java.awt.FontMetrics mMetrics; field in Paint_Delegate.FontInfo
504 java.awt.FontMetrics javaMetrics = delegate.mFonts.get(0).mMetrics; in ascent()
521 java.awt.FontMetrics javaMetrics = delegate.mFonts.get(0).mMetrics; in descent()
549 java.awt.FontMetrics javaMetrics = delegate.mFonts.get(0).mMetrics; in getFontMetricsInt()
934 float adv = info.mMetrics.charWidth(c); in native_getTextWidths()
990 float adv = info.mMetrics.charWidth(c); in native_getTextRunAdvances()
1171 info.mMetrics = Toolkit.getDefaultToolkit().getFontMetrics(info.mFont); in updateFontObject()
1195 return total + mainFont.mMetrics.charsWidth(text, i, lastIndex - i); in measureText()
1197 total += mainFont.mMetrics.charsWidth(text, i, upTo - i); in measureText()
1217 total += fontInfo.mMetrics.charsWidth(text, i, charCount); in measureText()
[all …]
DCanvas_Delegate.java1009 x += mainFont.mMetrics.charsWidth(text, i, upTo - i); in native_drawText()
1037 x += fontInfo.mMetrics.charsWidth(text, i, charCount); in native_drawText()
1056 x += mainFont.mMetrics.charsWidth(text, i, charCount); in native_drawText()
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
DBridgeWindowManager.java53 private final DisplayMetrics mMetrics; field in BridgeWindowManager
58 mMetrics = metrics; in BridgeWindowManager()
65 return mMetrics; in getMetrics()
DBridgeContext.java94 private final DisplayMetrics mMetrics; field in BridgeContext
134 mMetrics = metrics; in BridgeContext()
158 mMetrics, in initResources()
188 return mMetrics; in getMetrics()
/frameworks/base/services/java/com/android/server/pm/
DPackageManagerService.java233 final DisplayMetrics mMetrics; field in PackageManagerService
872 mMetrics = new DisplayMetrics(); in PackageManagerService()
910 d.getMetrics(mMetrics); in PackageManagerService()
2827 scanPath, mMetrics, parseFlags); in scanPackageLI()
6594 null, mMetrics, parseFlags); in installPackageLI()