Home
last modified time | relevance | path

Searched refs:npos (Results 1 – 25 of 84) 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.cc124 size_t shared_library_close = std::string::npos; in FindMatchingSharedLibraryCloseMarker()
130 if (shared_library_close == std::string::npos) { in FindMatchingSharedLibraryCloseMarker()
135 if ((shared_library_open == std::string::npos) || in FindMatchingSharedLibraryCloseMarker()
234 if (start_index == std::string::npos) { in ParseClassLoaderSpec()
247 if (shared_library_separator == std::string::npos) { in ParseClassLoaderSpec()
253 } else if ((shared_library_open == std::string::npos) || in ParseClassLoaderSpec()
265 if (closing_marker == std::string::npos) { in ParseClassLoaderSpec()
334 if (first_class_loader_separator == std::string::npos) { in ParseInternal()
339 } else if ((first_shared_library_open == std::string::npos) || in ParseInternal()
352 if (shared_library_close == std::string::npos) { in ParseInternal()
/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.cc209 if (line.find("flags") != std::string::npos) { in FromCpuInfo()
211 if (line.find("ssse3") != std::string::npos) { in FromCpuInfo()
214 if (line.find("sse4_1") != std::string::npos) { in FromCpuInfo()
217 if (line.find("sse4_2") != std::string::npos) { in FromCpuInfo()
220 if (line.find("avx") != std::string::npos) { in FromCpuInfo()
223 if (line.find("avx2") != std::string::npos) { in FromCpuInfo()
226 if (line.find("popcnt") != std::string::npos) { in FromCpuInfo()
/art/runtime/arch/arm/
Dinstruction_set_features_arm.cc166 if (line.find("Features") != std::string::npos) { in FromCpuInfo()
168 if (line.find("idivt") != std::string::npos) { in FromCpuInfo()
171 CHECK_NE(line.find("idiva"), std::string::npos); in FromCpuInfo()
174 if (line.find("lpae") != std::string::npos) { in FromCpuInfo()
178 if (line.find("architecture") != std::string::npos in FromCpuInfo()
179 && line.find(": 8") != std::string::npos) { in FromCpuInfo()
/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/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/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/test/596-app-images/
Dapp_images.cc45 if (idx != std::string::npos) { in check_name()
49 if (idx != std::string::npos) { in check_name()
/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()
188 ASSERT_NE(std::string::npos, libcore_dex_files[0].find("core-oj")); in TEST_F()
189 ASSERT_NE(std::string::npos, libcore_dex_files[1].find("core-libart")); in TEST_F()
278 ASSERT_NE(std::string::npos, full_bcp[0].find("core-oj")); in TEST_F()
279 ASSERT_NE(std::string::npos, full_bcp[1].find("core-libart")); in TEST_F()
282 ASSERT_NE(std::string::npos, full_bcp[full_bcp.size() - 1u].find("conscrypt")); in TEST_F()
300 ASSERT_NE(std::string::npos, mid_slash_pos); in TEST_F()
308 ASSERT_NE(std::string::npos, tail_slash_pos); in TEST_F()
395 ASSERT_NE(std::string::npos, single_slash_pos); in TEST_F()
/art/runtime/entrypoints/quick/
Dquick_dexcache_entrypoints.cc42 DCHECK_NE(bss_offset, IndexBssMappingLookup::npos); in StoreObjectInBss()
93 if (bss_offset != IndexBssMappingLookup::npos) { in StoreTypeInBss()
120 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/runtime/gc/space/
Dimage_space_test.cc44 CHECK_NE(std::string::npos, slash_pos); in GetFilenameBase()
46 CHECK_NE(std::string::npos, dot_pos); in GetFilenameBase()
66 ASSERT_NE(std::string::npos, bcp.back().find("conscrypt")); in TEST_F()
69 ASSERT_NE(std::string::npos, bcp.back().find("core-icu4j")); in TEST_F()
Dimage_space.cc1484 DCHECK_NE(bcp_slash_pos, std::string::npos); in GetBcpComponentPath()
1548 std::string location = (location_end == std::string::npos) in GetPrimaryImageLocation()
1551 if (location.find('/') == std::string::npos) { in GetPrimaryImageLocation()
1554 ? std::string::npos in GetPrimaryImageLocation()
1556 if (slash_pos == std::string::npos) { in GetPrimaryImageLocation()
1573 if (bcp_slash_pos == std::string::npos || bcp_slash_pos == bcp_component.size() - 1u) { in VerifyImageLocation()
1591 if (wildcard_pos == std::string::npos) { in VerifyImageLocation()
1598 if (profile_separator_pos != std::string::npos) { in VerifyImageLocation()
1599 if (component.find(kProfileSeparator, profile_separator_pos + 1u) != std::string::npos) { in VerifyImageLocation()
1615 profile_separator_pos != std::string::npos ? profile_separator_pos : component.size(); in VerifyImageLocation()
[all …]
/art/libartbase/base/
Dstl_util.h341 if (nxt == std::string_view::npos) {
342 cur_index_ = std::string_view::npos;
377 SplitStringIter(std::string_view::npos, target, sv)); in SplitString()

1234