/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/keymaster/contexts/ |
D | pure_soft_remote_provisioning_context.cpp | 49 size_t num_bytes) const { in DeriveBytesFromHbk() 54 std::vector<uint8_t> result(num_bytes); in DeriveBytesFromHbk() 58 HKDF(result.data(), num_bytes, // in DeriveBytesFromHbk()
|
/system/core/fastboot/ |
D | vendor_boot_img_utils.cpp | 39 [[nodiscard]] Result<void> Copy(uint32_t num_bytes) { in Copy() argument 40 if (num_bytes == 0) return {}; in Copy() 41 if (auto res = CheckAdvance(old_data_ptr_, old_end(), num_bytes, __FUNCTION__); !res.ok()) in Copy() 43 if (auto res = CheckAdvance(new_data_ptr_, new_end(), num_bytes, __FUNCTION__); !res.ok()) in Copy() 45 memcpy(new_data_ptr_, old_data_ptr_, num_bytes); in Copy() 46 old_data_ptr_ += num_bytes; in Copy() 47 new_data_ptr_ += num_bytes; in Copy() 113 uint32_t num_bytes, const char* op) { in CheckAdvance() argument 114 auto new_end = current + num_bytes; in CheckAdvance() 117 num_bytes, fmt::ptr(current)); in CheckAdvance() [all …]
|
/system/unwinding/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);
|
/system/nfc/src/nfc/tags/ |
D | rw_main.cc | 82 void rw_main_update_tx_stats(uint32_t num_bytes, bool is_retry) { in rw_main_update_tx_stats() argument 83 rw_cb.stats.bytes_sent += num_bytes; in rw_main_update_tx_stats() 131 void rw_main_update_rx_stats(uint32_t num_bytes) { in rw_main_update_rx_stats() argument 132 rw_cb.stats.bytes_received += num_bytes; in rw_main_update_rx_stats()
|
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 …]
|
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() 689 p_t2t->mem_tlv[p_t2t->num_mem_tlvs].num_bytes = count; in rw_t2t_handle_tlv_detect_rsp() 1972 uint8_t num_bytes; in rw_t2t_update_attributes() local 2043 num_bytes = 0; in rw_t2t_update_attributes() 2044 while (num_bytes < p_t2t->mem_tlv[count].num_bytes) { in rw_t2t_update_attributes() 2045 offset = p_t2t->mem_tlv[count].offset + num_bytes; in rw_t2t_update_attributes() 2058 num_bytes++; in rw_t2t_update_attributes() 2103 tag_size += p_t2t->mem_tlv[xx].num_bytes; in rw_t2t_get_lock_bits_for_segment()
|
/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 | 90 static bool copy_data(int src_fd, int dst_fd, size_t num_bytes) { in copy_data() argument 94 remaining = num_bytes; in copy_data()
|
/system/unwinding/libunwindstack/include/unwindstack/ |
D | DwarfMemory.h | 32 bool ReadBytes(void* dst, size_t num_bytes);
|
/system/extras/simpleperf/ |
D | ETMDecoder.cpp | 242 uint32_t* num_bytes, uint8_t* p_buffer) override { in ReadTargetMemory() argument 247 address + *num_bytes <= data.buffer_end) { in ReadTargetMemory() 249 *num_bytes = 0; in ReadTargetMemory() 251 memcpy(p_buffer, data.buffer + (address - data.buffer_start), *num_bytes); in ReadTargetMemory() 265 copy_size = file_size > offset ? std::min<size_t>(file_size - offset, *num_bytes) : 0; in ReadTargetMemory() 281 *num_bytes = copy_size; in ReadTargetMemory()
|
/system/update_engine/cros/ |
D | payload_state_unittest.cc | 889 uint64_t num_bytes = 42 * 1000 * 1000; in TEST_F() local 890 payload_state.DownloadProgress(num_bytes); in TEST_F() 893 EXPECT_EQ(num_bytes, in TEST_F() 895 EXPECT_EQ(num_bytes, in TEST_F() 900 total_bytes[kDownloadSourceHttpServer] = num_bytes; in TEST_F() 929 uint64_t num_bytes = 10000; in TEST_F() local 930 payload_state.DownloadProgress(num_bytes); in TEST_F() 931 EXPECT_EQ(num_bytes, in TEST_F() 933 EXPECT_EQ(num_bytes, in TEST_F() 944 EXPECT_EQ(num_bytes, in TEST_F()
|
/system/security/ondevice-signing/ |
D | CertUtils.cpp | 171 auto num_bytes = BN_num_bytes(rsa->n); in extractPublicKey() local 172 std::vector<uint8_t> pubKey(num_bytes); in extractPublicKey()
|
/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/bt/stack/a2dp/ |
D | a2dp_sbc_encoder.cc | 538 uint32_t num_bytes = 0; in a2dp_sbc_encode_frames() local 539 if (a2dp_sbc_read_feeding(&num_bytes)) { in a2dp_sbc_encode_frames() 550 bytes_read += num_bytes; in a2dp_sbc_encode_frames()
|
/system/nfc/src/nfc/include/ |
D | rw_int.h | 143 uint8_t num_bytes; /* Number of reserved bytes as per the TLV */ member 374 uint16_t num_bytes; /* Number of reserved bytes as per the TLV */ member
|
/system/bt/stack/include/ |
D | a2dp_codec_api.h | 507 uint32_t num_bytes);
|