Home
last modified time | relevance | path

Searched refs:npos (Results 1 – 25 of 177) sorted by relevance

12345678

/system/extras/simpleperf/
Dcmd_report_sample_test.cpp64 ASSERT_NE(data.find("magic: SIMPLEPERF"), std::string::npos); in TEST()
65 ASSERT_NE(data.find("version: 1"), std::string::npos); in TEST()
66 ASSERT_NE(data.find("file:"), std::string::npos); in TEST()
73 ASSERT_EQ(data.find("unknown"), std::string::npos); in TEST()
79 ASSERT_NE(data.find("event_count:"), std::string::npos); in TEST()
85 ASSERT_NE(data.find("thread:"), std::string::npos); in TEST()
86 ASSERT_NE(data.find("thread_name: t2"), std::string::npos); in TEST()
92 ASSERT_NE(data.find("event_type: sched:sched_switch"), std::string::npos); in TEST()
93 ASSERT_NE(data.find("trace_offcpu: true"), std::string::npos); in TEST()
107 ASSERT_NE(data.find("__libc_init"), std::string::npos); in TEST()
[all …]
Dcmd_report_test.cpp89 ASSERT_NE(content.find("GlobalFunc"), std::string::npos); in TEST_F()
95 ASSERT_NE(content.find("GlobalFunc"), std::string::npos); in TEST_F()
102 while (line_index < lines.size() && lines[line_index].find("Pid") == std::string::npos) { in TEST_F()
112 while (line_index < lines.size() && lines[line_index].find("Overhead") == std::string::npos) { in TEST_F()
116 ASSERT_NE(lines[line_index].find("Command"), std::string::npos); in TEST_F()
117 ASSERT_NE(lines[line_index].find("Pid"), std::string::npos); in TEST_F()
118 ASSERT_NE(lines[line_index].find("Shared Object"), std::string::npos); in TEST_F()
119 ASSERT_NE(lines[line_index].find("Symbol"), std::string::npos); in TEST_F()
120 ASSERT_EQ(lines[line_index].find("Tid"), std::string::npos); in TEST_F()
146 if (lines[i].find("GlobalFunc") != std::string::npos && in CheckCalleeMode()
[all …]
Dcmd_merge_test.cpp71 ASSERT_NE(report.find("Samples: 27"), std::string::npos); in TEST()
72 ASSERT_NE(report.find("malloc"), std::string::npos); in TEST()
73 ASSERT_EQ(report.find("sleep_main"), std::string::npos); in TEST()
74 ASSERT_NE(report.find("toybox_main"), std::string::npos); in TEST()
77 ASSERT_NE(report.find("Samples: 31"), std::string::npos); in TEST()
78 ASSERT_EQ(report.find("malloc"), std::string::npos); in TEST()
79 ASSERT_NE(report.find("sleep_main"), std::string::npos); in TEST()
80 ASSERT_NE(report.find("toybox_main"), std::string::npos); in TEST()
87 ASSERT_NE(report.find("Samples: 58"), std::string::npos); in TEST()
89 ASSERT_NE(report.find("malloc"), std::string::npos); in TEST()
[all …]
Dcmd_debug_unwind_test.cpp44 ASSERT_NE(capture.Finish().find("sample_time: 1516379654300997"), std::string::npos); in TEST()
56 ASSERT_NE(output.find("sample_time: 1516379654300997"), std::string::npos); in TEST()
57 ASSERT_NE(output.find("sample_time: 1516379654363914"), std::string::npos); in TEST()
58 ASSERT_NE(output.find("sample_time: 1516379655959122"), std::string::npos); in TEST()
69 ASSERT_NE(output.find("sample_time: 1516379654300997"), std::string::npos); in TEST()
80 std::string::npos); in TEST()
88 ASSERT_NE(capture.Finish().find("sample_time: 152526249937103"), std::string::npos); in TEST()
105 std::string::npos) in TEST()
107 ASSERT_NE(output.find("dso_2: /bionic/lib64/libc.so"), std::string::npos) << output; in TEST()
116 ASSERT_NE(output.find("symbol_5: android.os.Handler.post"), std::string::npos) << output; in TEST()
[all …]
Dcmd_dumprecord_test.cpp50 ASSERT_NE(data.find("[kernel.kallsyms][+ffffffc000086b4a]"), std::string::npos); in TEST()
51 ASSERT_NE(data.find("__ioctl (/system/lib64/libc.so[+70b6c])"), std::string::npos); in TEST()
59 ASSERT_NE(data.find("prev_comm: sleep"), std::string::npos); in TEST()
66 std::string::npos); in TEST()
75 ASSERT_NE(data.find("record aux:"), std::string::npos); in TEST()
76 ASSERT_NE(data.find("feature section for auxtrace:"), std::string::npos); in TEST()
78 ASSERT_NE(data.find("OCSD_GEN_TRC_ELEM_INSTR_RANGE"), std::string::npos); in TEST()
Dcmd_inject_test.cpp66 ASSERT_NE(data.find("etm_test_loop"), std::string::npos); in TEST()
74 ASSERT_NE(data.find("etm_test_loop"), std::string::npos); in TEST()
78 ASSERT_NE(data.find("etm_test_loop"), std::string::npos); in TEST()
82 ASSERT_EQ(data.find("etm_test_loop"), std::string::npos); in TEST()
86 ASSERT_EQ(data.find("etm_test_loop"), std::string::npos); in TEST()
123 ASSERT_NE(autofdo_output.find("rq_stats.ko"), std::string::npos); in TEST()
141 ASSERT_NE(data.find("etm_test_loop"), std::string::npos); in TEST()
153 ASSERT_NE(data.find("106c->1074:200"), std::string::npos); in TEST()
157 ASSERT_NE(data.find("106c->1074:200"), std::string::npos); in TEST()
165 ASSERT_NE(data.find("106c->1074:200"), std::string::npos); in TEST()
[all …]
Dcmd_kmem_test.cpp123 ASSERT_NE(result.content.find("kmem:kmalloc"), std::string::npos); in TEST()
124 ASSERT_NE(result.content.find("__alloc_skb"), std::string::npos); in TEST()
133 ASSERT_NE(result.content.find("Ptr"), std::string::npos); in TEST()
134 ASSERT_NE(result.content.find("GfpFlags"), std::string::npos); in TEST()
141 ASSERT_NE(result.content.find("kmem:kmalloc"), std::string::npos); in TEST()
142 ASSERT_NE(result.content.find("__alloc_skb"), std::string::npos); in TEST()
143 ASSERT_NE(result.content.find("system_call_fastpath"), std::string::npos); in TEST()
Dcmd_trace_sched_test.cpp57 std::string::npos); in TEST()
58 ASSERT_NE(data.find("Thread 3845.961 ms 94.90% 8615 BusyThread"), std::string::npos); in TEST()
62 std::string::npos); in TEST()
Dkallsyms_test.cpp107 ASSERT_NE(capture.str().find(warning_msg), std::string::npos); in TEST()
115 ASSERT_NE(capture.str().find(warning_msg), std::string::npos); in TEST()
122 ASSERT_NE(capture.str().find(warning_msg), std::string::npos); in TEST()
137 ASSERT_NE(pos, std::string::npos); in TEST()
138 ASSERT_EQ(output.find(warning_msg, pos + warning_msg.size()), std::string::npos); in TEST()
Dread_symbol_map.cpp35 if (begin == content_ref.npos) { in ConsumeWord()
40 if (end == content_ref.npos) { in ConsumeWord()
97 if (end == content.npos) { in ReadSymbolMapFromString()
Dtest_util.cpp70 if (s.find("86") == std::string::npos) { in IsInNativeAbi()
74 if (s.find("arm") == std::string::npos && s.find("aarch64") == std::string::npos) { in IsInNativeAbi()
87 if (s.find("riscv") == std::string::npos) { in IsInNativeAbi()
Dread_apk.cpp133 if (pos == std::string::npos) { in SplitUrlInApk()
146 if (pos != std::string::npos) { in ParseExtractedInMemoryPath()
153 if (zip_path_end == std::string::npos) { in ParseExtractedInMemoryPath()
160 if (multidex_separator_pos != std::string::npos) { in ParseExtractedInMemoryPath()
/system/memory/lmkd/tests/
Dlmkd_tests.cpp155 if (pos == std::string::npos) { in ParseProcSize()
206 ASSERT_TRUE(line_start != std::string::npos) << "Kill report is not found"; in TEST_F()
209 line_start, line_end == std::string::npos ? std::string::npos : line_end - line_start); in TEST_F()
215 if (line_start == std::string::npos) { in TEST_F()
219 ASSERT_TRUE(line_start != std::string::npos) << "Reaping time report is not found"; in TEST_F()
222 line = logcat_out.substr(line_start, line_end == std::string::npos ? std::string::npos in TEST_F()
229 line_start, line_end == std::string::npos ? std::string::npos : line_end - line_start); in TEST_F()
Dlmkd_test.cpp71 if (pos == std::string::npos) return ""; in readLogcat()
95 (start_pos = text.rfind('\n', start_pos)) != std::string::npos) { in getTextAround()
100 start_pos = (start_pos == std::string::npos) ? 0 : start_pos + 1; in getTextAround()
105 (pos = text.find('\n', pos)) != std::string::npos) { in getTextAround()
109 return text.substr(start_pos, (pos == std::string::npos) ? in getTextAround()
110 std::string::npos : pos - start_pos); in getTextAround()
343 if ((pos = logcat_out.find(marker, pos)) != std::string::npos) { in TEST()
359 bool oom_detected = (pos != std::string::npos); in TEST()
361 logcat_out.find(OOM_KILL_MARKER, pos) != std::string::npos); in TEST()
367 while ((pos = logcat_out.find(OOM_MARKER, pos)) != std::string::npos) { in TEST()
/system/extras/tests/kernel.config/
Dnfs_test.cpp25 EXPECT_TRUE(fs.find("\tnfs\n") == std::string::npos); in TEST()
26 EXPECT_TRUE(fs.find("\tnfs4\n") == std::string::npos); in TEST()
27 EXPECT_TRUE(fs.find("\tnfsd\n") == std::string::npos); in TEST()
/system/netd/server/
DControllersTest.cpp213 ASSERT_NE(std::string::npos, start); \ in TEST_F()
215 ASSERT_EQ(std::string::npos, (str).find((substr))); \ in TEST_F()
222 ASSERT_NE(std::string::npos, expected[7].second.find("*filter\n-S OUTPUT\n")); in TEST_F()
232 ASSERT_NE(std::string::npos, expected[9].second.find("*filter\n-S OUTPUT\n")); in TEST_F()
242 ASSERT_NE(std::string::npos, expected[13].second.find("*mangle\n-S POSTROUTING\n")); in TEST_F()
/system/extras/preopt2cachename/
Dpreopt2cachename.cpp51 if (file_location_start == std::string::npos) { in ExtractAPKName()
55 if (ext_start == std::string::npos || ext_start < file_location_start) { in ExtractAPKName()
72 if (apk_position == std::string::npos) { in SystemBFilenameToCacheFile()
81 while (cache_file_position != std::string::npos) { in SystemBFilenameToCacheFile()
93 if (pos == std::string::npos) { in SystemBFilenameToCacheFile()
/system/core/fs_mgr/
Dfs_mgr_boot_config.cpp37 while (((found = cmdline.find_first_of(" \"", found)) != cmdline.npos) && in fs_mgr_parse_cmdline()
40 if ((found = cmdline.find(quote, found + 1)) == cmdline.npos) break; in fs_mgr_parse_cmdline()
48 if (equal_sign == piece.npos) { in fs_mgr_parse_cmdline()
56 if (found == cmdline.npos) break; in fs_mgr_parse_cmdline()
71 if (equal_sign == line.npos) { in fs_mgr_parse_proc_bootconfig()
/system/tools/hidl/lint/lints/
DmethodVersions.cpp37 return (underscore == std::string::npos) ? method.name() : method.name().substr(0, underscore); in getSanitizedMethodName()
42 CHECK(underscore != std::string::npos); // only called on versionedMethods in checkMethodVersion()
60 if (underscore == std::string::npos) { in checkMethodVersion()
97 if (method->name().find('_') == std::string::npos) { in methodVersions()
/system/core/bootstat/
Dbootstat.cpp479 if (match.find_first_of("[\\*") == match.npos) continue; in BootReasonStrToEnum()
552 while ((pos = r.find(',', pos)) != std::string::npos) { in isBluntRebootReason()
602 if (num > ((8 + kBitErrorRate) / kBitErrorRate)) return std::string::npos; in numError()
607 return std::string::npos; in numError()
622 if (pos != std::string::npos) return pos; in rfind()
626 if (needle.length() > pos) return std::string::npos; in rfind()
630 if (numError(pos, needle) != std::string::npos) return pos; in rfind()
634 return std::string::npos; in rfind()
640 if (needle.length() > console.length()) return std::string::npos; in find()
644 if (numError(pos, needle) != std::string::npos) return pos; in find()
[all …]
/system/update_engine/payload_generator/
Dmapfile_filesystem.cc97 while ((delim = line.rfind(' ', last_delim - 1)) != string::npos) { in GetFiles()
102 if (dash == string::npos && base::StringToUint64(blocks, &block_start)) { in GetFiles()
104 } else if (dash != string::npos && in GetFiles()
134 if (last_delim == string::npos) in GetFiles()
/system/core/init/
Dfirst_stage_console.cpp37 if (pos == std::string::npos) return false; in KernelConsolePresent()
113 if (pos != std::string::npos) { in FirstStageConsole()
125 if (pos != std::string::npos) { in FirstStageConsole()
Dreboot_utils.cpp50 if (cmdline.find(kInitFatalPanicParamString) == std::string::npos) { in SetFatalRebootTarget()
60 init_fatal_panic = cmdline.find(kInitFatalPanicString) != std::string::npos; in SetFatalRebootTarget()
70 if (start_pos == std::string::npos) { in SetFatalRebootTarget()
84 auto size = end_pos == std::string::npos ? -1 : end_pos - start_pos; in SetFatalRebootTarget()
/system/netd/tests/
Dtest_utils.cpp54 if (lastNotWhitespace != std::string::npos) { in runCommand()
84 if (rule.find(expectedRule) != std::string::npos) { in iptablesRuleExists()
102 if (route.find(substring) == std::string::npos) { in ipRouteExists()
/system/logging/logd/
Dlogd_test.cpp109 EXPECT_NE(std::string::npos, result.find("\nChattiest UIDs in main ")); in TEST()
111 EXPECT_NE(std::string::npos, result.find("\nChattiest UIDs in radio ")); in TEST()
113 EXPECT_NE(std::string::npos, result.find("\nChattiest UIDs in system ")); in TEST()
115 EXPECT_NE(std::string::npos, result.find("\nChattiest UIDs in events ")); in TEST()
121 while ((pos = result.find(getpwuid_prefix, pos)) != std::string::npos) { in TEST()
508 EXPECT_NE(std::string::npos, result.find("\t(to life the universe etc|3)")) in TEST()
510 EXPECT_NE(std::string::npos, result.find("answer")) << "Command result: " << result; in TEST()
532 EXPECT_NE(std::string::npos, result.find("\t(new|1)")) << "Command result: " << result; in TEST()
533 EXPECT_NE(std::string::npos, result.find(name)) << "Command result: " << result; in TEST()

12345678