Home
last modified time | relevance | path

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

/aosp12/packages/modules/StatsD/tests/src/android/cts/statsd/metric/
H A DDurationMetricsTests.java68 .setId(MetricsUtils.StringToId("Predicate")) in testDurationMetric()
76 .setId(MetricsUtils.DURATION_METRIC_ID) in testDurationMetric()
110 AtomMatcher stopAtomMatcher = MetricsUtils.stopAtomMatcherWithLabel( in testDurationMetricWithCondition()
149 .setId(MetricsUtils.DURATION_METRIC_ID) in testDurationMetricWithCondition()
221 AtomMatcher stopAtomMatcher = MetricsUtils.stopAtomMatcherWithLabel( in testDurationMetricWithActivation()
246 .setId(MetricsUtils.DURATION_METRIC_ID) in testDurationMetricWithActivation()
252 .setMetricId(MetricsUtils.DURATION_METRIC_ID) in testDurationMetricWithActivation()
352 .setId(MetricsUtils.DURATION_METRIC_ID) in testDurationMetricWithConditionAndActivation()
359 .setMetricId(MetricsUtils.DURATION_METRIC_ID) in testDurationMetricWithConditionAndActivation()
509 .setId(MetricsUtils.StringToId("Predicate_B")) in testDurationMetricWithDimension()
[all …]
H A DGaugeMetricsTests.java79 .setId(MetricsUtils.GAUGE_METRIC_ID) in testGaugeMetric()
131 MetricsUtils.assertBucketTimePresent(data.getBucketInfo(0)); in testGaugeMetric()
138 MetricsUtils.assertBucketTimePresent(data.getBucketInfo(1)); in testGaugeMetric()
156 MetricsUtils.appBreadcrumbMatcherWithLabel( in testPulledGaugeMetricWithActivation()
172 .setId(MetricsUtils.GAUGE_METRIC_ID) in testPulledGaugeMetricWithActivation()
181 .setMetricId(MetricsUtils.GAUGE_METRIC_ID) in testPulledGaugeMetricWithActivation()
212 MetricsUtils.startAtomMatcherWithLabel( in testPulledGaugeMetricWithConditionAndActivation()
237 .setId(MetricsUtils.GAUGE_METRIC_ID) in testPulledGaugeMetricWithConditionAndActivation()
250 .setMetricId(MetricsUtils.GAUGE_METRIC_ID) in testPulledGaugeMetricWithConditionAndActivation()
329 MetricsUtils.assertBucketTimePresent(bucketInfo); in testPulledGaugeMetricWithConditionAndActivation()
[all …]
H A DValueMetricsTests.java68 .setId(MetricsUtils.VALUE_METRIC_ID) in testValueMetric()
105 MetricsUtils.assertBucketTimePresent(bucketInfo); in testValueMetric()
146 .setId(MetricsUtils.VALUE_METRIC_ID) in testPullerAcrossBuckets()
181 MetricsUtils.assertBucketTimePresent(bucketInfo); in testPullerAcrossBuckets()
223 .setId(MetricsUtils.VALUE_METRIC_ID) in testMultipleEventsPerBucket()
262 MetricsUtils.assertBucketTimePresent(bucketInfo); in testMultipleEventsPerBucket()
279 MetricsUtils.appBreadcrumbMatcherWithLabel( in testPullerAcrossBucketsWithActivation()
292 .setId(MetricsUtils.VALUE_METRIC_ID) in testPullerAcrossBucketsWithActivation()
302 .setMetricId(MetricsUtils.VALUE_METRIC_ID) in testPullerAcrossBucketsWithActivation()
342 MetricsUtils.startAtomMatcherWithLabel( in testValueMetricWithConditionAndActivation()
[all …]
H A DCountMetricsTests.java51 .setId(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()
164 .setId(MetricsUtils.COUNT_METRIC_ID) in testEventCountWithConditionAndActivation()
175 .setMetricId(MetricsUtils.COUNT_METRIC_ID) in testEventCountWithConditionAndActivation()
259 .setId(MetricsUtils.COUNT_METRIC_ID) in testPartialBucketCountMetric()
263 .addAtomMatcher(MetricsUtils.simpleAtomMatcher(matcherId)); in testPartialBucketCountMetric()
324 MetricsUtils.getAtomMatcher(whatAtomId)
[all …]
H A DMetricActivationTests.java63 MetricsUtils.simpleAtomMatcher(metric1MatcherId, metric1MatcherId); in createConfig()
65 MetricsUtils.simpleAtomMatcher(metric2MatcherId, metric2MatcherId); in createConfig()
67 MetricsUtils.simpleAtomMatcher(metric3MatcherId, metric3MatcherId); in createConfig()
69 MetricsUtils.simpleAtomMatcher(act1MatcherId, act1MatcherId); in createConfig()
71 MetricsUtils.simpleAtomMatcher(act1CancelMatcherId, act1CancelMatcherId); in createConfig()
73 MetricsUtils.simpleAtomMatcher(act2MatcherId, act2MatcherId); in createConfig()
75 MetricsUtils.simpleAtomMatcher(act2CancelMatcherId, act2CancelMatcherId); in createConfig()
93 MetricsUtils.createEventActivation(act1TtlSecs, act1MatcherId, act1CancelMatcherId) in createConfig()
98 MetricsUtils.createEventActivation(act2TtlSecs, act2MatcherId, act2CancelMatcherId) in createConfig()
103 MetricsUtils.createEventActivation(act1TtlSecs, act1MatcherId, act1CancelMatcherId) in createConfig()
[all …]
H A DMetricsUtils.java31 public class MetricsUtils { class
/aosp12/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/util/
H A 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()
/aosp12/packages/modules/Wifi/service/java/com/android/server/wifi/aware/
H A 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()
535 MetricsUtils.logHistogramToGenericBuckets(mHistogramAttachDuration, in consolidateProto()
549 MetricsUtils.logHistogramToGenericBuckets(mHistogramPublishDuration, in consolidateProto()
552 MetricsUtils.logHistogramToGenericBuckets(mHistogramSubscribeDuration, in consolidateProto()
581 MetricsUtils.logHistogramToGenericBuckets(mNdpCreationTimeDuration, in consolidateProto()
590 MetricsUtils.logHistogramToGenericBuckets(mHistogramNdpDuration, in consolidateProto()
[all …]
/aosp12/packages/modules/Wifi/service/java/com/android/server/wifi/rtt/
H A 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()
/aosp12/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/aware/
H A 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,
/aosp12/packages/modules/Wifi/service/java/com/android/server/wifi/util/
H A DMetricsUtils.java28 public class MetricsUtils { class
/aosp12/packages/modules/Wifi/service/tests/wifitests/
H A DAndroid.bp903 "com.android.server.wifi.util.MetricsUtils",
904 "com.android.server.wifi.util.MetricsUtils$*",
905 "com.android.server.wifi.util.MetricsUtils.**",
/aosp12/packages/modules/Wifi/service/java/com/android/server/wifi/
H A 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,