Home
last modified time | relevance | path

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

/bootable/recovery/
Dfuse_sdcard_provider.cpp31 int fd; // the underlying sdcard file member
38 file_data* fd = reinterpret_cast<file_data*>(cookie); in read_block_file() local
55 file_data* fd = reinterpret_cast<file_data*>(cookie); in close_file() local
66 file_data fd; in start_sdcard_fuse() local
Dfuse_sideload.cpp101 static void fuse_reply(struct fuse_data* fd, __u64 unique, const void *data, size_t len) in fuse_reply()
122 static int handle_init(void* data, struct fuse_data* fd, const struct fuse_in_header* hdr) { in handle_init()
163 static void fill_attr(struct fuse_attr* attr, struct fuse_data* fd, in fill_attr()
177 static int handle_getattr(void* /* data */, struct fuse_data* fd, const struct fuse_in_header* hdr)… in handle_getattr()
196 static int handle_lookup(void* data, struct fuse_data* fd, in handle_lookup()
221 static int handle_open(void* /* data */, struct fuse_data* fd, const struct fuse_in_header* hdr) { in handle_open()
244 static int fetch_block(struct fuse_data* fd, uint32_t block) { in fetch_block()
297 static int handle_read(void* data, struct fuse_data* fd, const struct fuse_in_header* hdr) { in handle_read()
386 struct fuse_data fd = {}; in run_fuse_sideload() local
Droots.cpp177 static ssize_t get_file_size(int fd, uint64_t reserve_len) { in get_file_size()
220 int fd = open(v->key_loc, O_WRONLY | O_CREAT, 0644); in format_volume() local
233 android::base::unique_fd fd(open(v->blk_device, O_RDONLY)); in format_volume() local
Dadb_install.cpp46 android::base::unique_fd fd(open(USB_DRIVER_CONTROL, O_WRONLY)); in set_usb_driver() local
Dui.cpp211 int RecoveryUI::OnInputEvent(int fd, uint32_t epevents) { in OnInputEvent()
478 int fd = open("/sys/class/android_usb/android0/state", O_RDONLY); in IsUsbConnected() local
Dinstall.cpp268 int fd = open(binary_path.c_str(), O_CREAT | O_WRONLY | O_TRUNC | O_CLOEXEC, 0755); in update_binary_command() local
Drecovery.cpp807 android::base::unique_fd fd(TEMP_FAILURE_RETRY(open(partition.c_str(), O_WRONLY))); in secure_wipe_partition() local
/bootable/recovery/otafault/
Dota_io.cpp60 int fd = open(path, oflags); in ota_open() local
67 int fd = open(path, oflags, mode); in ota_open() local
80 static int __ota_close(int fd) { in __ota_close()
87 void OtaCloser::Close(int fd) { in Close()
91 int ota_close(unique_fd& fd) { in ota_close()
130 ssize_t ota_read(int fd, void* buf, size_t nbyte) { in ota_read()
170 ssize_t ota_write(int fd, const void* buf, size_t nbyte) { in ota_write()
190 int ota_fsync(int fd) { in ota_fsync()
Dtest.cpp25 int fd = open("testdata/test.file", O_RDWR); in main() local
/bootable/recovery/otautil/
DSysUtil.cpp33 bool MemMapping::MapFD(int fd) { in MapFD()
110 android::base::unique_fd fd(TEMP_FAILURE_RETRY(open(block_dev.c_str(), O_RDONLY))); in MapBlockFile() local
181 android::base::unique_fd fd(TEMP_FAILURE_RETRY(open(fn.c_str(), O_RDONLY))); in MapFile() local
/bootable/recovery/minui/
Dgraphics_drm.cpp179 static drmModeCrtc* find_crtc_for_connector(int fd, drmModeRes* resources, in find_crtc_for_connector()
217 static drmModeConnector* find_used_connector_by_type(int fd, drmModeRes* resources, unsigned type) { in find_used_connector_by_type()
231 static drmModeConnector* find_first_connected_connector(int fd, drmModeRes* resources) { in find_first_connected_connector()
246 drmModeConnector* MinuiBackendDrm::FindMainMonitor(int fd, drmModeRes* resources, in FindMainMonitor()
281 void MinuiBackendDrm::DisableNonMainCrtcs(int fd, drmModeRes* resources, drmModeCrtc* main_crtc) { in DisableNonMainCrtcs()
Devents.cpp38 int fd; member
68 int fd = openat(dirfd(dir), de->d_name, O_RDONLY); in ev_init() local
121 int ev_add_fd(int fd, ev_callback cb) { in ev_add_fd()
167 int ev_get_input(int fd, uint32_t epevents, input_event* ev) { in ev_get_input()
Dgraphics_adf.h27 int fd; variable
Dgraphics_fbdev.cpp51 int fd = open("/dev/graphics/fb0", O_RDWR); in Init() local
/bootable/recovery/updater/
Dblockimg.cpp74 static int read_all(int fd, uint8_t* data, size_t size) { in read_all()
92 static int read_all(int fd, std::vector<uint8_t>& buffer, size_t size) { in read_all()
96 static int write_all(int fd, const uint8_t* data, size_t size) { in write_all()
111 static int write_all(int fd, const std::vector<uint8_t>& buffer, size_t size) { in write_all()
115 static bool discard_blocks(int fd, off64_t offset, uint64_t size) { in discard_blocks()
129 static bool check_lseek(int fd, off64_t offset, int whence) { in check_lseek()
152 RangeSinkWriter(int fd, const RangeSet& tgt) in RangeSinkWriter()
387 static int ReadBlocks(const RangeSet& src, std::vector<uint8_t>& buffer, int fd) { in ReadBlocks()
405 static int WriteBlocks(const RangeSet& tgt, const std::vector<uint8_t>& buffer, int fd) { in WriteBlocks()
438 android::base::unique_fd fd; member
[all …]
Dupdater.cpp85 int fd = atoi(argv[2]); in main() local
Dinstall.cpp443 unique_fd fd(TEMP_FAILURE_RETRY( in PackageExtractFileFn() local
978 unique_fd fd(ota_open(filename.c_str(), O_WRONLY, 0644)); in WipeBlockDeviceFn() local
/bootable/recovery/applypatch/
Dimgdiff.cpp154 static inline bool Write8(int fd, int64_t value) { in Write8()
160 static inline bool Write4(int fd, int32_t value) { in Write4()
348 size_t ImageChunk::WriteHeaderToFd(int fd, const std::vector<uint8_t>& patch, size_t offset) { in WriteHeaderToFd()
498 android::base::unique_fd fd(open(filename, O_RDONLY)); in ReadZip() local
615 android::base::unique_fd fd(open(filename, O_RDONLY)); in ReadImage() local
764 int fd = mkstemp(ptemp); in MakePatch() local
864 android::base::unique_fd fd(open(argv[2], O_RDONLY)); in imgdiff() local
Dapplypatch.cpp192 unique_fd fd(ota_open(filename, O_WRONLY | O_CREAT | O_TRUNC | O_SYNC, S_IRUSR | S_IWUSR)); in SaveFileContents() local
237 unique_fd fd(ota_open(partition, O_RDWR)); in WriteToPartition() local
437 static size_t FileSink(const unsigned char* data, size_t len, int fd) { in FileSink()
/bootable/recovery/bootloader_message/
Dbootloader_message.cpp75 android::base::unique_fd fd(open(misc_blk_device.c_str(), O_RDONLY)); in read_misc_partition() local
96 android::base::unique_fd fd(open(misc_blk_device.c_str(), O_WRONLY)); in write_misc_partition() local
/bootable/recovery/boot_control/
Dboot_control.cpp95 android::base::unique_fd fd(open(misc_device, O_RDONLY)); in LoadBootloaderControl() local
113 android::base::unique_fd fd(open(misc_device, O_WRONLY | O_SYNC)); in UpdateAndSaveBootloaderControl() local
/bootable/recovery/uncrypt/
Duncrypt.cpp226 static int retry_fibmap(const int fd, const char* name, int* block, const int head_block) { in retry_fibmap()
295 android::base::unique_fd fd(open(path, O_RDONLY)); in produce_block_map() local
/bootable/recovery/update_verifier/
Dupdate_verifier.cpp152 android::base::unique_fd fd(TEMP_FAILURE_RETRY(open(dm_block_device.c_str(), O_RDONLY))); in read_blocks() local