OSDN Git Service

Add ID field to the Callback
authorAlex Salo <asalo@google.com>
Sat, 6 Apr 2019 23:24:00 +0000 (16:24 -0700)
committerAlex Salo <asalo@google.com>
Mon, 22 Apr 2019 18:25:37 +0000 (11:25 -0700)
commit69ff3211dcb415405aab345a992de6b821c449f8
treec130a8ebbd48d28dd91204f510070af60da4bc70
parent5c5ffcbd7a6d67141a0dfd7ff4e2239fbf25f72e
Add ID field to the Callback

This avoid an almost infinite loop in case of a cache hit, and allows for better tracking/debug.

Bug: 111939367
Test: manually and atest AttentionDetectorTest
Change-Id: Iaa037e133ea9106b4c974c67dae286542103277d
services/core/java/com/android/server/power/AttentionDetector.java
services/tests/servicestests/src/com/android/server/power/AttentionDetectorTest.java