OSDN Git Service

Use wakeup reason when FingerPrint sensor wakes up the device
authorAdam Lesinski <adamlesinski@google.com>
Wed, 4 Nov 2015 00:31:25 +0000 (16:31 -0800)
committerAdam Lesinski <adamlesinski@google.com>
Wed, 4 Nov 2015 00:31:25 +0000 (16:31 -0800)
PowerManager can log into BatteryStats the reason for the device being
woken up. This change has the Fingerprint controller report the reason
instead of a default non-descriptive 'wakeUp' reason.

Change-Id: I12d80682dad888add139cca586d4b948e9d546e5

packages/SystemUI/src/com/android/systemui/statusbar/phone/FingerprintUnlockController.java

index 2912963..7135836 100644 (file)
@@ -173,7 +173,7 @@ public class FingerprintUnlockController extends KeyguardUpdateMonitorCallback {
             if (DEBUG_FP_WAKELOCK) {
                 Log.i(TAG, "fp wakelock: Authenticated, waking up...");
             }
-            mPowerManager.wakeUp(SystemClock.uptimeMillis());
+            mPowerManager.wakeUp(SystemClock.uptimeMillis(), "android.policy:FINGERPRINT");
         }
         releaseFingerprintWakeLock();
         switch (mMode) {