Home
last modified time | relevance | path

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

/base/telephony/sms_mms/frameworks/native/mms/src/
Dmms_encode_buffer.cpp50 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 …]
Dmms_body_part_header.cpp375 …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()
Dmms_content_type.cpp409 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()
Dmms_header.cpp980 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 …]
Dmms_body.cpp125 if (!encodeBuffer.WriteByte((int8_t)(MMS_CONTENT_TYPE))) { in EncodeMmsHeaderContentType()
/base/telephony/sms_mms/services/sms/gsm/
Dgsm_user_data_pdu.cpp196 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 …]
Dgsm_sms_tpdu_encode.cpp45 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 …]
Dgsm_sms_common_utils.cpp45 if (!buffer.WriteByte(userData[srcIdx])) { in Pack7bitChar()
98 if (!buffer.WriteByte(oneByte | nextByte)) { in Pack7bitCharPartData()
/base/telephony/sms_mms/services/sms/cdma/
Dcdma_sms_parameter_record.cpp47 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()
Dcdma_sms_sub_parameter.cpp52 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 …]
Dcdma_sms_transport_message.cpp45 if (!pdu.WriteByte(type_)) { in Encode()
/base/telephony/sms_mms/frameworks/native/mms/include/
Dmms_encode_buffer.h27 bool WriteByte(uint8_t byte);
/base/telephony/sms_mms/services/sms/include/
Dsms_pdu_buffer.h60 bool WriteByte(uint8_t v);
/base/telephony/sms_mms/test/fuzztest/smspdubuffer_fuzzer/
Dsmspdubuffer_fuzzer.cpp86 buffer->WriteByte(data[i]); in WriteBuffer()
/base/telephony/sms_mms/services/sms/
Dsms_pdu_buffer.cpp253 bool SmsWriteBuffer::WriteByte(uint8_t v) in WriteByte() function in OHOS::Telephony::SmsWriteBuffer
/base/telephony/sms_mms/test/gtest/
Dcdma_sms_gtest.cpp177 EXPECT_TRUE(wBuffer->WriteByte(v));
Dzero_branch_cdma_sms_test.cpp405 EXPECT_TRUE(buffer->WriteByte(v));
409 EXPECT_FALSE(buffer->WriteByte(v));
430 EXPECT_FALSE(buffer->WriteByte(v));