Home
last modified time | relevance | path

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

/frameworks/native/cmds/installd/
Ddexopt.cpp2332 static bool move_ab_path(const std::string& b_path, const std::string& a_path) { in move_ab_path() argument
2336 if (stat(b_path.c_str(), &s) != 0) { in move_ab_path()
2339 LOG(VERBOSE) << "A/B artifact " << b_path << " does not exist!"; in move_ab_path()
2343 LOG(ERROR) << "A/B artifact " << b_path << " is not a regular file."; in move_ab_path()
2345 unlink(b_path.c_str()); in move_ab_path()
2351 if (!unlink_and_rename(b_path.c_str(), a_path.c_str())) { in move_ab_path()
2353 if (unlink(b_path.c_str()) != 0) { in move_ab_path()
2354 PLOG(ERROR) << "Could not unlink " << b_path; in move_ab_path()
2393 const std::string b_path = StringPrintf("%s.%s", a_path, slot_suffix.c_str()); in move_ab() local
2400 if (move_ab_path(b_path, a_path)) { in move_ab()