Home
last modified time | relevance | path

Searched refs:num_bytes (Results 1 – 25 of 29) 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/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/bt/vendor_libs/test_vendor_lib/model/devices/
Dpolled_socket.cc95 size_t PolledSocket::TryReceive(size_t num_bytes, uint8_t* data) { in TryReceive() argument
98 WHILE_EINTR(ret = read(file_descriptor_, data, num_bytes)); in TryReceive()
Dpolled_socket.h46 size_t TryReceive(size_t num_bytes, uint8_t* data);
/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/bt/vendor_libs/test_vendor_lib/packets/hci/
Devent_payload_builder.cc93 bool EventPayloadBuilder::CanAddPayloadOctets(size_t num_bytes) const { in CanAddPayloadOctets()
94 return payload_.size() + num_bytes <= max_bytes_; in CanAddPayloadOctets()
Devent_payload_builder.h63 bool CanAddPayloadOctets(size_t num_bytes) const;
/system/nfc/src/nfa/include/
Dnfa_mem_co.h48 extern void* nfa_mem_co_alloc(uint32_t num_bytes);
/system/bt/gd/packet/
Draw_builder.cc95 bool RawBuilder::CanAddOctets(size_t num_bytes) const { in CanAddOctets()
96 return payload_.size() + num_bytes <= max_bytes_; in CanAddOctets()
Draw_builder.h44 bool CanAddOctets(size_t num_bytes) const;
/system/bt/vendor_libs/test_vendor_lib/packets/
Draw_builder.cc93 bool RawBuilder::CanAddOctets(size_t num_bytes) const { in CanAddOctets()
94 return payload_.size() + num_bytes <= max_bytes_; in CanAddOctets()
Draw_builder.h43 bool CanAddOctets(size_t num_bytes) const;
/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/update_engine/scripts/update_payload/
Dapplier.py194 num_bytes = ex.num_blocks * block_size
195 if data_length < num_bytes:
199 pad_len = num_bytes - data_length
201 num_bytes = data_length
203 arg += '%s%d:%d' % (arg and ',', start_byte, num_bytes)
204 data_length -= num_bytes
/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/update_engine/
Dpayload_state_unittest.cc890 uint64_t num_bytes = 42 * 1000 * 1000; in TEST() local
891 payload_state.DownloadProgress(num_bytes); in TEST()
894 EXPECT_EQ(num_bytes, in TEST()
896 EXPECT_EQ(num_bytes, in TEST()
901 total_bytes[kDownloadSourceHttpServer] = num_bytes; in TEST()
931 uint64_t num_bytes = 10000; in TEST() local
932 payload_state.DownloadProgress(num_bytes); in TEST()
933 EXPECT_EQ(num_bytes, in TEST()
935 EXPECT_EQ(num_bytes, in TEST()
946 EXPECT_EQ(num_bytes, in TEST()
/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/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/bt/stack/a2dp/
Da2dp_sbc_encoder.cc547 uint32_t num_bytes = 0; in a2dp_sbc_encode_frames() local
548 if (a2dp_sbc_read_feeding(&num_bytes)) { in a2dp_sbc_encode_frames()
559 bytes_read += num_bytes; in a2dp_sbc_encode_frames()

12