/external/chromium/base/win/ |
win_util_unittest.cc | 50 NONCLIENTMETRICS metrics = {0}; local 51 GetNonClientMetrics(&metrics); 52 EXPECT_TRUE(metrics.cbSize > 0); 53 EXPECT_TRUE(metrics.iScrollWidth > 0); 54 EXPECT_TRUE(metrics.iScrollHeight > 0);
|
/external/freetype/src/autofit/ |
afindic.c | 36 af_indic_metrics_init( AF_CJKMetrics metrics, 43 metrics->units_per_em = face->units_per_EM; 49 af_cjk_metrics_init_widths( metrics, face, 0x7530 ); 52 af_cjk_metrics_init_blues( metrics, face, af_cjk_blue_chars ); 54 af_cjk_metrics_check_digits( metrics, face ); 64 af_indic_metrics_scale( AF_CJKMetrics metrics, 68 af_cjk_metrics_scale( metrics, scaler ); 74 AF_CJKMetrics metrics ) 77 return af_cjk_hints_init( hints, metrics ); 84 AF_CJKMetrics metrics ) [all...] |
afdummy.c | 27 AF_ScriptMetrics metrics ) 30 metrics );
|
afcjk.h | 33 /* CJK (global) metrics management */ 86 /* used for horizontal metrics too for CJK */ 107 af_cjk_metrics_init( AF_CJKMetrics metrics, 111 af_cjk_metrics_scale( AF_CJKMetrics metrics, 116 AF_CJKMetrics metrics ); 121 AF_CJKMetrics metrics ); 125 af_cjk_metrics_check_digits( AF_CJKMetrics metrics, 129 af_cjk_metrics_init_widths( AF_CJKMetrics metrics,
|
afloader.c | 103 AF_ScriptMetrics metrics = loader->metrics; local 127 /* set linear metrics */ 128 slot->linearHoriAdvance = slot->metrics.horiAdvance; 129 slot->linearVertAdvance = slot->metrics.vertAdvance; 167 loader->pp2.x = FT_MulFix( slot->metrics.horiAdvance, 177 if ( metrics->clazz->script_hints_apply ) 178 metrics->clazz->script_hints_apply( hints, 180 metrics ); 182 /* we now need to adjust the metrics according to the change in * 507 AF_ScriptMetrics metrics; local [all...] |
aflatin.h | 34 #define AF_LATIN_CONSTANT( metrics, c ) \ 35 ( ( (c) * (FT_Long)( (AF_LatinMetrics)(metrics) )->units_per_em ) / 2048 ) 54 /* Latin (global) metrics management */ 107 /* ignored for horizontal metrics */ 127 af_latin_metrics_init( AF_LatinMetrics metrics, 131 af_latin_metrics_scale( AF_LatinMetrics metrics, 135 af_latin_metrics_init_widths( AF_LatinMetrics metrics, 140 af_latin_metrics_check_digits( AF_LatinMetrics metrics,
|
afglobal.c | 71 AF_ScriptMetrics metrics[AF_SCRIPT_MAX]; member in struct:AF_FaceGlobalsRec_ 221 if ( globals->metrics[nn] ) 226 FT_ASSERT( globals->metrics[nn]->clazz == clazz ); 229 clazz->script_metrics_done( globals->metrics[nn] ); 231 FT_FREE( globals->metrics[nn] ); 250 AF_ScriptMetrics metrics = NULL; local 273 metrics = globals->metrics[clazz->script]; 274 if ( metrics == NULL ) 276 /* create the global metrics object when needed * [all...] |
/cts/tests/tests/dpi/src/android/dpi/cts/ |
ConfigurationTest.java | 37 DisplayMetrics metrics = new DisplayMetrics(); local 38 display.getMetrics(metrics); 40 double xInches = (double) metrics.widthPixels / metrics.xdpi; 41 double yInches = (double) metrics.heightPixels / metrics.ydpi; 46 double density = 160.0d * metrics.density; 49 int max = Math.max(metrics.widthPixels, metrics.heightPixels); 50 int min = Math.min(metrics.widthPixels, metrics.heightPixels) [all...] |
ConfigurationScreenLayoutTest.java | 98 DisplayMetrics metrics = new DisplayMetrics(); local 99 display.getMetrics(metrics); 101 int max = Math.max(metrics.widthPixels, metrics.heightPixels); 102 int min = Math.min(metrics.widthPixels, metrics.heightPixels); 103 int longSize = (int) (max / metrics.density); 104 int shortSize = (int) (min / metrics.density);
|
/cts/tests/tests/util/src/android/util/cts/ |
DisplayMetricsTest.java | 72 DisplayMetrics metrics = new DisplayMetrics(); local 73 metrics.setTo(outMetrics); 74 assertEquals(display.getHeight(), metrics.heightPixels); 75 assertEquals(display.getWidth(), metrics.widthPixels); 77 assertTrue((0.1 < metrics.density) && (metrics.density < 3)); 78 assertTrue((0.1 < metrics.scaledDensity) && (metrics.scaledDensity < 3)); 79 assertTrue(0 < metrics.xdpi); 80 assertTrue(0 < metrics.ydpi) [all...] |
/cts/tests/tests/holo/src/android/holo/cts/ |
DisplayInfoActivity.java | 37 DisplayMetrics metrics = new DisplayMetrics(); local 38 display.getMetrics(metrics); 41 text.setText(getString(R.string.display_info_text, metrics.densityDpi, 42 getScreenDensityBucket(metrics))); 45 private String getScreenDensityBucket(DisplayMetrics metrics) { 46 switch (metrics.densityDpi) { 63 return "" + metrics.densityDpi;
|
/external/freetype/src/base/ |
ftsynth.c | 98 face->size->metrics.y_scale ) / 24; 146 slot->metrics.width += xstr; 147 slot->metrics.height += ystr; 148 slot->metrics.horiBearingY += ystr; 149 slot->metrics.horiAdvance += xstr; 150 slot->metrics.vertBearingX -= xstr / 2; 151 slot->metrics.vertBearingY += ystr; 152 slot->metrics.vertAdvance += ystr;
|
/frameworks/base/core/java/android/text/ |
BoringLayout.java | 43 BoringLayout.Metrics metrics, boolean includepad) { 45 spacingmult, spacingadd, metrics, 53 BoringLayout.Metrics metrics, boolean includepad, 56 spacingmult, spacingadd, metrics, 68 BoringLayout.Metrics metrics, 78 metrics, includepad, true); 90 BoringLayout.Metrics metrics 115 metrics, includepad, trust); local 166 metrics, includepad, trust); local [all...] |
/external/harfbuzz/contrib/ |
harfbuzz-freetype.c | 96 HB_GlyphMetrics *metrics) { 101 metrics->x = metrics->y = metrics->width = metrics->height = 0; 102 metrics->xOffset = metrics->yOffset = 0; 106 const FT_Glyph_Metrics *ftmetrics = &face->glyph->metrics; 107 metrics->width = ftmetrics->width; 108 metrics->height = ftmetrics->height [all...] |
/external/webkit/Source/WebCore/platform/graphics/chromium/ |
SimpleFontDataLinux.cpp | 65 SkPaint::FontMetrics metrics; local 68 paint.getFontMetrics(&metrics); 90 // metrics *exactly*. 95 SkScalar height = -metrics.fAscent + metrics.fDescent + metrics.fLeading; 96 ascent = SkScalarRound(-metrics.fAscent); 104 if (metrics.fXHeight) 105 xHeight = metrics.fXHeight; 111 float lineGap = SkScalarToFloat(metrics.fLeading) [all...] |
/external/webkit/Source/WebCore/platform/graphics/win/ |
FontPlatformDataWin.cpp | 63 OUTLINETEXTMETRICW* metrics = (OUTLINETEXTMETRICW*)malloc(bufferSize); local 65 GetOutlineTextMetricsW(hdc, bufferSize, metrics); 66 WCHAR* faceName = (WCHAR*)((uintptr_t)metrics + (uintptr_t)metrics->otmpFaceName); 70 free(metrics);
|
/external/freetype/src/sfnt/ |
ttsbit.h | 46 FT_Size_Metrics* metrics ); 60 TT_SBit_Metrics metrics ); 71 TT_SBit_MetricsRec *metrics );
|
ttsbit.c | 230 /* Loads the metrics for `EBLC' index tables format 2 and 5. */ 250 return FT_STREAM_READ_FIELDS( sbit_metrics_fields, &range->metrics ); 345 case 1: /* variable metrics with 4-byte offsets */ 346 case 3: /* variable metrics with 2-byte offsets */ 378 case 2: /* all glyphs have identical metrics */ 659 FT_Size_Metrics* metrics ) 669 metrics->x_ppem = strike->x_ppem; 670 metrics->y_ppem = strike->y_ppem; 672 metrics->ascender = strike->hori.ascender << 6; 673 metrics->descender = strike->hori.descender << 6 [all...] |
/external/webkit/Source/WebCore/platform/graphics/ |
GlyphMetricsMap.h | 58 void setMetricsForGlyph(Glyph glyph, const T& metrics) 60 locatePage(glyph / GlyphMetricsPage::size)->setMetricsForGlyph(glyph, metrics); 69 void setMetricsForGlyph(Glyph glyph, const T& metrics) 71 setMetricsForIndex(glyph % size, metrics); 73 void setMetricsForIndex(unsigned index, const T& metrics) 75 m_metrics[index] = metrics;
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
StringTexture.java | 37 FontMetricsInt metrics, int width, int height) { 41 mMetrics = metrics; 71 FontMetricsInt metrics = paint.getFontMetricsInt(); local 73 int height = metrics.bottom - metrics.top; 77 return new StringTexture(text, paint, metrics, width, height);
|
/external/webkit/Source/WebCore/rendering/svg/ |
SVGTextLayoutEngineBaseline.cpp | 185 float SVGTextLayoutEngineBaseline::calculateGlyphAdvanceAndOrientation(bool isVerticalText, SVGTextMetrics& metrics, float angle, float& xOrientationShift, float& yOrientationShift) const 192 // of 180 degrees, then the current text position is incremented according to the vertical metrics of the glyph. 195 // 180 degrees, then the current text position is incremented according to the horizontal metrics of the glyph. 203 xOrientationShift = (ascentMinusDescent - metrics.width()) / 2; 206 xOrientationShift = (ascentMinusDescent + metrics.width()) / 2; 208 yOrientationShift = metrics.width(); 214 return metrics.width(); 216 return metrics.height(); 221 yOrientationShift = -metrics.width(); 223 xOrientationShift = metrics.width() [all...] |
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
RenderAction.java | 101 // setup the display Metrics. 102 DisplayMetrics metrics = new DisplayMetrics(); local 103 metrics.densityDpi = mParams.getDensity().getDpiValue(); 105 metrics.density = metrics.noncompatDensity = 106 metrics.densityDpi / (float) DisplayMetrics.DENSITY_DEFAULT; 108 metrics.scaledDensity = metrics.noncompatScaledDensity = metrics.density; 110 metrics.widthPixels = metrics.noncompatWidthPixels = mParams.getScreenWidth() [all...] |
/frameworks/base/core/java/android/util/ |
TypedValue.java | 221 * @param metrics Current display metrics to use in the conversion -- 225 * metrics depending on its unit. 227 public static float complexToDimension(int data, DisplayMetrics metrics) 232 metrics); 245 * @param metrics Current display metrics to use in the conversion -- 252 DisplayMetrics metrics) 257 metrics); 272 * @param metrics Current display metrics to use in the conversion -- [all...] |
/external/chromium/net/socket_stream/ |
socket_stream_metrics_unittest.cc | 6 #include "base/metrics/histogram.h" 69 SocketStreamMetrics metrics(GURL("ws://www.example.com/")); 71 metrics.OnStartConnection(); 73 metrics.OnTunnelProxy(); 75 metrics.OnSOCKSProxy(); 77 metrics.OnSSLConnection(); 124 SocketStreamMetrics metrics(GURL("ws://www.example.com/")); 125 metrics.OnWaitConnection(); 126 metrics.OnStartConnection(); 127 metrics.OnConnected() [all...] |
/external/webrtc/src/modules/audio_processing/main/source/ |
echo_cancellation_impl.cc | 237 // TODO(ajm): we currently just use the metrics from the first AEC. Think more 239 int EchoCancellationImpl::GetMetrics(Metrics* metrics) { 241 if (metrics == NULL) { 251 memset(metrics, 0, sizeof(Metrics)); 259 metrics->residual_echo_return_loss.instant = my_metrics.rerl.instant; 260 metrics->residual_echo_return_loss.average = my_metrics.rerl.average; 261 metrics->residual_echo_return_loss.maximum = my_metrics.rerl.max; 262 metrics->residual_echo_return_loss.minimum = my_metrics.rerl.min [all...] |