/base/startup/init/services/init/include/ |
D | init.h | 24 #ifndef PARAM_VALUE_LEN_MAX 25 #define PARAM_VALUE_LEN_MAX 96 macro
|
/base/startup/init/interfaces/innerkits/syscap/ |
D | init_syscap.c | 33 char paramValue[PARAM_VALUE_LEN_MAX] = { 0 }; in HasSystemCapability() 34 unsigned int valueLen = PARAM_VALUE_LEN_MAX; in HasSystemCapability()
|
/base/startup/init/services/init/ |
D | init_config.c | 62 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()
|
D | init_service_manager.c | 759 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()
|
D | init_common_cmds.c | 68 size_t allocSize = paramLen + (PARAM_VALUE_LEN_MAX * valueCount) + 1; in AddOneArg()
|
/base/startup/init/services/param/liteos/ |
D | param_service.c | 76 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/ |
D | param_unittest.cpp | 210 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()
|
D | paramservice_unittest.cpp | 214 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/ |
D | init_reboot_innerkits.c | 25 #define MAX_REBOOT_OPTION_SIZE PARAM_VALUE_LEN_MAX
|
/base/startup/init/interfaces/innerkits/syspara/ |
D | param_comm.c | 170 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/ |
D | parameter.h | 26 #define PARAM_VALUE_LEN_MAX 96 macro
|
/base/startup/init/services/include/param/ |
D | init_param.h | 35 #define PARAM_VALUE_LEN_MAX 96 macro
|
/base/startup/init/test/moduletest/ |
D | syspara_moduleTest.cpp | 82 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/ |
D | param_base.c | 380 …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()
|
D | param_trie.c | 354 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()
|
D | param_comm.c | 292 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/ |
D | service_control.c | 195 char value[PARAM_VALUE_LEN_MAX] = {}; in StartServiceByTimer()
|
/base/startup/init/interfaces/innerkits/fs_manager/ |
D | fstab_mount.c | 313 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/ |
D | bootchart.c | 80 char release[PARAM_VALUE_LEN_MAX] = {}; in BootchartLogHeader()
|