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

Commit 04c34769 authored by Ruchir Rastogi's avatar Ruchir Rastogi
Browse files

Inject DeviceIdle atom before boot completes

Test: m
Test: manually verified that DeviceIdleModeStateChanged atom gets logged
before boot completes (using ag/11529814 to log)
Bug: 156913221
Change-Id: I3dbf154083f1cbe660625066dc50b6a8ffd60d7c
parent eafbb325
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -1298,7 +1298,6 @@ Status StatsService::getRegisteredExperimentIds(std::vector<int64_t>* experiment
    return Status::ok();
}


void StatsService::statsCompanionServiceDied(void* cookie) {
    auto thiz = static_cast<StatsService*>(cookie);
    thiz->statsCompanionServiceDiedImpl();
+4 −0
Original line number Diff line number Diff line
@@ -9875,6 +9875,10 @@ public class BatteryStatsImpl extends BatteryStats {
        mPlatformIdleStateCallback = cb;
        mRailEnergyDataCallback = railStatsCb;
        mUserInfoProvider = userInfoProvider;
        // Notify statsd that the system is initially not in doze.
        mDeviceIdleMode = DEVICE_IDLE_MODE_OFF;
        FrameworkStatsLog.write(FrameworkStatsLog.DEVICE_IDLE_MODE_STATE_CHANGED, mDeviceIdleMode);
    }
    @UnsupportedAppUsage