| /base/powermgr/thermal_manager/application/protector/src/policy/ |
| D | protector_thermal_zone_info.cpp | 25 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/ |
| D | thermal_config_sensor_cluster.cpp | 41 uint32_t level = 0; in UpdateThermalLevel() local 44 if (!IsAuxSensorTrigger(typeTempInfo, level)) { in UpdateThermalLevel() 50 if (!IsTempRateTrigger(typeTempInfo, level)) { in UpdateThermalLevel() 55 CalculateSensorLevel(typeTempInfo, levelList, level); in UpdateThermalLevel() 66 std::vector<uint32_t> &levelList, uint32_t &level) in CalculateSensorLevel() argument 75 level = latestLevel_; in CalculateSensorLevel() 77 DescJudgment(sensorInfo->second, iter->second, level); in CalculateSensorLevel() 81 level = 0; in CalculateSensorLevel() 85 if (IsAuxSensorTrigger(typeTempInfo, level)) { in CalculateSensorLevel() 89 levelList.push_back(level); in CalculateSensorLevel() [all …]
|
| /base/security/device_security_level/ |
| D | README.md | 1 # Device Security Level Management 7 …device may threaten the security of the Super Device. The Device Security Level Management (DSLM) … 9 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… [all …]
|
| /base/powermgr/thermal_manager/services/native/test/unittest/src/ |
| D | thermal_action_report_test.cpp | 187 std::string level = levelValue; in GetThermalLevel() local 188 int32_t value = ConvertInt(level); in GetThermalLevel() 194 std::string ThermalActionReportTest::GetActionValue(const std::string& actionName, uint32_t level) in GetActionValue() argument 196 …HERMAL_HILOGD(LABEL_TEST, "action name = %{public}s, level = %{public}d", actionName.c_str(), leve… in GetActionValue() 199 if (!g_configParser->GetActionPolicy(policyCfgName, level, vAction)) { in GetActionValue() 354 void ThermalActionReportTest::ThermalActionTriggered(const std::string& actionName, int32_t level, in ThermalActionTriggered() argument 363 std::string value = GetActionValue(actionName, level); in ThermalActionTriggered() 428 int32_t level = ThermalActionReportTest::GetThermalLevel(expectLevel); variable 431 ThermalActionReportTest::ThermalActionTriggered(CPU_BIG_ACTION_NAME, level, actualDumpInfo); 432 ThermalActionReportTest::ThermalActionTriggered(CPU_MED_ACTION_NAME, level, actualDumpInfo); [all …]
|
| /base/hiviewdfx/hilog_lite/command/ |
| D | hilog_command.c | 55 .level = LOG_DEBUG, 65 printf("Usage: %s [-h | --help] [-L <level> | --level=<level>] [--silence]\n", tag); in HilogHelpProc() 70 printf("-L <level>, --level=<level> Outputs logs at a specific level\n"); in HilogHelpProc() 71 printf(" Values of level :\n"); in HilogHelpProc() 77 printf(" auto, set log level with predefined macro\n"); in HilogHelpProc() 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 [all …]
|
| /base/notification/distributed_notification_service/frameworks/core/common/include/ |
| D | ans_log_wrapper.h | 45 * @brief Judge the level of the log. 47 * @param level Indicates the level of the log. 50 static bool JudgeLevel(const AnsLogLevel &level); 53 * @brief Set the level of the log. 55 * @param level Indicates the level of the log. 57 static void SetLogLevel(const AnsLogLevel &level) in SetLogLevel() argument 59 level_ = level; in SetLogLevel() 63 * @brief Get the level of the log. 65 * @return Indicates the level of the log. 84 #define PRINT_LOG(LEVEL, Level, fmt, ...) \ argument [all …]
|
| /base/notification/common_event_service/frameworks/common/log/include/ |
| D | event_log_wrapper.h | 45 * Judges the level of the log. 47 * @param level Indicates the level of the log. 50 static bool JudgeLevel(const EventLogLevel &level); 53 * Sets the level of the log. 55 * @param level Indicates the level of the log. 57 static void SetLogLevel(const EventLogLevel &level) in SetLogLevel() argument 59 level_ = level; in SetLogLevel() 63 * Gets the level of the log. 65 * @return Returns the level of the log. 84 #define PRINT_LOG(LEVEL, Level, fmt, ...) \ argument [all …]
|
| /base/security/device_security_level/interfaces/inner_api/include/ |
| D | device_security_info.h | 30 * Callback for requesting device security level information. 35 * Synchronously requests for the device security level of the local/neighbor devices. 39 * @param [out] info Information containing the device security level. 46 * Asynchronously requests for the device security level of the local/neighbor devices. 50 * @param [in] info Callback used to return the device security level information. 57 * Releases device security level information. 58 * @param info Device security level information in RequestDeviceSecurityInfo. 63 * Gets the device security level from DeviceSecurityInfo. 64 * @param [in] info Device security level information. 65 * @param [out] level Device security level. [all …]
|
| /base/powermgr/thermal_manager/ |
| D | README.md | 18 …temperature control functions, such as temperature detection, temperature level arbitration, and a… 56 <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"> [all …]
|
| D | thermalmgr.yaml | 17 __BASE: {type: STATISTIC, level: MINOR, tag: PowerStats, desc: device temperature} 18 NAME: {type: STRING, desc: device temperature level} 19 TEMPERATURE: {type: INT32, desc: device temperature level} 22 __BASE: {type: STATISTIC, level: MINOR, tag: PowerStats, desc: temperature changed} 23 LEVEL: {type: INT32, desc: level} 26 __BASE: {type: STATISTIC, level: MINOR, tag: PowerStats, desc: thermal action triggered}
|
| /base/powermgr/thermal_manager/application/protector/include/policy/ |
| D | protector_thermal_zone_info.h | 28 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/powermgr/battery_statistics/services/native/src/entities/ |
| D | phone_entity.cpp | 34 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() 43 … STATS_HILOGD(COMP_SVC, "Get phone on time: %{public}" PRId64 "ms of signal level: %{public}d", in GetActiveTimeMs() 44 activeTimeMs, level); in GetActiveTimeMs() 55 if (level != StatsUtils::INVALID_VALUE) { in GetActiveTimeMs() 56 auto iter = phoneDataTimerMap_.find(level); in GetActiveTimeMs() 59 … STATS_HILOGD(COMP_SVC, "Get phone data time: %{public}" PRId64 "ms of signal level: %{public}d", in GetActiveTimeMs() 60 activeTimeMs, level); in GetActiveTimeMs() 138 …sHelper::ActiveTimer> PhoneEntity::GetOrCreateTimer(StatsUtils::StatsType statsType, int16_t level) in GetOrCreateTimer() argument [all …]
|
| /base/telephony/core_service/ |
| D | hisysevent.yaml | 17 __BASE: {type: BEHAVIOR, level: MINOR, tag: PowerStats, desc: signal level} 19 LEVEL: {type: INT32, desc: signal strength level} 22 __BASE: {type: BEHAVIOR, level: MINOR, tag: PowerStats, desc: network register} 29 __BASE: {type: BEHAVIOR, level: MINOR, tag: PowerStats, desc: default cellular data slot id} 33 __BASE: {type: BEHAVIOR, level: MINOR, tag: PowerStats, desc: sim state} 38 __BASE: {type: FAULT, level: CRITICAL, tag: PowerStats, desc: receive sms failed event} 46 __BASE: {type: FAULT, level: CRITICAL, tag: PowerStats, desc: send sms failed event} 54 __BASE: {type: BEHAVIOR, level: MINOR, tag: PowerStats, desc: send sms event} 59 __BASE: {type: BEHAVIOR, level: MINOR, tag: PowerStats, desc: receive sms event} 64 __BASE: {type: BEHAVIOR, level: MINOR, tag: PowerStats, desc: data connection status} [all …]
|
| /base/powermgr/thermal_manager/services/native/profile/ |
| D | thermal_service_config.xml | 23 <level> 25 … <item level="1" threshold="40000,38000,30000,40000" threshold_clr="38000,36000,28000,38000"/> 26 … <item level="2" threshold="43000,41000,32000,42000" threshold_clr="41000,39000,30000,40000"/> 27 … <item level="3" threshold="46000,44000,34000,44000" threshold_clr="44000,42000,32000,42000"/> 28 … <item level="4" threshold="48000,46000,36000,46000" threshold_clr="46000,44000,34000,44000"/> 31 <item level="1" threshold="40000" threshold_clr="38000" aux_trigger_range="5000_35000"/> 32 <item level="2" threshold="43000" threshold_clr="41000" aux_trigger_range="5000_35000"/> 35 …<item level="1" threshold="75000,30000" threshold_clr="71000,28000" aux_trigger_range="0_900000,0_… 38 <item level="1" threshold="40000" threshold_clr="38000" temp_rise_rate="1.5"/> 39 <item level="2" threshold="43000" threshold_clr="41000" temp_rise_rate="1.5"/> [all …]
|
| /base/powermgr/thermal_manager/application/protector/profile/ |
| D | thermal_kernel_config.xml | 8 <item level="1" threshold="35000" threshold_clr="32000"> 13 <item level="2" threshold="40000" threshold_clr="37000"> 18 <item level="3" threshold="45000" threshold_clr="42000"> 25 <item level="1" threshold="35000" threshold_clr="32000"> 28 <item level="2" threshold="40000" threshold_clr="37000"> 31 <item level="3" threshold="45000" threshold_clr="42000"> 36 <item level="1" threshold="-50000" threshold_clr="-48000"> 39 <item level="2" threshold="-53000" threshold_clr="-52000"> 42 <item level="3" threshold="-58000" threshold_clr="-55000">
|
| /base/powermgr/thermal_manager/interfaces/innerkits/native/include/ |
| D | thermal_level_info.h | 25 * @brief cool level 30 * @brief NORMAL level 35 * @brief warm level 40 * @brief hot level 45 * @brief overheated level 50 * @brief warning level 55 * @brief emergency level, it will make device shutdown 63 * @brief The thermal level changed common event code.
|
| /base/startup/init/services/begetctl/ |
| D | setloglevel.c | 28 if (argc != 2) { // 2 is set log level parameter number in SetInitLogLevelFromParam() 33 unsigned int level = strtoul(argv[1], 0, 10); // 10 is decimal in SetInitLogLevelFromParam() local 38 if ((level >= INIT_DEBUG) && (level <= INIT_FATAL)) { in SetInitLogLevelFromParam() 41 … printf("Failed to set log level by param \"persist.init.debug.loglevel\" %s. \n", argv[1]); in SetInitLogLevelFromParam() 43 … printf("Success to set log level by param \"persist.init.debug.loglevel\" %s. \n", argv[1]); in SetInitLogLevelFromParam() 46 printf("Set init log level in invailed parameter %s. \n", argv[1]); in SetInitLogLevelFromParam() 57 …printf("Success to get init log level: %s from param \"persist.init.debug.loglevel\". \n", logLeve… in GetInitLogLevelFromParam() 59 printf("Failed to get init log level from param, keep the system origin log level. \n"); in GetInitLogLevelFromParam() 67 …{"setloglevel", SetInitLogLevelFromParam, "set init log level 0:debug, 1:info, 2:warning, 3:err, 4… in MODULE_CONSTRUCTOR() 68 "setloglevel level", NULL}, in MODULE_CONSTRUCTOR() [all …]
|
| /base/time/time_service/framework/js/napi/system_date_time/test/unittest/src/ |
| D | SystemDateTimeJsunit.test.js | 28 * @tc.level : Level 0 46 * @tc.level : Level 0 64 * @tc.level : Level 0 82 * @tc.level : Level 0 100 * @tc.level : Level 0 118 * @tc.level : Level 0 136 * @tc.level : Level 0 154 * @tc.level : Level 0 172 * @tc.level : Level 0 190 * @tc.level : Level 0 [all …]
|
| D | SystemDateTimeGets.test.js | 39 * @tc.level : Level 0 62 * @tc.level : Level 0 87 * @tc.level : Level 0 107 * @tc.level : Level 0 127 * @tc.level : Level 0 147 * @tc.level : Level 0 167 * @tc.level : Level 0 189 * @tc.level : Level 0 221 * @tc.level : Level 0 253 * @tc.level : Level 0
|
| /base/powermgr/thermal_manager/services/native/src/thermal_action/action/ |
| D | action_thermal_level.cpp | 127 uint32_t ActionThermalLevel::LevelRequest(int32_t level) in LevelRequest() argument 129 THERMAL_HILOGD(COMP_SVC, "level = %{public}d", level); in LevelRequest() 130 if (level_ != level) { in LevelRequest() 131 THERMAL_HILOGI(COMP_SVC, "level changed, notify"); in LevelRequest() 132 NotifyThermalLevelChanged(level); in LevelRequest() 138 * @brief Callback of subscription temp level 140 * @param callback Thermal level callback object 195 * @brief notify level 197 * @param level 199 void ActionThermalLevel::NotifyThermalLevelChanged(int32_t level) in NotifyThermalLevelChanged() argument [all …]
|
| /base/time/time_service/framework/js/napi/system_time/test/unittest/src/ |
| D | SystemTimeJsunit.test.js | 28 * @tc.level : Level 0 46 * @tc.level : Level 0 64 * @tc.level : Level 0 82 * @tc.level : Level 0 100 * @tc.level : Level 0 118 * @tc.level : Level 0 136 * @tc.level : Level 0 154 * @tc.level : Level 0 172 * @tc.level : Level 0 190 * @tc.level : Level 0 [all …]
|
| D | SystemTimeGets.test.js | 39 * @tc.level : Level 0 62 * @tc.level : Level 0 87 * @tc.level : Level 0 107 * @tc.level : Level 0 127 * @tc.level : Level 0 147 * @tc.level : Level 0 167 * @tc.level : Level 0 189 * @tc.level : Level 0 219 * @tc.level : Level 0 250 * @tc.level : Level 0
|
| /base/hiviewdfx/hilog_lite/frameworks/mini/ |
| D | hiview_log.c | 33 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/interfaces/kits/js/ |
| D | @ohos.thermal.d.ts | 19 * Provides thermal level-related callback and query APIs to obtain the information required for 21 * {@link subscribeThermalLevel}: subscribes to callbacks of thermal level changes. 22 * {@link getThermalLevel}: obtains the thermal level of the system in real time. 68 * Subscribes to callbacks of thermal level changes. 70 * @param callback Callback of thermal level changes. 71 * @return Returns the thermal level. 77 * Unsubscribes from the callbacks of thermal level changes. 79 * @param callback Callback of thermal level changes. 86 * Obtains the current thermal level. 88 * @return Returns the thermal level.
|
| /base/time/time_service/framework/js/napi/system_timer/test/unittest/src/ |
| D | SystemTimerJsunitCallback.test.js | 29 * @tc.level : Level 0 60 * @tc.level : Level 0 91 * @tc.level : Level 0 122 * @tc.level : Level 0 153 * @tc.level : Level 0 184 * @tc.level : Level 0 215 * @tc.level : Level 0 246 * @tc.level : Level 0 277 * @tc.level : Level 0 308 * @tc.level : Level 0 [all …]
|