Add ConditionTimer to CurrentValueBucket struct

Add the update condition timer logic based on state, condition, and
active changes.

Bug: 166159095
Bug: 166158610
Bug: 167458087
Bug: 166639935
Bug: 165018838
Test: `m statsd`
Test: `m statsd_test`
Test: `m`
Test: `atest statsd_test`
Change-Id: If7f0f66d971c6c5d78b1981ff875e466adb19a10
Merged-In: Ibb065d64be3775c699583215f7f376a1a5492ac1
5 files changed
tree: 0e36eeaf0083812bdf924ff482106fcfd6512575
  1. aidl/
  2. apex/
  3. bin/
  4. framework/
  5. lib/
  6. service/
  7. tests/
  8. .gitignore
  9. OWNERS