/system/nvram/messages/tests/ |
D | io_test.cpp | 80 TestInputStreamBuffer<10> buf; in TEST() local 96 InputStreamBuffer buf(nullptr, nullptr); in TEST() local 103 TestInputStreamBuffer<10> buf; in TEST() local 109 TestInputStreamBuffer<10> buf; in TEST() local 114 TestInputStreamBuffer<1, 1> buf; in TEST() local 127 TestInputStreamBuffer<10, 10, 10> buf; in TEST() local 135 TestInputStreamBuffer<10, 10, 10> buf; in TEST() local 143 TestInputStreamBuffer<10> buf; in TEST() local 149 TestInputStreamBuffer<10> buf; in TEST() local 157 TestInputStreamBuffer<10, 5> buf; in TEST() local [all …]
|
/system/keymaster/android_keymaster/ |
D | android_keymaster_messages.cpp | 36 static uint8_t* serialize_key_blob(const keymaster_key_blob_t& key_blob, uint8_t* buf, in serialize_key_blob() 57 static uint8_t* serialize_blob(const keymaster_blob_t& blob, uint8_t* buf, const uint8_t* end) { in serialize_blob() 78 uint8_t* KeymasterResponse::Serialize(uint8_t* buf, const uint8_t* end) const { in Serialize() 101 uint8_t* GenerateKeyResponse::NonErrorSerialize(uint8_t* buf, const uint8_t* end) const { in NonErrorSerialize() 124 uint8_t* GetKeyCharacteristicsRequest::Serialize(uint8_t* buf, const uint8_t* end) const { in Serialize() 138 uint8_t* GetKeyCharacteristicsResponse::NonErrorSerialize(uint8_t* buf, const uint8_t* end) const { in NonErrorSerialize() 157 uint8_t* BeginOperationRequest::Serialize(uint8_t* buf, const uint8_t* end) const { in Serialize() 176 uint8_t* BeginOperationResponse::NonErrorSerialize(uint8_t* buf, const uint8_t* end) const { in NonErrorSerialize() 197 uint8_t* UpdateOperationRequest::Serialize(uint8_t* buf, const uint8_t* end) const { in Serialize() 233 uint8_t* UpdateOperationResponse::NonErrorSerialize(uint8_t* buf, const uint8_t* end) const { in NonErrorSerialize() [all …]
|
/system/iot/attestation/atap/test/ |
D | atap_util_unittest.cpp | 44 static void validate_blob(const uint8_t* buf, AtapBlob* blob) { in validate_blob() 55 static void validate_cert_chain(const uint8_t* buf, AtapCertChain* chain) { in validate_cert_chain() 72 static void validate_header(uint8_t* buf, in validate_header() 85 uint8_t buf[sizeof(uint64_t)]; in TEST_F() local 92 uint8_t buf[sizeof(uint64_t)]; in TEST_F() local 103 uint8_t buf[ATAP_HEADER_LEN]; in TEST_F() local 115 uint8_t buf[32]; in TEST_F() local 132 uint8_t buf[128]; in TEST_F() local 166 uint8_t buf[4096]; in TEST_F() local 201 uint8_t buf[4096]; in TEST_F() local [all …]
|
/system/bt/osi/src/ |
D | buffer.cc | 49 buffer_t* buffer_new_ref(const buffer_t* buf) { in buffer_new_ref() 54 buffer_t* buffer_new_slice(const buffer_t* buf, size_t slice_size) { in buffer_new_slice() 83 void* buffer_ptr(const buffer_t* buf) { in buffer_ptr() 88 size_t buffer_length(const buffer_t* buf) { in buffer_length()
|
/system/core/libion/tests/ |
D | device_test.cpp | 59 void Device::readDMA(int fd, void *buf, size_t size) in readDMA() 73 void Device::writeDMA(int fd, void *buf, size_t size) in writeDMA() 87 void Device::readKernel(int fd, void *buf, size_t size) in readKernel() 101 void Device::writeKernel(int fd, void *buf, size_t size) in writeKernel() 138 void *buf = (void *)(ALIGN((unsigned long)alloc_ptr.get(), 4096) + 1024); in TEST_F() local 170 void *buf = (void *)(ALIGN((unsigned long)alloc_ptr.get(), 4096) + 1024); in TEST_F() local 202 void *buf = (void *)(ALIGN((unsigned long)alloc_ptr.get(), 4096) + 1024); in TEST_F() local 232 void *buf = (void *)(ALIGN((unsigned long)alloc_ptr.get(), 4096) + 1024); in TEST_F() local 264 void *buf = (void *)(ALIGN((unsigned long)alloc_ptr.get(), 4096) + 1024); in TEST_F() local 296 void *buf = (void *)(ALIGN((unsigned long)alloc_ptr.get(), 4096) + 1024); in TEST_F() local [all …]
|
/system/core/logd/ |
D | CommandListener.cpp | 40 CommandListener::CommandListener(LogBuffer* buf, LogReader* /*reader*/, in CommandListener() 67 CommandListener::ClearCmd::ClearCmd(LogBuffer* buf) in ClearCmd() 102 CommandListener::GetBufSizeCmd::GetBufSizeCmd(LogBuffer* buf) in GetBufSizeCmd() 121 char buf[512]; in runCommand() local 127 CommandListener::SetBufSizeCmd::SetBufSizeCmd(LogBuffer* buf) in SetBufSizeCmd() 160 CommandListener::GetBufSizeUsedCmd::GetBufSizeUsedCmd(LogBuffer* buf) in GetBufSizeUsedCmd() 179 char buf[512]; in runCommand() local 185 CommandListener::GetStatisticsCmd::GetStatisticsCmd(LogBuffer* buf) in GetStatisticsCmd() 236 CommandListener::GetPruneListCmd::GetPruneListCmd(LogBuffer* buf) in GetPruneListCmd() 247 CommandListener::SetPruneListCmd::SetPruneListCmd(LogBuffer* buf) in SetPruneListCmd() [all …]
|
/system/libufdt/tests/src/ |
D | util.c | 31 char *buf = malloc(len); in load_file_contents() local 54 char *buf = load_file_contents(fp, len_ptr); in load_file() local 62 const void *buf, size_t buf_size) { in write_buf_to_file()
|
/system/core/libutils/ |
D | String16.cpp | 38 SharedBuffer* buf = SharedBuffer::alloc(sizeof(char16_t)); in initialize_string16() local 65 SharedBuffer* buf = SharedBuffer::alloc(sizeof(char16_t)*(u16len+1)); in allocFromUTF8() local 88 SharedBuffer* buf = SharedBuffer::alloc((u16len + 1) * sizeof(char16_t)); in allocFromUTF16() local 200 SharedBuffer* buf = SharedBuffer::bufferFromData(mString) in setTo() local 228 SharedBuffer* buf = SharedBuffer::bufferFromData(mString) in append() local 254 SharedBuffer* buf = SharedBuffer::bufferFromData(mString) in append() local 289 SharedBuffer* buf = SharedBuffer::bufferFromData(mString) in insert() local 363 SharedBuffer* buf = SharedBuffer::bufferFromData(mString)->edit(); in makeLower() local 384 SharedBuffer* buf = SharedBuffer::bufferFromData(mString)->edit(); in replaceAll() local 411 SharedBuffer* buf = SharedBuffer::bufferFromData(mString) in remove() local [all …]
|
D | String8.cpp | 65 SharedBuffer* buf = SharedBuffer::alloc(1); in initialize_string8() local 87 SharedBuffer* buf = SharedBuffer::alloc(len+1); in allocFromUTF8() local 111 SharedBuffer* buf = SharedBuffer::alloc(resultStrLen); in allocFromUTF16() local 133 SharedBuffer* buf = SharedBuffer::alloc(resultStrLen); in allocFromUTF32() local 357 char* buf = lockBuffer(oldLength + n); in appendFormatV() local 371 SharedBuffer* buf = SharedBuffer::bufferFromData(mString) in real_append() local 386 SharedBuffer* buf = SharedBuffer::bufferFromData(mString) in lockBuffer() local 404 SharedBuffer* buf = SharedBuffer::bufferFromData(mString) in unlockBuffer() local 433 char* buf = lockBuffer(size()); in removeAll() local 467 char* buf = lockBuffer(len); in toLower() local [all …]
|
D | SharedBufferTest.cpp | 32 android::SharedBuffer* buf = in TEST() local 43 android::SharedBuffer* buf = android::SharedBuffer::alloc(10); in TEST() local
|
/system/iot/attestation/atap/libatap/ |
D | atap_util.c | 35 uint8_t* append_to_buf(uint8_t* buf, const void* data, uint32_t data_size) { in append_to_buf() 40 uint8_t* append_uint32_to_buf(uint8_t* buf, uint32_t x) { in append_uint32_to_buf() 44 uint8_t* append_header_to_buf(uint8_t* buf, uint32_t message_length) { in append_header_to_buf() 51 uint8_t* append_blob_to_buf(uint8_t* buf, const AtapBlob* blob) { in append_blob_to_buf() 60 uint8_t* append_cert_chain_to_buf(uint8_t* buf, in append_cert_chain_to_buf() 77 uint8_t* append_ca_request_to_buf(uint8_t* buf, in append_ca_request_to_buf() 89 uint8_t* buf, const AtapInnerCaRequest* inner_ca_request) { in append_inner_ca_request_to_buf() 245 bool validate_encrypted_message(const uint8_t* buf, uint32_t buf_size) { in validate_encrypted_message() 270 bool validate_inner_ca_response(const uint8_t* buf, in validate_inner_ca_response()
|
/system/core/healthd/ |
D | BatteryMonitor.cpp | 141 int BatteryMonitor::readFromFile(const String8& path, std::string* buf) { in readFromFile() 149 std::string buf; in readPowerSupplyType() local 181 std::string buf; in getBooleanField() local 192 std::string buf; in getIntField() local 232 std::string buf; in update() local 342 std::string buf; in getChargeStatus() local 351 std::string buf; in getProperty() local
|
/system/extras/ioshark/ |
D | compile_ioshark.c | 108 get_delta_ts(char *buf, struct timeval *prev) in get_delta_ts() 123 get_tracetype(char *buf, char *trace_type) in get_tracetype() 176 get_pathname(char *buf, char *pathname, enum file_op file_op) in get_pathname() 221 get_syscall(char *buf, char *syscall) in get_syscall() 244 get_mmap_offset_len_prot(char *buf, int *prot, off_t *offset, u_int64_t *len) in get_mmap_offset_len_prot() 293 get_lseek_offset_action(char *buf, enum file_op op, in get_lseek_offset_action() 334 get_rw_len(char *buf, in get_rw_len() 349 get_prw64_offset_len(char *buf, in get_prw64_offset_len() 375 get_ftrace_offset_len(char *buf, in get_ftrace_offset_len() 403 get_openat_flags_mode(char *buf, char *flags, mode_t *mode) in get_openat_flags_mode()
|
/system/connectivity/wifilogd/ |
D | memory_reader.h | 35 MemoryReader(const void* buf, size_t buflen) in MemoryReader() 38 explicit MemoryReader(std::tuple<const uint8_t*, size_t> buf) in MemoryReader()
|
/system/core/adb/ |
D | adb_io_test.cpp | 55 char buf[sizeof(expected)] = {}; in POSIX_TEST() local 69 char buf[sizeof(expected) + 1] = {}; in POSIX_TEST() local 83 char buf[sizeof(input) - 1] = {}; in POSIX_TEST() local 107 const char buf[] = "Foobar"; in POSIX_TEST() local 127 char buf[] = "foo"; in POSIX_TEST() local
|
D | adb_io.cpp | 45 char buf[5]; in ReadProtocolString() local 70 bool ReadFdExactly(int fd, void* buf, size_t len) { in ReadFdExactly() 97 bool WriteFdExactly(int fd, const void* buf, size_t len) { in WriteFdExactly() 146 char buf[16]; in ReadOrderlyShutdown() local
|
/system/core/libcutils/ |
D | partition_utils.cpp | 28 static int only_one_char(char *buf, int len, char c) in only_one_char() 44 char buf[4096]; in partition_wiped() local
|
/system/core/liblog/ |
D | logd_reader.c | 259 char* buf, size_t buf_size) { in send_log_msg() 324 LIBLOG_HIDDEN ssize_t __send_log_msg(char* buf, size_t buf_size) { in __send_log_msg() 328 static int check_log_success(char* buf, ssize_t ret) { in check_log_success() 343 char buf[512]; in logdClear() local 352 char buf[512]; in logdGetSize() local 369 char buf[512]; in logdSetSize() local 383 char buf[512]; in logdGetReadableSize() local 411 char* buf, size_t len) { in logdGetStats() 438 char* buf, size_t len) { in logdGetPrune() 444 char* buf, size_t len) { in logdSetPrune()
|
D | uio.c | 29 char* buf = vecs->iov_base; in readv() local 53 const char* buf = vecs->iov_base; in writev() local
|
/system/bt/bta/hf_client/ |
D | bta_hf_client_at.cc | 120 tBTA_HF_CLIENT_AT_CMD cmd, const char* buf, in bta_hf_client_queue_at() 169 tBTA_HF_CLIENT_AT_CMD cmd, const char* buf, in bta_hf_client_send_at() 768 #define AT_CHECK_EVENT(buf, event) \ argument 776 #define AT_CHECK_RN(buf) \ argument 786 #define AT_SKIP_REST(buf) \ argument 1499 char* buf = client_cb->at_cb.buf; in bta_hf_client_at_parse_start() local 1570 void bta_hf_client_at_parse(tBTA_HF_CLIENT_CB* client_cb, char* buf, in bta_hf_client_at_parse() 1631 char buf[BTA_HF_CLIENT_AT_MAX_LEN]; in bta_hf_client_send_at_brsf() local 1646 const char* buf; in bta_hf_client_send_at_bac() local 1656 char buf[BTA_HF_CLIENT_AT_MAX_LEN]; in bta_hf_client_send_at_bcs() local [all …]
|
/system/bt/btif/src/ |
D | btif_sock_util.cc | 63 int sock_send_all(int sock_fd, const uint8_t* buf, int len) { in sock_send_all() 78 int sock_recv_all(int sock_fd, uint8_t* buf, int len) { in sock_recv_all() 94 int sock_send_fd(int sock_fd, const uint8_t* buf, int len, int send_fd) { in sock_send_fd()
|
/system/keymaster/include/keymaster/ |
D | serializable.h | 89 inline uint8_t* append_uint32_to_buf(uint8_t* buf, const uint8_t* end, T value) { in append_uint32_to_buf() 97 inline uint8_t* append_uint64_to_buf(uint8_t* buf, const uint8_t* end, uint64_t value) { in append_uint64_to_buf() 107 inline uint8_t* append_size_and_data_to_buf(uint8_t* buf, const uint8_t* end, const void* data, in append_size_and_data_to_buf() 120 inline uint8_t* append_uint32_array_to_buf(uint8_t* buf, const uint8_t* end, const T* data, in append_uint32_array_to_buf() 206 Buffer(const void* buf, size_t size) : buffer_(nullptr) { Reinitialize(buf, size); } in Buffer()
|
/system/tpm/trunks/ftdi/ |
D | support.c | 44 int raw_read(struct mpsse_context* mpsse, uint8_t* buf, int size) { in raw_read() 96 uint8_t* buf = NULL; in build_block_buffer() local 206 char buf[CMD_SIZE] = {0}; in set_bits_low() local 217 char buf[CMD_SIZE] = {0}; in set_bits_high() local
|
/system/core/debuggerd/crasher/ |
D | crasher.cpp | 83 char buf[128]; in smash_stack() local 96 void* buf[1]; in overflow_stack() local 138 char buf[16]; in abuse_heap() local 223 char buf[1]; in do_action() local 259 char buf[10]; in do_action() local
|
/system/update_engine/payload_consumer/ |
D | mtd_file_descriptor.cc | 138 ssize_t MtdFileDescriptor::Read(void* buf, size_t count) { in Read() 143 ssize_t MtdFileDescriptor::Write(const void* buf, size_t count) { in Write() 217 ssize_t UbiFileDescriptor::Read(void* buf, size_t count) { in Read() 222 ssize_t UbiFileDescriptor::Write(const void* buf, size_t count) { in Write() 242 char buf[1024]; in Close() local
|