/base/telephony/sms_mms/frameworks/native/mms/src/ |
D | mms_encode_buffer.cpp | 50 if (!WriteByte(reversed[len - j - 1])) { in EncodeUintvar() 58 bool MmsEncodeBuffer::WriteByte(uint8_t value) in WriteByte() function in OHOS::Telephony::MmsEncodeBuffer 117 if (!WriteByte(value)) { in EncodeShortLength() 138 if (!WriteByte(value | setHighestBitOne)) { in EncodeShortInteger() 155 if (!WriteByte(value)) { in EncodeOctet() 181 if (!WriteByte(lengthQuote)) { in EncodeValueLength() 230 if (!WriteByte(count)) { in EncodeLongInteger() 236 if (!WriteByte(result[i])) { in EncodeLongInteger() 263 if (!WriteByte(quoteText)) { in EncodeText() 269 if (!WriteByte(value.at(i))) { in EncodeText() [all …]
|
D | mms_body_part_header.cpp | 375 …if (!encodeBuffer.WriteByte(static_cast<uint8_t>(MmsHeaderParam::P_CONTENT_LOCATION_V2) | setHighe… in EncodeContentLocation() 402 …if (!encodeBuffer.WriteByte(static_cast<uint8_t>(MmsHeaderParam::P_CONTENT_ID) | setHighestBitOne)… in EncodeContentId() 435 …if (!encodeBuffer.WriteByte(static_cast<uint8_t>(MmsHeaderParam::P_CONTENT_DISPOSITION_V1) | setHi… in EncodeContentDisposition() 444 … if (!encodeBuffer.WriteByte(static_cast<uint8_t>(MmsDispositonParam::P_DISPOSITION_FROM_DATA))) { in EncodeContentDisposition() 451 … if (!encodeBuffer.WriteByte(static_cast<uint8_t>(MmsDispositonParam::P_DISPOSITION_ATTACHMENT))) { in EncodeContentDisposition() 458 … if (!encodeBuffer.WriteByte(static_cast<uint8_t>(MmsDispositonParam::P_DISPOSITION_INLINE))) { in EncodeContentDisposition()
|
D | mms_content_type.cpp | 409 if (!encodeBuffer.WriteByte(fields[i])) { in EncodeTextField() 436 if (!encodeBuffer.WriteByte(static_cast<uint8_t>(ContentParam::CT_P_CHARSET))) { in EncodeCharsetField() 461 if (!encodeBuffer.WriteByte(static_cast<uint8_t>(ContentParam::CT_P_TYPE))) { in EncodeTypeField() 531 if (!tmpEncodeBuffer.WriteByte(static_cast<uint8_t>(u8ContentType) | 0x80)) { in EncodeMmsBodyPartContentType()
|
D | mms_header.cpp | 980 if (!buff.WriteByte(fieldId)) { in EncodeOctetValue() 984 if (!buff.WriteByte(value)) { in EncodeOctetValue() 993 if (!buff.WriteByte(fieldId)) { in EncodeShortIntegerValue() 1010 if (!buff.WriteByte(fieldId)) { in EncodeTextStringValue() 1033 if (!buff.WriteByte(fieldId)) { in EncodeEncodeStringValue() 1046 if (!buff.WriteByte(fieldId)) { in EncodeLongIntergerValue() 1129 if (!buff.WriteByte(MMS_EXPIRY)) { in EncodeFieldExpriyValue() 1170 if (!buff.WriteByte(MMS_FROM)) { in EncodeFieldFromValue() 1179 if (!tempBuff.WriteByte(insertAddressToken)) { in EncodeFieldFromValue() 1184 if (!tempBuff.WriteByte(addressPresentToken)) { in EncodeFieldFromValue() [all …]
|
D | mms_body.cpp | 125 if (!encodeBuffer.WriteByte((int8_t)(MMS_CONTENT_TYPE))) { in EncodeMmsHeaderContentType()
|
/base/telephony/sms_mms/services/sms/gsm/ |
D | gsm_user_data_pdu.cpp | 196 if (!buffer.WriteByte(UDH_SINGLE_SHIFT)) { in EncodeHeader() 200 if (!buffer.WriteByte(HEX_VALUE_01)) { in EncodeHeader() 204 if (!buffer.WriteByte(header.udh.singleShift.langId)) { in EncodeHeader() 210 if (!buffer.WriteByte(UDH_LOCKING_SHIFT)) { in EncodeHeader() 214 if (!buffer.WriteByte(HEX_VALUE_01)) { in EncodeHeader() 218 if (!buffer.WriteByte(header.udh.lockingShift.langId)) { in EncodeHeader() 230 if (!buffer.WriteByte(UDH_APP_PORT_8BIT)) { in EncodeHeaderAppPort8bit() 234 if (!buffer.WriteByte(HEX_VALUE_02)) { in EncodeHeaderAppPort8bit() 238 if (!buffer.WriteByte(header.udh.appPort8bit.destPort)) { in EncodeHeaderAppPort8bit() 242 if (!buffer.WriteByte(header.udh.appPort8bit.originPort)) { in EncodeHeaderAppPort8bit() [all …]
|
D | gsm_sms_tpdu_encode.cpp | 45 if (!buffer.WriteByte(pSubmit->msgRef)) { in EncodeSubmitPdu() 68 if (!buffer.WriteByte(pSubmit->pid)) { in EncodeSubmitPdu() 279 if (!buffer.WriteByte(oneByte | HEX_VALUE_80)) { in EncodeDeliverPartData() 304 if (!buffer.WriteByte(pDeliver->pid)) { in EncodeDeliverPartData() 378 if (!buffer.WriteByte(pDeliverRep->failCause)) { in EncodeDeliverReportPdu() 385 if (!buffer.WriteByte(pDeliverRep->paramInd)) { in EncodeDeliverReportPdu() 391 if (!buffer.WriteByte(pDeliverRep->pid)) { in EncodeDeliverReportPdu() 469 if (!buffer.WriteByte(oneByte | HEX_VALUE_40)) { in EncodeStatusReportPdu() 476 if (!buffer.WriteByte(pStatusRep->msgRef)) { in EncodeStatusReportPdu() 548 if (!buffer.WriteByte(pStatusRep->status)) { in EncodeStatusReportData() [all …]
|
D | gsm_sms_common_utils.cpp | 45 if (!buffer.WriteByte(userData[srcIdx])) { in Pack7bitChar() 98 if (!buffer.WriteByte(oneByte | nextByte)) { in Pack7bitCharPartData()
|
/base/telephony/sms_mms/services/sms/cdma/ |
D | cdma_sms_parameter_record.cpp | 47 if (pdu.WriteByte(id_) && pdu.WriteByte(len_) && pdu.WriteWord(teleserviceId_)) { in Encode() 77 if (pdu.WriteByte(id_) && pdu.WriteByte(len_) && pdu.WriteWord(serviceCat_)) { in Encode() 107 if (pdu.WriteByte(id_) && pdu.WriteByte(len_) && pdu.WriteBits(replySeq_, BIT6)) { in Encode() 142 if (!pdu.WriteByte(id_)) { in Encode() 211 if (!pdu.WriteByte(id_)) { in Encode() 352 if (!pdu.WriteByte(id_)) { in Encode() 473 if (!pdu.WriteByte(id_)) { in Encode()
|
D | cdma_sms_sub_parameter.cpp | 52 if (pdu.WriteByte(id_) && pdu.WriteByte(len_) && pdu.WriteByte(data_)) { in Encode() 106 if (pdu.WriteByte(id_) && pdu.WriteByte(len_)) { in Encode() 165 if (pdu.WriteByte(id_) && pdu.WriteByte(len_)) { in Encode() 166 if (pdu.WriteByte(EncodeBCD(time_.year)) && pdu.WriteByte(EncodeBCD(time_.month)) && in Encode() 167 pdu.WriteByte(EncodeBCD(time_.day)) && pdu.WriteByte(EncodeBCD(time_.hour)) && in Encode() 168 pdu.WriteByte(EncodeBCD(time_.minute)) && pdu.WriteByte(EncodeBCD(time_.second))) { in Encode() 226 if (pdu.WriteByte(id_) && pdu.WriteByte(len_)) { in Encode() 267 if (pdu.WriteByte(id_) && pdu.WriteByte(len_)) { in Encode() 308 if (pdu.WriteByte(id_) && pdu.WriteByte(len_)) { in Encode() 350 if (pdu.IsEmpty() || !pdu.WriteByte(id_)) { in Encode() [all …]
|
D | cdma_sms_transport_message.cpp | 45 if (!pdu.WriteByte(type_)) { in Encode()
|
/base/telephony/sms_mms/frameworks/native/mms/include/ |
D | mms_encode_buffer.h | 27 bool WriteByte(uint8_t byte);
|
/base/telephony/sms_mms/services/sms/include/ |
D | sms_pdu_buffer.h | 60 bool WriteByte(uint8_t v);
|
/base/telephony/sms_mms/test/fuzztest/smspdubuffer_fuzzer/ |
D | smspdubuffer_fuzzer.cpp | 86 buffer->WriteByte(data[i]); in WriteBuffer()
|
/base/telephony/sms_mms/services/sms/ |
D | sms_pdu_buffer.cpp | 253 bool SmsWriteBuffer::WriteByte(uint8_t v) in WriteByte() function in OHOS::Telephony::SmsWriteBuffer
|
/base/telephony/sms_mms/test/gtest/ |
D | cdma_sms_gtest.cpp | 177 EXPECT_TRUE(wBuffer->WriteByte(v));
|
D | zero_branch_cdma_sms_test.cpp | 405 EXPECT_TRUE(buffer->WriteByte(v)); 409 EXPECT_FALSE(buffer->WriteByte(v)); 430 EXPECT_FALSE(buffer->WriteByte(v));
|