Home
last modified time | relevance | path

Searched refs:metric (Results 1 – 15 of 15) sorted by relevance

/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/performance/
DCameraTestInstrumentation.java43 public void onResultMetric(Metric metric); in onResultMetric() argument
84 Metric metric = report.getSummary(); in sendStatus() local
85 if (metric == null) { in sendStatus()
89 String message = metric.getMessage(); in sendStatus()
90 double[] values = metric.getValues(); in sendStatus()
91 String source = metric.getSource(); in sendStatus()
99 mMetricListener.onResultMetric(metric); in sendStatus()
DCameraPerformanceActivity.java84 public void onResultMetric(Metric metric) { in onResultMetric() argument
88 mResults.add(metric); in onResultMetric()
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/voiceinteraction/
DHotwordDetectionServiceInitResultReportedStatsTest.java111 StatsLog.EventMetricData metric = filteredData.get(0); in testLogHotwordDetectionServiceInitResultReportedDspInitSuccess() local
113 metric.getAtom().getHotwordDetectionServiceInitResultReported().getDetectorType(); in testLogHotwordDetectionServiceInitResultReportedDspInitSuccess()
116 Result result = metric.getAtom().getHotwordDetectionServiceInitResultReported().getResult(); in testLogHotwordDetectionServiceInitResultReportedDspInitSuccess()
138 StatsLog.EventMetricData metric = filteredData.get(0); in testLogHotwordDetectionServiceInitResultReportedSoftwareInitSuccess() local
140 metric.getAtom().getHotwordDetectionServiceInitResultReported().getDetectorType(); in testLogHotwordDetectionServiceInitResultReportedSoftwareInitSuccess()
143 Result result = metric.getAtom().getHotwordDetectionServiceInitResultReported().getResult(); in testLogHotwordDetectionServiceInitResultReportedSoftwareInitSuccess()
164 StatsLog.EventMetricData metric = filteredData.get(0); in testLogHotwordDetectionServiceInitResultReportedDspInitError() local
166 metric.getAtom().getHotwordDetectionServiceInitResultReported().getDetectorType(); in testLogHotwordDetectionServiceInitResultReportedDspInitError()
169 Result result = metric.getAtom().getHotwordDetectionServiceInitResultReported().getResult(); in testLogHotwordDetectionServiceInitResultReportedDspInitError()
191 StatsLog.EventMetricData metric = filteredData.get(0); in testLogHotwordDetectionServiceInitResultReportedSoftwareInitError() local
[all …]
DHotwordDetectionServiceRestartedStatsTests.java109 StatsLog.EventMetricData metric = filteredData.get(0); in testLogHotwordDetectionServiceRestartedDspScheduleRestartService() local
111 metric.getAtom().getHotwordDetectionServiceRestarted().getDetectorType(); in testLogHotwordDetectionServiceRestartedDspScheduleRestartService()
115 metric.getAtom().getHotwordDetectionServiceRestarted().getReason(); in testLogHotwordDetectionServiceRestartedDspScheduleRestartService()
137 StatsLog.EventMetricData metric = filteredData.get(0); in testLogHotwordDetectionServiceRestartedSoftwareScheduleRestartService() local
139 metric.getAtom().getHotwordDetectionServiceRestarted().getDetectorType(); in testLogHotwordDetectionServiceRestartedSoftwareScheduleRestartService()
143 metric.getAtom().getHotwordDetectionServiceRestarted().getReason(); in testLogHotwordDetectionServiceRestartedSoftwareScheduleRestartService()
150 for (StatsLog.EventMetricData metric: metricData) { in filterTestAppMetrics()
151 if (metric.getAtom().getHotwordDetectionServiceRestarted().getUid() == appId) { in filterTestAppMetrics()
152 data.add(metric); in filterTestAppMetrics()
DHotwordDetectorCreateRequestedStatsTests.java173 private void assertHotwordDetectorCreateRequested(StatsLog.EventMetricData metric, in assertHotwordDetectorCreateRequested() argument
176 metric.getAtom().getHotwordDetectorCreateRequested().getDetectorType(); in assertHotwordDetectorCreateRequested()
178 metric.getAtom().getHotwordDetectorCreateRequested().getIsCreatedDone(); in assertHotwordDetectorCreateRequested()
179 int uid = metric.getAtom().getHotwordDetectorCreateRequested().getUid(); in assertHotwordDetectorCreateRequested()
189 for (StatsLog.EventMetricData metric: metricData) { in filterTestAppMetrics()
190 if (metric.getAtom().getHotwordDetectorCreateRequested().getUid() == appId) { in filterTestAppMetrics()
191 data.add(metric); in filterTestAppMetrics()
DHotwordAudioEgressEventReportedStatsTest.java313 private void assertHotwordAudioEgressEventReported(StatsLog.EventMetricData metric, in assertHotwordAudioEgressEventReported() argument
316 metric.getAtom().getHotwordAudioEgressEventReported().getDetectorType(); in assertHotwordAudioEgressEventReported()
319 Event event = metric.getAtom().getHotwordAudioEgressEventReported().getEvent(); in assertHotwordAudioEgressEventReported()
326 for (StatsLog.EventMetricData metric: metricData) { in filterTestAppMetrics()
327 if (metric.getAtom().getHotwordAudioEgressEventReported().getUid() == appId) { in filterTestAppMetrics()
328 data.add(metric); in filterTestAppMetrics()
DHotwordDetectorKeyphraseTriggeredStatsTest.java404 private void assertHotwordDetectorKeyphraseTriggered(StatsLog.EventMetricData metric, in assertHotwordDetectorKeyphraseTriggered() argument
407 metric.getAtom().getHotwordDetectorKeyphraseTriggered().getDetectorType(); in assertHotwordDetectorKeyphraseTriggered()
410 Result result = metric.getAtom().getHotwordDetectorKeyphraseTriggered().getResult(); in assertHotwordDetectorKeyphraseTriggered()
417 for (StatsLog.EventMetricData metric: metricData) { in filterTestAppMetrics()
418 if (metric.getAtom().getHotwordDetectorKeyphraseTriggered().getUid() == appId) { in filterTestAppMetrics()
419 data.add(metric); in filterTestAppMetrics()
DHotwordDetectorEventsStatsTest.java384 for (StatsLog.EventMetricData metric: metricData) { in filterTestAppMetrics()
385 if (metric.getAtom().getHotwordDetectorEvents().getUid() == appId) { in filterTestAppMetrics()
386 data.add(metric); in filterTestAppMetrics()
392 private void assertHotwordDetectorType(StatsLog.EventMetricData metric, in assertHotwordDetectorType() argument
395 metric.getAtom().getHotwordDetectorEvents().getDetectorType(); in assertHotwordDetectorType()
398 assertThat(metric.getAtom().getHotwordDetectorEvents().getEvent()).isEqualTo(expectedEvent); in assertHotwordDetectorType()
/cts/hostsidetests/statsdatom/apps/statsdapp/src/com/android/server/cts/device/statsdatom/
DDaveyView.java56 FontMetrics metric = mPaint.getFontMetrics(); in DaveyView() local
57 int textHeight = (int) Math.ceil(metric.descent - metric.ascent); in DaveyView()
58 mTexty = textHeight - (int) metric.descent; in DaveyView()
/cts/common/device-side/bedstead/metricsrecorder/src/main/java/com/android/bedstead/metricsrecorder/
DMetricQueryBuilder.java176 private boolean matches(EnterpriseMetricInfo metric) { in matches() argument
177 return mAdminPackageNameQuery.matches(metric.adminPackageName()) in matches()
178 && mTypeQuery.matches(metric.type()) in matches()
179 && mBooleanQuery.matches(metric.Boolean()) in matches()
180 && mStringsQuery.matches(metric.strings()) in matches()
181 && mIntegerQuery.matches(metric.integer()); in matches()
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/lib/
DReportUtils.java91 for (StatsLogReport metric : report.getMetricsList()) { in getEventMetricDataList()
93 metric.getEventMetrics().getDataList()) { in getEventMetricDataList()
/cts/tests/inputmethod/util/src/android/view/inputmethod/cts/util/
DMetricsRecorder.java376 for (final var metric: report.metrics) { in getEventMetricDataList()
377 final var eventMetrics = metric.getEventMetrics(); in getEventMetricDataList()
/cts/hostsidetests/media/src/android/media/metrics/cts/
DMediaMetricsAtomTests.java958 MetricMeasurement.Metric metric = testMetrics.get(LOG_SESSION_ID_KEY); in testEnded() local
959 mLogSessionId = metric == null ? null : metric.getMeasurements().getSingleString(); in testEnded()
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/statsd/
DUidAtomTests.java288 for (EventMetricData metric : data) {
289 long elapsedTimestampNs = metric.getElapsedTimestampNanos();
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/its/
DItsService.java1895 public void onResultMetric(Metric metric) {
1896 mResults.add(metric);