diff options
| author | 2016-12-13 21:54:10 +0000 | |
|---|---|---|
| committer | 2016-12-13 21:54:11 +0000 | |
| commit | d812f782978932f790b7e844cd992f116776b6e3 (patch) | |
| tree | dcd3ddd17907847d49fc5ea8cf36db3fd78c74f4 /patchoat/patchoat.cc | |
| parent | 0955e348436130df87ee8f2075b492a66c5232ef (diff) | |
| parent | 9186ced255f2e7402646b5b286deebb540640734 (diff) | |
Merge "ART: Clean up utils.h"
Diffstat (limited to 'patchoat/patchoat.cc')
| -rw-r--r-- | patchoat/patchoat.cc | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/patchoat/patchoat.cc b/patchoat/patchoat.cc index cb5a79068a..62d1ddff75 100644 --- a/patchoat/patchoat.cc +++ b/patchoat/patchoat.cc @@ -24,6 +24,8 @@ #include <string> #include <vector> +#include "android-base/strings.h" + #include "art_field-inl.h" #include "art_method-inl.h" #include "base/dumpable.h" @@ -286,8 +288,8 @@ bool PatchOat::Patch(const std::string& image_location, std::string converted_image_filename = space->GetImageLocation(); std::replace(converted_image_filename.begin() + 1, converted_image_filename.end(), '/', '@'); std::string output_image_filename = output_directory + - (StartsWith(converted_image_filename, "/") ? "" : "/") + - converted_image_filename; + (android::base::StartsWith(converted_image_filename, "/") ? "" : "/") + + converted_image_filename; std::string output_vdex_filename = ImageHeader::GetVdexLocationFromImageLocation(output_image_filename); std::string output_oat_filename = @@ -343,8 +345,8 @@ bool PatchOat::Patch(const std::string& image_location, std::string converted_image_filename = space->GetImageLocation(); std::replace(converted_image_filename.begin() + 1, converted_image_filename.end(), '/', '@'); std::string output_image_filename = output_directory + - (StartsWith(converted_image_filename, "/") ? "" : "/") + - converted_image_filename; + (android::base::StartsWith(converted_image_filename, "/") ? "" : "/") + + converted_image_filename; bool new_oat_out; std::unique_ptr<File> output_image_file(CreateOrOpen(output_image_filename.c_str(), &new_oat_out)); @@ -932,7 +934,7 @@ static std::string CommandLine() { for (int i = 0; i < orig_argc; ++i) { command.push_back(orig_argv[i]); } - return Join(command, ' '); + return android::base::Join(command, ' '); } static void UsageErrorV(const char* fmt, va_list ap) { |