Home
last modified time | relevance | path

Searched refs:stripPrefix (Results 1 – 9 of 9) sorted by relevance

/frameworks/base/cmds/incident_helper/src/parsers/
DPageTypeInfoParser.cpp47 if (stripPrefix(&line, "Page block order:")) { in Parse()
52 if (stripPrefix(&line, "Pages per block:")) { in Parse()
56 if (stripPrefix(&line, "Free pages count per migrate type at order")) { in Parse()
60 if (stripPrefix(&line, "Number of blocks type")) { in Parse()
69 if (stripPrefix(&record[0], "Node")) { in Parse()
73 if (stripPrefix(&record[1], "zone")) { in Parse()
77 if (stripPrefix(&record[2], "type")) { in Parse()
92 if (stripPrefix(&record[0], "Node")) { in Parse()
96 if (stripPrefix(&record[1], "zone")) { in Parse()
DCpuInfoParser.cpp70 if (stripPrefix(&line, "Threads:")) { in Parse()
77 if (stripPrefix(&line, "Mem:")) { in Parse()
84 if (stripPrefix(&line, "Swap:")) { in Parse()
DProcrankParser.cpp49 if (stripPrefix(&line, "ZRAM:")) { in Parse()
53 if (stripPrefix(&line, "RAM:")) { in Parse()
/frameworks/base/cmds/incident_helper/tests/
Dih_util_test.cpp102 TEST(IhUtilTest, stripPrefix) { in TEST() argument
104 EXPECT_TRUE(stripPrefix(&data1, "Swap:")); in TEST()
108 EXPECT_FALSE(stripPrefix(&data2, "Total:")); in TEST()
112 EXPECT_TRUE(stripPrefix(&data3, "Swa")); in TEST()
116 EXPECT_FALSE(stripPrefix(&data4, "Swa", true)); in TEST()
/frameworks/base/tools/streaming_proto/
Dstring_utils.h41 string stripPrefix(const string& str, const string& prefix);
Dstring_utils.cpp112 stripPrefix(const string& str, const string& prefix) in stripPrefix() function
/frameworks/base/cmds/incident_helper/src/
Dih_util.h90 bool stripPrefix(std::string* line, const char* key, bool endAtDelimiter = false);
Dih_util.cpp169 bool stripPrefix(std::string* line, const char* key, bool endAtDelimiter) { in stripPrefix() function
432 if (stripPrefix(&mutableName, prefix.c_str())) { in insertField()
/frameworks/base/tools/streaming_proto/cpp/
Dmain.cpp39 … text << indent << INDENT << "\"" << stripPrefix(enu.value(i).name(), prefix) << "\"," << endl; in write_enum()