Lines Matching refs:std
63 int32_t ExtractUpdaterBinary(PkgManager::PkgManagerPtr manager, std::string &packagePath,
64 const std::string &updaterBinary)
91 int GetUpdatePackageInfo(PkgManager::PkgManagerPtr pkgManager, const std::string &path)
93 std::vector<std::string> components;
109 std::vector<uint64_t> stashSizeList = GetStashSizeList(upParams);
127 std::vector<uint64_t> GetStashSizeList(const UpdaterParams &upParams)
129 const std::string maxStashFileName = "all_max_stash";
130 std::vector<uint64_t> stashSizeList;
136 return std::vector<uint64_t> {};
139 std::vector<std::string> fileIds;
145 return std::vector<uint64_t> {};
163 return std::vector<uint64_t> {};
171 return std::vector<uint64_t> {};
175 std::string str(reinterpret_cast<char*>(data.buffer), data.length);
176 int64_t maxStashSize = std::stoll(str);
237 __attribute__((weak)) bool PreStartBinaryEntry([[maybe_unused]] const std::string &path)
295 void SetProgress(const std::vector<std::string> &output, UpdaterParams &upParams)
306 float frac = std::stof(output[1]);
329 void HandleChildOutput(const std::string &buffer, int32_t bufferLen, bool &retryUpdate, UpdaterParams &upParams)
334 std::string str = buffer;
335 std::vector<std::string> output = SplitString(str, ":");
354 std::vector<std::string> progress = SplitString(outputInfo, ",");
358 frac = std::stof(progress[0]);
368 void ExcuteSubProc(const UpdaterParams &upParams, const std::string &fullPath, int pipeWrite)
384 const std::string retryPara = upParams.retryCount > 0 ? "retry=1" : "retry=0";
386 std::to_string(pipeWrite).c_str(), retryPara.c_str(), nullptr);
458 std::string fullPath = GetWorkPath() + std::string(UPDATER_BINARY);
502 std::string GetWorkPath()
508 return std::string(SYS_INSTALLER_PATH) + "/";