Home
last modified time | relevance | path

Searched refs:byte (Results 1 – 25 of 89) sorted by relevance

1234

/system/unwinding/libunwindstack/
DArmExidx.cpp176 inline bool ArmExidx::GetByte(uint8_t* byte) { in GetByte() argument
181 *byte = data_.front(); in GetByte()
186 inline bool ArmExidx::DecodePrefix_10_00(uint8_t byte) { in DecodePrefix_10_00() argument
187 CHECK((byte >> 4) == 0x8); in DecodePrefix_10_00()
189 uint16_t registers = (byte & 0xf) << 8; in DecodePrefix_10_00()
190 if (!GetByte(&byte)) { in DecodePrefix_10_00()
194 registers |= byte; in DecodePrefix_10_00()
259 inline bool ArmExidx::DecodePrefix_10_01(uint8_t byte) { in DecodePrefix_10_01() argument
260 CHECK((byte >> 4) == 0x9); in DecodePrefix_10_01()
262 uint8_t bits = byte & 0xf; in DecodePrefix_10_01()
[all …]
DArmExidx.h88 bool GetByte(uint8_t* byte);
91 bool DecodePrefix_10_00(uint8_t byte);
92 bool DecodePrefix_10_01(uint8_t byte);
93 bool DecodePrefix_10_10(uint8_t byte);
99 bool DecodePrefix_10_11_1nnn(uint8_t byte);
100 bool DecodePrefix_10(uint8_t byte);
102 bool DecodePrefix_11_000(uint8_t byte);
103 bool DecodePrefix_11_001(uint8_t byte);
104 bool DecodePrefix_11_010(uint8_t byte);
105 bool DecodePrefix_11(uint8_t byte);
DDwarfMemory.cpp50 uint8_t byte; in ReadULEB128() local
52 if (!ReadBytes(&byte, 1)) { in ReadULEB128()
55 cur_value += static_cast<uint64_t>(byte & 0x7f) << shift; in ReadULEB128()
57 } while (byte & 0x80); in ReadULEB128()
65 uint8_t byte; in ReadSLEB128() local
67 if (!ReadBytes(&byte, 1)) { in ReadSLEB128()
70 cur_value += static_cast<uint64_t>(byte & 0x7f) << shift; in ReadSLEB128()
72 } while (byte & 0x80); in ReadSLEB128()
73 if (byte & 0x40) { in ReadSLEB128()
/system/libziparchive/
Dentry_name_utils-inl.h33 const uint8_t byte = entry_name[i]; in IsValidEntryName() local
34 if (byte == 0) { in IsValidEntryName()
36 } else if ((byte & 0x80) == 0) { in IsValidEntryName()
39 } else if ((byte & 0xc0) == 0x80 || (byte & 0xfe) == 0xfe) { in IsValidEntryName()
44 for (uint8_t first = static_cast<uint8_t>((byte & 0x7f) << 1); first & 0x80; in IsValidEntryName()
/system/netd/libnetdutils/
DSlice.cpp26 const std::string toHex(uint8_t byte) { in toHex() argument
29 return {kLookup[byte >> 4], kLookup[byte & 0xf]}; in toHex()
43 uint8_t byte = 0; in toHex() local
44 extract(tail, byte); in toHex()
45 ss << toHex(byte); in toHex()
/system/bt/gd/packet/
Dbyte_inserter.cc40 void ByteInserter::on_byte(uint8_t byte) { in on_byte() argument
42 observer.OnByte(byte); in on_byte()
46 void ByteInserter::insert_byte(uint8_t byte) { in insert_byte() argument
47 on_byte(byte); in insert_byte()
48 std::back_insert_iterator<std::vector<uint8_t>>::operator=(byte); in insert_byte()
Dbit_inserter.cc30 void BitInserter::insert_bits(uint8_t byte, size_t num_bits) { in insert_bits() argument
32 …uint16_t new_value = static_cast<uint8_t>(saved_bits_) | (static_cast<uint16_t>(byte) << num_saved… in insert_bits()
43 void BitInserter::insert_byte(uint8_t byte) { in insert_byte() argument
44 insert_bits(byte, 8); in insert_byte()
Dbyte_observer.cc25 void ByteObserver::OnByte(uint8_t byte) { in OnByte() argument
26 on_byte_(byte); in OnByte()
Dbit_inserter.h34 virtual void insert_bits(uint8_t byte, size_t num_bits);
36 void insert_byte(uint8_t byte) override;
Dfragmenting_inserter.cc29 void FragmentingInserter::insert_bits(uint8_t byte, size_t num_bits) { in insert_bits() argument
32 …uint16_t new_value = static_cast<uint8_t>(saved_bits_) | (static_cast<uint16_t>(byte) << num_saved… in insert_bits()
/system/core/trusty/utils/rpmb_dev/
Drpmb_protocol.h36 uint8_t byte[16]; member
40 uint8_t byte[2]; member
44 uint8_t byte[4]; member
112 for (i = 0; i < sizeof(u16.byte); i++) in rpmb_get_u16()
113 val = val << 8 | u16.byte[i]; in rpmb_get_u16()
123 for (i = 0; i < sizeof(u32.byte); i++) in rpmb_get_u32()
124 val = val << 8 | u32.byte[i]; in rpmb_get_u32()
/system/media/audio_utils/spdif/
DFrameScanner.cpp51 bool FrameScanner::scan(uint8_t byte) in scan() argument
54 ALOGV("FrameScanner: byte = 0x%02X, mCursor = %d", byte, mCursor); in scan()
58 if (byte == mSyncBytes[mCursor]) { in scan()
59 mHeaderBuffer[mCursor++] = byte; in scan()
66 mHeaderBuffer[mCursor++] = byte; in scan()
DBitFieldParser.cpp44 uint8_t byte = mData[byteCursor]; in readBits() local
48 uint32_t result = byte >> (bitsLeftInByte - bitsFromByte); in readBits()
/system/iorap/src/perfetto/
Drx_producer.h87 std::vector<std::byte>& data() { in data()
91 const std::vector<std::byte>& data() const { in data()
100 : BinaryWireProtobuf(reinterpret_cast<std::byte*>(data), size) { in BinaryWireProtobuf()
103 explicit BinaryWireProtobuf(std::byte* data, size_t size) { in BinaryWireProtobuf()
110 explicit BinaryWireProtobuf(std::vector<std::byte> data) : data_{std::move(data)} { in BinaryWireProtobuf()
146 static bool ReadFdToString(int fd, /*out*/std::vector<std::byte>* data);
148 std::vector<std::byte> data_;
/system/nvram/messages/
Dio.cpp41 uint8_t byte = (value & 0x7f) | (((value >> 7) == 0) ? 0x00 : 0x80); in EncodeVarint() local
42 if (!stream->WriteByte(byte)) { in EncodeVarint()
60 uint8_t byte = 0; in DecodeVarint() local
61 if (!stream_buffer->ReadByte(&byte)) { in DecodeVarint()
64 *value |= static_cast<uint64_t>(byte & 0x7f) << (i * 7); in DecodeVarint()
65 if ((byte & 0x80) == 0) { in DecodeVarint()
105 bool InputStreamBuffer::ReadByte(uint8_t* byte) { in ReadByte() argument
112 *byte = *pos_; in ReadByte()
192 bool OutputStreamBuffer::WriteByte(uint8_t byte) { in WriteByte() argument
199 *pos_ = byte; in WriteByte()
/system/nvram/messages/tests/
Dio_test.cpp83 uint8_t byte = 0; in TEST() local
84 EXPECT_TRUE(buf.ReadByte(&byte)); in TEST()
85 EXPECT_EQ(0, byte); in TEST()
98 uint8_t byte = 0; in TEST() local
99 EXPECT_FALSE(buf.ReadByte(&byte)); in TEST()
116 uint8_t byte = 0; in TEST() local
117 EXPECT_TRUE(buf.ReadByte(&byte)); in TEST()
118 EXPECT_EQ(0, byte); in TEST()
121 EXPECT_TRUE(buf.ReadByte(&byte)); in TEST()
122 EXPECT_EQ(1, byte); in TEST()
/system/core/init/
Depoll_test.cpp61 uint8_t byte = 0xee; in TEST() local
62 ASSERT_TRUE(android::base::WriteFully(fds[1], &byte, sizeof(byte))); in TEST()
/system/bt/gd/l2cap/
Dfcs.cc51 void Fcs::AddByte(uint8_t byte) { in AddByte() argument
52 crc = ((crc >> 8) & 0x00ff) ^ crctab[(crc & 0x00ff) ^ byte]; in AddByte()
/system/chre/apps/test/chqts/src/general_test/
Dcell_info_gsm.cc41 for (uint8_t byte : identity.reserved) { in validateIdentity() local
42 if (byte != 0) { in validateIdentity()
44 sendFatalFailureUint8("Invalid GSM reserved byte: %d", byte); in validateIdentity()
/system/bt/gd/packet/parser/test/
Dsimple_sum.h32 void AddByte(uint8_t byte) { in AddByte() argument
33 sum += byte; in AddByte()
Dvariable.cc37 for (auto byte : data) { in Serialize() local
38 bi.insert_byte(byte); in Serialize()
/system/bt/packet/avrcp/
Dpass_through_packet.cc40 uint8_t byte = opperation_id_ & 0b01111111; in Serialize() local
41 if (!pushed_) byte |= 0b10000000; in Serialize()
42 AddPayloadOctets1(pkt, byte); in Serialize()
Dget_folder_items.cc178 for (const uint8_t& byte : item.name_) { in PushMediaPlayerItem() local
179 AddPayloadOctets1(pkt, byte); in PushMediaPlayerItem()
195 for (const uint8_t& byte : item.name_) { in PushFolderItem() local
196 AddPayloadOctets1(pkt, byte); in PushFolderItem()
212 for (const uint8_t& byte : item.name_) { in PushMediaElementItem() local
213 AddPayloadOctets1(pkt, byte); in PushMediaElementItem()
226 for (const uint8_t& byte : attr_val) { in PushMediaElementItem() local
227 AddPayloadOctets1(pkt, byte); in PushMediaElementItem()
/system/unwinding/libunwindstack/tests/
DDwarfMemoryTest.cpp67 uint8_t byte; in TEST_F() local
68 ASSERT_TRUE(dwarf_mem_->ReadBytes(&byte, 1)); in TEST_F()
69 ASSERT_EQ(0x10U, byte); in TEST_F()
70 ASSERT_TRUE(dwarf_mem_->ReadBytes(&byte, 1)); in TEST_F()
71 ASSERT_EQ(0x18U, byte); in TEST_F()
72 ASSERT_TRUE(dwarf_mem_->ReadBytes(&byte, 1)); in TEST_F()
73 ASSERT_EQ(0xffU, byte); in TEST_F()
74 ASSERT_TRUE(dwarf_mem_->ReadBytes(&byte, 1)); in TEST_F()
75 ASSERT_EQ(0xfeU, byte); in TEST_F()
79 ASSERT_TRUE(dwarf_mem_->ReadBytes(&byte, 1)); in TEST_F()
[all …]
/system/bt/gd/packet/parser/
DREADME28 - Payload fields must be byte-aligned unless they have an unknown size.
29 Body fields are allowed to not be byte aligned.
35 - Can't handle size for Body type fields yet since they might not be byte aligned.
45 _payload_ must be byte aligned.

1234