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

Commit a01a0b47 authored by Aishwarya Mallampati's avatar Aishwarya Mallampati
Browse files

Increase FILTER_COMPLETE_TIMEOUT_MS.

The following changes are made in this cl:
- Increased FILTER_COMPLETE_TIMEOUT_MS from 10min to 12min
- Protect addToCallbacks() with mFilterLock

Bug: 289098409
Test: Flashed build on raven-userdebug and performed basic functionality tests,
atest CarrierServicesSmsFilterTest

Change-Id: Icb075ba3b125e42ac3279da021b88228fab4bc6b
parent 0a8a3aaa
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -58,7 +58,7 @@ public class CarrierServicesSmsFilter {
    public static final int EVENT_ON_FILTER_COMPLETE_NOT_CALLED = 1;

    /** onFilterComplete timeout. */
    public static final int FILTER_COMPLETE_TIMEOUT_MS = 10 * 60 * 1000; //10 minutes
    public static final int FILTER_COMPLETE_TIMEOUT_MS = 12 * 60 * 1000; //12 minutes

    /** SMS anomaly uuid -- CarrierMessagingService did not respond */
    private static final UUID sAnomalyNoResponseFromCarrierMessagingService =
@@ -381,8 +381,10 @@ public class CarrierServicesSmsFilter {
        }

        private void addToCallbacks(CarrierSmsFilterCallback callback) {
            synchronized (mFilterLock) {
                mCallbacks.add(callback);
            }
        }

    }