Home
last modified time | relevance | path

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

12

/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", 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)); 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)) != 0) {
120 EXPECT_EQ(sample_data3[reentry_i], byte);
188 char byte;
189 read(fd, &byte, 1);
191 EXPECT_EQ(i == 0 ? first_byte : data[i - 1], byte);
257 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)); 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)) != 0) {
113 EXPECT_EQ(sample_data3[reentry_i], byte);
191 char byte;
192 read(fd, &byte, 1);
194 EXPECT_EQ(data[i], byte);
/system/core/bootstat/
Devent_log_list_builder.cpp92 void EventLogListBuilder::AppendByte(uint8_t byte) { in AppendByte() argument
93 DCHECK_LT(payload_size_ + sizeof(byte), MAX_EVENT_PAYLOAD_SIZE); in AppendByte()
94 payload_[payload_size_++] = byte; in AppendByte()
Devent_log_list_builder.h48 void AppendByte(uint8_t 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)); 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
40 1. A four-byte sync response id "DENT"
41 2. A four-byte integer representing file mode.
42 3. A four-byte integer representing file size.
43 4. A four-byte integer representing last modified time.
44 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
/system/core/libcutils/
Dstrdup8to16.c33 #define UTF8_SHIFT_AND_MASK(unicode, byte) \ argument
34 (unicode)<<=6; (unicode) |= (0x3f & (byte));
/system/update_engine/payload_consumer/
Dxz_extent_writer_unittest.cc155 for (uint8_t byte : compressed) { in TEST_F() local
156 EXPECT_TRUE(xz_writer_->Write(&byte, 1)); in TEST_F()
/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/core/fastboot/
Dfastboot_protocol.txt108 for illustration only here) and without a trailing 0 byte.
189 Upon connecting, both sides will send a 4-byte handshake message to ensure they
204 Where data_size is an unsigned 8-byte big-endian binary value, and data is the
205 fastboot packet. The 8-byte length is intended to provide future-proofing even
206 though currently fastboot packets have a 4-byte maximum length.
257 Seq # 2-byte packet sequence number (big-endian). The host will increment
268 The response data field should contain a 2-byte big-endian value
276 The data field contains two big-endian 2-byte values, a protocol
277 version and the max UDP packet size (including the 4-byte header).
294 Devices must support at least 512-byte packets, but packet size has a direct
[all …]
/system/media/audio_utils/include/audio_utils/spdif/
DFrameScanner.h46 virtual bool scan(uint8_t byte);
/system/bt/service/doc/
DIBluetoothGattClientCallback.txt78 in byte[] value);
106 in byte[] value);
120 void onNotify(in GattIdentifier characteristic_id, in byte[] value);
DIBluetoothGattServer.txt100 in int offset, in byte[] value);
113 in boolean confirm, in byte[] value);
DIBluetoothGattServerCallback.txt92 in boolean need_response, in byte[] value,
112 in boolean need_response, in byte[] value,
DIBluetoothGattClient.txt97 in byte[] value);
135 in byte[] value);
/system/bt/hci/src/
Dhci_layer.c554 uint8_t byte; in hal_says_data_ready() local
555 while (hal->read_data(type, &byte, 1) != 0) { in hal_says_data_ready()
565 incoming->preamble[incoming->index] = byte; in hal_says_data_ready()
571 …coming->bytes_remaining = (type == DATA_TYPE_ACL) ? RETRIEVE_ACL_LENGTH(incoming->preamble) : byte; in hal_says_data_ready()
594 incoming->buffer->data[incoming->index] = byte; in hal_says_data_ready()
/system/core/libutils/
DUnicode.cpp467 static inline void utf8_shift_and_mask(uint32_t* codePoint, const uint8_t byte) in utf8_shift_and_mask() argument
470 *codePoint |= 0x3F & byte; in utf8_shift_and_mask()
/system/core/metricsd/uploader/proto/
Dsystem_profile.proto229 // the IEEE and are encoded with the first byte in bits 16-23, the
230 // second byte in bits 8-15 and the third byte in bits 0-7.
334 // the IEEE and are encoded with the first byte in bits 16-23, the
335 // second byte in bits 8-15 and the third byte in bits 0-7.
/system/update_engine/
Dtest_http_server.cc234 char byte = first_byte; in WritePayload() local
237 line += byte++; in WritePayload()
/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

12