Home
last modified time | relevance | path

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

12

/bootable/recovery/fuse_sideload/
Dfuse_sideload.cpp98 static void fuse_reply(const fuse_data* fd, uint64_t unique, const void* data, size_t len) { in fuse_reply()
116 static int handle_init(void* data, fuse_data* fd, const fuse_in_header* hdr) { in handle_init()
152 static void fill_attr(fuse_attr* attr, const fuse_data* fd, uint64_t nodeid, uint64_t size, in fill_attr()
166 static int handle_getattr(void* /* data */, const fuse_data* fd, const fuse_in_header* hdr) { in handle_getattr()
184 static int handle_lookup(void* data, const fuse_data* fd, const fuse_in_header* hdr) { in handle_lookup()
208 static int handle_open(void* /* data */, const fuse_data* fd, const fuse_in_header* hdr) { in handle_open()
228 static int fetch_block(fuse_data* fd, uint32_t block) { in fetch_block()
279 static int handle_read(void* data, fuse_data* fd, const fuse_in_header* hdr) { in handle_read()
362 fuse_data fd = {}; in run_fuse_sideload() local
Dfuse_provider.cpp82 android::base::unique_fd&& fd, in FuseBlockDataProvider()
142 android::base::unique_fd fd(TEMP_FAILURE_RETRY(open(block_map.path().c_str(), O_RDONLY))); in CreateFromBlockMap() local
/bootable/recovery/minui/
Dgraphics_drm.cpp172 static drmModeCrtc* find_crtc_for_connector(int fd, drmModeRes* resources, in find_crtc_for_connector()
210 static drmModeConnector* find_used_connector_by_type(int fd, drmModeRes* resources, unsigned type) { in find_used_connector_by_type()
224 static drmModeConnector* find_first_connected_connector(int fd, drmModeRes* resources) { in find_first_connected_connector()
239 drmModeConnector* MinuiBackendDrm::FindMainMonitor(int fd, drmModeRes* resources, in FindMainMonitor()
274 void MinuiBackendDrm::DisableNonMainCrtcs(int fd, drmModeRes* resources, drmModeCrtc* main_crtc) { in DisableNonMainCrtcs()
292 android::base::unique_fd fd(open(dev_name.c_str(), O_RDWR | O_CLOEXEC)); in Init() local
364 static void page_flip_complete(__unused int fd, in page_flip_complete()
Devents.cpp48 android::base::unique_fd fd; member
68 static bool should_add_input_device(int fd, bool allow_touch_inputs) { in should_add_input_device()
88 static int inotify_cb(int fd, __unused uint32_t epevents) { in inotify_cb()
168 android::base::unique_fd fd(openat(dirfd(dir.get()), de->d_name, O_RDONLY | O_CLOEXEC)); in ev_init() local
207 int ev_add_fd(android::base::unique_fd&& fd, ev_callback cb) { in ev_add_fd()
254 int ev_get_input(int fd, uint32_t epevents, input_event* ev) { in ev_get_input()
Dgraphics_adf.h45 __u32 pitch, int fd) in GRSurfaceAdf()
51 int fd; variable
Dgraphics_fbdev.cpp59 android::base::unique_fd fd(open("/dev/graphics/fb0", O_RDWR | O_CLOEXEC)); in Init() local
Dgraphics_adf.cpp48 auto fd = adf_interface_simple_buffer_alloc(intf_fd, mode->hdisplay, mode->vdisplay, format, in Create() local
/bootable/recovery/minadbd/
Dminadbd_services_test.cpp65 void ReadAndCheckCommandMessage(int fd, MinadbdCommand expected_command) { in ReadAndCheckCommandMessage()
110 unique_fd fd = daemon_service_to_fd(command, nullptr); in ExecuteCommandAndWaitForExit() local
147 unique_fd fd = daemon_service_to_fd(command, nullptr); in TEST_F() local
170 android::base::unique_fd fd(TEMP_FAILURE_RETRY(open(package_path_.c_str(), O_RDONLY))); in TEST_F() local
189 unique_fd fd = daemon_service_to_fd("sideload-host:4096:4096", nullptr); in TEST_F() local
Dfuse_adb_provider.h26 FuseAdbDataProvider(int fd, uint64_t file_size, uint32_t block_size) in FuseAdbDataProvider()
Dminadbd_services.cpp67 static bool WriteCommandToFd(MinadbdCommand cmd, int fd) { in WriteCommandToFd()
81 static bool WaitForCommandStatus(int fd, MinadbdCommandStatus* status) { in WaitForCommandStatus()
241 static void WipeDeviceService(unique_fd fd, const std::string& args) { in WipeDeviceService()
/bootable/recovery/otautil/
Dsysutil.cpp105 bool MemMapping::MapFD(int fd) { in MapFD()
146 android::base::unique_fd fd(TEMP_FAILURE_RETRY(open(block_map_data.path().c_str(), O_RDONLY))); in MapBlockFile() local
199 android::base::unique_fd fd(TEMP_FAILURE_RETRY(open(fn.c_str(), O_RDONLY))); in MapFile() local
/bootable/recovery/recovery_utils/
Droots.cpp110 static int64_t get_file_size(int fd, uint64_t reserve_len) { in get_file_size()
168 int fd = open(v->key_loc.c_str(), O_WRONLY | O_CREAT, 0644); in format_volume() local
181 android::base::unique_fd fd(open(v->blk_device.c_str(), O_RDONLY)); in format_volume() local
/bootable/recovery/updater/
Dupdater_main.cpp78 int fd; in main() local
Dblockimg.cpp95 android::base::unique_fd fd(TEMP_FAILURE_RETRY(open(last_command_file.c_str(), O_RDONLY))); in ParseLastCommandFile() local
195 static bool discard_blocks(int fd, off64_t offset, uint64_t size, bool force = false) { in discard_blocks()
213 static bool check_lseek(int fd, off64_t offset, int whence) { in check_lseek()
235 RangeSinkWriter(int fd, const RangeSet& tgt) in RangeSinkWriter()
482 static int ReadBlocks(const RangeSet& src, std::vector<uint8_t>* buffer, int fd) { in ReadBlocks()
502 static int WriteBlocks(const RangeSet& tgt, const std::vector<uint8_t>& buffer, int fd) { in WriteBlocks()
537 android::base::unique_fd fd; member
637 static void PrintHashForMissingStashedBlocks(const std::string& id, int fd) { in PrintHashForMissingStashedBlocks()
777 android::base::unique_fd fd(TEMP_FAILURE_RETRY(open(fn.c_str(), O_RDONLY))); in LoadStash() local
841 android::base::unique_fd fd( in WriteStash() local
[all …]
Dupdater.cpp35 bool Updater::Init(int fd, const std::string_view package_filename, bool is_retry) { in Init()
Dupdater_runtime.cpp151 android::base::unique_fd fd(open(std::string(filename).c_str(), O_WRONLY)); in WipeBlockDevice() local
/bootable/recovery/install/
Dpackage.cpp133 android::base::unique_fd fd(open(path.c_str(), O_RDONLY)); in CreateFilePackage() local
215 FilePackage::FilePackage(android::base::unique_fd&& fd, uint64_t file_size, const std::string& path, in FilePackage()
Dwipe_device.cpp91 android::base::unique_fd fd(TEMP_FAILURE_RETRY(open(partition.c_str(), O_WRONLY))); in SecureWipePartition() local
Dadb_install.cpp79 static bool WriteStatusToFd(MinadbdCommandStatus status, int fd) { in WriteStatusToFd()
/bootable/recovery/applypatch/
Dimgdiff.cpp185 static inline bool Write8(int fd, int64_t value) { in Write8()
191 static inline bool Write4(int fd, int32_t value) { in Write4()
341 int fd = mkstemp(ptemp); in MakePatch() local
499 size_t PatchChunk::WriteHeaderToFd(int fd, size_t offset, size_t index) const { in WriteHeaderToFd()
624 android::base::unique_fd fd(open(filename.c_str(), O_RDONLY)); in ReadFile() local
1204 android::base::unique_fd fd( in GeneratePatches() local
1493 android::base::unique_fd fd(open(optarg, O_RDONLY)); in imgdiff() local
Dapplypatch.cpp110 android::base::unique_fd fd( in SaveFileContents() local
142 android::base::unique_fd fd(open(partition.name.c_str(), O_RDWR)); in WriteBufferToPartition() local
/bootable/recovery/recovery_ui/
Dui.cpp223 int RecoveryUI::OnInputEvent(int fd, uint32_t epevents) { in OnInputEvent()
501 int fd = open("/sys/class/android_usb/android0/state", O_RDONLY); in IsUsbConnected() local
/bootable/recovery/bootloader_message/
Dbootloader_message.cpp95 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)); in write_misc_partition() local
/bootable/recovery/uncrypt/
Duncrypt.cpp223 static int RetryFibmap(int fd, const std::string& name, int* block, const int head_block) { in RetryFibmap()
291 android::base::unique_fd fd(open(path.c_str(), O_RDWR)); in ProductBlockMap() local
/bootable/recovery/update_verifier/
Dupdate_verifier.cpp148 android::base::unique_fd fd(TEMP_FAILURE_RETRY(open(dm_block_device.c_str(), O_RDONLY))); in ReadBlocks() local

12