Home
last modified time | relevance | path

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

12

/frameworks/base/tools/aapt2/cmd/
DDump_test.cpp58 ::android::base::ReadFileToString(expected_path, &expected); in TEST_F()
74 ::android::base::ReadFileToString(expected_path, &expected); in TEST_F()
90 ::android::base::ReadFileToString(expected_path, &expected); in TEST_F()
107 ::android::base::ReadFileToString(expected_path, &expected); in TEST_F()
124 ::android::base::ReadFileToString(expected_path, &expected); in TEST_F()
DApkInfo_test.cpp41 ::android::base::ReadFileToString(expected_path, &expected); in AssertProducedAndExpectedInfo()
DOptimize.cpp58 using ::android::base::ReadFileToString;
321 if (!android::base::ReadFileToString(path, &content, true /*follow_symlinks*/)) { in ExtractConfig()
DConvert.cpp361 if (!android::base::ReadFileToString(path, &content, true /*follow_symlinks*/)) { in ExtractResourceConfig()
/frameworks/av/media/module/minijail/
Dminijail.cpp69 if (!base::ReadFileToString(base_policy_path, &base_policy_content, in SetUpMinijailList()
77 !base::ReadFileToString(one_policy_path, &one_policy_content, in SetUpMinijailList()
/frameworks/base/core/jni/
Dcom_android_internal_os_KernelAllocationStats.cpp26 using android::base::ReadFileToString;
83 if (!ReadFileToString(StringPrintf("/proc/%d/cmdline", pid), &cmdline)) { in KernelAllocationStats_getDmabufAllocations()
102 if (!ReadFileToString(StringPrintf("/proc/%d/oom_score_adj", pid), &oomScoreAdjStr)) { in KernelAllocationStats_getDmabufAllocations()
Dfilesystem_utils.h31 if (!android::base::ReadFileToString("/proc/filesystems", &supported)) { in IsFilesystemSupported()
/frameworks/native/libs/dumputils/
Ddump_utils.cpp214 if (!android::base::ReadFileToString(android::base::StringPrintf("/proc/%d/cmdline", pid), in IsZygote()
228 if (!android::base::ReadFileToString(android::base::StringPrintf("/proc/%d/oom_score_adj", in IsCached()
/frameworks/libs/binary_translation/base/include/berberis/base/
Dfile.h31 using android::base::ReadFileToString;
/frameworks/native/cmds/installd/tests/
Dinstalld_service_test.cpp737 ASSERT_TRUE(android::base::ReadFileToString( in TEST_F()
739 ASSERT_FALSE(android::base::ReadFileToString( in TEST_F()
757 ASSERT_TRUE(android::base::ReadFileToString( in TEST_F()
759 ASSERT_TRUE(android::base::ReadFileToString( in TEST_F()
774 ASSERT_TRUE(android::base::ReadFileToString( in TEST_F()
776 ASSERT_TRUE(android::base::ReadFileToString( in TEST_F()
822 ASSERT_TRUE(android::base::ReadFileToString( in TEST_F()
824 ASSERT_TRUE(android::base::ReadFileToString( in TEST_F()
826 ASSERT_TRUE(android::base::ReadFileToString( in TEST_F()
828 ASSERT_TRUE(android::base::ReadFileToString( in TEST_F()
[all …]
Dinstalld_file_test.cpp96 bool r = android::base::ReadFileToString(path, &content); in ReadTestFile()
/frameworks/base/tools/aapt2/util/
DFiles.cpp42 using ::android::base::ReadFileToString;
247 if (!ReadFileToString(std::string(path), &contents, true /*follow_symlinks*/)) { in AppendArgsFromFile()
269 if (!ReadFileToString(std::string(path), &contents, true /*follow_symlinks*/)) { in AppendSetArgsFromFile()
/frameworks/av/media/utils/
DProcess.cpp53 (void)android::base::ReadFileToString(path.c_str(), &sched); in getThreadSchedAsString()
/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.cpp143 void ReadFileToString(const std::string& path, std::string* content) { in ReadFileToString() function in android::os::dumpstate::DumpstateBaseTest
144 ASSERT_TRUE(android::base::ReadFileToString(path, content)) in ReadFileToString()
155 ReadFileToString(from, &content); in CopyTextFile()
1095 ReadFileToString(path, &actual_content); in AssertStats()
1306 ReadFileToString(path_, &out); in CaptureFdOut()
1764 ReadFileToString(out_path_, &result); in TEST_F()
1779 ReadFileToString(out_path_, &result); in TEST_F()
/frameworks/base/tools/aapt2/optimize/
DObfuscator_test.cpp395 ASSERT_TRUE(android::base::ReadFileToString(map_path, &pbOut, false /* follow_symlinks */)); in TEST()
424 ASSERT_TRUE(android::base::ReadFileToString(map_path, &pbOut, false /* follow_symlinks */)); in TEST()
/frameworks/native/services/inputflinger/reader/
DEventHub.cpp325 if (!base::ReadFileToString(path, &indexStr)) { in getColorIndexArray()
356 if (base::ReadFileToString(sysfsRootPath / "country", &str)) { in readLayoutConfiguration()
448 if (base::ReadFileToString(file, &str)) { in readLightsConfiguration()
1350 if (!base::ReadFileToString(it->second.path / LIGHT_NODES.at(InputLightClass::BRIGHTNESS), in getLightBrightness()
1376 if (!base::ReadFileToString(lightIt->second.path / in getLightIntensities()
1793 if (base::ReadFileToString(batteryPath / BATTERY_NODES.at(InputBatteryClass::CAPACITY), in getBatteryCapacity()
1800 if (base::ReadFileToString(batteryPath / BATTERY_NODES.at(InputBatteryClass::CAPACITY_LEVEL), in getBatteryCapacity()
1833 if (!base::ReadFileToString(batteryPath / BATTERY_NODES.at(InputBatteryClass::STATUS), in getBatteryStatus()
/frameworks/base/libs/androidfw/tests/
DIdmap_test.cpp210 ASSERT_TRUE(base::ReadFileToString("overlay/overlay.idmap", &idmap_contents)); in TEST_F()
DLoadedArsc_test.cpp36 using ::android::base::ReadFileToString;
/frameworks/base/tools/aapt2/configuration/
DConfigurationParser.cpp78 using ::android::base::ReadFileToString;
431 if (!ReadFileToString(path, &contents, true)) { in ForPath()
/frameworks/native/libs/graphicsenv/
DGraphicsEnv.cpp106 if (!base::ReadFileToString(configFile, &fileContent)) { in readConfig()
/frameworks/native/libs/adbd_auth/
Dadbd_auth.cpp399 if (!android::base::ReadFileToString(path, &content)) { in IteratePublicKeys()
/frameworks/base/libs/protoutil/tests/
DProtoOutputStream_test.cpp35 EXPECT_TRUE(ReadFileToString(tf.path, &content)); in flushToString()
/frameworks/native/libs/cputimeinstate/
Dcputimeinstate.cpp69 if (!android::base::ReadFileToString(path, &data)) return {}; in readNumbersFromFile()

12