Home
last modified time | relevance | path

Searched defs:fd (Results 1 – 25 of 349) sorted by relevance

12345678910>>...14

/system/core/adb/
Dadb_io.cpp30 bool SendProtocolString(int fd, const std::string& s) { in SendProtocolString()
42 bool ReadProtocolString(int fd, std::string* s, std::string* error) { in ReadProtocolString()
60 bool SendOkay(int fd) { in SendOkay()
64 bool SendFail(int fd, const std::string& reason) { in SendFail()
68 bool ReadFdExactly(int fd, void* buf, size_t len) { in ReadFdExactly()
95 bool WriteFdExactly(int fd, const void* buf, size_t len) { in WriteFdExactly()
124 bool WriteFdExactly(int fd, const char* str) { in WriteFdExactly()
128 bool WriteFdExactly(int fd, const std::string& str) { in WriteFdExactly()
132 bool WriteFdFmt(int fd, const char* fmt, ...) { in WriteFdFmt()
143 bool ReadOrderlyShutdown(int fd) { in ReadOrderlyShutdown()
Dservices.cpp57 int fd; member
70 void restart_root_service(int fd, void *cookie) { in restart_root_service()
89 void restart_unroot_service(int fd, void *cookie) { in restart_unroot_service()
100 void restart_tcp_service(int fd, void *cookie) { in restart_tcp_service()
115 void restart_usb_service(int fd, void *cookie) { in restart_usb_service()
121 static bool reboot_service_impl(int fd, const char* arg) { in reboot_service_impl()
173 void reboot_service(int fd, void* arg) in reboot_service()
187 static void reconnect_service(int fd, void* arg) { in reconnect_service()
372 static void wait_for_state(int fd, void* data) { in wait_for_state()
422 int fd = network_connect(host.c_str(), port, SOCK_STREAM, 10, &error); in connect_device() local
[all …]
Dadb_client.cpp72 static int switch_socket_transport(int fd, std::string* error) { in switch_socket_transport()
113 bool adb_status(int fd, std::string* error) { in adb_status()
142 int fd; in _adb_connect() local
185 int fd = _adb_connect("host:version", error); in adb_connect() local
276 int fd = adb_connect(service, &error); in adb_command() local
295 int fd = adb_connect(service, error); in adb_query() local
Dsysdeps.h199 static __inline__ void close_on_exec(int fd) in close_on_exec()
224 static __inline__ int unix_close(int fd) in unix_close()
235 static __inline__ int unix_read(int fd, void* buf, size_t len) { in unix_read()
243 static __inline__ int unix_write(int fd, const void* buf, size_t len) in unix_write()
299 int fd; member
409 inline HANDLE cast_int_to_handle(const int fd) { in cast_int_to_handle()
488 static __inline__ void close_on_exec(int fd) in close_on_exec()
536 int fd = TEMP_FAILURE_RETRY( open( pathname, options ) ); in adb_open() local
545 static __inline__ int adb_shutdown(int fd) in adb_shutdown()
549 static __inline__ int adb_shutdown(int fd, int direction) in adb_shutdown()
[all …]
/system/core/libcutils/
Dashmem-dev.c54 int fd = TEMP_FAILURE_RETRY(open(ASHMEM_DEVICE, O_RDWR)); in __ashmem_open_locked() local
78 int fd; in __ashmem_open() local
88 static int __ashmem_is_ashmem(int fd) in __ashmem_is_ashmem()
104 int fd = __ashmem_open_locked(); in __ashmem_is_ashmem() local
147 int fd = __ashmem_open(); in ashmem_create_region() local
176 int ashmem_set_prot_region(int fd, int prot) in ashmem_set_prot_region()
186 int ashmem_pin_region(int fd, size_t offset, size_t len) in ashmem_pin_region()
198 int ashmem_unpin_region(int fd, size_t offset, size_t len) in ashmem_unpin_region()
210 int ashmem_get_size_region(int fd) in ashmem_get_size_region()
/system/core/libion/
Dion.c36 int fd = open("/dev/ion", O_RDWR); in ion_open() local
42 int ion_close(int fd) in ion_close()
50 static int ion_ioctl(int fd, int req, void *arg) in ion_ioctl()
61 int ion_alloc(int fd, size_t len, size_t align, unsigned int heap_mask, in ion_alloc()
82 int ion_free(int fd, ion_user_handle_t handle) in ion_free()
90 int ion_map(int fd, ion_user_handle_t handle, size_t length, int prot, in ion_map()
121 int ion_share(int fd, ion_user_handle_t handle, int *share_fd) in ion_share()
142 int ion_alloc_fd(int fd, size_t len, size_t align, unsigned int heap_mask, in ion_alloc_fd()
155 int ion_import(int fd, int share_fd, ion_user_handle_t *handle) in ion_import()
172 int ion_sync_fd(int fd, int handle_fd) in ion_sync_fd()
Dion_test.c41 int _ion_alloc_test(int *fd, ion_user_handle_t *handle) in _ion_alloc_test()
58 int fd, ret; in ion_alloc_test() local
75 int fd, map_fd, ret; in ion_map_test() local
136 int fd, share_fd, ret; in ion_share_test() local
172 int fd, recv_fd; in ion_share_test() local
/system/vold/bench/
Dbenchgen.py180 fd, f, handle = extract_file(e, e.ret) variable
189 fd, f, handle = extract_file(e, e.args[0]) variable
195 fd, f, handle = extract_file(e, e.args[0]) variable
200 fd, f, handle = extract_file(e, e.args[0]) variable
205 fd, f, handle = extract_file(e, e.args[0]) variable
214 fd, f, handle = extract_file(e, e.args[0]) variable
223 fd, f, handle = extract_file(e, e.args[0]) variable
231 fd, f, handle = extract_file(e, e.args[0]) variable
239 fd, f, handle = extract_file(e, e.args[0]) variable
245 fd, f, handle = extract_file(e, e.args[0]) variable
[all …]
/system/connectivity/shill/
Dfile_io.cc41 ssize_t FileIO::Write(int fd, const void* buf, size_t count) { in Write()
45 ssize_t FileIO::Read(int fd, void* buf, size_t count) { in Read()
49 int FileIO::Close(int fd) { in Close()
53 int FileIO::SetFdNonBlocking(int fd) { in SetFdNonBlocking()
/system/connectivity/shill/net/
Dio_ready_handler.cc25 IOReadyHandler::IOReadyHandler(int fd, in IOReadyHandler()
55 void IOReadyHandler::OnFileCanReadWithoutBlocking(int fd) { in OnFileCanReadWithoutBlocking()
62 void IOReadyHandler::OnFileCanWriteWithoutBlocking(int fd) { in OnFileCanWriteWithoutBlocking()
Dio_input_handler.cc27 IOInputHandler::IOInputHandler(int fd, in IOInputHandler()
50 void IOInputHandler::OnFileCanReadWithoutBlocking(int fd) { in OnFileCanReadWithoutBlocking()
66 void IOInputHandler::OnFileCanWriteWithoutBlocking(int fd) { in OnFileCanWriteWithoutBlocking()
Dio_handler_factory.cc28 int fd, in CreateIOInputHandler()
37 int fd, in CreateIOReadyHandler()
/system/core/base/
Dfile.cpp38 bool ReadFdToString(int fd, std::string* content) { in ReadFdToString()
52 int fd = TEMP_FAILURE_RETRY(open(path.c_str(), O_RDONLY | O_CLOEXEC | O_NOFOLLOW | O_BINARY)); in ReadFileToString() local
61 bool WriteStringToFd(const std::string& content, int fd) { in WriteStringToFd()
87 int fd = TEMP_FAILURE_RETRY(open(path.c_str(), flags, mode)); in WriteStringToFile() local
114 int fd = TEMP_FAILURE_RETRY(open(path.c_str(), flags, DEFFILEMODE)); in WriteStringToFile() local
124 bool ReadFully(int fd, void* data, size_t byte_count) { in ReadFully()
136 bool WriteFully(int fd, const void* data, size_t byte_count) { in WriteFully()
/system/core/logd/
Dlibaudit.c39 static int get_ack(int fd, int16_t seq) in get_ack()
83 static int audit_send(int fd, int type, const void *data, size_t size) in audit_send()
165 int audit_setup(int fd, uint32_t pid) in audit_setup()
209 int audit_get_reply(int fd, struct audit_message *rep, reply_t block, int peek) in audit_get_reply()
267 void audit_close(int fd) in audit_close()
/system/update_engine/
Dtest_http_server.cc83 bool ParseRequest(int fd, HttpRequest* request) { in ParseRequest()
160 ssize_t WriteString(int fd, const string& str) { in WriteString()
180 ssize_t WriteHeaders(int fd, const off_t start_offset, const off_t end_offset, in WriteHeaders()
222 size_t WritePayload(int fd, const off_t start_offset, const off_t end_offset, in WritePayload()
272 inline size_t WritePayload(int fd, const off_t start_offset, in WritePayload()
278 void HandleQuit(int fd) { in HandleQuit()
289 ssize_t HandleGet(int fd, const HttpRequest& request, const size_t total_length, in HandleGet()
372 ssize_t HandleGet(int fd, const HttpRequest& request, in HandleGet()
379 void HandleRedirect(int fd, const HttpRequest& request) { in HandleRedirect()
404 ssize_t HandleError(int fd, const HttpRequest& request) { in HandleError()
[all …]
/system/extras/ext4_utils/
Dext4fixup.c86 static int get_fs_fixup_state(int fd) in get_fs_fixup_state()
117 static int set_fs_fixup_state(int fd, int state) in set_fs_fixup_state()
166 static int read_inode(int fd, unsigned int inum, struct ext4_inode *inode) in read_inode()
190 static int read_block(int fd, unsigned long long block_num, void *block) in read_block()
209 static int write_block(int fd, unsigned long long block_num, void *block) in write_block()
232 static void check_inode_bitmap(int fd, unsigned int bg_num) in check_inode_bitmap()
264 static int update_superblocks_and_bg_desc(int fd, int state) in update_superblocks_and_bg_desc()
374 static int get_indirect_blocks(int fd, struct ext4_inode *inode, in get_indirect_blocks()
401 static int get_block_list_indirect(int fd, struct ext4_inode *inode, unsigned long long *block_list) in get_block_list_indirect()
438 static int get_extent_idx(int fd, struct ext4_extent_header *ext_hdr, unsigned long long *block_lis… in get_extent_idx()
[all …]
Dwipe.c35 int wipe_block_device(int fd, s64 len) in wipe_block_device()
70 int wipe_block_device(int fd, s64 len) in wipe_block_device()
/system/vold/
DLoop.cpp43 int fd; in dumpState() local
85 int fd; in lookupActive() local
132 int fd; in create() local
257 int fd; in createImageFile() local
274 int fd; in resizeImageFile() local
302 int fd; in lookupInfo() local
/system/core/libsync/
Dsync.c31 int sync_wait(int fd, int timeout) in sync_wait()
53 struct sync_fence_info_data *sync_fence_info(int fd) in sync_fence_info()
97 int sw_sync_timeline_inc(int fd, unsigned count) in sw_sync_timeline_inc()
104 int sw_sync_fence_create(int fd, const char *name, unsigned value) in sw_sync_fence_create()
/system/core/trusty/libtrusty/
Dtrusty.c32 int fd; in tipc_connect() local
56 void tipc_close(int fd) in tipc_close()
/system/core/trusty/libtrusty/tipc-test/
Dtipc_test.c191 int fd; in connect_foo() local
217 int fd; in closer1_test() local
246 int fd; in closer2_test() local
276 int fd[4]; in closer3_test() local
403 int fd; in burst_write_test() local
449 static int _wait_for_msg(int fd, uint msgsz, int timeout) in _wait_for_msg()
503 int fd; in select_test() local
548 int fd; in blocked_read_test() local
587 int fd; in ta2ta_ipc_test() local
637 int fd; in dev_uuid_test() local
[all …]
/system/extras/verity/fec/
Dimage.cpp99 for (auto fd : fds) { in file_image_load() local
140 for (auto fd : fds) { in file_image_load() local
159 int fd = TEMP_FAILURE_RETRY(open(fn.c_str(), flags | O_LARGEFILE)); in image_load() local
176 int fd = TEMP_FAILURE_RETRY(open(filename.c_str(), in image_save() local
214 int fd = TEMP_FAILURE_RETRY(open(filename.c_str(), O_RDONLY)); in image_ecc_load() local
315 int fd = TEMP_FAILURE_RETRY(open(ctx->fec_filename, in image_ecc_save() local
/system/extras/tests/storage/
Dwipe_blkdev.c38 static u64 get_block_device_size(int fd) in get_block_device_size()
51 static int wipe_block_device(int fd, u64 len, int secure) in wipe_block_device()
84 int fd; in main() local
/system/core/libsparse/
Dsparse_read.c102 int fd, int64_t offset, unsigned int blocks, unsigned int block, in process_raw_chunk()
140 int fd, unsigned int blocks, unsigned int block, uint32_t *crc32) in process_fill_chunk()
202 static int process_crc32_chunk(int fd, unsigned int chunk_size, uint32_t *crc32) in process_crc32_chunk()
223 static int process_chunk(struct sparse_file *s, int fd, off64_t offset, in process_chunk()
275 static int sparse_file_read_sparse(struct sparse_file *s, int fd, bool crc) in sparse_file_read_sparse()
357 static int sparse_file_read_normal(struct sparse_file *s, int fd) in sparse_file_read_normal()
409 int sparse_file_read(struct sparse_file *s, int fd, bool sparse, bool crc) in sparse_file_read()
422 struct sparse_file *sparse_file_import(int fd, bool verbose, bool crc) in sparse_file_import()
478 struct sparse_file *sparse_file_import_auto(int fd, bool crc, bool verbose) in sparse_file_import_auto()
/system/core/libdiskconfig/
Ddiskconfig.c240 sync_ptable(int fd) in sync_ptable()
274 int fd; in validate() local
388 validate_and_config(struct disk_info *dinfo, int *fd, struct write_list **lst) in validate_and_config()
423 int fd; in process_disk_config() local
437 int fd; in apply_disk_config() local

12345678910>>...14