Loading src/java/com/android/internal/telephony/ModemResponse.java +3 −2 Original line number Diff line number Diff line Loading @@ -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 { Loading Loading
src/java/com/android/internal/telephony/ModemResponse.java +3 −2 Original line number Diff line number Diff line Loading @@ -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 { Loading