summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorjackqdyulei <jackqdyulei@google.com>2017-08-09 14:02:01 -0700
committerjackqdyulei <jackqdyulei@google.com>2017-08-10 16:44:30 -0700
commit610a0a09f25f9fb41855f5fa4b7fd34afaeef120 (patch)
treec8548cc946a6065a734b8654f36e87c5bbf16c61 /tools/aapt2/java/JavaClassGenerator_test.cpp
parent98af408afd3b151e0945be5223f0c3ff8e845af8 (diff)
Write currentDuration into Parcel
This cl writes currentDuration to Parcel, so in battery settings we could use this data in anomaly detection. Also note that in getTotalDurationMsLock(aka method1), the logic is: result = mTotalDurationMs + getCurrentDurationMsLocked(aka method2) Since now method2 is not zero, we also tweaked the value for mTotalDurationMs to make method1 return the same value compared with before. Since getMaxDurationMsLocked depends on mNesting, which is always zero, so we don't need to tweak value for mMaxDurationMs All these methods are covered in BatteryStatsDurationTimerTest Bug: 64255589 Test: runtest -x BatteryStatsTest Change-Id: I9168be099d00bb68fedbc5bfbb7bf7f0d9aae85a
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions