Home
last modified time | relevance | path

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

/system/extras/libperfmgr/tests/
DHintManagerTest.cc168 size_t start_pos = json_doc_.find(from); in SetUp() local
169 json_doc_.replace(start_pos, from.length(), files_[0 + 2]->path); in SetUp()
171 start_pos = json_doc_.find(from); in SetUp()
172 json_doc_.replace(start_pos, from.length(), files_[1 + 2]->path); in SetUp()
305 size_t start_pos = json_doc_.find(from); in TEST_F() local
306 json_doc_.replace(start_pos, from.length(), "CPUCluster1MinFreq"); in TEST_F()
314 size_t start_pos = json_doc_.find(from); in TEST_F() local
315 json_doc_.replace(start_pos, from.length(), "CPUCluster1MinFreq"); in TEST_F()
324 size_t start_pos = json_doc_.find(from); in TEST_F() local
325 json_doc_.replace(start_pos, from.length(), files_[1 + 2]->path); in TEST_F()
[all …]
/system/libbase/
Dstrings.cpp124 std::string_view::size_type start_pos = 0; in StringReplace() local
126 std::string_view::size_type pos = s.find(from, start_pos); in StringReplace()
129 result.append(s.data() + start_pos, pos - start_pos); in StringReplace()
132 start_pos = pos + from.size(); in StringReplace()
134 result.append(s.data() + start_pos, s.size() - start_pos); in StringReplace()
/system/core/libprocessgroup/
Dcgroup_map.cpp125 size_t start_pos = content.find(cg_tag); in GetTaskGroup() local
126 if (start_pos == std::string::npos) { in GetTaskGroup()
130 start_pos += cg_tag.length() + 1; // skip '/' in GetTaskGroup()
131 size_t end_pos = content.find('\n', start_pos); in GetTaskGroup()
133 *group = content.substr(start_pos, std::string::npos); in GetTaskGroup()
135 *group = content.substr(start_pos, end_pos - start_pos); in GetTaskGroup()
/system/core/init/
Dreboot_utils.cpp49 auto start_pos = cmdline.find(kRebootTargetString); in SetFatalRebootTarget() local
50 if (start_pos == std::string::npos) { in SetFatalRebootTarget()
53 start_pos += sizeof(kRebootTargetString) - 1; in SetFatalRebootTarget()
55 auto end_pos = cmdline.find(' ', start_pos); in SetFatalRebootTarget()
58 auto size = end_pos == std::string::npos ? -1 : end_pos - start_pos; in SetFatalRebootTarget()
59 init_fatal_reboot_target = cmdline.substr(start_pos, size); in SetFatalRebootTarget()
/system/memory/lmkd/tests/
Dlmkd_test.cpp89 size_t start_pos = pos; in getTextAround() local
94 (start_pos = text.rfind('\n', start_pos)) != std::string::npos) { in getTextAround()
98 start_pos = text.rfind('\n', start_pos); in getTextAround()
99 start_pos = (start_pos == std::string::npos) ? 0 : start_pos + 1; in getTextAround()
108 return text.substr(start_pos, (pos == std::string::npos) ? in getTextAround()
109 std::string::npos : pos - start_pos); in getTextAround()
/system/vold/
DCheckpoint.cpp538 auto start_pos = used_sectors.insert_or_assign(start, true).first; in markUsed() local
541 if (start_pos == used_sectors.begin() || !std::prev(start_pos)->second) { in markUsed()
542 start_pos++; in markUsed()
547 if (start_pos->first < end_pos->first) { in markUsed()
548 used_sectors.erase(start_pos, end_pos); in markUsed()
/system/iorap/src/manager/
Devent_manager.cc90 const size_t start_pos = str.find(from); in Replace() local
91 if (start_pos == std::string::npos) { in Replace()
95 str.replace(start_pos, from.length(), to); in Replace()
/system/extras/simpleperf/scripts/
Dtest.py1506 start_pos = data.find(start_str)
1507 self.assertNotEqual(start_pos, -1)
1508 start_pos = data.find('>', start_pos)
1509 self.assertNotEqual(start_pos, -1)
1510 start_pos += 1
1511 end_pos = data.find(end_str, start_pos)
1513 json_data = data[start_pos:end_pos]
1807 start_pos = 0
1808 while start_pos < len(tests) and tests[start_pos] != args.test_from[0]:
1809 start_pos += 1
[all …]