/external/protobuf/src/google/protobuf/testing/ |
D | file.h | 53 static bool ReadFileToString(const string& name, string* output, bool text_mode = false); 85 return ReadFileToString(name, output); in GetContents() 90 return ReadFileToString(name, output, true); in GetContentsAsText()
|
D | file.cc | 73 bool File::ReadFileToString(const string& name, string* output, bool text_mode) { in ReadFileToString() function in google::protobuf::File 90 GOOGLE_CHECK(ReadFileToString(name, output)) << "Could not read: " << name; in ReadFileToStringOrDie()
|
/external/tensorflow/tensorflow/core/profiler/internal/ |
D | tfprof_show_test.cc | 90 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()
|
D | tfprof_timeline_test.cc | 73 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/json/ |
D | json_file_value_serializer.cc | 61 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/libchrome/base/process/ |
D | process_metrics_linux.cc | 46 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 …]
|
D | process_linux.cc | 106 if (base::ReadFileToString( in IsProcessBackgrounded() 172 if (!ReadFileToString(status_file, &status)) { in GetPidInNamespace()
|
/external/avb/test/ |
D | avbtool_unittest.cc | 74 ASSERT_TRUE(base::ReadFileToString(path, &printed_version)); in TEST_F() 597 ASSERT_TRUE(base::ReadFileToString(rootfs_path, &part_data)); in AddHashFooterTest() 784 EXPECT_TRUE(base::ReadFileToString(output_path, &max_image_size_data)); in TEST_F() 1137 ASSERT_TRUE(base::ReadFileToString(rootfs_path, &part_data)); in AddHashtreeFooterTest() 1141 ASSERT_TRUE(base::ReadFileToString( in AddHashtreeFooterTest() 1432 ASSERT_TRUE(base::ReadFileToString(rootfs_path, &part_data)); in AddHashtreeFooterFECTest() 1436 ASSERT_TRUE(base::ReadFileToString( in AddHashtreeFooterFECTest() 1595 EXPECT_TRUE(base::ReadFileToString(output_path, &max_image_size_data)); in TEST_F() 1630 EXPECT_TRUE(base::ReadFileToString(output_path, &max_image_size_data)); in TEST_F() 1665 EXPECT_TRUE(base::ReadFileToString(output_path, &max_image_size_data)); in TEST_F() [all …]
|
D | avb_unittest_util.cc | 88 EXPECT_TRUE(base::ReadFileToString(vbmeta_digest_path, &vbmeta_digest_data)); in CalcVBMetaDigest() 151 EXPECT_TRUE(base::ReadFileToString(tmp_path, &info_data)); in InfoImage() 163 EXPECT_TRUE(base::ReadFileToString(tmp_path, &key_data)); in PublicKeyAVB()
|
D | avb_aftl_verify_unittest.cc | 66 ASSERT_TRUE(base::ReadFileToString(base::FilePath(kAftlTestKey), &key_)); in SetUp() 67 ASSERT_TRUE(base::ReadFileToString(base::FilePath(kVbmetaWithAftlDescBin), in SetUp()
|
D | avb_aftl_util_unittest.cc | 54 base::ReadFileToString(base::FilePath(kAftlImagePath), &content)); in SetUp() 61 base::ReadFileToString(base::FilePath(kAftlImageMultiPath), &content)); in SetUp()
|
/external/libbrillo/brillo/ |
D | process_test.cc | 188 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()
|
D | test_helpers.h | 21 EXPECT_TRUE(base::ReadFileToString(base::FilePath(file_path), &contents)); in ExpectFileEquals()
|
/external/tensorflow/tensorflow/core/util/ |
D | reporter_test.cc | 104 TF_EXPECT_OK(ReadFileToString(Env::Default(), expected_fname, &read)); in TEST() 129 TF_EXPECT_OK(ReadFileToString(Env::Default(), expected_fname, &read)); in TEST() 152 TF_EXPECT_OK(ReadFileToString(Env::Default(), expected_fname, &read)); in TEST()
|
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/utils/ |
D | dump_mlir_util_test.cc | 69 TF_ASSERT_OK(ReadFileToString(env, filepath, &file_txt_module)); in TEST() 84 TF_ASSERT_OK(ReadFileToString(env, filepath, &file_txt_module)); in TEST()
|
/external/tensorflow/tensorflow/core/kernels/ |
D | spectrogram_test_utils.cc | 34 if (!ReadFileToString(Env::Default(), file_name, &wav_data).ok()) { in ReadWaveFileToVector() 61 if (!ReadFileToString(Env::Default(), file_name, &data_string).ok()) { in ReadRawFloatFileToComplexVector() 111 if (!ReadFileToString(Env::Default(), file_name, &data_string).ok()) { in ReadCSVFileToComplexVectorOrDie() 158 TF_CHECK_OK(ReadFileToString(Env::Default(), filename, &contents)); in ReadCSVFileToArrayOrDie()
|
/external/tensorflow/tensorflow/cc/framework/ |
D | cc_op_gen_test.cc | 98 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/libjpeg-turbo/gtest/ |
D | tjbench-gtest-wrapper.cpp | 101 ASSERT_TRUE(base::ReadFileToString(test_image_path, &test_image_data)); in TEST_P() 172 ASSERT_TRUE(base::ReadFileToString(test_image_path, &test_image_data)); in TEST_P()
|
D | gtest-utils.cpp | 55 if (!base::ReadFileToString(path, &output)) { in CompareFileAndMD5()
|
/external/tensorflow/tensorflow/compiler/xla/ |
D | text_literal_writer_test.cc | 43 TF_ASSERT_OK(tensorflow::ReadFileToString(tensorflow::Env::Default(), path, in TEST()
|
/external/tensorflow/tensorflow/tools/graph_transforms/ |
D | file_utils.cc | 26 ReadFileToString(Env::Default(), file_name, &file_data); in LoadTextOrBinaryGraphFile()
|
/external/libbrillo/policy/ |
D | policy_util.cc | 22 if (!base::ReadFileToString(policy_path, policy_data_str_out)) { in LoadPolicyFromPath()
|
/external/tensorflow/tensorflow/tools/mlpbtxt/ |
D | frommlpbtxt.cc | 48 Status s = ReadFileToString(Env::Default(), FLAGS_in, &in_contents); in Run()
|
/external/libbrillo/install_attributes/ |
D | libinstallattributes.cc | 61 if (!base::ReadFileToString(install_attributes_path_, &contents)) { in TryToLoad()
|
/external/tensorflow/tensorflow/tools/api/tests/ |
D | convert_from_multiline.cc | 40 TF_RETURN_IF_ERROR(tensorflow::ReadFileToString(env, path, &contents)); in ConvertFilesFromMultiline()
|