summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorKweku Adams <kwekua@google.com>2019-03-26 15:48:51 -0700
committerKweku Adams <kwekua@google.com>2019-03-26 15:48:51 -0700
commite3e1640c6123ebc026ab1ec5a16d5daca4ced908 (patch)
treef8dc4214e841655130983115bd7ed76fbb4fb61f /tools/aapt2/java/JavaClassGenerator_test.cpp
parentc6479fd8f410dfb489a1f5cb45ff06cfcc3227a5 (diff)
Reducing quota expired check churn.
QuotaController would check if an app had used up all of its quota every time the 'time remaining' had passed. However, if there was a session at the very beginning of the window, the app would still have quota since it would phase out as time went on. QC would then reschedule another check for the same amount of time in the future and this could continue for a while. We avoid this repeated and unnecessary check by including any session phase outs as part of the calculation for when to check if the quota has expired. Bug: 126948148 Test: atest com.android.server.job.controllers.QuotaControllerTest Test: atest CtsJobSchedulerTestCases Change-Id: I0bfa0163b243558c2834ba6e460db63124425d9a
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions