Home
last modified time | relevance | path

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

123

/art/runtime/base/
Dstringpiece.cc45 return npos; in find()
49 return xpos + s.length_ <= length_ ? xpos : npos; in find()
63 return npos; in find()
66 return result != ptr_ + length_ ? result - ptr_ : npos; in find()
70 if (length_ < s.length_) return npos; in rfind()
76 return result != last ? result - ptr_ : npos; in rfind()
80 if (length_ == 0) return npos; in rfind()
87 return npos; in rfind()
Dstringpiece.h41 static constexpr size_type npos = size_type(-1); variable
146 size_type rfind(const StringPiece& s, size_type pos = npos) const;
147 size_type rfind(char c, size_type pos = npos) const;
149 StringPiece substr(size_type pos, size_type n = npos) const;
/art/runtime/
Dreference_table_test.cc83 EXPECT_NE(oss.str().find("(empty)"), std::string::npos) << oss.str(); in TEST_F()
101 EXPECT_NE(oss.str().find("1 of java.lang.String"), std::string::npos) << oss.str(); in TEST_F()
102 EXPECT_EQ(oss.str().find("short[]"), std::string::npos) << oss.str(); in TEST_F()
115 std::string::npos) << oss.str(); in TEST_F()
116 EXPECT_NE(oss.str().find("1 of java.lang.String"), std::string::npos) << oss.str(); in TEST_F()
118 EXPECT_NE(oss.str().find("1 of short[]"), std::string::npos) << oss.str(); in TEST_F()
121 std::string::npos) << oss.str(); in TEST_F()
131 EXPECT_EQ(oss.str().find("java.lang.String"), std::string::npos) << oss.str(); in TEST_F()
141 EXPECT_EQ(oss.str().find("short[]"), std::string::npos) << oss.str(); in TEST_F()
143 EXPECT_NE(oss.str().find("1 of short[]"), std::string::npos) << oss.str(); in TEST_F()
[all …]
Dindirect_reference_table_test.cc37 EXPECT_EQ(oss.str().find("java.lang.Object"), std::string::npos) << oss.str(); in CheckDump()
39 EXPECT_NE(oss.str().find("1 of java.lang.Object"), std::string::npos) << oss.str(); in CheckDump()
43 std::string::npos) in CheckDump()
/art/compiler/
Dcfi_test.h86 CHECK_NE(std::string::npos, pos); in FindEndOf()
98 while ((pos = line.find(" ")) != std::string::npos) { in ReformatAsm()
113 if (line.find("DW_CFA_nop") != std::string::npos) { in ReformatCfi()
115 } else if (line.find("DW_CFA_advance_loc") != std::string::npos) { in ReformatCfi()
118 } else if (line.find("DW_CFA_") != std::string::npos) { in ReformatCfi()
123 if ((pos = new_line.find(bad_reg)) != std::string::npos) { in ReformatCfi()
127 if ((pos = new_line.find(" (")) != std::string::npos) { in ReformatCfi()
/art/compiler/utils/arm/
Dassembler_arm_test.h102 if (cond_index != std::string::npos) { in RepeatTemplatedRRIIC()
110 if (imm1_index != std::string::npos) { in RepeatTemplatedRRIIC()
121 if (imm2_index != std::string::npos) { in RepeatTemplatedRRIIC()
133 while ((reg1_index = base3.find(Base::REG1_TOKEN)) != std::string::npos) { in RepeatTemplatedRRIIC()
142 while ((reg2_index = base4.find(Base::REG2_TOKEN)) != std::string::npos) { in RepeatTemplatedRRIIC()
193 if (cond_index != std::string::npos) { in RepeatTemplatedRRiiC()
203 if (imm1_index != std::string::npos) { in RepeatTemplatedRRiiC()
213 if (imm2_index != std::string::npos) { in RepeatTemplatedRRiiC()
225 while ((reg1_index = after_reg1.find(Base::REG1_TOKEN)) != std::string::npos) { in RepeatTemplatedRRiiC()
234 while ((reg2_index = after_reg2.find(Base::REG2_TOKEN)) != std::string::npos) { in RepeatTemplatedRRiiC()
[all …]
/art/runtime/arch/x86/
Dinstruction_set_features_x86.cc180 if (line.find("flags") != std::string::npos) { in FromCpuInfo()
182 if (line.find("ssse3") != std::string::npos) { in FromCpuInfo()
185 if (line.find("sse4_1") != std::string::npos) { in FromCpuInfo()
188 if (line.find("sse4_2") != std::string::npos) { in FromCpuInfo()
191 if (line.find("avx") != std::string::npos) { in FromCpuInfo()
194 if (line.find("avx2") != std::string::npos) { in FromCpuInfo()
197 if (line.find("popcnt") != std::string::npos) { in FromCpuInfo()
/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.h240 if (file_name_idx == std::string::npos) { // Prevent a InsertIsaDirectory check failure. in ParseCheckBootImage()
247 if (file_name_idx != std::string::npos) { in ParseCheckBootImage()
252 if (ancestor_dirs_idx != std::string::npos) { in ParseCheckBootImage()
Dcmdline_types.h102 if (equals_pos == std::string::npos) {
157 if (colon != std::string::npos) {
699 if (prefix_idx == std::string::npos) {
/art/runtime/arch/arm/
Dinstruction_set_features_arm.cc154 if (line.find("Features") != std::string::npos) { in FromCpuInfo()
156 if (line.find("idivt") != std::string::npos) { in FromCpuInfo()
159 CHECK_NE(line.find("idiva"), std::string::npos); in FromCpuInfo()
162 if (line.find("lpae") != std::string::npos) { in FromCpuInfo()
166 if (line.find("architecture") != std::string::npos in FromCpuInfo()
167 && line.find(": 8") != std::string::npos) { in FromCpuInfo()
/art/compiler/utils/
Dassembler_test.h166 while ((reg1_index = base.find(REG1_TOKEN)) != std::string::npos) {
172 while ((reg2_index = base.find(REG2_TOKEN)) != std::string::npos) {
177 if (imm_index != std::string::npos) {
220 while ((reg1_index = base.find(REG1_TOKEN)) != std::string::npos) { in RepeatTemplatedRegistersImmBits()
226 while ((reg2_index = base.find(REG2_TOKEN)) != std::string::npos) { in RepeatTemplatedRegistersImmBits()
232 while ((reg3_index = base.find(REG3_TOKEN)) != std::string::npos) { in RepeatTemplatedRegistersImmBits()
237 if (imm_index != std::string::npos) { in RepeatTemplatedRegistersImmBits()
279 while ((reg1_index = base.find(REG1_TOKEN)) != std::string::npos) { in RepeatTemplatedImmBitsRegisters()
285 while ((reg2_index = base.find(REG2_TOKEN)) != std::string::npos) { in RepeatTemplatedImmBitsRegisters()
290 if (imm_index != std::string::npos) { in RepeatTemplatedImmBitsRegisters()
[all …]
Dassembler_test_base.h279 if (line.find(".text") != line.npos) { in Objdump()
456 if (last_slash == std::string::npos) { in FileExists()
462 if (space_index == std::string::npos) { in FileExists()
/art/runtime/arch/mips64/
Dinstruction_set_features_mips64.cc66 if (line.find("ASEs") != std::string::npos) { in FromCpuInfo()
68 if (line.find("msa") != std::string::npos) { in FromCpuInfo()
/art/profman/
Dprofile_assistant_test.cc778 EXPECT_NE(output_file_contents.find(kCleanClass + "\n"), std::string::npos) in TEST_F()
780 EXPECT_NE(output_file_contents.find(kDirtyClass + "\n"), std::string::npos) in TEST_F()
783 EXPECT_EQ(output_file_contents.find(kUncommonCleanClass + "\n"), std::string::npos) in TEST_F()
785 EXPECT_EQ(output_file_contents.find(kUncommonDirtyClass + "\n"), std::string::npos) in TEST_F()
788 EXPECT_NE(output_file_contents.find("Ljava/lang/Comparable;\n"), std::string::npos) in TEST_F()
791 EXPECT_NE(output_file_contents.find("HSP" + kHotMethod), std::string::npos) in TEST_F()
793 EXPECT_NE(output_file_contents.find("P" + kOtherMethod), std::string::npos) in TEST_F()
796 EXPECT_EQ(output_file_contents.find("Ljava/util/HashMap;\n"), std::string::npos) in TEST_F()
800 EXPECT_EQ(output_file_contents.find("HP" + kOtherMethod), std::string::npos) in TEST_F()
803 EXPECT_NE(output_file_contents.find("HP" + kMultiMethod), std::string::npos) in TEST_F()
[all …]
/art/compiler/debug/dwarf/
Ddwarf_test.h129 if (actual_line->find(substring) == std::string::npos) { in CheckObjdumpOutput()
140 if (it->find(substring) != std::string::npos) { in CheckObjdumpOutput()
/art/runtime/arch/mips/
Dinstruction_set_features_mips.cc144 if (line.find("ASEs") != std::string::npos) { in FromCpuInfo()
146 if (line.find("msa") != std::string::npos) { in FromCpuInfo()
/art/dexdump/
Ddexdump_cfg.cc112 while (cur_start != std::string::npos) { in dumpMethodCFGImpl()
114 if (next_escape == std::string::npos) { in dumpMethodCFGImpl()
130 next_escape = std::string::npos; in dumpMethodCFGImpl()
/art/compiler/debug/
Delf_debug_line_writer.h187 if (file_name_slash == std::string::npos && // Just filename. in WriteCompilationUnit()
189 class_name_slash != std::string::npos) { // Has package name. in WriteCompilationUnit()
/art/dex2oat/
Ddex2oat_test.cc296 EXPECT_NE(output_.find("Large app, accepted running with swap."), std::string::npos) in CheckHostResult()
299 EXPECT_EQ(output_.find("Large app, accepted running with swap."), std::string::npos) in CheckHostResult()
322 EXPECT_NE(output_.find("dex2oat took"), std::string::npos) << output_; in CheckHostValidity()
355 EXPECT_NE(output_.find("Large app, accepted running with swap."), std::string::npos) in CheckHostResult()
358 EXPECT_EQ(output_.find("Large app, accepted running with swap."), std::string::npos) in CheckHostResult()
575 EXPECT_NE(output_.find("Very large app, downgrading to"), std::string::npos) << output_; in CheckHostResult()
577 EXPECT_EQ(output_.find("Very large app, downgrading to"), std::string::npos) << output_; in CheckHostResult()
597 EXPECT_NE(output_.find("dex2oat took"), std::string::npos) << output_; in CheckHostValidity()
844 EXPECT_NE(output_.find("dex2oat took"), std::string::npos) << output_; in CheckHostValidity()
Ddex2oat.cc1024 if (last_oat_slash == std::string::npos) { in ExpandOatAndImageFilenames()
1029 if (base_oat.find('@', last_oat_slash) != std::string::npos) { in ExpandOatAndImageFilenames()
1036 if (last_img_slash == std::string::npos) { in ExpandOatAndImageFilenames()
1041 if (base_img.find('@', last_img_slash) != std::string::npos) { in ExpandOatAndImageFilenames()
1048 if (prefix.rfind('.') != std::string::npos) { in ExpandOatAndImageFilenames()
1064 if (last_dex_slash != std::string::npos) { in ExpandOatAndImageFilenames()
1068 if (last_dex_dot != std::string::npos) { in ExpandOatAndImageFilenames()
1080 if (last_symbol_oat_slash == std::string::npos) { in ExpandOatAndImageFilenames()
1118 if (last_dex_slash != std::string::npos) { in CreateMultiImageName()
1127 if (last_dot != std::string::npos) { in CreateMultiImageName()
[all …]
/art/dexlayout/
Ddexdiag.cc306 if (match_loc != std::string::npos && mapped_name.length() == match_loc + strlen(suffix)) { in IsVdexFileMapping()
395 if (match_loc != std::string::npos && mapped_name.length() == match_loc + strlen(suffix)) { in IsOatFileMapping()
427 if (mapped_file_name.find(name_contains) != std::string::npos) { in FilterByNameContains()
/art/compiler/optimizing/
Doptimizing_unit_test.h117 DCHECK_NE(pos, std::string::npos) in Patch()
/art/compiler/driver/
Dcompiler_options.h203 if (pretty_method.find(cur_method) != std::string::npos) { in IsVerboseMethod()
/art/runtime/openjdkjvmti/
Dti_properties.cc165 if (assign_pos != std::string::npos && assign_pos > 0) { in GetLibraryPath()

123