Searched defs:filter_depth (Results 1 - 1 of 1) sorted by relevance

/system/connectivity/shill/
H A Dactive_link_monitor_unittest.cc586 const size_t filter_depth = GetMaxResponseSampleFilterDepth(); local
590 ASSERT_GT(arraysize(kSamples), filter_depth); local
594 for (; i < filter_depth; ++i) {
604 sum = (sum + kSamples[i]) * filter_depth / (filter_depth + 1);
605 EXPECT_EQ(sum / filter_depth, monitor_.GetResponseTimeMilliseconds());
613 const int filter_depth = GetMaxResponseSampleFilterDepth(); local
618 for (int i = 0; i < filter_depth * 2; ++i) {
627 // impulse_height / (filter_depth + 1) increase to the running average.
629 kNormalValue + (kExceptionalValue - kNormalValue) / (filter_depth
[all...]

Completed in 18 milliseconds