Home
last modified time | relevance | path

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

/frameworks/native/cmds/installd/tests/
Dinstalld_service_test.cpp334 ASSERT_TRUE(android::base::ReadFileToString( in TEST_F()
336 ASSERT_FALSE(android::base::ReadFileToString( in TEST_F()
354 ASSERT_TRUE(android::base::ReadFileToString( in TEST_F()
356 ASSERT_TRUE(android::base::ReadFileToString( in TEST_F()
371 ASSERT_TRUE(android::base::ReadFileToString( in TEST_F()
373 ASSERT_TRUE(android::base::ReadFileToString( in TEST_F()
419 ASSERT_TRUE(android::base::ReadFileToString( in TEST_F()
421 ASSERT_TRUE(android::base::ReadFileToString( in TEST_F()
423 ASSERT_TRUE(android::base::ReadFileToString( in TEST_F()
425 ASSERT_TRUE(android::base::ReadFileToString( in TEST_F()
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/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()
/frameworks/av/services/minijail/
Dminijail.cpp66 if (!base::ReadFileToString(base_policy_path, &base_policy_content, in SetUpMinijail()
72 !base::ReadFileToString(additional_policy_path, &additional_policy_content, in SetUpMinijail()
/frameworks/base/cmds/bootanimation/iot/
DBootParameters.cpp28 using android::base::ReadFileToString;
85 if (!ReadFileToString(nextBootFile, contents)) { in swapAndLoadBootConfigContents()
DBootParameters_test.cpp257 ASSERT_TRUE(base::ReadFileToString(lastFile.path, &contents)); in TEST()
/frameworks/native/libs/dumputils/
Ddump_utils.cpp115 if (!android::base::ReadFileToString(android::base::StringPrintf("/proc/%d/cmdline", pid), in IsZygote()
/frameworks/base/tools/aapt2/util/
DFiles.cpp42 using ::android::base::ReadFileToString;
247 if (!ReadFileToString(path.to_string(), &contents, true /*follow_symlinks*/)) { in AppendArgsFromFile()
266 if(!ReadFileToString(path.to_string(), &contents, true /*follow_symlinks*/)) { in AppendSetArgsFromFile()
/frameworks/base/tools/aapt2/cmd/
DOptimize.cpp55 using ::android::base::ReadFileToString;
300 if (!ReadFileToString(path, &contents, true)) { in ExtractObfuscationWhitelistFromConfig()
315 if (!android::base::ReadFileToString(path, &content, true /*follow_symlinks*/)) { in ExtractConfig()
DLink.cpp680 if (!android::base::ReadFileToString(path, &content, true /*follow_symlinks*/)) { in LoadStableIdMap()
/frameworks/native/cmds/lshal/libprocpartition/
Dprocpartition.cpp49 if (!android::base::ReadFileToString("/proc/" + std::to_string(pid) + "/cmdline", &content, in getCmdline()
/frameworks/base/cmds/incidentd/tests/
DReporter_test.cpp129 ReadFileToString(filename, &content); in InspectFiles()
/frameworks/native/cmds/dumpstate/tests/
Ddumpstate_test.cpp131 void ReadFileToString(const std::string& path, std::string* content) { in ReadFileToString() function in android::os::dumpstate::DumpstateBaseTest
132 ASSERT_TRUE(android::base::ReadFileToString(path, content)) in ReadFileToString()
143 ReadFileToString(from, &content); in CopyTextFile()
1160 ReadFileToString(path, &actual_content); in AssertStats()
1371 ReadFileToString(path_, &out); in CaptureFdOut()
/frameworks/native/libs/cputimeinstate/
Dcputimeinstate.cpp68 if (!android::base::ReadFileToString(path, &data)) return false; in readNumbersFromFile()
/frameworks/ml/nn/runtime/
DTypeManager.cpp77 if (!android::base::ReadFileToString(kAppAllowlistPath, &data)) { in getVendorExtensionAllowlistedApps()
/frameworks/native/cmds/dumpstate/
DDumpstateUtil.cpp396 android::base::ReadFileToString("/proc/" + std::string(ps->d_name) + "/cmdline", &cmdline); in GetPidByName()
Dutils.cpp144 if (!android::base::ReadFileToString(path_, &content)) { in Load()
919 if (!android::base::ReadFileToString(ext_csd_path, &buffer)) { in dump_emmc_ecsd()
/frameworks/base/tools/aapt2/configuration/
DConfigurationParser.cpp80 using ::android::base::ReadFileToString;
435 if (!ReadFileToString(path, &contents, true)) { in ForPath()
/frameworks/native/libs/vr/libvrflinger/
Ddisplay_service.cpp216 if (!base::ReadFileToString(file_path, &data)) { in OnGetConfigurationData()
/frameworks/base/libs/androidfw/tests/
DLoadedArsc_test.cpp35 using ::android::base::ReadFileToString;
/frameworks/native/libs/graphicsenv/
DGraphicsEnv.cpp104 if (!base::ReadFileToString(configFile, &fileContent)) { in readConfig()
/frameworks/base/libs/protoutil/tests/
DProtoOutputStream_test.cpp35 EXPECT_TRUE(ReadFileToString(tf.path, &content)); in flushToString()
/frameworks/native/cmds/surfacereplayer/replayer/
DReplayer.cpp65 if (!android::base::ReadFileToString(filename, &input, true)) { in Replayer()
/frameworks/native/cmds/atrace/
Datrace.cpp719 if (!android::base::ReadFileToString(g_traceFolder + k_ftraceFilterPath, &buf)) { in verifyKernelTraceFuncs()
/frameworks/native/libs/vr/libpdx_default_transport/
Dpdx_benchmarks.cpp94 base::ReadFileToString(base::FilePath{stats_path}, &line); in Update()