Home | History | Annotate | Download | only in launcher3

Lines Matching refs:WORKSPACE

217     enum State { NONE, WORKSPACE, APPS, APPS_SPRING_LOADED, WIDGETS, WIDGETS_SPRING_LOADED }
219 @Thunk State mState = State.WORKSPACE;
236 // How long to wait before the new-shortcut animation automatically pans the workspace
246 @Thunk Workspace mWorkspace;
282 // scroll issues (because the workspace may not have been measured yet) and extra work.
570 // The underlying workspace and hotseat are temporarily suppressed by the search
664 // We prevent dragging when we are loading the workspace as it is possible to pick up a view
665 // that is subsequently removed from the workspace in startBinding().
723 // Before adding this resetAddInfo(), after a shortcut was added to a workspace screen,
725 // return to the workspace. Clearing mAddInfo.container here fixes this issue
924 animationType = Workspace.COMPLETE_TWO_STAGE_WIDGET_DROP_ANIMATION;
939 animationType = Workspace.CANCEL_TWO_STAGE_WIDGET_DROP_ANIMATION;
986 if (mOnResumeState == State.WORKSPACE) {
1001 setWorkspaceBackground(mState == State.WORKSPACE ? WORKSPACE_BACKGROUND_GRADIENT
1038 // Resets the previous workspace icon press state
1061 updateInteraction(Workspace.State.NORMAL, mWorkspace.getState());
1181 return mState == State.WORKSPACE;
1186 if (mState == State.WORKSPACE) {
1290 State state = State.WORKSPACE;
1312 State state = intToState(savedState.getInt(RUNTIME_STATE, State.WORKSPACE.ordinal()));
1356 mWorkspace = (Workspace) mDragLayer.findViewById(R.id.workspace);
1413 // Setup the workspace
1501 * Add a shortcut to the workspace.
1574 * Add a widget to the workspace.
1710 // you're in All Apps and click home to go to the workspace. onWindowVisibilityChanged
1716 // layers on all the workspace pages, so that transitioning to Launcher from other
1835 public Workspace getWorkspace() {
1901 if (alreadyOnHome && mState == State.WORKSPACE && !mWorkspace.isTouchActive() &&
1909 // If we are already on home, then just animate back to the workspace,
1910 // otherwise, just wait until onResume to set the state back to Workspace
1914 mOnResumeState = State.WORKSPACE;
2090 // We need to show the workspace after starting the search
2469 if (v instanceof Workspace) {
2817 public void updateInteraction(Workspace.State fromState, Workspace.State toState) {
2820 boolean fromStateWithOverlay = fromState != Workspace.State.NORMAL;
2821 boolean toStateWithOverlay = toState != Workspace.State.NORMAL;
2891 Drawable icon = Workspace.getTextViewIcon((TextView) v);
3100 // the workspace items
3129 // longer occludeds the workspace items
3136 if (mState != State.WORKSPACE) return false;
3143 if (v instanceof Workspace) {
3167 // The hotseat touch handling does not go through Workspace, and we always allow long press
3290 boolean changed = mState != State.WORKSPACE ||
3291 mWorkspace.getState() != Workspace.State.NORMAL;
3293 boolean wasInSpringLoadedMode = (mState != State.WORKSPACE);
3295 mStateTransitionAnimation.startAnimationToWorkspace(mState, Workspace.State.NORMAL,
3311 mState = State.WORKSPACE;
3326 mStateTransitionAnimation.startAnimationToWorkspace(mState, Workspace.State.OVERVIEW,
3329 mState = State.WORKSPACE;
3370 // the workspace transition doesn't fall into invalid state.
3372 if (mState != State.WORKSPACE && mState != State.APPS_SPRING_LOADED &&
3401 * Updates the workspace and interaction state on state change, and return the animation to this
3404 public Animator startWorkspaceStateChangeAnimation(Workspace.State toState, int toPage,
3406 Workspace.State fromState = mWorkspace.getState();
3415 if (mState == State.WORKSPACE || mState == State.APPS_SPRING_LOADED ||
3420 mStateTransitionAnimation.startAnimationToWorkspace(mState, Workspace.State.SPRING_LOADED,
3436 // Before we show workspace, hide all apps again because
3646 * Refreshes the shortcuts shown on the workspace.
3658 // Clear the workspace because it's going to be rebound
3774 Workspace workspace = mWorkspace;
3799 String desc = "Collision while binding workspace item: " + item
3809 workspace.addInScreenFromBind(shortcut, item.container, item.screenId, item.cellX,
3822 (ViewGroup) workspace.getChildAt(workspace.getCurrentPage()),
3824 workspace.addInScreenFromBind(newFolder, item.container, item.screenId, item.cellX,
3860 workspace.requestLayout();
3879 * Add the views for a widget to the workspace.
3897 final Workspace workspace = mWorkspace;
3973 workspace.addInScreen(item.hostView, item.container, item.screenId, item.cellX,
3979 workspace.requestLayout();
4044 // the workspace restore process.
4234 * we only remove specific components from the workspace, where as