Home
last modified time | relevance | path

Searched refs:FileExists (Results 1 – 25 of 167) sorted by relevance

1234567

/external/tensorflow/tensorflow/core/platform/
Denv_test.cc202 EXPECT_EQ(error::Code::NOT_FOUND, env_->FileExists(root_file1).code()); in TEST_F()
203 EXPECT_EQ(error::Code::NOT_FOUND, env_->FileExists(root_file2).code()); in TEST_F()
204 EXPECT_EQ(error::Code::NOT_FOUND, env_->FileExists(root_file3).code()); in TEST_F()
205 EXPECT_EQ(error::Code::NOT_FOUND, env_->FileExists(child1_file1).code()); in TEST_F()
224 TF_EXPECT_OK(env_->FileExists(create_path)); in TEST_F()
236 TF_EXPECT_OK(env_->FileExists(subdir_path)); in TEST_F()
242 TF_EXPECT_OK(env_->FileExists(create_path)); in TEST_F()
243 TF_EXPECT_OK(env_->FileExists(io::JoinPath(BaseDir(), "a", "b", "c"))); in TEST_F()
300 Status FileExists(const string& dir, TransactionToken* token) override { in FileExists() function in tensorflow::TmpDirFileSystem
313 return Env::Default()->FileExists(io::JoinPath(BaseDir(), path)); in FileExists()
[all …]
Dfile_system.cc76 TF_RETURN_IF_ERROR(FileExists(name)); in IsDirectory()
97 Status s = FileExists(file); in FilesExist()
119 Status exists_status = FileExists(dirname); in DeleteRecursively()
189 Status exists_status = FileExists(current_entry); in RecursivelyCreateDir()
/external/tensorflow/tensorflow/stream_executor/lib/
Denv.h30 inline Status FileExists(const std::string& filename) { in FileExists() function
31 return Env::Default()->FileExists(filename); in FileExists()
34 inline Status FileExists(const absl::string_view& filename) { in FileExists() function
35 return Env::Default()->FileExists(std::string(filename)); in FileExists()
/external/icing/icing/file/
Ddestructible-file_test.cc46 EXPECT_FALSE(filesystem.FileExists(filepath1.c_str())); in TEST()
73 EXPECT_FALSE(filesystem.FileExists(filepath1.c_str())); in TEST()
77 EXPECT_TRUE(filesystem.FileExists(filepath2.c_str())); in TEST()
101 EXPECT_TRUE(filesystem.FileExists(filepath1.c_str())); in TEST()
111 EXPECT_FALSE(filesystem.FileExists(filepath1.c_str())); in TEST()
/external/tensorflow/tensorflow/core/util/
Devents_writer_test.cc65 CHECK(env()->FileExists(filename).ok()); in VerifyFile()
143 TF_EXPECT_OK(env()->FileExists(filename)); in TEST()
153 TF_EXPECT_OK(env()->FileExists(filename)); in TEST()
163 TF_EXPECT_OK(env()->FileExists(filename0)); in TEST()
175 TF_EXPECT_OK(env()->FileExists(filename)); in TEST()
186 TF_EXPECT_OK(env()->FileExists(filename)); in TEST()
194 TF_EXPECT_OK(env()->FileExists(filename0)); in TEST()
/external/googletest/googletest/test/
Dgtest_premature_exit_test.cc49 static bool FileExists(const char* filepath) { in FileExists() function in __anon9f4fe7ff0111::PrematureExitTest
66 return FileExists(premature_exit_file_path_); in PrematureExitFileExists()
117 if (PrematureExitTest::FileExists(filepath)) { in main()
/external/rust/crates/quiche/deps/boringssl/src/third_party/googletest/test/
Dgtest_premature_exit_test.cc49 static bool FileExists(const char* filepath) { in FileExists() function in __anon9eadb49c0111::PrematureExitTest
66 return FileExists(premature_exit_file_path_); in PrematureExitFileExists()
117 if (PrematureExitTest::FileExists(filepath)) { in main()
/external/webrtc/test/testsupport/
Dfile_utils_unittest.cc52 } else if (FileExists(entry)) { in CleanDir()
124 ASSERT_TRUE(webrtc::test::FileExists(temp_filename)) in TEST_F()
132 ASSERT_FALSE(webrtc::test::FileExists(temp_filename)) in TEST_F()
176 ASSERT_TRUE(FileExists(result)) << "Expected " << result in TEST_F()
221 ASSERT_TRUE(webrtc::test::FileExists(temp_filename)) in TEST_F()
241 EXPECT_TRUE(FileExists(temp_filename)); in TEST_F()
/external/tensorflow/tensorflow/cc/saved_model/
Dreader.cc36 if (Env::Default()->FileExists(saved_model_pb_path).ok()) { in ReadSavedModel()
42 if (Env::Default()->FileExists(saved_model_pbtxt_path).ok()) { in ReadSavedModel()
98 if (Env::Default()->FileExists(debug_info_pb_path).ok()) { in ReadSavedModelDebugInfoIfPresent()
Dbundle_v2.cc36 if (Env::Default()->FileExists(saved_model_pb_path).ok()) { in ReadSavedModelProto()
42 if (Env::Default()->FileExists(saved_model_pbtxt_path).ok()) { in ReadSavedModelProto()
60 if (Env::Default()->FileExists(debug_info_pb_path).ok()) { in ReadSavedModelDebugInfoIfPresent()
119 if (!Env::Default()->FileExists(variables_dir).ok()) { in Load()
/external/tensorflow/tensorflow/core/grappler/inputs/
Dutils.cc33 bool FileExists(const string& file, Status* status) { in FileExists() function
34 *status = Env::Default()->FileExists(file); in FileExists()
/external/chromium-trace/catapult/devil/devil/android/perf/
Dperf_control_test.py55 mock_device.FileExists.return_value = True
78 mock_device.FileExists.return_value = True
101 mock_device.FileExists.return_value = True
Dthermal_throttle.py17 return device.FileExists(OmapThrottlingDetector.OMAP_TEMP_FILE)
45 return device.FileExists('/sys/bus/exynos5-core')
/external/chromium-trace/catapult/devil/devil/android/
Dcpu_temperature_test.py31 self.mock_device.FileExists.return_value = True
84 d.FileExists.return_value = True
92 d.FileExists.return_value = False
/external/chromium-trace/catapult/devil/devil/android/sdk/
Dshared_prefs_test.py42 device.FileExists = mock.Mock(side_effect=file_exists)
107 self.assertFalse(self.device.FileExists(prefs.path)) # file does not exist
114 self.assertFalse(self.device.FileExists(prefs.path)) # still does not exist
117 self.assertTrue(self.device.FileExists(prefs.path)) # should exist now
/external/tensorflow/tensorflow/core/data/service/
Ddataset_store.cc40 if (Env::Default()->FileExists(path_to_write).ok()) { in Put()
50 TF_RETURN_IF_ERROR(Env::Default()->FileExists(path)); in Get()
/external/libchrome/build/android/pylib/
Ddevice_settings.py70 if device.FileExists(_LOCK_SCREEN_SETTINGS_PATH):
75 elif device.FileExists(_ALTERNATE_LOCK_SCREEN_SETTINGS_PATH):
/external/sonivox/jet_tools/JetCreator/
DJetUtils.py232 def FileExists(fileName): function
293 if FileExists(sFileName):
482 if FileExists(jetFile.config.filename):
490 if FileExists(segment.filename):
493 if FileExists(segment.output):
499 if FileExists(library):
537 …if segment.filename is not None and len(segment.filename) > 0 and not FileExists(segment.filename):
540 … if segment.dlsfile is not None and len(segment.dlsfile) > 0 and not FileExists(segment.dlsfile):
588 if not FileExists(midiFile):
/external/tensorflow/tensorflow/lite/testing/
Dgenerated_examples_zip_test.cc193 TF_CHECK_OK(env->FileExists(unzip_binary)); in UnArchive()
194 TF_CHECK_OK(env->FileExists(zip)); in UnArchive()
198 TF_CHECK_OK(env->FileExists(tar_binary)); in UnArchive()
199 TF_CHECK_OK(env->FileExists(tar)); in UnArchive()
/external/perfetto/src/base/test/
Dutils.cc78 if (FileExists(full_path)) in GetTestDataPath()
81 if (FileExists(full_path)) in GetTestDataPath()
/external/tensorflow/tensorflow/core/platform/s3/
Ds3_file_system_test.cc220 TEST_F(S3FileSystemTest, FileExists) { in TEST_F() argument
224 EXPECT_EQ(error::Code::NOT_FOUND, s3fs.FileExists(fname).code()); in TEST_F()
226 TF_EXPECT_OK(s3fs.FileExists(fname)); in TEST_F()
305 TF_EXPECT_OK(s3fs.FileExists(fname2)); in TEST_F()
/external/icing/icing/legacy/index/
Dicing-mock-filesystem.h50 ON_CALL(*this, FileExists).WillByDefault([this](const char *file_name) { in IcingMockFilesystem()
51 return real_icing_filesystem_.FileExists(file_name); in IcingMockFilesystem()
175 MOCK_METHOD(bool, FileExists, (const char *file_name), (const, override));
/external/libyuv/files/unit_test/
Dcpu_test.cc139 static int FileExists(const char* file_name) { in FileExists() function
149 if (FileExists("../../unit_test/testdata/arm_v7.txt")) { in TEST_F()
/external/webrtc/rtc_tools/converter/
Dconverter.cc63 if (FileExists(input_file_name)) { in ConvertRGBAToI420Video()
159 bool Converter::FileExists(std::string file_name_to_check) { in FileExists() function in webrtc::test::Converter
/external/tensorflow/tensorflow/core/platform/hadoop/
Dhadoop_file_system_test.cc115 TEST_F(HadoopFileSystemTest, FileExists) { in TEST_F() argument
117 EXPECT_EQ(error::Code::NOT_FOUND, hdfs.FileExists(fname).code()); in TEST_F()
119 TF_EXPECT_OK(hdfs.FileExists(fname)); in TEST_F()
184 TF_EXPECT_OK(hdfs.FileExists(fname2)); in TEST_F()

1234567