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

Commit a203093d authored by Michael Wachenschwanz's avatar Michael Wachenschwanz
Browse files

Update FakeUid to implement getForegroundServiceTimer

Simple change. Override the getForegroundServiceTimer method in FakeUid

Test: bit FrameworksCoreTests:com.android.internal.os.BatteryStatsNoteTest
Bug: 38313557
Change-Id: I8a3142e61ed67109629c683384734f749eaafb3f
parent 250595ae
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -208,6 +208,11 @@ public class FakeUid extends Uid {
        return null;
    }

    @Override
    public Timer getForegroundServiceTimer() {
        return null;
    }

    @Override
    public long getProcessStateTime(int state, long elapsedRealtimeUs, int which) {
        return 0;