/frameworks/base/tests/DpiTest/src/com/google/android/test/dpi/ |
DpiTestActivity.java | 235 final DisplayMetrics metrics = getResources().getDisplayMetrics(); local 237 mBitmap.getScaledWidth(metrics), 238 mBitmap.getScaledHeight(metrics));
|
/external/chromium/base/ |
win_util.cc | 28 void GetNonClientMetrics(NONCLIENTMETRICS* metrics) { 29 DCHECK(metrics); 34 metrics->cbSize = SIZEOF_NONCLIENTMETRICS; 36 SIZEOF_NONCLIENTMETRICS, metrics,
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/ |
BridgeResources.java | 64 DisplayMetrics metrics, 70 metrics, 89 private BridgeResources(BridgeContext context, AssetManager assets, DisplayMetrics metrics, 91 super(assets, metrics, config);
|
/packages/apps/Browser/src/com/android/browser/ |
TitleBar.java | 105 DisplayMetrics metrics = resources.getDisplayMetrics(); local 107 TypedValue.COMPLEX_UNIT_DIP, 8f, metrics); 109 TypedValue.COMPLEX_UNIT_DIP, 6f, metrics); 111 TypedValue.COMPLEX_UNIT_DIP, 20f, metrics);
|
/cts/tests/tests/text/src/android/text/method/cts/ |
TouchTest.java | 135 DisplayMetrics metrics = mActivity.getResources().getDisplayMetrics(); local 136 int screenWidth = metrics.widthPixels;
|
/external/emma/core/java12/com/vladium/emma/report/ |
AbstractReportGenerator.java | 204 final IntIntMap metrics = m_settings.getMetrics (); local 208 metrics.get (t, m_metrics, t);
|
ReportProperties.java | 147 public void setMetrics (final IntIntMap metrics) 149 if ($assert.ENABLED) $assert.ASSERT (metrics != null, "null input: metrics"); 151 m_metrics = metrics; 402 final String metricList = getReportProperty (properties, type, IReportProperties.METRICS, true, IReportProperties.DEFAULT_METRICS);
|
/external/freetype/src/autofit/ |
afhints.h | 213 AF_ScriptMetrics metrics; member in struct:AF_GlyphHintsRec_ 285 AF_ScriptMetrics metrics );
|
/external/webkit/WebCore/platform/graphics/android/ |
FontAndroid.cpp | 183 SkPaint::FontMetrics metrics; local 188 SkScalar spacing = paint.getFontMetrics(&metrics);
|
/frameworks/base/core/java/android/view/ |
Surface.java | 152 // The display metrics used to provide the pseudo canvas size for applications 226 * <li> Returns the width and height of the target metrics, rather than native. 275 * Sets the display metrics used to provide canva's width/height in compatibility mode. 277 void setCompatibleDisplayMetrics(DisplayMetrics metrics, Translator translator) { 278 mCompatibleDisplayMetrics = metrics;
|
/frameworks/base/policy/src/com/android/internal/policy/impl/ |
IconUtilities.java | 69 DisplayMetrics metrics = mDisplayMetrics = resources.getDisplayMetrics(); local 70 final float density = metrics.density;
|
/external/freetype/src/sfnt/ |
sfobjs.c | 562 /* vertical metrics tables (i.e. `hhea' and `vhea' tables are */ 622 /* do not load the metrics headers and tables if this is an Apple */ 637 /* overriding metrics, tolerate a missing `hmtx' table. */ 663 /* overriding metrics, tolerate a missing `hhea' table. */ 906 FT_Size_Metrics metrics; local 923 error = sfnt->load_strike_metrics( face, i, &metrics ); 927 bsize->height = (FT_Short)( metrics.height >> 6 ); 929 ( avgwidth * metrics.x_ppem + em_size / 2 ) / em_size ); 931 bsize->x_ppem = metrics.x_ppem << 6; 932 bsize->y_ppem = metrics.y_ppem << 6 [all...] |
ttbdf.c | 180 if ( _ppem == size->metrics.y_ppem )
|
/frameworks/base/core/java/android/content/res/ |
Resources.java | 128 * @param metrics Current display metrics to consider when 133 public Resources(AssetManager assets, DisplayMetrics metrics, 135 this(assets, metrics, config, (CompatibilityInfo) null); 142 * @param metrics Current display metrics to consider when 150 public Resources(AssetManager assets, DisplayMetrics metrics, 159 updateConfiguration(config, metrics); [all...] |
/external/icu4c/samples/layout/ |
GDIFontInstance.cpp | 367 GLYPHMETRICS metrics; local 374 result = GetGlyphOutline(hdc, glyph, GGO_GLYPH_INDEX | GGO_METRICS, &metrics, 0, NULL, &identity); 380 advance.fX = metrics.gmCellIncX;
|
GnomeFontInstance.cpp | 154 advance.fX = fFace->glyph->metrics.horiAdvance >> 6;
|
/frameworks/base/core/java/android/content/pm/ |
PackageManager.java | 1886 DisplayMetrics metrics = new DisplayMetrics(); local [all...] |
/external/freetype/src/truetype/ |
ttinterp.h | 138 FT_Size_Metrics metrics; member in struct:TT_ExecContextRec_ 139 TT_Size_Metrics tt_metrics; /* size metrics */
|
ttobjs.h | 261 /* Metrics used by the TrueType size and context objects. */ 291 /* we have our own copy of metrics so that we can modify */ 293 FT_Size_Metrics metrics; member in struct:TT_SizeRec_
|
/frameworks/base/graphics/java/android/graphics/ |
Bitmap.java | 630 public int getScaledWidth(DisplayMetrics metrics) { 631 return scaleFromDensity(getWidth(), mDensity, metrics.densityDpi); 638 public int getScaledHeight(DisplayMetrics metrics) { 639 return scaleFromDensity(getHeight(), mDensity, metrics.densityDpi); [all...] |
/frameworks/base/test-runner/src/android/test/mock/ |
MockResources.java | 46 public void updateConfiguration(Configuration config, DisplayMetrics metrics) {
|
/external/emma/ant/ant14/com/vladium/emma/ |
emmajavaTask.java | 513 public final void setMetrics (final String metrics) 515 m_reportCfg.setMetrics (metrics);
|
/external/emma/lib/ |
emma_ant.jar | |
/external/freetype/include/freetype/internal/ |
sfnt.h | 81 /* the common SFNT tables (head, OS/2, maxp, metrics, etc.) in the */ 290 /* Get the big metrics for a given embedded bitmap. */ 298 /* big_metrics :: A big SBit metrics structure for the glyph. */ 307 /* If the image format uses variable metrics, the stream cursor is */ 308 /* positioned just after the metrics header in the `EBDT' table on */ 314 TT_SBit_Metrics metrics ); 324 /* returns its metrics. */ 347 /* A big sbit metrics structure for the glyph image. */ 480 /* Load the metrics of a given strike. */ 488 /* metrics :: the metrics of the strike. * [all...] |
/frameworks/base/graphics/java/android/graphics/drawable/ |
NinePatchDrawable.java | 69 * based on the display metrics of the resources. 89 * based on the display metrics of the resources. 129 * @param metrics The DisplayMetrics indicating the density scale for this drawable. 134 public void setTargetDensity(DisplayMetrics metrics) { 135 mTargetDensity = metrics.densityDpi;
|