Powerhal: Add sessions' jank frames into buckets.

Put the jank frames into different buckets based on the reported
duration of the frames. Currently dump the bucket counters and
percentage info into dumsys log.

Bug: 367724389
Test: adb test adpf_test;
      adb shell dumpsys android.hardware.power.IPower/default.
Flag: NONE powerhal doesn't have a flag yet
Change-Id: I005b9ad565e1a44d0fa47083f8a7b9e36d2d213d
Signed-off-by: Jis G Jacob <studiokeys@blissroms.org>
9 files changed