Loading core/java/android/view/WindowManagerPolicy.java +5 −0 Original line number Diff line number Diff line Loading @@ -868,4 +868,9 @@ public interface WindowManagerPolicy { * requesting this is no longer visible. */ public void screenOnStoppedLw(); /** * Return false to disable key repeat events from being generated. */ public boolean allowKeyRepeat(); } services/java/com/android/server/WindowManagerService.java +7 −0 Original line number Diff line number Diff line Loading @@ -6227,6 +6227,13 @@ public class WindowManagerService extends IWindowManager.Stub lt.sample("2 got event ", System.nanoTime() - ev.whenNano); } if (lastKey != null && !mPolicy.allowKeyRepeat()) { // cancel key repeat at the request of the policy. lastKey = null; downTime = 0; lastKeyTime = curTime; nextKeyTime = curTime + LONG_WAIT; } try { if (ev != null) { curTime = SystemClock.uptimeMillis(); Loading Loading
core/java/android/view/WindowManagerPolicy.java +5 −0 Original line number Diff line number Diff line Loading @@ -868,4 +868,9 @@ public interface WindowManagerPolicy { * requesting this is no longer visible. */ public void screenOnStoppedLw(); /** * Return false to disable key repeat events from being generated. */ public boolean allowKeyRepeat(); }
services/java/com/android/server/WindowManagerService.java +7 −0 Original line number Diff line number Diff line Loading @@ -6227,6 +6227,13 @@ public class WindowManagerService extends IWindowManager.Stub lt.sample("2 got event ", System.nanoTime() - ev.whenNano); } if (lastKey != null && !mPolicy.allowKeyRepeat()) { // cancel key repeat at the request of the policy. lastKey = null; downTime = 0; lastKeyTime = curTime; nextKeyTime = curTime + LONG_WAIT; } try { if (ev != null) { curTime = SystemClock.uptimeMillis(); Loading