Home
last modified time | relevance | path

Searched refs:start_pos (Results 1 – 6 of 6) sorted by relevance

/system/memory/lmkd/tests/
Dlmkd_test.cpp90 size_t start_pos = pos; in getTextAround() local
95 (start_pos = text.rfind('\n', start_pos)) != std::string::npos) { in getTextAround()
99 start_pos = text.rfind('\n', start_pos); in getTextAround()
100 start_pos = (start_pos == std::string::npos) ? 0 : start_pos + 1; in getTextAround()
109 return text.substr(start_pos, (pos == std::string::npos) ? in getTextAround()
110 std::string::npos : pos - start_pos); in getTextAround()
/system/core/libprocessgroup/
Dcgroup_map.cpp128 size_t start_pos = content.find(cg_tag); in GetTaskGroup() local
129 if (start_pos == std::string::npos) { in GetTaskGroup()
133 start_pos += cg_tag.length() + 1; // skip '/' in GetTaskGroup()
134 size_t end_pos = content.find('\n', start_pos); in GetTaskGroup()
136 *group = content.substr(start_pos, std::string::npos); in GetTaskGroup()
138 *group = content.substr(start_pos, end_pos - start_pos); in GetTaskGroup()
/system/libbase/
Dstrings.cpp125 std::string_view::size_type start_pos = 0; in StringReplace() local
127 std::string_view::size_type pos = s.find(from, start_pos); in StringReplace()
130 result.append(s.data() + start_pos, pos - start_pos); in StringReplace()
133 start_pos = pos + from.size(); in StringReplace()
135 result.append(s.data() + start_pos, s.size() - start_pos); in StringReplace()
/system/core/init/
Dreboot_utils.cpp69 auto start_pos = cmdline.find(kRebootTargetString); in SetFatalRebootTarget() local
70 if (start_pos == std::string::npos) { in SetFatalRebootTarget()
79 start_pos += sizeof(kRebootTargetStringPattern) - 1; in SetFatalRebootTarget()
81 auto end_pos = cmdline.find(' ', start_pos); in SetFatalRebootTarget()
84 auto size = end_pos == std::string::npos ? -1 : end_pos - start_pos; in SetFatalRebootTarget()
85 init_fatal_reboot_target = cmdline.substr(start_pos, size); in SetFatalRebootTarget()
/system/extras/simpleperf/scripts/test/
Dreport_html_test.py99 start_pos = data.find(start_str)
100 self.assertNotEqual(start_pos, -1)
101 start_pos = data.find('>', start_pos)
102 self.assertNotEqual(start_pos, -1)
103 start_pos += 1
104 end_pos = data.find(end_str, start_pos)
106 return data[start_pos:end_pos]
/system/vold/
DCheckpoint.cpp548 auto start_pos = used_sectors.insert_or_assign(start, true).first; in markUsed() local
551 if (start_pos == used_sectors.begin() || !std::prev(start_pos)->second) { in markUsed()
552 start_pos++; in markUsed()
557 if (start_pos->first < end_pos->first) { in markUsed()
558 used_sectors.erase(start_pos, end_pos); in markUsed()