Home
last modified time | relevance | path

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

123

/packages/apps/Launcher3/src/com/android/launcher3/
DLauncherStateManager.java19 import static com.android.launcher3.LauncherState.NORMAL;
116 private LauncherState mState = NORMAL;
118 private LauncherState mLastStableState = NORMAL;
119 private LauncherState mCurrentStableState = NORMAL;
121 private LauncherState mRestState;
128 public LauncherState getState() { in getState()
132 public LauncherState getCurrentStableState() { in getCurrentStableState()
170 public void goToState(LauncherState state) { in goToState()
177 public void goToState(LauncherState state, boolean animated) { in goToState()
188 public void goToState(LauncherState state, boolean animated, Runnable onCompleteRunnable) { in goToState()
[all …]
DLauncherState.java57 public class LauncherState { class
92 private static final LauncherState[] sAllStates = new LauncherState[7];
97 public static final LauncherState NORMAL = new LauncherState(NORMAL_STATE_ORDINAL,
105 public static final LauncherState SPRING_LOADED = new SpringLoadedState(
107 public static final LauncherState ALL_APPS = new AllAppsState(ALL_APPS_STATE_ORDINAL);
109 public static final LauncherState OVERVIEW = new OverviewState(OVERVIEW_STATE_ORDINAL);
110 public static final LauncherState OVERVIEW_PEEK =
112 public static final LauncherState QUICK_SWITCH =
114 public static final LauncherState BACKGROUND_APP =
178 public LauncherState(int id, int containerType, int transitionDuration, int flags) { in LauncherState() method in LauncherState
[all …]
DWorkspaceStateTransitionAnimation.java21 import static com.android.launcher3.LauncherState.HOTSEAT_ICONS;
36 import com.android.launcher3.LauncherState.PageAlphaProvider;
37 import com.android.launcher3.LauncherState.ScaleAndTranslation;
58 public void setState(LauncherState toState) { in setState()
63 public void setStateWithAnimation(LauncherState toState, AnimatorSetBuilder builder, in setStateWithAnimation()
75 private void setWorkspaceProperty(LauncherState state, PropertySetter propertySetter, in setWorkspaceProperty()
141 public void setScrim(PropertySetter propertySetter, LauncherState state) { in setScrim()
148 public void applyChildState(LauncherState state, CellLayout cl, int childIndex) { in applyChildState()
153 private void applyChildState(LauncherState state, CellLayout cl, int childIndex, in applyChildState()
/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;
39 import com.android.launcher3.LauncherState;
75 protected LauncherState mStartState;
76 protected LauncherState mFromState;
77 protected LauncherState mToState;
100 private LauncherState mAtomicComponentsTargetState = NORMAL;
152 LauncherState fromState = mLauncher.getStateManager().getState(); in getSwipeDirection()
176 protected abstract LauncherState getTargetState(LauncherState fromState, in getTargetState()
[all …]
/packages/apps/Launcher3/quickstep/tests/src/com/android/quickstep/
DTaplTestsQuickstep.java34 import com.android.launcher3.LauncherState;
76 waitForState("Launcher internal state didn't switch to Overview", LauncherState.OVERVIEW); in testPressRecentAppsLauncherAndGetOverview()
87 assertTrue("Launcher internal state is not All Apps", isInState(LauncherState.ALL_APPS)); in testWorkspaceSwitchToAllApps()
105 isInState(LauncherState.OVERVIEW)); in testOverview()
114 assertTrue("Launcher internal state is not Overview", isInState(LauncherState.OVERVIEW)); in testOverview()
121 assertTrue("Launcher internal state is not Overview", isInState(LauncherState.OVERVIEW)); in testOverview()
140 isInState(LauncherState.OVERVIEW)); in testOverview()
155 isInState(LauncherState.ALL_APPS)); in testOverview()
160 isInState(LauncherState.OVERVIEW)); in testOverview()
166 isInState(LauncherState.ALL_APPS)); 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.RECENTS_CLEAR_ALL_BUTTON;
23 import static com.android.launcher3.LauncherState.SPRING_LOADED;
43 import com.android.launcher3.LauncherState;
110 LauncherState state = mActivity.getStateManager().getState(); in setTranslationY()
150 LauncherState state = mActivity.getStateManager().getState(); in createAdjacentPageAnimForTaskLaunch()
211 LauncherState state = mActivity.getStateManager().getState(); in onTaskLaunched()
[all …]
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/quickstep/
DLauncherActivityControllerHelper.java24 import static com.android.launcher3.LauncherState.BACKGROUND_APP;
25 import static com.android.launcher3.LauncherState.NORMAL;
26 import static com.android.launcher3.LauncherState.OVERVIEW;
54 import com.android.launcher3.LauncherState;
94 LauncherState startState = activity.getStateManager().getRestState(); in onTransitionCancelled()
178 final LauncherState startState = activity.getStateManager().getState();
180 LauncherState resetState = startState;
186 final LauncherState fromState = animateActivity ? BACKGROUND_APP : OVERVIEW;
274 private void createActivityControllerInternal(Launcher activity, LauncherState fromState,
276 LauncherState endState = OVERVIEW;
[all …]
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/launcher3/uioverrides/touchcontrollers/
DFlingAndHoldTouchController.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;
23 import static com.android.launcher3.LauncherState.OVERVIEW_PEEK;
45 import com.android.launcher3.LauncherState;
94 LauncherState fromState = isPaused ? NORMAL : OVERVIEW_PEEK; in onDragStart()
95 LauncherState toState = isPaused ? OVERVIEW_PEEK : NORMAL; in onDragStart()
124 protected AnimatorSetBuilder getAnimatorSetBuilderForStates(LauncherState fromState, in getAnimatorSetBuilderForStates()
125 LauncherState toState) { in getAnimatorSetBuilderForStates()
199 protected void goToTargetState(LauncherState targetState, int logAction) { in goToTargetState()
DNoButtonQuickSwitchTouchController.java20 import static com.android.launcher3.LauncherState.HOTSEAT_ICONS;
21 import static com.android.launcher3.LauncherState.NORMAL;
22 import static com.android.launcher3.LauncherState.OVERVIEW;
23 import static com.android.launcher3.LauncherState.QUICK_SWITCH;
57 import com.android.launcher3.LauncherState;
103 private LauncherState mStartState;
151 if (!mLauncher.isInState(LauncherState.NORMAL)) { in canInterceptTouch()
218 private void updateNonOverviewAnim(LauncherState toState, AnimatorSetBuilder builder, in updateNonOverviewAnim()
227 final LauncherState fromState = QUICK_SWITCH; in setupOverviewAnimators()
228 final LauncherState toState = OVERVIEW; in setupOverviewAnimators()
[all …]
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()
DQuickSwitchTouchController.java18 import static com.android.launcher3.LauncherState.NORMAL;
19 import static com.android.launcher3.LauncherState.QUICK_SWITCH;
41 import com.android.launcher3.LauncherState;
76 if (!mLauncher.isInState(LauncherState.NORMAL)) { in canInterceptTouch()
86 protected LauncherState getTargetState(LauncherState fromState, boolean isDragTowardPositive) { in getTargetState()
104 protected void onSwipeInteractionCompleted(LauncherState targetState, int logAction) { in onSwipeInteractionCompleted()
DNavBarToHomeTouchController.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;
37 import com.android.launcher3.LauncherState;
69 private LauncherState mStartState;
70 private LauncherState mEndState = NORMAL;
221 private void onSwipeInteractionCompleted(LauncherState targetState) { in onSwipeInteractionCompleted()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/uioverrides/touchcontrollers/
DPortraitStatesTouchController.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;
39 import com.android.launcher3.LauncherState;
132 protected LauncherState getTargetState(LauncherState fromState, boolean isDragTowardPositive) { in getTargetState()
195 protected AnimatorSetBuilder getAnimatorSetBuilderForStates(LauncherState fromState, in getAnimatorSetBuilderForStates()
196 LauncherState toState) { in getAnimatorSetBuilderForStates()
273 LauncherState targetState, float velocity, boolean isFling) { in updateSwipeCompleteAnimation()
280 final long expectedDuration, final LauncherState targetState, final float velocity, in handleFirstSwipeToOverview()
301 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/src/com/android/launcher3/uioverrides/
DUiFactory.java23 import static com.android.launcher3.LauncherState.ALL_APPS;
24 import static com.android.launcher3.LauncherState.NORMAL;
25 import static com.android.launcher3.LauncherState.OVERVIEW;
47 import com.android.launcher3.LauncherState;
48 import com.android.launcher3.LauncherState.ScaleAndTranslation;
112 public void onStateTransitionStart(LauncherState toState) { in onCreate()
116 public void onStateTransitionComplete(LauncherState finalState) { in onCreate()
119 LauncherState prevState = launcher.getStateManager().getLastState(); in onCreate()
134 public void onStateTransitionStart(LauncherState toState) { in onCreate()
138 public void onStateTransitionComplete(LauncherState finalState) { in onCreate()
[all …]
DBaseRecentsViewStateController.java37 import com.android.launcher3.LauncherState;
38 import com.android.launcher3.LauncherState.ScaleAndTranslation;
62 public void setState(@NonNull LauncherState state) { in setState()
78 public final void setStateWithAnimation(@NonNull final LauncherState toState, in setStateWithAnimation()
99 void setStateWithAnimationInternal(@NonNull final LauncherState toState, in setStateWithAnimationInternal()
/packages/apps/Launcher3/tests/src/com/android/launcher3/ui/
DTaplTestsLauncher3.java33 import com.android.launcher3.LauncherState;
66 test.waitForState("Launcher internal state didn't switch to Home", LauncherState.NORMAL); in initialize()
126 test.isInState(LauncherState.ALL_APPS)); in runAllAppsTest()
135 test.isInState(LauncherState.ALL_APPS)); in runAllAppsTest()
145 test.isInState(LauncherState.ALL_APPS)); in runAllAppsTest()
162 test.isInState(LauncherState.ALL_APPS)); in runAllAppsTest()
173 assertTrue("Launcher internal state is not All Apps", isInState(LauncherState.ALL_APPS)); in testWorkspaceSwitchToAllApps()
199 assertTrue("Launcher internal state is not Home", isInState(LauncherState.NORMAL)); in testWorkspace()
208 assertTrue("Launcher internal state is not Home", isInState(LauncherState.NORMAL)); in testWorkspace()
234 assertTrue("Launcher internal state is not All Apps", 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.OVERVIEW;
6 import static com.android.launcher3.LauncherState.VERTICAL_SWIPE_INDICATOR;
24 import com.android.launcher3.LauncherState;
146 public void setState(LauncherState state) { in setState()
157 public void setStateWithAnimation(LauncherState toState, in setStateWithAnimation()
190 private void setAlphas(LauncherState toState, AnimationConfig config, 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;
60 public void onStateTransitionStart(LauncherState toState) {
65 public void onStateTransitionComplete(LauncherState finalState) {}
/packages/apps/Launcher3/go/quickstep/src/com/android/launcher3/uioverrides/touchcontrollers/
DLandscapeStatesTouchController.java18 import static com.android.launcher3.LauncherState.ALL_APPS;
19 import static com.android.launcher3.LauncherState.NORMAL;
25 import com.android.launcher3.LauncherState;
57 protected LauncherState getTargetState(LauncherState fromState, boolean isDragTowardPositive) { in getTargetState()
/packages/apps/Launcher3/src_ui_overrides/com/android/launcher3/uioverrides/
DAllAppsSwipeController.java3 import static com.android.launcher3.LauncherState.ALL_APPS;
4 import static com.android.launcher3.LauncherState.NORMAL;
10 import com.android.launcher3.LauncherState;
50 protected LauncherState getTargetState(LauncherState fromState, boolean isDragTowardPositive) { in getTargetState()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/uioverrides/states/
DAllAppsState.java23 import com.android.launcher3.LauncherState;
31 public class AllAppsState extends LauncherState {
65 ScaleAndTranslation scaleAndTranslation = LauncherState.OVERVIEW in getWorkspaceScaleAndTranslation()
94 public LauncherState getHistoryForState(LauncherState previousState) { in getHistoryForState()
/packages/apps/Launcher3/src/com/android/launcher3/testing/
DTestInformationHandler.java33 import com.android.launcher3.LauncherState;
69 final float progress = LauncherState.OVERVIEW.getVerticalProgress(mLauncher) in call()
70 - LauncherState.ALL_APPS.getVerticalProgress(mLauncher); in call()
79 final float progress = LauncherState.NORMAL.getVerticalProgress(mLauncher) in call()
80 - LauncherState.ALL_APPS.getVerticalProgress(mLauncher); in call()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/views/
DShelfScrimView.java18 import static com.android.launcher3.LauncherState.ALL_APPS_HEADER_EXTRA;
19 import static com.android.launcher3.LauncherState.BACKGROUND_APP;
20 import static com.android.launcher3.LauncherState.OVERVIEW;
21 import static com.android.launcher3.LauncherState.QUICK_SWITCH;
39 import com.android.launcher3.LauncherState;
202 LauncherState state = mLauncher.getStateManager().getState(); in updateColors()
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/launcher3/uioverrides/
DRecentsViewStateController.java18 import static com.android.launcher3.LauncherState.RECENTS_CLEAR_ALL_BUTTON;
31 import com.android.launcher3.LauncherState;
52 public void setState(@NonNull LauncherState state) { in setState()
63 void setStateWithAnimationInternal(@NonNull final LauncherState toState, in setStateWithAnimationInternal()

123