Add COLD_DEVICE_REBOOTING LatencyType

Since launcher COLD startup latency is drastically different when device is rebooting vs not, we will add COLD_DEVICE_REBOOTING LatencyType

See "Add Startup Latency Type" section in go/launcher-startup-latency

Bug: b/277962421
Test: app build
Change-Id: I4d0a22c105417b5bcdbae9ed9fc72aa927f9adc9
This commit is contained in:
Fengjiang Li committed 2023-04-13 09:19:04 -07:00
1 parent f6bf07a5fe
commit 435f1e2e08
1 file changed
+4 -1
@@ -797,6 +797,7 @@ public class StatsLogManager implements ResourceBasedOverride {
enum LatencyType {
UNKNOWN(0),
// example: launcher restart that happens via daily backup and restore
COLD(1),
HOT(2),
TIMEOUT(3),
@@ -804,7 +805,9 @@ public class StatsLogManager implements ResourceBasedOverride {
COLD_USERWAITING(5),
ATOMIC(6),
CONTROLLED(7),
CACHED(8);
CACHED(8),
// example: device is rebooting via power key or shell command `adb reboot`
COLD_DEVICE_REBOOTING(9);
private final int mId;
LatencyType(int id) {