Skip to content

Commit fe7fcd2

Browse files
Brian ColonnaAndroid (Google) Code Review
authored andcommitted
Merge "Added callback for Face Unlock service to poke the wakelock"
2 parents 2950b1b + 0c422a7 commit fe7fcd2

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)