Searched refs:updateMsg (Results 1 – 2 of 2) sorted by relevance
/base/update/updater/interfaces/kits/updaterkits/ |
D | updaterkits.cpp | 28 static bool WriteToMiscAndRebootToUpdater(const struct UpdateMessage &updateMsg) in WriteToMiscAndRebootToUpdater() argument 32 int ret = strncpy_s(const_cast<char*>(updateMsg.command), sizeof(updateMsg.command), bootCmd, in WriteToMiscAndRebootToUpdater() 33 sizeof(updateMsg.command) - 1); in WriteToMiscAndRebootToUpdater() 38 WriteUpdaterMiscMsg(updateMsg); in WriteToMiscAndRebootToUpdater() 107 struct UpdateMessage updateMsg {}; in RebootAndInstallUpgradePackage() struct 108 if (!AddPkgPath(updateMsg, 0, packageName)) { in RebootAndInstallUpgradePackage() 112 WriteToMiscAndRebootToUpdater(updateMsg); in RebootAndInstallUpgradePackage() 126 struct UpdateMessage updateMsg {}; in RebootAndCleanUserData() struct 127 if (strncpy_s(updateMsg.update, sizeof(updateMsg.update), cmd.c_str(), cmd.size()) != EOK) { in RebootAndCleanUserData() 132 WriteToMiscAndRebootToUpdater(updateMsg); in RebootAndCleanUserData()
|
/base/update/updater/test/unittest/service_test/ |
D | updater_service_unittest.cpp | 125 std::string updateMsg = ""; variable 130 …EXPECT_EQ(strncpy_s(boot.update, sizeof(boot.update) - 1, updateMsg.c_str(), updateMsg.size()), 0); 146 updateMsg = "--update_package=updater_full.zip"; 148 …EXPECT_EQ(strncpy_s(boot.update, sizeof(boot.update) - 1, updateMsg.c_str(), updateMsg.size()), 0); 171 const std::string updateMsg = "--update_package=/data/updater/updater/updater_full.zip"; variable 173 …EXPECT_EQ(strncpy_s(boot.update, sizeof(boot.update) - 1, updateMsg.c_str(), updateMsg.size()), 0); 198 const std::string updateMsg = "--sdcard_update"; variable 200 …EXPECT_EQ(strncpy_s(boot.update, sizeof(boot.update) - 1, updateMsg.c_str(), updateMsg.size()), 0);
|