Home
last modified time | relevance | path

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

123

/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.cc160 dex_file_ = option.substr(strlen("--dex-file=")).ToString(); in ParseArgs()
162 std::string filter_str = option.substr(strlen("--compiler-filter=")).ToString(); in ParseArgs()
167 std::string isa_str = option.substr(strlen("--isa=")).ToString(); in ParseArgs()
173 image_ = option.substr(strlen("--image=")).ToString(); in ParseArgs()
177 std::string new_android_data = option.substr(strlen("--android-data=")).ToString(); in ParseArgs()
182 oat_fd_ = std::stoi(option.substr(strlen("--oat-fd=")).ToString(), nullptr, 0); in ParseArgs()
187 vdex_fd_ = std::stoi(option.substr(strlen("--vdex-fd=")).ToString(), nullptr, 0); in ParseArgs()
192 zip_fd_ = std::stoi(option.substr(strlen("--zip-fd=")).ToString(), nullptr, 0); in ParseArgs()
197 std::string context_str = option.substr(strlen("--class-loader-context=")).ToString(); in ParseArgs()
/art/tools/veridex/
Dhidden_api.cc58 entries.insert(str.substr(0, pos)); in FillList()
62 entries.insert(str.substr(0, pos)); in FillList()
67 entries.insert(str.substr(0, pos)); in FillList()
/art/cmdline/
Dcmdline.h148 boot_image_location_ = option.substr(strlen("--boot-image=")).data(); in Parse()
150 StringPiece instruction_set_str = option.substr(strlen("--instruction-set=")).data(); in Parse()
158 output_name_ = option.substr(strlen("--output=")).ToString(); in Parse()
255 std::string no_file_name = boot_image_location.substr(0, file_name_idx); in ParseCheckBootImage()
260 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()
/art/libartbase/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/tools/hiddenapi/
Dhiddenapi.cc194 dex_paths_.push_back(option.substr(strlen("--dex=")).ToString()); in ParseArgs()
196 light_greylist_path_ = option.substr(strlen("--light-greylist=")).ToString(); in ParseArgs()
198 dark_greylist_path_ = option.substr(strlen("--dark-greylist=")).ToString(); in ParseArgs()
200 blacklist_path_ = option.substr(strlen("--blacklist=")).ToString(); in ParseArgs()
/art/dexlayout/
Ddexlayout_test.cc294 std::string tmp_dir = tmp_name.substr(0, tmp_last_slash + 1); in DexFileOutputExec()
303 std::string dex_file_name = dex_file.substr(dex_file_last_slash + 1); in DexFileOutputExec()
392 std::string tmp_dir = tmp_name.substr(0, tmp_last_slash + 1); in DexFileLayoutExec()
421 std::string tmp_dir = tmp_name.substr(0, tmp_last_slash + 1); in DexFileLayoutFixedPointExec()
485 std::string tmp_dir = tmp_name.substr(0, tmp_last_slash + 1); in UnreferencedCatchHandlerExec()
729 std::string tmp_dir = tmp_name.substr(0, tmp_last_slash + 1); in TEST_F()
767 std::string tmp_dir = tmp_name.substr(0, tmp_last_slash + 1); in TEST_F()
/art/compiler/debug/dwarf/
Ddwarf_test.h55 void Check(const char* substr, bool next, const char* at_file, int at_line) { in Check() argument
56 expected_lines_.push_back(ExpectedLine {substr, next, at_file, at_line}); in Check()
/art/libartbase/base/
Dutils.cc156 stats = stats.substr(stats.find(')') + 2); in GetTaskStats()
175 *parsed_value = s.substr(colon + 1); in ParseStringAfterChar()
/art/compiler/jit/
Djit_compiler.cc111 StringPiece str = option.substr(strlen("--instruction-set-variant=")).data(); in JitCompiler()
119 StringPiece str = option.substr(strlen("--instruction-set-features=")).data(); in JitCompiler()
/art/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()
/art/runtime/
Dreference_table_test.cc193 jmethodID substr = soa.Env()->GetMethodID(WellKnownClasses::java_lang_String, in TEST_F() local
196 ASSERT_TRUE(substr != nullptr); in TEST_F()
200 substr, in TEST_F()
312 std::string haystack = base.substr(summary_pos); in TEST_F()
Doat_file_assistant.cc148 std::string parent = dex_location_.substr(0, pos); in OatFileAssistant()
235 const char* compiler_filter_string = option.substr(strlen("--compiler-filter=")).data(); in GetRuntimeCompilerFilterOption()
593 std::string dir = location.substr(0, pos+1); in DexLocationToOdexNames()
606 std::string file = location.substr(pos+1); in DexLocationToOdexNames()
612 std::string base = file.substr(0, pos); in DexLocationToOdexNames()
1218 ? oat_file_assistant_->dex_location_.substr(0, dir_index) in ClassLoaderContextIsOkay()
Ddebug_print.cc117 oss << "+" << dex_file->GetLocation().substr(base_dex_file->GetLocation().length()); in DescribeLoaders()
/art/patchoat/
Dpatchoat_test.cc401 patchoat_image_basenames[i].substr(patchoat_image_basenames[i].find_last_of("@") + 1); in TEST_F()
511 rel_shortened_basenames[i] = rel_basenames[i].substr(rel_basenames[i].find_last_of("@") + 1); in CreateRelocatedBootImage()
513 rel_shortened_basenames[i].substr(0, rel_shortened_basenames[i].find(".")); in CreateRelocatedBootImage()
517 relocated_image_basenames[i].substr(relocated_image_basenames[i].find_last_of("@") + 1); in CreateRelocatedBootImage()
519 relocated_image_shortened_basenames[i].substr( in CreateRelocatedBootImage()
Dpatchoat.cc588 + original_image_filename.substr(original_image_filename.find_last_of("/")); in Patch()
1242 const char* isa_str = option.substr(strlen("--instruction-set=")).data(); in patchoat()
1248 input_image_location = option.substr(strlen("--input-image-location=")).data(); in patchoat()
1250 output_image_directory = option.substr(strlen("--output-image-directory=")).data(); in patchoat()
1253 option.substr(strlen("--output-image-relocation-directory=")).data(); in patchoat()
1255 const char* base_delta_str = option.substr(strlen("--base-offset-delta=")).data(); in patchoat()
/art/runtime/ti/
Dagent.cc43 name_ = arg.substr(0, eq); in AgentSpec()
44 args_ = arg.substr(eq + 1, arg.length()); in AgentSpec()
/art/profman/
Dprofman.cc229 create_profile_from_file_ = option.substr(strlen("--create-profile-from=")).ToString(); in ParseArgs()
250 profile_files_.push_back(option.substr(strlen("--profile-file=")).ToString()); in ParseArgs()
254 reference_profile_file_ = option.substr(strlen("--reference-profile-file=")).ToString(); in ParseArgs()
258 dex_locations_.push_back(option.substr(strlen("--dex-location=")).ToString()); in ParseArgs()
262 apk_files_.push_back(option.substr(strlen("--apk=")).ToString()); in ParseArgs()
264 test_profile_ = option.substr(strlen("--generate-test-profile=")).ToString(); in ParseArgs()
877 klass = line.substr(0); in ProcessLine()
895 klass = line.substr(start_index, method_sep_index - start_index); in ProcessLine()
896 method_str = line.substr(method_sep_index + kMethodSep.size()); in ProcessLine()
/art/runtime/jdwp/
Djdwp_main.cc78 jdwp_options->host = value.substr(0, colon); in ParseJdwpOption()
79 port_string = value.substr(colon + 1); in ParseJdwpOption()
126 bool parse_attempt = ParseJdwpOption(jdwp_option.substr(0, equals_pos), in ParseJdwpOptions()
127 jdwp_option.substr(equals_pos + 1), in ParseJdwpOptions()
/art/test/ti-agent/
Dcommon_helper.cc110 type = type.substr(type.find(')') + 1); in GetJavaValue()
/art/tools/runtime_memusage/
Dsymbol_trace_info.py33 for ind, substr in enumerate(list_substrings):
34 if big_string.find(substr) != -1:
/art/libdexfile/dex/
Ddex_file_loader.h94 return (pos == std::string::npos) ? std::string() : location.substr(pos); in GetMultiDexSuffix()
/art/dexdump/
Ddexdump_cfg.cc117 os << inst_str.substr(cur_start, inst_str.size() - cur_start); in dumpMethodCFGImpl()
120 os << inst_str.substr(cur_start, next_escape - cur_start); in dumpMethodCFGImpl()
/art/dex2oat/
Ddex2oat.cc999 base_oat = base_oat.substr(0, last_oat_slash + 1); in ExpandOatAndImageFilenames()
1014 std::string prefix = base_img.substr(last_img_slash + 1); in ExpandOatAndImageFilenames()
1016 prefix = prefix.substr(0, prefix.rfind('.')); in ExpandOatAndImageFilenames()
1022 base_img = base_img.substr(0, last_img_slash + 1); in ExpandOatAndImageFilenames()
1032 dex_file = dex_file.substr(last_dex_slash + 1); in ExpandOatAndImageFilenames()
1036 dex_file = dex_file.substr(0, last_dex_dot); in ExpandOatAndImageFilenames()
1039 infix = dex_file.substr(strlen("core")); in ExpandOatAndImageFilenames()
1050 base_symbol_oat = base_symbol_oat.substr(0, last_symbol_oat_slash + 1); in ExpandOatAndImageFilenames()
1083 in = in.substr(last_dex_slash + 1); in CreateMultiImageName()
1096 in = in.substr(0, in.length() - strlen(".jar")) + in CreateMultiImageName()
[all …]

123