/system/connectivity/wifilogd/ |
D | raw_os.cpp | 46 ssize_t RawOs::Recv(int sockfd, void* buf, size_t buflen, int flags) { in Recv() argument 47 return recv(sockfd, buf, buflen, flags); in Recv() 50 ssize_t RawOs::Write(int fd, const void* buf, size_t buflen) { in Write() argument 51 return write(fd, buf, buflen); in Write()
|
D | os.cpp | 94 size_t buflen) { in ReceiveDatagram() argument 98 CHECK(buflen <= GetMaxVal<ssize_t>()); in ReceiveDatagram() 100 const ssize_t res = raw_os_->Recv(fd, buf, buflen, MSG_TRUNC); in ReceiveDatagram() 113 size_t buflen) { in Write() argument 117 CHECK(buflen <= GetMaxVal<ssize_t>()); in Write() 119 const ssize_t res = raw_os_->Write(fd, buf, buflen); in Write() 125 SAFELY_CLAMP(buflen, ssize_t, 0, in Write()
|
D | raw_os.h | 49 virtual ssize_t Recv(int sockfd, void* buf, size_t buflen, int flags); 52 virtual ssize_t Write(int fd, const void* buf, size_t buflen);
|
D | memory_reader.h | 35 MemoryReader(const void* buf, size_t buflen) in MemoryReader() argument 36 : head_(static_cast<const uint8_t*>(buf)), n_bytes_avail_(buflen) {} in MemoryReader()
|
D | os.h | 87 size_t buflen); 97 size_t buflen);
|
/system/extras/ioshark/ |
D | ioshark_bench_mmap.c | 107 char **bufp, int *buflen, u_int64_t *op_counts, in mmap_do_io() argument 115 p = get_buf(bufp, buflen, len, 0); in mmap_do_io() 131 p = get_buf(bufp, buflen, len, 1); in mmap_do_io() 146 p = get_buf(bufp, buflen, len, 0); in mmap_do_io() 167 char **bufp, int *buflen, u_int64_t *op_counts, in ioshark_handle_mmap() argument 189 bufp, buflen, op_counts, in ioshark_handle_mmap() 198 mmap_do_io(db_node, prot, offset, len, bufp, buflen, in ioshark_handle_mmap()
|
D | ioshark_bench.c | 217 char **bufp, int *buflen) in do_one_io() argument 241 p = get_buf(bufp, buflen, file_op->prw_len, 0); in do_one_io() 256 p = get_buf(bufp, buflen, file_op->prw_len, 1); in do_one_io() 271 p = get_buf(bufp, buflen, file_op->rw_len, 0); in do_one_io() 286 p = get_buf(bufp, buflen, file_op->rw_len, 1); in do_one_io() 303 bufp, buflen, op_counts, in do_one_io() 403 int buflen = 0; in do_io() local 477 op_counts, &rw_bytes, &buf, &buflen); in do_io()
|
D | ioshark_bench.h | 140 char *get_buf(char **buf, int *buflen, int len, int do_fill); 146 char **bufp, int *buflen, u_int64_t *op_counts,
|
D | ioshark_bench_subr.c | 239 get_buf(char **buf, int *buflen, int len, int do_fill __attribute__((unused))) in get_buf() argument 249 if (*buflen < len) { in get_buf() 250 *buflen = MAX(MINBUFLEN, len * 2); in get_buf() 253 *buf = malloc(*buflen); in get_buf() 259 count = *buflen / sizeof(u_int32_t); in get_buf() 275 int buflen = 0; in create_file() local 284 buf = get_buf(&buf, &buflen, n, 1); in create_file()
|
/system/connectivity/wifilogd/tests/ |
D | mock_raw_os.h | 38 MOCK_METHOD4(Recv, ssize_t(int sockfd, void* buf, size_t buflen, int flags)); 39 MOCK_METHOD3(Write, ssize_t(int fd, const void* buf, size_t buflen));
|
D | mock_os.h | 41 std::tuple<size_t, Errno>(int fd, void* buf, size_t buflen)); 43 size_t buflen));
|
D | command_processor_unittest.cpp | 73 [&accumulator](int /*fd*/, const void* write_buf, size_t buflen) { in CommandProcessorTest() argument 74 accumulator.append(static_cast<const char*>(write_buf), buflen); in CommandProcessorTest() 75 return std::tuple<size_t, Os::Errno>(buflen, 0); in CommandProcessorTest() 406 [&written_to_os](int /*fd*/, const void* write_buf, size_t buflen) { in TEST_F() argument 407 written_to_os.append(static_cast<const char*>(write_buf), buflen); in TEST_F() 408 return std::tuple<size_t, Os::Errno>{buflen / 2, EINTR}; in TEST_F()
|
/system/core/libkeyutils/ |
D | keyutils.cpp | 67 long keyctl_get_security(key_serial_t id, char* buffer, size_t buflen) { in keyctl_get_security() argument 68 return syscall(__NR_keyctl, KEYCTL_GET_SECURITY, id, buffer, buflen); in keyctl_get_security()
|
/system/core/libkeyutils/include/ |
D | keyutils.h | 56 long keyctl_get_security(key_serial_t key, char* buffer, size_t buflen);
|
/system/core/logcat/tests/ |
D | logcat_test.cpp | 218 static char* fgetLongTime(char* buffer, size_t buflen, FILE* fp) { in fgetLongTime() argument 219 while (fgets(buffer, buflen, fp)) { in fgetLongTime()
|
/system/netd/tests/ |
D | binder_test.cpp | 707 int netmaskToPrefixLength(const uint8_t *buf, size_t buflen) { in netmaskToPrefixLength() argument 712 for (unsigned int i = 0; i < buflen; i++) { in netmaskToPrefixLength()
|