Home
last modified time | relevance | path

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

123

/system/apex/apexd/
Dapexd_private.cpp37 bool exists; in BindMount() local
43 exists = false; in BindMount()
48 exists = true; in BindMount()
52 exists = true; in BindMount()
58 if (exists && !is_dir) { in BindMount()
64 exists = false; in BindMount()
67 if (!exists) { in BindMount()
75 if (exists) { in BindMount()
/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.java158 if (oldStagedDataDir.exists()) { in stageInstallWithErrorCode()
161 if (workingDir.exists()) { in stageInstallWithErrorCode()
226 if (!tzLookupFile.exists()) { in stageInstallWithErrorCode()
246 if (!stagedTzDataDir.exists()) { in stageInstallWithErrorCode()
281 if (oldStagedDataDir.exists()) { in stageUninstall()
285 if (workingDir.exists()) { in stageUninstall()
291 if (!stagedTzDataDir.exists()) { in stageUninstall()
302 if (!currentTzDataDir.exists()) { in stageUninstall()
331 if (!currentTzDataDir.exists()) { in getInstalledDistroVersion()
345 if (!stagedTzDataDir.exists()) { in getStagedDistroOperation()
[all …]
/system/timezone/distro/installer/src/test/com/android/timezone/distro/installer/
DTimeZoneDistroInstallerTest.java102 if (tempDir.exists()) { in tearDown()
497 assertFalse(workingDir.exists()); in testStageUninstall_oldDirsAlreadyExists()
498 assertFalse(oldStagedDataDir.exists()); in testStageUninstall_oldDirsAlreadyExists()
619 assertTrue(testInstallDir.exists()); in assertInstallDistroStaged()
622 assertTrue(stagedTzDataDir.exists()); in assertInstallDistroStaged()
626 assertTrue(distroVersionFile.exists()); in assertInstallDistroStaged()
629 assertTrue(tzdataFile.exists()); in assertInstallDistroStaged()
632 assertTrue(icuFile.exists()); in assertInstallDistroStaged()
635 assertTrue(tzLookupFile.exists()); in assertInstallDistroStaged()
663 assertFalse(workingDir.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/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.java148 if (!entryFile.getParentFile().exists()) { in extractZipSafely()
/system/bt/tools/scripts/
Ddump_metrics_ascii.py30 if 'PROTOC' in os.environ and os.path.exists(os.environ['PROTOC']):
44 if not os.path.exists(proto_path):
48 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):
DFcSort.py113 if not os.path.exists(f):
/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):
Ddownload-iana-data.py112 if os.path.exists(local_signature_file):
/system/timezone/distro/tools/src/main/com/android/timezone/distro/tools/
DCreateTimeZoneDistro.java78 if (!f.exists()) { in main()
128 if (!file.exists()) { in getMandatoryPropertyFile()
/system/apex/apexer/
Dapexer.py88 if os.path.exists(binary_path):
149 if not os.path.exists(args.manifest):
158 if not os.path.exists(args.android_manifest):
166 if not os.path.exists(args.input_dir):
174 if not args.force and os.path.exists(args.output):
/system/bt/build/toolchain/clang/
Dget_clang_suffix.py9 if os.path.exists(clang_path):
/system/tools/hidl/docs/src/writer/files/
Dresources.kt45 if (!dir.exists()) dir.mkdirs() in copyToFile()
DAbstractFileWriter.kt49 if (!dir.exists()) dir.mkdirs() in writeToFile()
/system/extras/simpleperf/scripts/
Dupdate.py120 if os.path.exists(install_dir):
126 if os.path.exists(install_dir):
/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/ca-certificates/google/
Dextract_from_pem.py36 while os.path.exists(file_path):
/system/libvintf/test/
Dvintf_object_tests.cpp1484 void expectSystemManifest(bool exists) { in expectSystemManifest() argument
1485 if (exists) { in expectSystemManifest()
1493 void expectSystemManifestFragment(bool exists) { in expectSystemManifestFragment() argument
1494 if (exists) { in expectSystemManifestFragment()
1511 void expectProductManifest(bool exists) { in expectProductManifest() argument
1512 if (exists) { in expectProductManifest()
1519 void expectProductManifestFragment(bool exists) { in expectProductManifestFragment() argument
1520 if (exists) { in expectProductManifestFragment()
/system/core/mkbootimg/
Dunpack_bootimg.py29 if not os.path.exists(dir_path):

123