Home
last modified time | relevance | path

Searched refs:exists (Results 1 – 25 of 67) 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.cpp156 auto exists = PathExists(hashtree_file); in PrepareHashTree() local
157 if (!exists.ok()) { in PrepareHashTree()
158 return exists.error(); in PrepareHashTree()
160 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.java178 assertTrue(f + " file expected to exist", f.exists() && f.isFile()); in assertFilesExist()
184 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/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/bt/tools/scripts/
Ddump_metrics_ascii.py31 if 'PROTOC' in os.environ and os.path.exists(os.environ['PROTOC']):
45 if not os.path.exists(proto_path):
49 if not os.path.exists(output_dir):
/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.py352 if not os.path.exists(options.libpath):
357 if not os.path.exists(options.policy):
363 if not os.path.exists(f):
/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()
DTimeZoneDistro.java151 if (!entryFile.getParentFile().exists()) { in extractZipSafely()
/system/timezone/debug_tools/host/
Ddump-tzdata.py73 if not os.path.exists(output_dir):
86 if not os.path.exists(csvs_dir):
/system/timezone/
Dupdate-tzdata.py62 if not os.path.exists(zic_input_file):
119 if not os.path.exists(dir):
145 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):
Dapexer_test.py187 if os.path.exists(file_path):
210 if os.path.exists(os.path.join(dir_name, i)):
224 if os.path.exists(os.path.join(dir_name, i)):
/system/ca-certificates/google/
Dextract_from_pem.py36 while os.path.exists(file_path):

123