Home
last modified time | relevance | path

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

/frameworks/native/cmds/installd/
Ddexopt.cpp853 std::string new_path = oat_path; in replace_file_extension() local
854 new_path.replace(new_path.length() - strlen(".dex"), strlen(".dex"), new_ext); in replace_file_extension()
855 CHECK(EndsWith(new_path, new_ext.c_str())); in replace_file_extension()
856 return new_path; in replace_file_extension()
863 std::string new_path = oat_path; in replace_file_extension() local
864 new_path.replace(odex_pos, strlen(".odex"), new_ext); in replace_file_extension()
865 CHECK_NE(new_path.find(new_ext), std::string::npos); in replace_file_extension()
866 return new_path; in replace_file_extension()
Dotapreopt.cpp1066 std::string new_path = StringPrintf("%s/oat/%s/%s.odex.%s", in calculate_odex_file_path() local
1071 if (new_path.length() >= PKG_PATH_MAX) { in calculate_odex_file_path()
1072 LOG(ERROR) << "apk_path of " << apk_path << " is too long: " << new_path; in calculate_odex_file_path()
1075 strcpy(path, new_path.c_str()); in calculate_odex_file_path()
/frameworks/native/cmds/dumpstate/
Ddumpstate.cpp1779 std::string new_path = ds.GetPath(".zip"); in main() local
1780 if (ds.path_ != new_path) { in main()
1781 MYLOGD("Renaming zip file from %s to %s\n", ds.path_.c_str(), new_path.c_str()); in main()
1782 if (rename(ds.path_.c_str(), new_path.c_str())) { in main()
1783 MYLOGE("rename(%s, %s): %s\n", ds.path_.c_str(), new_path.c_str(), in main()
1786 ds.path_ = new_path; in main()
/frameworks/base/libs/androidfw/
DAssetManager2.cpp192 const std::string new_path = "assets/" + filename; in Open() local
193 return OpenNonAsset(new_path, mode); in Open()
198 const std::string new_path = "assets/" + filename; in Open() local
199 return OpenNonAsset(new_path, cookie, mode); in Open()