Searched refs:boot_id (Results 1 – 9 of 9) sorted by relevance
/system/update_engine/ |
D | real_system_state.cc | 126 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()
|
D | update_attempter_android_unittest.cc | 89 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()
|
D | update_attempter_android.cc | 764 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()
|
D | update_attempter.cc | 1058 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()
|
D | update_attempter_unittest.cc | 645 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/ |
D | ashmem-dev.cpp | 192 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/ |
D | devices.cpp | 448 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/ |
D | utils.cc | 914 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()
|
D | utils.h | 293 bool GetBootId(std::string* boot_id);
|