Home
last modified time | relevance | path

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

/system/update_engine/
Dreal_system_state.cc109 std::string boot_id; in Initialize() local
110 if (utils::GetBootId(&boot_id)) { in Initialize()
113 prev_boot_id != boot_id); in Initialize()
114 prefs_->SetString(kPrefsBootId, boot_id); in Initialize()
Dupdate_attempter_android.cc522 string boot_id; in WriteUpdateCompletedMarker() local
523 TEST_AND_RETURN_FALSE(utils::GetBootId(&boot_id)); in WriteUpdateCompletedMarker()
524 prefs_->SetString(kPrefsUpdateCompletedOnBootId, boot_id); in WriteUpdateCompletedMarker()
532 string boot_id; in UpdateCompletedOnThisBoot() local
533 TEST_AND_RETURN_FALSE(utils::GetBootId(&boot_id)); in UpdateCompletedOnThisBoot()
539 update_completed_on_boot_id == boot_id); in UpdateCompletedOnThisBoot()
Dupdate_attempter.cc835 string boot_id; in WriteUpdateCompletedMarker() local
836 if (!utils::GetBootId(&boot_id)) in WriteUpdateCompletedMarker()
838 prefs_->SetString(kPrefsUpdateCompletedOnBootId, boot_id); in WriteUpdateCompletedMarker()
1568 string boot_id; in GetBootTimeAtUpdate() local
1569 TEST_AND_RETURN_FALSE(utils::GetBootId(&boot_id)); in GetBootTimeAtUpdate()
1575 update_completed_on_boot_id != boot_id) in GetBootTimeAtUpdate()
Dupdate_attempter_unittest.cc263 string boot_id; in TEST_F() local
264 EXPECT_TRUE(utils::GetBootId(&boot_id)); in TEST_F()
265 fake_prefs.SetString(kPrefsUpdateCompletedOnBootId, boot_id); in TEST_F()
/system/update_engine/common/
Dutils.cc1223 bool GetBootId(string* boot_id) { in GetBootId() argument
1225 base::ReadFileToString(base::FilePath(kBootIdPath), boot_id)); in GetBootId()
1226 base::TrimWhitespaceASCII(*boot_id, base::TRIM_TRAILING, boot_id); in GetBootId()
Dutils.h369 bool GetBootId(std::string* boot_id);