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

Commit 14de948e authored by Kweku Adams's avatar Kweku Adams
Browse files

Increase max # per-UID callbacks to 125.

The connectivity callback limit was increased for the system, so
increasing the maximum number of callbacks JS will register to avoid the
chance of network/callback starvation.

Bug: 173035526
Test: atest frameworks/base/services/tests/servicestests/src/com/android/server/job
Test: atest frameworks/base/services/tests/mockingservicestests/src/com/android/server/job
Test: atest CtsJobSchedulerTestCases
Change-Id: I43eb80e0633c043f639d432eec08745973c9da0f
parent b5cc4a53
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -76,7 +76,7 @@ public final class ConnectivityController extends RestrictingController implemen
            || Log.isLoggable(TAG, Log.DEBUG);

    // The networking stack has a hard limit so we can't make this configurable.
    private static final int MAX_NETWORK_CALLBACKS = 50;
    private static final int MAX_NETWORK_CALLBACKS = 125;
    /**
     * Minimum amount of time that should have elapsed before we'll update a {@link UidStats}
     * instance.