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

Commit e94d763f authored by JP Abgrall's avatar JP Abgrall
Browse files

unlock screen: enable DEBUG and track pattern start/cell progress.

- Turned on DEBUG.
- Added logging for pattern start, and for each cell.

This should help with debugging lockscreen not receiving input when turning
sleeping phone one

Bug: 6258051
Change-Id: Id95e167c2792e80925e8e41c0c624b5bdc222249
parent 5b86de1e
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -41,7 +41,7 @@ import java.util.List;
class PatternUnlockScreen extends LinearLayoutWithDefaultTouchRecepient
        implements KeyguardScreen {

    private static final boolean DEBUG = false;
    private static final boolean DEBUG = true; /* TODO: revert before JB release */
    private static final String TAG = "UnlockScreen";

    // how long before we clear the wrong pattern
@@ -321,6 +321,7 @@ class PatternUnlockScreen extends LinearLayoutWithDefaultTouchRecepient
            implements LockPatternView.OnPatternListener {

        public void onPatternStart() {
            if (DEBUG) Log.d(TAG, "Got pattern start");
            mLockPatternView.removeCallbacks(mCancelPatternRunnable);
        }

@@ -336,6 +337,7 @@ class PatternUnlockScreen extends LinearLayoutWithDefaultTouchRecepient
                // Give just a little extra time if they hit one of the first few dots
                mCallback.pokeWakelock(UNLOCK_PATTERN_WAKE_INTERVAL_FIRST_DOTS_MS);
            }
            if (DEBUG) Log.d(TAG, "Got pattern cell");
        }

        public void onPatternDetected(List<LockPatternView.Cell> pattern) {