Home
last modified time | relevance | path

Searched refs:file_exists (Results 1 – 25 of 445) sorted by relevance

12345678910>>...18

/aosp_15_r20/bootable/recovery/
H A Drecovery-persist.cpp82 static bool file_exists(const char* filename) { in file_exists() function
129 if (!file_exists(file1) || !file_exists(file2)) { in compare_file()
162 if (!file_exists(LAST_CONSOLE_FILE) && !file_exists(ALT_LAST_CONSOLE_FILE)) { in rotate_last_kmsg()
203 if (file_exists(LAST_INSTALL_FILE_IN_CACHE) && unlink(LAST_INSTALL_FILE_IN_CACHE) == -1) { in main()
215 if (!file_exists(LAST_PMSG_FILE)) { in main()
226 if (file_exists(LAST_INSTALL_FILE) && unlink(LAST_INSTALL_FILE) == -1) { in main()
234 if (file_exists(LAST_CONSOLE_FILE)) { in main()
236 } else if (file_exists(ALT_LAST_CONSOLE_FILE)) { in main()
/aosp_15_r20/frameworks/base/libs/androidfw/
H A DAssetsProvider.cpp32 bool* file_exists) const { in Open()
33 return OpenInternal(path, mode, file_exists); in Open()
158 bool* file_exists) const { in OpenInternal()
159 if (file_exists != nullptr) { in OpenInternal()
160 *file_exists = false; in OpenInternal()
168 if (file_exists != nullptr) { in OpenInternal()
169 *file_exists = true; in OpenInternal()
325 bool* file_exists) const { in OpenInternal()
327 if (file_exists != nullptr) { in OpenInternal()
329 *file_exists = (stat(resolved_path.c_str(), &sb) != -1) && S_ISREG(sb.st_mode); in OpenInternal()
[all …]
/aosp_15_r20/external/webrtc/tools_webrtc/presubmit_checks_lib/
H A Dcheck_orphan_headers_test.py32 file_exists = lambda p: p == _GetPath('home', 'projects', 'webrtc', 'base', function
37 check_orphan_headers.GetBuildGnPathFromFilePath(file_path, file_exists,
43 file_exists = lambda p: p == _GetPath('home', 'projects', 'webrtc', function
48 check_orphan_headers.GetBuildGnPathFromFilePath(file_path, file_exists,
54 file_exists = lambda p: False function
56 check_orphan_headers.GetBuildGnPathFromFilePath(file_path, file_exists,
62 file_exists = lambda p: False function
64 check_orphan_headers.GetBuildGnPathFromFilePath(file_path, file_exists,
/aosp_15_r20/external/wpa_supplicant_8/hs20/server/www/
H A Dest.php101 if (!file_exists($fname)) {
160 if (file_exists($req_pem))
163 if (!file_exists($req_pem)) {
170 if (file_exists($cert_pem))
173 if (!file_exists($cert_pem)) {
194 if (file_exists($cert_der))
197 if (!file_exists($cert_der)) {
206 if (file_exists($pkcs7))
209 if (!file_exists($pkcs7)) {
/aosp_15_r20/external/tensorflow/tensorflow/python/lib/io/
H A Dfile_io_test.py86 self.assertFalse(file_io.file_exists(file_path))
94 self.assertTrue(file_io.file_exists(file_path))
101 self.assertTrue(file_io.file_exists(file_path))
168 self.assertTrue(file_io.file_exists(file_path))
177 self.assertFalse(file_io.file_exists(file_path))
203 self.assertFalse(file_io.file_exists(file_io.join(dir_path, "file3.txt")))
224 self.assertTrue(file_io.file_exists(file_path))
226 self.assertFalse(file_io.file_exists(file_path))
234 self.assertTrue(file_io.file_exists(copy_path))
245 self.assertTrue(file_io.file_exists(copy_path))
[all …]
/aosp_15_r20/system/libhwbinder/
H A DUtils.cpp30 static bool file_exists(const std::string& file) { in file_exists() function
37 return file_exists("/system_ext/bin/hwservicemanager") || in isHwServiceManagerInstalled()
38 file_exists("/system/system_ext/bin/hwservicemanager") || in isHwServiceManagerInstalled()
39 file_exists("/system/bin/hwservicemanager"); in isHwServiceManagerInstalled()
/aosp_15_r20/frameworks/base/libs/androidfw/include/androidfw/
H A DAssetsProvider.h45 bool* file_exists = nullptr) const;
79 bool* file_exists) const = 0;
104 bool* file_exists) const override;
156 bool* file_exists) const override;
180 const std::string& path, Asset::AccessMode mode, bool* file_exists) const override;
207 bool* file_exists) const override;
/aosp_15_r20/external/cronet/base/files/
H A Dfile_path_watcher_win.cc147 bool file_exists = false; in OnObjectSignaled() local
150 file_exists = GetFileInfo(target_, &file_info); in OnObjectSignaled()
160 } else if (file_exists && (last_modified_.is_null() || in OnObjectSignaled()
165 } else if (file_exists && last_modified_ == file_info.last_modified && in OnObjectSignaled()
186 } else if (!file_exists && !last_modified_.is_null()) { in OnObjectSignaled()
/aosp_15_r20/external/python/pyfakefs/pyfakefs/tests/
Dimport_as_example.py45 def check_if_exists4(filepath, file_exists=my_os.path.exists): argument
46 return file_exists(filepath)
124 def check_if_exists(self, filepath, file_exists=my_os.path.exists): argument
126 return file_exists(filepath)
/aosp_15_r20/external/tensorflow/tensorflow/python/tools/
H A Dsaved_model_utils.py49 if not file_io.file_exists(path_to_pbtxt) and not file_io.file_exists(
55 if file_io.file_exists(path_to_pb):
63 elif file_io.file_exists(path_to_pbtxt):
/aosp_15_r20/external/tensorflow/tensorflow/python/saved_model/
H A Dloader_impl.py63 if file_io.file_exists(debug_info_path):
98 if file_io.file_exists(path_to_pb):
106 elif file_io.file_exists(path_to_pbtxt):
246 return file_io.file_exists(txt_path) or file_io.file_exists(pb_path)
/aosp_15_r20/external/perfetto/tools/
H A Dtest_data98 file_exists = os.path.exists(fpath)
104 if file_exists:
106 if sha_exists and not file_exists:
108 elif not sha_exists and file_exists:
110 elif not sha_exists and not file_exists:
/aosp_15_r20/external/sdv/vsomeip/third_party/boost/system/test/
Derror_code_test.cpp110 error_condition x1( errc::file_exists ); in main()
112 make_error_code(errc::file_exists); in main()
113 make_error_condition(errc::file_exists); in main()
252 BOOST_TEST( ec == errc::file_exists ); in main()
253 BOOST_TEST( ec.default_error_condition().value() == errc::file_exists ); in main()
/aosp_15_r20/external/pytorch/c10/test/util/
H A Dtempfile_test.cpp7 static bool file_exists(const char* path) { in file_exists() function
16 static bool file_exists(const char* path) { in file_exists() function
32 ASSERT_TRUE(file_exists(file.name.c_str())); in TEST()
/aosp_15_r20/system/extras/ioshark/
H A Dcompile_ioshark_subr.c118 int file_exists = 1; in init_filename_cache() local
126 file_exists = 0; in init_filename_cache()
133 if (file_exists) { in init_filename_cache()
158 if (file_exists) in init_filename_cache()
/aosp_15_r20/external/cronet/third_party/libc++/src/test/std/input.output/filesystems/fs.op.funcs/fs.op.copy_file/
H A Dcopy_file.pass.cpp68 assert(ErrorIs(ec, std::errc::file_exists)); in test_error_reporting()
69 ExceptionChecker Checker(file, file, std::errc::file_exists, "copy_file"); in test_error_reporting()
76 assert(ErrorIs(ec, std::errc::file_exists)); in test_error_reporting()
77 ExceptionChecker Checker(file, file, std::errc::file_exists, "copy_file"); in test_error_reporting()
/aosp_15_r20/external/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.copy_file/
H A Dcopy_file.pass.cpp66 TEST_CHECK(ErrorIs(ec, std::errc::file_exists)); in TEST_CASE()
67 ExceptionChecker Checker(file, file, std::errc::file_exists, "copy_file"); in TEST_CASE()
74 TEST_CHECK(ErrorIs(ec, std::errc::file_exists)); in TEST_CASE()
75 ExceptionChecker Checker(file, file, std::errc::file_exists, "copy_file"); in TEST_CASE()
/aosp_15_r20/prebuilts/cmake/linux-x86/share/cmake-3.22/Modules/AndroidTestUtilities/
DPushToAndroidDevice.cmake39 # if(file_exists) will return true.
40 macro(check_device_file_exists device_file file_exists)
41 set(${file_exists} "")
46 set(${file_exists} "YES")
50 set(${file_exists} "YES")
/aosp_15_r20/external/tensorflow/tensorflow/tools/gcs_test/python/
H A Dgcs_smoke.py171 assert file_io.file_exists(file_to_rename)
172 assert not file_io.file_exists(file_new_name)
180 assert not file_io.file_exists(file_to_rename)
181 assert file_io.file_exists(file_new_name)
/aosp_15_r20/external/bcc/src/cc/frontends/clang/
H A Dkbuild_helper.cc143 static inline int file_exists(const char *f) in file_exists() function
151 return file_exists(PROC_KHEADERS_PATH); in proc_kheaders_exists()
227 if (file_exists(dirpath_tmp)) in get_proc_kheaders()
/aosp_15_r20/external/cronet/net/test/url_request/
H A Durl_request_test_job_backed_by_file.cc161 meta_info->file_exists = base::GetFileInfo(file_path, &file_info); in FetchMetaInfo()
162 if (meta_info->file_exists) { in FetchMetaInfo()
178 if (!meta_info_.file_exists) { in DidFetchMetaInfo()
/aosp_15_r20/frameworks/base/core/jni/
H A Dandroid_content_res_ApkAssets.cpp146 bool* file_exists) const override { in OpenInternal()
170 if (file_exists) { in OpenInternal()
171 *file_exists = false; in OpenInternal()
197 if (file_exists) { in OpenInternal()
198 *file_exists = true; in OpenInternal()
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r522817/python3/lib/python3.11/site-packages/pip/_internal/commands/
Dconfiguration.py206 file_exists = os.path.exists(fname)
207 write_output("%s, exists: %r", fname, file_exists)
208 if file_exists:
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r530567b/python3/lib/python3.11/site-packages/pip/_internal/commands/
Dconfiguration.py206 file_exists = os.path.exists(fname)
207 write_output("%s, exists: %r", fname, file_exists)
208 if file_exists:
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r536225/python3/lib/python3.11/site-packages/pip/_internal/commands/
Dconfiguration.py206 file_exists = os.path.exists(fname)
207 write_output("%s, exists: %r", fname, file_exists)
208 if file_exists:

12345678910>>...18