From cfeda767c87c2d9dd1966c7fbc1f77fa14f80920 Mon Sep 17 00:00:00 2001 From: Brian Colonna Date: Wed, 9 May 2012 14:35:20 -0400 Subject: [PATCH] Added FUL client-side debug This is to help track down bug 6409767 and will be removed when that bug is fixed. Change-Id: I51df2fd7d14ecd8f311fdf2ae993ba4943764011 --- .../android/internal/policy/impl/FaceUnlock.java | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/policy/src/com/android/internal/policy/impl/FaceUnlock.java b/policy/src/com/android/internal/policy/impl/FaceUnlock.java index 6e09b7f623759..f43494b3e0f34 100644 --- a/policy/src/com/android/internal/policy/impl/FaceUnlock.java +++ b/policy/src/com/android/internal/policy/impl/FaceUnlock.java @@ -439,13 +439,27 @@ public class FaceUnlock implements BiometricSensorUnlock, Handler.Callback { * Tells the Face Unlock service to start displaying its UI and start processing. */ private void startUi(IBinder windowToken, int x, int y, int w, int h) { - if (DEBUG) Log.d(TAG, "startUi()"); + Log.d(TAG, "startUi()"); synchronized (mServiceRunningLock) { if (!mServiceRunning) { if (DEBUG) Log.d(TAG, "Starting Face Unlock"); try { + // TODO: these checks and logs are for tracking down bug 6409767 and can be + // removed when that bug is fixed. + if (mService == null) { + Log.d(TAG, "mService is null"); + } + if (windowToken == null) { + Log.d(TAG, "windowToken is null"); + } + if (mLockPatternUtils == null) { + Log.d(TAG, "mLockPatternUtils is null"); + } + Log.d(TAG, "x,y,w,h,live: " + x + "," + y + "," + w + "," + h + "," + + (mLockPatternUtils.isBiometricWeakLivelinessEnabled()?"yes":"no")); mService.startUi(windowToken, x, y, w, h, mLockPatternUtils.isBiometricWeakLivelinessEnabled()); + Log.d(TAG, "mService.startUi() called"); } catch (RemoteException e) { Log.e(TAG, "Caught exception starting Face Unlock: " + e.toString()); return;