Home
last modified time | relevance | path

Searched refs:new_path (Results 1 – 4 of 4) sorted by relevance

/frameworks/native/cmds/installd/
Dotapreopt.cpp760 std::string new_path = StringPrintf("%s/oat/%s/%s.odex.%s", in calculate_odex_file_path() local
765 if (new_path.length() >= PKG_PATH_MAX) { in calculate_odex_file_path()
766 LOG(ERROR) << "apk_path of " << apk_path << " is too long: " << new_path; in calculate_odex_file_path()
769 strcpy(path, new_path.c_str()); in calculate_odex_file_path()
Ddexopt.cpp1030 std::string new_path = oat_path; in replace_file_extension() local
1031 new_path.replace(new_path.length() - strlen(".dex"), strlen(".dex"), new_ext); in replace_file_extension()
1032 CHECK(EndsWith(new_path, new_ext)); in replace_file_extension()
1033 return new_path; in replace_file_extension()
1040 std::string new_path = oat_path; in replace_file_extension() local
1041 new_path.replace(odex_pos, strlen(".odex"), new_ext); in replace_file_extension()
1042 CHECK_NE(new_path.find(new_ext), std::string::npos); in replace_file_extension()
1043 return new_path; in replace_file_extension()
/frameworks/native/cmds/dumpstate/
Ddumpstate.cpp1085 const std::string new_path = in DumpBlockStatFiles() local
1087 printf("------ BLOCK STAT (%s) ------\n", new_path.c_str()); in DumpBlockStatFiles()
1088 dump_files("", new_path.c_str(), skip_not_stat, dump_stat_from_fd); in DumpBlockStatFiles()
2145 std::string new_path = ds.GetPath(".zip"); in FinalizeFile() local
2146 if (ds.path_ != new_path) { in FinalizeFile()
2147 MYLOGD("Renaming zip file from %s to %s\n", ds.path_.c_str(), new_path.c_str()); in FinalizeFile()
2148 if (rename(ds.path_.c_str(), new_path.c_str())) { in FinalizeFile()
2149 MYLOGE("rename(%s, %s): %s\n", ds.path_.c_str(), new_path.c_str(), in FinalizeFile()
2152 ds.path_ = new_path; in FinalizeFile()
/frameworks/base/libs/androidfw/
DAssetManager2.cpp293 const std::string new_path = "assets/" + filename; in Open() local
294 return OpenNonAsset(new_path, mode); in Open()
299 const std::string new_path = "assets/" + filename; in Open() local
300 return OpenNonAsset(new_path, cookie, mode); in Open()