Home
last modified time | relevance | path

Searched refs:valueLength (Results 1 – 17 of 17) sorted by relevance

/base/telephony/sms_mms/services/sms/
Dsms_wap_push_content_type.cpp131 uint32_t valueLength = 0; in DecodeCTGeneralForm() local
133 if (!decodeBuffer.DecodeValueLengthReturnLen(valueLength, returnLength)) { in DecodeCTGeneralForm()
137 contentLength = static_cast<int32_t>(valueLength + returnLength); in DecodeCTGeneralForm()
150 if (valueLength == 0) { in DecodeCTGeneralForm()
154 valueLength--; in DecodeCTGeneralForm()
159 valueLength -= len + 1; in DecodeCTGeneralForm()
166 if (!DecodeParameter(decodeBuffer, valueLength)) { in DecodeCTGeneralForm()
192 bool SmsWapPushContentType::DecodeParameter(SmsWapPushBuffer &decodeBuffer, int32_t valueLength) in DecodeParameter() argument
196 while (valueLength > 0) { in DecodeParameter()
202 valueLength--; in DecodeParameter()
[all …]
Dsms_wap_push_buffer.cpp232 bool SmsWapPushBuffer::DecodeValueLengthReturnLen(uint32_t &valueLength, uint32_t &length) in DecodeValueLengthReturnLen() argument
238 valueLength = 0; in DecodeValueLengthReturnLen()
248 valueLength = oneByte; in DecodeValueLengthReturnLen()
258 valueLength = uintvar; in DecodeValueLengthReturnLen()
275 bool SmsWapPushBuffer::DecodeValueLength(uint32_t &valueLength) in DecodeValueLength() argument
280 valueLength = 0; in DecodeValueLength()
290 valueLength = oneByte; in DecodeValueLength()
299 valueLength = uintvar; in DecodeValueLength()
643 uint32_t valueLength = 0; in DecodeTextValue() local
644 if (DecodeTokenText(str, valueLength)) { in DecodeTextValue()
/base/telephony/sms_mms/frameworks/native/mms/src/
Dmms_content_type.cpp118 uint32_t valueLength = 0; in DecodeMmsCTGeneralForm() local
120 if (!decodeBuffer.DecodeValueLengthReturnLen(valueLength, returnLength)) { in DecodeMmsCTGeneralForm()
124 contentLength = static_cast<int32_t>(valueLength + returnLength); in DecodeMmsCTGeneralForm()
137 if (valueLength == 0) { in DecodeMmsCTGeneralForm()
141 valueLength--; in DecodeMmsCTGeneralForm()
146 valueLength -= len + 1; in DecodeMmsCTGeneralForm()
153 if (!DecodeParameter(decodeBuffer, valueLength)) { in DecodeMmsCTGeneralForm()
199 bool MmsContentType::DecodeParameter(MmsDecodeBuffer &decodeBuffer, int32_t valueLength) in DecodeParameter() argument
203 while (valueLength > 0) { in DecodeParameter()
209 valueLength--; in DecodeParameter()
[all …]
Dmms_decode_buffer.cpp139 bool MmsDecodeBuffer::DecodeValueLengthReturnLen(uint32_t &valueLength, uint32_t &length) in DecodeValueLengthReturnLen() argument
146 valueLength = 0; in DecodeValueLengthReturnLen()
154 valueLength = oneByte; in DecodeValueLengthReturnLen()
164 valueLength = uintvar; in DecodeValueLengthReturnLen()
182 bool MmsDecodeBuffer::DecodeValueLength(uint32_t &valueLength) in DecodeValueLength() argument
189 valueLength = 0; in DecodeValueLength()
197 valueLength = oneByte; in DecodeValueLength()
206 valueLength = uintvar; in DecodeValueLength()
Dmms_header.cpp686 uint32_t valueLength = 0; in DecodeFromValue() local
687 if (!buff.DecodeValueLength(valueLength)) { in DecodeFromValue()
/base/startup/init/services/param/base/
Dparam_base.h61 … int ret = PARAM_MEMCPY(value, *length, entry->data + entry->keyLength + 1, entry->valueLength); in ReadParamValue_()
63 value[entry->valueLength] = '\0'; in ReadParamValue_()
64 *length = entry->valueLength; in ReadParamValue_()
Dparam_trie.c283 node->valueLength = valueLen; in AddParamNode()
/base/telephony/sms_mms/frameworks/native/mms/include/
Dmms_decode_buffer.h34 bool DecodeValueLengthReturnLen(uint32_t &valueLength, uint32_t &length);
35 bool DecodeValueLength(uint32_t &valueLength);
Dmms_content_type.h215 bool DecodeParameter(MmsDecodeBuffer &decodeBuffer, int32_t valueLength);
216 bool DecodeTextField(MmsDecodeBuffer &decodeBuffer, uint8_t field, int32_t &valueLength);
217 bool DecodeCharsetField(MmsDecodeBuffer &decodeBuffer, int32_t &valueLength);
218 bool DecodeTypeField(MmsDecodeBuffer &decodeBuffer, int32_t &valueLength);
/base/telephony/sms_mms/services/sms/include/
Dsms_wap_push_buffer.h46 bool DecodeValueLengthReturnLen(uint32_t &valueLength, uint32_t &length);
47 bool DecodeValueLength(uint32_t &valueLength);
Dsms_wap_push_content_type.h252 bool DecodeParameter(SmsWapPushBuffer &decodeBuffer, int32_t valueLength);
253 bool DecodeTextField(SmsWapPushBuffer &decodeBuffer, uint8_t field, int32_t &valueLength);
254 bool DecodeCharsetField(SmsWapPushBuffer &decodeBuffer, int32_t &valueLength);
255 bool DecodeTypeField(SmsWapPushBuffer &decodeBuffer, int32_t &valueLength);
/base/security/huks/frameworks/huks_standard/main/core/src/
Dhks_verifier.c508 uint32_t valueLength; in FillAttestExtendParamSet() local
509 ret = ExtractTlvDataAndHeadSize(tmp, leftSize, &value, &valueLength, &headSize); in FillAttestExtendParamSet()
510 if (ret != HKS_SUCCESS || valueLength > (leftSize - headSize) in FillAttestExtendParamSet()
516 if (valueLength >= MAX_ATTEST_CLAIM_BUF_LEN) { in FillAttestExtendParamSet()
522 ret = GetClaimDataParamSet(value, valueLength, paramSetOut); in FillAttestExtendParamSet()
529 tmp += (valueLength + headSize); in FillAttestExtendParamSet()
530 leftSize -= (valueLength + headSize); in FillAttestExtendParamSet()
/base/telephony/sms_mms/test/gtest/
Dzero_branch_mms_test.cpp350 uint32_t valueLength = 0; variable
357 EXPECT_FALSE(smsWapPushBuffer->DecodeValueLengthReturnLen(valueLength, length));
358 EXPECT_FALSE(smsWapPushBuffer->DecodeUintvar(valueLength, length));
359 EXPECT_FALSE(smsWapPushBuffer->DecodeValueLength(valueLength));
371 EXPECT_TRUE(smsWapPushBuffer->DecodeValueLengthReturnLen(valueLength, length));
376 EXPECT_FALSE(smsWapPushBuffer->DecodeUintvar(valueLength, length));
380 EXPECT_FALSE(smsWapPushBuffer->DecodeValueLength(valueLength));
384 EXPECT_FALSE(smsWapPushBuffer->DecodeValueLength(valueLength));
544 int32_t valueLength = 1; variable
560 EXPECT_FALSE(smsWapPushContentType->DecodeCharsetField(decodeBuffer, valueLength));
[all …]
/base/startup/init/services/param/include/
Dparam_common.h79 uint16_t valueLength; member
/base/startup/init/services/param/manager/
Dparam_manager.c141 entry->commitId, entry->keyLength, entry->valueLength, entry->data); in DumpTrieDataNodeTraversal()
430 if (entry->valueLength < PARAM_VALUE_LEN_MAX && valueLen < PARAM_VALUE_LEN_MAX) { in UpdateParam()
433 entry->valueLength = valueLen; in UpdateParam()
674 *length = entry->valueLength + 1; in ReadParamValue()
677 PARAM_CHECK(*length > entry->valueLength, return PARAM_CODE_INVALID_PARAM, in ReadParamValue()
678 "Invalid value len %u %u", *length, entry->valueLength); in ReadParamValue()
/base/startup/init/services/param/adapter/
Dparam_selinux.c164 ret = PARAM_MEMCPY(name, sizeof(name) - 1, node->data + node->keyLength + 1, node->valueLength); in GetWorkSpaceSize()
166 name[node->valueLength] = '\0'; in GetWorkSpaceSize()
/base/startup/init/services/param/linux/
Dparam_service.c255 SendWatcherNotifyMessage(&extData, param->data, param->valueLength); in HandleParamWaitAdd()