Home
last modified time | relevance | path

Searched refs:ReadFileToString (Results 1 – 25 of 78) sorted by relevance

1234

/external/tensorflow/tensorflow/core/profiler/internal/
Dtfprof_show_test.cc90 TF_CHECK_OK(ReadFileToString(Env::Default(), in TestToFromProto()
110 TF_CHECK_OK(ReadFileToString(Env::Default(), dump_file, &dump_str)); in TEST_F()
137 TF_CHECK_OK(ReadFileToString(Env::Default(), dump_file, &dump_str)); in TEST_F()
185 TF_CHECK_OK(ReadFileToString(Env::Default(), dump_file, &dump_str)); in TEST_F()
Dtfprof_timeline_test.cc73 TF_CHECK_OK(ReadFileToString(Env::Default(), dump_file + "_0", &dump_str)); in TEST_F()
87 TF_CHECK_OK(ReadFileToString(Env::Default(), dump_file + "_0", &dump_str)); in TEST_F()
/external/libchrome/base/process/
Dprocess_metrics_linux.cc46 if (!ReadFileToString(file, &file_contents)) in ReadFileToUint64()
67 if (!ReadFileToString(status_file, &status_data)) in ReadProcFileToTrimmedStringPairs()
163 if (ReadFileToString(geminfo_file, &geminfo_data)) { in ReadChromeOSGraphicsMemory()
178 if (ReadFileToString(mali_memory_file, &mali_memory_data)) { in ReadChromeOSGraphicsMemory()
283 if (!ReadFileToString(fd_path, &limits_contents)) in GetOpenFdSoftLimit()
337 bool ret = ReadFileToString(totmaps_file, &totmaps_data); in GetTotalsSummary()
619 if (!ReadFileToString(meminfo_file, &meminfo_data)) { in GetSystemMemoryInfo()
650 if (!ReadFileToString(vmstat_file, &vmstat_data)) { in GetVmStatInfo()
729 if (!ReadFileToString(diskinfo_file, &diskinfo_data)) { in GetSystemDiskInfo()
929 if (!ReadFileToString(zram_mm_stat_file, &mm_stat_data)) { in GetSwapInfoImpl()
[all …]
/external/libchrome/base/json/
Djson_file_value_serializer.cc61 int JSONFileValueDeserializer::ReadFileToString(std::string* json_string) { in ReadFileToString() function in JSONFileValueDeserializer
63 if (!base::ReadFileToString(json_file_path_, json_string)) { in ReadFileToString()
104 int error = ReadFileToString(&json_string); in Deserialize()
/external/protobuf/src/google/protobuf/testing/
Dfile.h53 static bool ReadFileToString(const string& name, string* output);
85 return ReadFileToString(name, output); in GetContents()
Dfile.cc65 bool File::ReadFileToString(const string& name, string* output) { in ReadFileToString() function in google::protobuf::File
82 GOOGLE_CHECK(ReadFileToString(name, output)) << "Could not read: " << name; in ReadFileToStringOrDie()
/external/libbrillo/brillo/
Dprocess_unittest.cc188 EXPECT_TRUE(base::ReadFileToString(FilePath(output_file_), &contents)); in CheckStderrCaptured()
221 EXPECT_TRUE(base::ReadFileToString(GetFdPath(pipe_fd), &contents)); in TEST_F()
240 EXPECT_TRUE(base::ReadFileToString(GetFdPath(pipe_fd), &contents)); in TEST_F()
258 EXPECT_TRUE(base::ReadFileToString(GetFdPath(pipe_fd), &contents)); in TEST_F()
297 EXPECT_TRUE(base::ReadFileToString(FilePath(output_file_), &contents)); in TEST_F()
307 EXPECT_TRUE(base::ReadFileToString(FilePath(output_file_), &contents)); in TEST_F()
Dfile_utils_unittest.cc58 EXPECT_TRUE(base::ReadFileToString(file_path_, &new_contents)); in ExpectFileContains()
152 EXPECT_TRUE(ReadFileToString(filename, &output)); in TEST_F()
193 EXPECT_TRUE(ReadFileToString(filename, &output)); in TEST_F()
Dkey_value_store_unittest.cc19 using base::ReadFileToString;
57 ASSERT_TRUE(ReadFileToString(FilePath(saved_temp_file_), &read_blob)); in TEST_F()
Dtest_helpers.h21 EXPECT_TRUE(base::ReadFileToString(base::FilePath(file_path), &contents)); in ExpectFileEquals()
/external/avb/test/
Davbtool_unittest.cc70 ASSERT_TRUE(base::ReadFileToString(path, &printed_version)); in TEST_F()
551 ASSERT_TRUE(base::ReadFileToString(rootfs_path, &part_data)); in AddHashFooterTest()
736 EXPECT_TRUE(base::ReadFileToString(output_path, &max_image_size_data)); in TEST_F()
1039 ASSERT_TRUE(base::ReadFileToString(rootfs_path, &part_data)); in AddHashtreeFooterTest()
1266 ASSERT_TRUE(base::ReadFileToString(rootfs_path, &part_data)); in AddHashtreeFooterFECTest()
1395 EXPECT_TRUE(base::ReadFileToString(output_path, &max_image_size_data)); in TEST_F()
1430 EXPECT_TRUE(base::ReadFileToString(output_path, &max_image_size_data)); in TEST_F()
1709 ASSERT_TRUE(base::ReadFileToString(vbmeta_path, &image_data)); in TEST_F()
1767 ASSERT_TRUE(base::ReadFileToString(out_path, &out)); in TEST_F()
1897 ASSERT_TRUE(base::ReadFileToString(out_path, &out)); in TEST_F()
[all …]
Davb_unittest_util.cc88 EXPECT_TRUE(base::ReadFileToString(vbmeta_digest_path, &vbmeta_digest_data)); in CalcVBMetaDigest()
150 EXPECT_TRUE(base::ReadFileToString(tmp_path, &info_data)); in InfoImage()
162 EXPECT_TRUE(base::ReadFileToString(tmp_path, &key_data)); in PublicKeyAVB()
Davb_atx_validate_unittest.cc317 ASSERT_TRUE(base::ReadFileToString(base::FilePath(kMetadataPath), &tmp)); in ReadDefaultData()
321 base::ReadFileToString(base::FilePath(kPermanentAttributesPath), &tmp)); in ReadDefaultData()
324 ASSERT_TRUE(base::ReadFileToString(base::FilePath(kUnlockChallengePath), in ReadDefaultData()
328 base::ReadFileToString(base::FilePath(kUnlockCredentialPath), &tmp)); in ReadDefaultData()
1012 base::ReadFileToString(base::FilePath(kPermanentAttributesPath), &tmp)); in ReadAtxDefaultData()
/external/tensorflow/tensorflow/core/kernels/
Dspectrogram_test_utils.cc33 if (!ReadFileToString(Env::Default(), file_name, &wav_data).ok()) { in ReadWaveFileToVector()
60 if (!ReadFileToString(Env::Default(), file_name, &data_string).ok()) { in ReadRawFloatFileToComplexVector()
110 if (!ReadFileToString(Env::Default(), file_name, &data_string).ok()) { in ReadCSVFileToComplexVectorOrDie()
157 TF_CHECK_OK(ReadFileToString(Env::Default(), filename, &contents)); in ReadCSVFileToArrayOrDie()
/external/tensorflow/tensorflow/core/util/
Dreporter_test.cc104 TF_EXPECT_OK(ReadFileToString(Env::Default(), expected_fname, &read)); in TEST()
129 TF_EXPECT_OK(ReadFileToString(Env::Default(), expected_fname, &read)); in TEST()
/external/tensorflow/tensorflow/cc/framework/
Dcc_op_gen_test.cc98 TF_ASSERT_OK(ReadFileToString(env, h_file_path, h_file_text)); in GenerateCcOpFiles()
100 ReadFileToString(env, internal_h_file_path, internal_h_file_text)); in GenerateCcOpFiles()
/external/perf_data_converter/src/
Dperf_to_profile_lib.h22 string ReadFileToString(const string& path);
Dperf_to_profile.cc22 const auto perf_data = ReadFileToString(input); in main()
/external/tensorflow/tensorflow/python/lib/io/
Dfile_io.i58 string ReadFileToString(const string& filename, TF_Status* out_status) { in ReadFileToString() function
60 tensorflow::Status status = ReadFileToString(tensorflow::Env::Default(), in ReadFileToString()
255 string ReadFileToString(const string& filename, TF_Status* out_status);
/external/tensorflow/tensorflow/compiler/xla/
Dtext_literal_writer_test.cc42 TF_CHECK_OK(tensorflow::ReadFileToString(tensorflow::Env::Default(), path, in TEST()
/external/tensorflow/tensorflow/tools/graph_transforms/
Dfile_utils.cc26 ReadFileToString(Env::Default(), file_name, &file_data); in LoadTextOrBinaryGraphFile()
/external/libbrillo/policy/
Dpolicy_util.cc22 if (!base::ReadFileToString(policy_path, policy_data_str_out)) { in LoadPolicyFromPath()
/external/tensorflow/tensorflow/contrib/ffmpeg/default/
Dffmpeg_lib.cc138 TF_QCHECK_OK(ReadFileToString(Env::Default(), filename, &raw_data)) in ReadPcmFile()
226 TF_QCHECK_OK(ReadFileToString(Env::Default(), filename, &data)) in ReadInfoFile()
409 TF_QCHECK_OK(ReadFileToString(Env::Default(), output_filename, &raw_data)) in ReadVideoFile()
/external/tensorflow/tensorflow/tools/mlpbtxt/
Dfrommlpbtxt.cc48 Status s = ReadFileToString(Env::Default(), FLAGS_in, &in_contents); in Run()
/external/libbrillo/install_attributes/
Dlibinstallattributes.cc61 if (!base::ReadFileToString(install_attributes_path_, &contents)) { in TryToLoad()

1234