Skip to content

Commit 0c422a7

Browse files
author
Brian Colonna
committed
Added callback for Face Unlock service to poke the wakelock
Change-Id: I76a4e0f8ac0fe17e39195f4593fac7e36d7281f0
1 parent 94d2f36 commit 0c422a7

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

core/java/com/android/internal/policy/IFaceLockCallback.aidl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,5 @@ import android.os.IBinder;
2121
oneway interface IFaceLockCallback {
2222
void unlock();
2323
void cancel();
24+
void pokeWakelock();
2425
}

policy/src/com/android/internal/policy/impl/LockPatternKeyguardView.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1170,5 +1170,12 @@ public void cancel() {
11701170
mHandler.sendEmptyMessage(MSG_HIDE_FACELOCK_AREA_VIEW); // Expose fallback
11711171
stopFaceLock();
11721172
}
1173+
1174+
// Allows the Face Unlock service to poke the wake lock to keep the lockscreen alive
1175+
@Override
1176+
public void pokeWakelock() {
1177+
if (DEBUG) Log.d(TAG, "FaceLock pokeWakelock()");
1178+
mKeyguardScreenCallback.pokeWakelock();
1179+
}
11731180
};
11741181
}

0 commit comments

Comments
 (0)