Home
last modified time | relevance | path

Searched refs:LauncherState (Results 1 – 25 of 74) sorted by relevance

123

/packages/apps/Launcher3/src/com/android/launcher3/
DLauncherState.java49 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 …]
DWorkspaceStateTransitionAnimation.java25 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/
DAbstractStateChangeTouchController.java20 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 …]
DAllAppsSwipeController.java18 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/
DQuickstepOnboardingPrefs.java20 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 …]
DOverviewToHomeAnim.java18 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/
DLauncherRecentsView.java18 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/
DTaplTestsQuickstep.java34 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/
DRecentsViewStateController.java18 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()
DBaseRecentsViewStateController.java39 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/
DTwoButtonNavbarTouchController.java20 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()
DPortraitStatesTouchController.java21 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()
DNoButtonNavbarToOverviewTouchController.java21 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()
DNoButtonQuickSwitchTouchController.java19 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 …]
DQuickSwitchTouchController.java18 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/
DLauncherActivityInterface.java18 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/
DTaskbarStateHandler.java18 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/
DTaplTestsLauncher3.java31 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/
DDiscoveryBounce.java19 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) {}
DAllAppsTransitionController.java18 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()
DLauncherAllAppsContainerView.java24 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/
DQuickstepAtomicAnimationFactory.java20 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()
DAllAppsState.java24 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/
DAccessibilityActionsView.java19 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/
DBackButtonAlphaHandler.java24 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()

123