Loading packages/SystemUI/shared/src/com/android/systemui/shared/recents/ISystemUiProxy.aidl +1 −1 Original line number Diff line number Diff line Loading @@ -114,7 +114,7 @@ interface ISystemUiProxy { oneway void injectLongPress(int keyCode) = 46; /** Injects button press. */ oneway void injectDoublePress(int keyCode) = 43; oneway void injectPress(int keyCode) = 43; /** Notifies when taskbar status updated */ oneway void notifyTaskbarStatus(boolean visible, boolean stashed) = 47; Loading packages/SystemUI/src/com/android/systemui/recents/OverviewProxyService.java +2 −4 Original line number Diff line number Diff line Loading @@ -322,10 +322,8 @@ public class OverviewProxyService implements CallbackController<OverviewProxyLis } @Override public void injectDoublePress(int keyCode) throws RemoteException { verifyCallerAndClearCallingIdentityPostMain("doublePressInjected", () -> { sendEvent(KeyEvent.ACTION_DOWN, keyCode); sendEvent(KeyEvent.ACTION_UP, keyCode); public void injectPress(int keyCode) throws RemoteException { verifyCallerAndClearCallingIdentityPostMain("pressInjected", () -> { sendEvent(KeyEvent.ACTION_DOWN, keyCode); sendEvent(KeyEvent.ACTION_UP, keyCode); }); Loading services/core/java/com/android/server/policy/PhoneWindowManager.java +2 −6 Original line number Diff line number Diff line Loading @@ -2380,9 +2380,7 @@ public class PhoneWindowManager implements WindowManagerPolicy { mPendingHomeKeyEvent = null; mHandler.removeCallbacks(mHomeDoubleTapTimeoutRunnable); performKeyAction(mHomeDoubleTapAction, event); if (mHomeDoubleTapAction != Action.SLEEP) { mHomeConsumed = true; } } else if (mDisplayId == DEFAULT_DISPLAY && (mHomeLongPressAction == Action.APP_SWITCH || mHomeDoubleTapAction == Action.APP_SWITCH)) { Loading @@ -2400,11 +2398,9 @@ public class PhoneWindowManager implements WindowManagerPolicy { // it should pass this right invocation type. performKeyAction(mHomeLongPressAction, event, AssistUtils.INVOCATION_TYPE_HOME_BUTTON_LONG_PRESS); if (mHomeLongPressAction != Action.SLEEP) { mHomeConsumed = true; } } } return true; } Loading Loading
packages/SystemUI/shared/src/com/android/systemui/shared/recents/ISystemUiProxy.aidl +1 −1 Original line number Diff line number Diff line Loading @@ -114,7 +114,7 @@ interface ISystemUiProxy { oneway void injectLongPress(int keyCode) = 46; /** Injects button press. */ oneway void injectDoublePress(int keyCode) = 43; oneway void injectPress(int keyCode) = 43; /** Notifies when taskbar status updated */ oneway void notifyTaskbarStatus(boolean visible, boolean stashed) = 47; Loading
packages/SystemUI/src/com/android/systemui/recents/OverviewProxyService.java +2 −4 Original line number Diff line number Diff line Loading @@ -322,10 +322,8 @@ public class OverviewProxyService implements CallbackController<OverviewProxyLis } @Override public void injectDoublePress(int keyCode) throws RemoteException { verifyCallerAndClearCallingIdentityPostMain("doublePressInjected", () -> { sendEvent(KeyEvent.ACTION_DOWN, keyCode); sendEvent(KeyEvent.ACTION_UP, keyCode); public void injectPress(int keyCode) throws RemoteException { verifyCallerAndClearCallingIdentityPostMain("pressInjected", () -> { sendEvent(KeyEvent.ACTION_DOWN, keyCode); sendEvent(KeyEvent.ACTION_UP, keyCode); }); Loading
services/core/java/com/android/server/policy/PhoneWindowManager.java +2 −6 Original line number Diff line number Diff line Loading @@ -2380,9 +2380,7 @@ public class PhoneWindowManager implements WindowManagerPolicy { mPendingHomeKeyEvent = null; mHandler.removeCallbacks(mHomeDoubleTapTimeoutRunnable); performKeyAction(mHomeDoubleTapAction, event); if (mHomeDoubleTapAction != Action.SLEEP) { mHomeConsumed = true; } } else if (mDisplayId == DEFAULT_DISPLAY && (mHomeLongPressAction == Action.APP_SWITCH || mHomeDoubleTapAction == Action.APP_SWITCH)) { Loading @@ -2400,11 +2398,9 @@ public class PhoneWindowManager implements WindowManagerPolicy { // it should pass this right invocation type. performKeyAction(mHomeLongPressAction, event, AssistUtils.INVOCATION_TYPE_HOME_BUTTON_LONG_PRESS); if (mHomeLongPressAction != Action.SLEEP) { mHomeConsumed = true; } } } return true; } Loading