Searched refs:boot_id (Results 1 – 9 of 9) sorted by relevance
112 std::string boot_id; in Initialize() local113 if (utils::GetBootId(&boot_id)) { in Initialize()116 prev_boot_id != boot_id); in Initialize()117 prefs_->SetString(kPrefsBootId, boot_id); in Initialize()
1013 string boot_id; in WriteUpdateCompletedMarker() local1014 if (!utils::GetBootId(&boot_id)) in WriteUpdateCompletedMarker()1016 prefs_->SetString(kPrefsUpdateCompletedOnBootId, boot_id); in WriteUpdateCompletedMarker()1785 string boot_id; in GetBootTimeAtUpdate() local1786 TEST_AND_RETURN_FALSE(utils::GetBootId(&boot_id)); in GetBootTimeAtUpdate()1792 update_completed_on_boot_id != boot_id) in GetBootTimeAtUpdate()
614 string boot_id; in TEST_F() local615 EXPECT_TRUE(utils::GetBootId(&boot_id)); in TEST_F()617 boot_id); in TEST_F()
194 std::string boot_id; in get_ashmem_device_path() local195 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()
92 std::string boot_id; in TEST_F() local93 utils::GetBootId(&boot_id); in TEST_F()97 ASSERT_EQ(boot_id, prefs_boot_id); in TEST_F()
787 string boot_id; in WriteUpdateCompletedMarker() local788 TEST_AND_RETURN_FALSE(utils::GetBootId(&boot_id)); in WriteUpdateCompletedMarker()789 prefs_->SetString(kPrefsUpdateCompletedOnBootId, boot_id); in WriteUpdateCompletedMarker()797 string boot_id; in UpdateCompletedOnThisBoot() local798 TEST_AND_RETURN_FALSE(utils::GetBootId(&boot_id)); in UpdateCompletedOnThisBoot()804 update_completed_on_boot_id == boot_id); in UpdateCompletedOnThisBoot()
456 std::string boot_id; in HandleAshmemUevent() local457 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()
942 bool GetBootId(string* boot_id) { in GetBootId() argument944 base::ReadFileToString(base::FilePath(kBootIdPath), boot_id)); in GetBootId()945 base::TrimWhitespaceASCII(*boot_id, base::TRIM_TRAILING, boot_id); in GetBootId()
312 bool GetBootId(std::string* boot_id);