| /system/nvram/messages/tests/ | 
| D | io_test.cpp | 80   TestInputStreamBuffer<10> buf;  in TEST()  local96   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/core/libutils/ | 
| D | SharedBuffer_test.cpp | 38     android::SharedBuffer* buf =  in TEST()  local49     android::SharedBuffer* buf = android::SharedBuffer::alloc(SIZE_MAX / 2);  in TEST()  local
 57     android::SharedBuffer* buf = android::SharedBuffer::alloc(0);  in TEST()  local
 64     android::SharedBuffer* buf = android::SharedBuffer::alloc(10);  in TEST()  local
 73     android::SharedBuffer* buf = android::SharedBuffer::alloc(10);  in TEST()  local
 84     android::SharedBuffer* buf = android::SharedBuffer::alloc(10);  in TEST()  local
 
 | 
| D | String8.cpp | 48         SharedBuffer* buf = SharedBuffer::alloc(1);  in getEmptyString()  local66         SharedBuffer* buf = SharedBuffer::alloc(len+1);  in allocFromUTF8()  local
 90     SharedBuffer* buf = SharedBuffer::alloc(resultStrLen);  in allocFromUTF16()  local
 112     SharedBuffer* buf = SharedBuffer::alloc(resultStrLen);  in allocFromUTF32()  local
 321         char* buf = lockBuffer(oldLength + n);  in appendFormatV()  local
 334     SharedBuffer* buf;  in real_append()  local
 352     SharedBuffer* buf = SharedBuffer::bufferFromData(mString)  in lockBuffer()  local
 370         SharedBuffer* buf = SharedBuffer::bufferFromData(mString)  in unlockBuffer()  local
 399     char* buf = lockBuffer(size());  in removeAll()  local
 424     char* buf = lockBuffer(length);  in toLower()  local
 [all …]
 
 | 
| D | String16.cpp | 36     SharedBuffer* buf = SharedBuffer::alloc(size);  in alloc()  local52     SharedBuffer* buf = static_cast<SharedBuffer*>(alloc(sizeof(char16_t) * (u16len + 1)));  in allocFromUTF8()  local
 75     SharedBuffer* buf = static_cast<SharedBuffer*>(alloc((u16len + 1) * sizeof(char16_t)));  in allocFromUTF16()  local
 191     SharedBuffer* buf = static_cast<SharedBuffer*>(editResize((len + 1) * sizeof(char16_t)));  in setTo()  local
 218     SharedBuffer* buf = static_cast<SharedBuffer*>(editResize(size));  in append()  local
 246     SharedBuffer* buf = static_cast<SharedBuffer*>(editResize(size));  in insert()  local
 305     SharedBuffer* buf;  in edit()  local
 319     SharedBuffer* buf;  in editResize()  local
 374                 SharedBuffer* buf = static_cast<SharedBuffer*>(edit());  in replaceAll()  local
 
 | 
| /system/keymaster/android_keymaster/ | 
| D | android_keymaster_messages.cpp | 38 uint8_t* serialize_key_blob(const keymaster_key_blob_t& key_blob, uint8_t* buf,  in serialize_key_blob()67 uint8_t* serialize_blob(const keymaster_blob_t& blob, uint8_t* buf, const uint8_t* end) {  in serialize_blob()
 95 uint8_t* serialize_chain(const keymaster_cert_chain_t& certificate_chain, uint8_t* buf,  in serialize_chain()
 169 uint8_t* KeymasterResponse::Serialize(uint8_t* buf, const uint8_t* end) const {  in Serialize()
 190 uint8_t* GenerateKeyRequest::Serialize(uint8_t* buf, const uint8_t* end) const {  in Serialize()
 213 uint8_t* GenerateKeyResponse::NonErrorSerialize(uint8_t* buf, const uint8_t* end) const {  in NonErrorSerialize()
 236 uint8_t* GenerateRkpKeyResponse::NonErrorSerialize(uint8_t* buf, const uint8_t* end) const {  in NonErrorSerialize()
 257 uint8_t* GenerateCsrRequest::Serialize(uint8_t* buf, const uint8_t* end) const {  in Serialize()
 301 uint8_t* GenerateCsrResponse::NonErrorSerialize(uint8_t* buf, const uint8_t* end) const {  in NonErrorSerialize()
 322 uint8_t* GenerateCsrV2Request::Serialize(uint8_t* buf, const uint8_t* end) const {  in Serialize()
 [all …]
 
 | 
| /system/core/fastboot/fuzzy_fastboot/ | 
| D | transport_sniffer.cpp | 25         std::vector<char> buf(err, err + strlen(err));  in Read()  local32     std::vector<char> buf(cdata, cdata + ret);  in Read()  local
 46         std::vector<char> buf(err, err + strlen(err));  in Write()  local
 53     std::vector<char> buf(cdata, cdata + len);  in Write()  local
 68     std::vector<char> buf;  in Reset()  local
 91     const auto msg = [&ret, no_print](const std::vector<char>& buf) {  in CreateTrace()
 174     std::vector<char> buf;  in ProcessSerial()  local
 
 | 
| /system/libbase/ | 
| D | cmsg_test.cpp | 73   char buf[2];  in TEST_P()  local85   char buf[2];  in TEST_P()  local
 107   char buf[2];  in TEST_P()  local
 117   char buf[2];  in TEST_P()  local
 135   char buf[2];  in TEST_P()  local
 155   char buf[2];  in TEST_P()  local
 170   char buf[2];  in TEST_P()  local
 189   char buf[2];  in TEST_P()  local
 
 | 
| /system/memory/libmeminfo/libdmabufinfo/tools/ | 
| D | dmabuf_dump.cpp | 70     for (auto& buf : bufs) {  in PrintDmaBufTable()  local86     for (auto& buf : bufs) {  in PrintDmaBufTable()  local
 139     for (auto& buf : bufs) {  in PrintDmaBufPerProcess()  local
 147     for (auto buf : bufs) {  in PrintDmaBufPerProcess()  local
 159             DmaBuffer& buf = inode_to_dmabuf[inode];  in PrintDmaBufPerProcess()  local
 202     for (const auto& buf : buffer_stats) {  in DumpDmabufSysfsStats()  local
 
 | 
| /system/logging/liblog/ | 
| D | logd_reader.cpp | 80 ssize_t SendLogdControlMessage(char* buf, size_t buf_size) {  in SendLogdControlMessage()135 static int check_log_success(char* buf, ssize_t ret) {  in check_log_success()
 153   char buf[512];  in android_logger_clear()  local
 171   char buf[512];  in GetLogSize()  local
 217   char buf[512];  in android_logger_set_log_size()  local
 227 ssize_t android_logger_get_statistics(struct logger_list* logger_list, char* buf, size_t len) {  in android_logger_get_statistics()
 256 ssize_t android_logger_get_prune_list(struct logger_list* logger_list, char* buf, size_t len) {  in android_logger_get_prune_list()
 265 int android_logger_set_prune_list(struct logger_list* logger_list, const char* buf, size_t len) {  in android_logger_set_prune_list()
 
 | 
| /system/libufdt/tests/src/ | 
| D | util.c | 31   char *buf = malloc(len);  in load_file_contents()  local54   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()
 
 | 
| D | extract_dtb.c | 25 static int find_dtb_header_pos(const char *buf, size_t buf_size) {  in find_dtb_header_pos()46 static int find_and_write_dtb(const char *filename, const char *buf,  in find_and_write_dtb()
 111   char *buf = NULL;  in extract_dtbs()  local
 
 | 
| /system/chre/chpp/clients/ | 
| D | wifi.c | 194                                                       uint8_t *buf,  in chppDispatchWifiResponse()277                                                           uint8_t *buf,  in chppDispatchWifiNotification()
 436                                 uint8_t *buf, size_t len) {  in chppWifiCloseResult()
 453     struct ChppWifiClientState *clientContext, uint8_t *buf, size_t len) {  in chppWifiGetCapabilitiesResult()
 486     struct ChppWifiClientState *clientContext, uint8_t *buf, size_t len) {  in chppWifiConfigureScanMonitorResult()
 528                                       uint8_t *buf, size_t len) {  in chppWifiRequestScanResult()
 554     struct ChppWifiClientState *clientContext, uint8_t *buf, size_t len) {  in chppWifiRequestRangingResult()
 577 static void chppWifiRequestNanSubscribeResult(uint8_t *buf, size_t len) {  in chppWifiRequestNanSubscribeResult()
 599 static void chppWifiNanSubscriptionCanceledResult(uint8_t *buf, size_t len) {  in chppWifiNanSubscriptionCanceledResult()
 623     struct ChppWifiClientState *clientContext, uint8_t *buf, size_t len) {  in chppWifiScanEventNotification()
 [all …]
 
 | 
| D | gnss.c | 174                                                       uint8_t *buf,  in chppDispatchGnssResponse()250                                                           uint8_t *buf,  in chppDispatchGnssNotification()
 369                                 uint8_t *buf, size_t len) {  in chppGnssCloseResult()
 386     struct ChppGnssClientState *clientContext, uint8_t *buf, size_t len) {  in chppGnssGetCapabilitiesResult()
 419     struct ChppGnssClientState *clientContext, uint8_t *buf, size_t len) {  in chppGnssControlLocationSessionResult()
 452     struct ChppGnssClientState *clientContext, uint8_t *buf, size_t len) {  in chppGnssControlMeasurementSessionResult()
 485     struct ChppGnssClientState *clientContext, uint8_t *buf, size_t len) {  in chppGnssConfigurePassiveLocationListenerResult()
 510     struct ChppGnssClientState *clientContext, uint8_t *buf, size_t len) {  in chppGnssStateResyncNotification()
 534     struct ChppGnssClientState *clientContext, uint8_t *buf, size_t len) {  in chppGnssLocationResultNotification()
 562     struct ChppGnssClientState *clientContext, uint8_t *buf, size_t len) {  in chppGnssMeasurementResultNotification()
 
 | 
| /system/chre/util/tests/ | 
| D | buffer_test.cc | 37   float buf[128];  in TEST()  local47   float buf[128];  in TEST()  local
 67   float buf[128];  in TEST()  local
 78   float buf[128];  in TEST()  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/extras/tests/kernel.config/ | 
| D | sysvipc_test.cpp | 35 int msgctl(int id, int cmd, msqid_ds* buf) {  in msgctl()48 int semctl(int id, int num, int cmd, semid_ds* buf) {  in semctl()
 61 int shmctl(int id, int cmd, shmid_ds* buf) {  in shmctl()
 
 | 
| /system/core/gatekeeperd/ | 
| D | GateKeeperResponse.cpp | 44             const uint8_t* buf = reinterpret_cast<const uint8_t*>(in->readInplace(length));  in readFromParcel()  local68             uint8_t* buf = reinterpret_cast<uint8_t*>(out->writeInplace(payload_.size()));  in writeToParcel()  local
 
 | 
| /system/core/libcutils/ | 
| D | partition_utils.cpp | 28 static int only_one_char(uint8_t *buf, int len, uint8_t c)  in only_one_char()43     uint8_t buf[4096];  in partition_wiped()  local
 
 | 
| D | ashmem-host.cpp | 37 static bool ashmem_validate_stat(int fd, struct stat* buf) {  in ashmem_validate_stat()56     struct stat buf;  in ashmem_valid()  local
 90     struct stat buf;  in ashmem_get_size_region()  local
 
 | 
| /system/keymaster/include/keymaster/ | 
| D | serializable.h | 99 inline uint8_t* append_uint32_to_buf(uint8_t* buf, const uint8_t* end, T value) {  in append_uint32_to_buf()107 inline uint8_t* append_uint64_to_buf(uint8_t* buf, const uint8_t* end, uint64_t value) {  in append_uint64_to_buf()
 117 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()
 129 uint8_t* append_collection_to_buf(uint8_t* buf, const uint8_t* end, const T& value) {  in append_collection_to_buf()
 144 inline uint8_t* append_uint32_array_to_buf(uint8_t* buf, const uint8_t* end, const T* data,  in append_uint32_array_to_buf()
 254     Buffer(const void* buf, size_t size) : buffer_(nullptr) { Reinitialize(buf, size); }  in Buffer()
 
 | 
| /system/chre/chpp/ | 
| D | app.c | 99                                                uint8_t *buf, size_t len) {  in chppProcessPredefinedClientRequest()144                                                  uint8_t *buf, size_t len) {  in chppProcessPredefinedServiceResponse()
 201     struct ChppAppState *context, uint8_t *buf, size_t len) {  in chppProcessPredefinedClientNotification()
 220     struct ChppAppState *context, uint8_t *buf, size_t len) {  in chppProcessPredefinedServiceNotification()
 505                                                 uint8_t *buf, size_t len) {  in chppProcessPredefinedHandleDatagram()
 549                                                 uint8_t *buf, size_t len) {  in chppProcessNegotiatedHandleDatagram()
 671 void chppAppProcessRxDatagram(struct ChppAppState *context, uint8_t *buf,  in chppAppProcessRxDatagram()
 787 uint8_t chppAppShortResponseErrorHandler(uint8_t *buf, size_t len,  in chppAppShortResponseErrorHandler()
 
 | 
| /system/unwinding/libunwindstack/tests/ | 
| D | MemoryOfflineTest.cpp | 50   char buf = '\0';  in TEST_F()  local60   std::vector<char> buf;  in TEST_F()  local
 
 | 
| /system/core/debuggerd/crasher/ | 
| D | crasher.cpp | 85     char buf[128];  in smash_stack()  local98     void* buf[1];  in overflow_stack()  local
 143     char buf[16];  in abuse_heap()  local
 237       char buf[1];  in do_action()  local
 282       char buf[10];  in do_action()  local
 
 | 
| /system/chre/chpp/test/ | 
| D | app_test.cpp | 52   uint8_t buf[kTestLen];  in TEST_F()  local94   uint8_t buf[kTestLen];  in TEST_F()  local
 120   uint8_t buf[kTestLen];  in TEST_F()  local
 
 | 
| /system/extras/simpleperf/ | 
| D | record_file_reader.cpp | 174     std::vector<char> buf(header_.attr_size);  in ReadAttrSection()  local310     std::vector<char> buf;  in ReadRecord()  local
 387 bool RecordFileReader::Read(void* buf, size_t len) {  in Read()
 395 bool RecordFileReader::ReadAtOffset(uint64_t offset, void* buf, size_t len) {  in ReadAtOffset()
 454   std::vector<char> buf;  in ReadCmdlineFeature()  local
 478   std::vector<char> buf;  in ReadBuildIdFeature()  local
 507   std::vector<char> buf;  in ReadFeatureString()  local
 519   std::vector<char> buf;  in ReadAuxTraceFeature()  local
 593   std::vector<char> buf(size);  in ReadFileV1Feature()  local
 686     std::vector<char> buf;  in ReadMetaInfoFeature()  local
 [all …]
 
 |