Home
last modified time | relevance | path

Searched refs:MAX_PATH (Results 1 – 15 of 15) sorted by relevance

/base/powermgr/thermal_manager/test/systemtest/src/
Dthermal_mgr_system_test.cpp99 char bufTemp[MAX_PATH] = {0}; in InitNode()
111 …ret = snprintf_s(bufTemp, MAX_PATH, sizeof(bufTemp) - 1, SIMULATION_TEMP_DIR.c_str(), iter.first.c… in InitNode()
202 char batteryTempBuf[MAX_PATH] = {0};
203 …int32_t ret = snprintf_s(batteryTempBuf, MAX_PATH, sizeof(batteryTempBuf) - 1, BATTERY_PATH.c_str(…
218 char levelBuf[MAX_PATH] = {0};
219 char levelValue[MAX_PATH] = {0};
220 ret = snprintf_s(levelBuf, MAX_PATH, sizeof(levelBuf) - 1, CONFIG_LEVEL_PATH.c_str());
241 char batteryTempBuf[MAX_PATH] = {0};
242 …int32_t ret = snprintf_s(batteryTempBuf, MAX_PATH, sizeof(batteryTempBuf) - 1, BATTERY_PATH.c_str(…
257 char levelBuf[MAX_PATH] = {0};
[all …]
/base/powermgr/thermal_manager/application/protector/src/action/
Dvoltage_action.cpp29 constexpr int32_t MAX_PATH = 256; variable
53 char voltageBuf[MAX_PATH] = {0}; in BatteryVoltageActionRequest()
54 if (snprintf_s(voltageBuf, MAX_PATH, sizeof(voltageBuf) - 1, BATTERY_VOLTAGE_PATH) < EOK) { in BatteryVoltageActionRequest()
Dcpu_action.cpp28 constexpr int32_t MAX_PATH = 256; variable
52 char cpuBuf[MAX_PATH] = {0}; in CpuActionRequest()
53 if (snprintf_s(cpuBuf, MAX_PATH, sizeof(cpuBuf) - 1, SIM_CPU_FREQ_PATH) < EOK) { in CpuActionRequest()
Dcurrent_action.cpp29 constexpr int32_t MAX_PATH = 256; variable
54 char currentBuf[MAX_PATH] = {0}; in BatteryCurrentActionRequest()
55 …if (snprintf_s(currentBuf, MAX_PATH, sizeof(currentBuf) - 1, SIM_BATTERY_CURRENT_PATH.c_str()) < E… in BatteryCurrentActionRequest()
/base/powermgr/thermal_manager/services/native/src/thermal_action/
Dthermal_action_manager.cpp27 const int MAX_PATH = 256; variable
104 char fileBuf[MAX_PATH] = {0}; in CreateActionMockFile()
105 char stateFileBuf[MAX_PATH] = {0}; in CreateActionMockFile()
112 … ret = snprintf_s(fileBuf, MAX_PATH, sizeof(fileBuf) - ARG_1, configDir.c_str(), iter.c_str()); in CreateActionMockFile()
121 …ret = snprintf_s(stateFileBuf, MAX_PATH, sizeof(stateFileBuf) - ARG_1, stateDir.c_str(), iter.c_st… in CreateActionMockFile()
/base/powermgr/thermal_manager/services/native/src/thermal_action/action/
Daction_charger.cpp31 const int MAX_PATH = 256; variable
137 char buf[MAX_PATH] = {0}; in WriteSimValue()
139 ret = snprintf_s(buf, MAX_PATH, sizeof(buf) - 1, SC_CURRENT_PATH); in WriteSimValue()
144 ret = snprintf_s(buf, MAX_PATH, sizeof(buf) - 1, BUCK_CURRENT_PATH); in WriteSimValue()
Daction_voltage.cpp32 const int32_t MAX_PATH = 256; variable
134 char buf[MAX_PATH] = {0}; in WriteMockNode()
136 ret = snprintf_s(buf, MAX_PATH, sizeof(buf) - 1, SC_VOLTAGE_PATH); in WriteMockNode()
141 ret = snprintf_s(buf, MAX_PATH, sizeof(buf) - 1, BUCK_VOLTAGE_PATH); in WriteMockNode()
Daction_shutdown.cpp38 const int MAX_PATH = 256; variable
117 char shutdownBuf[MAX_PATH] = {0}; in ShutdownExecution()
118 ret = snprintf_s(shutdownBuf, MAX_PATH, sizeof(shutdownBuf) - 1, SHUTDOWN_PATH); in ShutdownExecution()
Daction_volume.cpp32 const int MAX_PATH = 256; variable
144 char buf[MAX_PATH] = {0}; in VolumeExecution()
145 ret = snprintf_s(buf, MAX_PATH, sizeof(buf) - 1, VOLUME_PATH); in VolumeExecution()
Daction_application_process.cpp42 const int MAX_PATH = 256; variable
234 char processBuf[MAX_PATH] = {0}; in ProcessAppActionExecution()
235 ret = snprintf_s(processBuf, MAX_PATH, sizeof(processBuf) - 1, PROCESS_PATH); in ProcessAppActionExecution()
/base/powermgr/thermal_manager/test/common/src/
Dthermal_test.cpp79 char bufTemp[MAX_PATH] = {0}; in InitNode()
91 … ret = snprintf_s(bufTemp, MAX_PATH, sizeof(bufTemp) - 1, SIMULATION_TEMP_DIR, iter.first.c_str()); in InitNode()
/base/powermgr/thermal_manager/test/systemtest/include/
Dthermal_mgr_system_test.h25 const uint32_t MAX_PATH = 256; variable
/base/powermgr/thermal_manager/services/native/src/thermal_policy/
Dthermal_policy.cpp35 const int MAX_PATH = 256; variable
100 char levelBuf[MAX_PATH] = {0}; in WriteLevel()
106 ret = snprintf_s(levelBuf, MAX_PATH, sizeof(levelBuf) - 1, LEVEL_PATH); in WriteLevel()
/base/powermgr/thermal_manager/test/common/include/
Dthermal_test.h24 const uint32_t MAX_PATH = 256; variable
/base/global/resource_management/frameworks/resmgr/src/
Dhap_manager.cpp69 char path[MAX_PATH] = { 0 }; in Init()
70 GetModuleFileName((HMODULE)mbi.AllocationBase, path, MAX_PATH); in Init()