Home
last modified time | relevance | path

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

/system/core/libziparchive/
Dentry_name_utils-inl.h27 const uint8_t byte = entry_name[i]; in IsValidEntryName() local
28 if (byte == 0) { in IsValidEntryName()
30 } else if ((byte & 0x80) == 0) { in IsValidEntryName()
33 } else if ((byte & 0xc0) == 0x80 || (byte & 0xfe) == 0xfe) { in IsValidEntryName()
38 for (uint8_t first = byte << 1; first & 0x80; first <<= 1) { in IsValidEntryName()
/system/media/audio_utils/spdif/
DFrameScanner.cpp51 bool FrameScanner::scan(uint8_t byte) in scan() argument
54 ALOGV("FrameScanner: byte = 0x%02X, mCursor = %d\n", 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/bt/hci/test/
Dhci_hal_h4_test.cpp69 uint8_t byte; in expect_packet_synchronous() local
70 EXPECT_EQ((size_t)1, hal->read_data(type, &byte, 1, true)); in expect_packet_synchronous()
71 EXPECT_EQ(packet_data[i], byte); in expect_packet_synchronous()
117 uint8_t byte;
119 while ((bytes_read = hal->read_data(type, &byte, 1, false)) != 0) {
120 EXPECT_EQ(sample_data3[reentry_i], byte);
188 char byte;
189 TEMP_FAILURE_RETRY(read(fd, &byte, 1));
191 EXPECT_EQ(i == 0 ? first_byte : data[i - 1], byte);
254 char byte = DATA_TYPE_ACL;
[all …]
Dhci_hal_mct_test.cpp64 uint8_t byte; in expect_packet_synchronous() local
65 EXPECT_EQ((size_t)1, hal->read_data(type, &byte, 1, true)); in expect_packet_synchronous()
66 EXPECT_EQ(packet_data[i], byte); in expect_packet_synchronous()
110 uint8_t byte;
112 while ((bytes_read = hal->read_data(type, &byte, 1, false)) != 0) {
113 EXPECT_EQ(sample_data3[reentry_i], byte);
191 char byte;
192 TEMP_FAILURE_RETRY(read(fd, &byte, 1));
194 EXPECT_EQ(data[i], byte);
/system/bt/osi/test/
Deager_reader_test.cpp92 uint8_t byte; in expect_data() local
93 EXPECT_EQ((size_t)1, eager_reader_read(reader, &byte, 1, true)); in expect_data()
94 EXPECT_EQ(data[i], byte); in expect_data()
/system/core/adb/
DSYNC.TXT17 In sync mode both the server and the client will frequently use eight-byte
43 1. A four-byte sync response id beeing "DENT"
44 2. A four-byte integer representing file mode.
45 3. A four-byte integer representing file size.
46 4. A four-byte integer representing last modified time.
47 5. A four-byte integer representing file name length.
DOVERVIEW.TXT86 1. A 4-byte hexadecimal string giving the length of the payload
101 1. For success, the 4-byte "OKAY" string
103 2. For failure, the 4-byte "FAIL" string, followed by a
104 4-byte hex length, followed by a string giving the reason
107 3. As a special exception, for 'host:version', a 4-byte
DSERVICES.TXT10 As a special exception, the server will respond with a 4-byte
23 After the OKAY, this is followed by a 4-byte hex len,
205 After the OKAY, the service sends 16-byte binary structure
217 one byte through the channel, which will trigger the service
Dprotocol.txt27 The transport layer deals in "messages", which consist of a 24 byte
/system/core/libcutils/
Dstrdup8to16.c33 #define UTF8_SHIFT_AND_MASK(unicode, byte) \ argument
34 (unicode)<<=6; (unicode) |= (0x3f & (byte));
/system/bt/stack/btm/
Dbtm_ble_privacy.c141 UINT8 byte; in btm_ble_clear_irk_index() local
146 byte = index / 8; in btm_ble_clear_irk_index()
148 btm_cb.ble_ctr_cb.irk_list_mask[byte] &= (~(1 << bit)); in btm_ble_clear_irk_index()
164 UINT8 byte; in btm_ble_find_irk_index() local
169 byte = i / 8; in btm_ble_find_irk_index()
172 if ((btm_cb.ble_ctr_cb.irk_list_mask[byte] & (1 << bit)) == 0) in btm_ble_find_irk_index()
174 btm_cb.ble_ctr_cb.irk_list_mask[byte] |= (1 << bit); in btm_ble_find_irk_index()
/system/media/audio_utils/include/audio_utils/spdif/
DFrameScanner.h46 virtual bool scan(uint8_t byte);
/system/bt/hci/src/
Dhci_layer.c532 uint8_t byte; in hal_says_data_ready() local
533 while (hal->read_data(type, &byte, 1, false) != 0) { in hal_says_data_ready()
543 incoming->preamble[incoming->index] = byte; in hal_says_data_ready()
549 …coming->bytes_remaining = (type == DATA_TYPE_ACL) ? RETRIEVE_ACL_LENGTH(incoming->preamble) : byte; in hal_says_data_ready()
572 incoming->buffer->data[incoming->index] = byte; in hal_says_data_ready()
/system/core/libutils/
DUnicode.cpp443 static inline void utf8_shift_and_mask(uint32_t* codePoint, const uint8_t byte) in utf8_shift_and_mask() argument
446 *codePoint |= 0x3F & byte; in utf8_shift_and_mask()
/system/bt/doc/
Dstyle_guide.md24 memory layout, sizes, byte order, etc. As a result, some operations are
47 It is not safe to assume any particular byte order. When serializing or
/system/core/fastboot/
Dfastboot_protocol.txt103 for illustration only here) and without a trailing 0 byte.