Home
last modified time | relevance | path

Searched refs:num_buckets (Results 1 – 16 of 16) sorted by relevance

/packages/modules/StatsD/statsd/tests/e2e/
DAnomaly_count_e2e_test.cpp32 StatsdConfig CreateStatsdConfig(int num_buckets, int threshold, int refractory_period_sec) { in CreateStatsdConfig() argument
48 alert->set_num_buckets(num_buckets); in CreateStatsdConfig()
57 const int num_buckets = 1; in TEST() local
60 auto config = CreateStatsdConfig(num_buckets, threshold, refractory_period_sec); in TEST()
174 const int num_buckets = 3; in TEST() local
177 auto config = CreateStatsdConfig(num_buckets, threshold, refractory_period_sec); in TEST()
244 const int num_buckets = 1; in TEST() local
247 auto config = CreateStatsdConfig(num_buckets, threshold, refractory_period_sec); in TEST()
269 const int num_buckets = 1; in TEST() local
272 auto config = CreateStatsdConfig(num_buckets, threshold, refractory_period_sec); in TEST()
[all …]
DConfigTtl_e2e_test.cpp31 StatsdConfig CreateStatsdConfig(int num_buckets, int threshold) { in CreateStatsdConfig() argument
47 alert->set_num_buckets(num_buckets); in CreateStatsdConfig()
59 const int num_buckets = 1; in TEST() local
61 auto config = CreateStatsdConfig(num_buckets, threshold); in TEST()
DAnomaly_duration_sum_e2e_test.cpp38 StatsdConfig CreateStatsdConfig(int num_buckets, in CreateStatsdConfig() argument
71 alert->set_num_buckets(num_buckets); in CreateStatsdConfig()
103 const int num_buckets = 1; in TEST_F() local
105 auto config = CreateStatsdConfig(num_buckets, threshold_ns, DurationMetric::SUM, true); in TEST_F()
285 const int num_buckets = 3; in TEST_F() local
287 auto config = CreateStatsdConfig(num_buckets, threshold_ns, DurationMetric::SUM, true); in TEST_F()
407 const int num_buckets = 1; in TEST_F() local
409 auto config = CreateStatsdConfig(num_buckets, threshold_ns, DurationMetric::SUM, true); in TEST_F()
495 const int num_buckets = 2; in TEST_F() local
497 auto config = CreateStatsdConfig(num_buckets, threshold_ns, DurationMetric::SUM, false); in TEST_F()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DScanTestUtil.java114 mSettings.num_buckets = 0; in NativeScanSettingsBuilder()
168 bucket.bucket = mSettings.num_buckets; in addBucketWithChannelCollection()
178 bucket.bucket = mSettings.num_buckets; in addBucketWithBand()
197 bucket.bucket = mSettings.num_buckets; in addBucketWithChannels()
207 mSettings.buckets = Arrays.copyOf(mSettings.buckets, mSettings.num_buckets + 1); in addBucket()
208 mSettings.buckets[mSettings.num_buckets] = bucket; in addBucket()
209 mSettings.num_buckets = mSettings.num_buckets + 1; in addBucket()
467 assertEquals("number of buckets", expected.num_buckets, actual.num_buckets); in assertNativeScanSettingsEquals()
DWifiVendorHalTest.java1698 settings.num_buckets = 1; in startBgScan()
/packages/modules/Wifi/service/java/com/android/server/wifi/scanner/
DScanScheduleUtil.java83 if (schedule1.num_buckets != schedule2.num_buckets) return false; in scheduleEquals()
84 for (int b = 0; b < schedule1.num_buckets; b++) { in scheduleEquals()
DBackgroundScanScheduler.java438 schedule.num_buckets = bucketList.size(); in createSchedule()
470 if (schedule.num_buckets > 0) { in createSchedule()
472 for (int b = 1; b < schedule.num_buckets; b++) { in createSchedule()
DWifiScanningServiceImpl.java1507 settings.num_buckets = 1; in tryToStartNewScan()
2063 if (schedule.num_buckets == 0) { in updateSchedule()
2072 for (int b = 0; b < schedule.num_buckets; b++) { in updateSchedule()
2082 Log.d(TAG, "scan restarted with " + schedule.num_buckets in updateSchedule()
2094 for (int b = 0; b < schedule.num_buckets; b++) { in updateSchedule()
3409 for (int b = 0; b < schedule.num_buckets; b++) { in dump()
DWificondScannerImpl.java170 for (int i = 0; i < settings.num_buckets; ++i) { in startSingleScan()
/packages/modules/AdServices/adservices/libraries/cobalt/proto/
Dreport_definition.proto799 // Let n = num_buckets. Then there are n+2 buckets indexed 0,...,n+1.
817 // num_buckets = 3
824 // num_buckets = 3
831 // num_buckets = 3
838 // num_buckets = 3
847 // num_buckets must be at least 1.
848 uint32 num_buckets = 2; field
860 // Let n = num_buckets. Then there are n+2 buckets indexed 0,...,n+1.
867 // Example: floor = 0, num_buckets = 3, step_size = 10.
873 uint32 num_buckets = 2; field
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/scanner/
DBackgroundScanSchedulerTest.java696 assertEquals("num_buckets", numBuckets, schedule.num_buckets); in assertBuckets()
698 assertEquals("num_buckets and actual buckets", schedule.num_buckets, in assertBuckets()
736 for (int b = 0; b < schedule.num_buckets; b++) { in assertSettingsSatisfied()
861 for (int i = 0; i < schedule.num_buckets; ++i) { in computeExpectedPeriod()
/packages/modules/StatsD/statsd/src/anomaly/
DAnomalyTracker.cpp38 : mAlert(alert), mConfigKey(configKey), mNumOfPastBuckets(mAlert.num_buckets() - 1) { in AnomalyTracker()
/packages/modules/StatsD/statsd/src/metrics/
DDurationMetricProducer.cpp289 if (alert.trigger_if_sum_gt() > alert.num_buckets() * mBucketSizeNs) { in addAnomalyTracker()
291 alert.trigger_if_sum_gt(), alert.num_buckets(), (long long)mBucketSizeNs); in addAnomalyTracker()
/packages/modules/StatsD/statsd/src/
Dstatsd_config.proto501 optional int32 num_buckets = 3; field
/packages/modules/StatsD/statsd/src/metrics/parsing_utils/
Dmetrics_manager_util.cpp1419 if (alert.trigger_if_sum_gt() < 0 || alert.num_buckets() <= 0) { in createAnomalyTracker()
1421 alert.num_buckets()); in createAnomalyTracker()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiNative.java3504 public int num_buckets;