Lines Matching defs:value
109 THERMAL_HILOGW(COMP_HDI, "invalid format value");
348 std::string value;
350 if (!ThermalHdfUtils::ReadNode(info.valuePath, value)) {
353 wStream << value;
357 for (uint8_t i = 0; i < width_ - value.length(); ++i) {
364 void ThermalDfx::InfoChangedCallback(const char* key, const char* value, void* context)
366 if (key == nullptr || value == nullptr) {
370 std::string valueStr(value);
371 THERMAL_HILOGI(COMP_HDI, "thermal log param change, key = %{public}s, value = %{public}s", keyStr.c_str(),
385 void ThermalDfx::WidthWatchCallback(const std::string& value)
387 int32_t width = OHOS::StrToInt(value, width) ? width : DEFAULT_WIDTH;
391 void ThermalDfx::IntervalWatchCallback(const std::string& value)
393 int32_t interval = OHOS::StrToInt(value, interval) ? interval : DEFAULT_INTERVAL;
397 void ThermalDfx::EnableWatchCallback(const std::string& value)
399 enable_ = (value == "true");
404 int32_t value = OHOS::system::GetIntParameter(key, def);
405 return (value < minValue) ? def : value;
410 std::string value;
411 if (OHOS::system::GetStringParameter(THERMAL_LOG_ENABLE, value) != 0) {
414 return (value == "true");