Home
last modified time | relevance | path

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

123

/art/compiler/
Dcfi_test.h85 static size_t FindEndOf(const std::string& str, const char* substr) { in FindEndOf() argument
86 size_t pos = str.find(substr); in FindEndOf()
88 return pos + strlen(substr); in FindEndOf()
96 line = line.substr(0, FindEndOf(line, ": ")) + in ReformatAsm()
97 line.substr(FindEndOf(line, "\t")); in ReformatAsm()
118 address = "0x" + line.substr(line.size() - 8); in ReformatCfi()
132 new_line = ".cfi_" + new_line.substr(FindEndOf(new_line, "DW_CFA_")); in ReformatCfi()
/art/libartbase/base/
Dstring_view_cpp20.h31 return sv.substr(0u, prefix.size()) == prefix; in StartsWith()
35 return sv.size() >= suffix.size() && sv.substr(sv.size() - suffix.size()) == suffix; in EndsWith()
/art/dexoptanalyzer/
Ddexoptanalyzer.cc175 option.substr(strlen("--profile-analysis-result="))), nullptr, 0); in ParseArgs()
183 dex_file_ = std::string(option.substr(strlen("--dex-file="))); in ParseArgs()
196 image_ = std::string(option.substr(strlen("--image="))); in ParseArgs()
211 oat_fd_ = std::stoi(std::string(option.substr(strlen("--oat-fd="))), nullptr, 0); in ParseArgs()
216 vdex_fd_ = std::stoi(std::string(option.substr(strlen("--vdex-fd="))), nullptr, 0); in ParseArgs()
221 zip_fd_ = std::stoi(std::string(option.substr(strlen("--zip-fd="))), nullptr, 0); in ParseArgs()
226 context_str_ = std::string(option.substr(strlen("--class-loader-context="))); in ParseArgs()
229 std::string(option.substr(strlen("--class-loader-context-fds="))); in ParseArgs()
311 ? dex_file_.substr(0, dir_index) in GetDexOptNeeded()
/art/tools/veridex/
Dhidden_api.cc45 AddSignatureToApiList(signature.substr(0, pos), membership); in HiddenApi()
49 AddSignatureToApiList(signature.substr(0, pos), membership); in HiddenApi()
54 AddSignatureToApiList(signature.substr(0, pos), membership); in HiddenApi()
Dhidden_api.h100 return signature.substr(0, pos); in GetApiClassName()
/art/test/596-app-images/
Dapp_images.cc46 loc_name = loc_name.substr(idx + 1); in check_name()
50 loc_name = loc_name.substr(0, idx); in check_name()
/art/profman/
Dprofman.cc259 std::string option_name(option_prefix.substr(option_prefix.size() - 1u)); in ParseUintOption()
273 std::string option_name(option_prefix.substr(option_prefix.size() - 1u)); in ParseBoolOption()
299 std::string option_name(option_prefix.substr(option_prefix.size() - 1u)); in ParseOutputProfileType()
354 create_profile_from_file_ = std::string(option.substr(strlen("--create-profile-from="))); in ParseArgs()
387 std::string(option.substr(strlen("--preloaded-classes-denylist="))); in ParseArgs()
400 Split(std::string(option.substr(strlen("--special-package="))), ':', &values); in ParseArgs()
412 boot_profile_out_path_ = std::string(option.substr(strlen("--out-profile-path="))); in ParseArgs()
415 option.substr(strlen("--out-preloaded-classes-path="))); in ParseArgs()
417 profile_files_.push_back(std::string(option.substr(strlen("--profile-file=")))); in ParseArgs()
421 reference_profile_file_ = std::string(option.substr(strlen("--reference-profile-file="))); in ParseArgs()
[all …]
/art/cmdline/
Dcmdline.h176 output_name_ = std::string(option.substr(strlen("--output="))); in Parse()
274 boot_image_location = boot_image_location.substr(/*pos*/ 0u, /*size*/ separator_pos); in ParseCheckBootImage()
285 std::string no_file_name = boot_image_location.substr(0, file_name_idx); in ParseCheckBootImage()
290 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/jvmti-agents/chain-agents/
Dchainagents.cc57 std::string first(source.substr(0, source.find(delim))); in Split()
61 return std::pair(first, source.substr(source.find(delim) + 1)); in Split()
/art/tools/hiddenapi/
Dhiddenapi.cc917 boot_dex_paths_.push_back(std::string(option.substr(strlen("--input-dex=")))); in ParseArgs()
919 output_dex_paths_.push_back(std::string(option.substr(strlen("--output-dex=")))); in ParseArgs()
921 api_flags_path_ = std::string(option.substr(strlen("--api-flags="))); in ParseArgs()
925 max_hiddenapi_level_ = std::string(option.substr(strlen("--max-hiddenapi-level="))); in ParseArgs()
936 const std::string path(std::string(option.substr(strlen("--dependency-stub-dex=")))); in ParseArgs()
941 boot_dex_paths_.push_back(std::string(option.substr(strlen("--boot-dex=")))); in ParseArgs()
944 std::string(option.substr(strlen("--public-stub-classpath="))), in ParseArgs()
948 std::string(option.substr(strlen("--system-stub-classpath="))), in ParseArgs()
952 std::string(option.substr(strlen("--test-stub-classpath="))), in ParseArgs()
956 std::string(option.substr(strlen("--core-platform-stub-classpath="))), in ParseArgs()
[all …]
/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/tools/jvmti-agents/ti-alloc-sample/
Dti_alloc_sample.cc393 sampling_rate = std::stoi(options.substr(0, comma_pos)); in ProcessOptions()
394 options = options.substr(comma_pos + 1); in ProcessOptions()
399 stack_depth_limit = std::stoi(options.substr(0, comma_pos)); in ProcessOptions()
400 output_file_path = options.substr(comma_pos + 1); in ProcessOptions()
/art/runtime/
Dclass_loader_context.cc199 std::string classpath = class_loader_spec.substr(type_str_size + 1, in ParseClassLoaderSpec()
238 class_loader_spec.substr(start_index + 1, class_loader_spec.length() - start_index - 2); in ParseClassLoaderSpec()
251 shared_libraries_spec.substr(cursor, shared_libraries_spec.length() - cursor); in ParseClassLoaderSpec()
258 shared_libraries_spec.substr(cursor, shared_library_separator - cursor); in ParseClassLoaderSpec()
269 shared_library_spec = shared_libraries_spec.substr(cursor, closing_marker + 1 - cursor); in ParseClassLoaderSpec()
343 class_loader_spec = remaining.substr(0, first_class_loader_separator); in ParseInternal()
344 remaining = remaining.substr(first_class_loader_separator + 1, in ParseInternal()
356 class_loader_spec = remaining.substr(0, shared_library_close + 1); in ParseInternal()
366 remaining = remaining.substr(shared_library_close + 2, in ParseInternal()
646 && location.substr(0, base_dir.length()) == base_dir) { in EncodeClassPath()
[all …]
Dreference_table_test.cc197 jmethodID substr = soa.Env()->GetMethodID(WellKnownClasses::java_lang_String, in TEST_F() local
200 ASSERT_TRUE(substr != nullptr); in TEST_F()
204 substr, in TEST_F()
319 std::string haystack = base.substr(summary_pos); in TEST_F()
/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/dexlayout/
Ddexlayout_test.cc294 std::string tmp_dir = tmp_name.substr(0, tmp_last_slash + 1); in DexFileOutputExec()
387 std::string tmp_dir = tmp_name.substr(0, tmp_last_slash + 1); in DexFileLayoutExec()
416 std::string tmp_dir = tmp_name.substr(0, tmp_last_slash + 1); in DexFileLayoutFixedPointExec()
479 std::string tmp_dir = tmp_name.substr(0, tmp_last_slash + 1); in UnreferencedCatchHandlerExec()
715 std::string tmp_dir = tmp_name.substr(0, tmp_last_slash + 1); in TEST_F()
753 std::string tmp_dir = tmp_name.substr(0, tmp_last_slash + 1); in TEST_F()
/art/runtime/ti/
Dagent.cc44 name_ = arg.substr(0, eq); in AgentSpec()
45 args_ = arg.substr(eq + 1, arg.length()); in AgentSpec()
/art/test/ti-agent/
Dcommon_helper.cc111 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/compiler/utils/
Dassembler_test_base.h242 output += str.substr(pos, match - pos); in Replace()
246 output += str.substr(pos, str.size() - pos); in Replace()
/art/dexdump/
Ddexdump_cfg.cc115 os << inst_str.substr(cur_start, inst_str.size() - cur_start); in DumpMethodCFG()
118 os << inst_str.substr(cur_start, next_escape - cur_start); in DumpMethodCFG()
/art/dex2oat/
Ddex2oat_image_test.cc137 std::string new_location = dir + dex_file.substr(slash_pos + 1u); in CopyDexFiles()
301 std::string mid_name = mid_location.substr(mid_slash_pos + 1u); in TEST_F()
309 std::string tail_name = tail_location.substr(tail_slash_pos + 1u); in TEST_F()
396 std::string single_name = single_location.substr(single_slash_pos + 1u); in TEST_F()
/art/libdexfile/dex/
Ddex_file_loader.h103 return (pos == std::string::npos) ? std::string() : location.substr(pos); in GetMultiDexSuffix()

123