Home
last modified time | relevance | path

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

12

/bootable/recovery/minadbd/
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.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()
159 static void RescueGetpropHostService(unique_fd sfd, const std::string& prop) { in RescueGetpropHostService()
189 static void RebootHostService(unique_fd /* sfd */, const std::string& target) { in RebootHostService() argument
211 static void WipeDeviceService(unique_fd fd, const std::string& args) { in WipeDeviceService()
239 unique_fd daemon_service_to_fd(std::string_view name, atransport* /* transport */) { in daemon_service_to_fd()
249 return unique_fd{}; in daemon_service_to_fd()
271 return unique_fd{}; in daemon_service_to_fd()
285 return unique_fd{}; in daemon_service_to_fd()
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.cpp45 android::base::unique_fd fd;
49 static android::base::unique_fd g_epoll_fd;
66 android::base::unique_fd epoll_fd(epoll_create1(EPOLL_CLOEXEC)); in ev_init()
80 android::base::unique_fd fd(openat(dirfd(dir.get()), de->d_name, O_RDONLY | O_CLOEXEC)); in ev_init()
126 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()
Dgraphics_drm.cpp288 android::base::unique_fd fd(open(dev_name.c_str(), O_RDWR | O_CLOEXEC)); in Init()
/bootable/recovery/
Dfsck_unshare_blocks.cpp45 android::base::unique_fd source_fd(open(source, O_RDONLY)); in copy_file()
51 android::base::unique_fd dest_fd(open(dest, O_CREAT | O_WRONLY, S_IRWXU)); in copy_file()
Drecovery_main.cpp190 android::base::unique_fd sock_fd(android_get_control_socket("recovery")); in ListenRecoverySocket()
198 android::base::unique_fd connection_fd; in ListenRecoverySocket()
228 android::base::unique_fd pipe_read, pipe_write; in redirect_stdio()
/bootable/recovery/install/
Dpackage.cpp80 FilePackage(android::base::unique_fd&& fd, uint64_t file_size, const std::string& path,
97 android::base::unique_fd fd_; // The underlying fd to the open package.
117 android::base::unique_fd fd(open(path.c_str(), O_RDONLY)); in CreateFilePackage()
199 FilePackage::FilePackage(android::base::unique_fd&& fd, uint64_t file_size, const std::string& path, in FilePackage()
Dadb_install.cpp185 RecoveryUI* ui, pid_t minadbd_pid, android::base::unique_fd&& socket_fd, in ListenAndExecuteMinadbdCommands()
187 android::base::unique_fd epoll_fd(epoll_create1(O_CLOEXEC)); in ListenAndExecuteMinadbdCommands()
279 android::base::unique_fd recovery_socket; in CreateMinadbdServiceAndExecuteCommands()
280 android::base::unique_fd minadbd_socket; in CreateMinadbdServiceAndExecuteCommands()
Dinstall.cpp287 android::base::unique_fd fd( in SetUpNonAbUpdateCommands()
348 android::base::unique_fd pipe_read, pipe_write; in try_update_binary()
/bootable/recovery/fuse_sideload/include/
Dfuse_provider.h71 android::base::unique_fd fd_;
/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/otautil/
Dsysutil.cpp141 android::base::unique_fd fd(TEMP_FAILURE_RETRY(open(block_map_data.path().c_str(), O_RDONLY))); in MapBlockFile()
194 android::base::unique_fd fd(TEMP_FAILURE_RETRY(open(fn.c_str(), O_RDONLY))); in MapFile()
Droots.cpp172 android::base::unique_fd fd(open(v->blk_device.c_str(), O_RDONLY)); in format_volume()
Dlogging.cpp286 android::base::unique_fd log_fd(TEMP_FAILURE_RETRY(open(path.c_str(), O_RDONLY))); in ReadLogFilesToMemory()
/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/bootloader_message/
Dbootloader_message.cpp90 android::base::unique_fd fd(open(misc_blk_device.c_str(), O_RDONLY)); in read_misc_partition()
111 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.h157 int ev_add_fd(android::base::unique_fd&& fd, ev_callback cb);
/bootable/recovery/boot_control/
Dboot_control.cpp95 android::base::unique_fd fd(open(misc_device, O_RDONLY)); in LoadBootloaderControl()
113 android::base::unique_fd fd(open(misc_device, O_WRONLY | O_SYNC)); in UpdateAndSaveBootloaderControl()
/bootable/recovery/updater/
Dblockimg.cpp90 android::base::unique_fd fd(TEMP_FAILURE_RETRY(open(last_command_file.c_str(), O_RDONLY))); in ParseLastCommandFile()
123 android::base::unique_fd dfd(TEMP_FAILURE_RETRY(open(dirname.c_str(), O_RDONLY | O_DIRECTORY))); in FsyncDir()
142 android::base::unique_fd wfd( in UpdateLastCommandIndex()
532 android::base::unique_fd fd;
772 android::base::unique_fd fd(TEMP_FAILURE_RETRY(open(fn.c_str(), O_RDONLY))); in LoadStash()
836 android::base::unique_fd fd( in WriteStash()
2082 android::base::unique_fd fd(open(blockdev_filename->data.c_str(), O_RDWR)); in RangeSha1Fn()
2146 android::base::unique_fd fd(open(arg_filename->data.c_str(), O_RDONLY)); in CheckFirstBlockFn()
/bootable/recovery/tests/unit/
Dapplypatch_test.cpp242 android::base::unique_fd fd(open(file1_path.c_str(), O_RDONLY)); in TEST_F()

12