Home
last modified time | relevance | path

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

/system/update_engine/cros/
Dreal_system_state.cc112 std::string boot_id; in Initialize() local
113 if (utils::GetBootId(&boot_id)) { in Initialize()
116 prev_boot_id != boot_id); in Initialize()
117 prefs_->SetString(kPrefsBootId, boot_id); in Initialize()
Dupdate_attempter.cc1013 string boot_id; in WriteUpdateCompletedMarker() local
1014 if (!utils::GetBootId(&boot_id)) in WriteUpdateCompletedMarker()
1016 prefs_->SetString(kPrefsUpdateCompletedOnBootId, boot_id); in WriteUpdateCompletedMarker()
1785 string boot_id; in GetBootTimeAtUpdate() local
1786 TEST_AND_RETURN_FALSE(utils::GetBootId(&boot_id)); in GetBootTimeAtUpdate()
1792 update_completed_on_boot_id != boot_id) in GetBootTimeAtUpdate()
Dupdate_attempter_unittest.cc614 string boot_id; in TEST_F() local
615 EXPECT_TRUE(utils::GetBootId(&boot_id)); in TEST_F()
617 boot_id); in TEST_F()
/system/core/libcutils/
Dashmem-dev.cpp194 std::string boot_id; in get_ashmem_device_path() local
195 if (!android::base::ReadFileToString(boot_id_path, &boot_id)) { in get_ashmem_device_path()
199 boot_id = android::base::Trim(boot_id); in get_ashmem_device_path()
201 return "/dev/ashmem" + boot_id; in get_ashmem_device_path()
/system/update_engine/aosp/
Dupdate_attempter_android_unittest.cc92 std::string boot_id; in TEST_F() local
93 utils::GetBootId(&boot_id); in TEST_F()
97 ASSERT_EQ(boot_id, prefs_boot_id); in TEST_F()
Dupdate_attempter_android.cc787 string boot_id; in WriteUpdateCompletedMarker() local
788 TEST_AND_RETURN_FALSE(utils::GetBootId(&boot_id)); in WriteUpdateCompletedMarker()
789 prefs_->SetString(kPrefsUpdateCompletedOnBootId, boot_id); in WriteUpdateCompletedMarker()
797 string boot_id; in UpdateCompletedOnThisBoot() local
798 TEST_AND_RETURN_FALSE(utils::GetBootId(&boot_id)); in UpdateCompletedOnThisBoot()
804 update_completed_on_boot_id == boot_id); in UpdateCompletedOnThisBoot()
/system/core/init/
Ddevices.cpp456 std::string boot_id; in HandleAshmemUevent() local
457 if (!ReadFileToString(boot_id_path, &boot_id)) { in HandleAshmemUevent()
461 boot_id = Trim(boot_id); in HandleAshmemUevent()
464 dup_ashmem_uevent.device_name += boot_id; in HandleAshmemUevent()
465 dup_ashmem_uevent.path += boot_id; in HandleAshmemUevent()
/system/update_engine/common/
Dutils.cc942 bool GetBootId(string* boot_id) { in GetBootId() argument
944 base::ReadFileToString(base::FilePath(kBootIdPath), boot_id)); in GetBootId()
945 base::TrimWhitespaceASCII(*boot_id, base::TRIM_TRAILING, boot_id); in GetBootId()
Dutils.h312 bool GetBootId(std::string* boot_id);