Home
last modified time | relevance | path

Searched refs:remove_prefix (Results 1 – 5 of 5) sorted by relevance

/system/core/healthd/
DAnimationParser.cpp40 bool remove_prefix(const std::string& line, const char* prefix, const char** rest) { in remove_prefix() function
97 } else if (remove_prefix(line, animation_prefix, &rest)) { in parse_animation_desc()
107 } else if (remove_prefix(line, fail_prefix, &rest)) { in parse_animation_desc()
109 } else if (remove_prefix(line, clock_prefix, &rest)) { in parse_animation_desc()
114 } else if (remove_prefix(line, percent_prefix, &rest)) { in parse_animation_desc()
DAnimationParser.h27 bool remove_prefix(const std::string& str, const char* prefix, const char** rest);
/system/core/healthd/tests/
DAnimationParser_test.cpp38 EXPECT_FALSE(remove_prefix(TEST_STRING, "def", &rest)); in TEST()
40 EXPECT_FALSE(remove_prefix(TEST_STRING, TEST_STRING, &rest)); in TEST()
42 EXPECT_TRUE(remove_prefix(TEST_STRING, "abc", &rest)); in TEST()
45 EXPECT_TRUE(remove_prefix(" abcdef", "abc", &rest)); in TEST()
/system/core/adb/
Dadb_utils.h147 str->remove_prefix(prefix.size()); in ConsumePrefix()
Dsockets.cpp610 command.remove_prefix(count); in parse_host_service()