Home
last modified time | relevance | path

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

1234

/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;
31 import com.android.launcher3.LauncherState;
49 StateManager<LauncherState> stateManager = launcher.getStateManager(); in QuickstepOnboardingPrefs()
51 stateManager.addStateListener(new StateListener<LauncherState>() { in QuickstepOnboardingPrefs()
53 public void onStateTransitionComplete(LauncherState finalState) { in QuickstepOnboardingPrefs()
56 LauncherState prevState = stateManager.getLastState(); in QuickstepOnboardingPrefs()
76 stateManager.addStateListener(new StateListener<LauncherState>() { in QuickstepOnboardingPrefs()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/
DLauncherState.java46 public abstract class LauncherState implements BaseState<LauncherState> { class
95 private static final LauncherState[] sAllStates = new LauncherState[9];
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);
119 public static final LauncherState OVERVIEW = new OverviewState(OVERVIEW_STATE_ORDINAL);
120 public static final LauncherState OVERVIEW_PEEK =
122 public static final LauncherState OVERVIEW_MODAL_TASK = OverviewState.newModalTaskState(
124 public static final LauncherState QUICK_SWITCH =
[all …]
DWorkspaceStateTransitionAnimation.java26 import static com.android.launcher3.LauncherState.FLAG_HAS_SYS_UI_SCRIM;
27 import static com.android.launcher3.LauncherState.FLAG_WORKSPACE_HAS_BACKGROUNDS;
28 import static com.android.launcher3.LauncherState.HINT_STATE;
29 import static com.android.launcher3.LauncherState.HOTSEAT_ICONS;
30 import static com.android.launcher3.LauncherState.NORMAL;
46 import com.android.launcher3.LauncherState.PageAlphaProvider;
47 import com.android.launcher3.LauncherState.ScaleAndTranslation;
72 public void setState(LauncherState toState) { in setState()
80 LauncherState toState, StateAnimationConfig config, PendingAnimation animation) { in setStateWithAnimation()
91 private void setWorkspaceProperty(LauncherState state, PropertySetter propertySetter, in setWorkspaceProperty()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/touch/
DAbstractStateChangeTouchController.java19 import static com.android.launcher3.LauncherState.ALL_APPS;
20 import static com.android.launcher3.LauncherState.NORMAL;
21 import static com.android.launcher3.LauncherState.OVERVIEW;
42 import com.android.launcher3.LauncherState;
81 protected LauncherState mStartState;
82 protected LauncherState mFromState;
83 protected LauncherState mToState;
106 private LauncherState mAtomicComponentsTargetState = NORMAL;
158 LauncherState fromState = mLauncher.getStateManager().getState(); in getSwipeDirection()
185 protected abstract LauncherState getTargetState(LauncherState fromState, in getTargetState()
[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;
63 protected LauncherState getTargetState(LauncherState fromState, boolean isDragTowardPositive) { in getTargetState()
/packages/apps/Launcher3/quickstep/tests/src/com/android/quickstep/
DTaplTestsQuickstep.java33 import com.android.launcher3.LauncherState;
89 isInState(() -> LauncherState.ALL_APPS)); in testWorkspaceSwitchToAllApps()
112 isInState(() -> LauncherState.OVERVIEW)); in testOverview()
122 isInState(() -> LauncherState.OVERVIEW)); in testOverview()
130 isInState(() -> LauncherState.OVERVIEW)); in testOverview()
149 isInState(() -> LauncherState.OVERVIEW)); in testOverview()
164 isInState(() -> LauncherState.ALL_APPS)); in testOverview()
169 isInState(() -> LauncherState.OVERVIEW)); in testOverview()
175 isInState(() -> LauncherState.ALL_APPS)); in testOverview()
182 waitForState("Launcher internal state didn't switch to Home", () -> LauncherState.NORMAL); in testOverview()
[all …]
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/quickstep/views/
DLauncherRecentsView.java18 import static com.android.launcher3.LauncherState.ALL_APPS;
19 import static com.android.launcher3.LauncherState.ALL_APPS_HEADER_EXTRA;
20 import static com.android.launcher3.LauncherState.NORMAL;
21 import static com.android.launcher3.LauncherState.OVERVIEW;
22 import static com.android.launcher3.LauncherState.OVERVIEW_BUTTONS;
23 import static com.android.launcher3.LauncherState.OVERVIEW_MODAL_TASK;
24 import static com.android.launcher3.LauncherState.SPRING_LOADED;
42 import com.android.launcher3.LauncherState;
64 implements StateListener<LauncherState> {
121 LauncherState state = mActivity.getStateManager().getState(); in setTranslationY()
[all …]
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/uioverrides/touchcontrollers/
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;
43 import com.android.launcher3.LauncherState;
135 protected LauncherState getTargetState(LauncherState fromState, boolean isDragTowardPositive) { in getTargetState()
152 LauncherState positiveDragTarget = ALL_APPS; in getTargetState()
218 LauncherState fromState, LauncherState toState) { in getConfigForStates()
299 LauncherState targetState, float velocity, boolean isFling) { in updateSwipeCompleteAnimation()
306 final long expectedDuration, final LauncherState targetState, final float velocity, in handleFirstSwipeToOverview()
327 protected void onSwipeInteractionCompleted(LauncherState targetState, int logAction) { in onSwipeInteractionCompleted()
DLandscapeEdgeSwipeController.java3 import static com.android.launcher3.LauncherState.NORMAL;
4 import static com.android.launcher3.LauncherState.OVERVIEW;
11 import com.android.launcher3.LauncherState;
43 protected LauncherState getTargetState(LauncherState fromState, boolean isDragTowardPositive) { in getTargetState()
73 protected void onSwipeInteractionCompleted(LauncherState targetState, int logAction) { in onSwipeInteractionCompleted()
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/launcher3/uioverrides/states/
DQuickstepAtomicAnimationFactory.java21 import static com.android.launcher3.LauncherState.BACKGROUND_APP;
22 import static com.android.launcher3.LauncherState.HINT_STATE;
23 import static com.android.launcher3.LauncherState.HOTSEAT_ICONS;
24 import static com.android.launcher3.LauncherState.NORMAL;
25 import static com.android.launcher3.LauncherState.OVERVIEW;
26 import static com.android.launcher3.LauncherState.OVERVIEW_PEEK;
65 import com.android.launcher3.LauncherState;
66 import com.android.launcher3.LauncherState.ScaleAndTranslation;
81 RecentsAtomicAnimationFactory<Launcher, LauncherState> {
149 StateManager<LauncherState> stateManager = mActivity.getStateManager(); in createStateElementAnimation()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/views/
DWorkEduView.java34 import com.android.launcher3.LauncherState;
47 implements Insettable, StateListener<LauncherState> {
188 public static StateListener<LauncherState> showEduFlowIfNeeded(Launcher launcher, in showEduFlowIfNeeded()
189 @Nullable StateListener<LauncherState> oldListener) { in showEduFlowIfNeeded()
198 StateListener<LauncherState> listener = new StateListener<LauncherState>() { in showEduFlowIfNeeded()
200 public void onStateTransitionComplete(LauncherState finalState) { in showEduFlowIfNeeded()
201 if (finalState != LauncherState.ALL_APPS) return; in showEduFlowIfNeeded()
235 public void onStateTransitionComplete(LauncherState finalState) { in onStateTransitionComplete()
/packages/apps/Launcher3/tests/src/com/android/launcher3/ui/
DTaplTestsLauncher3.java31 import com.android.launcher3.LauncherState;
63 () -> LauncherState.NORMAL); in initialize()
131 test.isInState(() -> LauncherState.ALL_APPS)); in runAllAppsTest()
140 test.isInState(() -> LauncherState.ALL_APPS)); in runAllAppsTest()
150 test.isInState(() -> LauncherState.ALL_APPS)); in runAllAppsTest()
167 test.isInState(() -> LauncherState.ALL_APPS)); in runAllAppsTest()
179 isInState(() -> LauncherState.ALL_APPS)); in testWorkspaceSwitchToAllApps()
205 assertTrue("Launcher internal state is not Home", isInState(() -> LauncherState.NORMAL)); in testWorkspace()
214 assertTrue("Launcher internal state is not Home", isInState(() -> LauncherState.NORMAL)); in testWorkspace()
241 isInState(() -> LauncherState.ALL_APPS)); in testAppIconLaunchFromAllAppsFromHome()
/packages/apps/Launcher3/src/com/android/launcher3/allapps/
DAllAppsTransitionController.java3 import static com.android.launcher3.LauncherState.ALL_APPS_CONTENT;
4 import static com.android.launcher3.LauncherState.ALL_APPS_HEADER_EXTRA;
5 import static com.android.launcher3.LauncherState.APPS_VIEW_ITEM_MASK;
6 import static com.android.launcher3.LauncherState.OVERVIEW;
7 import static com.android.launcher3.LauncherState.VERTICAL_SWIPE_INDICATOR;
31 import com.android.launcher3.LauncherState;
53 public class AllAppsTransitionController implements StateHandler<LauncherState>,
147 public void setState(LauncherState state) { in setState()
158 public void setStateWithAnimation(LauncherState toState, in setStateWithAnimation()
194 public void setAlphas(LauncherState state, StateAnimationConfig config, PropertySetter setter) { in setAlphas()
DDiscoveryBounce.java19 import static com.android.launcher3.LauncherState.NORMAL;
20 import static com.android.launcher3.LauncherState.OVERVIEW;
33 import com.android.launcher3.LauncherState;
50 private final StateListener<LauncherState> mStateListener = new StateListener<LauncherState>() {
52 public void onStateTransitionStart(LauncherState toState) {
57 public void onStateTransitionComplete(LauncherState finalState) {}
DLauncherAllAppsContainerView.java24 import com.android.launcher3.LauncherState;
35 private StateListener<LauncherState> mWorkTabListener;
54 if (!mLauncher.isInState(LauncherState.ALL_APPS)) { in onInterceptTouchEvent()
64 if (!mLauncher.isInState(LauncherState.ALL_APPS)) { in onTouchEvent()
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/launcher3/uioverrides/touchcontrollers/
DFlingAndHoldTouchController.java19 import static com.android.launcher3.LauncherState.ALL_APPS;
20 import static com.android.launcher3.LauncherState.NORMAL;
21 import static com.android.launcher3.LauncherState.OVERVIEW;
22 import static com.android.launcher3.LauncherState.OVERVIEW_PEEK;
46 import com.android.launcher3.LauncherState;
111 LauncherState fromState = isPaused ? NORMAL : OVERVIEW_PEEK; in onMotionPauseChanged()
112 LauncherState toState = isPaused ? OVERVIEW_PEEK : NORMAL; in onMotionPauseChanged()
144 LauncherState fromState, LauncherState toState) { in getConfigForStates()
242 protected void goToTargetState(LauncherState targetState, int logAction) { in goToTargetState()
DOverviewToAllAppsTouchController.java18 import static com.android.launcher3.LauncherState.ALL_APPS;
19 import static com.android.launcher3.LauncherState.NORMAL;
20 import static com.android.launcher3.LauncherState.OVERVIEW;
26 import com.android.launcher3.LauncherState;
66 protected LauncherState getTargetState(LauncherState fromState, boolean isDragTowardPositive) { in getTargetState()
DNoButtonQuickSwitchTouchController.java19 import static com.android.launcher3.LauncherState.HOTSEAT_ICONS;
20 import static com.android.launcher3.LauncherState.NORMAL;
21 import static com.android.launcher3.LauncherState.OVERVIEW;
22 import static com.android.launcher3.LauncherState.OVERVIEW_BUTTONS;
23 import static com.android.launcher3.LauncherState.QUICK_SWITCH;
60 import com.android.launcher3.LauncherState;
108 private LauncherState mStartState;
158 if (!mLauncher.isInState(LauncherState.NORMAL)) { in canInterceptTouch()
234 private void updateNonOverviewAnim(LauncherState toState, StateAnimationConfig config) { in updateNonOverviewAnim()
243 final LauncherState fromState = QUICK_SWITCH; in setupOverviewAnimators()
[all …]
DNoButtonNavbarToOverviewTouchController.java19 import static com.android.launcher3.LauncherState.HINT_STATE;
20 import static com.android.launcher3.LauncherState.NORMAL;
21 import static com.android.launcher3.LauncherState.OVERVIEW;
36 import com.android.launcher3.LauncherState;
95 protected LauncherState getTargetState(LauncherState fromState, boolean isDragTowardPositive) { in getTargetState()
144 LauncherState targetState, float velocity, boolean isFling) { in updateSwipeCompleteAnimation()
212 StateManager<LauncherState> stateManager = mLauncher.getStateManager(); in goToOverviewOnDragEnd()
DQuickSwitchTouchController.java18 import static com.android.launcher3.LauncherState.NORMAL;
19 import static com.android.launcher3.LauncherState.QUICK_SWITCH;
39 import com.android.launcher3.LauncherState;
74 if (!mLauncher.isInState(LauncherState.NORMAL)) { in canInterceptTouch()
84 protected LauncherState getTargetState(LauncherState fromState, boolean isDragTowardPositive) { in getTargetState()
101 protected void onSwipeInteractionCompleted(LauncherState targetState, int logAction) { in onSwipeInteractionCompleted()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/uioverrides/states/
DAllAppsState.java25 import com.android.launcher3.LauncherState;
33 public class AllAppsState extends LauncherState {
66 ScaleAndTranslation scaleAndTranslation = LauncherState.OVERVIEW in getWorkspaceScaleAndTranslation()
99 public LauncherState getHistoryForState(LauncherState previousState) { in getHistoryForState()
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/quickstep/
DLauncherActivityInterface.java18 import static com.android.launcher3.LauncherState.BACKGROUND_APP;
19 import static com.android.launcher3.LauncherState.OVERVIEW;
39 import com.android.launcher3.LauncherState;
66 BaseActivityInterface<LauncherState, BaseQuickstepLauncher> {
232 final StateManager<LauncherState> stateManager = getCreatedActivity().getStateManager(); in onExitOverview()
234 new StateManager.StateListener<LauncherState>() { in onExitOverview()
236 public void onStateTransitionComplete(LauncherState toState) { in onExitOverview()
238 if (toState == LauncherState.NORMAL) { in onExitOverview()
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/launcher3/uioverrides/
DRecentsViewStateController.java18 import static com.android.launcher3.LauncherState.OVERVIEW_BUTTONS;
31 import com.android.launcher3.LauncherState;
54 public void setState(@NonNull LauncherState state) { in setState()
65 void setStateWithAnimationInternal(@NonNull LauncherState toState, in setStateWithAnimationInternal()
83 private void setAlphas(PropertySetter propertySetter, LauncherState state) { in setAlphas()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/uioverrides/
DBaseRecentsViewStateController.java38 import com.android.launcher3.LauncherState;
52 implements StateHandler<LauncherState> {
62 public void setState(@NonNull LauncherState state) { in setState()
74 public void setStateWithAnimation(LauncherState toState, StateAnimationConfig config, in setStateWithAnimation()
93 void setStateWithAnimationInternal(@NonNull final LauncherState toState, in setStateWithAnimationInternal()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/statehandlers/
DBackButtonAlphaHandler.java23 import com.android.launcher3.LauncherState;
35 public class BackButtonAlphaHandler implements StateHandler<LauncherState> {
45 public void setState(LauncherState state) { } in setState()
48 public void setStateWithAnimation(LauncherState toState, StateAnimationConfig config, in setStateWithAnimation()

1234