/system/nfc/src/fuzzers/integration/fakes/ |
D | nfc_adaptation_libmain_fakes.cc | 32 extern void* nfa_mem_co_alloc(uint32_t num_bytes) { in nfa_mem_co_alloc() argument 34 if (num_bytes > 100000) { in nfa_mem_co_alloc() 37 return malloc(num_bytes); in nfa_mem_co_alloc()
|
/system/server_configurable_flags/aconfigd/ |
D | aconfigd_socket_test.cpp | 83 auto num_bytes = TEMP_FAILURE_RETRY(send(*sock_fd, bytes, 4, 0)); in send_message() local 84 if (num_bytes != 4) { in send_message() 88 num_bytes = TEMP_FAILURE_RETRY( in send_message() 90 if (num_bytes != static_cast<long>(message_string.size())) { in send_message() 94 num_bytes = TEMP_FAILURE_RETRY(recv(*sock_fd, bytes, 4, 0)); in send_message() 95 if (num_bytes != 4) { in send_message()
|
/system/core/fs_mgr/libfs_avb/ |
D | avb_ops.cpp | 52 size_t num_bytes, void* buffer, size_t* out_num_read) { in read_from_partition() argument 54 partition, offset, num_bytes, buffer, out_num_read); in read_from_partition() 210 size_t num_bytes, void* buffer, in ReadFromPartition() argument 241 ssize_t num_read = TEMP_FAILURE_RETRY(pread64(fd, buffer, num_bytes, offset)); in ReadFromPartition() 242 if (num_read < 0 || (size_t)num_read != num_bytes) { in ReadFromPartition() 243 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/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/nfc/src/nfc/tags/ |
D | rw_main.cc | 76 void rw_main_update_tx_stats(uint32_t num_bytes, bool is_retry) { in rw_main_update_tx_stats() argument 77 rw_cb.stats.bytes_sent += num_bytes; in rw_main_update_tx_stats() 125 void rw_main_update_rx_stats(uint32_t num_bytes) { in rw_main_update_rx_stats() argument 126 rw_cb.stats.bytes_received += num_bytes; in rw_main_update_rx_stats()
|
D | rw_t1t_ndef.cc | 611 tlv_data.num_bytes = p_t1t->num_lockbytes; in rw_t1t_handle_read_rsp() 647 tlv_data.num_bytes = 0; in rw_t1t_handle_read_rsp() 650 tlv_data.num_bytes += in rw_t1t_handle_read_rsp() 651 p_t1t->mem_tlv[p_t1t->num_mem_tlvs].num_bytes; in rw_t1t_handle_read_rsp() 662 tlv_data.num_bytes = p_t1t->num_lockbytes; in rw_t1t_handle_read_rsp() 1086 p_t1t->mem_tlv[p_t1t->num_mem_tlvs].num_bytes = tlv_value[1]; in rw_t1t_handle_tlv_detect_rsp() 1762 uint8_t num_bytes; in rw_t1t_update_attributes() local 1797 num_bytes = 0; in rw_t1t_update_attributes() 1798 while (num_bytes < p_t1t->mem_tlv[count].num_bytes) { in rw_t1t_update_attributes() 1799 offset = p_t1t->mem_tlv[count].offset + num_bytes; in rw_t1t_update_attributes() [all …]
|
D | rw_t2t_ndef.cc | 285 tlv_data.num_bytes = p_t2t->num_lockbytes; in rw_t2t_ntf_tlv_detect_complete() 287 tlv_data.num_bytes = 0; in rw_t2t_ntf_tlv_detect_complete() 289 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 = count; in rw_t2t_handle_tlv_detect_rsp() 1964 uint16_t num_bytes; in rw_t2t_update_attributes() local 2035 num_bytes = 0; in rw_t2t_update_attributes() 2036 while (num_bytes < p_t2t->mem_tlv[count].num_bytes) { in rw_t2t_update_attributes() 2037 offset = p_t2t->mem_tlv[count].offset + num_bytes; in rw_t2t_update_attributes() 2050 num_bytes++; in rw_t2t_update_attributes() 2095 tag_size += p_t2t->mem_tlv[xx].num_bytes; in rw_t2t_get_lock_bits_for_segment()
|
/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/server_configurable_flags/aconfigd/srcs/ |
D | AconfigdClientSocketImpl.java | 94 int num_bytes = inputStream.readInt(); in send() local 95 Slog.i(TAG, "received " + num_bytes + " bytes back from aconfigd"); in send()
|
/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 | 402 uint8_t num_bytes; /* number of lock/reserved bytes */ member
|
/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/keymaster/contexts/ |
D | pure_soft_remote_provisioning_context.cpp | 59 size_t num_bytes) const { in DeriveBytesFromHbk() 61 std::vector<uint8_t> result(num_bytes); in DeriveBytesFromHbk() 65 HKDF(result.data(), num_bytes, // in DeriveBytesFromHbk()
|
/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 | 33 bool ReadBytes(void* dst, size_t num_bytes);
|
/system/security/ondevice-signing/ |
D | CertUtils.cpp | 207 auto num_bytes = BN_num_bytes(RSA_get0_n(rsa)); in extractPublicKey() local 208 std::vector<uint8_t> pubKey(num_bytes); in extractPublicKey()
|
/system/extras/simpleperf/ |
D | ETMDecoder.cpp | 256 uint32_t* num_bytes, uint8_t* p_buffer) override { in ReadTargetMemory() argument 261 address + *num_bytes <= data.buffer_end) { in ReadTargetMemory() 263 *num_bytes = 0; in ReadTargetMemory() 265 memcpy(p_buffer, data.buffer + (address - data.buffer_start), *num_bytes); in ReadTargetMemory() 279 copy_size = file_size > offset ? std::min<size_t>(file_size - offset, *num_bytes) : 0; in ReadTargetMemory() 305 *num_bytes = copy_size; in ReadTargetMemory()
|
/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 374 uint16_t num_bytes; /* Number of reserved bytes as per the TLV */ member
|
D | rw_api.h | 209 num_bytes; /* number of reserved/lock bytes based on the type of tlv */ member
|
/system/nfc/src/nfa/rw/ |
D | nfa_rw_act.cc | 335 p_rw_data->tlv.num_bytes); in nfa_rw_handle_tlv_detect() 340 conn_evt_data.tlv_detect.num_bytes = p_rw_data->tlv.num_bytes; in nfa_rw_handle_tlv_detect()
|
/system/chre/external/flatbuffers/include/flatbuffers/ |
D | flatbuffers.h | 1312 void Pad(size_t num_bytes) { buf_.fill(num_bytes); }
|