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

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

View File

@@ -21,4 +21,5 @@ import android.os.IBinder;
oneway interface IFaceLockCallback {
void unlock();
void cancel();
void pokeWakelock();
}

View File

@@ -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();
}
};
}