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

Commit 4cc9851d authored by Timur Calmațui's avatar Timur Calmațui Committed by Android (Google) Code Review
Browse files

Merge "Allow JobScheduler concurrency limit as low as 1" into main

parents a54d13db 3c4cb187
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -2039,8 +2039,8 @@ class JobConcurrencyManager {
        DeviceConfig.Properties properties =
                DeviceConfig.getProperties(DeviceConfig.NAMESPACE_JOB_SCHEDULER);

        // Concurrency limit should be in the range [8, MAX_CONCURRENCY_LIMIT].
        mSteadyStateConcurrencyLimit = Math.max(8, Math.min(MAX_CONCURRENCY_LIMIT,
        // Concurrency limit should be in the range [1, MAX_CONCURRENCY_LIMIT].
        mSteadyStateConcurrencyLimit = Math.max(1, Math.min(MAX_CONCURRENCY_LIMIT,
                properties.getInt(KEY_CONCURRENCY_LIMIT, DEFAULT_CONCURRENCY_LIMIT)));

        mScreenOffAdjustmentDelayMs = properties.getLong(