Home
last modified time | relevance | path

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

/aosp12/bootable/recovery/install/
H A Dfuse_install.cpp109 std::string new_path = path + "/" + item; in BrowseDirectory() local
110 if (new_path.back() == '/') { in BrowseDirectory()
112 new_path.pop_back(); in BrowseDirectory()
113 std::string result = BrowseDirectory(new_path, device, ui); in BrowseDirectory()
117 return new_path; in BrowseDirectory()
/aosp12/bionic/libc/bionic/
H A Dsymlink.cpp32 int symlink(const char* old_path, const char* new_path) { in symlink() argument
33 return symlinkat(old_path, AT_FDCWD, new_path); in symlink()
H A Dlink.cpp32 int link(const char* old_path, const char* new_path) { in link() argument
33 return linkat(AT_FDCWD, old_path, AT_FDCWD, new_path, 0); in link()
H A Drename.cpp32 int rename(const char* old_path, const char* new_path) { in rename() argument
33 return renameat(AT_FDCWD, old_path, AT_FDCWD, new_path); in rename()
/aosp12/packages/providers/MediaProvider/jni/
H A DMediaProviderWrapper.cpp181 const string& old_path, const string& new_path, uid_t uid) { in renameInternal() argument
183 ScopedLocalRef<jstring> j_new_path(env, env->NewStringUTF(new_path.c_str())); in renameInternal()
434 int MediaProviderWrapper::Rename(const string& old_path, const string& new_path, uid_t uid) { in Rename() argument
438 int res = rename(old_path.c_str(), new_path.c_str()); in Rename()
444 return renameInternal(env, media_provider_object_, mid_rename_, old_path, new_path, uid); in Rename()
H A DMediaProviderWrapper.h210 int Rename(const std::string& old_path, const std::string& new_path, uid_t uid);
/aosp12/frameworks/native/cmds/installd/
H A Dotapreopt.cpp672 std::string new_path = StringPrintf("%s/oat/%s/%s.odex.%s", in calculate_odex_file_path() local
677 if (new_path.length() >= PKG_PATH_MAX) { in calculate_odex_file_path()
678 LOG(ERROR) << "apk_path of " << apk_path << " is too long: " << new_path; in calculate_odex_file_path()
681 strcpy(path, new_path.c_str()); in calculate_odex_file_path()
H A Ddexopt.cpp810 std::string new_path = oat_path; in replace_file_extension() local
811 new_path.replace(new_path.length() - strlen(".dex"), strlen(".dex"), new_ext); in replace_file_extension()
812 CHECK(EndsWith(new_path, new_ext)); in replace_file_extension()
813 return new_path; in replace_file_extension()
820 std::string new_path = oat_path; in replace_file_extension() local
821 new_path.replace(odex_pos, strlen(".odex"), new_ext); in replace_file_extension()
822 CHECK_NE(new_path.find(new_ext), std::string::npos); in replace_file_extension()
823 return new_path; in replace_file_extension()
/aosp12/system/update_engine/cros/
H A Dp2p_manager.cc617 FilePath new_path = path.RemoveExtension(); in FileMakeVisible() local
618 LOG_ASSERT(new_path.MatchesExtension(kP2PExtension)); in FileMakeVisible()
619 if (rename(path.value().c_str(), new_path.value().c_str()) != 0) { in FileMakeVisible()
621 << new_path.value(); in FileMakeVisible()
/aosp12/bionic/tests/
H A Dstdio_test.cpp2710 std::string new_path = td.path + "/new"s; in TEST() local
2716 ASSERT_EQ(-1, stat(new_path.c_str(), &sb)); in TEST()
2719 ASSERT_EQ(0, rename(old_path.c_str(), new_path.c_str())); in TEST()
2721 ASSERT_EQ(0, stat(new_path.c_str(), &sb)); in TEST()
2728 std::string new_path = td.path + "/new"s; in TEST() local
2734 ASSERT_EQ(-1, stat(new_path.c_str(), &sb)); in TEST()
2739 ASSERT_EQ(0, stat(new_path.c_str(), &sb)); in TEST()
2749 std::string new_path = td.path + "/new"s; in TEST()
2755 ASSERT_EQ(-1, stat(new_path.c_str(), &sb)); in TEST()
2760 ASSERT_EQ(0, stat(new_path.c_str(), &sb)); in TEST()
/aosp12/frameworks/base/libs/androidfw/
H A DAssetManager2.cpp479 const std::string new_path = "assets/" + filename; in Open() local
480 return OpenNonAsset(new_path, mode); in Open()
485 const std::string new_path = "assets/" + filename; in Open() local
486 return OpenNonAsset(new_path, cookie, mode); in Open()
/aosp12/frameworks/native/cmds/dumpstate/
H A Ddumpstate.cpp1204 const std::string new_path = in DumpBlockStatFiles() local
1206 printf("------ BLOCK STAT (%s) ------\n", new_path.c_str()); in DumpBlockStatFiles()
1207 dump_files("", new_path.c_str(), skip_not_stat, dump_stat_from_fd); in DumpBlockStatFiles()