Home
last modified time | relevance | path

Searched refs:substr (Results 1 – 25 of 43) sorted by relevance

12

/art/compiler/
Dcfi_test.h84 static size_t FindEndOf(const std::string& str, const char* substr) { in FindEndOf() argument
85 size_t pos = str.find(substr); in FindEndOf()
87 return pos + strlen(substr); in FindEndOf()
95 line = line.substr(0, FindEndOf(line, ": ")) + in ReformatAsm()
96 line.substr(FindEndOf(line, "\t")); in ReformatAsm()
117 address = "0x" + line.substr(line.size() - 8); in ReformatCfi()
131 new_line = ".cfi_" + new_line.substr(FindEndOf(new_line, "DW_CFA_")); in ReformatCfi()
/art/dexoptanalyzer/
Ddexoptanalyzer.cc144 dex_file_ = option.substr(strlen("--dex-file=")).ToString(); in ParseArgs()
146 std::string filter_str = option.substr(strlen("--compiler-filter=")).ToString(); in ParseArgs()
151 std::string isa_str = option.substr(strlen("--isa=")).ToString(); in ParseArgs()
157 image_ = option.substr(strlen("--image=")).ToString(); in ParseArgs()
161 std::string new_android_data = option.substr(strlen("--android-data=")).ToString(); in ParseArgs()
/art/dex2oat/
Ddex2oat.cc634 const char* image_base_str = option.substr(strlen("--base=")).data(); in ParseBase()
644 StringPiece instruction_set_str = option.substr(strlen("--instruction-set=")).data(); in ParseInstructionSet()
658 StringPiece str = option.substr(strlen("--instruction-set-variant=")).data(); in ParseInstructionSetVariant()
668 StringPiece str = option.substr(strlen("--instruction-set-features=")).data(); in ParseInstructionSetFeatures()
688 StringPiece backend_str = option.substr(strlen("--compiler-backend=")).data(); in ParseCompilerBackend()
699 const StringPiece substr("--image-format="); in ParseImageFormat() local
700 DCHECK(option.starts_with(substr)); in ParseImageFormat()
701 const StringPiece format_str = option.substr(substr.length()); in ParseImageFormat()
966 base_oat = base_oat.substr(0, last_oat_slash + 1); in ExpandOatAndImageFilenames()
981 std::string prefix = base_img.substr(last_img_slash + 1); in ExpandOatAndImageFilenames()
[all …]
/art/cmdline/
Dcmdline.h145 boot_image_location_ = option.substr(strlen("--boot-image=")).data(); in Parse()
147 StringPiece instruction_set_str = option.substr(strlen("--instruction-set=")).data(); in Parse()
155 output_name_ = option.substr(strlen("--output=")).ToString(); in Parse()
248 std::string no_file_name = boot_image_location.substr(0, file_name_idx); in ParseCheckBootImage()
253 parent_dir_name = no_file_name.substr(ancestor_dirs_idx + 1); in ParseCheckBootImage()
Dtoken_range.h284 std::string wildcard_substr = string.substr(wildcard_idx, wildcard_length); in MatchSubstrings()
310 new_token_list.push_back(string.substr(next_token_idx, tok.size())); in MatchSubstrings()
358 std::string name_prefix = name.substr(0, wildcard_idx); in MaybeMatches()
Dcmdline_types.h105 Result parse_attempt = ParseJdwpOption(jdwp_option.substr(0, equals_pos),
106 jdwp_option.substr(equals_pos + 1),
156 jdwp_options->host = value.substr(0, colon);
157 port_string = value.substr(colon + 1);
701 return source.substr(prefix_idx + 1);
/art/compiler/driver/
Dcompiler_options.cc137 std::string file_name = option.substr(strlen("--dump-init-failures=")).data(); in ParseDumpInitFailures()
151 StringPiece choice = option.substr(strlen("--register-allocation-strategy=")).data(); in ParseRegisterAllocationStrategy()
163 const char* compiler_filter_string = option.substr(strlen("--compiler-filter=")).data(); in ParseCompilerOption()
202 dump_cfg_file_name_ = option.substr(strlen("--dump-cfg=")).data(); in ParseCompilerOption()
/art/test/ti-stress/
Dstress.cc169 data->dexter_cmd = ops.substr(0, ops.find(',')); in ReadOptions()
170 ops = ops.substr(ops.find(',') + 1); in ReadOptions()
171 data->in_temp_dex = ops.substr(0, ops.find(',')); in ReadOptions()
172 ops = ops.substr(ops.find(',') + 1); in ReadOptions()
/art/runtime/base/unix_file/
Drandom_access_file_test.h98 content.substr(0, short_request)); in TestReadContent()
106 content.substr(non_zero_offset, short_request)); in TestReadContent()
128 ASSERT_EQ(content.substr(0, 2), new_content); in TestSetLength()
/art/compiler/debug/dwarf/
Ddwarf_test.h54 void Check(const char* substr, bool next, const char* at_file, int at_line) { in Check() argument
55 expected_lines_.push_back(ExpectedLine {substr, next, at_file, at_line}); in Check()
/art/profman/
Dprofman.cc197 create_profile_from_file_ = option.substr(strlen("--create-profile-from=")).ToString(); in ParseArgs()
201 profile_files_.push_back(option.substr(strlen("--profile-file=")).ToString()); in ParseArgs()
205 reference_profile_file_ = option.substr(strlen("--reference-profile-file=")).ToString(); in ParseArgs()
209 dex_locations_.push_back(option.substr(strlen("--dex-location=")).ToString()); in ParseArgs()
213 apk_files_.push_back(option.substr(strlen("--apk=")).ToString()); in ParseArgs()
215 test_profile_ = option.substr(strlen("--generate-test-profile=")).ToString(); in ParseArgs()
700 klass = line.substr(0, method_sep_index); in ProcessLine()
701 method_str = line.substr(method_sep_index + kMethodSep.size()); in ProcessLine()
/art/dexlayout/
Ddexlayout_test.cc286 std::string tmp_dir = tmp_name.substr(0, tmp_last_slash + 1); in DexFileOutputExec()
297 std::string dex_file_name = dex_file.substr(dex_file_last_slash + 1); in DexFileOutputExec()
325 std::string tmp_dir = tmp_name.substr(0, tmp_last_slash + 1); in DexFileLayoutExec()
358 std::string tmp_dir = tmp_name.substr(0, tmp_last_slash + 1); in UnreferencedCatchHandlerExec()
/art/compiler/jit/
Djit_compiler.cc125 StringPiece str = option.substr(strlen("--instruction-set-variant=")).data(); in JitCompiler()
133 StringPiece str = option.substr(strlen("--instruction-set-features=")).data(); in JitCompiler()
/art/runtime/openjdkjvmti/
Dti_properties.cc166 if (prop_assignment.substr(0, assign_pos) == kPropertyLibraryPath) { in GetLibraryPath()
167 return Copy(env, prop_assignment.substr(assign_pos + 1).c_str(), value_ptr); in GetLibraryPath()
Dti_class_definition.cc76 name_ = descriptor.substr(1, descriptor.size() - 2); in InitCommon()
/art/runtime/ti/
Dagent.cc134 name_ = arg.substr(0, eq); in Agent()
135 args_ = arg.substr(eq + 1, arg.length()); in Agent()
/art/runtime/base/
Dstringpiece.cc90 StringPiece StringPiece::substr(size_type pos, size_type n) const { in substr() function in art::StringPiece
Dstringpiece.h149 StringPiece substr(size_type pos, size_type n = npos) const;
/art/patchoat/
Dpatchoat.cc763 output_image_filename.substr(0, output_image_filename.find_last_of('/')); in patchoat_image()
807 const char* isa_str = option.substr(strlen("--instruction-set=")).data(); in patchoat()
813 input_image_location = option.substr(strlen("--input-image-location=")).data(); in patchoat()
815 output_image_filename = option.substr(strlen("--output-image-file=")).data(); in patchoat()
817 const char* base_delta_str = option.substr(strlen("--base-offset-delta=")).data(); in patchoat()
/art/dexdump/
Ddexdump_cfg.cc115 os << inst_str.substr(cur_start, inst_str.size() - cur_start); in dumpMethodCFGImpl()
118 os << inst_str.substr(cur_start, next_escape - cur_start); in dumpMethodCFGImpl()
/art/runtime/
Doat_file_assistant.cc132 std::string parent = dex_location_.substr(0, pos); in OatFileAssistant()
208 const char* compiler_filter_string = option.substr(strlen("--compiler-filter=")).data(); in GetRuntimeCompilerFilterOption()
535 std::string dir = location.substr(0, pos+1); in DexLocationToOdexNames()
548 std::string file = location.substr(pos+1); in DexLocationToOdexNames()
554 std::string base = file.substr(0, pos); in DexLocationToOdexNames()
Dutils.cc726 stats = stats.substr(stats.find(')') + 2); in GetTaskStats()
883 return filename.substr(0, last_ext + 1) + new_extension; in ReplaceFileExtension()
900 *parsed_value = s.substr(colon + 1); in ParseStringAfterChar()
Dutils.h231 const char* value_string = option.substr(option_prefix.size()).data();
/art/oatdump/
Doatdump.cc1018 dex_orig_name = dex_file_location.substr(dex_orig_pos + 1); in ExportDexFile()
1027 dex_orig_name = dex_file_location.substr(++apk_orig_pos); in ExportDexFile()
2940 line.substr(0, first_space), in DumpImt()
2941 line.substr(first_space + 1, std::string::npos), in DumpImt()
3331 oat_filename_ = option.substr(strlen("--oat-file=")).data(); in ParseCustom()
3333 image_location_ = option.substr(strlen("--image=")).data(); in ParseCustom()
3343 oat_filename_ = option.substr(strlen("--symbolize=")).data(); in ParseCustom()
3348 class_filter_ = option.substr(strlen("--class-filter=")).data(); in ParseCustom()
3350 method_filter_ = option.substr(strlen("--method-filter=")).data(); in ParseCustom()
3356 export_dex_location_ = option.substr(strlen("--export-dex-to=")).data(); in ParseCustom()
[all …]
/art/compiler/debug/
Delf_debug_line_writer.h190 std::string package_name = class_name.substr(1, class_name_slash - 1); in WriteCompilationUnit()

12