Home
last modified time | relevance | path

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

12

/frameworks/av/drm/libmediadrm/tests/
DEventMetric_test.cpp28 EventMetric<int> metric("MyMetricName", "MetricAttributeName"); in TEST() local
32 metric.ExportValues( in TEST()
41 EventMetric<int> metric("MyMetricName", "MetricAttributeName"); in TEST() local
45 metric.Record(4, 7); in TEST()
46 metric.Record(5, 8); in TEST()
47 metric.Record(5, 8); in TEST()
48 metric.Record(5, 8); in TEST()
49 metric.Record(6, 8); in TEST()
50 metric.Record(6, 8); in TEST()
51 metric.Record(6, 8); in TEST()
[all …]
DCounterMetric_test.cpp30 CounterMetric<int> metric("MyMetricName", "MetricAttributeName"); in TEST_F() local
34 metric.ExportValues( in TEST_F()
43 CounterMetric<int> metric("MyMetricName", "MetricAttributeName"); in TEST_F() local
47 metric.Increment(7); in TEST_F()
48 metric.Increment(8); in TEST_F()
49 metric.Increment(8); in TEST_F()
51 metric.ExportValues( in TEST_F()
62 CounterMetric<std::string> metric("MyMetricName", "MetricAttributeName"); in TEST_F() local
66 metric.Increment("a"); in TEST_F()
67 metric.Increment("b"); in TEST_F()
[all …]
DDrmMetrics_test.cpp456 PersistableBundle metric; in TEST_F() local
457 ASSERT_TRUE(bundleMetricGroup.getPersistableBundle(String16("open_session_ok"), &metric)); in TEST_F()
459 ASSERT_TRUE(metric.getPersistableBundle(String16("[0]"), &metricInstance)); in TEST_F()
469 &metric)); in TEST_F()
470 ASSERT_TRUE(metric.getPersistableBundle(String16("[0]"), &metricInstance)); in TEST_F()
/frameworks/proto_logging/stats/express/catalog/
Dtex_test.cfg4 # - domain - will be used as metric config file name
5 # - value metric name without bucket size
9 display_name: "Test express counter metric"
10 description: "Longer test express counter metric description"
19 display_name: "Test express fixed_range counter histogram metric"
20 description: "Longer test express counter histogram metric description"
36 display_name: "Test express scaled_factor counter histogram metric"
37 description: "Longer test express counter histogram metric description"
54 display_name: "Test express fixed_range counter histogram with UID metric"
55 description: "Longer test express counter histogram with UID metric description"
[all …]
Dhealth_services.cfg4 display_name: "HAL crash counter metric"
/frameworks/base/core/tests/batterystatstests/BatteryStatsLoadTests/src/com/android/frameworks/core/batterystatsloadtests/
DPowerMetricsCollector.java189 for (PowerMetrics.Metric metric : finalPowerMetrics) {
190 if (metric.metricName.equals(initialMetric.metricName)) {
191 finalMetric = metric;
265 for (PowerMetrics.Metric metric : metrics) {
266 double proportion = metric.total != 0 ? metric.value * 100 / metric.total : 0;
267 switch (metric.metricKind) {
270 String.format(locale, "%-40s %7.1f mAh %4.1f%%", metric.metricName,
271 metric.value, proportion));
275 String.format(locale, "%-40s %,7d ms %4.1f%%", metric.metricName,
276 (long) metric.value, proportion));
[all …]
DPowerMetrics.java102 Metric metric = new Metric(); in addMetric() local
103 metric.metricName = metricType; in addMetric()
104 metric.metricKind = metricKind; in addMetric()
105 metric.statusKeyPrefix = metricKind.toString().toLowerCase(); in addMetric()
106 metric.value = amount; in addMetric()
107 metric.total = totalAmount; in addMetric()
108 mMetrics.add(metric); in addMetric()
/frameworks/base/services/credentials/java/com/android/server/credentials/
DMetricUtilities.java158 for (CandidateBrowsingPhaseMetric metric : browsingPhaseMetrics) { in logApiCalledFinalPhase()
159 browsedClickedEntries[index] = metric.getEntryEnum(); in logApiCalledFinalPhase()
160 browsedProviderUid[index] = metric.getProviderUid(); in logApiCalledFinalPhase()
268 var metric = session.getProviderSessionMetric() in logApiCalledCandidateGetMetric() local
272 /* session_id */ metric.getSessionIdProvider(), in logApiCalledCandidateGetMetric()
274 /* candidate_provider_uid */ metric.getCandidateUid(), in logApiCalledCandidateGetMetric()
276 metric.getResponseCollective().getUniqueResponseStrings(), in logApiCalledCandidateGetMetric()
278 metric.getResponseCollective().getUniqueResponseCounts() in logApiCalledCandidateGetMetric()
322 CandidatePhaseMetric metric = session.mProviderSessionMetric in logApiCalledCandidatePhase() local
325 sessionId = metric.getSessionIdProvider(); in logApiCalledCandidatePhase()
[all …]
/frameworks/av/drm/libmediadrm/
DDrmMetrics.cpp151 DrmFrameworkMetrics::DistributionMetric *metric = in GetSerializedMetrics() local
153 metric->set_min(stats.min); in GetSerializedMetrics()
154 metric->set_max(stats.max); in GetSerializedMetrics()
155 metric->set_mean(stats.mean); in GetSerializedMetrics()
156 metric->set_operation_count(stats.count); in GetSerializedMetrics()
157 metric->set_variance(stats.sum_squared_deviation / stats.count); in GetSerializedMetrics()
158 metric->mutable_attributes()->set_error_code(status); in GetSerializedMetrics()
163 DrmFrameworkMetrics::DistributionMetric *metric = in GetSerializedMetrics() local
165 metric->set_min(stats.min); in GetSerializedMetrics()
166 metric->set_max(stats.max); in GetSerializedMetrics()
[all …]
/frameworks/layoutlib/bridge/tests/src/com/android/tools/idea/validator/
DValidatorResultTests.java74 Metric metric = new Builder().mMetric; in testMetricRecordHierarchyCreationTime() local
76 metric.startHierarchyCreationTimer(); in testMetricRecordHierarchyCreationTime()
86 metric.recordHierarchyCreationTime(); in testMetricRecordHierarchyCreationTime()
88 long diff = Math.abs(expectedElapsed - metric.mHierarchyCreationMs); in testMetricRecordHierarchyCreationTime()
95 Metric metric = new Builder().mMetric;
97 metric.mErrorMessage = "TestError";
98 metric.mImageMemoryBytes = Long.MAX_VALUE;
102 metric.toString());
/frameworks/proto_logging/stats/express/libexpresscatalog/
Dcatalog.cpp74 const ExpressMetric& metric = cfMessage.express_metric(i); in readMetrics() local
76 if (!metric.has_id()) { in readMetrics()
81 LOGD("Metric: %s\n", metric.id().c_str()); in readMetrics()
83 if (!validateMetricId(metric.id())) { in readMetrics()
87 if (metrics.find(metric.id()) != metrics.end()) { in readMetrics()
92 metrics[metric.id()] = metric; in readMetrics()
/frameworks/opt/car/services/updatableServices/tests/src/com/android/internal/car/updatable/
DUserMetricsTest.java206 UserStartingMetric metric = startArray.get(userId); in assertStartTime() local
207 assertThat(metric.startTime).isEqualTo(timestamp); in assertStartTime()
213 UserStartingMetric metric = startArray.get(userId); in assertSwitchTime() local
214 assertThat(metric.switchFromUserId).isEqualTo(fromUserId); in assertSwitchTime()
215 assertThat(metric.switchTime).isEqualTo(timestamp); in assertSwitchTime()
220 UserStartingMetric metric = startArray.get(userId); in assertUnlockingTime() local
221 assertThat(metric.unlockingTime).isEqualTo(timestamp); in assertUnlockingTime()
231 UserStoppingMetric metric = stopArray.get(userId); in assertStopingTime() local
232 assertThat(metric.stopTime).isEqualTo(timestamp); in assertStopingTime()
/frameworks/layoutlib/validator/src/com/android/tools/idea/validator/
DAtfBufferedImage.java58 @NotNull Metric metric, in AtfBufferedImage() argument
65 metric, in AtfBufferedImage()
82 @NotNull Metric metric, in AtfBufferedImage() argument
90 mMetric = metric; in AtfBufferedImage()
DValidatorResult.java49 Metric metric) { in ValidatorResult() argument
55 mMetric = metric; in ValidatorResult()
/frameworks/base/services/core/java/com/android/server/wallpaper/
DWallpaperDisplayHelper.java88 for (WindowMetrics metric: metrics) { in WallpaperDisplayHelper()
89 Rect bounds = metric.getBounds(); in WallpaperDisplayHelper()
101 mIsLargeScreen |= (displaySize.x / metric.getDensity() >= LARGE_SCREEN_MIN_DP); in WallpaperDisplayHelper()
106 / (metric.getDensity() * metric.getDensity()); in WallpaperDisplayHelper()
/frameworks/base/tests/GamePerformance/src/android/gameperformance/
DGamePerformanceTest.java78 for (Map.Entry<String, Double> metric : metrics.entrySet()) { in testGraphicBufferMetrics()
79 status.putDouble(metric.getKey(), metric.getValue()); in testGraphicBufferMetrics()
/frameworks/opt/car/services/updatableServices/src/com/android/internal/car/updatable/
DUserMetrics.java195 T metric = (T) metrics.get(userId); in getExistingMetricsLocked() local
196 if (metric == null) { in getExistingMetricsLocked()
200 return metric; in getExistingMetricsLocked()
262 BaseUserMetric metric = metrics.valueAt(i); in dump() local
264 metric.dump(pw); in dump()
/frameworks/av/media/libmedia/include/media/
DEventMetric.h149 explicit EventTimer(EventMetric<AttributeType>* metric) in EventTimer() argument
150 :start_time_(systemTime()), metric_(metric) { in EventTimer()
/frameworks/proto_logging/stats/atoms/expresslog/
Dexpresslog_extension_atoms.proto44 // for counter metric it is an incremental amount
54 // for counter metric it is an incremental amount
/frameworks/base/packages/SystemUI/src/com/android/systemui/settings/brightness/
DBrightnessController.java344 final int metric; in onChanged() local
347 metric = mAutomatic in onChanged()
357 MetricsLogger.action(mContext, metric, in onChanged()
/frameworks/base/core/java/android/net/vcn/
Dflags.aconfig22 description: "Feature flag for enabling network metric monitor"
/frameworks/proto_logging/stats/atoms/bluetooth/
Dbluetooth_extension_atoms.proto82 // Default: 0 if the device's metric id is unknown.
101 // Default: 0 if the device's metric id is unknown.
138 // Default: 0 if the device's metric id is unknown.
191 // Contains the metric id associated with the remote device
320 * Logs remote device information with metric ID
/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/floatingmenu/
DMenuView.java404 void incrementTexMetric(String metric) { in incrementTexMetric() argument
408 Counter.logIncrement(metric); in incrementTexMetric()
/frameworks/proto_logging/stats/atoms/art/
Dart_extension_atoms.proto246 // What kind of thread (UI or background) this metric corresponds to.
289 // What kind of thread (UI or background) this metric corresponds to.
/frameworks/av/drm/libmediadrm/protos/
Dmetrics.proto62 // Represents the attributes assocated with this distribution metric

12