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

Commit 0cc33976 authored by Chen Xu's avatar Chen Xu Committed by android-build-merger
Browse files

Merge "remove getEnergyUsed API in modemActivityInfo"

am: d0dd1276

Change-Id: I8b19460fe47b06a177465462f0b1213b15c6c6a6
parents 00c05fe1 d0dd1276
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -383,7 +383,7 @@ public class RIL extends BaseCommands implements CommandsInterface {
        switch(rr.mRequest) {
            case RIL_REQUEST_GET_ACTIVITY_INFO:
                timeoutResponse = new ModemActivityInfo(
                        0, 0, 0, new int [ModemActivityInfo.TX_POWER_LEVELS], 0, 0);
                        0, 0, 0, new int [ModemActivityInfo.TX_POWER_LEVELS], 0);
                break;
        };
        return timeoutResponse;
+2 −2
Original line number Diff line number Diff line
@@ -2193,10 +2193,10 @@ public class RadioResponse extends IRadioResponse.Stub {
                }
                final int rxModeTimeMs = activityInfo.rxModeTimeMs;
                ret = new ModemActivityInfo(SystemClock.elapsedRealtime(), sleepModeTimeMs,
                        idleModeTimeMs, txModeTimeMs, rxModeTimeMs, 0);
                        idleModeTimeMs, txModeTimeMs, rxModeTimeMs);
            } else {
                ret = new ModemActivityInfo(0, 0, 0, new int [ModemActivityInfo.TX_POWER_LEVELS],
                        0, 0);
                        0);
                responseInfo.error = RadioError.NONE;
            }
            sendMessageResponse(rr.mResult, ret);