Files
Flexera-Launcher/quickstep/tests/multivalentTests/src/com/android/quickstep/FallbackSwipeHandlerTestCase.java
T
Sunny Goyal 0e3948a5fd Removing RotationTouchHelper state management from RecentsAnimationDeviceState
RotationTouchHelper is a singleton and can manage its lifecycle statically

Bug: 386288280
Test: Presubmit
Flag: EXEMPT refactor
Change-Id: I3e3105ac982ec716d5e2ee10f459d3e1cf55cd0d
2025-01-06 16:33:35 -08:00

67 lines
2.0 KiB
Java

/*
* Copyright (C) 2024 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.android.quickstep;
import androidx.annotation.NonNull;
import androidx.test.filters.SmallTest;
import com.android.launcher3.util.LauncherMultivalentJUnit;
import com.android.quickstep.fallback.FallbackRecentsView;
import com.android.quickstep.fallback.RecentsState;
import org.junit.runner.RunWith;
import org.mockito.Mock;
@SmallTest
@RunWith(LauncherMultivalentJUnit.class)
public class FallbackSwipeHandlerTestCase extends AbsSwipeUpHandlerTestCase<
RecentsState,
RecentsActivity,
FallbackRecentsView<RecentsActivity>,
FallbackSwipeHandler,
FallbackActivityInterface> {
@Mock private RecentsActivity mRecentsActivity;
@Mock private FallbackRecentsView<RecentsActivity> mRecentsView;
@Override
protected FallbackSwipeHandler createSwipeHandler(
long touchTimeMs, boolean continuingLastGesture) {
return new FallbackSwipeHandler(
mContext,
mTaskAnimationManager,
mGestureState,
touchTimeMs,
continuingLastGesture,
mInputConsumerController,
mMSDLPlayerWrapper);
}
@NonNull
@Override
protected RecentsActivity getRecentsContainer() {
return mRecentsActivity;
}
@NonNull
@Override
protected FallbackRecentsView<RecentsActivity> getRecentsView() {
return mRecentsView;
}
}