Home
last modified time | relevance | path

Searched refs:MetricsUtils (Results 1 – 13 of 13) sorted by relevance

/packages/modules/StatsD/tests/src/android/cts/statsd/metric/
DDurationMetricsTests.java54 MetricsUtils.startAtomMatcherWithLabel(APP_BREADCRUMB_REPORTED_A_MATCH_START_ID, label); in testDurationMetric()
56 MetricsUtils.stopAtomMatcherWithLabel(APP_BREADCRUMB_REPORTED_A_MATCH_STOP_ID, label); in testDurationMetric()
68 .setId(MetricsUtils.StringToId("Predicate")) in testDurationMetric()
76 .setId(MetricsUtils.DURATION_METRIC_ID) in testDurationMetric()
93 assertThat(metricReport.getMetricId()).isEqualTo(MetricsUtils.DURATION_METRIC_ID); in testDurationMetric()
108 AtomMatcher startAtomMatcher = MetricsUtils.startAtomMatcherWithLabel( in testDurationMetricWithCondition()
110 AtomMatcher stopAtomMatcher = MetricsUtils.stopAtomMatcherWithLabel( in testDurationMetricWithCondition()
112 AtomMatcher conditionStartAtomMatcher = MetricsUtils.startAtomMatcherWithLabel( in testDurationMetricWithCondition()
114 AtomMatcher conditionStopAtomMatcher = MetricsUtils.stopAtomMatcherWithLabel( in testDurationMetricWithCondition()
129 .setId(MetricsUtils.StringToId("Predicate")) in testDurationMetricWithCondition()
[all …]
DGaugeMetricsTests.java52 MetricsUtils.startAtomMatcher(APP_BREADCRUMB_REPORTED_A_MATCH_START_ID); in testGaugeMetric()
54 MetricsUtils.stopAtomMatcher(APP_BREADCRUMB_REPORTED_A_MATCH_STOP_ID); in testGaugeMetric()
56 MetricsUtils.simpleAtomMatcher(APP_BREADCRUMB_REPORTED_B_MATCH_START_ID); in testGaugeMetric()
69 .setId(MetricsUtils.StringToId("Predicate")) in testGaugeMetric()
79 .setId(MetricsUtils.GAUGE_METRIC_ID) in testGaugeMetric()
122 assertThat(metricReport.getMetricId()).isEqualTo(MetricsUtils.GAUGE_METRIC_ID); in testGaugeMetric()
130 MetricsUtils.assertBucketTimePresent(data.getBucketInfo(0)); in testGaugeMetric()
137 MetricsUtils.assertBucketTimePresent(data.getBucketInfo(1)); in testGaugeMetric()
140 MetricsUtils.assertBucketTimePresent(data.getBucketInfo(bucketCount-1)); in testGaugeMetric()
155 MetricsUtils.appBreadcrumbMatcherWithLabel( in testPulledGaugeMetricWithActivation()
[all …]
DValueMetricsTests.java54 MetricsUtils.startAtomMatcher(APP_BREADCRUMB_REPORTED_A_MATCH_START_ID); in testValueMetric()
56 MetricsUtils.stopAtomMatcher(APP_BREADCRUMB_REPORTED_A_MATCH_STOP_ID); in testValueMetric()
58 MetricsUtils.simpleAtomMatcher(APP_BREADCRUMB_REPORTED_B_MATCH_START_ID); in testValueMetric()
68 .setId(MetricsUtils.VALUE_METRIC_ID) in testValueMetric()
95 assertThat(metricReport.getMetricId()).isEqualTo(MetricsUtils.VALUE_METRIC_ID); in testValueMetric()
105 MetricsUtils.assertBucketTimePresent(bucketInfo); in testValueMetric()
121 MetricsUtils.startAtomMatcher(predicateTrueName.hashCode()); in testPullerAcrossBuckets()
123 MetricsUtils.stopAtomMatcher(predicateFalseName.hashCode()); in testPullerAcrossBuckets()
146 .setId(MetricsUtils.VALUE_METRIC_ID) in testPullerAcrossBuckets()
170 assertThat(metricReport.getMetricId()).isEqualTo(MetricsUtils.VALUE_METRIC_ID); in testPullerAcrossBuckets()
[all …]
DCountMetricsTests.java51 .setId(MetricsUtils.COUNT_METRIC_ID) in testSimpleEventCountMetric()
54 .addAtomMatcher(MetricsUtils.simpleAtomMatcher(matcherId)); in testSimpleEventCountMetric()
64 assertThat(metricReport.getMetricId()).isEqualTo(MetricsUtils.COUNT_METRIC_ID); in testSimpleEventCountMetric()
79 MetricsUtils.unspecifiedAtomMatcher(whatMatcherId); in testEventCountWithCondition()
82 MetricsUtils.startAtomMatcher(startMatcherId); in testEventCountWithCondition()
85 MetricsUtils.stopAtomMatcher(endMatcherId); in testEventCountWithCondition()
97 .setId(MetricsUtils.COUNT_METRIC_ID) in testEventCountWithCondition()
120 assertThat(metricReport.getMetricId()).isEqualTo(MetricsUtils.COUNT_METRIC_ID); in testEventCountWithCondition()
142 MetricsUtils.appBreadcrumbMatcherWithLabel(whatMatcherId, whatMatcherLabel); in testEventCountWithConditionAndActivation()
145 MetricsUtils.startAtomMatcherWithLabel(startMatcherId, startMatcherLabel); in testEventCountWithConditionAndActivation()
[all …]
DMetricActivationTests.java61 MetricsUtils.simpleAtomMatcher(metric1MatcherId, metric1MatcherId); in createConfig()
63 MetricsUtils.simpleAtomMatcher(metric2MatcherId, metric2MatcherId); in createConfig()
65 MetricsUtils.simpleAtomMatcher(metric3MatcherId, metric3MatcherId); in createConfig()
67 MetricsUtils.simpleAtomMatcher(act1MatcherId, act1MatcherId); in createConfig()
69 MetricsUtils.simpleAtomMatcher(act1CancelMatcherId, act1CancelMatcherId); in createConfig()
71 MetricsUtils.simpleAtomMatcher(act2MatcherId, act2MatcherId); in createConfig()
73 MetricsUtils.simpleAtomMatcher(act2CancelMatcherId, act2CancelMatcherId); in createConfig()
91 MetricsUtils.createEventActivation(act1TtlSecs, act1MatcherId, act1CancelMatcherId) in createConfig()
96 MetricsUtils.createEventActivation(act2TtlSecs, act2MatcherId, act2CancelMatcherId) in createConfig()
101 MetricsUtils.createEventActivation(act1TtlSecs, act1MatcherId, act1CancelMatcherId) in createConfig()
[all …]
DMetricsUtils.java31 public class MetricsUtils { class
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/util/
DMetricsUtilsTest.java58 private static final MetricsUtils.LogHistParms HIST1 = new MetricsUtils.LogHistParms(0, 1, 10,
67 private static final MetricsUtils.LogHistParms HIST2 = new MetricsUtils.LogHistParms(-20, 2, 5,
114 MetricsUtils.GenericBucket[] phb1 = MetricsUtils.logHistogramToGenericBuckets(hist1, HIST1); in testHistBucketing()
141 MetricsUtils.GenericBucket[] phb2 = MetricsUtils.logHistogramToGenericBuckets(hist2, HIST2); in testHistBucketing()
177 MetricsUtils.GenericBucket[] phb = MetricsUtils.linearHistogramToGenericBuckets(hist, in testLinearHistBucketing()
190 MetricsUtils.LogHistParms hp, int expectedKey, int expectedValue) { in bucketValueAndVerify()
191 MetricsUtils.addValueToLogHistogram(value, h, hp); in bucketValueAndVerify()
197 MetricsUtils.addValueToLinearHistogram(value, h, hp); in bucketValueAndVerify()
201 private void validateProtoHistBucket(String prefix, MetricsUtils.GenericBucket bucket, in validateProtoHistBucket()
/packages/modules/Wifi/service/java/com/android/server/wifi/aware/
DWifiAwareMetrics.java34 import com.android.server.wifi.util.MetricsUtils;
60 private static final MetricsUtils.LogHistParms DURATION_LOG_HISTOGRAM =
61 new MetricsUtils.LogHistParms(0, 1, 10, 9, 8);
171 MetricsUtils.addValueToLogHistogram(now - mLastEnableUsageMs, in recordDisableUsage()
202 MetricsUtils.addValueToLogHistogram(now - mLastEnableAwareMs, in recordDisableAware()
250 MetricsUtils.addValueToLogHistogram(mClock.getElapsedSinceBootMillis() - creationTime, in recordAttachSessionDuration()
344 MetricsUtils.addValueToLinearHistogram(minRange, mHistogramSubscribeGeofenceMin, in recordDiscoverySessionInternal()
348 MetricsUtils.addValueToLinearHistogram(maxRange, mHistogramSubscribeGeofenceMax, in recordDiscoverySessionInternal()
377 MetricsUtils.addValueToLogHistogram(mClock.getElapsedSinceBootMillis() - creationTime, in recordDiscoverySessionDuration()
477 MetricsUtils.addValueToLogHistogram(creationTime, mNdpCreationTimeDuration, in recordNdpStatus()
[all …]
/packages/modules/Wifi/service/java/com/android/server/wifi/rtt/
DRttMetrics.java19 import static com.android.server.wifi.util.MetricsUtils.addValueToLinearHistogram;
20 import static com.android.server.wifi.util.MetricsUtils.addValueToLogHistogram;
21 import static com.android.server.wifi.util.MetricsUtils.linearHistogramToGenericBuckets;
22 import static com.android.server.wifi.util.MetricsUtils.logHistogramToGenericBuckets;
35 import com.android.server.wifi.util.MetricsUtils;
65 private static final MetricsUtils.LogHistParms COUNT_LOG_HISTOGRAM =
66 new MetricsUtils.LogHistParms(0, 1, 10, 1, 7);
360 MetricsUtils.GenericBucket[] genericHistogram) { in genericBucketsToRttBuckets()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/aware/
DWifiAwareMetricsTest.java41 import com.android.server.wifi.util.MetricsUtils;
80 private static final MetricsUtils.LogHistParms HIST1 = new MetricsUtils.LogHistParms(0, 1,
89 private static final MetricsUtils.LogHistParms HIST2 = new MetricsUtils.LogHistParms(-20, 2,
/packages/modules/Wifi/service/java/com/android/server/wifi/util/
DMetricsUtils.java28 public class MetricsUtils { class
/packages/modules/Wifi/service/tests/wifitests/
DAndroid.bp903 "com.android.server.wifi.util.MetricsUtils",
904 "com.android.server.wifi.util.MetricsUtils$*",
905 "com.android.server.wifi.util.MetricsUtils.**",
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiMetrics.java127 import com.android.server.wifi.util.MetricsUtils;
888 MetricsUtils.convertNetworkSelectionDisableReasonToWifiProtoEnum( in convertToNetworkDisableReason()
902 .mapToInt(i -> MetricsUtils.convertBssidBlocklistReasonToWifiProtoEnum(i)) in convertToNetworkDisableReason()
5133 MetricsUtils.GenericBucket[] genericBuckets = in makeWifiConfigStoreIODurationBucketArray()
5134 MetricsUtils.linearHistogramToGenericBuckets(sia, in makeWifiConfigStoreIODurationBucketArray()
7031 MetricsUtils.addValueToLinearHistogram(timeMs, mWifiConfigStoreReadDurationHistogram,
7043 MetricsUtils.addValueToLinearHistogram(timeMs, mWifiConfigStoreWriteDurationHistogram,