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

Commit dd30e19a authored by James.cf Lin's avatar James.cf Lin
Browse files

[UCE] Adjust the default value of the capabilities request timeout

Adjust the default timeout to prevent capability requests from being terminated by the framework and later receiving capabilities updated from ImsServer.

Bug: 191771470
Test: atest RcsUceAdapterTest
Change-Id: Ice545adce74ff40dda1919462be0348fe4794086
parent b2f1e2cc
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -49,7 +49,8 @@ public class UceUtils {
    private static final long DEFAULT_REQUEST_RETRY_INTERVAL_MS = TimeUnit.MINUTES.toMillis(20);
    private static final long DEFAULT_MINIMUM_REQUEST_RETRY_AFTER_MS = TimeUnit.SECONDS.toMillis(3);

    private static final long DEFAULT_CAP_REQUEST_TIMEOUT_AFTER_MS = TimeUnit.MINUTES.toMillis(1);
    // The default of the capabilities request timeout.
    private static final long DEFAULT_CAP_REQUEST_TIMEOUT_AFTER_MS = TimeUnit.MINUTES.toMillis(3);
    private static Optional<Long> OVERRIDE_CAP_REQUEST_TIMEOUT_AFTER_MS = Optional.empty();

    // The task ID of the UCE request