Home
last modified time | relevance | path

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

1234

/art/runtime/
Dindex_bss_mapping.cc35 return IndexBssMappingLookup::npos; in GetBssOffset()
43 return IndexBssMappingLookup::npos; in GetBssOffset()
47 constexpr size_t IndexBssMappingLookup::npos; member in art::IndexBssMappingLookup
55 return npos; in GetBssOffset()
66 return npos; in GetBssOffset()
Dreference_table_test.cc90 EXPECT_NE(oss.str().find("(empty)"), std::string::npos) << oss.str(); in TEST_F()
108 EXPECT_NE(oss.str().find("1 of java.lang.String"), std::string::npos) << oss.str(); in TEST_F()
109 EXPECT_EQ(oss.str().find("short[]"), std::string::npos) << oss.str(); in TEST_F()
122 std::string::npos) << oss.str(); in TEST_F()
123 EXPECT_NE(oss.str().find("1 of java.lang.String"), std::string::npos) << oss.str(); in TEST_F()
125 EXPECT_NE(oss.str().find("1 of short[]"), std::string::npos) << oss.str(); in TEST_F()
128 std::string::npos) << oss.str(); in TEST_F()
138 EXPECT_EQ(oss.str().find("java.lang.String"), std::string::npos) << oss.str(); in TEST_F()
148 EXPECT_EQ(oss.str().find("short[]"), std::string::npos) << oss.str(); in TEST_F()
150 EXPECT_NE(oss.str().find("1 of short[]"), std::string::npos) << oss.str(); in TEST_F()
[all …]
Dindex_bss_mapping.h72 static constexpr size_t npos = static_cast<size_t>(-1);
Doat_file_test.cc92 EXPECT_NE(std::string::npos, error_msg.find("expected 2 uncompressed dex files, but found 1")) in TEST_F()
Dclass_loader_context.cc127 size_t shared_library_close = std::string::npos; in FindMatchingSharedLibraryCloseMarker()
133 if (shared_library_close == std::string::npos) { in FindMatchingSharedLibraryCloseMarker()
138 if ((shared_library_open == std::string::npos) || in FindMatchingSharedLibraryCloseMarker()
237 if (start_index == std::string::npos) { in ParseClassLoaderSpec()
250 if (shared_library_separator == std::string::npos) { in ParseClassLoaderSpec()
256 } else if ((shared_library_open == std::string::npos) || in ParseClassLoaderSpec()
268 if (closing_marker == std::string::npos) { in ParseClassLoaderSpec()
346 if (first_class_loader_separator == std::string::npos) { in ParseInternal()
351 } else if ((first_shared_library_open == std::string::npos) || in ParseInternal()
364 if (shared_library_close == std::string::npos) { in ParseInternal()
Doat_file_assistant.cc145 if (pos == std::string::npos) { in OatFileAssistant()
472 DCHECK(basename.find('/') == std::string::npos); in IsAnonymousVdexBasename()
505 if (pos == std::string::npos) { in DexLocationToOdexNames()
524 if (pos == std::string::npos) { in DexLocationToOdexNames()
917 std::string classpath_dir = (dir_index != std::string::npos) in ClassLoaderContextIsOkay()
/art/compiler/
Dcfi_test.h87 CHECK_NE(std::string::npos, pos); in FindEndOf()
99 while ((pos = line.find(" ")) != std::string::npos) { in ReformatAsm()
114 if (line.find("DW_CFA_nop") != std::string::npos) { in ReformatCfi()
116 } else if (line.find("DW_CFA_advance_loc") != std::string::npos) { in ReformatCfi()
119 } else if (line.find("DW_CFA_") != std::string::npos) { in ReformatCfi()
124 if ((pos = new_line.find(bad_reg)) != std::string::npos) { in ReformatCfi()
128 if ((pos = new_line.find(" (")) != std::string::npos) { in ReformatCfi()
/art/cmdline/
Dtoken_range.h243 TokenRange Slice(size_t offset, size_t length = std::string::npos) const {
246 if (length != std::string::npos && offset + length > Size()) {
251 if (length == std::string::npos) {
275 size_t wildcard_idx = std::string::npos; in MatchSubstrings()
282 if (wildcard_idx != std::string::npos) { in MatchSubstrings()
287 wildcard_idx = std::string::npos; in MatchSubstrings()
301 if (next_token_idx == std::string::npos) { in MatchSubstrings()
304 } else if (next_token_idx != string_idx && wildcard_idx == std::string::npos) { in MatchSubstrings()
317 if (wildcard_idx == std::string::npos) { in MatchSubstrings()
352 if (wildcard_idx == std::string::npos) { // No wildcard present in MaybeMatches()
Dcmdline.h273 if (separator_pos != std::string::npos) { in ParseCheckBootImage()
277 if (file_name_idx == std::string::npos) { // Prevent a InsertIsaDirectory check failure. in ParseCheckBootImage()
284 if (file_name_idx != std::string::npos) { in ParseCheckBootImage()
289 if (ancestor_dirs_idx != std::string::npos) { in ParseCheckBootImage()
/art/runtime/arch/x86/
Dinstruction_set_features_x86.cc195 if (line.find("flags") != std::string::npos) { in FromCpuInfo()
197 if (line.find("ssse3") != std::string::npos) { in FromCpuInfo()
200 if (line.find("sse4_1") != std::string::npos) { in FromCpuInfo()
203 if (line.find("sse4_2") != std::string::npos) { in FromCpuInfo()
206 if (line.find("avx") != std::string::npos) { in FromCpuInfo()
209 if (line.find("avx2") != std::string::npos) { in FromCpuInfo()
212 if (line.find("popcnt") != std::string::npos) { in FromCpuInfo()
/art/runtime/arch/arm/
Dinstruction_set_features_arm.cc157 if (line.find("Features") != std::string::npos) { in FromCpuInfo()
159 if (line.find("idivt") != std::string::npos) { in FromCpuInfo()
162 CHECK_NE(line.find("idiva"), std::string::npos); in FromCpuInfo()
165 if (line.find("lpae") != std::string::npos) { in FromCpuInfo()
169 if (line.find("architecture") != std::string::npos in FromCpuInfo()
170 && line.find(": 8") != std::string::npos) { in FromCpuInfo()
/art/tools/veridex/
Dhidden_api.cc43 if (pos != std::string::npos) { in HiddenApi()
47 if (pos != std::string::npos) { in HiddenApi()
52 if (pos != std::string::npos) { in HiddenApi()
Dhidden_api.h99 if (pos != std::string::npos) { in GetApiClassName()
/art/tools/jvmti-agents/breakpoint-logger/
Dbreakpoint_logger.cc279 if (end == std::string::npos) { in SubstrOf()
291 if (option.empty() || option[0] != 'L' || option.find(';') == std::string::npos) { in ParseSingleBreakpoint()
297 option = SubstrOf(option, option.find(';') + 1, std::string::npos); in ParseSingleBreakpoint()
302 option = SubstrOf(option, 2, std::string::npos); in ParseSingleBreakpoint()
305 if (option.empty() || sig_start == std::string::npos) { in ParseSingleBreakpoint()
308 } else if (loc_start == std::string::npos || in ParseSingleBreakpoint()
316 target->location = std::stol(SubstrOf(option, loc_start + 1, std::string::npos)); in ParseSingleBreakpoint()
321 if (op.find(',') == std::string::npos) { in RemoveLastOption()
324 return SubstrOf(op, op.find(',') + 1, std::string::npos); in RemoveLastOption()
/art/compiler/utils/
Dassembler_test.h205 while ((reg1_index = base.find(REG1_TOKEN)) != std::string::npos) {
211 while ((reg2_index = base.find(REG2_TOKEN)) != std::string::npos) {
216 if (imm_index != std::string::npos) {
261 while ((reg1_index = base.find(REG1_TOKEN)) != std::string::npos) { in RepeatTemplatedRegistersImmBits()
267 while ((reg2_index = base.find(REG2_TOKEN)) != std::string::npos) { in RepeatTemplatedRegistersImmBits()
273 while ((reg3_index = base.find(REG3_TOKEN)) != std::string::npos) { in RepeatTemplatedRegistersImmBits()
278 if (imm_index != std::string::npos) { in RepeatTemplatedRegistersImmBits()
322 while ((reg1_index = base.find(REG1_TOKEN)) != std::string::npos) { in RepeatTemplatedImmBitsRegisters()
328 while ((reg2_index = base.find(REG2_TOKEN)) != std::string::npos) { in RepeatTemplatedImmBitsRegisters()
333 if (imm_index != std::string::npos) { in RepeatTemplatedImmBitsRegisters()
[all …]
/art/dex2oat/linker/
Dindex_bss_mapping_encoder_test.cc36 ASSERT_EQ(IndexBssMappingLookup::npos, in TEST()
62 ASSERT_EQ(IndexBssMappingLookup::npos, in TEST()
88 ASSERT_EQ(IndexBssMappingLookup::npos, in TEST()
/art/tools/jvmti-agents/wrapagentproperties/
Dwrapagentproperties.cc260 } else if (end == std::string::npos) { in substrOf()
274 if (line.find('=') == std::string::npos) { in ReadPropMap()
279 std::string val = substrOf(line, line.find('=') + 1, std::string::npos); in ReadPropMap()
291 if (options.find(',') == std::string::npos) { in ParseArgs()
297 if (options.find('=') != std::string::npos) { in ParseArgs()
298 *agent_options = substrOf(options, options.find('=') + 1, std::string::npos); in ParseArgs()
/art/dex2oat/
Ddex2oat_image_test.cc136 CHECK_NE(std::string::npos, slash_pos); in CopyDexFiles()
189 ASSERT_NE(std::string::npos, libcore_dex_files[0].find("core-oj")); in TEST_F()
190 ASSERT_NE(std::string::npos, libcore_dex_files[1].find("core-libart")); in TEST_F()
191 ASSERT_NE(std::string::npos, libcore_dex_files[2].find("core-icu4j")); in TEST_F()
281 ASSERT_NE(std::string::npos, full_bcp[0].find("core-oj")); in TEST_F()
282 ASSERT_NE(std::string::npos, full_bcp[1].find("core-libart")); in TEST_F()
283 ASSERT_NE(std::string::npos, full_bcp[2].find("core-icu4j")); in TEST_F()
286 ASSERT_NE(std::string::npos, full_bcp[full_bcp.size() - 1u].find("conscrypt")); in TEST_F()
304 ASSERT_NE(std::string::npos, mid_slash_pos); in TEST_F()
312 ASSERT_NE(std::string::npos, tail_slash_pos); in TEST_F()
[all …]
/art/compiler/debug/dwarf/
Ddwarf_test.h131 if (actual_line->find(substring) == std::string::npos) { in CheckObjdumpOutput()
142 if (it->find(substring) != std::string::npos) { in CheckObjdumpOutput()
/art/compiler/driver/
Dcompiler_options.cc190 if (colon_pos != std::string_view::npos) { in IsCoreImageFilename()
201 if (slash_pos == std::string::npos) { in IsCoreImageFilename()
/art/runtime/entrypoints/quick/
Dquick_dexcache_entrypoints.cc42 DCHECK_NE(bss_offset, IndexBssMappingLookup::npos); in StoreObjectInBss()
92 if (bss_offset != IndexBssMappingLookup::npos) { in StoreTypeInBss()
110 if (bss_offset != IndexBssMappingLookup::npos) { in StoreStringInBss()
/art/dexdump/
Ddexdump_cfg.cc112 while (cur_start != std::string::npos) { in DumpMethodCFG()
114 if (next_escape == std::string::npos) { in DumpMethodCFG()
130 next_escape = std::string::npos; in DumpMethodCFG()
/art/libdexfile/dex/
Dsignature-inl.h59 if (lhs_shorty.find('L', 1) != std::string_view::npos) {
/art/compiler/debug/
Delf_debug_line_writer.h183 if (file_name_slash == std::string::npos && // Just filename. in WriteCompilationUnit()
185 class_name_slash != std::string::npos) { // Has package name. in WriteCompilationUnit()
/art/compiler/utils/x86_64/
Dassembler_x86_64_test.cc380 std::string::npos); in TEST_F()
387 std::string::npos); in TEST_F()
394 std::string::npos); in TEST_F()
401 std::string::npos); in TEST_F()
414 std::string::npos); in TEST_F()
421 std::string::npos); in TEST_F()
428 std::string::npos); in TEST_F()
435 std::string::npos); in TEST_F()
442 std::string::npos); in TEST_F()
449 std::string::npos); in TEST_F()
[all …]

1234