summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorConnor O'Brien <connoro@google.com>2021-05-06 18:44:31 -0700
committerConnor O'Brien <connoro@google.com>2021-05-11 15:19:29 -0700
commit0419d437c75de94d4da3dd1eecbc38a1ed8d10ea (patch)
treeed45044ad5f21bef41dc9551ecbd96a5f586dd50 /tools/aapt2/java/JavaClassGenerator_test.cpp
parent3f8d3330160212714eb1d41b0647cd1df5afd131 (diff)
Don't remove UID data in readKernelCpuUid*TimesLocked
In both of these cases (removed isolated UID and nonexistent user) the affected UID has already previously been enqueued in mPendingRemovedUids and so all underlying cpu time data will be cleared together after 5 minutes. Clearing the different sets of times separately is buggy due to creating inconsistency among the KernelCpuUid*TimeReaders. Removing data in these functions also defeats the 5-minute delay that was intended to give statsd a chance to read the data for removed UIDs. Also update BatteryStatsCpuTimesTest to reflect the new behavior Bug: 182272121 Test: atest com.android.internal.os.BatteryStatsTests shows no new failures Change-Id: I5719aecd5603cd9cecfbf75cede5eceeda8d0f5b Signed-off-by: Connor O'Brien <connoro@google.com>
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions