Home
last modified time | relevance | path

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

/system/update_engine/
Dreal_system_state.cc126 std::string boot_id; in Initialize() local
127 if (utils::GetBootId(&boot_id)) { in Initialize()
130 prev_boot_id != boot_id); in Initialize()
131 prefs_->SetString(kPrefsBootId, boot_id); in Initialize()
Dupdate_attempter_android_unittest.cc89 std::string boot_id; in TEST_F() local
90 utils::GetBootId(&boot_id); in TEST_F()
94 EXPECT_EQ(boot_id, prefs_boot_id); in TEST_F()
Dupdate_attempter_android.cc764 string boot_id; in WriteUpdateCompletedMarker() local
765 TEST_AND_RETURN_FALSE(utils::GetBootId(&boot_id)); in WriteUpdateCompletedMarker()
766 prefs_->SetString(kPrefsUpdateCompletedOnBootId, boot_id); in WriteUpdateCompletedMarker()
774 string boot_id; in UpdateCompletedOnThisBoot() local
775 TEST_AND_RETURN_FALSE(utils::GetBootId(&boot_id)); in UpdateCompletedOnThisBoot()
781 update_completed_on_boot_id == boot_id); in UpdateCompletedOnThisBoot()
Dupdate_attempter.cc1058 string boot_id; in WriteUpdateCompletedMarker() local
1059 if (!utils::GetBootId(&boot_id)) in WriteUpdateCompletedMarker()
1061 prefs_->SetString(kPrefsUpdateCompletedOnBootId, boot_id); in WriteUpdateCompletedMarker()
1817 string boot_id; in GetBootTimeAtUpdate() local
1818 TEST_AND_RETURN_FALSE(utils::GetBootId(&boot_id)); in GetBootTimeAtUpdate()
1824 update_completed_on_boot_id != boot_id) in GetBootTimeAtUpdate()
Dupdate_attempter_unittest.cc645 string boot_id; in TEST_F() local
646 EXPECT_TRUE(utils::GetBootId(&boot_id)); in TEST_F()
647 fake_prefs.SetString(kPrefsUpdateCompletedOnBootId, boot_id); in TEST_F()
/system/core/libcutils/
Dashmem-dev.cpp192 std::string boot_id; in get_ashmem_device_path() local
193 if (!android::base::ReadFileToString(boot_id_path, &boot_id)) { in get_ashmem_device_path()
197 boot_id = android::base::Trim(boot_id); in get_ashmem_device_path()
199 return "/dev/ashmem" + boot_id; in get_ashmem_device_path()
/system/core/init/
Ddevices.cpp448 std::string boot_id; in HandleAshmemUevent() local
449 if (!ReadFileToString(boot_id_path, &boot_id)) { in HandleAshmemUevent()
453 boot_id = Trim(boot_id); in HandleAshmemUevent()
456 dup_ashmem_uevent.device_name += boot_id; in HandleAshmemUevent()
457 dup_ashmem_uevent.path += boot_id; in HandleAshmemUevent()
/system/update_engine/common/
Dutils.cc914 bool GetBootId(string* boot_id) { in GetBootId() argument
916 base::ReadFileToString(base::FilePath(kBootIdPath), boot_id)); in GetBootId()
917 base::TrimWhitespaceASCII(*boot_id, base::TRIM_TRAILING, boot_id); in GetBootId()
Dutils.h293 bool GetBootId(std::string* boot_id);