Home
last modified time | relevance | path

Searched refs:WaitForFile (Results 1 – 25 of 26) sorted by relevance

12

/aosp12/system/core/fs_mgr/tests/
H A Dfile_wait_test.cpp26 using android::fs_mgr::WaitForFile;
46 ASSERT_TRUE(WaitForFile(test_file_, 500ms)); in TEST_F()
51 ASSERT_FALSE(WaitForFile(test_file_, 500ms)); in TEST_F()
60 EXPECT_TRUE(WaitForFile(test_file_, 3s)); in TEST_F()
69 EXPECT_FALSE(WaitForFile(test_file_ + ".wontexist", 2s)); in TEST_F()
89 ASSERT_FALSE(WaitForFile("/this/path/does/not/exist", 5ms)); in TEST_F()
/aosp12/system/core/fs_mgr/libfs_avb/tests/
H A Dutil_test.cpp36 using android::fs_mgr::WaitForFile;
153 TEST(BasicUtilTest, WaitForFile) { in TEST() argument
163 EXPECT_TRUE(WaitForFile(wait_path.value(), 1s)); in TEST()
171 EXPECT_FALSE(WaitForFile(wait_path.value(), 200ms)); in TEST()
182 auto wait_file = std::async(WaitForFile, wait_path.value(), 500ms, FileWaitMode::Exists); in TEST()
203 auto wait_file = std::async(WaitForFile, wait_path.value(), 50ms, FileWaitMode::Exists); in TEST()
/aosp12/system/core/fs_mgr/include/fs_mgr/
H A Dfile_wait.h26 bool WaitForFile(const std::string& path, const std::chrono::milliseconds relative_timeout);
/aosp12/system/core/fs_mgr/libfs_avb/
H A Davb_ops.cpp177 if (!WaitForFile(path, 1s)) { in ReadFromPartition()
185 if (path.empty() || !WaitForFile(path, 1s)) return AVB_IO_RESULT_ERROR_NO_SUCH_PARTITION; in ReadFromPartition()
H A Dutil.h62 bool WaitForFile(const std::string& filename, const std::chrono::milliseconds relative_timeout,
H A Dutil.cpp89 bool WaitForFile(const std::string& filename, const std::chrono::milliseconds relative_timeout, in WaitForFile() function
H A Dfs_avb.cpp517 if (!path.empty() && !WaitForFile(path, 1000ms, FileWaitMode::DoesNotExist)) { in TearDownAvbHashtree()
H A Davb_util.cpp557 if (!WaitForFile(image_path, 1s)) { in LoadAndVerifyVbmetaByPath()
/aosp12/system/core/fs_mgr/libdm/
H A Dutility.h25 bool WaitForFile(const std::string& path, const std::chrono::milliseconds& timeout_ms);
H A Dutility.cpp45 bool WaitForFile(const std::string& path, const std::chrono::milliseconds& timeout_ms) { in WaitForFile() function
H A Dloop_control.cpp53 if (!WaitForFile(*loopdev, timeout_ms - time_elapsed)) { in Attach()
H A Ddm.cpp202 if (!WaitForFile(unique_path, timeout_ms)) { in WaitForDevice()
/aosp12/system/vold/
H A DLoop.cpp81 if (!android::fs_mgr::WaitForFile(out_device, 2s)) { in create()
H A DUtils.h181 status_t WaitForFile(const char* filename, std::chrono::nanoseconds timeout);
H A DUtils.cpp1344 status_t WaitForFile(const char* filename, std::chrono::nanoseconds timeout) { in WaitForFile() function
H A Dcryptfs.cpp1209 if (android::vold::WaitForFile(crypto_blk_name->c_str(), 1s) < 0) { in create_crypto_blk_dev()
/aosp12/system/core/fs_mgr/libfiemap/
H A Dimage_test.cpp46 using android::fs_mgr::WaitForFile;
/aosp12/system/core/fs_mgr/
H A Dfile_wait.cpp215 bool WaitForFile(const std::string& path, const std::chrono::milliseconds relative_timeout) { in WaitForFile() function
H A Dfs_mgr.cpp1443 if (current_entry.fs_mgr_flags.wait && !WaitForFile(current_entry.blk_device, 20s)) { in fs_mgr_mount_all()
1876 if (entry.fs_mgr_flags.wait && !WaitForFile(entry.blk_device, 20s)) { in fs_mgr_do_mount_one()
1939 if (fstab_entry.fs_mgr_flags.wait && !WaitForFile(n_blk_device, 20s)) { in fs_mgr_do_mount_helper()
2126 if (entry.fs_mgr_flags.wait && !WaitForFile(entry.blk_device, 20s)) { in fs_mgr_swapon_all()
H A Dfs_mgr_verity.cpp533 if (wait_for_verity_dev && !WaitForFile(entry->blk_device, 1s)) { in fs_mgr_setup_verity()
H A Dfs_mgr_overlayfs.cpp1280 if (!WaitForFile(scratch_device, 10s)) { in TryMountScratch()
/aosp12/system/apex/apexd/
H A Dapexd_loop.cpp110 Result<void> loop_ready = WaitForFile("/dev/loop-control", 20s); in PreAllocateLoopDevices()
H A Dapexd_utils.h207 inline android::base::Result<void> WaitForFile( in WaitForFile() function
/aosp12/system/core/fs_mgr/libsnapshot/
H A Dcow_snapuserd_test.cpp674 ASSERT_TRUE(android::fs_mgr::WaitForFile(misc_device, 10s)); in CreateDmUserDevice()
H A Dsnapshot_test.cpp412 return android::fs_mgr::WaitForFile(device, snapshot_timeout_); in NewManagerForFirstStageMount()

12