/system/bt/profile/sdp/common/ |
D | data_element_reader.cc | 176 uint32_t num_bytes = 0; in ReadString() local 181 num_bytes = it_.extractBE<uint8_t>(); in ReadString() 185 num_bytes = it_.extractBE<uint16_t>(); in ReadString() 189 num_bytes = it_.extractBE<uint32_t>(); in ReadString() 196 CHECK_REMAINING_LEN(num_bytes); in ReadString() 199 for (uint32_t i = 0; i < num_bytes; i++) { in ReadString() 208 uint32_t num_bytes = 0; in ReadSequence() local 213 num_bytes = it_.extractBE<uint8_t>(); in ReadSequence() 217 num_bytes = it_.extractBE<uint16_t>(); in ReadSequence() 221 num_bytes = it_.extractBE<uint32_t>(); in ReadSequence() [all …]
|
/system/core/fs_mgr/libfs_avb/ |
D | avb_ops.cpp | 50 size_t num_bytes, void* buffer, size_t* out_num_read) { in read_from_partition() argument 52 partition, offset, num_bytes, buffer, out_num_read); in read_from_partition() 172 size_t num_bytes, void* buffer, in ReadFromPartition() argument 213 ssize_t num_read = TEMP_FAILURE_RETRY(pread64(fd, buffer, num_bytes, offset)); in ReadFromPartition() 214 if (num_read < 0 || (size_t)num_read != num_bytes) { in ReadFromPartition() 215 PERROR << "Failed to read " << num_bytes << " bytes from " << path << " offset " << offset; in ReadFromPartition()
|
D | avb_ops.h | 57 AvbIOResult ReadFromPartition(const char* partition, int64_t offset, size_t num_bytes,
|
/system/bt/vendor_libs/test_vendor_lib/model/devices/ |
D | polled_socket.cc | 86 size_t PolledSocket::TryReceive(size_t num_bytes, uint8_t* data) { in TryReceive() argument 89 WHILE_EINTR(ret = read(file_descriptor_, data, num_bytes)); in TryReceive()
|
D | polled_socket.h | 44 size_t TryReceive(size_t num_bytes, uint8_t* data);
|
/system/nfc/src/nfc/tags/ |
D | rw_main.cc | 80 void rw_main_update_tx_stats(uint32_t num_bytes, bool is_retry) { in rw_main_update_tx_stats() argument 81 rw_cb.stats.bytes_sent += num_bytes; in rw_main_update_tx_stats() 129 void rw_main_update_rx_stats(uint32_t num_bytes) { in rw_main_update_rx_stats() argument 130 rw_cb.stats.bytes_received += num_bytes; in rw_main_update_rx_stats()
|
D | rw_t2t_ndef.cc | 290 tlv_data.num_bytes = p_t2t->num_lockbytes; in rw_t2t_ntf_tlv_detect_complete() 292 tlv_data.num_bytes = 0; in rw_t2t_ntf_tlv_detect_complete() 294 tlv_data.num_bytes += p_t2t->mem_tlv[p_t2t->num_mem_tlvs].num_bytes; in rw_t2t_ntf_tlv_detect_complete() 687 p_t2t->mem_tlv[p_t2t->num_mem_tlvs].num_bytes = in rw_t2t_handle_tlv_detect_rsp() 1420 tag_size += p_t2t->mem_tlv[xx].num_bytes; in rw_t2t_get_ndef_max_size() 1973 uint8_t num_bytes; in rw_t2t_update_attributes() local 2009 num_bytes = 0; in rw_t2t_update_attributes() 2010 while (num_bytes < p_t2t->mem_tlv[count].num_bytes) { in rw_t2t_update_attributes() 2011 offset = p_t2t->mem_tlv[count].offset + num_bytes; in rw_t2t_update_attributes() 2024 num_bytes++; in rw_t2t_update_attributes() [all …]
|
D | rw_t1t_ndef.cc | 614 tlv_data.num_bytes = p_t1t->num_lockbytes; in rw_t1t_handle_read_rsp() 650 tlv_data.num_bytes = 0; in rw_t1t_handle_read_rsp() 653 tlv_data.num_bytes += in rw_t1t_handle_read_rsp() 654 p_t1t->mem_tlv[p_t1t->num_mem_tlvs].num_bytes; in rw_t1t_handle_read_rsp() 665 tlv_data.num_bytes = p_t1t->num_lockbytes; in rw_t1t_handle_read_rsp() 1089 p_t1t->mem_tlv[p_t1t->num_mem_tlvs].num_bytes = tlv_value[1]; in rw_t1t_handle_tlv_detect_rsp() 1763 uint8_t num_bytes; in rw_t1t_update_attributes() local 1798 num_bytes = 0; in rw_t1t_update_attributes() 1799 while (num_bytes < p_t1t->mem_tlv[count].num_bytes) { in rw_t1t_update_attributes() 1800 offset = p_t1t->mem_tlv[count].offset + num_bytes; in rw_t1t_update_attributes() [all …]
|
/system/core/libunwindstack/ |
D | DwarfMemory.cpp | 29 bool DwarfMemory::ReadBytes(void* dst, size_t num_bytes) { in ReadBytes() argument 30 if (!memory_->ReadFully(cur_offset_, dst, num_bytes)) { in ReadBytes() 33 cur_offset_ += num_bytes; in ReadBytes()
|
/system/nfc/src/nfa/include/ |
D | nfa_mem_co.h | 48 extern void* nfa_mem_co_alloc(uint32_t num_bytes);
|
D | nfa_api.h | 407 uint8_t num_bytes; /* number of lock/reserved bytes */ member
|
/system/bt/gd/packet/ |
D | raw_builder.cc | 97 bool RawBuilder::CanAddOctets(size_t num_bytes) const { in CanAddOctets() 98 return payload_.size() + num_bytes <= max_bytes_; in CanAddOctets()
|
D | raw_builder.h | 45 bool CanAddOctets(size_t num_bytes) const;
|
/system/update_engine/scripts/update_payload/ |
D | applier.py | 183 num_bytes = ex.num_blocks * block_size 184 if data_length < num_bytes: 187 pad_len = num_bytes - data_length 188 num_bytes = data_length 190 arg += '%s%d:%d' % (arg and ',', start_byte, num_bytes) 191 data_length -= num_bytes
|
/system/nfc/src/adaptation/ |
D | libmain.cc | 50 extern void* nfa_mem_co_alloc(uint32_t num_bytes) { return malloc(num_bytes); } in nfa_mem_co_alloc() argument
|
/system/extras/boot_control_copy/ |
D | boot_control_copy.cpp | 98 static bool copy_data(int src_fd, int dst_fd, size_t num_bytes) in copy_data() argument 103 remaining = num_bytes; in copy_data()
|
/system/core/libunwindstack/include/unwindstack/ |
D | DwarfMemory.h | 32 bool ReadBytes(void* dst, size_t num_bytes);
|
/system/extras/simpleperf/ |
D | ETMDecoder.cpp | 240 uint32_t* num_bytes, uint8_t* p_buffer) override { in ReadTargetMemory() argument 245 address + *num_bytes <= data.buffer_end) { in ReadTargetMemory() 247 *num_bytes = 0; in ReadTargetMemory() 249 memcpy(p_buffer, data.buffer + (address - data.buffer_start), *num_bytes); in ReadTargetMemory() 261 copy_size = file_size > offset ? std::min<size_t>(file_size - offset, *num_bytes) : 0; in ReadTargetMemory() 272 *num_bytes = copy_size; in ReadTargetMemory()
|
/system/update_engine/ |
D | payload_state_unittest.cc | 893 uint64_t num_bytes = 42 * 1000 * 1000; in TEST() local 894 payload_state.DownloadProgress(num_bytes); in TEST() 897 EXPECT_EQ(num_bytes, in TEST() 899 EXPECT_EQ(num_bytes, in TEST() 904 total_bytes[kDownloadSourceHttpServer] = num_bytes; in TEST() 934 uint64_t num_bytes = 10000; in TEST() local 935 payload_state.DownloadProgress(num_bytes); in TEST() 936 EXPECT_EQ(num_bytes, in TEST() 938 EXPECT_EQ(num_bytes, in TEST() 949 EXPECT_EQ(num_bytes, in TEST()
|
/system/extras/pagecache/ |
D | pagecache.py | 57 def bytes_to_mb(self, num_bytes): argument 58 return "%.2f" % round(int(num_bytes) / 1024.0 / 1024.0, 2)
|
/system/nfc/src/nfc/include/ |
D | rw_int.h | 143 uint8_t num_bytes; /* Number of reserved bytes as per the TLV */ member 376 uint8_t num_bytes; /* Number of reserved bytes as per the TLV */ member
|
D | rw_api.h | 206 num_bytes; /* number of reserved/lock bytes based on the type of tlv */ member
|
/system/bt/stack/a2dp/ |
D | a2dp_sbc_encoder.cc | 554 uint32_t num_bytes = 0; in a2dp_sbc_encode_frames() local 555 if (a2dp_sbc_read_feeding(&num_bytes)) { in a2dp_sbc_encode_frames() 566 bytes_read += num_bytes; in a2dp_sbc_encode_frames()
|
/system/bt/stack/include/ |
D | a2dp_codec_api.h | 507 uint32_t num_bytes);
|
/system/nfc/src/nfa/rw/ |
D | nfa_rw_act.cc | 337 "TLV Detection succeeded: num_bytes=%i", p_rw_data->tlv.num_bytes); in nfa_rw_handle_tlv_detect() 342 conn_evt_data.tlv_detect.num_bytes = p_rw_data->tlv.num_bytes; in nfa_rw_handle_tlv_detect()
|