/packages/apps/Launcher3/src/com/android/launcher3/ |
D | LauncherState.java | 49 public abstract class LauncherState implements BaseState<LauncherState> { class 95 private static final LauncherState[] sAllStates = new LauncherState[10]; 100 public static final LauncherState NORMAL = new LauncherState(NORMAL_STATE_ORDINAL, 114 public static final LauncherState SPRING_LOADED = new SpringLoadedState( 116 public static final LauncherState ALL_APPS = new AllAppsState(ALL_APPS_STATE_ORDINAL); 117 public static final LauncherState HINT_STATE = new HintState(HINT_STATE_ORDINAL); 118 public static final LauncherState HINT_STATE_TWO_BUTTON = new HintState( 121 public static final LauncherState OVERVIEW = new OverviewState(OVERVIEW_STATE_ORDINAL); 122 public static final LauncherState OVERVIEW_MODAL_TASK = OverviewState.newModalTaskState( 124 public static final LauncherState QUICK_SWITCH = [all …]
|
D | WorkspaceStateTransitionAnimation.java | 25 import static com.android.launcher3.LauncherState.FLAG_HAS_SYS_UI_SCRIM; 26 import static com.android.launcher3.LauncherState.HINT_STATE; 27 import static com.android.launcher3.LauncherState.HOTSEAT_ICONS; 28 import static com.android.launcher3.LauncherState.NORMAL; 29 import static com.android.launcher3.LauncherState.WORKSPACE_PAGE_INDICATOR; 48 import com.android.launcher3.LauncherState.PageAlphaProvider; 49 import com.android.launcher3.LauncherState.ScaleAndTranslation; 75 public void setState(LauncherState toState) { in setState() 83 LauncherState toState, StateAnimationConfig config, PendingAnimation animation) { in setStateWithAnimation() 94 private void setWorkspaceProperty(LauncherState state, PropertySetter propertySetter, in setWorkspaceProperty() [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/touch/ |
D | AbstractStateChangeTouchController.java | 20 import static com.android.launcher3.LauncherState.ALL_APPS; 21 import static com.android.launcher3.LauncherState.NORMAL; 22 import static com.android.launcher3.LauncherState.OVERVIEW; 38 import com.android.launcher3.LauncherState; 63 protected LauncherState mStartState; 64 protected LauncherState mFromState; 65 protected LauncherState mToState; 122 LauncherState fromState = mLauncher.getStateManager().getState(); in getSwipeDirection() 146 protected abstract LauncherState getTargetState(LauncherState fromState, in getTargetState() 152 LauncherState newFromState = mFromState == null ? mLauncher.getStateManager().getState() in reinitCurrentAnimation() [all …]
|
D | AllAppsSwipeController.java | 18 import static com.android.launcher3.LauncherState.ALL_APPS; 19 import static com.android.launcher3.LauncherState.NORMAL; 25 import com.android.launcher3.LauncherState; 56 protected LauncherState getTargetState(LauncherState fromState, boolean isDragTowardPositive) { in getTargetState()
|
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/util/ |
D | QuickstepOnboardingPrefs.java | 20 import static com.android.launcher3.LauncherState.ALL_APPS; 21 import static com.android.launcher3.LauncherState.HINT_STATE; 22 import static com.android.launcher3.LauncherState.NORMAL; 23 import static com.android.launcher3.LauncherState.OVERVIEW; 28 import com.android.launcher3.LauncherState; 48 StateManager<LauncherState> stateManager = launcher.getStateManager(); in QuickstepOnboardingPrefs() 50 stateManager.addStateListener(new StateListener<LauncherState>() { in QuickstepOnboardingPrefs() 52 public void onStateTransitionComplete(LauncherState finalState) { in QuickstepOnboardingPrefs() 55 LauncherState prevState = stateManager.getLastState(); in QuickstepOnboardingPrefs() 69 stateManager.addStateListener(new StateListener<LauncherState>() { in QuickstepOnboardingPrefs() [all …]
|
D | OverviewToHomeAnim.java | 18 import static com.android.launcher3.LauncherState.NORMAL; 19 import static com.android.launcher3.LauncherState.OVERVIEW; 26 import com.android.launcher3.LauncherState; 57 StateManager<LauncherState> stateManager = mLauncher.getStateManager(); in animateWithVelocity() 58 LauncherState startState = stateManager.getState(); in animateWithVelocity()
|
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/views/ |
D | LauncherRecentsView.java | 18 import static com.android.launcher3.LauncherState.CLEAR_ALL_BUTTON; 19 import static com.android.launcher3.LauncherState.NORMAL; 20 import static com.android.launcher3.LauncherState.OVERVIEW; 21 import static com.android.launcher3.LauncherState.OVERVIEW_MODAL_TASK; 22 import static com.android.launcher3.LauncherState.OVERVIEW_SPLIT_SELECT; 23 import static com.android.launcher3.LauncherState.SPRING_LOADED; 35 import com.android.launcher3.LauncherState; 48 public class LauncherRecentsView extends RecentsView<BaseQuickstepLauncher, LauncherState> 49 implements StateListener<LauncherState> { 99 LauncherState state = mActivity.getStateManager().getState(); in onTaskLaunchAnimationEnd() [all …]
|
/packages/apps/Launcher3/quickstep/tests/src/com/android/quickstep/ |
D | TaplTestsQuickstep.java | 34 import com.android.launcher3.LauncherState; 92 isInState(() -> LauncherState.ALL_APPS)); in testWorkspaceSwitchToAllApps() 102 isInState(() -> LauncherState.OVERVIEW)); in testOverview() 112 isInState(() -> LauncherState.OVERVIEW)); in testOverview() 120 isInState(() -> LauncherState.OVERVIEW)); in testOverview() 139 isInState(() -> LauncherState.OVERVIEW)); in testOverview() 150 waitForState("Launcher internal state didn't switch to Home", () -> LauncherState.NORMAL); in testOverview() 154 waitForState("Launcher internal state didn't switch to Home", () -> LauncherState.NORMAL); in testOverview() 195 isInState(() -> LauncherState.OVERVIEW)); in testSwitchToOverview() 207 isInState(() -> LauncherState.OVERVIEW)); in testBackground() [all …]
|
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/uioverrides/ |
D | RecentsViewStateController.java | 18 import static com.android.launcher3.LauncherState.CLEAR_ALL_BUTTON; 19 import static com.android.launcher3.LauncherState.OVERVIEW_ACTIONS; 20 import static com.android.launcher3.LauncherState.OVERVIEW_SPLIT_SELECT; 21 import static com.android.launcher3.LauncherState.SPLIT_PLACHOLDER_VIEW; 37 import com.android.launcher3.LauncherState; 60 public void setState(@NonNull LauncherState state) { in setState() 71 void setStateWithAnimationInternal(@NonNull LauncherState toState, in setStateWithAnimationInternal() 85 LauncherState currentState = mLauncher.getStateManager().getState(); in setStateWithAnimationInternal() 100 private boolean isSplitSelectionState(@NonNull LauncherState toState) { in isSplitSelectionState() 105 LauncherState state) { in setAlphas()
|
D | BaseRecentsViewStateController.java | 39 import com.android.launcher3.LauncherState; 53 implements StateHandler<LauncherState> { 63 public void setState(@NonNull LauncherState state) { in setState() 76 public void setStateWithAnimation(LauncherState toState, StateAnimationConfig config, in setStateWithAnimation() 91 void setStateWithAnimationInternal(@NonNull final LauncherState toState, in setStateWithAnimationInternal()
|
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/uioverrides/touchcontrollers/ |
D | TwoButtonNavbarTouchController.java | 20 import static com.android.launcher3.LauncherState.HINT_STATE_TWO_BUTTON; 21 import static com.android.launcher3.LauncherState.NORMAL; 22 import static com.android.launcher3.LauncherState.OVERVIEW; 32 import com.android.launcher3.LauncherState; 99 protected LauncherState getTargetState(LauncherState fromState, boolean isDragTowardPositive) { in getTargetState() 105 LauncherState startState = mStartState != null ? mStartState : fromState; in getTargetState() 111 protected void onReinitToState(LauncherState newToState) { in onReinitToState() 117 LauncherState targetState, float velocity, boolean isFling) { in updateSwipeCompleteAnimation() 159 protected void onSwipeInteractionCompleted(LauncherState targetState) { in onSwipeInteractionCompleted()
|
D | PortraitStatesTouchController.java | 21 import static com.android.launcher3.LauncherState.ALL_APPS; 22 import static com.android.launcher3.LauncherState.NORMAL; 23 import static com.android.launcher3.LauncherState.OVERVIEW; 33 import com.android.launcher3.LauncherState; 116 protected LauncherState getTargetState(LauncherState fromState, boolean isDragTowardPositive) { in getTargetState() 151 LauncherState fromState, LauncherState toState) { in getConfigForStates() 209 protected void onSwipeInteractionCompleted(LauncherState targetState) { in onSwipeInteractionCompleted() 252 protected void onReinitToState(LauncherState newToState) { in onReinitToState() 260 protected void onReachedFinalState(LauncherState toState) { in onReachedFinalState()
|
D | NoButtonNavbarToOverviewTouchController.java | 21 import static com.android.launcher3.LauncherState.HINT_STATE; 22 import static com.android.launcher3.LauncherState.NORMAL; 23 import static com.android.launcher3.LauncherState.OVERVIEW; 37 import com.android.launcher3.LauncherState; 90 protected LauncherState getTargetState(LauncherState fromState, boolean isDragTowardPositive) { in getTargetState() 159 LauncherState targetState, float velocity, boolean isFling) { in updateSwipeCompleteAnimation() 254 LauncherState state = mLauncher.getStateManager().getState(); in goToOverviewOrHomeOnDragEnd()
|
D | NoButtonQuickSwitchTouchController.java | 19 import static com.android.launcher3.LauncherState.NORMAL; 20 import static com.android.launcher3.LauncherState.OVERVIEW; 21 import static com.android.launcher3.LauncherState.OVERVIEW_ACTIONS; 22 import static com.android.launcher3.LauncherState.QUICK_SWITCH; 61 import com.android.launcher3.LauncherState; 104 private LauncherState mStartState; 154 if (!mLauncher.isInState(LauncherState.NORMAL)) { in canInterceptTouch() 211 private void updateNonOverviewAnim(LauncherState toState, StateAnimationConfig config) { in updateNonOverviewAnim() 220 final LauncherState fromState = QUICK_SWITCH; in setupOverviewAnimators() 221 final LauncherState toState = OVERVIEW; in setupOverviewAnimators() [all …]
|
D | QuickSwitchTouchController.java | 18 import static com.android.launcher3.LauncherState.NORMAL; 19 import static com.android.launcher3.LauncherState.QUICK_SWITCH; 42 import com.android.launcher3.LauncherState; 75 if (!mLauncher.isInState(LauncherState.NORMAL)) { in canInterceptTouch() 85 protected LauncherState getTargetState(LauncherState fromState, boolean isDragTowardPositive) { in getTargetState() 101 protected void onSwipeInteractionCompleted(LauncherState targetState) { in onSwipeInteractionCompleted()
|
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/ |
D | LauncherActivityInterface.java | 18 import static com.android.launcher3.LauncherState.BACKGROUND_APP; 19 import static com.android.launcher3.LauncherState.NORMAL; 20 import static com.android.launcher3.LauncherState.OVERVIEW; 21 import static com.android.launcher3.LauncherState.QUICK_SWITCH; 40 import com.android.launcher3.LauncherState; 63 BaseActivityInterface<LauncherState, BaseQuickstepLauncher> { 231 final StateManager<LauncherState> stateManager = getCreatedActivity().getStateManager(); in onExitOverview() 233 new StateManager.StateListener<LauncherState>() { in onExitOverview() 235 public void onStateTransitionComplete(LauncherState toState) { in onExitOverview() 237 if (toState == LauncherState.NORMAL) { in onExitOverview() [all …]
|
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/taskbar/ |
D | TaskbarStateHandler.java | 18 import static com.android.launcher3.LauncherState.TASKBAR; 25 import com.android.launcher3.LauncherState; 36 public class TaskbarStateHandler implements StateManager.StateHandler<LauncherState> { 52 public void setState(LauncherState state) { in setState() 57 public void setStateWithAnimation(LauncherState toState, StateAnimationConfig config, in setStateWithAnimation() 62 private void setState(LauncherState toState, PropertySetter setter) { in setState()
|
/packages/apps/Launcher3/tests/src/com/android/launcher3/ui/ |
D | TaplTestsLauncher3.java | 31 import com.android.launcher3.LauncherState; 65 () -> LauncherState.NORMAL); in initialize() 134 test.isInState(() -> LauncherState.ALL_APPS)); in runAllAppsTest() 143 test.isInState(() -> LauncherState.ALL_APPS)); in runAllAppsTest() 153 test.isInState(() -> LauncherState.ALL_APPS)); in runAllAppsTest() 170 test.isInState(() -> LauncherState.ALL_APPS)); in runAllAppsTest() 182 isInState(() -> LauncherState.ALL_APPS)); in testWorkspaceSwitchToAllApps() 208 assertTrue("Launcher internal state is not Home", isInState(() -> LauncherState.NORMAL)); in testWorkspace() 217 assertTrue("Launcher internal state is not Home", isInState(() -> LauncherState.NORMAL)); in testWorkspace() 244 isInState(() -> LauncherState.ALL_APPS)); in testAppIconLaunchFromAllAppsFromHome()
|
/packages/apps/Launcher3/src/com/android/launcher3/allapps/ |
D | DiscoveryBounce.java | 19 import static com.android.launcher3.LauncherState.NORMAL; 30 import com.android.launcher3.LauncherState; 47 private final StateListener<LauncherState> mStateListener = new StateListener<LauncherState>() { 49 public void onStateTransitionStart(LauncherState toState) { 54 public void onStateTransitionComplete(LauncherState finalState) {}
|
D | AllAppsTransitionController.java | 18 import static com.android.launcher3.LauncherState.ALL_APPS; 19 import static com.android.launcher3.LauncherState.ALL_APPS_CONTENT; 37 import com.android.launcher3.LauncherState; 59 implements StateHandler<LauncherState>, OnDeviceProfileChangeListener { 141 public void setState(LauncherState state) { in setState() 152 public void setStateWithAnimation(LauncherState toState, in setStateWithAnimation() 180 public void setAlphas(LauncherState state, StateAnimationConfig config, PropertySetter setter) { in setAlphas()
|
D | LauncherAllAppsContainerView.java | 24 import com.android.launcher3.LauncherState; 34 private StateListener<LauncherState> mWorkTabListener; 53 if (!mLauncher.isInState(LauncherState.ALL_APPS)) { in onInterceptTouchEvent() 63 if (!mLauncher.isInState(LauncherState.ALL_APPS)) { in onTouchEvent()
|
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/uioverrides/states/ |
D | QuickstepAtomicAnimationFactory.java | 20 import static com.android.launcher3.LauncherState.HINT_STATE; 21 import static com.android.launcher3.LauncherState.HINT_STATE_TWO_BUTTON; 22 import static com.android.launcher3.LauncherState.NORMAL; 23 import static com.android.launcher3.LauncherState.OVERVIEW; 53 import com.android.launcher3.LauncherState; 65 RecentsAtomicAnimationFactory<QuickstepLauncher, LauncherState> { 85 public void prepareForAtomicAnimation(LauncherState fromState, LauncherState toState, in prepareForAtomicAnimation()
|
D | AllAppsState.java | 24 import com.android.launcher3.LauncherState; 32 public class AllAppsState extends LauncherState { 65 ScaleAndTranslation scaleAndTranslation = LauncherState.OVERVIEW in getWorkspaceScaleAndTranslation() 89 public LauncherState getHistoryForState(LauncherState previousState) { in getHistoryForState()
|
/packages/apps/Launcher3/src/com/android/launcher3/views/ |
D | AccessibilityActionsView.java | 19 import static com.android.launcher3.LauncherState.ALL_APPS; 20 import static com.android.launcher3.LauncherState.NORMAL; 32 import com.android.launcher3.LauncherState; 40 public class AccessibilityActionsView extends View implements StateListener<LauncherState> { 58 public void onStateTransitionComplete(LauncherState finalState) { in onStateTransitionComplete()
|
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/statehandlers/ |
D | BackButtonAlphaHandler.java | 24 import com.android.launcher3.LauncherState; 36 public class BackButtonAlphaHandler implements StateHandler<LauncherState> { 46 public void setState(LauncherState state) { } in setState() 49 public void setStateWithAnimation(LauncherState toState, StateAnimationConfig config, in setStateWithAnimation()
|