Lines Matching refs:thresholds
85 std::string toString(const PerStateIoOveruseThreshold& thresholds) { in toString() argument
88 thresholds.name.c_str(), thresholds.perStateWriteBytes.foregroundBytes, in toString()
89 thresholds.perStateWriteBytes.backgroundBytes, in toString()
90 thresholds.perStateWriteBytes.garageModeBytes); in toString()
93 Result<void> containsValidThresholds(const PerStateIoOveruseThreshold& thresholds) { in containsValidThresholds() argument
94 if (thresholds.name.empty()) { in containsValidThresholds()
98 if (thresholds.perStateWriteBytes.foregroundBytes <= 0 || in containsValidThresholds()
99 thresholds.perStateWriteBytes.backgroundBytes <= 0 || in containsValidThresholds()
100 thresholds.perStateWriteBytes.garageModeBytes <= 0) { in containsValidThresholds()
102 << toString(thresholds); in containsValidThresholds()
249 const std::vector<PerStateIoOveruseThreshold>& thresholds, in updatePerPackageThresholds() argument
252 if (thresholds.empty()) { in updatePerPackageThresholds()
256 for (const auto& packageThreshold : thresholds) { in updatePerPackageThresholds()
356 const std::vector<PerStateIoOveruseThreshold>& thresholds) { in updatePerCategoryThresholds() argument
358 if (thresholds.empty()) { in updatePerCategoryThresholds()
362 for (const auto& categoryThreshold : thresholds) { in updatePerCategoryThresholds()
385 const std::vector<IoOveruseAlertThreshold>& thresholds) { in updateAlertThresholds() argument
388 for (const auto& alertThreshold : thresholds) { in updateAlertThresholds()