Home
last modified time | relevance | path

Searched full:level (Results 1 – 25 of 897) sorted by relevance

12345678910>>...36

/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/test/unittest/src/
Dthermal_config_sensor_cluster_test.cpp72 item.level = 2;
80 item.level = 1;
128 item2.level = 999;
133 uint32_t level = 1; variable
137 cluster.AscJudgment(levItems1, curTemp, level, type, sensorType);
138 EXPECT_EQ(level, item2.level);
144 level = 1;
145 cluster.AscJudgment(levItems1, curTemp, level, type, sensorType);
146 EXPECT_NE(level, item2.level);
150 levItems1.at(INDEX0).level = 999;
[all …]
Dthermal_action_report_test.cpp90 std::string ThermalActionReportTest::GetActionValue(const std::string& actionName, uint32_t level) in GetActionValue() argument
92 …HERMAL_HILOGI(LABEL_TEST, "action name = %{public}s, level = %{public}d", actionName.c_str(), leve… in GetActionValue()
95 if (!g_configParser->GetActionPolicy(POLICY_CFG_NAME, level, vAction)) { in GetActionValue()
251 const std::string& actionName, int32_t level, const std::string& dumpInfo, bool isReversed) in ThermalActionTriggered() argument
259 std::string value = GetActionValue(actionName, level); in ThermalActionTriggered()
323 int32_t level = ThermalActionReportTest::GetThermalLevel(expectLevel); variable
328 ThermalActionReportTest::ThermalActionTriggered(CPU_BIG_ACTION_NAME, level, actualDumpInfo);
329 ThermalActionReportTest::ThermalActionTriggered(CPU_MED_ACTION_NAME, level, actualDumpInfo);
330 ThermalActionReportTest::ThermalActionTriggered(CPU_LIT_ACTION_NAME, level, actualDumpInfo);
331 ThermalActionReportTest::ThermalActionTriggered(GPU_ACTION_NAME, level, actualDumpInfo);
[all …]
/base/powermgr/thermal_manager/services/native/src/thermal_policy/
Dthermal_config_sensor_cluster.cpp44 if (sensorInfo->second.at(i).level != expectedLev) { in CheckStandard()
120 uint32_t level = latestLevel_; in CalculateSensorLevel() local
122 DescJudgment(sensorInfo->second, iter->second, level, typeTempInfo, sensorInfo->first); in CalculateSensorLevel()
123 levelList.push_back(level); in CalculateSensorLevel()
125 AscJudgment(sensorInfo->second, iter->second, level, typeTempInfo, sensorInfo->first); in CalculateSensorLevel()
126 levelList.push_back(level); in CalculateSensorLevel()
131 …ermalConfigSensorCluster::AscendLevelToThreshold(std::vector<LevelItem>& levItems, uint32_t& level, in AscendLevelToThreshold() argument
134 for (uint32_t i = level; i < levItems.size(); i++) { in AscendLevelToThreshold()
136 !CheckExtraCondition(typeTempInfo, levItems.at(i).level, type, levItems, true)) { in AscendLevelToThreshold()
139 level = levItems.at(i).level; in AscendLevelToThreshold()
[all …]
/base/security/device_security_level/
DREADME.md1 # 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/hiviewdfx/hilog_lite/command/
Dhilog_command.c55 .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/tee/tee_os_kernel/kernel/include/mm/
Dcommon_pte.h48 * @param level [In] The level in page table where the @pte reside. WARNING:
49 * Currently, the last level PTE is encoded as level 3, and the levels above
50 * it are encoded as level 2, 1, 0(if the architecture has 4-level page table,
51 * otherwise the smallest level is 1). But levels except 3 is not used in this
52 * function now. And if we would implement 5-level page tables in the future,
56 void parse_pte_to_common(pte_t *pte, unsigned int level,
62 * @param level [In] The level in page table where the @dest reside. WARNING:
63 * Currently, the last level PTE is encoded as level 3, and the levels above
64 * it are encoded as level 2, 1, 0(if the architecture has 4-level page table,
65 * otherwise the smallest level is 1). But levels except 3 is not used in this
[all …]
/base/security/code_signature/test/unittest/
Djit_code_sign_test.cpp154 for (JitBufferIntegrityLevel level = MIN_LEVEL; variable
155level <= MAX_LEVEL; level = static_cast<JitBufferIntegrityLevel>(static_cast<int>(level) + 1)) {
182 for (JitBufferIntegrityLevel level = MIN_LEVEL; variable
183level <= MAX_LEVEL; level = static_cast<JitBufferIntegrityLevel>(static_cast<int>(level) + 1)) {
205 for (JitBufferIntegrityLevel level = MIN_LEVEL; variable
206 level <= MAX_LEVEL;
207 level = static_cast<JitBufferIntegrityLevel>(static_cast<int>(level) + 1)) {
247 for (JitBufferIntegrityLevel level = MIN_LEVEL; variable
248 level <= MAX_LEVEL;
249 level = static_cast<JitBufferIntegrityLevel>(static_cast<int>(level) + 1)) {
[all …]
/base/security/device_security_level/interfaces/inner_api/include/
Ddevice_security_info.h30 * 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/hiviewdfx/hilog/platform/
Dhilog_printf.cpp21 static OHOS::Ace::LogLevel ConvertLogLevel(LogLevel level) in ConvertLogLevel() argument
23 switch (level) { in ConvertLogLevel()
39 int HiLogPrintArgs(const LogType type, const LogLevel level, const unsigned int domain, const char … in HiLogPrintArgs() argument
42 OHOS::HiviewDFX::Hilog::Platform::LogPrint(ConvertLogLevel(level), fmt, ap); in HiLogPrintArgs()
46 int HiLogPrint(LogType type, LogLevel level, unsigned int domain, const char *tag, const char *fmt,… in HiLogPrint() argument
51 ret = HiLogPrintArgs(type, level, domain, tag, fmt, ap); in HiLogPrint()
56 void HiLogSetAppMinLogLevel(LogLevel level) in HiLogSetAppMinLogLevel() argument
58 g_logLevel = level; in HiLogSetAppMinLogLevel()
61 bool HiLogIsLoggable(unsigned int domain, const char *tag, LogLevel level) in HiLogIsLoggable() argument
63 …if ((level <= LOG_LEVEL_MIN) || (level >= LOG_LEVEL_MAX) || (level < g_logLevel) || tag == nullptr… in HiLogIsLoggable()
/base/usb/usb_manager/test/native/unittest/js/usb_api_param_err_js_unit_test/
DUsbApiParamErrJsUnit.js19 import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect, TestType, Size, Level } …
160 * @tc.level : Level 3
162 … it('testGetDevicesParamErr001', TestType.FUNCTION | Size.MEDIUMTEST | Level.LEVEL3, function () {
184 * @tc.level : Level 3
186 … it('testGetDevicesParamErr002', TestType.FUNCTION | Size.MEDIUMTEST | Level.LEVEL3, function () {
208 * @tc.level : Level 3
210 … it('testGetDevicesParamErr003', TestType.FUNCTION | Size.MEDIUMTEST | Level.LEVEL3, function () {
232 * @tc.level : Level 3
234 it('testHasRightParamErr001', TestType.FUNCTION | Size.MEDIUMTEST | Level.LEVEL3, function () {
256 * @tc.level : Level 3
[all …]
/base/powermgr/thermal_manager/
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/thermal_manager/test/resource/system_test/push_xml/
Dthermal_service_config.xml23 <level>
25 … <item level="1" threshold="40500,38000,30000,40000" threshold_clr="38000,36000,28000,38000"/>
26 … <item level="2" threshold="43500,41000,32000,42000" threshold_clr="41000,39000,30000,40000"/>
27 … <item level="3" threshold="46500,44000,34000,44000" threshold_clr="44000,42000,32000,42000"/>
28 … <item level="4" threshold="48500,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/battery_statistics/services/native/src/entities/
Dphone_entity.cpp33 int64_t PhoneEntity::GetActiveTimeMs(StatsUtils::StatsType statsType, int16_t level) in GetActiveTimeMs() argument
38 if (level != StatsUtils::INVALID_VALUE) { in GetActiveTimeMs()
39 auto iter = phoneOnTimerMap_.find(level); in GetActiveTimeMs()
42 … STATS_HILOGD(COMP_SVC, "Get phone on time: %{public}" PRId64 "ms of signal level: %{public}d", in GetActiveTimeMs()
43 activeTimeMs, level); in GetActiveTimeMs()
54 if (level != StatsUtils::INVALID_VALUE) { in GetActiveTimeMs()
55 auto iter = phoneDataTimerMap_.find(level); in GetActiveTimeMs()
58 … STATS_HILOGD(COMP_SVC, "Get phone data time: %{public}" PRId64 "ms of signal level: %{public}d", in GetActiveTimeMs()
59 activeTimeMs, level); in GetActiveTimeMs()
138 …sHelper::ActiveTimer> PhoneEntity::GetOrCreateTimer(StatsUtils::StatsType statsType, int16_t level) in GetOrCreateTimer() argument
[all …]
/base/msdp/device_status/
Dhisysevent.yaml17 __BASE: {type: STATISTIC, level: MINOR, tag: deviceStatus, desc: subscribes to the device status}
23 …__BASE: {type: STATISTIC, level: MINOR, tag: deviceStatus, desc: unsubscribes from the device stat…
29 __BASE: {type: BEHAVIOR, level: MINOR, tag: deviceStatus, desc: prepare coordination}
35 __BASE: {type: FAULT, level: MINOR, tag: deviceStatus, desc: prepare coordination}
41 __BASE: {type: BEHAVIOR, level: MINOR, tag: deviceStatus, desc: unprepare coordination}
46 __BASE: {type: FAULT, level: MINOR, tag: deviceStatus, desc: unprepare coordination}
51 __BASE: {type: BEHAVIOR, level: MINOR, tag: deviceStatus, desc: start remote coordination}
57 __BASE: {type: FAULT, level: MINOR, tag: deviceStatus, desc: start remote coordination}
63 __BASE: {type: BEHAVIOR, level: MINOR, tag: deviceStatus, desc: Start Remote Accordination Result}
69 __BASE: {type: BEHAVIOR, level: MINOR, tag: deviceStatus, desc: stop remote coordination}
[all …]
/base/powermgr/thermal_manager/interfaces/inner_api/native/include/
Dthermal_level_info.h25 * @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
60 * @brief escape level
68 * @brief The thermal level changed common event code.
/base/telephony/core_service/
Dhisysevent.yaml17 __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: BEHAVIOR, level: MINOR, tag: PowerStats, desc: airplane mode change event}
42 __BASE: {type: BEHAVIOR, level: MINOR, tag: PowerStats, desc: vonr swtich state change event}
46 __BASE: {type: FAULT, level: CRITICAL, tag: PowerStats, desc: receive sms failed event}
54 __BASE: {type: FAULT, level: CRITICAL, tag: PowerStats, desc: send sms failed event}
62 __BASE: {type: BEHAVIOR, level: MINOR, tag: PowerStats, desc: send sms event}
[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/powermgr/thermal_manager/services/native/profile/
Dthermal_service_config.xml24 <level>
27 <item level="1" threshold="40000" threshold_clr="38000"/>
28 <item level="2" threshold="43000" threshold_clr="41000"/>
31 … <item level="1" threshold="40000,38000,30000,40000" threshold_clr="38000,36000,28000,38000"/>
32 … <item level="2" threshold="43000,41000,32000,42000" threshold_clr="41000,39000,30000,40000"/>
33 … <item level="3" threshold="46000,44000,34000,44000" threshold_clr="44000,42000,32000,42000"/>
34 … <item level="4" threshold="48000,46000,36000,46000" threshold_clr="46000,44000,34000,44000"/>
37 <item level="1" threshold="40000" threshold_clr="38000" aux_trigger_range="5000_35000"/>
38 <item level="2" threshold="43000" threshold_clr="41000" aux_trigger_range="5000_35000"/>
39 <item level="3" threshold="45000" threshold_clr="44000" aux_trigger_range="5000_35000"/>
[all …]
/base/usb/usb_manager/test/native/unittest/js/
DUsbApiParamExceJsunit.test.js19 import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect, TestType, Size, Level } …
143 * @tc.level : Level 3
145 it('testHasRightParamEx001', TestType.FUNCTION | Size.MEDIUMTEST | Level.LEVEL3, function () {
167 * @tc.level : Level 3
169 it('testHasRightParamEx002', TestType.FUNCTION | Size.MEDIUMTEST | Level.LEVEL3, function () {
195 * @tc.level : Level 3
197 …it('testRequestRightParamEx001', TestType.FUNCTION | Size.MEDIUMTEST | Level.LEVEL3, async functio…
219 * @tc.level : Level 3
221 …it('testRequestRightParamEx002', TestType.FUNCTION | Size.MEDIUMTEST | Level.LEVEL3, async functio…
247 * @tc.level : Level 3
[all …]
/base/hiviewdfx/hilog/frameworks/hilog_ndk/
Dhilog_ndk.c26 int OH_LOG_Print(LogType type, LogLevel level, unsigned int domain, const char *tag, const char *fm… in OH_LOG_Print() argument
31 ret = HiLogPrintArgs(type, level, domain, tag, fmt, ap); in OH_LOG_Print()
36 int OH_LOG_PrintMsg(LogType type, LogLevel level, unsigned int domain, const char *tag, const char … in OH_LOG_PrintMsg() argument
38 return OH_LOG_Print(type, level, domain, tag, "%{public}s", message); in OH_LOG_PrintMsg()
41 int OH_LOG_PrintMsgByLen(LogType type, LogLevel level, unsigned int domain, const char *tag, size_t… in OH_LOG_PrintMsgByLen() argument
57 return OH_LOG_Print(type, level, domain, newTag, "%{public}s", newMessage); in OH_LOG_PrintMsgByLen()
60 int OH_LOG_VPrint(LogType type, LogLevel level, unsigned int domain, const char *tag, const char *f… in OH_LOG_VPrint() argument
62 return HiLogPrintArgs(type, level, domain, tag, fmt, ap); in OH_LOG_VPrint()
65 bool OH_LOG_IsLoggable(unsigned int domain, const char *tag, LogLevel level) in OH_LOG_IsLoggable() argument
67 return HiLogIsLoggable(domain, tag, level); in OH_LOG_IsLoggable()
[all …]
/base/time/time_service/test/unittest/js_test/permission/
DSystemTimerException.test.js66 * @tc.level: Level 1
88 * @tc.level: Level 1
107 * @tc.level: Level 1
127 * @tc.level: Level 1
147 * @tc.level: Level 1
167 * @tc.level: Level 1
190 * @tc.level: Level 1
208 * @tc.level: Level 1
228 * @tc.level: Level 1
258 * @tc.level: Level 1
[all …]
/base/hiviewdfx/hiview/base/test/resource/config/
Dhisysevent_with_collect.def6 "level": "CRITICAL",
16 "level": "CRITICAL",
26 "level": "CRITICAL",
35 "level": "CRITICAL",
46 "level": "CRITICAL",
56 "level": "CRITICAL",
66 "level": "CRITICAL",
75 "level": "CRITICAL",
/base/hiviewdfx/hilog/interfaces/native/innerkits/include/hilog/
Dlog_c.h60 /* Log level */
62 /* min log level */
74 /* max log level */
79 * @brief Get log of fatal level
89 int HiLogPrint(LogType type, LogLevel level, unsigned int domain, const char *tag, const char *fmt,…
93 * @brief Hilog C interface of different log level
111 * @param level enum:LogLevel
115 #define HILOG_IMPL(type, level, domain, tag, ...) HiLogPrint(type, level, domain, tag, ##__VA_ARGS_… argument
118 * @brief Hilog C interface of different log level in release version
130 * @param level enum:LogLevel
[all …]
/base/hiviewdfx/hitrace/interfaces/native/innerkits/src/
Dhitrace_meter_c.c44 void HiTraceStartTraceEx(HiTraceOutputLevel level, uint64_t tag, const char* name, const char* cust… in HiTraceStartTraceEx() argument
46 StartTraceExCwrapper(level, tag, name, customArgs); in HiTraceStartTraceEx()
49 void HiTraceFinishTraceEx(HiTraceOutputLevel level, uint64_t tag) in HiTraceFinishTraceEx() argument
51 FinishTraceExCwrapper(level, tag); in HiTraceFinishTraceEx()
53 void HiTraceStartAsyncTraceEx(HiTraceOutputLevel level, uint64_t tag, const char* name, int32_t tas… in HiTraceStartAsyncTraceEx() argument
56 StartAsyncTraceExCwrapper(level, tag, name, taskId, customCategory, customArgs); in HiTraceStartAsyncTraceEx()
58 void HiTraceFinishAsyncTraceEx(HiTraceOutputLevel level, uint64_t tag, const char* name, int32_t ta… in HiTraceFinishAsyncTraceEx() argument
60 FinishAsyncTraceExCwrapper(level, tag, name, taskId); in HiTraceFinishAsyncTraceEx()
62 void HiTraceCountTraceEx(HiTraceOutputLevel level, uint64_t tag, const char* name, int64_t count) in HiTraceCountTraceEx() argument
64 CountTraceExCwrapper(level, tag, name, count); in HiTraceCountTraceEx()

12345678910>>...36