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

Commit 218acaf0 authored by Neil Fuller's avatar Neil Fuller
Browse files

Reduce time spent waiting for a "dead" provider

If communication with a provider disappears into a black hole, the
location_time_zone_manager waits for a timeout. This change
(temporarily) shortens the timeout because the primary provider is
currently only partially implemented and is swallowing requests.

Bug: 179488561
Test: Manual testing
Change-Id: I17eb8b35f92cb2e4814dedcfae36e3e64165450d
parent 24c76b4b
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -33,9 +33,11 @@ import java.util.Objects;
 */
class ControllerEnvironmentImpl extends LocationTimeZoneProviderController.Environment {

    private static final Duration DEFAULT_PROVIDER_INITIALIZATION_TIMEOUT = Duration.ofMinutes(5);
    // TODO(b/179488561): Put this back to 5 minutes when primary provider is fully implemented
    private static final Duration DEFAULT_PROVIDER_INITIALIZATION_TIMEOUT = Duration.ofMinutes(1);
    // TODO(b/179488561): Put this back to 5 minutes when primary provider is fully implemented
    private static final Duration DEFAULT_PROVIDER_INITIALIZATION_TIMEOUT_FUZZ =
            Duration.ofMinutes(1);
            Duration.ofSeconds(20);
    private static final Duration DEFAULT_PROVIDER_UNCERTAINTY_DELAY = Duration.ofMinutes(5);

    @NonNull private final TimeZoneDetectorInternal mTimeZoneDetectorInternal;