Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 435f1e2e authored by Fengjiang Li's avatar Fengjiang Li
Browse files

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
parent f6bf07a5
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -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) {