Home
last modified time | relevance | path

Searched refs:num_bytes (Results 1 – 25 of 26) sorted by relevance

12

/system/bt/profile/sdp/common/
Ddata_element_reader.cc176 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/
Davb_ops.cpp50 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()
Davb_ops.h57 AvbIOResult ReadFromPartition(const char* partition, int64_t offset, size_t num_bytes,
/system/bt/vendor_libs/test_vendor_lib/model/devices/
Dpolled_socket.cc86 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()
Dpolled_socket.h44 size_t TryReceive(size_t num_bytes, uint8_t* data);
/system/nfc/src/nfc/tags/
Drw_main.cc80 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()
Drw_t2t_ndef.cc290 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 …]
Drw_t1t_ndef.cc614 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/
DDwarfMemory.cpp29 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/
Dnfa_mem_co.h48 extern void* nfa_mem_co_alloc(uint32_t num_bytes);
Dnfa_api.h407 uint8_t num_bytes; /* number of lock/reserved bytes */ member
/system/bt/gd/packet/
Draw_builder.cc97 bool RawBuilder::CanAddOctets(size_t num_bytes) const { in CanAddOctets()
98 return payload_.size() + num_bytes <= max_bytes_; in CanAddOctets()
Draw_builder.h45 bool CanAddOctets(size_t num_bytes) const;
/system/update_engine/scripts/update_payload/
Dapplier.py183 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/
Dlibmain.cc50 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/
Dboot_control_copy.cpp98 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/
DDwarfMemory.h32 bool ReadBytes(void* dst, size_t num_bytes);
/system/extras/simpleperf/
DETMDecoder.cpp240 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/
Dpayload_state_unittest.cc893 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/
Dpagecache.py57 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/
Drw_int.h143 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
Drw_api.h206 num_bytes; /* number of reserved/lock bytes based on the type of tlv */ member
/system/bt/stack/a2dp/
Da2dp_sbc_encoder.cc554 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/
Da2dp_codec_api.h507 uint32_t num_bytes);
/system/nfc/src/nfa/rw/
Dnfa_rw_act.cc337 "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()

12