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

Commit d9c4bfff authored by Ytai Ben-Tsvi's avatar Ytai Ben-Tsvi
Browse files

Extend STHAL watchdog deadline

The current deadline is too aggressive for some implementations and
causes crashes as result of issues in handling HAL reboots.

This is an intermediate fix, while the root cause is being worked on.

Bug: 166328980
Bug: 165702394
Test: Manual run of an MPTS test on Coral/Flame to verify that issue
      165702394 goes away.
Change-Id: I5e69e5f4fa7b2d43f23096a0abd8e1e688eef1ea
parent de010ce1
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -35,7 +35,8 @@ import java.util.TimerTask;
 * HAL whenever they expire.
 */
public class SoundTriggerHw2Watchdog implements ISoundTriggerHw2 {
    private static final long TIMEOUT_MS = 1000;
    // TODO(b/166328980): Reduce this to 1000 as soon as HAL is fixed.
    private static final long TIMEOUT_MS = 10000;
    private static final String TAG = "SoundTriggerHw2Watchdog";

    private final @NonNull