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
This commit is contained in:
Kweku Adams
2021-03-30 14:50:13 -07:00
parent b5cc4a537b
commit 14de948e81

View File

@@ -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.