/system/core/libcutils/ |
D | ashmem-dev.cpp | 165 android::base::unique_fd fd( in __has_memfd_support() local 213 int fd = TEMP_FAILURE_RETRY(open(ashmem_device_path.c_str(), O_RDWR | O_CLOEXEC)); in __ashmem_open_locked() local 247 int fd; in __ashmem_open() local 257 static int __ashmem_is_ashmem(int fd, int fatal) in __ashmem_is_ashmem() 273 int fd = __ashmem_open_locked(); in __ashmem_is_ashmem() local 307 static int __ashmem_check_failure(int fd, int result) in __ashmem_check_failure() 313 static bool memfd_is_ashmem(int fd) { in memfd_is_ashmem() 328 int ashmem_valid(int fd) in ashmem_valid() 340 android::base::unique_fd fd(syscall(__NR_memfd_create, name, MFD_CLOEXEC | MFD_ALLOW_SEALING)); in memfd_create_region() local 373 int fd = __ashmem_open(); in ashmem_create_region() local [all …]
|
D | ashmem_test.cpp | 32 void TestCreateRegion(size_t size, unique_fd &fd, int prot) { in TestCreateRegion() 45 void TestMmap(const unique_fd& fd, size_t size, int prot, void** region, off_t off = 0) { in TestMmap() 52 void TestProtDenied(const unique_fd &fd, size_t size, int prot) { in TestProtDenied() 58 void TestProtIs(const unique_fd& fd, int prot) { in TestProtIs() 75 unique_fd fd; in TEST() local 97 unique_fd fd; in TEST() local 133 unique_fd fd; in TEST() local 191 unique_fd fd; in TEST() local 219 unique_fd fd; in TEST() local 246 unique_fd fd[nRegions]; in TEST() local
|
D | ashmem-host.cpp | 37 static bool ashmem_validate_stat(int fd, struct stat* buf) { in ashmem_validate_stat() 55 int ashmem_valid(int fd) { in ashmem_valid() 63 int fd = mkstemp(pattern); in ashmem_create_region() local 88 int ashmem_get_size_region(int fd) in ashmem_get_size_region()
|
/system/memory/libion/ |
D | ion.c | 44 int ion_is_legacy(int fd) { in ion_is_legacy() 59 int fd = open("/dev/ion", O_RDONLY | O_CLOEXEC); in ion_open() local 65 int ion_close(int fd) { in ion_close() 71 static int ion_ioctl(int fd, int req, void* arg) { in ion_ioctl() 80 int ion_is_using_modular_heaps(int fd) { in ion_is_using_modular_heaps() 88 int ion_alloc(int fd, size_t len, size_t align, unsigned int heap_mask, unsigned int flags, in ion_alloc() 106 int ion_free(int fd, ion_user_handle_t handle) { in ion_free() 113 int ion_map(int fd, ion_user_handle_t handle, size_t length, int prot, int flags, off_t offset, in ion_map() 141 int ion_share(int fd, ion_user_handle_t handle, int* share_fd) { in ion_share() 160 int ion_alloc_fd(int fd, size_t len, size_t align, unsigned int heap_mask, unsigned int flags, in ion_alloc_fd() [all …]
|
/system/logging/logd/ |
D | libaudit.cpp | 36 static int get_ack(int fd) { in get_ack() 67 static int audit_send(int fd, int type, const void* data, size_t size) { in audit_send() 125 int audit_setup(int fd, pid_t pid) { in audit_setup() 162 int audit_rate_limit(int fd, uint32_t limit) { in audit_rate_limit() 169 int audit_get_reply(int fd, struct audit_message* rep, reply_t block, int peek) { in audit_get_reply() 215 void audit_close(int fd) { in audit_close()
|
/system/core/fs_mgr/liblp/ |
D | io_test.cpp | 52 unique_fd fd(syscall(__NR_memfd_create, "fake_disk", MFD_ALLOW_SEALING)); in CreateFakeDisk() local 90 explicit DefaultPartitionOpener(int fd) in DefaultPartitionOpener() 108 unique_fd fd = CreateFakeDisk(); in CreateFlashedDisk() local 127 unique_fd fd = CreateFakeDisk(); in TEST_F() local 150 unique_fd fd = CreateFakeDisk(); in TEST_F() local 164 unique_fd fd = CreateFakeDisk(); in TEST_F() local 210 unique_fd fd = CreateFlashedDisk(); in TEST_F() local 255 unique_fd fd = CreateFlashedDisk(); in TEST_F() local 274 unique_fd fd = CreateFlashedDisk(); in TEST_F() local 303 unique_fd fd = CreateFlashedDisk(); in TEST_F() local [all …]
|
/system/libbase/ |
D | abi_compatibility.cpp | 44 bool ReadFdToString(int fd, std::string* content) { in ReadFdToString() 48 bool WriteStringToFd(const std::string& content, int fd) { in WriteStringToFd() 52 bool ReadFully(int fd, void* data, size_t byte_count) { in ReadFully() 56 bool ReadFullyAtOffset(int fd, void* data, size_t byte_count, off64_t offset) { in ReadFullyAtOffset() 60 bool WriteFully(int fd, const void* data, size_t byte_count) { in WriteFully() 71 extern "C" std::unique_ptr<MappedFile> MAPPEDFILE_FROMFD(int fd, off64_t offset, size_t length, in MAPPEDFILE_FROMFD()
|
/system/memory/lmkd/libpsi/ |
D | psi.cpp | 40 int fd; in init_psi_monitor() local 83 int register_psi_monitor(int epollfd, int fd, void* data) { in register_psi_monitor() 96 int unregister_psi_monitor(int epollfd, int fd) { in unregister_psi_monitor() 100 void destroy_psi_monitor(int fd) { in destroy_psi_monitor()
|
/system/vold/bench/ |
D | benchgen.py | 188 fd, f, handle = extract_file(e, e.ret) variable 202 fd, f, handle = extract_file(e, e.args[0]) variable 208 fd, f, handle = extract_file(e, e.args[0]) variable 213 fd, f, handle = extract_file(e, e.args[0]) variable 218 fd, f, handle = extract_file(e, e.args[0]) variable 227 fd, f, handle = extract_file(e, e.args[0]) variable 236 fd, f, handle = extract_file(e, e.args[0]) variable 244 fd, f, handle = extract_file(e, e.args[0]) variable 252 fd, f, handle = extract_file(e, e.args[0]) variable 258 fd, f, handle = extract_file(e, e.args[0]) variable [all …]
|
/system/incremental_delivery/incfs/tests/util/ |
D | map_ptr_test.cpp | 42 auto fd = openForSpecialOps(control_, fileId(1)); in SetUp() local 76 std::unique_ptr<IncFsFileMap> GetFileMap(int fd, off64_t offset, size_t length) { in GetFileMap() 91 auto fd = GetFd(); in TEST_F() local 106 auto fd = GetFd(); in TEST_F() local 123 auto fd = GetFd(); in TEST_F() local 138 auto fd = GetFd(); in TEST_F() local 155 auto fd = GetFd(); in TEST_F() local 177 auto fd = GetFd(); in TEST_F() local 192 auto fd = GetFd(); in TEST_F() local 203 auto fd = GetFd(); in TEST_F() local [all …]
|
/system/core/libappfuse/ |
D | EpollController.cc | 38 bool EpollController::AddFd(int fd, int events, void* data) { in AddFd() 42 bool EpollController::UpdateFd(int fd, int events, void* data) { in UpdateFd() 46 bool EpollController::RemoveFd(int fd) { in RemoveFd() 54 bool EpollController::InvokeControl(int op, int fd, int events, void* data) const { in InvokeControl()
|
/system/core/libutils/include/utils/ |
D | Compat.h | 32 static inline void* mmap64(void* addr, size_t length, int prot, int flags, int fd, off64_t offset) { in mmap64() 36 static inline off64_t lseek64(int fd, off64_t offset, int whence) { in lseek64() 40 static inline ssize_t pread64(int fd, void* buf, size_t nbytes, off64_t offset) { in pread64() 44 static inline ssize_t pwrite64(int fd, const void* buf, size_t nbytes, off64_t offset) { in pwrite64() 48 static inline int ftruncate64(int fd, off64_t length) { in ftruncate64()
|
/system/core/trusty/libtrusty/ |
D | trusty.c | 33 int fd; in tipc_connect() local 55 ssize_t tipc_send(int fd, const struct iovec* iov, int iovcnt, struct trusty_shm* shms, in tipc_send() 71 void tipc_close(int fd) { in tipc_close()
|
/system/extras/ext4_utils/ |
D | ext4_utils.cpp | 85 void read_sb(int fd, struct ext4_super_block* sb) { in read_sb() 183 u64 get_block_device_size(int fd) { in get_block_device_size() 201 int is_block_device_fd(int fd __attribute__((unused))) { in is_block_device_fd() 213 u64 get_file_size(int fd) { in get_file_size() 239 static void read_block_group_descriptors(int fd) { in read_block_group_descriptors() 278 int read_ext(int fd, int verbose) { in read_ext()
|
/system/netd/libnetdutils/include/netdutils/ |
D | Fd.h | 33 constexpr Fd(int fd) : mFd(fd) {} in Fd() 45 inline bool isWellFormed(const Fd fd) { in isWellFormed()
|
/system/update_engine/ |
D | test_http_server.cc | 81 bool ParseRequest(int fd, HttpRequest* request) { in ParseRequest() 163 ssize_t WriteString(int fd, const string& str) { in WriteString() 183 ssize_t WriteHeaders(int fd, in WriteHeaders() 226 size_t WritePayload(int fd, in WritePayload() 279 inline size_t WritePayload(int fd, in WritePayload() 286 void HandleQuit(int fd) { in HandleQuit() 296 ssize_t HandleGet(int fd, in HandleGet() 382 ssize_t HandleGet(int fd, in HandleGet() 390 void HandleRedirect(int fd, const HttpRequest& request) { in HandleRedirect() 416 ssize_t HandleError(int fd, const HttpRequest& request) { in HandleError() [all …]
|
/system/iorap/src/serialize/ |
D | protobuf_io.cc | 39 android::base::unique_fd fd(TEMP_FAILURE_RETRY(::open(file_path.c_str(), O_RDONLY))); in Open() local 48 ArenaPtr<proto::TraceFile> ProtobufIO::Open(int fd, const char* file_path) { in Open() 100 android::base::unique_fd fd(TEMP_FAILURE_RETRY( in WriteFully() local 115 int fd, in WriteFully()
|
/system/core/fs_mgr/libvbmeta/ |
D | writer.cpp | 44 Result<void> WritePrimaryVBMetaTable(int fd, const std::string& table) { in WritePrimaryVBMetaTable() 56 Result<void> WriteBackupVBMetaTable(int fd, const std::string& table) { in WriteBackupVBMetaTable() 68 Result<void> WriteVBMetaImage(int fd, const uint8_t slot_number, const std::string& vbmeta_image) { in WriteVBMetaImage()
|
D | reader.cpp | 58 Result<void> ReadVBMetaTable(int fd, uint64_t offset, VBMetaTable* table) { in ReadVBMetaTable() 85 Result<void> ReadPrimaryVBMetaTable(int fd, VBMetaTable* table) { in ReadPrimaryVBMetaTable() 90 Result<void> ReadBackupVBMetaTable(int fd, VBMetaTable* table) { in ReadBackupVBMetaTable() 95 Result<std::string> ReadVBMetaImage(int fd, int slot) { in ReadVBMetaImage()
|
/system/netd/libnetdutils/ |
D | UniqueFd.cpp | 25 void UniqueFd::reset(Fd fd) { in reset() 33 std::ostream& operator<<(std::ostream& os, const UniqueFd& fd) { in operator <<()
|
/system/netd/server/ |
D | OffloadUtils.h | 51 const int fd = bpf::mapRetrieveRW(CLAT_EGRESS4_MAP_PATH); in getClatEgress4MapFd() local 56 const int fd = bpf::retrieveProgram(with_ethernet_header ? CLAT_EGRESS4_PROG_ETHER_PATH in getClatEgress4ProgFd() local 62 const int fd = bpf::mapRetrieveRW(CLAT_INGRESS6_MAP_PATH); in getClatIngress6MapFd() local 67 const int fd = bpf::retrieveProgram(with_ethernet_header ? CLAT_INGRESS6_PROG_ETHER_PATH in getClatIngress6ProgFd() local
|
/system/core/fs_mgr/tests/ |
D | file_wait_test.cpp | 43 unique_fd fd(open(test_file_.c_str(), O_CREAT | O_TRUNC | O_RDWR, 0700)); in TEST_F() local 58 unique_fd fd(open(test_file_.c_str(), O_CREAT | O_TRUNC | O_RDWR, 0700)); in TEST_F() local 67 unique_fd fd(open(test_file_.c_str(), O_CREAT | O_TRUNC | O_RDWR, 0700)); in TEST_F() local 76 unique_fd fd(open(test_file_.c_str(), O_CREAT | O_TRUNC | O_RDWR, 0700)); in TEST_F() local
|
/system/memory/libion/tests/ |
D | allocate_test.cpp | 34 int fd; in TEST_F() local 49 int fd; in TEST_F() local 64 int fd; in TEST_F() local 80 int fd; in TEST_F() local 96 int fd; in TEST_F() local
|
/system/tools/aidl/build/aidl_api/test-root-package/2/test_package/ |
D | IBaz.aidl | 6 void writePFD(in ParcelFileDescriptor fd); in writePFD() 7 void readWritePFD(inout ParcelFileDescriptor fd); in readWritePFD()
|
/system/core/trusty/storage/proxy/ |
D | storage.c | 52 static uint32_t insert_fd(int open_flags, int fd) in insert_fd() 126 static ssize_t write_with_retry(int fd, const void *buf_, size_t size, off_t offset) in write_with_retry() 142 static ssize_t read_with_retry(int fd, void *buf_, size_t size, off_t offset) in read_with_retry() 310 int fd = remove_fd(req->handle); in storage_file_close() local 351 int fd = lookup_fd(req->handle, true); in storage_file_write() local 388 int fd = lookup_fd(req->handle, false); in storage_file_read() local 421 int fd = lookup_fd(req->handle, false); in storage_file_get_size() local 452 int fd = lookup_fd(req->handle, true); in storage_file_set_size() local 490 for (uint fd = 0; fd < FD_TBL_SIZE; fd++) { in storage_sync_checkpoint() local
|