powerstats: Fix 1Hz state not-accumulating issue

Using substring to compare on display state might cause a false
alarm.

Bug: 273636406
Test: dumpsys android.hardware.power.stats.IPowerStats/default
Change-Id: I4f1f0215869dd1010f118b6d20f4bac864c0f9fa
Signed-off-by: Darren Hsu <darrenhsu@google.com>
1 file changed