Merge "Cancel previous cutoffs."

This commit is contained in:
TreeHugger Robot
2022-02-17 20:54:12 +00:00
committed by Android (Google) Code Review

View File

@@ -2171,7 +2171,7 @@ public final class QuotaController extends StateController {
}
scheduleCutoff();
} else if (mRegularJobTimer && priorityLowered) {
scheduleCutoff();
rescheduleCutoff();
}
}
}
@@ -2207,7 +2207,7 @@ public final class QuotaController extends StateController {
mRunningBgJobs.valueAt(i).getEffectivePriority());
}
if (mLowestPriority != oldPriority) {
scheduleCutoff();
rescheduleCutoff();
}
}
}
@@ -2707,7 +2707,7 @@ public final class QuotaController extends StateController {
if (DEBUG) {
Slog.d(TAG, pkg + " had early REACHED_QUOTA message");
}
mPkgTimers.get(pkg.userId, pkg.packageName).scheduleCutoff();
mPkgTimers.get(pkg.userId, pkg.packageName).rescheduleCutoff();
}
break;
}
@@ -2729,7 +2729,7 @@ public final class QuotaController extends StateController {
if (DEBUG) {
Slog.d(TAG, pkg + " had early REACHED_EJ_QUOTA message");
}
mEJPkgTimers.get(pkg.userId, pkg.packageName).scheduleCutoff();
mEJPkgTimers.get(pkg.userId, pkg.packageName).rescheduleCutoff();
}
break;
}