Lines Matching refs:pos
69 size_t pos = content.find(marker); in readLogcat() local
70 if (pos == std::string::npos) return ""; in readLogcat()
71 content.erase(0, pos); in readLogcat()
87 std::string getTextAround(const std::string& text, size_t pos, in getTextAround() argument
89 size_t start_pos = pos; in getTextAround()
104 (pos = text.find('\n', pos)) != std::string::npos) { in getTextAround()
105 pos++; in getTextAround()
108 return text.substr(start_pos, (pos == std::string::npos) ? in getTextAround()
109 std::string::npos : pos - start_pos); in getTextAround()
336 size_t pos = 0; in TEST() local
340 if ((pos = logcat_out.find(marker, pos)) != std::string::npos) { in TEST()
341 kill_logs << getTextAround(logcat_out, pos, 0, 1); in TEST()
342 pos += marker.length(); in TEST()
355 pos = logcat_out.find(OOM_MARKER); in TEST()
356 bool oom_detected = (pos != std::string::npos); in TEST()
358 logcat_out.find(OOM_KILL_MARKER, pos) != std::string::npos); in TEST()
363 pos = 0; in TEST()
364 while ((pos = logcat_out.find(OOM_MARKER, pos)) != std::string::npos) { in TEST()
366 << getTextAround(logcat_out, pos, in TEST()
368 pos += strlen(OOM_MARKER); in TEST()