/system/bt/osi/include/ |
H A D | socket.h | 58 // Reads up to |count| bytes from |socket| into |buf|. This function will not 60 // of bytes copied into |buf| on success, 0 if the socket has disconnected, 67 // to EWOULDBLOCK. Neither |socket| nor |buf| may be NULL. 68 ssize_t socket_read(const socket_t* socket, void* buf, size_t count); 70 // Writes up to |count| bytes from |buf| into |socket|. This function will not 79 // EWOULDBLOCK. Neither |socket| nor |buf| may be NULL. 80 ssize_t socket_write(const socket_t* socket, const void* buf, size_t count); 87 ssize_t socket_write_and_transfer_fd(const socket_t* socket, const void* buf,
|
/system/extras/ioshark/ |
H A D | compile_ioshark.c | 108 get_delta_ts(char *buf, struct timeval *prev) argument 112 sscanf(buf, "%lu.%lu", &op_tv.tv_sec, &op_tv.tv_usec); 123 get_tracetype(char *buf, char *trace_type) argument 128 s = strchr(buf, ' '); 168 progname, __func__, buf); 176 get_pathname(char *buf, char *pathname, enum file_op file_op) argument 181 s = strchr(buf, '/'); 184 __func__, buf); 190 __func__, buf); 195 s = strchr(buf, '"'); 221 get_syscall(char *buf, char *syscall) argument 244 get_mmap_offset_len_prot(char *buf, int *prot, off_t *offset, u_int64_t *len) argument 293 get_lseek_offset_action(char *buf, enum file_op op, off_t *offset, char *action) argument 334 get_rw_len(char *buf, u_int64_t *len) argument 349 get_prw64_offset_len(char *buf, off_t *offset, u_int64_t *len) argument 375 get_ftrace_offset_len(char *buf, off_t *offset, u_int64_t *len) argument 403 get_openat_flags_mode(char *buf, char *flags, mode_t *mode) argument [all...] |
/system/core/liblog/tests/ |
H A D | log_radio_test.cpp | 90 std::string buf = android::base::StringPrintf( local 94 FILE* fp = popen(buf.c_str(), "r"); 98 if (!android::base::ReadFdToString(fileno(fp), &buf)) buf = ""; 100 for (size_t pos = 0; (pos = buf.find(content, pos)) != std::string::npos; 105 (pos = buf.find(content_false, pos)) != std::string::npos; ++pos) {
|
H A D | log_system_test.cpp | 90 std::string buf = android::base::StringPrintf( local 94 FILE* fp = popen(buf.c_str(), "r"); 98 if (!android::base::ReadFdToString(fileno(fp), &buf)) buf = ""; 100 for (size_t pos = 0; (pos = buf.find(content, pos)) != std::string::npos; 105 (pos = buf.find(content_false, pos)) != std::string::npos; ++pos) {
|
/system/core/logd/ |
H A D | LogCommand.cpp | 43 static bool groupIsLog(char* buf) { argument 47 for (buf = strtok_r(buf, ws, &ptr); buf; buf = strtok_r(NULL, ws, &ptr)) { 49 gid_t Gid = strtol(buf, NULL, 10);
|
H A D | LogListener.h | 38 LogListener(LogBufferInterface* buf, LogReader* reader /* nullable */);
|
H A D | LogKlog.cpp | 205 LogKlog::LogKlog(LogBuffer* buf, LogReader* reader, int fdWrite, int fdRead, argument 208 logbuf(buf), 296 void LogKlog::sniffTime(log_time& now, const char*& buf, ssize_t len, argument 301 if ((len > 10) && (*buf == '[')) { 302 cp = now.strptime(buf, "[ %s.%q]"); // can index beyond buffer bounds 303 if (cp && (cp > &buf[len - 1])) cp = nullptr; 306 len -= cp - buf; 311 buf = cp; 368 pid_t LogKlog::sniffPid(const char*& buf, ssize_t len) { argument 371 const char* cp = buf; 415 parseKernelPrio(const char*& buf, ssize_t len) argument 436 synchronize(const char* buf, ssize_t len) argument 547 log(const char* buf, ssize_t len) argument [all...] |
/system/core/liblog/ |
H A D | logd_reader.c | 67 char* buf, size_t len); 70 char* buf, size_t len); 73 char* buf, size_t len); 259 char* buf, size_t buf_size) { 271 snprintf(buf, buf_size, msg, logger ? logger->logId : (unsigned)-1); 274 len = strlen(buf) + 1; 275 ret = TEMP_FAILURE_RETRY(write(sock, buf, len)); 281 cp = buf; 324 LIBLOG_HIDDEN ssize_t __send_log_msg(char* buf, size_t buf_size) { argument 325 return send_log_msg(NULL, NULL, buf, buf_siz 258 send_log_msg(struct android_log_logger* logger, const char* msg, char* buf, size_t buf_size) argument 328 check_log_success(char* buf, ssize_t ret) argument 343 char buf[512]; local 352 char buf[512]; local 369 char buf[512]; local 383 char buf[512]; local 409 logdGetStats(struct android_log_logger_list* logger_list, struct android_log_transport_context* transp __unused, char* buf, size_t len) argument 436 logdGetPrune(struct android_log_logger_list* logger_list __unused, struct android_log_transport_context* transp __unused, char* buf, size_t len) argument 442 logdSetPrune(struct android_log_logger_list* logger_list __unused, struct android_log_transport_context* transp __unused, char* buf, size_t len) argument [all...] |
/system/bt/btif/src/ |
H A D | btif_sock_util.cc | 63 int sock_send_all(int sock_fd, const uint8_t* buf, int len) { argument 68 OSI_NO_INTR(ret = send(sock_fd, buf, s, 0)); 73 buf += ret; 78 int sock_recv_all(int sock_fd, uint8_t* buf, int len) { argument 83 OSI_NO_INTR(ret = recv(sock_fd, buf, r, MSG_WAITALL)); 88 buf += ret; 94 int sock_send_fd(int sock_fd, const uint8_t* buf, int len, int send_fd) { argument 96 unsigned char* buffer = (unsigned char*)buf;
|
/system/connectivity/wifilogd/ |
H A 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);
|
/system/connectivity/wifilogd/tests/ |
H A 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));
|
/system/core/adb/ |
H A D | adb_io.h | 36 // Reads exactly len bytes from fd into buf. 41 // If this function fails, the contents of buf are undefined. 42 bool ReadFdExactly(int fd, void* buf, size_t len); 62 // Writes exactly len bytes from buf to fd. 67 bool WriteFdExactly(int fd, const void* buf, size_t len);
|
/system/iot/attestation/atap/test/ |
H A D | atap_unittest_util.h | 67 // Returns |buf| + |*index|, then increments |*index| by |value|. Used for 69 inline uint8_t* next(const uint8_t* buf, uint32_t* index, uint32_t value) { argument 70 uint8_t* retval = (uint8_t*)&buf[*index];
|
/system/libhwbinder/include/hwbinder/ |
H A D | Debug.h | 37 void printHexData(int32_t indent, const void *buf, size_t length, 42 ssize_t getHWBinderKernelReferences(size_t count, uintptr_t* buf);
|
/system/libvintf/ |
H A D | RuntimeInfo-target.cpp | 69 char buf[BUFFER_SIZE]; local 71 while ((len = gzread(f, buf, sizeof buf)) > 0) { 72 mConfigParser.process(buf, len); 115 struct utsname buf; local 116 if (uname(&buf)) { 119 mRuntimeInfo->mOsName = buf.sysname; 120 mRuntimeInfo->mNodeName = buf.nodename; 121 mRuntimeInfo->mOsRelease = buf.release; 122 mRuntimeInfo->mOsVersion = buf [all...] |
/system/core/libsysutils/src/ |
H A D | SocketClient.cpp | 76 char *buf; local 81 ret = asprintf(&buf, "%d %d %s (%s)", code, getCmdNum(), msg, strerror(errno)); 83 ret = asprintf(&buf, "%d %s (%s)", code, msg, strerror(errno)); 87 ret = asprintf(&buf, "%d %d %s", code, getCmdNum(), msg); 89 ret = asprintf(&buf, "%d %s", code, msg); 94 ret = sendMsg(buf); 95 free(buf); 104 char buf[8]; local 106 snprintf(buf, 4, "%.3d", code); 109 memcpy(buf 126 char buf[4]; local [all...] |
/system/core/base/ |
H A D | stringprintf.cpp | 54 char* buf = new char[length]; local 58 result = vsnprintf(buf, length, format, backup_ap); 63 dst->append(buf, result); 65 delete[] buf;
|
/system/core/init/ |
H A D | log.cpp | 79 char buf[1024]; local 82 vsnprintf(buf, sizeof(buf), fmt, ap); 84 android::base::KernelLogger(android::base::MAIN, severity, "selinux", nullptr, 0, buf);
|
/system/extras/alloc-stress/ |
H A D | alloc-stress.cpp | 170 char buf[256]; local 174 snprintf(buf, sizeof(buf), "/dev/memcg/apps/uid_%u", uid); 175 int tasks = mkdir(buf, S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH); 177 cerr << "Failed to create memory cgroup under " << buf << endl; 181 snprintf(buf, sizeof(buf), "/dev/memcg/apps/uid_%u/pid_%u", uid, pid); 182 tasks = mkdir(buf, S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH); 184 cerr << "Failed to create memory cgroup under " << buf << endl; 188 snprintf(buf, sizeo [all...] |
/system/media/audio_utils/include/audio_utils/ |
H A D | mono_blend.h | 32 * \param buf buffer of frames 43 void mono_blend(void *buf, audio_format_t format, size_t channelCount, size_t frames,
|
/system/keymaster/android_keymaster/ |
H A D | serializable.cpp | 27 uint8_t* append_to_buf(uint8_t* buf, const uint8_t* end, const void* data, size_t data_len) { argument 28 if (__pval(buf) + data_len < __pval(buf)) // Pointer wrap check 29 return buf; 31 if (buf + data_len <= end) { 32 memcpy(buf, data, data_len); 33 return buf + data_len; 35 return buf; 142 uint8_t* Buffer::Serialize(uint8_t* buf, const uint8_t* end) const { argument 143 return append_size_and_data_to_buf(buf, en [all...] |
/system/tools/aidl/ |
H A D | io_delegate.cpp | 47 char buf[4096]; local 48 DWORD path_len = GetFullPathName(path.c_str(), sizeof(buf), buf, nullptr); 49 if (path_len <= 0 || path_len >= sizeof(buf)) { 53 *absolute_path = buf; 69 char buf[4096]; 70 if (getcwd(buf, sizeof(buf)) == nullptr) { 72 << sizeof(buf) << " bytes"; 76 *absolute_path = buf; [all...] |
/system/tpm/trunks/ftdi/ |
H A D | mpsse.c | 260 uint8_t buf[CMD_SIZE] = {0}; local 383 buf[i++] = SET_BITS_HIGH; 384 buf[i++] = mpsse->gpioh; 385 buf[i++] = mpsse->trish; 387 retval = raw_write(mpsse, buf, i); 409 uint8_t buf[CMD_SIZE] = {0}; local 415 buf[0] = TCK_X5; 418 buf[0] = TCK_D5; 422 if (raw_write(mpsse, buf, 1) == MPSSE_OK) { 429 buf[ 536 uint8_t buf[1] = {0}; local 693 uint8_t* buf = NULL; local 742 uint8_t *data = NULL, *buf = NULL; local 794 uint8_t* buf = NULL; local 870 uint8_t *txdata = NULL, *buf = NULL; local [all...] |
/system/core/libcutils/ |
H A D | fs.cpp | 134 char buf[BUF_SIZE]; local 135 if (TEMP_FAILURE_RETRY(read(fd, buf, BUF_SIZE)) == -1) { 139 if (sscanf(buf, "%d", out_value) != 1) { 165 char buf[BUF_SIZE]; local 166 int len = snprintf(buf, BUF_SIZE, "%d", value) + 1; 171 if (TEMP_FAILURE_RETRY(write(fd, buf, len)) < len) { 210 char* buf = strdup(path); local 211 char* segment = buf + 1; 218 ALOGE("Invalid path: %s", buf); 230 ALOGE("Failed to mkdirat(%s): %s", buf, strerro [all...] |
/system/extras/simpleperf/ |
H A D | record_file_reader.cpp | 134 std::vector<char> buf(header_.attr_size); 135 if (!Read(buf.data(), buf.size())) { 144 memcpy(&attr.attr, &buf[0], std::min(sizeof(attr.attr), perf_event_attr_size)); 145 memcpy(&attr.ids, &buf[perf_event_attr_size], section_desc_size); 281 std::vector<char> buf; local 286 buf.resize(cur_size + bytes_to_read); 287 if (!Read(&buf[cur_size], bytes_to_read)) { 302 header = RecordHeader(buf.data()); 304 memcpy(p.get(), buf 341 Read(void* buf, size_t len) argument 386 std::vector<char> buf; local 407 std::vector<char> buf; local 430 std::vector<char> buf; local 492 std::vector<char> buf; local [all...] |