Home
last modified time | relevance | path

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

12

/bootable/recovery/
Dfuse_sdcard_provider.cpp29 int fd; // the underlying sdcard file member
36 file_data* fd = reinterpret_cast<file_data*>(cookie); in read_block_file() local
58 file_data* fd = reinterpret_cast<file_data*>(cookie); in close_file() local
69 file_data fd; in start_sdcard_fuse() local
Dfuse_sideload.cpp98 static void fuse_reply(struct fuse_data* fd, __u64 unique, const void *data, size_t len) in fuse_reply()
119 static int handle_init(void* data, struct fuse_data* fd, const struct fuse_in_header* hdr) { in handle_init()
160 static void fill_attr(struct fuse_attr* attr, struct fuse_data* fd, in fill_attr()
174 static int handle_getattr(void* /* data */, struct fuse_data* fd, const struct fuse_in_header* hdr)… in handle_getattr()
193 static int handle_lookup(void* data, struct fuse_data* fd, in handle_lookup()
218 static int handle_open(void* /* data */, struct fuse_data* fd, const struct fuse_in_header* hdr) { in handle_open()
229 static int handle_flush(void* data, struct fuse_data* fd, const struct fuse_in_header* hdr) { in handle_flush()
233 static int handle_release(void* data, struct fuse_data* fd, const struct fuse_in_header* hdr) { in handle_release()
239 static int fetch_block(struct fuse_data* fd, uint32_t block) { in fetch_block()
292 static int handle_read(void* data, struct fuse_data* fd, const struct fuse_in_header* hdr) { in handle_read()
[all …]
Dui.cpp69 int RecoveryUI::InputCallback(int fd, uint32_t epevents, void* data) { in InputCallback()
91 int RecoveryUI::OnInputEvent(int fd, uint32_t epevents) { in OnInputEvent()
247 int fd = open("/sys/class/android_usb/android0/state", O_RDONLY); in IsUsbConnected() local
Dunique_fd.h26 unique_fd(int fd) : fd_(fd) { } in unique_fd()
Dwear_touch.cpp106 int fd = findDevice(DEVICE_PATH); in run() local
128 int fd = open(device, O_RDONLY); in openDevice() local
Dadb_install.cpp40 int fd = open("/sys/class/android_usb/android0/enable", O_WRONLY); in set_usb_driver() local
Droots.cpp227 int fd = open(v->key_loc, O_WRONLY | O_CREAT, 0644); in format_volume() local
/bootable/recovery/otafault/
Dota_io.cpp55 int fd = open(path, oflags); in ota_open() local
61 int fd = open(path, oflags, mode); in ota_open() local
71 int ota_close(int fd) { in ota_close()
101 ssize_t ota_read(int fd, void* buf, size_t nbyte) { in ota_read()
139 ssize_t ota_write(int fd, const void* buf, size_t nbyte) { in ota_write()
158 int ota_fsync(int fd) { in ota_fsync()
Dtest.cpp25 int fd = open("testdata/test.file", O_RDWR); in main() local
/bootable/recovery/minzip/
DSysUtil.c23 static bool sysMapFD(int fd, MemMapping* pMap) { in sysMapFD()
102 int fd = open(block_dev, O_RDONLY); in sysMapBlockFile() local
180 int fd = open(fn, O_RDONLY); in sysMapFile() local
DZip.c663 int fd = (int)(intptr_t)cookie; in writeProcessFunction() local
690 const ZipEntry *pEntry, int fd) in mzExtractZipEntryToFile()
969 int fd = open(targetFile, O_CREAT|O_WRONLY|O_TRUNC|O_SYNC, in mzExtractRecursive() local
/bootable/recovery/minui/
Devents.cpp37 int fd; member
72 int fd = openat(dirfd(dir), de->d_name, O_RDONLY); in ev_init() local
120 int ev_add_fd(int fd, ev_callback cb, void* data) { in ev_add_fd()
167 int ev_get_input(int fd, uint32_t epevents, input_event* ev) { in ev_get_input()
Dgraphics_drm.cpp209 static drmModeCrtc *find_crtc_for_connector(int fd, in find_crtc_for_connector()
254 static drmModeConnector *find_used_connector_by_type(int fd, in find_used_connector_by_type()
274 static drmModeConnector *find_first_connected_connector(int fd, in find_first_connected_connector()
292 static drmModeConnector *find_main_monitor(int fd, drmModeRes *resources, in find_main_monitor()
332 static void disable_non_main_crtcs(int fd, in disable_non_main_crtcs()
Dgraphics_fbdev.cpp83 int fd = open("/dev/graphics/fb0", O_RDWR); in fbdev_init() local
Dgraphics_adf.cpp34 int fd; member
/bootable/recovery/mtdutils/
Dmtdutils.c42 int fd; member
49 int fd; member
75 int fd; in mtd_scan_partitions() local
243 int fd = open(mtddevname, O_RDONLY); in mtd_partition_info() local
282 static int read_block(const MtdPartition *partition, int fd, char *data) in read_block()
409 int fd = ctx->fd; in write_block() local
Dflash_image.c71 int fd = open(argv[2], O_RDONLY); in main() local
/bootable/recovery/updater/
Dblockimg.cpp146 static int read_all(int fd, uint8_t* data, size_t size) { in read_all()
160 static int read_all(int fd, std::vector<uint8_t>& buffer, size_t size) { in read_all()
164 static int write_all(int fd, const uint8_t* data, size_t size) { in write_all()
179 static int write_all(int fd, const std::vector<uint8_t>& buffer, size_t size) { in write_all()
183 static bool discard_blocks(int fd, off64_t offset, uint64_t size) { in discard_blocks()
198 static bool check_lseek(int fd, off64_t offset, int whence) { in check_lseek()
218 int fd; member
345 static int ReadBlocks(const RangeSet& src, std::vector<uint8_t>& buffer, int fd) { in ReadBlocks()
366 static int WriteBlocks(const RangeSet& tgt, const std::vector<uint8_t>& buffer, int fd) { in WriteBlocks()
401 int fd; member
[all …]
Dupdater.cpp68 int fd = atoi(argv[2]); in main() local
/bootable/recovery/bootloader_message/
Dbootloader_message.cpp92 android::base::unique_fd fd(open(misc_blk_device.c_str(), O_RDONLY)); in read_misc_partition() local
116 android::base::unique_fd fd(open(misc_blk_device.c_str(), O_WRONLY | O_SYNC)); in write_misc_partition() local
/bootable/recovery/tests/unit/
Drecovery_test.cpp79 int fd = open(myFilename, O_RDONLY); in TEST() local
/bootable/recovery/tools/ota/
Dcheck-lost+found.c67 int fd = open(kMarkerFile, O_WRONLY|O_CREAT, 0444); in main() local
/bootable/recovery/minadbd/
Dservices.cpp34 int fd; member
/bootable/recovery/update_verifier/
Dupdate_verifier.cpp58 android::base::unique_fd fd(TEMP_FAILURE_RETRY(open(blk_device.c_str(), O_RDONLY))); in read_blocks() local
/bootable/recovery/applypatch/
Dapplypatch.cpp270 int fd = ota_open(filename, O_WRONLY | O_CREAT | O_TRUNC | O_SYNC, S_IRUSR | S_IWUSR); in SaveFileContents() local
370 int fd = ota_open(partition, O_RDWR | O_SYNC); in WriteToPartition() local
566 int fd = *static_cast<int*>(token); in FileSink() local

12