Searched refs:BIT8 (Results 1 – 5 of 5) sorted by relevance
/base/telephony/sms_mms/services/sms/ |
D | sms_pdu_buffer.cpp | 164 return ReadBits(v, BIT8); in ReadByte() 200 v = (v << BIT8) | data_[index_++]; in ReadWord() 213 if (l == BIT0 || l > BIT8) { in ReadBits() 218 if (bitIndex_ + l <= BIT8) { in ReadBits() 224 v = v >> (BIT8 - l); in ReadBits() 226 if (bitIndex_ == BIT8) { in ReadBits() 236 bitIndex_ = l + bitIndex_ - BIT8; in ReadBits() 237 v = (v >> (BIT8 - l)) | (data_[index_] >> (BIT8 - bitIndex_)); in ReadBits() 256 return WriteBits(v, BIT8); in WriteByte() 269 data_[index_++] = (0xff00 & v) >> BIT8; in WriteWord() [all …]
|
/base/telephony/sms_mms/services/sms/cdma/ |
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() 131 if (!pdu.ReadBits(vh, BIT8) || !pdu.ReadBits(v, BIT8)) { in Decode() 135 msgId_.msgId = (vh << BIT8) | v; in Decode() 360 if (!pdu.WriteBits(data_.msgType, BIT8)) { in Encode() 404 uint8_t udhLen = (udhBytes + 1) * BIT8 / BIT7; in EncodeHeader7Bit() 406 uint8_t ignoredBits = BIT7 - (udhBytes + 1) * BIT8 % BIT7; in EncodeHeader7Bit() 411 ignoredBits = BIT8; in EncodeHeader7Bit() 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 …]
|
D | cdma_sms_parameter_record.cpp | 152 if (!pdu.WriteBits(static_cast<uint8_t>(code_.causeCode), BIT8)) { in Encode() 185 if (!pdu.ReadBits(v, BIT8)) { in Decode() 277 if (!pdu.WriteBits(address_.addrLen, BIT8)) { in EncodeAddress() 287 if (!pdu.WriteBits(address_.szData[i], BIT8)) { in EncodeAddress() 306 if (!pdu.ReadBits(v1, BIT8)) { in DecodeAddress() 317 if (!pdu.ReadBits(v1, BIT8)) { in DecodeAddress() 358 !pdu.WriteBits(address_.addrLen, BIT8)) { in Encode() 369 if (!pdu.WriteBits(address_.szData[i], BIT8)) { in Encode() 392 if (!pdu.ReadBits(v1, BIT3) || !pdu.ReadBits(v2) || !pdu.ReadBits(v3, BIT8)) { in Decode() 410 if (!pdu.ReadBits(v1, BIT8)) { in Decode()
|
/base/telephony/sms_mms/services/sms/include/ |
D | sms_pdu_buffer.h | 24 enum BITS : uint8_t { BIT0 = 0, BIT1, BIT2, BIT3, BIT4, BIT5, BIT6, BIT7, BIT8 }; enumerator
|
/base/telephony/sms_mms/test/gtest/ |
D | zero_branch_cdma_sms_test.cpp | 270 uint32_t bitLen = pduLen * BIT8; 284 if (bits > BIT8) { 446 uint32_t bitLen = pduLen * BIT8; 460 if (bits > BIT8) {
|