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

Commit 0ea76dcd authored by Willy Hu's avatar Willy Hu
Browse files

[DSRM] Improve the current action duration

- update the elapsed time when device really doRecovery()
  for each action

Bug: 275500989
Test: Manual test passed.
Change-Id: I9fb751cebf107795454433b17b10aa82a0fe1817
parent 5f5987ea
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -639,7 +639,10 @@ public class DataStallRecoveryManager extends Handler {

        if (isLogNeeded) {
            timeDurationOfCurrentAction =
                (isFirstDataStall == true ? 0 : (int) getDurationOfCurrentRecoveryMs());
                ((getRecoveryAction() > RECOVERY_ACTION_GET_DATA_CALL_LIST
                   && !mIsAttemptedAllSteps)
                 || mLastAction == RECOVERY_ACTION_RESET_MODEM)
                 ? (int) getDurationOfCurrentRecoveryMs() : 0;
            DataStallRecoveryStats.onDataStallEvent(
                    mLastAction, mPhone, isValid, timeDuration, reason,
                    isFirstValidationAfterDoRecovery, timeDurationOfCurrentAction);