/art/runtime/base/ |
D | stringpiece.cc | 45 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()
|
D | stringpiece.h | 41 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/ |
D | reference_table_test.cc | 83 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 …]
|
D | indirect_reference_table_test.cc | 37 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/ |
D | cfi_test.h | 86 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/ |
D | assembler_arm_test.h | 102 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/ |
D | instruction_set_features_x86.cc | 180 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/ |
D | token_range.h | 243 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()
|
D | cmdline.h | 240 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()
|
D | cmdline_types.h | 102 if (equals_pos == std::string::npos) { 157 if (colon != std::string::npos) { 699 if (prefix_idx == std::string::npos) {
|
/art/runtime/arch/arm/ |
D | instruction_set_features_arm.cc | 154 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/ |
D | assembler_test.h | 166 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 …]
|
D | assembler_test_base.h | 279 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/ |
D | instruction_set_features_mips64.cc | 66 if (line.find("ASEs") != std::string::npos) { in FromCpuInfo() 68 if (line.find("msa") != std::string::npos) { in FromCpuInfo()
|
/art/profman/ |
D | profile_assistant_test.cc | 778 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/ |
D | dwarf_test.h | 129 if (actual_line->find(substring) == std::string::npos) { in CheckObjdumpOutput() 140 if (it->find(substring) != std::string::npos) { in CheckObjdumpOutput()
|
/art/runtime/arch/mips/ |
D | instruction_set_features_mips.cc | 144 if (line.find("ASEs") != std::string::npos) { in FromCpuInfo() 146 if (line.find("msa") != std::string::npos) { in FromCpuInfo()
|
/art/dexdump/ |
D | dexdump_cfg.cc | 112 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/ |
D | elf_debug_line_writer.h | 187 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/ |
D | dex2oat_test.cc | 296 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()
|
D | dex2oat.cc | 1024 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/ |
D | dexdiag.cc | 306 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/ |
D | optimizing_unit_test.h | 117 DCHECK_NE(pos, std::string::npos) in Patch()
|
/art/compiler/driver/ |
D | compiler_options.h | 203 if (pretty_method.find(cur_method) != std::string::npos) { in IsVerboseMethod()
|
/art/runtime/openjdkjvmti/ |
D | ti_properties.cc | 165 if (assign_pos != std::string::npos && assign_pos > 0) { in GetLibraryPath()
|