Loading go/quickstep/src/com/android/quickstep/TouchInteractionService.java +4 −0 Original line number Diff line number Diff line Loading @@ -185,4 +185,8 @@ public class TouchInteractionService extends Service { } return mMyBinder; } public static boolean isInputMonitorInitialized() { return true; } } quickstep/recents_ui_overrides/src/com/android/quickstep/TouchInteractionService.java +7 −0 Original line number Diff line number Diff line Loading @@ -226,12 +226,17 @@ public class TouchInteractionService extends Service implements }; private static boolean sConnected = false; private static boolean sInputMonitorInitialized = false; private static final SwipeSharedState sSwipeSharedState = new SwipeSharedState(); public static boolean isConnected() { return sConnected; } public static boolean isInputMonitorInitialized() { return sInputMonitorInitialized; } public static SwipeSharedState getSwipeSharedState() { return sSwipeSharedState; } Loading Loading @@ -330,6 +335,7 @@ public class TouchInteractionService extends Service implements mInputMonitorCompat.dispose(); mInputMonitorCompat = null; } sInputMonitorInitialized = false; } private void initInputMonitor() { Loading @@ -347,6 +353,7 @@ public class TouchInteractionService extends Service implements Log.e(TAG, "Unable to create input monitor", e); } initTouchBounds(); sInputMonitorInitialized = true; } private int getNavbarSize(String resName) { Loading quickstep/src/com/android/quickstep/QuickstepTestInformationHandler.java +8 −1 Original line number Diff line number Diff line Loading @@ -10,7 +10,8 @@ import com.android.quickstep.util.LayoutUtils; public class QuickstepTestInformationHandler extends TestInformationHandler { public QuickstepTestInformationHandler(Context context) { } public QuickstepTestInformationHandler(Context context) { } @Override public Bundle call(String method) { Loading @@ -29,6 +30,12 @@ public class QuickstepTestInformationHandler extends TestInformationHandler { response.putInt(TestProtocol.TEST_INFO_RESPONSE_FIELD, (int) swipeHeight); return response; } case TestProtocol.REQUEST_IS_LAUNCHER_INITIALIZED: { response.putBoolean(TestProtocol.TEST_INFO_RESPONSE_FIELD, TouchInteractionService.isInputMonitorInitialized()); break; } } return super.call(method); Loading src/com/android/launcher3/testing/TestInformationHandler.java +5 −0 Original line number Diff line number Diff line Loading @@ -74,6 +74,11 @@ public class TestInformationHandler implements ResourceBasedOverride { break; } case TestProtocol.REQUEST_IS_LAUNCHER_INITIALIZED: { response.putBoolean(TestProtocol.TEST_INFO_RESPONSE_FIELD, true); break; } case TestProtocol.REQUEST_ENABLE_DEBUG_TRACING: TestProtocol.sDebugTracing = true; break; Loading src/com/android/launcher3/testing/TestProtocol.java +1 −0 Original line number Diff line number Diff line Loading @@ -66,6 +66,7 @@ public final class TestProtocol { "all-apps-to-overview-swipe-height"; public static final String REQUEST_HOME_TO_ALL_APPS_SWIPE_HEIGHT = "home-to-all-apps-swipe-height"; public static final String REQUEST_IS_LAUNCHER_INITIALIZED = "is-launcher-initialized"; public static final String REQUEST_FREEZE_APP_LIST = "freeze-app-list"; public static final String REQUEST_UNFREEZE_APP_LIST = "unfreeze-app-list"; public static final String REQUEST_APP_LIST_FREEZE_FLAGS = "app-list-freeze-flags"; Loading Loading
go/quickstep/src/com/android/quickstep/TouchInteractionService.java +4 −0 Original line number Diff line number Diff line Loading @@ -185,4 +185,8 @@ public class TouchInteractionService extends Service { } return mMyBinder; } public static boolean isInputMonitorInitialized() { return true; } }
quickstep/recents_ui_overrides/src/com/android/quickstep/TouchInteractionService.java +7 −0 Original line number Diff line number Diff line Loading @@ -226,12 +226,17 @@ public class TouchInteractionService extends Service implements }; private static boolean sConnected = false; private static boolean sInputMonitorInitialized = false; private static final SwipeSharedState sSwipeSharedState = new SwipeSharedState(); public static boolean isConnected() { return sConnected; } public static boolean isInputMonitorInitialized() { return sInputMonitorInitialized; } public static SwipeSharedState getSwipeSharedState() { return sSwipeSharedState; } Loading Loading @@ -330,6 +335,7 @@ public class TouchInteractionService extends Service implements mInputMonitorCompat.dispose(); mInputMonitorCompat = null; } sInputMonitorInitialized = false; } private void initInputMonitor() { Loading @@ -347,6 +353,7 @@ public class TouchInteractionService extends Service implements Log.e(TAG, "Unable to create input monitor", e); } initTouchBounds(); sInputMonitorInitialized = true; } private int getNavbarSize(String resName) { Loading
quickstep/src/com/android/quickstep/QuickstepTestInformationHandler.java +8 −1 Original line number Diff line number Diff line Loading @@ -10,7 +10,8 @@ import com.android.quickstep.util.LayoutUtils; public class QuickstepTestInformationHandler extends TestInformationHandler { public QuickstepTestInformationHandler(Context context) { } public QuickstepTestInformationHandler(Context context) { } @Override public Bundle call(String method) { Loading @@ -29,6 +30,12 @@ public class QuickstepTestInformationHandler extends TestInformationHandler { response.putInt(TestProtocol.TEST_INFO_RESPONSE_FIELD, (int) swipeHeight); return response; } case TestProtocol.REQUEST_IS_LAUNCHER_INITIALIZED: { response.putBoolean(TestProtocol.TEST_INFO_RESPONSE_FIELD, TouchInteractionService.isInputMonitorInitialized()); break; } } return super.call(method); Loading
src/com/android/launcher3/testing/TestInformationHandler.java +5 −0 Original line number Diff line number Diff line Loading @@ -74,6 +74,11 @@ public class TestInformationHandler implements ResourceBasedOverride { break; } case TestProtocol.REQUEST_IS_LAUNCHER_INITIALIZED: { response.putBoolean(TestProtocol.TEST_INFO_RESPONSE_FIELD, true); break; } case TestProtocol.REQUEST_ENABLE_DEBUG_TRACING: TestProtocol.sDebugTracing = true; break; Loading
src/com/android/launcher3/testing/TestProtocol.java +1 −0 Original line number Diff line number Diff line Loading @@ -66,6 +66,7 @@ public final class TestProtocol { "all-apps-to-overview-swipe-height"; public static final String REQUEST_HOME_TO_ALL_APPS_SWIPE_HEIGHT = "home-to-all-apps-swipe-height"; public static final String REQUEST_IS_LAUNCHER_INITIALIZED = "is-launcher-initialized"; public static final String REQUEST_FREEZE_APP_LIST = "freeze-app-list"; public static final String REQUEST_UNFREEZE_APP_LIST = "unfreeze-app-list"; public static final String REQUEST_APP_LIST_FREEZE_FLAGS = "app-list-freeze-flags"; Loading