Searched refs:WriteBits (Results 1 – 7 of 7) sorted by relevance
/base/telephony/sms_mms/services/sms/cdma/ |
D | cdma_sms_parameter_record.cpp | 107 if (pdu.WriteByte(id_) && pdu.WriteByte(len_) && pdu.WriteBits(replySeq_, BIT6)) { in Encode() 147 …if (!pdu.WriteBits(code_.transReplySeq, BIT6) || !pdu.WriteBits(static_cast<uint8_t>(code_.errorCl… in Encode() 152 if (!pdu.WriteBits(static_cast<uint8_t>(code_.causeCode), BIT8)) { in Encode() 216 …if (!pdu.WriteBits(address_.digitMode ? 0b1 : 0b0) || !pdu.WriteBits(address_.numberMode ? 0b1 : 0… in Encode() 221 if (!pdu.WriteBits(address_.numberType, BIT3)) { in Encode() 225 if (!address_.numberMode && !pdu.WriteBits(address_.numberPlan, BIT4)) { in Encode() 277 if (!pdu.WriteBits(address_.addrLen, BIT8)) { in EncodeAddress() 287 if (!pdu.WriteBits(address_.szData[i], BIT8)) { in EncodeAddress() 294 if (!pdu.WriteBits(SmsCommonUtils::DigitToDtmfChar(address_.szData[i]), BIT4)) { in EncodeAddress() 357 …if (!pdu.WriteBits(static_cast<uint8_t>(address_.type), BIT3) || !pdu.WriteBits(address_.odd ? 0b1… in Encode() [all …]
|
D | cdma_sms_sub_parameter.cpp | 107 if (pdu.WriteBits(type_, BIT4) && pdu.WriteBits(msgId_.msgId >> BIT8, BIT8) && in Encode() 108 … pdu.WriteBits(msgId_.msgId, BIT8) && pdu.WriteBits(msgId_.headerInd ? 0b1 : 0b0, BIT1)) { in Encode() 227 if (pdu.WriteBits(static_cast<uint8_t>(priority_), BIT2)) { in Encode() 268 if (pdu.WriteBits(static_cast<uint8_t>(privacy_), BIT2)) { in Encode() 309 …if (pdu.WriteBits(replyOpt_.userAck ? 0b1 : 0b0, BIT1) && pdu.WriteBits(replyOpt_.dak ? 0b1 : 0b0,… in Encode() 310 …pdu.WriteBits(replyOpt_.readAck ? 0b1 : 0b0, BIT1) && pdu.WriteBits(replyOpt_.report ? 0b1 : 0b0, … in Encode() 355 if (!pdu.WriteBits(static_cast<uint8_t>(data_.encodeType), BIT5)) { in Encode() 360 if (!pdu.WriteBits(data_.msgType, BIT8)) { in Encode() 415 if (!pdu.WriteBits(numFields, BIT8) || !pdu.WriteBits(udhBytes, BIT8)) { in EncodeHeader7Bit() 421 if (!headerPdu.GetValueFromIndex(i, v) || !pdu.WriteBits(v, BIT8)) { in EncodeHeader7Bit() [all …]
|
/base/telephony/sms_mms/services/sms/include/ |
D | sms_pdu_buffer.h | 64 bool WriteBits(uint8_t v, uint8_t l = BIT1);
|
/base/telephony/sms_mms/services/sms/ |
D | sms_pdu_buffer.cpp | 256 return WriteBits(v, BIT8); in WriteByte() 277 bool SmsWriteBuffer::WriteBits(uint8_t v, uint8_t l) in WriteBits() function in OHOS::Telephony::SmsWriteBuffer
|
/base/telephony/sms_mms/test/fuzztest/smspdubuffer_fuzzer/ |
D | smspdubuffer_fuzzer.cpp | 100 buffer->WriteBits(v3, j); in WriteBuffer()
|
/base/telephony/sms_mms/test/gtest/ |
D | zero_branch_cdma_sms_test.cpp | 449 EXPECT_TRUE(buffer->WriteBits(v)); 451 EXPECT_FALSE(buffer->WriteBits(v)); 461 EXPECT_FALSE(buffer->WriteBits(v, bits)); 468 EXPECT_TRUE(buffer->WriteBits(v, bits)); 470 EXPECT_FALSE(buffer->WriteBits(v, bits)); 478 EXPECT_TRUE(buffer->WriteBits(v)); 488 EXPECT_TRUE(buffer->WriteBits(v));
|
D | cdma_sms_gtest.cpp | 180 EXPECT_TRUE(wBuffer->WriteBits(v));
|