Lines Matching refs:thresholds
84 std::string toString(const PerStateIoOveruseThreshold& thresholds) { in toString() argument
87 thresholds.name.c_str(), thresholds.perStateWriteBytes.foregroundBytes, in toString()
88 thresholds.perStateWriteBytes.backgroundBytes, in toString()
89 thresholds.perStateWriteBytes.garageModeBytes); in toString()
92 Result<void> containsValidThresholds(const PerStateIoOveruseThreshold& thresholds) { in containsValidThresholds() argument
93 if (thresholds.name.empty()) { in containsValidThresholds()
97 if (thresholds.perStateWriteBytes.foregroundBytes <= 0 || in containsValidThresholds()
98 thresholds.perStateWriteBytes.backgroundBytes <= 0 || in containsValidThresholds()
99 thresholds.perStateWriteBytes.garageModeBytes <= 0) { in containsValidThresholds()
101 << toString(thresholds); in containsValidThresholds()
248 const std::vector<PerStateIoOveruseThreshold>& thresholds, in updatePerPackageThresholds() argument
251 if (thresholds.empty()) { in updatePerPackageThresholds()
255 for (const auto& packageThreshold : thresholds) { in updatePerPackageThresholds()
355 const std::vector<PerStateIoOveruseThreshold>& thresholds) { in updatePerCategoryThresholds() argument
357 if (thresholds.empty()) { in updatePerCategoryThresholds()
361 for (const auto& categoryThreshold : thresholds) { in updatePerCategoryThresholds()
384 const std::vector<IoOveruseAlertThreshold>& thresholds) { in updateAlertThresholds() argument
387 for (const auto& alertThreshold : thresholds) { in updateAlertThresholds()