Home
last modified time | relevance | path

Searched refs:PARAM_VALUE_LEN_MAX (Results 1 – 19 of 19) sorted by relevance

/base/startup/init/services/init/include/
Dinit.h24 #ifndef PARAM_VALUE_LEN_MAX
25 #define PARAM_VALUE_LEN_MAX 96 macro
/base/startup/init/interfaces/innerkits/syscap/
Dinit_syscap.c33 char paramValue[PARAM_VALUE_LEN_MAX] = { 0 }; in HasSystemCapability()
34 unsigned int valueLen = PARAM_VALUE_LEN_MAX; in HasSystemCapability()
/base/startup/init/services/init/
Dinit_config.c62 char *tmpParamValue = calloc(sizeof(char), PARAM_VALUE_LEN_MAX + 1); in ParseAllImports()
82 … int ret = GetParamValue(importContent, strlen(importContent), tmpParamValue, PARAM_VALUE_LEN_MAX); in ParseAllImports()
Dinit_service_manager.c759 char wrapServiceNameKey[PARAM_VALUE_LEN_MAX] = {0}; in GetWrapServiceNameValue()
760 char wrapServiceNameValue[PARAM_VALUE_LEN_MAX] = {0}; in GetWrapServiceNameValue()
761 unsigned int valueLen = PARAM_VALUE_LEN_MAX; in GetWrapServiceNameValue()
763 int len = sprintf_s(wrapServiceNameKey, PARAM_VALUE_LEN_MAX, "wrap.%s", serviceName); in GetWrapServiceNameValue()
764 …INIT_INFO_CHECK(len > 0 && (len < PARAM_VALUE_LEN_MAX), return -1, "Invalid to format wrapServiceN… in GetWrapServiceNameValue()
Dinit_common_cmds.c68 size_t allocSize = paramLen + (PARAM_VALUE_LEN_MAX * valueCount) + 1; in AddOneArg()
/base/startup/init/services/param/liteos/
Dparam_service.c76 char *buffer = calloc(1, PARAM_VALUE_LEN_MAX); in InitParamService()
82 StringTrim(buffer, PARAM_VALUE_LEN_MAX, g_paramDefCfgNodes[i].value), &dataIndex, 0); in InitParamService()
/base/startup/init/test/unittest/param/
Dparam_unittest.cpp210 TestBufferValue(buffer, PARAM_VALUE_LEN_MAX - 1); in TestNameIsValid()
214 TestBufferValue(buffer, PARAM_VALUE_LEN_MAX + 1); in TestNameIsValid()
219 TestBufferValue(buffer, PARAM_VALUE_LEN_MAX - 1); in TestNameIsValid()
224 TestBufferValue(buffer, PARAM_VALUE_LEN_MAX - 1); in TestNameIsValid()
227 TestBufferValue(buffer, PARAM_VALUE_LEN_MAX + 1); in TestNameIsValid()
232 TestBufferValue(buffer, PARAM_VALUE_LEN_MAX - 1); in TestNameIsValid()
Dparamservice_unittest.cpp214 TestBufferValue(buffer, PARAM_VALUE_LEN_MAX - 1); in TestNameIsValid()
218 TestBufferValue(buffer, PARAM_VALUE_LEN_MAX + 1); in TestNameIsValid()
223 TestBufferValue(buffer, PARAM_VALUE_LEN_MAX - 1); in TestNameIsValid()
228 TestBufferValue(buffer, PARAM_VALUE_LEN_MAX - 1); in TestNameIsValid()
231 TestBufferValue(buffer, PARAM_VALUE_LEN_MAX + 1); in TestNameIsValid()
236 TestBufferValue(buffer, PARAM_VALUE_LEN_MAX - 1); in TestNameIsValid()
/base/startup/init/interfaces/innerkits/reboot/
Dinit_reboot_innerkits.c25 #define MAX_REBOOT_OPTION_SIZE PARAM_VALUE_LEN_MAX
/base/startup/init/interfaces/innerkits/syspara/
Dparam_comm.c170 BEGET_CHECK((ohosSerial = (char *)calloc(1, PARAM_VALUE_LEN_MAX)) != NULL, return NULL); in GetSerial_()
172 uint32_t len = PARAM_VALUE_LEN_MAX; in GetSerial_()
/base/startup/init/interfaces/innerkits/include/syspara/
Dparameter.h26 #define PARAM_VALUE_LEN_MAX 96 macro
/base/startup/init/services/include/param/
Dinit_param.h35 #define PARAM_VALUE_LEN_MAX 96 macro
/base/startup/init/test/moduletest/
Dsyspara_moduleTest.cpp82 char valueGet[PARAM_VALUE_LEN_MAX] = {0}; in SetParameterTestFunc()
83 ret = GetParameterValue(handle, valueGet, PARAM_VALUE_LEN_MAX); in SetParameterTestFunc()
312 char retValue[PARAM_VALUE_LEN_MAX] = {0};
314 std::thread(GetParameterTestReInt, key.c_str(), "", retValue, PARAM_VALUE_LEN_MAX).join();
/base/startup/init/services/param/base/
Dparam_base.c380 …PARAM_CHECK(valueLen < PARAM_VALUE_LEN_MAX, return NULL, "Illegal param value %s length", defValue… in CachedParameterCreate()
390 sizeof(CachedParameter) + PARAM_ALIGN(nameLen) + 1 + PARAM_VALUE_LEN_MAX); in CachedParameterCreate()
398 param->bufferLen = PARAM_VALUE_LEN_MAX; in CachedParameterCreate()
Dparam_trie.c354 if ((valueLen > PARAM_VALUE_LEN_MAX) || IS_READY_ONLY(key)) { in AddParamNode()
414 PARAM_VALUE_LEN_MAX, 32, 8 // 8 max bool length 32 max int length in GetParamMaxLen()
417 return PARAM_VALUE_LEN_MAX; in GetParamMaxLen()
Dparam_comm.c292 if (entry->valueLength < PARAM_VALUE_LEN_MAX && valueLen < PARAM_VALUE_LEN_MAX) { in UpdateParam()
293 …int ret = ParamMemcpy(entry->data + entry->keyLength + 1, PARAM_VALUE_LEN_MAX, value, valueLen + 1… in UpdateParam()
/base/startup/init/interfaces/innerkits/service_control/
Dservice_control.c195 char value[PARAM_VALUE_LEN_MAX] = {}; in StartServiceByTimer()
/base/startup/init/interfaces/innerkits/fs_manager/
Dfstab_mount.c313 char value[PARAM_VALUE_LEN_MAX] = {0}; in GetSlotInfoFromParameter()
314 uint32_t valueLen = PARAM_VALUE_LEN_MAX; in GetSlotInfoFromParameter()
/base/startup/init/services/modules/bootchart/
Dbootchart.c80 char release[PARAM_VALUE_LEN_MAX] = {}; in BootchartLogHeader()