/system/security/keystore/ |
H A D | keystore_utils.cpp | 30 size_t readFully(int fd, uint8_t* data, size_t size) { argument 33 ssize_t n = TEMP_FAILURE_RETRY(read(fd, data, remaining)); 43 size_t writeFully(int fd, uint8_t* data, size_t size) { argument 46 ssize_t n = TEMP_FAILURE_RETRY(write(fd, data, remaining));
|
/system/sepolicy/tools/sepolicy-analyze/ |
H A D | utils.c | 27 int fd; local 32 fd = open(filename, O_RDONLY); 33 if (fd < 0) { 37 if (fstat(fd, &sb) < 0) { 39 close(fd); 42 map = mmap(NULL, sb.st_size, PROT_READ | PROT_WRITE, MAP_PRIVATE, fd, 0); 45 close(fd); 55 close(fd); 62 close(fd);
|
/system/update_engine/payload_consumer/ |
H A D | bzip_extent_writer.cc | 27 bool BzipExtentWriter::Init(FileDescriptorPtr fd, argument 37 return next_->Init(fd, extents, block_size);
|
H A D | file_writer.h | 78 int fd() const { return fd_; } function in class:chromeos_update_engine::DirectFileWriter
|
H A D | xz_extent_writer.cc | 57 bool XzExtentWriter::Init(FileDescriptorPtr fd, argument 62 return underlying_writer_->Init(fd, extents, block_size);
|
/system/vold/ |
H A D | AutoCloseFD.h | 31 fd{TEMP_FAILURE_RETRY(open(path, flags | O_CLOEXEC, mode))} {} 35 if (fd != -1) { 37 if (close(fd) == -1) { 45 explicit operator bool() {return fd != -1;} 46 int get() const {return fd;} 48 const int fd; member in class:AutoCloseFD
|
/system/bt/osi/test/ |
H A D | fixed_queue_test.cpp | 22 // Test whether a file descriptor |fd| is readable. 24 static bool is_fd_readable(int fd) argument 32 FD_SET(fd, &rfds); 37 return FD_ISSET(fd, &rfds);
|
/system/connectivity/shill/ |
H A D | eap_listener.cc | 98 void EapListener::ReceiveRequest(int fd) { argument
|
H A D | event_dispatcher.cc | 60 int fd, 64 fd, input_callback, error_callback); 71 int fd, 75 fd, mode, ready_callback); 59 CreateInputHandler( int fd, const IOHandler::InputCallback& input_callback, const IOHandler::ErrorCallback& error_callback) argument 70 CreateReadyHandler( int fd, IOHandler::ReadyMode mode, const Callback<void(int)>& ready_callback) argument
|
/system/core/adb/ |
H A D | console.cpp | 101 int fd = network_loopback_client(port, SOCK_STREAM, &error); local 102 if (fd == -1) { 107 return fd; 111 int fd = connect_to_console(serial); local 112 if (fd == -1) { 125 if (!WriteFdExactly(fd, commands)) { 128 adb_close(fd); 140 result = adb_read(fd, buf, sizeof(buf)); 151 adb_close(fd);
|
H A D | socket.h | 62 ** us to our fd event system. For remote asockets 66 int fd; member in struct:asocket 109 asocket *create_local_socket(int fd);
|
/system/core/healthd/ |
H A D | BatteryPropertiesRegistrar.cpp | 80 status_t BatteryPropertiesRegistrar::dump(int fd, const Vector<String16>& /*args*/) { argument 89 healthd_dump_battery_state(fd);
|
/system/core/include/cutils/ |
H A D | sockets.h | 69 int fd = strtol(val, NULL, 10); local 74 return fd; 113 int socket_local_client_connect(int fd, const char *name, int namespaceId, 173 extern bool socket_peer_is_trusted(int fd);
|
/system/core/include/utils/ |
H A D | Compat.h | 28 static inline off64_t lseek64(int fd, off64_t offset, int whence) { argument 29 return lseek(fd, offset, whence); 32 static inline ssize_t pread64(int fd, void* buf, size_t nbytes, off64_t offset) { argument 33 return pread(fd, buf, nbytes, offset); 36 static inline ssize_t pwrite64(int fd, const void* buf, size_t nbytes, off64_t offset) { argument 37 return pwrite(fd, buf, nbytes, offset);
|
/system/core/libmemunreachable/ |
H A D | ScopedPipe.h | 76 void SetReceiver(int fd) { pipefd_[0] = fd; }; argument 77 void SetSender(int fd) { pipefd_[1] = fd; }; argument
|
/system/core/libsync/ |
H A D | sync_test.c | 32 int fd[2]; member in struct:sync_thread_data 43 err = sync_wait(sync_data->fd[i], 10000); 52 info = sync_fence_info(sync_data->fd[i]); 96 int fd = sw_sync_fence_create(sync_timeline_fd, str, val); local 97 if (fd < 0) { 101 sync_data[i].fd[j] = fd; 102 printf("sync_data[%d].fd[%d] = %d;\n", i, j, fd); 110 sync_data[3].fd[ [all...] |
/system/core/libutils/ |
H A D | CallStack.cpp | 58 void CallStack::dump(int fd, int indent, const char* prefix) const { argument 59 FdPrinter printer(fd, indent, prefix);
|
/system/core/metricsd/ |
H A D | persistent_integer.cc | 61 int fd = HANDLE_EINTR(open(backing_file_path_.value().c_str(), local 64 PCHECK(fd >= 0) << "cannot open " << backing_file_path_.value() 66 PCHECK((HANDLE_EINTR(write(fd, &version_, sizeof(version_))) == 68 (HANDLE_EINTR(write(fd, &value_, sizeof(value_))) == 71 close(fd); 76 int fd = HANDLE_EINTR(open(backing_file_path_.value().c_str(), O_RDONLY)); local 77 if (fd < 0) { 85 if (HANDLE_EINTR(read(fd, &version, sizeof(version))) == sizeof(version) && 87 HANDLE_EINTR(read(fd, &value, sizeof(value))) == sizeof(value)) { 92 close(fd); [all...] |
/system/extras/tests/pagingtest/ |
H A D | pageinout_test.c | 12 int fd; local 26 fd = create_tmp_file(tmpname, file_size); 27 if (fd < 0) { 36 buf = mmap(NULL, file_size, PROT_READ, MAP_PRIVATE, fd, 0); 63 posix_fadvise(fd, 0, file_size, POSIX_FADV_DONTNEED); 90 close(fd);
|
/system/extras/tests/storage/ |
H A D | wipe_blkdev.c | 38 static u64 get_block_device_size(int fd) argument 43 ret = ioctl(fd, BLKGETSIZE64, &size); 51 static int wipe_block_device(int fd, u64 len, int secure) argument 65 ret = ioctl(fd, req, &range); 84 int fd; local 104 fd = open(devname, O_RDWR); 105 if (fd < 0) { 110 if (fstat(fd, &statbuf) < 0) { 120 len = get_block_device_size(fd); 127 ret = wipe_block_device(fd, le [all...] |
/system/media/brillo/audio/audioservice/ |
H A D | audio_daemon.cpp | 47 int fd = file.GetPlatformFile(); local 54 message_loop->WatchFileDescriptor(fd, MessageLoop::kWatchRead,
|
/system/bt/btif/src/ |
H A D | btif_debug_conn.c | 79 void btif_debug_conn_dump(int fd) { argument 85 dprintf(fd, "\nConnection Events:\n"); 87 dprintf(fd, " None\n"); 91 dprintf(fd, " %s %s %s", 97 dprintf(fd, " reason=%d", evt->disconnect_reason); 98 dprintf(fd,"\n");
|
H A D | btif_sock.c | 40 static void btsock_signaled(int fd, int type, int flags, uint32_t user_id); 178 static void btsock_signaled(int fd, int type, int flags, uint32_t user_id) { argument 181 btsock_rfc_signaled(fd, flags, user_id); 184 btsock_l2cap_signaled(fd, flags, user_id);
|
/system/bt/hci/src/ |
H A D | btsnoop_net.c | 35 static void safe_close_(int *fd); 147 static void safe_close_(int *fd) { argument 148 assert(fd != NULL); 149 if (*fd != -1) { 150 close(*fd); 151 *fd = -1;
|
/system/bt/osi/src/ |
H A D | metrics_linux.cpp | 54 void metrics_write(int fd, bool clear) { argument 58 void metrics_print(int fd, bool clear) { argument
|