Home
last modified time | relevance | path

Searched refs:exists (Results 1 – 25 of 68) sorted by relevance

123

/system/apex/apexd/
Dapexd_private.cpp40 bool exists; in BindMount() local
46 exists = false; in BindMount()
51 exists = true; in BindMount()
55 exists = true; in BindMount()
61 if (exists && !is_dir) { in BindMount()
67 exists = false; in BindMount()
70 if (!exists) { in BindMount()
77 if (exists) { in BindMount()
Dapexd_verity.cpp158 auto exists = PathExists(hashtree_file); in PrepareHashTree() local
159 if (!exists.ok()) { in PrepareHashTree()
160 return exists.error(); in PrepareHashTree()
162 if (*exists) { in PrepareHashTree()
/system/timezone/distro/core/src/test/com/android/timezone/distro/
DFileUtilsTest.java131 File exists = new File(dir, "exists"); in testEnsureDirectoryExists() local
132 assertTrue(exists.mkdir()); in testEnsureDirectoryExists()
133 assertTrue(exists.setReadable(true /* readable */, true /* ownerOnly */)); in testEnsureDirectoryExists()
134 assertTrue(exists.setExecutable(true /* readable */, true /* ownerOnly */)); in testEnsureDirectoryExists()
135 FileUtils.ensureDirectoriesExist(exists, true /* makeWorldReadable */); in testEnsureDirectoryExists()
136 assertDirExistsAndIsAccessible(exists, false /* requireWorldReadable */); in testEnsureDirectoryExists()
139 assertFalse(subDir.exists()); in testEnsureDirectoryExists()
169 assertFalse(toCreate.exists()); in testEnsureDirectoriesExist_noPermissions()
178 assertTrue(exists1.exists()); in testEnsureFileDoesNotExist()
180 assertFalse(exists1.exists()); in testEnsureFileDoesNotExist()
[all …]
DTimeZoneDistroTest.java177 assertTrue(f + " file expected to exist", f.exists() && f.isFile()); in assertFilesExist()
183 assertTrue(dir + " directory expected to exist", dir.exists() && dir.isDirectory()); in assertDirsExist()
/system/timezone/distro/installer/src/main/com/android/timezone/distro/installer/
DTimeZoneDistroInstaller.java160 if (oldStagedDataDir.exists()) { in stageInstallWithErrorCode()
163 if (workingDir.exists()) { in stageInstallWithErrorCode()
228 if (!tzLookupFile.exists()) { in stageInstallWithErrorCode()
244 if (!telephonyLookupFile.exists()) { in stageInstallWithErrorCode()
265 if (!stagedTzDataDir.exists()) { in stageInstallWithErrorCode()
300 if (oldStagedDataDir.exists()) { in stageUninstall()
304 if (workingDir.exists()) { in stageUninstall()
310 if (!stagedTzDataDir.exists()) { in stageUninstall()
321 if (!currentTzDataDir.exists()) { in stageUninstall()
350 if (!currentTzDataDir.exists()) { in getInstalledDistroVersion()
[all …]
/system/timezone/distro/installer/src/test/com/android/timezone/distro/installer/
DTimeZoneDistroInstallerTest.java102 if (tempDir.exists()) { in tearDown()
535 assertFalse(workingDir.exists()); in testStageUninstall_oldDirsAlreadyExists()
536 assertFalse(oldStagedDataDir.exists()); in testStageUninstall_oldDirsAlreadyExists()
662 assertTrue(testInstallDir.exists()); in assertInstallDistroStaged()
665 assertTrue(stagedTzDataDir.exists()); in assertInstallDistroStaged()
669 assertTrue(distroVersionFile.exists()); in assertInstallDistroStaged()
672 assertTrue(tzdataFile.exists()); in assertInstallDistroStaged()
675 assertTrue(icuFile.exists()); in assertInstallDistroStaged()
678 assertTrue(tzLookupFile.exists()); in assertInstallDistroStaged()
682 assertTrue(telephonyLookupFile.exists()); in assertInstallDistroStaged()
[all …]
/system/sepolicy/build/
Dfile_utils.py25 if os.path.exists(file_path):
29 if parent_dir and not os.path.exists(parent_dir):
/system/bt/gd/storage/
Dstorage_module_test.cc112 ASSERT_FALSE(std::filesystem::exists(temp_config_)); in SetUp()
113 ASSERT_FALSE(std::filesystem::exists(temp_backup_config_)); in SetUp()
121 if (std::filesystem::exists(temp_config_)) { in DeleteConfigFiles()
124 if (std::filesystem::exists(temp_backup_config_)) { in DeleteConfigFiles()
144 ASSERT_TRUE(std::filesystem::exists(temp_config_)); in TEST_F()
228 ASSERT_TRUE(std::filesystem::exists(temp_config_)); in TEST_F()
283 ASSERT_TRUE(std::filesystem::exists(temp_config_)); in TEST_F()
/system/extras/systrace_analysis/
Danalyze_trace.py34 if not os.path.exists(chromium_trace_path):
38 if not os.path.exists(vinn_path):
/system/incremental_delivery/incfs/tests/
Dincfs_test.cpp35 static bool exists(std::string_view path) { in exists() function
52 ASSERT_TRUE(exists(image_dir_path_)); in SetUp()
53 ASSERT_TRUE(exists(mount_dir_path_)); in SetUp()
83 EXPECT_FALSE(exists(image_dir_path_)); in TearDown()
84 EXPECT_FALSE(exists(mount_dir_path_)); in TearDown()
260 ASSERT_FALSE(exists(dir_path)); in TEST_F()
262 ASSERT_TRUE(exists(dir_path)); in TEST_F()
267 ASSERT_FALSE(exists(dir_path)); in TEST_F()
269 ASSERT_TRUE(exists(dir_path)); in TEST_F()
273 ASSERT_TRUE(exists(nested)); in TEST_F()
[all …]
/system/sepolicy/tests/
Dsepolicy_tests.py83 if not os.path.exists(options.libpath):
89 if not os.path.exists(options.policy):
96 if not os.path.exists(f):
Dtreble_sepolicy_tests.py354 if not os.path.exists(options.libpath):
359 if not os.path.exists(options.policy):
365 if not os.path.exists(f):
/system/bt/tools/scripts/
Ddump_metrics_ascii.py31 if 'PROTOC' in os.environ and os.path.exists(os.environ['PROTOC']):
43 if not os.path.exists(proto_path):
47 if not os.path.exists(output_dir):
/system/timezone/distro/core/src/main/com/android/timezone/distro/
DFileUtils.java72 if (!dirToCheck.exists()) { in ensureDirectoriesExist()
109 if (file.exists()) { in ensureFileDoesNotExist()
154 if (!file.exists()) { in filesExist()
/system/timezone/debug_tools/host/
Ddump-tzdata.py76 if not os.path.exists(output_dir):
89 if not os.path.exists(csvs_dir):
Dvisualize_zone_trees.py79 if not os.path.exists(output_dir):
/system/timezone/
Dupdate-tzdata.py62 if not os.path.exists(zic_input_file):
134 if not os.path.exists(dir):
160 if not os.path.exists(zic_binary_file):
/system/timezone/distro/tools/src/main/com/android/timezone/distro/tools/
DCreateTimeZoneDistro.java80 if (!f.exists()) { in main()
132 if (!file.exists()) { in getMandatoryPropertyFile()
/system/bt/build/toolchain/clang/
Dget_clang_suffix.py10 if os.path.exists(clang_path):
/system/extras/simpleperf/scripts/
Dupdate.py135 if os.path.exists(install_dir):
141 if os.path.exists(install_dir):
/system/security/fsverity_init/
Dfsverity_init.cpp41 if (!std::filesystem::exists(dir)) { in LoadKeyFromDirectory()
/system/update_engine/update_manager/
Dupdate_manager.conf.example9 # and use it if it exists. If it doesn't exist, we fall back to
/system/timezone/debug_tools/host/main/java/
DZoneSplitter.java53 if (!(tzData.exists() && tzData.isFile() && tzData.canRead())) { in execute()
56 if (!(outputDir.exists() && outputDir.isDirectory())) { in execute()
/system/apex/apexer/
Dapexer.py179 if os.path.exists(binary_path):
255 if not os.path.exists(args.build_info):
262 if not os.path.exists(args.manifest):
271 if not os.path.exists(args.android_manifest):
285 if not os.path.exists(args.input_dir):
293 if not args.force and os.path.exists(args.output):
/system/ca-certificates/google/
Dextract_from_pem.py36 while os.path.exists(file_path):

123