Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fe7fcd23 authored by Brian Colonna's avatar Brian Colonna Committed by Android (Google) Code Review
Browse files

Merge "Added callback for Face Unlock service to poke the wakelock"

parents 2950b1b2 0c422a72
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -21,4 +21,5 @@ import android.os.IBinder;
oneway interface IFaceLockCallback {
    void unlock();
    void cancel();
    void pokeWakelock();
}
+7 −0
Original line number Diff line number Diff line
@@ -1170,5 +1170,12 @@ public class LockPatternKeyguardView extends KeyguardViewBase implements Handler
            mHandler.sendEmptyMessage(MSG_HIDE_FACELOCK_AREA_VIEW); // Expose fallback
            stopFaceLock();
        }

        // Allows the Face Unlock service to poke the wake lock to keep the lockscreen alive
        @Override
        public void pokeWakelock() {
            if (DEBUG) Log.d(TAG, "FaceLock pokeWakelock()");
            mKeyguardScreenCallback.pokeWakelock();
        }
    };
}