Home
last modified time | relevance | path

Searched refs:contentLength (Results 1 – 11 of 11) sorted by relevance

/base/telephony/sms_mms/services/sms/
Dsms_wap_push_content_type.cpp74 …ol SmsWapPushContentType::DecodeContentType(SmsWapPushBuffer &decodeBuffer, int32_t &contentLength) in DecodeContentType() argument
85 contentLength = 1; in DecodeContentType()
93 contentLength = static_cast<int32_t>(len + 1); in DecodeContentType()
98 if (!DecodeCTGeneralForm(decodeBuffer, contentLength)) { in DecodeContentType()
121 … SmsWapPushContentType::DecodeCTGeneralForm(SmsWapPushBuffer &decodeBuffer, int32_t &contentLength) in DecodeCTGeneralForm() argument
137 contentLength = static_cast<int32_t>(valueLength + returnLength); in DecodeCTGeneralForm()
/base/telephony/sms_mms/frameworks/native/mms/src/
Dmms_content_type.cpp62 bool MmsContentType::DecodeMmsContentType(MmsDecodeBuffer &decodeBuffer, int32_t &contentLength) in DecodeMmsContentType() argument
72 contentLength = 1; in DecodeMmsContentType()
80 contentLength = static_cast<int32_t>(len + 1); in DecodeMmsContentType()
85 if (!DecodeMmsCTGeneralForm(decodeBuffer, contentLength)) { in DecodeMmsContentType()
108 bool MmsContentType::DecodeMmsCTGeneralForm(MmsDecodeBuffer &decodeBuffer, int32_t &contentLength) in DecodeMmsCTGeneralForm() argument
124 contentLength = static_cast<int32_t>(valueLength + returnLength); in DecodeMmsCTGeneralForm()
Dmms_body_part.cpp121 int32_t contentLength = 0; in DecodePart() local
122 if (!bodyPartContentType_.DecodeMmsContentType(decodeBuffer, contentLength)) { in DecodePart()
129 if (headerLen_ < static_cast<uint32_t>(contentLength)) { in DecodePart()
133 if (!DecodePartHeader(decodeBuffer, headerLen_ - static_cast<uint32_t>(contentLength))) { in DecodePart()
/base/web/webview/ohos_nweb/include/
Dnweb_download_callback.h42 long contentLength) = 0;
/base/telephony/telephony_data/common/src/
Dparser_util.cpp86 const int contentLength = strlen(content); in ParserPdpProfileJson() local
94 if (!reader->parse(rawJson.c_str(), rawJson.c_str() + contentLength, &root, &err)) { in ParserPdpProfileJson()
189 const int contentLength = strlen(content); in ParserOpKeyJson() local
197 if (!reader->parse(rawJson.c_str(), rawJson.c_str() + contentLength, &root, &err)) { in ParserOpKeyJson()
/base/telephony/core_service/services/sim/src/
Doperator_file_parser.cpp114 int contentLength = LoaderJsonFile(content, path); in ParseOperatorConfigFromFile() local
115 if (contentLength == LOADER_JSON_ERROR) { in ParseOperatorConfigFromFile()
125 if (!reader->parse(rawJson.c_str(), rawJson.c_str() + contentLength, &opcJson, &err)) { in ParseOperatorConfigFromFile()
/base/telephony/sms_mms/test/gtest/
Dzero_branch_mms_test.cpp473 int32_t contentLength = 1; variable
477 EXPECT_FALSE(smsWapPushContentType->DecodeCTGeneralForm(decodeBuffer, contentLength));
478 EXPECT_TRUE(smsWapPushContentType->DecodeContentType(decodeBuffer, contentLength));
481 EXPECT_TRUE(smsWapPushContentType->DecodeContentType(decodeBuffer, contentLength));
484 EXPECT_FALSE(smsWapPushContentType->DecodeContentType(decodeBuffer, contentLength));
485 EXPECT_FALSE(smsWapPushContentType->DecodeCTGeneralForm(decodeBuffer, contentLength));
489 EXPECT_FALSE(smsWapPushContentType->DecodeCTGeneralForm(decodeBuffer, contentLength));
492 EXPECT_FALSE(smsWapPushContentType->DecodeCTGeneralForm(decodeBuffer, contentLength));
/base/telephony/sms_mms/frameworks/native/mms/include/
Dmms_content_type.h214 bool DecodeMmsCTGeneralForm(MmsDecodeBuffer &decodeBuffer, int32_t &contentLength);
/base/telephony/sms_mms/services/sms/include/
Dsms_wap_push_content_type.h251 bool DecodeCTGeneralForm(SmsWapPushBuffer &decodeBuffer, int32_t &contentLength);
/base/telephony/sms_mms/frameworks/js/napi/src/
Dnapi_sms.cpp278 size_t contentLength = 0; in ParseMessageParameter() local
279 …_value_string_utf8(env, contentValue, contentChars, MAX_TEXT_SHORT_MESSAGE_LENGTH, &contentLength); in ParseMessageParameter()
280 std::string text(contentChars, contentLength); in ParseMessageParameter()
Dnapi_mms.cpp623 size_t contentLength = 0; in ParseDecodeMmsParam() local
624 …pi_get_value_string_utf8(env, object, contentChars, MAX_TEXT_SHORT_MESSAGE_LENGTH, &contentLength); in ParseDecodeMmsParam()
625 context.textFilePath = std::string(contentChars, 0, contentLength); in ParseDecodeMmsParam()