/bootable/recovery/minadbd/ |
D | minadbd_services.cpp | 146 static void SideloadHostService(unique_fd sfd, const std::string& args) { in SideloadHostService() 152 static void RescueInstallHostService(unique_fd sfd, const std::string& args) { in RescueInstallHostService() 163 static void RescueGetpropHostService(unique_fd sfd, const std::string& prop) { in RescueGetpropHostService() 219 static void RebootHostService(unique_fd /* sfd */, const std::string& target) { in RebootHostService() argument 241 static void WipeDeviceService(unique_fd fd, const std::string& args) { in WipeDeviceService() 273 unique_fd daemon_service_to_fd(std::string_view name, atransport* /* transport */) { in daemon_service_to_fd() 283 return unique_fd{}; in daemon_service_to_fd() 305 return unique_fd{}; in daemon_service_to_fd() 319 return unique_fd{}; in daemon_service_to_fd()
|
D | fuse_adb_provider_test.cpp | 31 android::base::unique_fd device_socket; in TEST() 32 android::base::unique_fd host_socket; in TEST() 71 android::base::unique_fd device_socket; in TEST() 72 android::base::unique_fd host_socket; in TEST()
|
D | minadbd_services_test.cpp | 110 unique_fd fd = daemon_service_to_fd(command, nullptr); in ExecuteCommandAndWaitForExit() 115 android::base::unique_fd minadbd_socket_; 116 android::base::unique_fd recovery_socket_; 147 unique_fd fd = daemon_service_to_fd(command, nullptr); in TEST_F() 170 android::base::unique_fd fd(TEMP_FAILURE_RETRY(open(package_path_.c_str(), O_RDONLY))); in TEST_F() 189 unique_fd fd = daemon_service_to_fd("sideload-host:4096:4096", nullptr); in TEST_F()
|
/bootable/recovery/minui/ |
D | events.cpp | 48 android::base::unique_fd fd; 54 static android::base::unique_fd g_epoll_fd; 126 android::base::unique_fd dfd(openat(dirfd(dir.get()), pevent->name, O_RDONLY)); in inotify_cb() 145 android::base::unique_fd epoll_fd(epoll_create1(EPOLL_CLOEXEC)); in ev_init() 150 android::base::unique_fd inotify_fd(inotify_init1(IN_CLOEXEC)); in ev_init() 168 android::base::unique_fd fd(openat(dirfd(dir.get()), de->d_name, O_RDONLY | O_CLOEXEC)); in ev_init() 207 int ev_add_fd(android::base::unique_fd&& fd, ev_callback cb) { in ev_add_fd()
|
D | graphics_fbdev.h | 70 android::base::unique_fd fb_fd;
|
D | graphics_fbdev.cpp | 59 android::base::unique_fd fd(open("/dev/graphics/fb0", O_RDWR | O_CLOEXEC)); in Init()
|
/bootable/recovery/fuse_sideload/include/ |
D | fuse_provider.h | 79 android::base::unique_fd fd_; 103 FuseBlockDataProvider(uint64_t file_size, uint32_t fuse_block_size, android::base::unique_fd&& fd, 106 android::base::unique_fd fd_;
|
/bootable/recovery/install/ |
D | package.cpp | 88 FilePackage(android::base::unique_fd&& fd, uint64_t file_size, const std::string& path, 113 android::base::unique_fd fd_; // The underlying fd to the open package. 133 android::base::unique_fd fd(open(path.c_str(), O_RDONLY)); in CreateFilePackage() 215 FilePackage::FilePackage(android::base::unique_fd&& fd, uint64_t file_size, const std::string& path, in FilePackage()
|
D | adb_install.cpp | 189 RecoveryUI* ui, pid_t minadbd_pid, android::base::unique_fd&& socket_fd, in ListenAndExecuteMinadbdCommands() 191 android::base::unique_fd epoll_fd(epoll_create1(O_CLOEXEC)); in ListenAndExecuteMinadbdCommands() 283 android::base::unique_fd recovery_socket; in CreateMinadbdServiceAndExecuteCommands() 284 android::base::unique_fd minadbd_socket; in CreateMinadbdServiceAndExecuteCommands()
|
D | wipe_device.cpp | 91 android::base::unique_fd fd(TEMP_FAILURE_RETRY(open(partition.c_str(), O_WRONLY))); in SecureWipePartition()
|
D | install.cpp | 289 android::base::unique_fd fd( in SetUpNonAbUpdateCommands() 363 android::base::unique_fd pipe_read, pipe_write; in TryUpdateBinary()
|
/bootable/recovery/uncrypt/ |
D | uncrypt.cpp | 251 android::base::unique_fd mapfd(open(tmp_map_file.c_str(), O_WRONLY | O_CREAT, S_IRUSR | S_IWUSR)); in ProductBlockMap() 291 android::base::unique_fd fd(open(path.c_str(), O_RDWR)); in ProductBlockMap() 297 android::base::unique_fd wfd; in ProductBlockMap() 453 android::base::unique_fd dfd(open(dir_name.c_str(), O_RDONLY | O_DIRECTORY)); in ProductBlockMap() 660 android::base::unique_fd service_socket(android_get_control_socket(UNCRYPT_SOCKET.c_str())); in main() 674 android::base::unique_fd socket_fd(accept4(service_socket, nullptr, nullptr, SOCK_CLOEXEC)); in main()
|
/bootable/recovery/fuse_sideload/ |
D | fuse_provider.cpp | 82 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()
|
/bootable/recovery/otautil/ |
D | sysutil.cpp | 146 android::base::unique_fd fd(TEMP_FAILURE_RETRY(open(block_map_data.path().c_str(), O_RDONLY))); in MapBlockFile() 199 android::base::unique_fd fd(TEMP_FAILURE_RETRY(open(fn.c_str(), O_RDONLY))); in MapFile()
|
/bootable/recovery/applypatch/ |
D | applypatch.cpp | 78 android::base::unique_fd dev(open(partition.name.c_str(), O_RDONLY)); in ReadPartitionToBuffer() 110 android::base::unique_fd fd( in SaveFileContents() 142 android::base::unique_fd fd(open(partition.name.c_str(), O_RDWR)); in WriteBufferToPartition()
|
D | imgdiff.cpp | 355 android::base::unique_fd patch_fd(open(ptemp, O_RDONLY)); in MakePatch() 624 android::base::unique_fd fd(open(filename.c_str(), O_RDONLY)); in ReadFile() 1150 android::base::unique_fd patch_fd( in GeneratePatches() 1168 android::base::unique_fd patch_fd( in GeneratePatches() 1204 android::base::unique_fd fd( in GeneratePatches() 1464 android::base::unique_fd patch_fd( in GeneratePatches() 1493 android::base::unique_fd fd(open(optarg, O_RDONLY)); in imgdiff()
|
/bootable/recovery/ |
D | recovery_main.cpp | 196 android::base::unique_fd sock_fd(android_get_control_socket("recovery")); in ListenRecoverySocket() 204 android::base::unique_fd connection_fd; in ListenRecoverySocket() 234 android::base::unique_fd pipe_read, pipe_write; in redirect_stdio()
|
/bootable/recovery/recovery_ui/ |
D | ethernet_device.cpp | 43 android::base::unique_fd ctl_sock_;
|
/bootable/recovery/bootloader_message/ |
D | bootloader_message.cpp | 95 android::base::unique_fd fd(open(misc_blk_device.c_str(), O_RDONLY)); in read_misc_partition() 116 android::base::unique_fd fd(open(misc_blk_device.c_str(), O_WRONLY)); in write_misc_partition()
|
/bootable/recovery/update_verifier/ |
D | update_verifier.cpp | 148 android::base::unique_fd fd(TEMP_FAILURE_RETRY(open(dm_block_device.c_str(), O_RDONLY))); in ReadBlocks() 221 android::base::unique_fd care_map_fd(TEMP_FAILURE_RETRY(open(care_map_name.c_str(), O_RDONLY))); in ParseCareMap()
|
/bootable/recovery/minui/include/minui/ |
D | minui.h | 158 int ev_add_fd(android::base::unique_fd&& fd, ev_callback cb);
|
/bootable/recovery/updater/ |
D | blockimg.cpp | 95 android::base::unique_fd fd(TEMP_FAILURE_RETRY(open(last_command_file.c_str(), O_RDONLY))); in ParseLastCommandFile() 128 android::base::unique_fd dfd(TEMP_FAILURE_RETRY(open(dirname.c_str(), O_RDONLY | O_DIRECTORY))); in FsyncDir() 147 android::base::unique_fd wfd( in UpdateLastCommandIndex() 537 android::base::unique_fd fd; 777 android::base::unique_fd fd(TEMP_FAILURE_RETRY(open(fn.c_str(), O_RDONLY))); in LoadStash() 841 android::base::unique_fd fd( in WriteStash() 2098 android::base::unique_fd fd(open(block_device_path.c_str(), O_RDWR)); in RangeSha1Fn() 2169 android::base::unique_fd fd(open(block_device_path.c_str(), O_RDONLY)); in CheckFirstBlockFn()
|
D | updater_runtime.cpp | 151 android::base::unique_fd fd(open(std::string(filename).c_str(), O_WRONLY)); in WipeBlockDevice()
|
/bootable/recovery/recovery_utils/ |
D | roots.cpp | 181 android::base::unique_fd fd(open(v->blk_device.c_str(), O_RDONLY)); in format_volume()
|
D | logging.cpp | 285 android::base::unique_fd log_fd(TEMP_FAILURE_RETRY(open(path.c_str(), O_RDONLY))); in ReadLogFilesToMemory()
|