Home
last modified time | relevance | path

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

12

/art/runtime/
Dreference_table_test.cc41 EXPECT_NE(oss.str().find("(empty)"), std::string::npos) << oss.str(); in TEST_F()
59 EXPECT_NE(oss.str().find("1 of java.lang.String"), std::string::npos) << oss.str(); in TEST_F()
60 EXPECT_EQ(oss.str().find("short[]"), std::string::npos) << oss.str(); in TEST_F()
73 std::string::npos) << oss.str(); in TEST_F()
74 EXPECT_NE(oss.str().find("1 of java.lang.String"), std::string::npos) << oss.str(); in TEST_F()
76 EXPECT_NE(oss.str().find("1 of short[]"), std::string::npos) << oss.str(); in TEST_F()
79 std::string::npos) << oss.str(); in TEST_F()
89 EXPECT_EQ(oss.str().find("java.lang.String"), std::string::npos) << oss.str(); in TEST_F()
99 EXPECT_EQ(oss.str().find("short[]"), std::string::npos) << oss.str(); in TEST_F()
101 EXPECT_NE(oss.str().find("1 of short[]"), std::string::npos) << oss.str(); in TEST_F()
[all …]
Dindirect_reference_table_test.cc33 EXPECT_EQ(oss.str().find("java.lang.Object"), std::string::npos) << oss.str(); in CheckDump()
35 EXPECT_NE(oss.str().find("1 of java.lang.Object"), std::string::npos) << oss.str(); in CheckDump()
39 std::string::npos) in CheckDump()
Ddex_file-inl.h93 if (lhs_shorty.find('L', 1) != StringPiece::npos) {
Doat_file_assistant.cc386 if (last_ext == std::string::npos) { in ArtFileName()
802 if (pos == std::string::npos) { in DexFilenameToOdexFilename()
811 if (pos == std::string::npos) { in DexFilenameToOdexFilename()
819 if (pos == std::string::npos) { in DexFilenameToOdexFilename()
/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/compiler/
Dcfi_test.h78 CHECK_NE(std::string::npos, pos); in FindEndOf()
90 while ((pos = line.find(" ")) != std::string::npos) { in ReformatAsm()
105 if (line.find("DW_CFA_nop") != std::string::npos) { in ReformatCfi()
107 } else if (line.find("DW_CFA_advance_loc") != std::string::npos) { in ReformatCfi()
110 } else if (line.find("DW_CFA_") != std::string::npos) { in ReformatCfi()
115 if ((pos = new_line.find(bad_reg)) != std::string::npos) { in ReformatCfi()
119 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 …]
Dassembler_arm32_test.cc317 if (equal_sign_index == std::string::npos) { in EvalFilterString()
322 std::string rhs = filter.substr(equal_sign_index + 1, std::string::npos); in EvalFilterString()
338 while ((reg_index = after_reg.find(reg_token)) != std::string::npos) { in TemplateHelper()
342 while ((reg_index = after_reg_filter.find(reg_token)) != std::string::npos) { in TemplateHelper()
362 while ((shift_index = after_shift.find(SHIFT_TOKEN)) != std::string::npos) { in TemplateHelper()
366 while ((shift_index = after_shift_filter.find(SHIFT_TOKEN)) != std::string::npos) { in TemplateHelper()
385 if (cond_index != std::string::npos) { in TemplateHelper()
390 if (cond_index != std::string::npos) { in TemplateHelper()
409 if (cond_index != std::string::npos) { in TemplateHelper()
414 if (cond_index != std::string::npos) { in TemplateHelper()
[all …]
/art/runtime/arch/x86/
Dinstruction_set_features_x86.cc188 if (line.find("flags") != std::string::npos) { in FromCpuInfo()
190 if (line.find("ssse3") != std::string::npos) { in FromCpuInfo()
193 if (line.find("sse4_1") != std::string::npos) { in FromCpuInfo()
196 if (line.find("sse4_2") != std::string::npos) { in FromCpuInfo()
199 if (line.find("avx") != std::string::npos) { in FromCpuInfo()
202 if (line.find("avx2") != std::string::npos) { in FromCpuInfo()
205 if (line.find("popcnt") != std::string::npos) { in FromCpuInfo()
208 } else if (line.find("processor") != std::string::npos && in FromCpuInfo()
209 line.find(": 1") != std::string::npos) { in FromCpuInfo()
/art/runtime/arch/arm/
Dinstruction_set_features_arm.cc139 if (line.find("Features") != std::string::npos) { in FromCpuInfo()
141 if (line.find("idivt") != std::string::npos) { in FromCpuInfo()
144 CHECK_NE(line.find("idiva"), std::string::npos); in FromCpuInfo()
147 if (line.find("lpae") != std::string::npos) { in FromCpuInfo()
150 } else if (line.find("processor") != std::string::npos && in FromCpuInfo()
151 line.find(": 1") != std::string::npos) { in FromCpuInfo()
/art/cmdline/
Dtoken_range.h241 TokenRange Slice(size_t offset, size_t length = std::string::npos) const {
244 if (length != std::string::npos && offset + length > Size()) {
249 if (length == std::string::npos) {
273 size_t wildcard_idx = std::string::npos; in MatchSubstrings()
280 if (wildcard_idx != std::string::npos) { in MatchSubstrings()
285 wildcard_idx = std::string::npos; in MatchSubstrings()
299 if (next_token_idx == std::string::npos) { in MatchSubstrings()
302 } else if (next_token_idx != string_idx && wildcard_idx == std::string::npos) { in MatchSubstrings()
315 if (wildcard_idx == std::string::npos) { in MatchSubstrings()
350 if (wildcard_idx == std::string::npos) { // No wildcard present in MaybeMatches()
Dcmdline.h238 if (file_name_idx == std::string::npos) { // Prevent a InsertIsaDirectory check failure. in ParseCheckBootImage()
245 if (file_name_idx != std::string::npos) { in ParseCheckBootImage()
250 if (ancestor_dirs_idx != std::string::npos) { in ParseCheckBootImage()
Dcmdline_types.h96 if (equals_pos == std::string::npos) {
151 if (colon != std::string::npos) {
747 if (colon == std::string::npos) {
758 if (prefix_idx == std::string::npos) {
/art/compiler/utils/
Dassembler_test.h161 while ((reg1_index = base.find(REG1_TOKEN)) != std::string::npos) { in RepeatTemplatedRegistersImmBits()
167 while ((reg2_index = base.find(REG2_TOKEN)) != std::string::npos) { in RepeatTemplatedRegistersImmBits()
172 if (imm_index != std::string::npos) { in RepeatTemplatedRegistersImmBits()
213 while ((reg1_index = base.find(REG1_TOKEN)) != std::string::npos) { in RepeatTemplatedImmBitsRegisters()
219 while ((reg2_index = base.find(REG2_TOKEN)) != std::string::npos) { in RepeatTemplatedImmBitsRegisters()
224 if (imm_index != std::string::npos) { in RepeatTemplatedImmBitsRegisters()
260 while ((reg_index = base.find(REG_TOKEN)) != std::string::npos) { in RepeatTemplatedRegisterImmBits()
265 if (imm_index != std::string::npos) { in RepeatTemplatedRegisterImmBits()
406 if (imm_index != std::string::npos) {
634 if ((reg_index = base.find(REG_TOKEN)) != std::string::npos) { in RepeatTemplatedRegister()
[all …]
Dassembler_test_base.h274 if (line.find(".text") != line.npos) { in Objdump()
448 if (last_slash == std::string::npos) { in FileExists()
454 if (space_index == std::string::npos) { in FileExists()
/art/runtime/arch/mips64/
Dinstruction_set_features_mips64.cc59 if (line.find("processor") != std::string::npos && line.find(": 1") != std::string::npos) { in FromCpuInfo()
/art/runtime/arch/arm64/
Dinstruction_set_features_arm64.cc83 if (line.find("processor") != std::string::npos && line.find(": 1") != std::string::npos) { in FromCpuInfo()
/art/runtime/gc/space/
Dimage_space_fs.h124 if (last_slash != std::string::npos) { in DeleteEmptyDirectoriesUpTo()
277 CHECK_NE(last_slash, std::string::npos); in TryMoveOTAArtifacts()
283 DCHECK_NE(last_cache_slash, std::string::npos); in TryMoveOTAArtifacts()
/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.cc140 if (line.find("processor") != std::string::npos && line.find(": 1") != std::string::npos) { in FromCpuInfo()
/art/dex2oat/
Ddex2oat.cc915 if (last_oat_slash == std::string::npos) { in ExpandOatAndImageFilenames()
920 if (base_oat.find('@', last_oat_slash) != std::string::npos) { in ExpandOatAndImageFilenames()
927 if (last_img_slash == std::string::npos) { in ExpandOatAndImageFilenames()
932 if (base_img.find('@', last_img_slash) != std::string::npos) { in ExpandOatAndImageFilenames()
939 if (prefix.rfind('.') != std::string::npos) { in ExpandOatAndImageFilenames()
955 if (last_dex_slash != std::string::npos) { in ExpandOatAndImageFilenames()
959 if (last_dex_dot != std::string::npos) { in ExpandOatAndImageFilenames()
991 if (last_dex_slash != std::string::npos) { in CreateMultiImageName()
1000 if (last_dot != std::string::npos) { in CreateMultiImageName()
1514 if (filter.find('/') == std::string::npos) { in Compile()
[all …]
/art/compiler/debug/
Delf_debug_line_writer.h186 if (file_name_slash == std::string::npos && // Just filename. in WriteCompilationUnit()
188 class_name_slash != std::string::npos) { // Has package name. in WriteCompilationUnit()
/art/compiler/optimizing/
Doptimizing_unit_test.h112 DCHECK_NE(pos, std::string::npos) in Patch()
/art/compiler/driver/
Dcompiler_options.h215 if (pretty_method.find(cur_method) != std::string::npos) { in IsVerboseMethod()

12