Searched refs:boot_id (Results 1 – 6 of 6) sorted by relevance
146 std::string boot_id; in get_ashmem_device_path() local147 if (!android::base::ReadFileToString(boot_id_path, &boot_id)) { in get_ashmem_device_path()151 boot_id = android::base::Trim(boot_id); in get_ashmem_device_path()153 return "/dev/ashmem" + boot_id; in get_ashmem_device_path()
110 std::string boot_id; in TEST_F() local111 utils::GetBootId(&boot_id); in TEST_F()115 ASSERT_EQ(boot_id, prefs_boot_id); in TEST_F()
187 string boot_id; in DidSystemReboot() local188 TEST_AND_RETURN_FALSE(utils::GetBootId(&boot_id)); in DidSystemReboot()194 return old_boot_id != boot_id; in DidSystemReboot()935 string boot_id; in WriteUpdateCompletedMarker() local936 TEST_AND_RETURN_FALSE(utils::GetBootId(&boot_id)); in WriteUpdateCompletedMarker()938 << boot_control_->GetCurrentSlot() << ", boot id: " << boot_id; in WriteUpdateCompletedMarker()940 prefs_->SetString(kPrefsUpdateCompletedOnBootId, boot_id)); in WriteUpdateCompletedMarker()957 string boot_id; in UpdateCompletedOnThisBoot() local958 TEST_AND_RETURN_FALSE(utils::GetBootId(&boot_id)); in UpdateCompletedOnThisBoot()964 update_completed_on_boot_id == boot_id); in UpdateCompletedOnThisBoot()
530 std::string boot_id; in HandleAshmemUevent() local531 if (!ReadFileToString(boot_id_path, &boot_id)) { in HandleAshmemUevent()535 boot_id = Trim(boot_id); in HandleAshmemUevent()538 dup_ashmem_uevent.device_name += boot_id; in HandleAshmemUevent()539 dup_ashmem_uevent.path += boot_id; in HandleAshmemUevent()
1139 bool GetBootId(string* boot_id) { in GetBootId() argument1141 base::ReadFileToString(base::FilePath(kBootIdPath), boot_id)); in GetBootId()1142 base::TrimWhitespaceASCII(*boot_id, base::TRIM_TRAILING, boot_id); in GetBootId()
373 bool GetBootId(std::string* boot_id);