/packages/modules/StatsD/statsd/tests/e2e/ |
D | Anomaly_count_e2e_test.cpp | 32 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 …]
|
D | ConfigTtl_e2e_test.cpp | 31 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()
|
D | Anomaly_duration_sum_e2e_test.cpp | 38 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/ |
D | ScanTestUtil.java | 114 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()
|
D | WifiVendorHalTest.java | 1698 settings.num_buckets = 1; in startBgScan()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/scanner/ |
D | ScanScheduleUtil.java | 83 if (schedule1.num_buckets != schedule2.num_buckets) return false; in scheduleEquals() 84 for (int b = 0; b < schedule1.num_buckets; b++) { in scheduleEquals()
|
D | BackgroundScanScheduler.java | 438 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()
|
D | WifiScanningServiceImpl.java | 1507 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()
|
D | WificondScannerImpl.java | 170 for (int i = 0; i < settings.num_buckets; ++i) { in startSingleScan()
|
/packages/modules/AdServices/adservices/libraries/cobalt/proto/ |
D | report_definition.proto | 799 // 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/ |
D | BackgroundScanSchedulerTest.java | 696 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/ |
D | AnomalyTracker.cpp | 38 : mAlert(alert), mConfigKey(configKey), mNumOfPastBuckets(mAlert.num_buckets() - 1) { in AnomalyTracker()
|
/packages/modules/StatsD/statsd/src/metrics/ |
D | DurationMetricProducer.cpp | 289 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/ |
D | statsd_config.proto | 501 optional int32 num_buckets = 3; field
|
/packages/modules/StatsD/statsd/src/metrics/parsing_utils/ |
D | metrics_manager_util.cpp | 1419 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/ |
D | WifiNative.java | 3504 public int num_buckets;
|