/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; 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/ |
D | LauncherState.java | 46 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 …]
|
D | WorkspaceStateTransitionAnimation.java | 26 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/ |
D | AbstractStateChangeTouchController.java | 19 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 …]
|
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; 63 protected LauncherState getTargetState(LauncherState fromState, boolean isDragTowardPositive) { in getTargetState()
|
/packages/apps/Launcher3/quickstep/tests/src/com/android/quickstep/ |
D | TaplTestsQuickstep.java | 33 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/ |
D | LauncherRecentsView.java | 18 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/ |
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; 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()
|
D | LandscapeEdgeSwipeController.java | 3 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/ |
D | QuickstepAtomicAnimationFactory.java | 21 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/ |
D | WorkEduView.java | 34 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/ |
D | TaplTestsLauncher3.java | 31 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/ |
D | AllAppsTransitionController.java | 3 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()
|
D | DiscoveryBounce.java | 19 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) {}
|
D | LauncherAllAppsContainerView.java | 24 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/ |
D | FlingAndHoldTouchController.java | 19 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()
|
D | OverviewToAllAppsTouchController.java | 18 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()
|
D | NoButtonQuickSwitchTouchController.java | 19 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 …]
|
D | NoButtonNavbarToOverviewTouchController.java | 19 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()
|
D | QuickSwitchTouchController.java | 18 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/ |
D | AllAppsState.java | 25 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/ |
D | LauncherActivityInterface.java | 18 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/ |
D | RecentsViewStateController.java | 18 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/ |
D | BaseRecentsViewStateController.java | 38 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/ |
D | BackButtonAlphaHandler.java | 23 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()
|