Searched refs:buf (Results 176 - 200 of 408) sorted by relevance

1234567891011>>

/system/core/adb/
H A Dsysdeps_win32.cpp261 static int _fh_file_read( FH f, void* buf, int len ) { argument
264 if ( !ReadFile( f->fh_handle, buf, (DWORD)len, &read_bytes, NULL ) ) {
274 static int _fh_file_write( FH f, const void* buf, int len ) { argument
277 if ( !WriteFile( f->fh_handle, buf, (DWORD)len, &wrote_bytes, NULL ) ) {
428 int adb_read(int fd, void* buf, int len) argument
436 return f->clazz->_fh_read( f, buf, len );
440 int adb_write(int fd, const void* buf, int len) argument
448 return f->clazz->_fh_write(f, buf, len);
605 static int _fh_socket_read(FH f, void* buf, int len) { argument
606 int result = recv(f->fh_socket, reinterpret_cast<char*>(buf), le
621 _fh_socket_write(FH f, const void* buf, int len) argument
1517 _get_modifier_sequence(char* const buf, const WORD vk, DWORD control_key_state, const char* const normal) argument
1560 _get_modifier_keypad_sequence(char* const buf, const WORD vk, const DWORD control_key_state, const char* const normal, const char shifted) argument
1592 _escape_prefix(char* const buf, const size_t len) argument
1609 _console_read(const HANDLE console, void* buf, size_t len) argument
2020 unix_read_interruptible(int fd, void* buf, size_t len) argument
2330 _console_write_utf8(const char* const buf, const size_t buf_size, FILE* stream, HANDLE console) argument
2467 adb_fputs(const char* buf, FILE* stream) argument
2491 adb_puts(const char* buf) argument
2642 adb_getcwd(char* buf, int size) argument
[all...]
H A Dframebuffer_service.cpp62 char buf[640]; local
175 bsize = sizeof(buf);
178 if(!ReadFdExactly(fd_screencap, buf, bsize)) goto done;
179 if(!WriteFdExactly(fd, buf, bsize)) goto done;
H A Dadb_auth_host.cpp61 char buf[64]; local
62 if (hostname.empty() && gethostname(buf, sizeof(buf)) != -1) hostname = buf;
260 struct stat buf; local
261 if (stat(path.c_str(), &buf) == -1) {
350 char buf[sizeof(struct inotify_event) + NAME_MAX + 1]; local
352 ssize_t rc = TEMP_FAILURE_RETRY(unix_read(fd, buf, sizeof(buf)));
362 char* start = buf;
[all...]
/system/core/init/
H A Dsigchld_handler.cpp106 char buf[32]; local
107 read(signal_read_fd, buf, sizeof(buf));
/system/core/libmemtrack/
H A Dmemtrack_test.c28 static int getprocname(pid_t pid, char *buf, int len) { argument
49 if (fgets(buf, len, f) == NULL) {
65 if (strlcpy(buf, unknown_cmdline, (size_t)len) >= (size_t)len) {
/system/netd/libnetdutils/include/netdutils/
H A DMockSyscalls.h53 MOCK_CONST_METHOD2(write, StatusOr<size_t>(Fd fd, const Slice buf));
54 MOCK_CONST_METHOD2(read, StatusOr<Slice>(Fd fd, const Slice buf));
55 MOCK_CONST_METHOD5(sendto, StatusOr<size_t>(Fd sock, const Slice buf, int flags,
/system/core/lmkd/
H A Dlmkd.c294 static ssize_t read_all(int fd, char *buf, size_t max_len) argument
300 ssize_t r = TEMP_FAILURE_RETRY(pread(fd, buf, max_len, offset));
308 buf += r;
323 static int reread_file(struct reread_data *data, char *buf, size_t buf_size) { argument
334 size = read_all(data->fd, buf, buf_size - 1);
342 buf[size] = 0;
582 static int ctrl_data_read(int dsock_idx, char *buf, size_t bufsz) { argument
585 ret = TEMP_FAILURE_RETRY(read(data_sock[dsock_idx].sock, buf, bufsz));
724 char buf[PATH_MAX]; local
726 snprintf(buf, sizeo
806 char buf[PAGE_SIZE]; local
860 char buf[PAGE_SIZE]; local
1081 char buf[32]; local
1342 char buf[256]; local
[all...]
/system/bt/stack/hid/
H A Dhidh_int.h65 uint8_t rpt_id, BT_HDR* buf);
/system/core/healthd/include/healthd/
H A DBatteryMonitor.h57 int readFromFile(const String8& path, std::string* buf);
/system/core/libasyncio/include/asyncio/
H A DAsyncIO.h41 void io_prep(iocb* iocb, int fd, const void* buf, uint64_t count, int64_t offset, bool read);
/system/core/libcutils/
H A Dashmem-dev.cpp160 char buf[ASHMEM_NAME_LEN] = {0}; local
162 strlcpy(buf, name, sizeof(buf));
163 ret = TEMP_FAILURE_RETRY(ioctl(fd, ASHMEM_SET_NAME, buf));
H A Dsockets_windows.cpp74 wsa_buffers[i].buf =
/system/core/liblog/
H A Dlogger_write.c484 char buf[LOG_BUF_SIZE]; local
486 vsnprintf(buf, LOG_BUF_SIZE, fmt, ap);
488 return __android_log_write(prio, tag, buf);
494 char buf[LOG_BUF_SIZE]; local
497 vsnprintf(buf, LOG_BUF_SIZE, fmt, ap);
500 return __android_log_write(prio, tag, buf);
507 char buf[LOG_BUF_SIZE]; local
510 vsnprintf(buf, LOG_BUF_SIZE, fmt, ap);
513 return __android_log_buf_write(bufID, prio, tag, buf);
518 char buf[LOG_BUF_SIZ local
[all...]
/system/core/libpackagelistparser/
H A Dpackagelistparser.c101 char *buf = NULL; local
114 while ((bytesread = getline(&buf, &buflen, fp)) > 0) {
121 next = buf;
242 free(buf);
/system/core/libsparse/
H A Doutput_file.h43 int read_all(int fd, void *buf, size_t len);
/system/extras/tests/lib/testUtil/include/
H A DtestUtil.h58 void testXDump(const void *buf, size_t size);
/system/hwservicemanager/
H A DAccessControl.h24 static int auditCallback(void *data, security_class_t cls, char *buf, size_t len);
/system/keymaster/tests/
H A Dandroid_keymaster_messages_test.cpp40 UniquePtr<uint8_t[]> buf(new uint8_t[size]);
41 EXPECT_EQ(buf.get() + size, message.Serialize(buf.get(), buf.get() + size));
44 const uint8_t* p = buf.get();
46 EXPECT_EQ((ptrdiff_t)size, p - buf.get());
53 uint8_t* NonErrorSerialize(uint8_t* buf, const uint8_t* /* end */) const { argument
54 *buf++ = 0;
55 return buf;
482 UniquePtr<uint8_t[]> buf(ne
[all...]
/system/libvintf/include/vintf/
H A DKernelConfigParser.h34 status_t process(const char* buf, size_t len);
/system/netd/server/
H A DNetlinkCommands.cpp118 char buf[kNetlinkDumpBufferSize]; local
122 bytesread = read(sock, buf, sizeof(buf));
129 for (nlmsghdr *nlh = reinterpret_cast<nlmsghdr *>(buf);
/system/update_engine/payload_generator/
H A Dpayload_file.h60 // Computes a SHA256 hash of the given buf and sets the hash value in the
66 static bool AddOperationHash(InstallOperation* op, const brillo::Blob& buf);
/system/vold/
H A DCheckEncryption.cpp107 char buf[BUFSIZ]; local
109 static_cast<size_t>(std::min(static_cast<typeof(toread)>(sizeof(buf)), toread));
110 auto l = read(haystack_fd.get(), buf, wlen);
117 area.append(buf, l);
/system/core/libutils/
H A DRefBase.cpp263 char buf[128]; local
264 snprintf(buf, sizeof(buf),
267 text.append(buf);
269 snprintf(buf, sizeof(buf),
272 text.append(buf);
369 char buf[128]; local
372 snprintf(buf, sizeof(buf), "\
[all...]
/system/bt/btif/include/
H A Dbtif_api.h379 bt_status_t btif_dut_mode_send(uint16_t opcode, uint8_t* buf, uint8_t len);
390 bt_status_t btif_le_test_mode(uint16_t opcode, uint8_t* buf, uint8_t len);
/system/connectivity/wifilogd/
H A Dlocal_utils.h62 // Copies a |T| out of |buf|, aborting if |buf| is too short to hold a |T|.
76 T CopyFromBufferOrDie(NONNULL const void* buf, size_t buf_len) { argument
81 std::memcpy(&out, buf, sizeof(out));

Completed in 329 milliseconds

1234567891011>>