Home
last modified time | relevance | path

Searched refs:unique_fd (Results 1 – 25 of 29) sorted by relevance

12

/bootable/recovery/minadbd/
Dminadbd_services.cpp146 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()
Dfuse_adb_provider_test.cpp31 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()
Dminadbd_services_test.cpp110 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/
Devents.cpp48 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()
Dgraphics_fbdev.h70 android::base::unique_fd fb_fd;
Dgraphics_fbdev.cpp59 android::base::unique_fd fd(open("/dev/graphics/fb0", O_RDWR | O_CLOEXEC)); in Init()
/bootable/recovery/fuse_sideload/include/
Dfuse_provider.h79 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/
Dpackage.cpp88 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()
Dadb_install.cpp189 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()
Dwipe_device.cpp91 android::base::unique_fd fd(TEMP_FAILURE_RETRY(open(partition.c_str(), O_WRONLY))); in SecureWipePartition()
Dinstall.cpp289 android::base::unique_fd fd( in SetUpNonAbUpdateCommands()
363 android::base::unique_fd pipe_read, pipe_write; in TryUpdateBinary()
/bootable/recovery/uncrypt/
Duncrypt.cpp251 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/
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()
/bootable/recovery/otautil/
Dsysutil.cpp146 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/
Dapplypatch.cpp78 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()
Dimgdiff.cpp355 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/
Drecovery_main.cpp196 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/
Dethernet_device.cpp43 android::base::unique_fd ctl_sock_;
/bootable/recovery/bootloader_message/
Dbootloader_message.cpp95 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/
Dupdate_verifier.cpp148 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/
Dminui.h158 int ev_add_fd(android::base::unique_fd&& fd, ev_callback cb);
/bootable/recovery/updater/
Dblockimg.cpp95 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()
Dupdater_runtime.cpp151 android::base::unique_fd fd(open(std::string(filename).c_str(), O_WRONLY)); in WipeBlockDevice()
/bootable/recovery/recovery_utils/
Droots.cpp181 android::base::unique_fd fd(open(v->blk_device.c_str(), O_RDONLY)); in format_volume()
Dlogging.cpp285 android::base::unique_fd log_fd(TEMP_FAILURE_RETRY(open(path.c_str(), O_RDONLY))); in ReadLogFilesToMemory()

12