/bootable/recovery/ |
D | fuse_sdcard_provider.cpp | 31 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
|
D | fuse_sideload.cpp | 101 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
|
D | roots.cpp | 177 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
|
D | adb_install.cpp | 46 android::base::unique_fd fd(open(USB_DRIVER_CONTROL, O_WRONLY)); in set_usb_driver() local
|
D | ui.cpp | 211 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
|
D | install.cpp | 268 int fd = open(binary_path.c_str(), O_CREAT | O_WRONLY | O_TRUNC | O_CLOEXEC, 0755); in update_binary_command() local
|
D | recovery.cpp | 807 android::base::unique_fd fd(TEMP_FAILURE_RETRY(open(partition.c_str(), O_WRONLY))); in secure_wipe_partition() local
|
/bootable/recovery/otafault/ |
D | ota_io.cpp | 60 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()
|
D | test.cpp | 25 int fd = open("testdata/test.file", O_RDWR); in main() local
|
/bootable/recovery/otautil/ |
D | SysUtil.cpp | 33 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/ |
D | graphics_drm.cpp | 179 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()
|
D | events.cpp | 38 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()
|
D | graphics_adf.h | 27 int fd; variable
|
D | graphics_fbdev.cpp | 51 int fd = open("/dev/graphics/fb0", O_RDWR); in Init() local
|
/bootable/recovery/updater/ |
D | blockimg.cpp | 74 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 …]
|
D | updater.cpp | 85 int fd = atoi(argv[2]); in main() local
|
D | install.cpp | 443 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/ |
D | imgdiff.cpp | 154 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
|
D | applypatch.cpp | 192 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/ |
D | bootloader_message.cpp | 75 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/ |
D | boot_control.cpp | 95 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/ |
D | uncrypt.cpp | 226 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/ |
D | update_verifier.cpp | 152 android::base::unique_fd fd(TEMP_FAILURE_RETRY(open(dm_block_device.c_str(), O_RDONLY))); in read_blocks() local
|