Home
last modified time | relevance | path

Searched refs:contentLength (Results 1 - 12 of 12) sorted by relevance

/base/telephony/sms_mms/services/sms/
H A Dsms_wap_push_content_type.cpp70 * @param contentLength
74 bool 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()
117 * @param contentLength
121 bool 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/
H A Dmms_content_type.cpp56 * @param contentLength
60 bool MmsContentType::DecodeMmsContentType(MmsDecodeBuffer &decodeBuffer, int32_t &contentLength) in DecodeMmsContentType() argument
70 contentLength = 1; in DecodeMmsContentType()
78 contentLength = static_cast<int32_t>(len + 1); in DecodeMmsContentType()
83 if (!DecodeMmsCTGeneralForm(decodeBuffer, contentLength)) { in DecodeMmsContentType()
102 * @param contentLength
106 bool MmsContentType::DecodeMmsCTGeneralForm(MmsDecodeBuffer &decodeBuffer, int32_t &contentLength) in DecodeMmsCTGeneralForm() argument
122 contentLength = static_cast<int32_t>(valueLength + returnLength); in DecodeMmsCTGeneralForm()
H A Dmms_body_part.cpp119 int32_t contentLength = 0; in DecodePart() local
120 if (!bodyPartContentType_.DecodeMmsContentType(decodeBuffer, contentLength)) { in DecodePart()
127 if (headerLen_ < static_cast<uint32_t>(contentLength)) { in DecodePart()
131 if (!DecodePartHeader(decodeBuffer, headerLen_ - static_cast<uint32_t>(contentLength))) { in DecodePart()
/base/web/webview/ohos_interface/include/ohos_nweb/
H A Dnweb_download_callback.h37 * @param contentLength The file size reported by the server.
40 const std::string& contentDisposition, const std::string& mimetype, long contentLength) = 0;
/base/print/print_fwk/services/print_service/src/
H A Dprint_http_request_process.cpp92 bool &findContentLength, size_t &contentLength) in GetContentLength()
110 contentLength = static_cast<size_t>(std::stoi(lenStr)); in GetContentLength()
116 PRINT_HILOGD("contentLength = %{public}s, %{public}lu", lenStr.c_str(), contentLength); in GetContentLength()
187 size_t contentLength = 0; in ProcessDataFromDevice() local
197 GetContentLength(readTempBuffer, index, findContentLength, contentLength); in ProcessDataFromDevice()
204 while (tmVector.size() < readSize + contentLength && count < maxCount) { in ProcessDataFromDevice()
91 GetContentLength(const std::vector<uint8_t> &readTempBuffer, size_t index, bool &findContentLength, size_t &contentLength) GetContentLength() argument
/base/telephony/core_service/services/sim/src/
H A Doperator_file_parser.cpp146 int contentLength = LoaderJsonFile(content, path); in ParseOperatorConfigFromFile() local
147 if (contentLength == LOADER_JSON_ERROR) { in ParseOperatorConfigFromFile()
/base/print/print_fwk/services/print_service/include/
H A Dprint_http_request_process.h76 size_t &contentLength);
/base/telephony/sms_mms/test/gtest/
H A Dzero_branch_mms_test.cpp547 int32_t contentLength = 1; in HWTEST_F() local
551 EXPECT_FALSE(smsWapPushContentType->DecodeCTGeneralForm(decodeBuffer, contentLength)); in HWTEST_F()
552 EXPECT_TRUE(smsWapPushContentType->DecodeContentType(decodeBuffer, contentLength)); in HWTEST_F()
555 EXPECT_TRUE(smsWapPushContentType->DecodeContentType(decodeBuffer, contentLength)); in HWTEST_F()
558 EXPECT_FALSE(smsWapPushContentType->DecodeContentType(decodeBuffer, contentLength)); in HWTEST_F()
559 EXPECT_FALSE(smsWapPushContentType->DecodeCTGeneralForm(decodeBuffer, contentLength)); in HWTEST_F()
563 EXPECT_FALSE(smsWapPushContentType->DecodeCTGeneralForm(decodeBuffer, contentLength)); in HWTEST_F()
566 EXPECT_FALSE(smsWapPushContentType->DecodeCTGeneralForm(decodeBuffer, contentLength)); in HWTEST_F()
/base/telephony/sms_mms/frameworks/native/mms/include/
H A Dmms_content_type.h214 bool DecodeMmsCTGeneralForm(MmsDecodeBuffer &decodeBuffer, int32_t &contentLength);
/base/telephony/sms_mms/services/sms/include/
H A Dsms_wap_push_content_type.h251 bool DecodeCTGeneralForm(SmsWapPushBuffer &decodeBuffer, int32_t &contentLength);
/base/telephony/sms_mms/frameworks/js/napi/src/
H A Dnapi_sms.cpp332 size_t contentLength = 0; in ParseMessageParameter() local
333 napi_get_value_string_utf8(env, contentValue, contentChars, MAX_TEXT_SHORT_MESSAGE_LENGTH, &contentLength); in ParseMessageParameter()
334 std::string text(contentChars, contentLength); in ParseMessageParameter()
H A Dnapi_mms.cpp614 size_t contentLength = 0; in ParseDecodeMmsParam() local
615 napi_get_value_string_utf8(env, object, contentChars, MAX_TEXT_SHORT_MESSAGE_LENGTH, &contentLength); in ParseDecodeMmsParam()
616 context.textFilePath = std::string(contentChars, 0, contentLength); in ParseDecodeMmsParam()

Completed in 20 milliseconds