Home
last modified time | relevance | path

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

/system/update_engine/
Dreal_system_state.cc128 std::string boot_id; in Initialize() local
129 if (utils::GetBootId(&boot_id)) { in Initialize()
132 prev_boot_id != boot_id); in Initialize()
133 prefs_->SetString(kPrefsBootId, boot_id); in Initialize()
Dupdate_attempter_android_unittest.cc83 std::string boot_id; in TEST_F() local
84 utils::GetBootId(&boot_id); in TEST_F()
88 EXPECT_EQ(boot_id, prefs_boot_id); in TEST_F()
Dupdate_attempter_android.cc660 string boot_id; in WriteUpdateCompletedMarker() local
661 TEST_AND_RETURN_FALSE(utils::GetBootId(&boot_id)); in WriteUpdateCompletedMarker()
662 prefs_->SetString(kPrefsUpdateCompletedOnBootId, boot_id); in WriteUpdateCompletedMarker()
670 string boot_id; in UpdateCompletedOnThisBoot() local
671 TEST_AND_RETURN_FALSE(utils::GetBootId(&boot_id)); in UpdateCompletedOnThisBoot()
677 update_completed_on_boot_id == boot_id); in UpdateCompletedOnThisBoot()
Dupdate_attempter.cc895 string boot_id; in WriteUpdateCompletedMarker() local
896 if (!utils::GetBootId(&boot_id)) in WriteUpdateCompletedMarker()
898 prefs_->SetString(kPrefsUpdateCompletedOnBootId, boot_id); in WriteUpdateCompletedMarker()
1607 string boot_id; in GetBootTimeAtUpdate() local
1608 TEST_AND_RETURN_FALSE(utils::GetBootId(&boot_id)); in GetBootTimeAtUpdate()
1614 update_completed_on_boot_id != boot_id) in GetBootTimeAtUpdate()
Dupdate_attempter_unittest.cc356 string boot_id; in TEST_F() local
357 EXPECT_TRUE(utils::GetBootId(&boot_id)); in TEST_F()
358 fake_prefs.SetString(kPrefsUpdateCompletedOnBootId, boot_id); in TEST_F()
/system/update_engine/common/
Dutils.cc1018 bool GetBootId(string* boot_id) { in GetBootId() argument
1020 base::ReadFileToString(base::FilePath(kBootIdPath), boot_id)); in GetBootId()
1021 base::TrimWhitespaceASCII(*boot_id, base::TRIM_TRAILING, boot_id); in GetBootId()
Dutils.h305 bool GetBootId(std::string* boot_id);