Home
last modified time | relevance | path

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

12

/art/compiler/
Dcfi_test.h76 static size_t FindEndOf(const std::string& str, const char* substr) { in FindEndOf() argument
77 size_t pos = str.find(substr); in FindEndOf()
79 return pos + strlen(substr); in FindEndOf()
87 line = line.substr(0, FindEndOf(line, ": ")) + in ReformatAsm()
88 line.substr(FindEndOf(line, "\t")); in ReformatAsm()
109 address = "0x" + line.substr(line.size() - 8); in ReformatCfi()
123 new_line = ".cfi_" + new_line.substr(FindEndOf(new_line, "DW_CFA_")); in ReformatCfi()
/art/dex2oat/
Ddex2oat.cc599 const char* image_base_str = option.substr(strlen("--base=")).data(); in ParseBase()
609 StringPiece instruction_set_str = option.substr(strlen("--instruction-set=")).data(); in ParseInstructionSet()
623 StringPiece str = option.substr(strlen("--instruction-set-variant=")).data(); in ParseInstructionSetVariant()
634 StringPiece str = option.substr(strlen("--instruction-set-features=")).data(); in ParseInstructionSetFeatures()
655 StringPiece backend_str = option.substr(strlen("--compiler-backend=")).data(); in ParseCompilerBackend()
666 const StringPiece substr("--image-format="); in ParseImageFormat() local
667 DCHECK(option.starts_with(substr)); in ParseImageFormat()
668 const StringPiece format_str = option.substr(substr.length()); in ParseImageFormat()
923 base_oat = base_oat.substr(0, last_oat_slash + 1); in ExpandOatAndImageFilenames()
938 std::string prefix = base_img.substr(last_img_slash + 1); in ExpandOatAndImageFilenames()
[all …]
/art/cmdline/
Dcmdline.h143 boot_image_location_ = option.substr(strlen("--boot-image=")).data(); in Parse()
145 StringPiece instruction_set_str = option.substr(strlen("--instruction-set=")).data(); in Parse()
153 output_name_ = option.substr(strlen("--output=")).ToString(); in Parse()
246 std::string no_file_name = boot_image_location.substr(0, file_name_idx); in ParseCheckBootImage()
251 parent_dir_name = no_file_name.substr(ancestor_dirs_idx + 1); in ParseCheckBootImage()
Dcmdline_types.h101 Result parse_attempt = ParseJdwpOption(jdwp_option.substr(0, equals_pos),
102 jdwp_option.substr(equals_pos + 1),
152 jdwp_options->host = value.substr(0, colon);
153 port_string = value.substr(colon + 1);
751 parsed_value = s.substr(colon + 1);
762 return source.substr(prefix_idx + 1);
Dtoken_range.h282 std::string wildcard_substr = string.substr(wildcard_idx, wildcard_length); in MatchSubstrings()
308 new_token_list.push_back(string.substr(next_token_idx, tok.size())); in MatchSubstrings()
356 std::string name_prefix = name.substr(0, wildcard_idx); in MaybeMatches()
/art/compiler/driver/
Dcompiler_options.cc136 std::string file_name = option.substr(strlen("--dump-init-failures=")).data(); in ParseDumpInitFailures()
149 const char* compiler_filter_string = option.substr(strlen("--compiler-filter=")).data(); in ParseCompilerOption()
190 dump_cfg_file_name_ = option.substr(strlen("--dump-cfg=")).data(); in ParseCompilerOption()
/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/runtime/gc/space/
Dimage_space_fs.h125 DeleteEmptyDirectoriesUpTo(dir.substr(0, last_slash), stop_at); in DeleteEmptyDirectoriesUpTo()
278 std::string ota_source_dir = ota_filename.substr(0, last_slash); in TryMoveOTAArtifacts()
284 std::string dalvik_cache_target_dir = cache_filename.substr(0, last_cache_slash); in TryMoveOTAArtifacts()
Dimage_space.cc1548 const std::string new_prefix = input_image_file_name.substr( in CreateMultiImageLocations()
1556 std::string suffix = image.substr(old_prefix_length); in CreateMultiImageLocations()
/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.cc151 profile_files_.push_back(option.substr(strlen("--profile-file=")).ToString()); in ParseArgs()
155 reference_profile_file_ = option.substr(strlen("--reference-profile-file=")).ToString(); in ParseArgs()
159 dex_locations_.push_back(option.substr(strlen("--dex-location=")).ToString()); in ParseArgs()
/art/patchoat/
Dpatchoat.cc1004 output_image_filename.substr(0, output_image_filename.find_last_of("/")); in patchoat_image()
1264 const char* isa_str = option.substr(strlen("--instruction-set=")).data(); in patchoat()
1274 input_oat_location = option.substr(strlen("--input-oat-location=")).data(); in patchoat()
1280 input_oat_filename = option.substr(strlen("--input-oat-file=")).data(); in patchoat()
1286 const char* oat_fd_str = option.substr(strlen("--input-oat-fd=")).data(); in patchoat()
1294 input_image_location = option.substr(strlen("--input-image-location=")).data(); in patchoat()
1300 output_oat_filename = option.substr(strlen("--output-oat-file=")).data(); in patchoat()
1306 const char* oat_fd_str = option.substr(strlen("--output-oat-fd=")).data(); in patchoat()
1314 output_image_filename = option.substr(strlen("--output-image-file=")).data(); in patchoat()
1316 const char* base_delta_str = option.substr(strlen("--base-offset-delta=")).data(); in patchoat()
[all …]
/art/compiler/jit/
Djit_compiler.cc122 StringPiece str = option.substr(strlen("--instruction-set-variant=")).data(); in JitCompiler()
130 StringPiece str = option.substr(strlen("--instruction-set-features=")).data(); in JitCompiler()
/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/runtime/
Doat_file_assistant.cc390 return oat_file_location.substr(0, last_ext) + ".art"; in ArtFileName()
806 std::string dir = location.substr(0, pos+1); in DexFilenameToOdexFilename()
814 file = location.substr(pos+1); in DexFilenameToOdexFilename()
823 std::string base = file.substr(0, pos); in DexFilenameToOdexFilename()
Dutils.cc920 return s.substr(start_index, end_index - start_index + 1); in Trim()
994 stats = stats.substr(stats.find(')') + 2); in GetTaskStats()
1022 return cgroup_fields[2].substr(1); // Skip the leading slash. in GetSchedulerGroupName()
1558 os << inst_str.substr(cur_start, inst_str.size() - cur_start); in DumpMethodCFGImpl()
1561 os << inst_str.substr(cur_start, next_escape - cur_start); in DumpMethodCFGImpl()
1854 *parsed_value = s.substr(colon + 1); in ParseStringAfterChar()
Dutils.h354 const char* value_string = option.substr(option_prefix.size()).data();
/art/oatdump/
Doatdump.cc673 dex_orig_name = dex_file_location.substr(dex_orig_pos + 1); in ExportDexFile()
680 dex_orig_name = dex_file_location.substr(++apk_orig_pos); in ExportDexFile()
2385 oat_filename_ = option.substr(strlen("--oat-file=")).data(); in ParseCustom()
2387 image_location_ = option.substr(strlen("--image=")).data(); in ParseCustom()
2397 oat_filename_ = option.substr(strlen("--symbolize=")).data(); in ParseCustom()
2402 class_filter_ = option.substr(strlen("--class-filter=")).data(); in ParseCustom()
2404 method_filter_ = option.substr(strlen("--method-filter=")).data(); in ParseCustom()
2410 export_dex_location_ = option.substr(strlen("--export-dex-to=")).data(); in ParseCustom()
2412 if (!ParseUint(option.substr(strlen("--addr2instr=")).data(), &addr2instr_)) { in ParseCustom()
2417 app_image_ = option.substr(strlen("--app-image=")).data(); in ParseCustom()
[all …]
/art/compiler/debug/
Delf_debug_line_writer.h189 std::string package_name = class_name.substr(1, class_name_slash - 1); in WriteCompilationUnit()
Delf_debug_info_writer.h531 size_t element_type = WriteTypeDeclaration(desc.substr(1)); in WriteTypeDeclaration()
/art/imgdiag/
Dimgdiag.cc97 return str.substr(idx + 1); in BaseName()
1057 const char* image_diff_pid = option.substr(strlen("--image-diff-pid=")).data(); in ParseCustom()
1064 const char* zygote_diff_pid = option.substr(strlen("--zygote-diff-pid=")).data(); in ParseCustom()
/art/compiler/utils/arm/
Dassembler_arm32_test.cc321 std::string lhs = filter.substr(0, equal_sign_index); in EvalFilterString()
322 std::string rhs = filter.substr(equal_sign_index + 1, std::string::npos); in EvalFilterString()
/art/compiler/utils/
Dassembler_test_base.h458 std::string copy = file.substr(0, space_index - 1); in FileExists()
/art/runtime/jit/
Doffline_profiling_info.cc54 return dex_location.substr(last_sep_index + 1); in GetProfileDexFileKey()

12