Lines Matching defs:WORKSPACE
207 private enum State { NONE, WORKSPACE, APPS_CUSTOMIZE, APPS_CUSTOMIZE_SPRING_LOADED };
208 private State mState = State.WORKSPACE;
222 // How long to wait before the new-shortcut animation automatically pans the workspace
233 private Workspace mWorkspace;
265 // scroll issues (because the workspace may not have been measured yet) and extra work.
689 // We prevent dragging when we are loading the workspace as it is possible to pick up a view
690 // that is subsequently removed from the workspace in startBinding().
759 // Before adding this resetAddInfo(), after a shortcut was added to a workspace screen,
761 // return to the workspace. Clearing mAddInfo.container here fixes this issue
881 animationType = Workspace.COMPLETE_TWO_STAGE_WIDGET_DROP_ANIMATION;
896 animationType = Workspace.CANCEL_TWO_STAGE_WIDGET_DROP_ANIMATION;
930 if (mOnResumeState == State.WORKSPACE) {
938 setWorkspaceBackground(mState == State.WORKSPACE);
981 // Resets the previous workspace icon press state
1154 State state = State.WORKSPACE;
1176 State state = intToState(savedState.getInt(RUNTIME_STATE, State.WORKSPACE.ordinal()));
1235 mWorkspace = (Workspace) mDragLayer.findViewById(R.id.workspace);
1295 // Setup the workspace
1365 * Add an application shortcut to the workspace.
1397 * Add a shortcut to the workspace.
1482 * Add a widget to the workspace.
1636 // you're in All Apps and click home to go to the workspace. onWindowVisibilityChanged
1643 // layers on all the workspace pages, so that transitioning to Launcher from other
1757 public Workspace getWorkspace() {
1820 if (alreadyOnHome && mState == State.WORKSPACE && !mWorkspace.isTouchActive() &&
1828 // If we are already on home, then just animate back to the workspace,
1829 // otherwise, just wait until onResume to set the state back to Workspace
1833 mOnResumeState = State.WORKSPACE;
1947 // Disconnect any of the callbacks and drawables associated with ItemInfos on the workspace
2357 if (v instanceof Workspace) {
2764 // the workspace items
2793 // longer occludeds the workspace items
2800 if (mState != State.WORKSPACE) return false;
2802 if (v instanceof Workspace) {
2825 // The hotseat touch handling does not go through Workspace, and we always allow long press
2889 private void setWorkspaceBackground(boolean workspace) {
2890 mLauncherView.setBackground(workspace ?
2915 // Update the workspace transition step as well
2930 // Update the workspace transition step as well
2936 * - Home from workspace
2945 * - Launch app from workspace and quit
2955 * - On workspace, long press power and go back
2961 * - On workspace, power off
2965 * - Go back with back key TODO: make this not go to workspace
2967 * - From workspace
2970 * - From the center workspace
2971 * - From another workspace
2975 * Zoom the camera out from the workspace to reveal 'toView'.
3002 // Shrink workspaces away if going to AppsCustomize from workspace
3004 mWorkspace.getChangeStateAnimation(Workspace.State.SMALL, animated);
3018 setInterpolator(new Workspace.ZoomOutInterpolator());
3038 // toView should appear right at the end of the workspace shrink
3130 * Zoom the camera back into the workspace, hiding 'fromView'.
3134 private void hideAppsCustomizeHelper(Workspace.State toState, final boolean animated,
3152 if (toState == Workspace.State.NORMAL) {
3156 } else if (toState == Workspace.State.SPRING_LOADED ||
3157 toState == Workspace.State.OVERVIEW) {
3170 setInterpolator(new Workspace.ZoomInInterpolator());
3242 if (mState != State.WORKSPACE) {
3243 boolean wasInSpringLoadedMode = (mState != State.WORKSPACE);
3245 hideAppsCustomizeHelper(Workspace.State.NORMAL, animated, false, onCompleteRunnable);
3260 mState = State.WORKSPACE;
3275 hideAppsCustomizeHelper(Workspace.State.OVERVIEW, animated, false, null);
3276 mState = State.WORKSPACE;
3285 if (mState != State.WORKSPACE) return;
3308 hideAppsCustomizeHelper(Workspace.State.SPRING_LOADED, true, true, null);
3321 // Before we show workspace, hide all apps again because
3391 * Add an item from all apps or customize onto the given workspace screen.
3773 * Refreshes the shortcuts shown on the workspace.
3785 // Clear the workspace because it's going to be rebound
3906 Workspace workspace = mWorkspace;
3933 workspace.addInScreenFromBind(shortcut, item.container, item.screenId, item.cellX,
3946 (ViewGroup) workspace.getChildAt(workspace.getCurrentPage()),
3948 workspace.addInScreenFromBind(newFolder, item.container, item.screenId, item.cellX,
3984 workspace.requestLayout();
4004 * Add the views for a widget to the workspace.
4022 final Workspace workspace = mWorkspace;
4035 workspace.addInScreen(item.hostView, item.container, item.screenId, item.cellX,
4039 workspace.requestLayout();
4192 * we only remove specific components from the workspace, where as