Searched refs:metrics (Results 51 - 75 of 444) sorted by relevance

1234567891011>>

/external/freetype/src/autofit/
H A Daflatin.h34 #define AF_LATIN_CONSTANT( metrics, c ) \
35 ( ( (c) * (FT_Long)( (AF_LatinMetrics)(metrics) )->units_per_em ) / 2048 )
99 /* ignored for horizontal metrics */
119 af_latin_metrics_init( AF_LatinMetrics metrics,
123 af_latin_metrics_scale( AF_LatinMetrics metrics,
127 af_latin_metrics_init_widths( AF_LatinMetrics metrics,
131 af_latin_metrics_check_digits( AF_LatinMetrics metrics,
H A Dafglobal.c397 if ( globals->metrics[nn] )
406 writing_system_class->style_metrics_done( globals->metrics[nn] );
408 FT_FREE( globals->metrics[nn] );
430 AF_StyleMetrics metrics = NULL; local
455 metrics = globals->metrics[style];
456 if ( !metrics )
458 /* create the global metrics object if necessary */
462 if ( FT_ALLOC( metrics, writing_system_class->style_metrics_size ) )
465 metrics
[all...]
/external/ImageMagick/MagickWand/
H A Dmagick-wand.c492 % following font metrics:
537 metrics;
560 (void) ResetMagickMemory(&metrics,0,sizeof(metrics));
561 status=GetTypeMetrics(wand->images,draw_info,&metrics,wand->exception);
568 font_metrics[0]=metrics.pixels_per_em.x;
569 font_metrics[1]=metrics.pixels_per_em.y;
570 font_metrics[2]=metrics.ascent;
571 font_metrics[3]=metrics.descent;
572 font_metrics[4]=metrics
525 metrics; local
632 metrics; local
[all...]
/external/autotest/scheduler/shard/
H A Dshard_client.py32 from chromite.lib import metrics namespace
35 metrics = server_utils.metrics_mock variable
138 metrics.Counter(
143 @metrics.SecondsTimerDecorator(
160 metrics.Gauge('chromeos/autotest/shard_client/hosts_received'
162 metrics.Gauge('chromeos/autotest/shard_client/jobs_received'
164 metrics.Gauge('chromeos/autotest/shard_client/suite_keyvals_received'
315 metrics.Gauge(_METRICS_PREFIX + 'known_job_ids_count').set(
317 metrics.Gauge(_METRICS_PREFIX + 'jobs_upload_count').set(
319 metrics
[all...]
/external/androidplot/AndroidPlot-Core/src/main/java/com/androidplot/pie/
H A DPieWidget.java35 public PieWidget(LayoutManager layoutManager, PieChart pieChart, SizeMetrics metrics) { argument
36 super(layoutManager, metrics);
/external/python/cpython2/Lib/lib-tk/test/test_tkinter/
H A Dtest_font.py69 metrics = self.font.metrics()
70 self.assertGreaterEqual(set(metrics),
72 for key in metrics:
73 self.assertEqual(self.font.metrics(key), metrics[key])
74 self.assertIsInstance(metrics[key], int)
75 self.assertIsInstance(self.font.metrics(key), int)
/external/python/cpython3/Lib/tkinter/test/test_tkinter/
H A Dtest_font.py68 metrics = self.font.metrics()
69 self.assertGreaterEqual(set(metrics),
71 for key in metrics:
72 self.assertEqual(self.font.metrics(key), metrics[key])
73 self.assertIsInstance(metrics[key], int)
74 self.assertIsInstance(self.font.metrics(key), int)
/external/skia/src/core/
H A DSkTypeface_remote.cpp34 void SkScalerContextProxy::generateFontMetrics(SkPaint::FontMetrics* metrics) { argument
35 fRemote->generateFontMetrics(*this->typefaceProxy(), this->getRec(), metrics);
/external/skqp/src/core/
H A DSkTypeface_remote.cpp34 void SkScalerContextProxy::generateFontMetrics(SkPaint::FontMetrics* metrics) { argument
35 fRemote->generateFontMetrics(*this->typefaceProxy(), this->getRec(), metrics);
/external/tensorflow/tensorflow/contrib/learn/python/learn/estimators/
H A Destimator_test_utils.py47 def assert_in_range(min_value, max_value, key, metrics):
48 actual_value = metrics[key]
/external/freetype/src/pfr/
H A Dpfrobjs.c367 FT_Glyph_Metrics* metrics = &pfrslot->metrics; local
381 if ( size && pfrsize->metrics.y_ppem < 24 )
385 metrics->horiAdvance = 0;
386 metrics->vertAdvance = 0;
398 metrics->vertAdvance = advance;
400 metrics->horiAdvance = advance;
402 pfrslot->linearHoriAdvance = metrics->horiAdvance;
403 pfrslot->linearVertAdvance = metrics->vertAdvance;
405 /* make up vertical metrics(
[all...]
/external/autotest/client/site_tests/platform_MetricsUploader/src/
H A DMakefile10 PROTO_PATH = $(SYSROOT)/usr/include/metrics/proto
/external/tensorflow/tensorflow/python/keras/_impl/keras/
H A Dmetrics_test.py15 """Tests for Keras metrics functions."""
33 for metric in [keras.metrics.binary_accuracy,
34 keras.metrics.categorical_accuracy]:
40 metric = keras.metrics.sparse_categorical_accuracy
51 keras.metrics.sparse_top_k_categorical_accuracy(y_true, y_pred, k=3))
54 keras.metrics.sparse_top_k_categorical_accuracy(y_true, y_pred, k=2))
57 keras.metrics.sparse_top_k_categorical_accuracy(y_true, y_pred, k=1))
66 keras.metrics.top_k_categorical_accuracy(y_true, y_pred, k=3))
69 keras.metrics.top_k_categorical_accuracy(y_true, y_pred, k=2))
72 keras.metrics
[all...]
/external/autotest/site_utils/
H A Dmetadata_reporter.py21 from chromite.lib import metrics namespace
23 metrics = utils.metrics_mock variable
48 """Get the fields information to be uploaded to metrics."""
104 metrics.Gauge(
107 metrics.Counter(
111 metrics.Gauge(_METADATA_METRICS_PREFIX + 'queue_size').set(
/external/autotest/site_utils/stats/
H A Dapache_access_log_metrics.py7 """Script to upload metrics from apache access logs to Monarch."""
19 from chromite.lib import metrics namespace
104 """Emits metrics for each line in the access log.
123 metrics.SecondsDistribution(ACCESS_TIME_METRIC).add(
127 metrics.CumulativeDistribution(ACCESS_BYTES_METRIC).add(
141 metrics.SecondsDistribution(RPC_ACCESS_TIME_METRIC).add(
145 metrics.CumulativeDistribution(RPC_ACCESS_BYTES_METRIC).add(
178 description='Parses apache logs and emits metrics to Monarch')
180 p.add_argument('--debug-metrics-file',
181 help='Output metrics t
[all...]
/external/skia/tools/shape/
H A DSkShaper_primitive.cpp49 SkPaint::FontMetrics metrics; local
50 paint.getFontMetrics(&metrics);
51 point.fY -= metrics.fAscent;
73 point.fY += metrics.fDescent + metrics.fLeading;
/external/skqp/tools/shape/
H A DSkShaper_primitive.cpp49 SkPaint::FontMetrics metrics; local
50 paint.getFontMetrics(&metrics);
51 point.fY -= metrics.fAscent;
73 point.fY += metrics.fDescent + metrics.fLeading;
/external/tensorflow/tensorflow/contrib/layers/python/layers/
H A Dtarget_column.py25 from tensorflow.contrib.metrics.python.ops import metric_ops
167 def get_eval_ops(self, features, logits, labels, metrics=None):
276 def get_eval_ops(self, features, logits, labels, metrics=None):
279 if metrics:
282 _run_metrics(predictions, labels, metrics,
315 def get_eval_ops(self, features, logits, labels, metrics=None):
319 # Adds default metrics.
320 if metrics is None:
323 metrics = {("accuracy", "classes"): metric_ops.streaming_accuracy}
334 for name, metric_op in six.iteritems(metrics)
[all...]
/external/tensorflow/tensorflow/python/kernel_tests/
H A Dmetrics_test.py15 """Tests for metrics."""
35 from tensorflow.python.ops import metrics namespace
179 metrics.mean(array_ops.ones([4, 3]))
184 mean, _ = metrics.mean(
190 _, update_op = metrics.mean(
204 mean, update_op = metrics.mean(values)
221 mean, update_op = metrics.mean(values)
235 metrics.mean(values),
236 metrics.mean(values, weights=1.0),
237 metrics
[all...]
/external/androidplot/AndroidPlot-Core/src/main/java/com/androidplot/util/
H A DPixelUtils.java33 private static DisplayMetrics metrics; field in class:PixelUtils
48 metrics = ctx.getResources().getDisplayMetrics();
103 return TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, dp, metrics);
114 return TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_SP, sp, metrics);
124 return metrics.heightPixels * fraction;
134 return metrics.widthPixels * fraction;
161 /*public static int stringToDimensionPixelSize(String dimension, DisplayMetrics metrics) {
162 // -- Mimics TypedValue.complexToDimensionPixelSize(int data, DisplayMetrics metrics).
165 final float f = TypedValue.applyDimension(internalDimension.unit, value, metrics);
174 // -- Mimics TypedValue.complexToDimension(int data, DisplayMetrics metrics)
[all...]
/external/webrtc/webrtc/modules/audio_processing/aec/
H A Decho_cancellation.c445 int WebRtcAec_GetMetrics(void* handle, AecMetrics* metrics) { argument
457 if (metrics == NULL) {
467 metrics->erl.instant = (int)erl.instant;
472 metrics->erl.average = (int)dtmp;
474 metrics->erl.average = kOffsetLevel;
477 metrics->erl.max = (int)erl.max;
480 metrics->erl.min = (int)erl.min;
482 metrics->erl.min = kOffsetLevel;
486 metrics->erle.instant = (int)erle.instant;
491 metrics
[all...]
/external/webrtc/webrtc/modules/audio_processing/
H A Decho_cancellation_impl.cc291 // TODO(ajm): we currently just use the metrics from the first AEC. Think more
293 int EchoCancellationImpl::GetMetrics(Metrics* metrics) { argument
295 if (metrics == NULL) {
305 memset(metrics, 0, sizeof(Metrics));
313 metrics->residual_echo_return_loss.instant = my_metrics.rerl.instant;
314 metrics->residual_echo_return_loss.average = my_metrics.rerl.average;
315 metrics->residual_echo_return_loss.maximum = my_metrics.rerl.max;
316 metrics->residual_echo_return_loss.minimum = my_metrics.rerl.min;
318 metrics->echo_return_loss.instant = my_metrics.erl.instant;
319 metrics
[all...]
/external/harfbuzz_ng/src/
H A Dhb-ft.cc245 /* Note: FreeType's vertical metrics grows downward while other FreeType coordinates
264 /* Note: FreeType's vertical metrics grows downward while other FreeType coordinates
266 *x = ft_face->glyph->metrics.horiBearingX - ft_face->glyph->metrics.vertBearingX;
267 *y = ft_face->glyph->metrics.horiBearingY - (-ft_face->glyph->metrics.vertBearingY);
307 extents->x_bearing = ft_face->glyph->metrics.horiBearingX;
308 extents->y_bearing = ft_face->glyph->metrics.horiBearingY;
309 extents->width = ft_face->glyph->metrics.width;
310 extents->height = -ft_face->glyph->metrics
401 hb_ft_get_font_h_extents(hb_font_t *font HB_UNUSED, void *font_data, hb_font_extents_t *metrics, void *user_data HB_UNUSED) argument
[all...]
/external/skia/tools/fonts/
H A Dcreate_test_font.cpp300 SkPaint::FontMetrics metrics; local
301 paint.getFontMetrics(&metrics);
304 metricsStr.printf("0x%08x, ", metrics.fFlags);
305 output_scalar(metrics.fTop, emSize, &metricsStr);
306 output_scalar(metrics.fAscent, emSize, &metricsStr);
307 output_scalar(metrics.fDescent, emSize, &metricsStr);
308 output_scalar(metrics.fBottom, emSize, &metricsStr);
309 output_scalar(metrics.fLeading, emSize, &metricsStr);
310 output_scalar(metrics.fAvgCharWidth, emSize, &metricsStr);
311 output_scalar(metrics
[all...]
/external/skqp/tools/
H A Dcreate_test_font.cpp299 SkPaint::FontMetrics metrics; local
300 paint.getFontMetrics(&metrics);
303 metricsStr.printf("0x%08x, ", metrics.fFlags);
304 output_scalar(metrics.fTop, emSize, &metricsStr);
305 output_scalar(metrics.fAscent, emSize, &metricsStr);
306 output_scalar(metrics.fDescent, emSize, &metricsStr);
307 output_scalar(metrics.fBottom, emSize, &metricsStr);
308 output_scalar(metrics.fLeading, emSize, &metricsStr);
309 output_scalar(metrics.fAvgCharWidth, emSize, &metricsStr);
310 output_scalar(metrics
[all...]

Completed in 753 milliseconds

1234567891011>>