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

Commit f11a8a2f authored by Gary Jian's avatar Gary Jian
Browse files

Avoid build break while handling getModemActivityInfoResponse

This is a temporary solution as the telephony framework has not yet
completed the conversion of the new ActivityStatsInfo.aidl structure

Bug: 202413770
Test: manual
Change-Id: I3a6786f68f893382d8151b7900c483196877165a
parent 559bf020
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -104,10 +104,11 @@ public class ModemResponse extends IRadioModemResponse.Stub {
                final int sleepModeTimeMs = activityInfo.sleepModeTimeMs;
                final int idleModeTimeMs = activityInfo.idleModeTimeMs;
                int [] txModeTimeMs = new int[ModemActivityInfo.getNumTxPowerLevels()];
                // TODO: update the function as per the new API introduced in Android T
                for (int i = 0; i < ModemActivityInfo.getNumTxPowerLevels(); i++) {
                    txModeTimeMs[i] = activityInfo.txmModetimeMs[i];
                    txModeTimeMs[i] = activityInfo.techSpecificInfo[0].txmModetimeMs[i];
                }
                final int rxModeTimeMs = activityInfo.rxModeTimeMs;
                final int rxModeTimeMs = activityInfo.techSpecificInfo[0].rxModeTimeMs;
                ret = new ModemActivityInfo(SystemClock.elapsedRealtime(), sleepModeTimeMs,
                        idleModeTimeMs, txModeTimeMs, rxModeTimeMs);
            } else {