Home
last modified time | relevance | path

Searched refs:valueLen (Results 1 – 25 of 26) sorted by relevance

12

/base/security/certificate_manager/services/cert_manager_standard/cert_manager_engine/main/core/src/
Dcert_manager_uri.c88 size_t valueLen = strlen(value); in GetComponentEncodedLen() local
90 for (size_t i = 0; i < valueLen; i++) { in GetComponentEncodedLen()
96 uint32_t len = (uint32_t) (keyLen + valueLen + reserved * 2 + *sep); in GetComponentEncodedLen()
147 size_t valueLen = strlen(value); in EncodeComp() local
151 if (avail < *sep + keyLen + valueLen) { in EncodeComp()
166 for (size_t i = 0; i < valueLen; i++) { in EncodeComp()
401 uint32_t valueLen = 0; in DecodePath() local
413 valueLen = i - start - strlen(P_OBJECT); in DecodePath()
417 valueLen = i - start - strlen(P_TYPE); in DecodePath()
423 valueLen = i - start - strlen(P_USER); in DecodePath()
[all …]
/base/startup/init/interfaces/innerkits/syscap/
Dinit_syscap.c34 unsigned int valueLen = PARAM_VALUE_LEN_MAX; in HasSystemCapability() local
50 if (SystemGetParameter(capName, paramValue, &valueLen) != 0) { in HasSystemCapability()
/base/startup/init/interfaces/innerkits/init_module_engine/include/
Dinit_module_engine.h47 int GetParameterFromCmdLine(const char *paramName, char *value, size_t valueLen);
/base/telephony/sms_mms/frameworks/native/mms/src/
Dmms_body_part_header.cpp286 uint32_t valueLen = 0; in DecodeApplicationHeader() local
287 if (!decodeBuffer.DecodeText(sValue, valueLen)) { in DecodeApplicationHeader()
294 if (headerLen > fieldLen + valueLen + endStringZeroLen) { in DecodeApplicationHeader()
295 headerLen -= fieldLen + valueLen + endStringZeroLen; in DecodeApplicationHeader()
/base/global/resource_management_lite/frameworks/resmgr_lite/src/
Dglobal.c179 *value = (char *)malloc(idItem.valueLen); in GLOBAL_GetValueByIdInternal()
180 if (*value == NULL || strcpy_s(*value, idItem.valueLen, idItem.value) != EOK) { in GLOBAL_GetValueByIdInternal()
250 *value = (char *)malloc(idItem.valueLen); in GLOBAL_GetValueByNameInternal()
251 if (*value == NULL || strcpy_s(*value, idItem.valueLen, idItem.value) != EOK) { in GLOBAL_GetValueByNameInternal()
Dglobal_utils.c446 idItem->valueLen = (uint16_t)ConvertUint8ArrayToUint32(lengthCache, VALUE_LENGTH_OFFSET); in GetIdItem()
447 if (idItem->valueLen == 0 || idItem->valueLen > MAX_ITEM_LENGTH) { in GetIdItem()
451 idItem->value = (char *)malloc(idItem->valueLen); in GetIdItem()
455 (void)memset_s(idItem->value, idItem->valueLen, 0, idItem->valueLen); in GetIdItem()
456 (void)read(file, idItem->value, idItem->valueLen); in GetIdItem()
/base/startup/init/interfaces/kits/jskits/src_enhance/
Dnative_parameters_js.cpp30 size_t valueLen = 0;
162 …ret = GetParamString(env, argv[i], asyncContext->value, MAX_VALUE_LENGTH, &asyncContext->valueLen); in Set()
177 asyncContext->key, asyncContext->keyLen, asyncContext->value, asyncContext->valueLen); in Set()
293 … (asyncContext->valueLen == 0) ? nullptr : asyncContext->value, value.data(), MAX_VALUE_LENGTH); in GetCallbackWork()
350 …ret = GetParamString(env, argv[i], asyncContext->value, MAX_VALUE_LENGTH, &asyncContext->valueLen); in Get()
352 asyncContext->valueLen = 0; in Get()
370 asyncContext->key, asyncContext->keyLen, asyncContext->value, asyncContext->valueLen); in Get()
/base/hiviewdfx/hilog_lite/frameworks/mini/
Dhiview_output_log.c288 uint16 valueLen; in OutputLog2BinFile() local
312 valueLen = pCommonContent->valueNumber * sizeof(uint32); in OutputLog2BinFile()
313 if (valueLen > 0) { in OutputLog2BinFile()
314 if ((int32)len + (int32)valueLen > (int32)outputSize) { in OutputLog2BinFile()
319 if (ReadFromCache(&g_logCache, tmpBuffer + len, valueLen) != valueLen) { in OutputLog2BinFile()
322 len += valueLen; in OutputLog2BinFile()
/base/startup/init/services/param/include/
Dparam_trie.h54 const char *key, uint32_t keyLen, const char *value, uint32_t valueLen);
/base/startup/init/services/include/
Dinit_utils.h93 int GetParameterFromCmdLine(const char *paramName, char *value, size_t valueLen);
/base/global/resource_management_lite/frameworks/resmgr_lite/include/
Dglobal_utils.h92 uint16_t valueLen; member
/base/startup/init/services/begetctl/
Dparam_cmd.c203 uint32_t valueLen = buffSize - PARAM_NAME_LEN_MAX; in ShowParamForCmdLs() local
204 (void)SystemGetParameterValue(handle, value, &valueLen); in ShowParamForCmdLs()
282 uint32_t valueLen = buffSize - PARAM_NAME_LEN_MAX; in ShowParamForCmdGet() local
283 (void)SystemGetParameterValue(handle, value, &valueLen); in ShowParamForCmdGet()
/base/startup/init/services/param/base/
Dparam_trie.c261 const char *key, uint32_t keyLen, const char *value, uint32_t valueLen) in AddParamNode() argument
268 if ((valueLen > PARAM_VALUE_LEN_MAX) || IS_READY_ONLY(key)) { in AddParamNode()
269 realLen += keyLen + valueLen; in AddParamNode()
283 node->valueLength = valueLen; in AddParamNode()
Dparam_base.c572 uint32_t valueLen = strlen(defValue); in CachedParameterCreate() local
574 …PARAM_CHECK(valueLen < PARAM_CONST_VALUE_LEN_MAX, return NULL, "Illegal param value %s", defValue); in CachedParameterCreate()
576 …PARAM_CHECK(valueLen < PARAM_VALUE_LEN_MAX, return NULL, "Illegal param value %s length", defValue… in CachedParameterCreate()
/base/startup/init/interfaces/kits/jskits/src/
Dnative_parameters_js.cpp30 size_t valueLen = 0;
105 BUF_LENGTH - 1, &asyncContext->valueLen); in Set()
284 BUF_LENGTH - 1, &asyncContext->valueLen); in Get()
Dnative_parameters_watch.cpp34 size_t valueLen = 0;
160 asyncContext->valueLen = BUF_LENGTH - 1; in ParamWait()
165 ret = GetParamValue(env, argv[1], napi_string, asyncContext->value, asyncContext->valueLen); in ParamWait()
/base/startup/init/services/init/standard/
Dinit_cmds.c92 uint32_t valueLen = paramLen - curr; in GetParamValue() local
93 ret = SystemReadParam(tmpName, paramValue + curr, &valueLen); in GetParamValue()
95 curr += valueLen; in GetParamValue()
/base/telephony/call_manager/frameworks/js/napi/include/
Dnapi_call_manager_types.h60 size_t valueLen = 0; member
/base/startup/init/interfaces/innerkits/fs_manager/
Dfstab_mount.c295 uint32_t valueLen = PARAM_VALUE_LEN_MAX; in GetSlotInfoFromParameter() local
296 return SystemGetParameter(name, value, &valueLen) == 0 ? atoi(value) : -1; in GetSlotInfoFromParameter()
/base/startup/init/services/param/manager/
Dparam_manager.c427 uint32_t valueLen = strlen(value); in UpdateParam() local
430 if (entry->valueLength < PARAM_VALUE_LEN_MAX && valueLen < PARAM_VALUE_LEN_MAX) { in UpdateParam()
431 …t ret = PARAM_MEMCPY(entry->data + entry->keyLength + 1, PARAM_VALUE_LEN_MAX, value, valueLen + 1); in UpdateParam()
433 entry->valueLength = valueLen; in UpdateParam()
/base/startup/init/services/utils/
Dinit_utils.c682 int GetParameterFromCmdLine(const char *paramName, char *value, size_t valueLen) in GetParameterFromCmdLine() argument
686 int ret = GetProcCmdlineValue(paramName, buffer, value, valueLen); in GetParameterFromCmdLine()
/base/telephony/sms_mms/test/gtest/
Dzero_branch_mms_test.cpp761 int32_t valueLen = 0; variable
762 ASSERT_FALSE(mmsContentType.DecodeTypeField(decoderBuffer, valueLen));
766 ASSERT_TRUE(mmsContentType.DecodeTypeField(decoderBuffer, valueLen));
770 ASSERT_FALSE(mmsContentType.DecodeTypeField(decoderBuffer, valueLen));
/base/startup/appspawn/standard/
Dappspawn_process.c549 static int GetStringFromArg(char *begin, char **end, char *value, uint32_t valueLen) in GetStringFromArg() argument
554 return strcpy_s(value, valueLen, start); in GetStringFromArg()
/base/telephony/ril_adapter/services/vendor/src/
Dat_sim.c1344 uint8_t valueLen = fcpByte[1]; in FcpFileDescriptorQuery() local
1353 resultLen = FcpTlvSearchTag(dataPtr, valueLen, FCP_FILE_DES_T, &outPtr); in FcpFileDescriptorQuery()
1376 uint8_t valueLen = fcpByte[1]; in FcpFileIdentifierQuery() local
1385 resultLen = FcpTlvSearchTag(dataPtr, valueLen, FCP_FILE_ID_T, &outPtr); in FcpFileIdentifierQuery()
/base/hiviewdfx/hisysevent/interfaces/js/kits/napi/src/
Dnapi_hisysevent_util.cpp404 size_t valueLen = 0; in GetObjectTypeAttribute() local
405 napi_get_value_string_utf8(env, key, buf, BUF_SIZE - 1, &valueLen); in GetObjectTypeAttribute()

12