Home
last modified time | relevance | path

Searched refs:LineReader (Results 1 – 12 of 12) sorted by relevance

/system/tools/aidl/
Dline_reader.h25 class LineReader {
27 LineReader() = default;
28 virtual ~LineReader() = default;
30 LineReader(const LineReader&) = delete;
31 LineReader(LineReader&&) = delete;
32 LineReader& operator=(const LineReader&) = delete;
33 LineReader& operator=(LineReader&&) = delete;
37 static std::unique_ptr<LineReader> ReadFromFile(
39 static std::unique_ptr<LineReader> ReadFromMemory(
Dline_reader.cpp30 class FileLineReader : public LineReader {
61 class MemoryLineReader : public LineReader {
85 unique_ptr<LineReader> LineReader::ReadFromFile(const string& file_path) { in ReadFromFile()
87 unique_ptr<LineReader> ret; in ReadFromFile()
94 unique_ptr<LineReader> LineReader::ReadFromMemory(const string& contents) { in ReadFromMemory()
95 return unique_ptr<LineReader>(new MemoryLineReader(contents)); in ReadFromMemory()
Dio_delegate.h53 virtual std::unique_ptr<LineReader> GetLineReader(
Dio_delegate.cpp110 unique_ptr<LineReader> IoDelegate::GetLineReader( in GetLineReader()
112 return LineReader::ReadFromFile(file_path); in GetLineReader()
Daidl.cpp408 unique_ptr<LineReader> line_reader = io_delegate.GetLineReader(filename); in parse_preprocessed_file()
/system/extras/simpleperf/
Dutils_test.cpp78 TEST(utils, LineReader) { in TEST() argument
82 LineReader reader(tmpfile.path); in TEST()
Dkallsyms.cpp44 LineReader reader(kKallsymsPath); in CanReadKernelSymbolAddresses()
174 LineReader reader(kProcModulesPath); in GetLoadedModules()
212 LineReader reader(kKallsymsPath); in GetKernelStartAddress()
Dutils.h75 class LineReader {
77 explicit LineReader(std::string_view file_path) : ifs_(file_path) {} in LineReader() function
Dreport_utils.cpp46 LineReader reader(mapping_file); in AddProguardMappingFile()
Denvironment.cpp58 LineReader reader("/sys/devices/system/cpu/online"); in GetOnlineCpus()
976 LineReader reader(status_file); in GetProcessUid()
/system/tools/aidl/tests/
Dfake_io_delegate.cpp60 unique_ptr<LineReader> FakeIoDelegate::GetLineReader( in GetLineReader()
62 unique_ptr<LineReader> ret; in GetLineReader()
65 ret = LineReader::ReadFromMemory(it->second); in GetLineReader()
Dfake_io_delegate.h45 std::unique_ptr<LineReader> GetLineReader(