Merge "Added callback to allow Face Unlock to hide black area" into ics-mr0

This commit is contained in:
Brian Colonna
2011-10-24 13:19:55 -07:00
committed by Android (Google) Code Review
2 changed files with 8 additions and 0 deletions

View File

@@ -22,5 +22,6 @@ oneway interface IFaceLockCallback {
void unlock();
void cancel();
void reportFailedAttempt();
void exposeFallback();
void pokeWakelock();
}

View File

@@ -1375,6 +1375,13 @@ public class LockPatternKeyguardView extends KeyguardViewBase implements Handler
mKeyguardScreenCallback.pokeWakelock(BACKUP_LOCK_TIMEOUT);
}
// Removes the black area that covers the backup unlock method
@Override
public void exposeFallback() {
if (DEBUG) Log.d(TAG, "FaceLock exposeFallback()");
hideFaceLockArea(); // Expose fallback
}
// Allows the Face Unlock service to poke the wake lock to keep the lockscreen alive
@Override
public void pokeWakelock() {