Loading policy/src/com/android/internal/policy/impl/LockPatternKeyguardView.java +14 −0 Original line number Original line Diff line number Diff line Loading @@ -44,8 +44,10 @@ import android.text.TextUtils; import android.util.Log; import android.util.Log; import android.util.Slog; import android.util.Slog; import android.view.KeyEvent; import android.view.KeyEvent; import android.view.MotionEvent; import android.view.View; import android.view.View; import android.view.WindowManager; import android.view.WindowManager; import android.view.accessibility.AccessibilityManager; import java.io.IOException; import java.io.IOException; Loading Loading @@ -509,6 +511,18 @@ public class LockPatternKeyguardView extends KeyguardViewBase { super.onDetachedFromWindow(); super.onDetachedFromWindow(); } } @Override protected boolean dispatchHoverEvent(MotionEvent event) { // Do not let the screen to get locked while the user is disabled and touch // exploring. A blind user will need significantly more time to find and // interact with the lock screen views. AccessibilityManager accessibilityManager = AccessibilityManager.getInstance(mContext); if (accessibilityManager.isEnabled() && accessibilityManager.isTouchExplorationEnabled()) { getCallback().pokeWakelock(); } return super.dispatchHoverEvent(event); } @Override @Override public void wakeWhenReadyTq(int keyCode) { public void wakeWhenReadyTq(int keyCode) { if (DEBUG) Log.d(TAG, "onWakeKey"); if (DEBUG) Log.d(TAG, "onWakeKey"); Loading Loading
policy/src/com/android/internal/policy/impl/LockPatternKeyguardView.java +14 −0 Original line number Original line Diff line number Diff line Loading @@ -44,8 +44,10 @@ import android.text.TextUtils; import android.util.Log; import android.util.Log; import android.util.Slog; import android.util.Slog; import android.view.KeyEvent; import android.view.KeyEvent; import android.view.MotionEvent; import android.view.View; import android.view.View; import android.view.WindowManager; import android.view.WindowManager; import android.view.accessibility.AccessibilityManager; import java.io.IOException; import java.io.IOException; Loading Loading @@ -509,6 +511,18 @@ public class LockPatternKeyguardView extends KeyguardViewBase { super.onDetachedFromWindow(); super.onDetachedFromWindow(); } } @Override protected boolean dispatchHoverEvent(MotionEvent event) { // Do not let the screen to get locked while the user is disabled and touch // exploring. A blind user will need significantly more time to find and // interact with the lock screen views. AccessibilityManager accessibilityManager = AccessibilityManager.getInstance(mContext); if (accessibilityManager.isEnabled() && accessibilityManager.isTouchExplorationEnabled()) { getCallback().pokeWakelock(); } return super.dispatchHoverEvent(event); } @Override @Override public void wakeWhenReadyTq(int keyCode) { public void wakeWhenReadyTq(int keyCode) { if (DEBUG) Log.d(TAG, "onWakeKey"); if (DEBUG) Log.d(TAG, "onWakeKey"); Loading