Home
last modified time | relevance | path

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

/frameworks/base/cmds/statsd/tests/e2e/
DConfigTtl_e2e_test.cpp31 StatsdConfig CreateStatsdConfig(int num_buckets, int threshold) { in CreateStatsdConfig() argument
48 alert->set_num_buckets(num_buckets); in CreateStatsdConfig()
60 const int num_buckets = 1; in TEST() local
62 auto config = CreateStatsdConfig(num_buckets, threshold); in TEST()
DAnomaly_count_e2e_test.cpp31 StatsdConfig CreateStatsdConfig(int num_buckets, int threshold) { in CreateStatsdConfig() argument
48 alert->set_num_buckets(num_buckets); in CreateStatsdConfig()
57 const int num_buckets = 1; in TEST() local
59 auto config = CreateStatsdConfig(num_buckets, threshold); in TEST()
160 const int num_buckets = 3; in TEST() local
162 auto config = CreateStatsdConfig(num_buckets, threshold); in TEST()
DAnomaly_duration_sum_e2e_test.cpp32 StatsdConfig CreateStatsdConfig(int num_buckets, in CreateStatsdConfig() argument
66 alert->set_num_buckets(num_buckets); in CreateStatsdConfig()
93 const int num_buckets = 1; in TEST() local
95 auto config = CreateStatsdConfig(num_buckets, threshold_ns, DurationMetric::SUM, true); in TEST()
270 const int num_buckets = 3; in TEST() local
272 auto config = CreateStatsdConfig(num_buckets, threshold_ns, DurationMetric::SUM, true); in TEST()
382 const int num_buckets = 2; in TEST() local
384 auto config = CreateStatsdConfig(num_buckets, threshold_ns, DurationMetric::SUM, false); in TEST()
/frameworks/native/libs/binder/tests/
DbinderThroughputTest.cpp103 static const uint32_t num_buckets = 128; variable
105 static uint64_t time_per_bucket = max_time_bucket / num_buckets;
109 uint32_t m_buckets[num_buckets] = {0};
127 for (int i = 0; i < num_buckets; i++) { in combine()
151 for (int i = 0; i < num_buckets; i++) { in dump()
325 time_per_bucket = max_time_bucket / num_buckets; in run_main()
384 time_per_bucket = max_time_bucket / num_buckets; in main()
/frameworks/opt/net/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.java877 settings.num_buckets = 1; in tryToStartNewScan()
1312 if (schedule.num_buckets == 0) { in updateSchedule()
1321 for (int b = 0; b < schedule.num_buckets; b++) { in updateSchedule()
1330 Log.d(TAG, "scan restarted with " + schedule.num_buckets in updateSchedule()
1340 for (int b = 0; b < schedule.num_buckets; b++) { in updateSchedule()
2094 for (int b = 0; b < schedule.num_buckets; b++) { in dump()
DWificondScannerImpl.java168 for (int i = 0; i < settings.num_buckets; ++i) { in startSingleScan()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DScanTestUtil.java101 mSettings.num_buckets = 0; in NativeScanSettingsBuilder()
143 bucket.bucket = mSettings.num_buckets; in addBucketWithBand()
162 bucket.bucket = mSettings.num_buckets; in addBucketWithChannels()
172 mSettings.buckets = Arrays.copyOf(mSettings.buckets, mSettings.num_buckets + 1); in addBucket()
173 mSettings.buckets[mSettings.num_buckets] = bucket; in addBucket()
174 mSettings.num_buckets = mSettings.num_buckets + 1; in addBucket()
362 assertEquals("number of buckets", expected.num_buckets, actual.num_buckets); in assertNativeScanSettingsEquals()
DWifiVendorHalTest.java2388 settings.num_buckets = 1; in startBgScan()
/frameworks/base/cmds/statsd/src/anomaly/
DAnomalyTracker.cpp35 : mAlert(alert), mConfigKey(configKey), mNumOfPastBuckets(mAlert.num_buckets() - 1) { in AnomalyTracker()
37 if (mAlert.num_buckets() <= 0) { in AnomalyTracker()
38 ALOGE("Cannot create AnomalyTracker with %lld buckets", (long long)mAlert.num_buckets()); in AnomalyTracker()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/scanner/
DBackgroundScanSchedulerTest.java692 assertEquals("num_buckets", numBuckets, schedule.num_buckets); in assertBuckets()
694 assertEquals("num_buckets and actual buckets", schedule.num_buckets, in assertBuckets()
731 for (int b = 0; b < schedule.num_buckets; b++) { in assertSettingsSatisfied()
856 for (int i = 0; i < schedule.num_buckets; ++i) { in computeExpectedPeriod()
/frameworks/native/libs/vr/libpdx_default_transport/
Dpdx_benchmarks.cpp912 const int num_buckets = 200; in ClientCommand() local
914 const uint64_t ns_per_bucket = sample_range_ns / num_buckets; in ClientCommand()
915 std::array<uint64_t, num_buckets> sample_buckets = {{0}}; in ClientCommand()
935 for (int i = 0; i < num_buckets; i++) { in ClientCommand()
/frameworks/base/cmds/statsd/src/metrics/
Dmetrics_manager_util.cpp564 if (alert.trigger_if_sum_gt() < 0 || alert.num_buckets() <= 0) { in initAlerts()
566 alert.trigger_if_sum_gt(), alert.num_buckets()); in initAlerts()
DDurationMetricProducer.cpp146 if (alert.trigger_if_sum_gt() > alert.num_buckets() * mBucketSizeNs) { in addAnomalyTracker()
148 alert.trigger_if_sum_gt(), alert.num_buckets(), (long long)mBucketSizeNs); in addAnomalyTracker()
/frameworks/base/cmds/statsd/src/
Dstatsd_config.proto277 optional int32 num_buckets = 3; field
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiNative.java2041 public int num_buckets; field in WifiNative.ScanSettings