Refactor Interval struct

Create another struct that contains the vector of Intervals.
This new struct will later contain a ConditionTimer to support slicing
condition_true_nanos by state.

Bug: 165817662
Bug: 165018838
Test: `m statsd`
Test: `m statsd_test`
Test: `m`
Test: `atest statsd_test`
Change-Id: Id1509ac04deee5719aaf2dc4073df62516a1edf2
Merged-In: Ibb065d64be3775c699583215f7f376a1a5492ac1
3 files changed
tree: 1b8ba834997ea21cb34181ab793db31a735b031e
  1. aidl/
  2. apex/
  3. bin/
  4. framework/
  5. lib/
  6. service/
  7. tests/
  8. .gitignore
  9. OWNERS