Loading quickstep/recents_ui_overrides/src/com/android/quickstep/BaseSwipeUpHandlerV2.java +2 −1 Original line number Diff line number Diff line Loading @@ -397,7 +397,8 @@ public abstract class BaseSwipeUpHandlerV2<T extends StatefulActivity<?>, Q exte mOnDeferredActivityLaunch); mGestureState.runOnceAtState(STATE_END_TARGET_SET, () -> mDeviceState.onEndTargetCalculated(mGestureState.getEndTarget(), () -> mDeviceState.getRotationTouchHelper(). onEndTargetCalculated(mGestureState.getEndTarget(), mActivityInterface)); notifyGestureStartedAsync(); Loading quickstep/recents_ui_overrides/src/com/android/quickstep/FallbackActivityInterface.java +1 −1 Original line number Diff line number Diff line Loading @@ -140,7 +140,7 @@ public final class FallbackActivityInterface extends } @Override public void onExitOverview(RecentsAnimationDeviceState deviceState, Runnable exitRunnable) { public void onExitOverview(RotationTouchHelper deviceState, Runnable exitRunnable) { // no-op, fake landscape not supported for 3P } Loading quickstep/recents_ui_overrides/src/com/android/quickstep/LauncherActivityInterface.java +6 −6 Original line number Diff line number Diff line Loading @@ -105,7 +105,7 @@ public final class LauncherActivityInterface extends // recents, we assume the first task is invisible, making translation off by one task. launcher.getStateManager().reapplyState(); launcher.getRootView().setForceHideBackArrow(false); notifyRecentsOfOrientation(deviceState); notifyRecentsOfOrientation(deviceState.getRotationTouchHelper()); } @Override Loading @@ -120,7 +120,7 @@ public final class LauncherActivityInterface extends @Override public AnimationFactory prepareRecentsUI(RecentsAnimationDeviceState deviceState, boolean activityVisible, Consumer<AnimatorPlaybackController> callback) { notifyRecentsOfOrientation(deviceState); notifyRecentsOfOrientation(deviceState.getRotationTouchHelper()); DefaultAnimationFactory factory = new DefaultAnimationFactory(callback) { @Override public void setShelfState(ShelfAnimState shelfState, Interpolator interpolator, Loading Loading @@ -228,7 +228,7 @@ public final class LauncherActivityInterface extends @Override public void onExitOverview(RecentsAnimationDeviceState deviceState, Runnable exitRunnable) { public void onExitOverview(RotationTouchHelper deviceState, Runnable exitRunnable) { final StateManager<LauncherState> stateManager = getCreatedActivity().getStateManager(); stateManager.addStateListener( new StateManager.StateListener<LauncherState>() { Loading @@ -244,11 +244,11 @@ public final class LauncherActivityInterface extends }); } private void notifyRecentsOfOrientation(RecentsAnimationDeviceState deviceState) { private void notifyRecentsOfOrientation(RotationTouchHelper rotationTouchHelper) { // reset layout on swipe to home RecentsView recentsView = getCreatedActivity().getOverviewPanel(); recentsView.setLayoutRotation(deviceState.getCurrentActiveRotation(), deviceState.getDisplayRotation()); recentsView.setLayoutRotation(rotationTouchHelper.getCurrentActiveRotation(), rotationTouchHelper.getDisplayRotation()); } @Override Loading quickstep/recents_ui_overrides/src/com/android/quickstep/SwipeUpAnimationLogic.java +2 −1 Original line number Diff line number Diff line Loading @@ -82,7 +82,8 @@ public abstract class SwipeUpAnimationLogic { mTransformParams = transformParams; mTaskViewSimulator.setLayoutRotation( mDeviceState.getCurrentActiveRotation(), mDeviceState.getDisplayRotation()); mDeviceState.getRotationTouchHelper().getCurrentActiveRotation(), mDeviceState.getRotationTouchHelper().getDisplayRotation()); } protected void initTransitionEndpoints(DeviceProfile dp) { Loading quickstep/recents_ui_overrides/src/com/android/quickstep/TouchInteractionService.java +6 −4 Original line number Diff line number Diff line Loading @@ -258,6 +258,7 @@ public class TouchInteractionService extends Service implements PluginListener<O private static boolean sConnected = false; private static boolean sIsInitialized = false; private RotationTouchHelper mRotationTouchHelper; public static boolean isConnected() { return sConnected; Loading Loading @@ -298,6 +299,7 @@ public class TouchInteractionService extends Service implements PluginListener<O mDeviceState = new RecentsAnimationDeviceState(this); mDeviceState.addNavigationModeChangedCallback(this::onNavigationModeChanged); mDeviceState.runOnUserUnlocked(this::onUserUnlocked); mRotationTouchHelper = mDeviceState.getRotationTouchHelper(); ProtoTracer.INSTANCE.get(this).add(this); sConnected = true; Loading Loading @@ -326,7 +328,7 @@ public class TouchInteractionService extends Service implements PluginListener<O mInputEventReceiver = mInputMonitorCompat.getInputReceiver(Looper.getMainLooper(), mMainChoreographer, this::onInputEvent); mDeviceState.updateGestureTouchRegions(); mRotationTouchHelper.updateGestureTouchRegions(); } /** Loading Loading @@ -470,9 +472,9 @@ public class TouchInteractionService extends Service implements PluginListener<O if (TestProtocol.sDebugTracing) { Log.d(TestProtocol.NO_SWIPE_TO_HOME, "TouchInteractionService.onInputEvent:DOWN"); } mDeviceState.setOrientationTransformIfNeeded(event); mRotationTouchHelper.setOrientationTransformIfNeeded(event); if (mDeviceState.isInSwipeUpTouchRegion(event)) { if (mRotationTouchHelper.isInSwipeUpTouchRegion(event)) { if (TestProtocol.sDebugTracing) { Log.d(TestProtocol.NO_SWIPE_TO_HOME, "TouchInteractionService.onInputEvent:isInSwipeUpTouchRegion"); Loading Loading @@ -509,7 +511,7 @@ public class TouchInteractionService extends Service implements PluginListener<O // Other events if (mUncheckedConsumer != InputConsumer.NO_OP) { // Only transform the event if we are handling it in a proper consumer mDeviceState.setOrientationTransformIfNeeded(event); mRotationTouchHelper.setOrientationTransformIfNeeded(event); } } Loading Loading
quickstep/recents_ui_overrides/src/com/android/quickstep/BaseSwipeUpHandlerV2.java +2 −1 Original line number Diff line number Diff line Loading @@ -397,7 +397,8 @@ public abstract class BaseSwipeUpHandlerV2<T extends StatefulActivity<?>, Q exte mOnDeferredActivityLaunch); mGestureState.runOnceAtState(STATE_END_TARGET_SET, () -> mDeviceState.onEndTargetCalculated(mGestureState.getEndTarget(), () -> mDeviceState.getRotationTouchHelper(). onEndTargetCalculated(mGestureState.getEndTarget(), mActivityInterface)); notifyGestureStartedAsync(); Loading
quickstep/recents_ui_overrides/src/com/android/quickstep/FallbackActivityInterface.java +1 −1 Original line number Diff line number Diff line Loading @@ -140,7 +140,7 @@ public final class FallbackActivityInterface extends } @Override public void onExitOverview(RecentsAnimationDeviceState deviceState, Runnable exitRunnable) { public void onExitOverview(RotationTouchHelper deviceState, Runnable exitRunnable) { // no-op, fake landscape not supported for 3P } Loading
quickstep/recents_ui_overrides/src/com/android/quickstep/LauncherActivityInterface.java +6 −6 Original line number Diff line number Diff line Loading @@ -105,7 +105,7 @@ public final class LauncherActivityInterface extends // recents, we assume the first task is invisible, making translation off by one task. launcher.getStateManager().reapplyState(); launcher.getRootView().setForceHideBackArrow(false); notifyRecentsOfOrientation(deviceState); notifyRecentsOfOrientation(deviceState.getRotationTouchHelper()); } @Override Loading @@ -120,7 +120,7 @@ public final class LauncherActivityInterface extends @Override public AnimationFactory prepareRecentsUI(RecentsAnimationDeviceState deviceState, boolean activityVisible, Consumer<AnimatorPlaybackController> callback) { notifyRecentsOfOrientation(deviceState); notifyRecentsOfOrientation(deviceState.getRotationTouchHelper()); DefaultAnimationFactory factory = new DefaultAnimationFactory(callback) { @Override public void setShelfState(ShelfAnimState shelfState, Interpolator interpolator, Loading Loading @@ -228,7 +228,7 @@ public final class LauncherActivityInterface extends @Override public void onExitOverview(RecentsAnimationDeviceState deviceState, Runnable exitRunnable) { public void onExitOverview(RotationTouchHelper deviceState, Runnable exitRunnable) { final StateManager<LauncherState> stateManager = getCreatedActivity().getStateManager(); stateManager.addStateListener( new StateManager.StateListener<LauncherState>() { Loading @@ -244,11 +244,11 @@ public final class LauncherActivityInterface extends }); } private void notifyRecentsOfOrientation(RecentsAnimationDeviceState deviceState) { private void notifyRecentsOfOrientation(RotationTouchHelper rotationTouchHelper) { // reset layout on swipe to home RecentsView recentsView = getCreatedActivity().getOverviewPanel(); recentsView.setLayoutRotation(deviceState.getCurrentActiveRotation(), deviceState.getDisplayRotation()); recentsView.setLayoutRotation(rotationTouchHelper.getCurrentActiveRotation(), rotationTouchHelper.getDisplayRotation()); } @Override Loading
quickstep/recents_ui_overrides/src/com/android/quickstep/SwipeUpAnimationLogic.java +2 −1 Original line number Diff line number Diff line Loading @@ -82,7 +82,8 @@ public abstract class SwipeUpAnimationLogic { mTransformParams = transformParams; mTaskViewSimulator.setLayoutRotation( mDeviceState.getCurrentActiveRotation(), mDeviceState.getDisplayRotation()); mDeviceState.getRotationTouchHelper().getCurrentActiveRotation(), mDeviceState.getRotationTouchHelper().getDisplayRotation()); } protected void initTransitionEndpoints(DeviceProfile dp) { Loading
quickstep/recents_ui_overrides/src/com/android/quickstep/TouchInteractionService.java +6 −4 Original line number Diff line number Diff line Loading @@ -258,6 +258,7 @@ public class TouchInteractionService extends Service implements PluginListener<O private static boolean sConnected = false; private static boolean sIsInitialized = false; private RotationTouchHelper mRotationTouchHelper; public static boolean isConnected() { return sConnected; Loading Loading @@ -298,6 +299,7 @@ public class TouchInteractionService extends Service implements PluginListener<O mDeviceState = new RecentsAnimationDeviceState(this); mDeviceState.addNavigationModeChangedCallback(this::onNavigationModeChanged); mDeviceState.runOnUserUnlocked(this::onUserUnlocked); mRotationTouchHelper = mDeviceState.getRotationTouchHelper(); ProtoTracer.INSTANCE.get(this).add(this); sConnected = true; Loading Loading @@ -326,7 +328,7 @@ public class TouchInteractionService extends Service implements PluginListener<O mInputEventReceiver = mInputMonitorCompat.getInputReceiver(Looper.getMainLooper(), mMainChoreographer, this::onInputEvent); mDeviceState.updateGestureTouchRegions(); mRotationTouchHelper.updateGestureTouchRegions(); } /** Loading Loading @@ -470,9 +472,9 @@ public class TouchInteractionService extends Service implements PluginListener<O if (TestProtocol.sDebugTracing) { Log.d(TestProtocol.NO_SWIPE_TO_HOME, "TouchInteractionService.onInputEvent:DOWN"); } mDeviceState.setOrientationTransformIfNeeded(event); mRotationTouchHelper.setOrientationTransformIfNeeded(event); if (mDeviceState.isInSwipeUpTouchRegion(event)) { if (mRotationTouchHelper.isInSwipeUpTouchRegion(event)) { if (TestProtocol.sDebugTracing) { Log.d(TestProtocol.NO_SWIPE_TO_HOME, "TouchInteractionService.onInputEvent:isInSwipeUpTouchRegion"); Loading Loading @@ -509,7 +511,7 @@ public class TouchInteractionService extends Service implements PluginListener<O // Other events if (mUncheckedConsumer != InputConsumer.NO_OP) { // Only transform the event if we are handling it in a proper consumer mDeviceState.setOrientationTransformIfNeeded(event); mRotationTouchHelper.setOrientationTransformIfNeeded(event); } } Loading