/system/core/adb/ |
H A D | sysdeps_win32.cpp | 261 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 D | framebuffer_service.cpp | 62 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 D | adb_auth_host.cpp | 61 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 D | sigchld_handler.cpp | 106 char buf[32]; local 107 read(signal_read_fd, buf, sizeof(buf));
|
/system/core/libmemtrack/ |
H A D | memtrack_test.c | 28 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 D | MockSyscalls.h | 53 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 D | lmkd.c | 294 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 D | hidh_int.h | 65 uint8_t rpt_id, BT_HDR* buf);
|
/system/core/healthd/include/healthd/ |
H A D | BatteryMonitor.h | 57 int readFromFile(const String8& path, std::string* buf);
|
/system/core/libasyncio/include/asyncio/ |
H A D | AsyncIO.h | 41 void io_prep(iocb* iocb, int fd, const void* buf, uint64_t count, int64_t offset, bool read);
|
/system/core/libcutils/ |
H A D | ashmem-dev.cpp | 160 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 D | sockets_windows.cpp | 74 wsa_buffers[i].buf =
|
/system/core/liblog/ |
H A D | logger_write.c | 484 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 D | packagelistparser.c | 101 char *buf = NULL; local 114 while ((bytesread = getline(&buf, &buflen, fp)) > 0) { 121 next = buf; 242 free(buf);
|
/system/core/libsparse/ |
H A D | output_file.h | 43 int read_all(int fd, void *buf, size_t len);
|
/system/extras/tests/lib/testUtil/include/ |
H A D | testUtil.h | 58 void testXDump(const void *buf, size_t size);
|
/system/hwservicemanager/ |
H A D | AccessControl.h | 24 static int auditCallback(void *data, security_class_t cls, char *buf, size_t len);
|
/system/keymaster/tests/ |
H A D | android_keymaster_messages_test.cpp | 40 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 D | KernelConfigParser.h | 34 status_t process(const char* buf, size_t len);
|
/system/netd/server/ |
H A D | NetlinkCommands.cpp | 118 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 D | payload_file.h | 60 // 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 D | CheckEncryption.cpp | 107 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 D | RefBase.cpp | 263 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 D | btif_api.h | 379 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 D | local_utils.h | 62 // 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));
|