Home
last modified time | relevance | path

Searched refs:level (Results 1 – 25 of 315) sorted by relevance

12345678910>>...13

/base/powermgr/thermal_manager/application/protector/src/policy/
Dprotector_thermal_zone_info.cpp25 uint32_t level = 0; in UpdateThermalLevel() local
27 DescJudgment(curTemp, level); in UpdateThermalLevel()
29 AscJudgment(curTemp, level); in UpdateThermalLevel()
31 latestLevel_ = level; in UpdateThermalLevel()
34 void ProtectorThermalZoneInfo::AscJudgment(int32_t curTemp, uint32_t &level) in AscJudgment() argument
37 level = latestLevel_; in AscJudgment()
38 if (level > 0 && level < tzItemList_.size()) { in AscJudgment()
39 int32_t curDownTemp = tzItemList_.at(level - 1).thresholdClr; in AscJudgment()
40 int32_t nextUptemp = tzItemList_.at(level).threshold; in AscJudgment()
42 HandleAscNextUpTemp(level, curTemp); in AscJudgment()
[all …]
/base/powermgr/thermal_manager/services/native/src/thermal_policy/
Dthermal_config_sensor_cluster.cpp45 if (sensorInfo->second.at(i).level != expectedLev) { in CheckStandard()
88 uint32_t level = latestLevel_; in CalculateSensorLevel() local
90 DescJudgment(sensorInfo->second, iter->second, level); in CalculateSensorLevel()
91 CheckExtraCondition(typeTempInfo, level); in CalculateSensorLevel()
92 levelList.push_back(level); in CalculateSensorLevel()
94 AscJudgment(sensorInfo->second, iter->second, level); in CalculateSensorLevel()
95 CheckExtraCondition(typeTempInfo, level); in CalculateSensorLevel()
96 levelList.push_back(level); in CalculateSensorLevel()
101 …onfigSensorCluster::AscJudgment(std::vector<LevelItem>& levItems, int32_t curTemp, uint32_t& level) in AscJudgment() argument
103 if (level > 0 && level < levItems.size()) { in AscJudgment()
[all …]
/base/powermgr/thermal_manager/test/unittest/src/
Dthermal_action_report_test.cpp79 std::string ThermalActionReportTest::GetActionValue(const std::string& actionName, uint32_t level) in GetActionValue() argument
81 …RMAL_HILOGD(LABEL_TEST, "action name = %{public}s, level = %{public}d", actionName.c_str(), level); in GetActionValue()
84 if (!g_configParser->GetActionPolicy(POLICY_CFG_NAME, level, vAction)) { in GetActionValue()
239 void ThermalActionReportTest::ThermalActionTriggered(const std::string& actionName, int32_t level, in ThermalActionTriggered() argument
248 std::string value = GetActionValue(actionName, level); in ThermalActionTriggered()
311 int32_t level = ThermalActionReportTest::GetThermalLevel(expectLevel); variable
314 ThermalActionReportTest::ThermalActionTriggered(CPU_BIG_ACTION_NAME, level, actualDumpInfo);
315 ThermalActionReportTest::ThermalActionTriggered(CPU_MED_ACTION_NAME, level, actualDumpInfo);
316 ThermalActionReportTest::ThermalActionTriggered(CPU_LIT_ACTION_NAME, level, actualDumpInfo);
317 ThermalActionReportTest::ThermalActionTriggered(GPU_ACTION_NAME, level, actualDumpInfo);
[all …]
Dthermal_service_test.cpp256 item.level = 2;
264 item.level = 1;
313 item2.level = 999;
318 uint32_t level = 1; variable
320 cluster.AscJudgment(levItems1, curTemp, level);
321 EXPECT_EQ(level, item2.level);
327 level = 1;
328 cluster.AscJudgment(levItems1, curTemp, level);
329 EXPECT_EQ(level, 1);
333 levItems1.at(INDEX0).level = 999;
[all …]
Dthermal_mock_action_test.cpp79 ThermalLevel level = ThermalLevel::COOL; variable
84 g_thermalSvc->GetThermalLevel(level);
85 EXPECT_EQ(expectLevel, static_cast<int32_t>(level));
92 g_thermalSvc->GetThermalLevel(level);
93 EXPECT_EQ(expectLevel, static_cast<int32_t>(level));
100 g_thermalSvc->GetThermalLevel(level);
101 EXPECT_EQ(expectLevel, static_cast<int32_t>(level));
122 ThermalLevel level = ThermalLevel::COOL; variable
126 g_thermalSvc->GetThermalLevel(level);
127 EXPECT_EQ(expectLevel, static_cast<int32_t>(level));
[all …]
/base/hiviewdfx/hilog/platform/
Dhilog_printf.cpp19 static OHOS::HiviewDFX::Hilog::Platform::LogLevel ConvertLogLevel(LogLevel level) in ConvertLogLevel() argument
21 if (level == LogLevel::LOG_DEBUG) { in ConvertLogLevel()
23 } else if (level == LogLevel::LOG_INFO) { in ConvertLogLevel()
25 } else if (level == LogLevel::LOG_WARN) { in ConvertLogLevel()
27 } else if (level == LogLevel::LOG_ERROR) { in ConvertLogLevel()
29 } else if (level == LogLevel::LOG_FATAL) { in ConvertLogLevel()
36 int HiLogPrintArgs(const LogType type, const LogLevel level, const unsigned int domain, const char … in HiLogPrintArgs() argument
39 OHOS::HiviewDFX::Hilog::Platform::LogPrint(ConvertLogLevel(level), fmt, ap); in HiLogPrintArgs()
43 int HiLogPrint(LogType type, LogLevel level, unsigned int domain, const char *tag, const char *fmt,… in HiLogPrint() argument
48 ret = HiLogPrintArgs(type, level, domain, tag, fmt, ap); in HiLogPrint()
[all …]
/base/hiviewdfx/hilog/interfaces/rust/src/
Dmacros.rs22 (@call $log_label:ident, $level:expr, $fmt:literal, $(,)? $($processed_args:expr),* ) => (
25 $crate::HiLogPrint($log_label.log_type as u8, $level as u8, $log_label.domain as u32,
32 …(@rec $priv_flag:ident; $log_label:ident; $level:expr; $fmt:literal; ($arg:expr); $(,)? $($process…
34 hilog!(@call $log_label, $level, $fmt, $($processed_args),*, "<private>");
36 hilog!(@call $log_label, $level, $fmt, $($processed_args),*, $arg);
40 …(@rec $priv_flag:ident; $log_label:ident; $level:expr; $fmt:literal; (@private($arg:expr)); $(,)? …
42 hilog!(@call $log_label, $level, $fmt, $($processed_args),*, "<private>");
44 hilog!(@call $log_label, $level, $fmt, $($processed_args),*, $arg);
48 …(@rec $priv_flag:ident; $log_label:ident; $level:expr; $fmt:literal; (@public($arg:expr)); $(,)? $…
49 hilog!(@call $log_label, $level, $fmt, $($processed_args),*, $arg);
[all …]
/base/powermgr/thermal_manager/application/protector/include/policy/
Dprotector_thermal_zone_info.h28 uint32_t level; member
52 void AscJudgment(int32_t curTemp, uint32_t &level);
53 void DescJudgment(int32_t curTemp, uint32_t &level);
54 void HandleDescNextUpTemp(uint32_t &level, int32_t curTemp);
55 void HandleDescCurDownTemp(uint32_t &level, int32_t curTemp);
56 void HandleDescMaxSizeTemp(uint32_t &level, int32_t curTemp);
57 void HandleDescMinSizeTemp(uint32_t &level, int32_t curTemp);
58 void HandleAscNextUpTemp(uint32_t &level, int32_t curTemp);
59 void HandleAscCurDownTemp(uint32_t &level, int32_t curTemp);
60 void HandleAscMaxSizeTemp(uint32_t &level, int32_t curTemp);
[all …]
/base/hiviewdfx/hilog_lite/command/
Dhilog_command.c55 .level = LOG_DEBUG,
83 bool SetLogLevel(unsigned char level) in SetLogLevel() argument
85 if (level >= LOG_DEBUG && level < HILOG_LEVEL_MAX) { in SetLogLevel()
86 g_hiviewConfig.level = level; in SetLogLevel()
87 printf("Set log level : %d \n", level); in SetLogLevel()
119 unsigned char level = LOG_DEBUG; in SetOutputLevel() local
121 level = LOG_DEBUG; in SetOutputLevel()
123 level = LOG_INFO; in SetOutputLevel()
125 level = LOG_WARN; in SetOutputLevel()
127 level = LOG_ERROR; in SetOutputLevel()
[all …]
/base/hiviewdfx/hilog_lite/frameworks/mini/
Dhiview_log.c33 static boolean CheckParameters(uint8 module, uint8 level);
67 static boolean CheckParameters(uint8 module, uint8 level) in CheckParameters() argument
69 if ((level < g_hiviewConfig.level) || (level < HILOG_COMPILE_LEVEL) || in CheckParameters()
109 void HiLogPrintf(uint8 module, uint8 level, const char *nums, const char *fmt, ...) in HiLogPrintf() argument
119 if (g_hiviewConfig.logSwitch == HIVIEW_FEATURE_OFF || !CheckParameters(module, level) || in HiLogPrintf()
127 pCommon->level = level; in HiLogPrintf()
146 void HILOG_HashPrintf(uint8 module, uint8 level, const char *nums, uint32 hash, ...) in HILOG_HashPrintf() argument
154 if (g_hiviewConfig.logSwitch == HIVIEW_FEATURE_OFF || !CheckParameters(module, level) || in HILOG_HashPrintf()
162 pCommon->level = SET_HASH_FLAG(level); in HILOG_HashPrintf()
228 return g_hiviewConfig.level; in HiLogGetLogLevel()
[all …]
/base/powermgr/thermal_manager/
DREADME_zh.md56 <level>
58 <item level="1" threshold="35000" threshold_clr="33000"/>
59 <item level="2" threshold="37000" threshold_clr="35000"/>
60 <item level="3" threshold="40000" threshold_clr="38000"/>
63 <item level="1" threshold="48000,60000" threshold_clr="45000,55000"/>
65 </level>
77 <config name="warm_base" level="1">
83 <config name="warm_base" level="2">
89 <config name="warm_base" level="3">
95 <config name="warm_safe" level="1">
[all …]
DREADME.md19 …temperature control functions, such as temperature detection, temperature level arbitration, and a…
57 <level>
59 <item level="1" threshold="35000" threshold_clr="33000"/>
60 <item level="2" threshold="37000" threshold_clr="35000"/>
61 <item level="3" threshold="40000" threshold_clr="38000"/>
64 <item level="1" threshold="48000,60000" threshold_clr="45000,55000"/>
66 </level>
78 <config name="warm_base" level="1">
84 <config name="warm_base" level="2">
90 <config name="warm_base" level="3">
[all …]
/base/powermgr/battery_statistics/services/native/src/entities/
Dphone_entity.cpp34 int64_t PhoneEntity::GetActiveTimeMs(StatsUtils::StatsType statsType, int16_t level) in GetActiveTimeMs() argument
39 if (level != StatsUtils::INVALID_VALUE) { in GetActiveTimeMs()
40 auto iter = phoneOnTimerMap_.find(level); in GetActiveTimeMs()
44 activeTimeMs, level); in GetActiveTimeMs()
55 if (level != StatsUtils::INVALID_VALUE) { in GetActiveTimeMs()
56 auto iter = phoneDataTimerMap_.find(level); in GetActiveTimeMs()
60 activeTimeMs, level); in GetActiveTimeMs()
138 …sHelper::ActiveTimer> PhoneEntity::GetOrCreateTimer(StatsUtils::StatsType statsType, int16_t level) in GetOrCreateTimer() argument
141 if (level <= StatsUtils::INVALID_VALUE || level > StatsUtils::RADIO_SIGNAL_BIN) { in GetOrCreateTimer()
148 auto onIter = phoneOnTimerMap_.find(level); in GetOrCreateTimer()
[all …]
Dscreen_entity.cpp33 int64_t ScreenEntity::GetActiveTimeMs(StatsUtils::StatsType statsType, int16_t level) in GetActiveTimeMs() argument
47 if (level != StatsUtils::INVALID_VALUE) { in GetActiveTimeMs()
48 auto iter = screenBrightnessTimerMap_.find(level); in GetActiveTimeMs()
53 activeTimeMs, level); in GetActiveTimeMs()
115 …Helper::ActiveTimer> ScreenEntity::GetOrCreateTimer(StatsUtils::StatsType statsType, int16_t level) in GetOrCreateTimer() argument
131 if (level <= StatsUtils::INVALID_VALUE || level > StatsUtils::SCREEN_BRIGHTNESS_BIN) { in GetOrCreateTimer()
135 auto iter = screenBrightnessTimerMap_.find(level); in GetOrCreateTimer()
137 … STATS_HILOGD(COMP_SVC, "Get screen brightness timer of brightness level: %{public}d", level); in GetOrCreateTimer()
141 … STATS_HILOGD(COMP_SVC, "Create screen brightness timer of brightness level: %{public}d", level); in GetOrCreateTimer()
144 … std::pair<int32_t, std::shared_ptr<StatsHelper::ActiveTimer>>(level, brightnessTimer)); in GetOrCreateTimer()
/base/update/updater/services/include/log/
Dlog.h34 #define LOG(level) UpdaterLogger(level).OutputUpdaterLog((__FILE_NAME__), (__LINE__)) argument
53 void SetLogLevel(int level);
58 extern "C" void Logger(int level, const char* fileName, int32_t line, const char* format, ...);
60 extern "C" void UpdaterHiLogger(int level, const char* fileName, int32_t line, const char* format, …
64 UpdaterLogger(int level) : level_(level) {} in UpdaterLogger() argument
95 ErrorCode(enum UpdaterErrorCode level) {} in ErrorCode() argument
/base/security/device_security_level/
DREADME.md9 The security level of an OpenHarmony device depends on the system security capabilities of the devi…
15 …ture for a single device. The architecture may vary depending on the risk level as well as the sof…
19 - SL1: SL1 is the lowest security level of OpenHarmony devices. Usually equipped with a lightweight…
21 …se devices must have basic anti-penetration capabilities. Devices of this level support a lightwei…
23 …ts are protected by a well-defined security policy model. Devices of this level must have certain …
25 …tration are required for any access to critical elements. Devices of this level have considerable …
27 …d against physical attacks and attacks simulated in labs. Devices at this level must have high-sec…
29 The security level of each device in a Super Device provides the decision-making criteria for proce…
51level of OpenHarmony devices is SL1. Device vendors can [customize](https://gitee.com/openharmony/…
61 …ption, DeviceSecurityInfo **info); | Requests the security level information of a d…
[all …]
/base/powermgr/thermal_manager/services/native/include/thermal_policy/
Dthermal_config_sensor_cluster.h30 uint32_t level; member
36 int32_t level; member
57 void AscJudgment(std::vector<LevelItem>& levItems, int32_t curTemp, uint32_t& level);
58 void DescJudgment(std::vector<LevelItem>& levItems, int32_t curTemp, uint32_t& level);
59 void CheckExtraCondition(const TypeTempMap& typeTempInfo, uint32_t& level);
60 bool IsTempRateTrigger(uint32_t& level);
61 bool IsAuxSensorTrigger(const TypeTempMap& typeTempInfo, uint32_t& level);
/base/hiviewdfx/hilog/services/hilogd/
Dkmsg_parser.cpp61 uint16_t level; in KmsgLevelMap() local
66 level = LOG_FATAL; in KmsgLevelMap()
69 level = LOG_ERROR; in KmsgLevelMap()
73 level = LOG_WARN; in KmsgLevelMap()
76 level = LOG_INFO; in KmsgLevelMap()
79 level = LOG_DEBUG; in KmsgLevelMap()
82 return level; in KmsgLevelMap()
90 static void ParseHeader(std::string& str, uint8_t& level, std::string& tag) in ParseHeader() argument
97 level = strtoul(levelStr.c_str(), nullptr, DEC); in ParseHeader()
133 msg.level = KmsgLevelMap(mLevel); in ParseKmsg()
/base/hiviewdfx/hilog/frameworks/hilog_ndk/
Dhilog_ndk.c21 int OH_LOG_Print(LogType type, LogLevel level, unsigned int domain, const char *tag, const char *fm… in OH_LOG_Print() argument
26 ret = HiLogPrintArgs(type, level, domain, tag, fmt, ap); in OH_LOG_Print()
31 bool OH_LOG_IsLoggable(unsigned int domain, const char *tag, LogLevel level) in OH_LOG_IsLoggable() argument
33 return HiLogIsLoggable(domain, tag, level); in OH_LOG_IsLoggable()
/base/hiviewdfx/hilog/frameworks/libhilog/
Dhilog_printf.cpp164 .level = header.level, in PrintLog()
187 int HiLogPrintArgs(const LogType type, const LogLevel level, const unsigned int domain, const char … in HiLogPrintArgs() argument
193 if (!HiLogIsLoggable(domain, tag, level)) { in HiLogPrintArgs()
264 header.level = level; in HiLogPrintArgs()
283 if (level == LOG_FATAL) { in HiLogPrintArgs()
297 uint16_t level = header.level; in HiLogPrintArgs() local
298 header.level = LOG_WARN; in HiLogPrintArgs()
305 header.level = level; in HiLogPrintArgs()
314 int HiLogPrint(LogType type, LogLevel level, unsigned int domain, const char *tag, const char *fmt,… in HiLogPrint() argument
319 ret = HiLogPrintArgs(type, level, domain, tag, fmt, ap); in HiLogPrint()
[all …]
/base/hiviewdfx/hilog/platform/interface/native/
Dlog.cpp34 void LogPrint(LogLevel level, const char* fmt, ...) in LogPrint() argument
38 LogPrint(level, fmt, args); in LogPrint()
46 void LogPrint(LogLevel level, const char* fmt, va_list args) in LogPrint() argument
51 …__android_log_vprint(LOG_LEVEL[static_cast<int>(level)], DFX_PLATFORM_LOG_TAG, newFmt.c_str(), arg… in LogPrint()
61 void LogPrint(LogLevel level, const char* fmt, va_list args) in LogPrint() argument
71 os_log_type_t logType = LOG_TYPE[static_cast<int>(level)]; in LogPrint()
72 const char* levelName = LOG_TYPE_NAME[static_cast<int>(level)]; in LogPrint()
/base/startup/init/services/begetctl/
Dbegetctl_cmd.c63 unsigned int level = strtoul(argv[1], 0, 10); // 10 is decimal in SetInitLogLevelFromParam() local
68 if ((level >= INIT_DEBUG) && (level <= INIT_FATAL)) { in SetInitLogLevelFromParam()
72 printf("Failed to set log level %s. \n", logLevelStr[level]); in SetInitLogLevelFromParam()
74 printf("Success to set log level %s. \n", logLevelStr[level]); in SetInitLogLevelFromParam()
84 int level = GetIntParameter(INIT_DEBUG_LEVEL, (int)INIT_ERROR); in GetInitLogLevelFromParam() local
85 if ((level >= INIT_DEBUG) && (level <= INIT_FATAL)) { in GetInitLogLevelFromParam()
87 printf("Init log level: %s \n", logLevelStr[level]); in GetInitLogLevelFromParam()
/base/security/crypto_framework/common/src/
Dlog.c22 static void HcfOutPrint(const char *buf, HcfLogLevel level) in HcfOutPrint() argument
24 switch (level) { in HcfOutPrint()
42 void HcfLogPrint(HcfLogLevel level, const char *funName, const char *fmt, ...) in HcfLogPrint() argument
58 HcfOutPrint(outStr, level); in HcfLogPrint()
/base/powermgr/thermal_manager/test/systemtest/include/
Dthermal_mgr_interface_test.h52 virtual bool GetThermalLevel(ThermalLevel level) override;
59 virtual bool GetThermalLevel(ThermalLevel level) override;
66 virtual bool GetThermalLevel(ThermalLevel level) override;
73 virtual bool GetThermalLevel(ThermalLevel level) override;
80 virtual bool GetThermalLevel(ThermalLevel level) override;
/base/security/device_security_level/interfaces/inner_api/src/lite/
Ddevice_security_info.c95 static int32_t GetDeviceSecurityLevelValueImpl(const DeviceSecurityInfo *info, int32_t *level) in GetDeviceSecurityLevelValueImpl() argument
97 if (info == NULL || level == NULL) { in GetDeviceSecurityLevelValueImpl()
104 *level = (int32_t)(info->level); in GetDeviceSecurityLevelValueImpl()
125 int32_t GetDeviceSecurityLevelValue(const DeviceSecurityInfo *info, int32_t *level) in GetDeviceSecurityLevelValue() argument
127 return GetDeviceSecurityLevelValueImpl(info, level); in GetDeviceSecurityLevelValue()

12345678910>>...13