Home
last modified time | relevance | path

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

12345678

/system/extras/simpleperf/
Dcmd_report_sample_test.cpp68 ASSERT_NE(data.find("magic: SIMPLEPERF"), std::string::npos); in TEST()
69 ASSERT_NE(data.find("version: 1"), std::string::npos); in TEST()
70 ASSERT_NE(data.find("file:"), std::string::npos); in TEST()
78 ASSERT_EQ(data.find("unknown"), std::string::npos); in TEST()
85 ASSERT_NE(data.find("event_count:"), std::string::npos); in TEST()
92 ASSERT_NE(data.find("thread:"), std::string::npos); in TEST()
93 ASSERT_NE(data.find("thread_name: t2"), std::string::npos); in TEST()
100 ASSERT_NE(data.find("event_type: sched:sched_switch"), std::string::npos); in TEST()
101 ASSERT_NE(data.find("trace_offcpu: true"), std::string::npos); in TEST()
116 ASSERT_NE(data.find("__libc_init"), std::string::npos); in TEST()
[all …]
Dcmd_report_test.cpp98 ASSERT_NE(content.find("GlobalFunc"), std::string::npos); in TEST_F()
105 ASSERT_NE(content.find("GlobalFunc"), std::string::npos); in TEST_F()
113 while (line_index < lines.size() && lines[line_index].find("Pid") == std::string::npos) { in TEST_F()
124 while (line_index < lines.size() && lines[line_index].find("Overhead") == std::string::npos) { in TEST_F()
128 ASSERT_NE(lines[line_index].find("Command"), std::string::npos); in TEST_F()
129 ASSERT_NE(lines[line_index].find("Pid"), std::string::npos); in TEST_F()
130 ASSERT_NE(lines[line_index].find("Shared Object"), std::string::npos); in TEST_F()
131 ASSERT_NE(lines[line_index].find("Symbol"), std::string::npos); in TEST_F()
132 ASSERT_EQ(lines[line_index].find("Tid"), std::string::npos); in TEST_F()
159 if (lines[i].find("GlobalFunc") != std::string::npos && in CheckCalleeMode()
[all …]
Dcmd_merge_test.cpp73 ASSERT_NE(report.find("Samples: 27"), std::string::npos); in TEST()
74 ASSERT_NE(report.find("malloc"), std::string::npos); in TEST()
75 ASSERT_EQ(report.find("sleep_main"), std::string::npos); in TEST()
76 ASSERT_NE(report.find("toybox_main"), std::string::npos); in TEST()
79 ASSERT_NE(report.find("Samples: 31"), std::string::npos); in TEST()
80 ASSERT_EQ(report.find("malloc"), std::string::npos); in TEST()
81 ASSERT_NE(report.find("sleep_main"), std::string::npos); in TEST()
82 ASSERT_NE(report.find("toybox_main"), std::string::npos); in TEST()
89 ASSERT_NE(report.find("Samples: 58"), std::string::npos); in TEST()
91 ASSERT_NE(report.find("malloc"), std::string::npos); in TEST()
[all …]
Dcmd_debug_unwind_test.cpp45 ASSERT_NE(capture.Finish().find("sample_time: 1516379654300997"), std::string::npos); in TEST()
58 ASSERT_NE(output.find("sample_time: 1516379654300997"), std::string::npos); in TEST()
59 ASSERT_NE(output.find("sample_time: 1516379654363914"), std::string::npos); in TEST()
60 ASSERT_NE(output.find("sample_time: 1516379655959122"), std::string::npos); in TEST()
72 ASSERT_NE(output.find("sample_time: 1516379654300997"), std::string::npos); in TEST()
84 std::string::npos); in TEST()
93 ASSERT_NE(capture.Finish().find("sample_time: 152526249937103"), std::string::npos); in TEST()
111 std::string::npos) in TEST()
113 ASSERT_NE(output.find("dso_2: /bionic/lib64/libc.so"), std::string::npos) << output; in TEST()
123 ASSERT_NE(output.find("symbol_5: android.os.Handler.post"), std::string::npos) << output; in TEST()
[all …]
Dcmd_dumprecord_test.cpp55 ASSERT_NE(data.find("[kernel.kallsyms][+ffffffc000086b4a]"), std::string::npos); in TEST()
56 ASSERT_NE(data.find("__ioctl (/system/lib64/libc.so[+70b6c])"), std::string::npos); in TEST()
65 ASSERT_NE(data.find("prev_comm: sleep"), std::string::npos); in TEST()
72 std::string::npos); in TEST()
82 ASSERT_NE(data.find("record aux:"), std::string::npos); in TEST()
83 ASSERT_NE(data.find("feature section for auxtrace:"), std::string::npos); in TEST()
85 ASSERT_NE(data.find("OCSD_GEN_TRC_ELEM_INSTR_RANGE"), std::string::npos); in TEST()
Dcmd_inject_test.cpp67 ASSERT_NE(data.find("etm_test_loop"), std::string::npos); in TEST()
76 ASSERT_NE(data.find("etm_test_loop"), std::string::npos); in TEST()
80 ASSERT_NE(data.find("etm_test_loop"), std::string::npos); in TEST()
84 ASSERT_EQ(data.find("etm_test_loop"), std::string::npos); in TEST()
88 ASSERT_EQ(data.find("etm_test_loop"), std::string::npos); in TEST()
129 ASSERT_NE(autofdo_output.find("rq_stats.ko"), std::string::npos); in TEST()
148 ASSERT_NE(data.find("etm_test_loop"), std::string::npos); in TEST()
161 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()
173 ASSERT_NE(data.find("106c->1074:200"), std::string::npos); in TEST()
[all …]
Dcmd_kmem_test.cpp128 ASSERT_NE(result.content.find("kmem:kmalloc"), std::string::npos); in TEST()
129 ASSERT_NE(result.content.find("__alloc_skb"), std::string::npos); in TEST()
139 ASSERT_NE(result.content.find("Ptr"), std::string::npos); in TEST()
140 ASSERT_NE(result.content.find("GfpFlags"), std::string::npos); in TEST()
148 ASSERT_NE(result.content.find("kmem:kmalloc"), std::string::npos); in TEST()
149 ASSERT_NE(result.content.find("__alloc_skb"), std::string::npos); in TEST()
150 ASSERT_NE(result.content.find("system_call_fastpath"), std::string::npos); in TEST()
Dcmd_trace_sched_test.cpp59 std::string::npos); in TEST()
60 ASSERT_NE(data.find("Thread 3845.961 ms 94.90% 8615 BusyThread"), std::string::npos); in TEST()
64 std::string::npos); in TEST()
Dread_symbol_map.cpp35 if (begin == content_ref.npos) { in ConsumeWord()
40 if (end == content_ref.npos) { in ConsumeWord()
80 if (symbol_begin == content.npos) { in ReadSymbol()
98 if (end == content.npos) { in ReadSymbolMapFromString()
Dkallsyms_test.cpp112 ASSERT_NE(capture.str().find(warning_msg), std::string::npos); in TEST()
120 ASSERT_NE(capture.str().find(warning_msg), std::string::npos); in TEST()
127 ASSERT_NE(capture.str().find(warning_msg), std::string::npos); in TEST()
142 ASSERT_NE(pos, std::string::npos); in TEST()
143 ASSERT_EQ(output.find(warning_msg, pos + warning_msg.size()), std::string::npos); in TEST()
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/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.cpp222 ASSERT_NE(std::string::npos, start); \ in TEST_F()
224 ASSERT_EQ(std::string::npos, (str).find((substr))); \ in TEST_F()
231 ASSERT_NE(std::string::npos, expected[8].second.find("*filter\n-S OUTPUT\n")); in TEST_F()
241 ASSERT_NE(std::string::npos, expected[10].second.find("*filter\n-S OUTPUT\n")); in TEST_F()
251 ASSERT_NE(std::string::npos, expected[14].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/memory/lmkd/tests/
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()
Dlmkd_tests.cpp166 if (pos == std::string::npos) { in ParseProcSize()
219 ASSERT_TRUE(line_start != std::string::npos) << "Kill report is not found"; in TEST_F()
222 line_start, line_end == std::string::npos ? std::string::npos : line_end - line_start); in TEST_F()
228 if (line_start == std::string::npos) { in TEST_F()
232 ASSERT_TRUE(line_start != std::string::npos) << "Reaping time report is not found"; in TEST_F()
235 line = logcat_out.substr(line_start, line_end == std::string::npos ? std::string::npos in TEST_F()
242 line_start, line_end == std::string::npos ? std::string::npos : line_end - line_start); in TEST_F()
/system/update_engine/payload_generator/
Dmapfile_filesystem.cc96 while ((delim = line.rfind(' ', last_delim - 1)) != string::npos) { in GetFiles()
101 if (dash == string::npos && base::StringToUint64(blocks, &block_start)) { in GetFiles()
103 } else if (dash != string::npos && in GetFiles()
133 if (last_delim == string::npos) in GetFiles()
/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.cpp489 if (match.find_first_of("[\\*") == match.npos) continue; in BootReasonStrToEnum()
562 while ((pos = r.find(',', pos)) != std::string::npos) { in isBluntRebootReason()
612 if (num > ((8 + kBitErrorRate) / kBitErrorRate)) return std::string::npos; in numError()
617 return std::string::npos; in numError()
632 if (pos != std::string::npos) return pos; in rfind()
636 if (needle.length() > pos) return std::string::npos; in rfind()
640 if (numError(pos, needle) != std::string::npos) return pos; in rfind()
644 return std::string::npos; in rfind()
650 if (needle.length() > console.length()) return std::string::npos; in find()
654 if (numError(pos, needle) != std::string::npos) return pos; in find()
[all …]
/system/core/init/
Dfirst_stage_console.cpp38 if (pos == std::string::npos) return false; in KernelConsolePresent()
119 if (pos != std::string::npos) { in FirstStageConsole()
131 if (pos != std::string::npos) { in FirstStageConsole()
Dreboot_utils.cpp51 if (cmdline.find(kInitFatalPanicParamString) == std::string::npos) { in SetFatalRebootTarget()
57 init_fatal_panic = cmdline.find(kInitFatalPanicString) != std::string::npos; in SetFatalRebootTarget()
67 if (start_pos == std::string::npos) { in SetFatalRebootTarget()
77 auto size = end_pos == std::string::npos ? -1 : end_pos - start_pos; in SetFatalRebootTarget()
/system/core/fs_mgr/libfstab/
Dboot_config.cpp61 if (equal_pos != line.npos) { in ImportBootconfigFromString()
119 while (((found = cmdline.find_first_of(" \"", found)) != cmdline.npos) && in ImportKernelCmdlineFromString()
122 if ((found = cmdline.find(quote, found + 1)) == cmdline.npos) break; in ImportKernelCmdlineFromString()
128 if (equal_sign == piece.npos) { in ImportKernelCmdlineFromString()
138 if (found == cmdline.npos) break; in ImportKernelCmdlineFromString()
/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()
/system/vold/
DVoldNativeServiceValidation.cpp84 if (path.find("/../"sv) != path.npos || android::base::EndsWith(path, "/.."sv)) { in CheckArgumentPath()
116 (android::base::EndsWith(path, "/mount") || path.find("/mount/") != path.npos)) { in CheckIncrementalPath()
121 path.find("/backing_store/") != path.npos)) { in CheckIncrementalPath()

12345678