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

Commit 488bb0ed authored by Mike Lockwood's avatar Mike Lockwood
Browse files

Cleanup Binder interface between sensorservice and BatteryStats

Change-Id: I6ba542cea242e252864d562ba62f3b8136f09f90
parent 58f16653
Loading
Loading
Loading
Loading
+6 −8
Original line number Diff line number Diff line
@@ -22,18 +22,16 @@ import android.os.WorkSource;
import android.telephony.SignalStrength;

interface IBatteryStats {
    // These first methods are also called by native code, so must
    // be kept in sync with frameworks/native/include/binder/IBatteryStats.h
    void noteStartSensor(int uid, int sensor);
    void noteStopSensor(int uid, int sensor);

    // Remaining methods are only used in Java.
    byte[] getStatistics();
    void noteStartWakelock(int uid, int pid, String name, int type);
    void noteStopWakelock(int uid, int pid, String name, int type);

    /* DO NOT CHANGE the position of noteStartSensor without updating
       SensorService.cpp */
    void noteStartSensor(int uid, int sensor);

    /* DO NOT CHANGE the position of noteStopSensor without updating
       SensorService.cpp */
    void noteStopSensor(int uid, int sensor);

    void noteStartWakelockFromSource(in WorkSource ws, int pid, String name, int type);
    void noteStopWakelockFromSource(in WorkSource ws, int pid, String name, int type);