• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Aucun tag

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

system/core


Commit MetaInfo

Révision699e342b3d77c4e2b7e856621e1ce1150859582f (tree)
l'heure2019-05-23 01:46:02
AuteurWei Wang <wvw@goog...>
CommiterWei Wang

Message de Log

Report non-empty system boot reason when bootloader reason is empty

Bug: 133321647
Test: build
Change-Id: Icd3ea4b69ef2ad040926e2b0e121a8f5f1c1b658

Change Summary

Modification

--- a/bootstat/bootstat.cpp
+++ b/bootstat/bootstat.cpp
@@ -1086,17 +1086,8 @@ void RecordAbsoluteBootTime(BootEventRecordStore* boot_event_store,
10861086 void LogBootInfoToStatsd(std::chrono::milliseconds end_time,
10871087 std::chrono::milliseconds total_duration, int32_t bootloader_duration_ms,
10881088 double time_since_last_boot_sec) {
1089- const auto reason = android::base::GetProperty(bootloader_reboot_reason_property, "");
1090-
1091- if (reason.empty()) {
1092- android::util::stats_write(android::util::BOOT_SEQUENCE_REPORTED, "<EMPTY>", "<EMPTY>",
1093- end_time.count(), total_duration.count(),
1094- (int64_t)bootloader_duration_ms,
1095- (int64_t)time_since_last_boot_sec * 1000);
1096- return;
1097- }
1098-
1099- const auto system_reason = android::base::GetProperty(system_reboot_reason_property, "");
1089+ auto reason = android::base::GetProperty(bootloader_reboot_reason_property, "<EMPTY>");
1090+ auto system_reason = android::base::GetProperty(system_reboot_reason_property, "<EMPTY>");
11001091 android::util::stats_write(android::util::BOOT_SEQUENCE_REPORTED, reason.c_str(),
11011092 system_reason.c_str(), end_time.count(), total_duration.count(),
11021093 (int64_t)bootloader_duration_ms,