Searched refs:byte (Results 1 - 25 of 30) sorted by relevance

12

/system/core/libziparchive/
H A Dentry_name_utils-inl.h27 const uint8_t byte = entry_name[i]; local
28 if (byte == 0) {
30 } else if ((byte & 0x80) == 0) {
31 // Single byte sequence.
33 } else if ((byte & 0xc0) == 0x80 || (byte & 0xfe) == 0xfe) {
37 // 2-5 byte sequences.
38 for (uint8_t first = byte << 1; first & 0x80; first <<= 1) {
41 // Missing continuation byte..
46 // Invalid continuation byte
[all...]
/system/core/libunwindstack/
H A DArmExidx.cpp47 // The offset needs to be at least two byte aligned.
172 inline bool ArmExidx::GetByte(uint8_t* byte) { argument
177 *byte = data_.front();
182 inline bool ArmExidx::DecodePrefix_10_00(uint8_t byte) { argument
183 CHECK((byte >> 4) == 0x8);
185 uint16_t registers = (byte & 0xf) << 8;
186 if (!GetByte(&byte)) {
190 registers |= byte;
242 inline bool ArmExidx::DecodePrefix_10_01(uint8_t byte) { argument
243 CHECK((byte >>
268 DecodePrefix_10_10(uint8_t byte) argument
322 uint8_t byte; local
380 uint8_t byte; local
402 uint8_t byte; local
432 DecodePrefix_10_11_1nnn(uint8_t byte) argument
452 DecodePrefix_10(uint8_t byte) argument
482 DecodePrefix_11_000(uint8_t byte) argument
563 DecodePrefix_11_001(uint8_t byte) argument
618 DecodePrefix_11_010(uint8_t byte) argument
637 DecodePrefix_11(uint8_t byte) argument
659 uint8_t byte; local
[all...]
H A DArmExidx.h79 bool GetByte(uint8_t* byte);
81 bool DecodePrefix_10_00(uint8_t byte);
82 bool DecodePrefix_10_01(uint8_t byte);
83 bool DecodePrefix_10_10(uint8_t byte);
89 bool DecodePrefix_10_11_1nnn(uint8_t byte);
90 bool DecodePrefix_10(uint8_t byte);
92 bool DecodePrefix_11_000(uint8_t byte);
93 bool DecodePrefix_11_001(uint8_t byte);
94 bool DecodePrefix_11_010(uint8_t byte);
95 bool DecodePrefix_11(uint8_t byte);
[all...]
H A DDwarfMemory.cpp50 uint8_t byte; local
52 if (!ReadBytes(&byte, 1)) {
55 cur_value += static_cast<uint64_t>(byte & 0x7f) << shift;
57 } while (byte & 0x80);
65 uint8_t byte; local
67 if (!ReadBytes(&byte, 1)) {
70 cur_value += static_cast<uint64_t>(byte & 0x7f) << shift;
72 } while (byte & 0x80);
73 if (byte & 0x40) {
/system/netd/libnetdutils/
H A DSlice.cpp25 // Convert one byte to a two character hexadecimal string
26 const std::string toHex(uint8_t byte) { argument
29 return {kLookup[byte >> 4], kLookup[byte & 0xf]};
43 uint8_t byte = 0; local
44 extract(tail, byte);
45 ss << toHex(byte);
/system/media/audio_utils/spdif/
H A DFrameScanner.cpp49 // State machine that scans for headers in a byte stream.
51 bool FrameScanner::scan(uint8_t byte) argument
54 ALOGV("FrameScanner: byte = 0x%02X, mCursor = %d", byte, mCursor);
58 if (byte == mSyncBytes[mCursor]) {
59 mHeaderBuffer[mCursor++] = byte;
66 mHeaderBuffer[mCursor++] = byte;
H A DBitFieldParser.cpp42 // Extract some bits from the current byte.
43 uint32_t byteCursor = mBitCursor >> 3; // 8 bits per byte
44 uint8_t byte = mData[byteCursor]; local
48 uint32_t result = byte >> (bitsLeftInByte - bitsFromByte);
/system/bt/packet/avrcp/
H A Dpass_through_packet.cc40 uint8_t byte = opperation_id_ & 0b01111111; local
41 if (!pushed_) byte |= 0b10000000;
42 AddPayloadOctets1(pkt, byte);
H A Dget_folder_items.cc178 for (const uint8_t& byte : item.name_) {
179 AddPayloadOctets1(pkt, byte);
195 for (const uint8_t& byte : item.name_) {
196 AddPayloadOctets1(pkt, byte);
212 for (const uint8_t& byte : item.name_) {
213 AddPayloadOctets1(pkt, byte);
226 for (const uint8_t& byte : attr_val) {
227 AddPayloadOctets1(pkt, byte);
H A Dget_item_attributes.cc79 for (const uint8_t& byte : entry.value()) {
80 AddPayloadOctets1(pkt, byte);
/system/chre/apps/chqts/src/general_test/
H A Dcell_info_gsm.cc43 for (uint8_t byte : identity.reserved) {
44 if (byte != 0) {
46 sendFatalFailureUint8("Invalid GSM reserved byte: %d",
47 byte);
H A Dwwan_cell_info_test.cc101 for (uint8_t byte : cells[i].reserved2) {
102 if (byte != 0) {
105 "Invalid reserved2 field: %d", byte);
/system/nvram/messages/
H A Dio.cpp41 uint8_t byte = (value & 0x7f) | (((value >> 7) == 0) ? 0x00 : 0x80); local
42 if (!stream->WriteByte(byte)) {
54 // byte in a varint has 7 payload bytes, so encoding 64 bits yields at most 10
60 uint8_t byte = 0; local
61 if (!stream_buffer->ReadByte(&byte)) {
64 *value |= static_cast<uint64_t>(byte & 0x7f) << (i * 7);
65 if ((byte & 0x80) == 0) {
105 bool InputStreamBuffer::ReadByte(uint8_t* byte) {
112 *byte = *pos_;
192 bool OutputStreamBuffer::WriteByte(uint8_t byte) {
[all...]
/system/nvram/messages/tests/
H A Dio_test.cpp29 // windows of |sizes| specified by the template parameters. Each byte read from
83 uint8_t byte = 0;
84 EXPECT_TRUE(buf.ReadByte(&byte));
85 EXPECT_EQ(0, byte);
98 uint8_t byte = 0;
99 EXPECT_FALSE(buf.ReadByte(&byte));
116 uint8_t byte = 0;
117 EXPECT_TRUE(buf.ReadByte(&byte));
118 EXPECT_EQ(0, byte);
121 EXPECT_TRUE(buf.ReadByte(&byte));
[all...]
/system/bt/packet/tests/base/
H A Dpacket_test_common.h84 for (uint8_t byte : data_) {
85 AddPayloadOctets1(pkt, byte);
/system/bt/packet/tests/avrcp/
H A Davrcp_browse_packet_test.cc48 for (uint8_t byte : data_) {
49 AddPayloadOctets1(pkt, byte);
H A Davrcp_packet_test.cc48 for (uint8_t byte : data_) {
49 AddPayloadOctets1(pkt, byte);
H A Dvendor_packet_test.cc50 for (uint8_t byte : data_) {
51 AddPayloadOctets1(pkt, byte);
/system/core/libcutils/
H A Dstrdup8to16.cpp34 #define UTF8_SHIFT_AND_MASK(unicode, byte) \
35 (unicode)<<=6; (unicode) |= (0x3f & (byte));
119 /* Mask for leader byte for lengths 1, 2, 3, and 4 respectively*/
/system/core/libunwindstack/tests/
H A DDwarfMemoryTest.cpp65 uint8_t byte; local
66 ASSERT_TRUE(dwarf_mem_->ReadBytes(&byte, 1));
67 ASSERT_EQ(0x10U, byte);
68 ASSERT_TRUE(dwarf_mem_->ReadBytes(&byte, 1));
69 ASSERT_EQ(0x18U, byte);
70 ASSERT_TRUE(dwarf_mem_->ReadBytes(&byte, 1));
71 ASSERT_EQ(0xffU, byte);
72 ASSERT_TRUE(dwarf_mem_->ReadBytes(&byte, 1));
73 ASSERT_EQ(0xfeU, byte);
77 ASSERT_TRUE(dwarf_mem_->ReadBytes(&byte,
[all...]
/system/media/audio_utils/include/audio_utils/spdif/
H A DFrameScanner.h26 * Scan a byte stream looking for the start of an encoded frame.
43 * Pass each byte of the encoded stream to this scanner.
46 virtual bool scan(uint8_t byte);
/system/nvram/messages/include/nvram/messages/
H A Dio.h51 // Consume a single byte and place it in |byte|. Returns true if successful,
52 // i.e. if there was a byte available.
53 bool ReadByte(uint8_t* byte);
125 // Writes |byte| to the underlying buffer. Returns false if there is not
127 bool WriteByte(uint8_t byte);
/system/nfc/src/nfc/tags/
H A Drw_t1t.cc77 /* Assume the data is just the response byte sequence */
456 /* Assume the data is just the response byte sequence */
811 tNFC_STATUS RW_T1tRead(uint8_t block, uint8_t byte) { argument
822 RW_T1T_BLD_ADD((addr), (block), (byte));
840 tNFC_STATUS RW_T1tWriteErase(uint8_t block, uint8_t byte, uint8_t new_byte) { argument
851 (block != T1T_CC_BLOCK) && (byte != T1T_CC_RWA_OFFSET)) {
855 if ((block >= T1T_STATIC_BLOCKS) || (byte >= T1T_BLOCK_SIZE)) {
856 LOG(ERROR) << StringPrintf("RW_T1tWriteErase - Invalid Block/byte: %u / %u",
857 block, byte);
866 RW_T1T_BLD_ADD((addr), (block), (byte));
888 RW_T1tWriteNoErase(uint8_t block, uint8_t byte, uint8_t new_byte) argument
[all...]
/system/bt/stack/btm/
H A Dbtm_ble_privacy.cc140 uint8_t byte; local
144 byte = index / 8;
146 btm_cb.ble_ctr_cb.irk_list_mask[byte] &= (~(1 << bit));
161 uint8_t byte; local
165 byte = i / 8;
168 if ((btm_cb.ble_ctr_cb.irk_list_mask[byte] & (1 << bit)) == 0) {
169 btm_cb.ble_ctr_cb.irk_list_mask[byte] |= (1 << bit);
230 /* VSC complete has one extra byte for op code and list size, skip it here
279 /* privacy 1.2 command complete does not have these extra byte */
281 /* VSC complete has one extra byte fo
[all...]
/system/nfc/src/nfc/include/
H A Drw_api.h45 RW_T1T_READ_CPLT_EVT, /* Read byte completed */
46 RW_T1T_WRITE_E_CPLT_EVT, /* Write byte after erase completed */
47 RW_T1T_WRITE_NE_CPLT_EVT, /* Write byte with no erase completed */
225 uint8_t block_size; /* block size in byte if I93_INFO_FLAG_MEM_SIZE */
289 extern tNFC_STATUS RW_T1tRead(uint8_t block, uint8_t byte);
300 extern tNFC_STATUS RW_T1tWriteErase(uint8_t block, uint8_t byte,
313 extern tNFC_STATUS RW_T1tWriteNoErase(uint8_t block, uint8_t byte,

Completed in 376 milliseconds

12