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

Commit 6613dd30 authored by Adam Lesinski's avatar Adam Lesinski
Browse files

Pass in time at which the energy info sample was collected

This is relies on a change in frameworks/base.

Change-Id: I78fc1ff8d954c58e58cd7f1a458f7d54cee1ce11
parent 1aa3b5bc
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -1705,8 +1705,8 @@ public class AdapterService extends Service {
    private BluetoothActivityEnergyInfo reportActivityInfo() {
    private BluetoothActivityEnergyInfo reportActivityInfo() {
        enforceCallingOrSelfPermission(BLUETOOTH_PRIVILEGED, "Need BLUETOOTH permission");
        enforceCallingOrSelfPermission(BLUETOOTH_PRIVILEGED, "Need BLUETOOTH permission");
        BluetoothActivityEnergyInfo info =
        BluetoothActivityEnergyInfo info =
            new BluetoothActivityEnergyInfo(mStackReportedState, mTxTimeTotalMs,
            new BluetoothActivityEnergyInfo(SystemClock.elapsedRealtime(), mStackReportedState,
                    mRxTimeTotalMs, mIdleTimeTotalMs, mEnergyUsedTotalVoltAmpSecMicro);
                    mTxTimeTotalMs, mRxTimeTotalMs, mIdleTimeTotalMs, mEnergyUsedTotalVoltAmpSecMicro);
        // Read on clear values; a record of data is created with
        // Read on clear values; a record of data is created with
        // timstamp and new samples are collected until read again
        // timstamp and new samples are collected until read again
        mStackReportedState = 0;
        mStackReportedState = 0;