/packages/apps/Launcher3/src/com/android/launcher3/ |
D | Launcher.java | 216 @Thunk Workspace mWorkspace; field in Launcher 308 if (mWorkspace != null) { 309 mWorkspace.buildPageHardwareLayers(); 428 mWorkspace.setCurrentPage(currentScreen); in onCreate() 483 mWorkspace.getPageIndicator().updateColor(mExtractedColors); in loadExtractedColorsAndColorItems() 548 mWorkspace.setLauncherOverlay(overlay); in setLauncherOverlay() 567 if (mWorkspace != null) { in setLauncherCallbacks() 569 mWorkspace.getImportantForAccessibility(); in setLauncherCallbacks() 570 mWorkspace.setImportantForAccessibility( in setLauncherCallbacks() 584 if (mWorkspaceImportanceStored && mWorkspace != null) { in setLauncherCallbacks() [all …]
|
D | PinchToOverviewListener.java | 47 private Workspace mWorkspace = null; field in PinchToOverviewListener 95 if (mWorkspace == null) { in onScaleBegin() 96 mWorkspace = mLauncher.getWorkspace(); in onScaleBegin() 97 mThresholdManager = new PinchThresholdManager(mWorkspace); in onScaleBegin() 100 if (mWorkspace.isSwitchingState() || mWorkspace.mScrollInteractionBegan) { in onScaleBegin() 110 mPreviousProgress = mWorkspace.isInOverviewMode() ? OVERVIEW_PROGRESS : WORKSPACE_PROGRESS; in onScaleBegin() 112 mInterpolator = mWorkspace.isInOverviewMode() ? new LogDecelerateInterpolator(100, 0) in onScaleBegin() 115 mWorkspace.onPrepareStateTransition(true); in onScaleBegin() 125 boolean isFling = mWorkspace.isInOverviewMode() && progressVelocity >= FLING_VELOCITY in onScaleEnd() 126 || !mWorkspace.isInOverviewMode() && progressVelocity <= -FLING_VELOCITY; in onScaleEnd() [all …]
|
D | WorkspaceStateTransitionAnimation.java | 189 final @Thunk Workspace mWorkspace; field in WorkspaceStateTransitionAnimation 209 mWorkspace = workspace; in WorkspaceStateTransitionAnimation() 225 mWorkspace.snapToPage(whichPage, mOverviewTransitionTime, mZoomInInterpolator); in snapToPageFromOverView() 283 finalWorkspaceTranslationY = mWorkspace.getOverviewModeTranslationY(); in animateWorkspace() 285 finalWorkspaceTranslationY = mWorkspace.getSpringLoadedTranslationY(); in animateWorkspace() 288 final int childCount = mWorkspace.getChildCount(); in animateWorkspace() 289 final int customPageCount = mWorkspace.numCustomPages(); in animateWorkspace() 294 mWorkspace.disableFreeScroll(); in animateWorkspace() 296 mWorkspace.enableFreeScroll(); in animateWorkspace() 307 int toPage = mWorkspace.getPageNearestToCenterOfScreen(); in animateWorkspace() [all …]
|
D | PinchAnimationManager.java | 66 private Workspace mWorkspace; field in PinchAnimationManager 75 mWorkspace = launcher.mWorkspace; in PinchAnimationManager() 77 mOverviewScale = mWorkspace.getOverviewModeShrinkFactor(); in PinchAnimationManager() 78 mOverviewTranslationY = mWorkspace.getOverviewModeTranslationY(); in PinchAnimationManager() 79 mNormalOverviewTransitionDuration = mWorkspace.getStateTransitionAnimation() in PinchAnimationManager() 113 mWorkspace.onEndStateTransition(); in animateToProgress() 132 mWorkspace.setScaleX(interpolatedScale); in setAnimationProgress() 133 mWorkspace.setScaleY(interpolatedScale); in setAnimationProgress() 134 mWorkspace.setTranslationY(interpolatedTranslationY); in setAnimationProgress() 170 ContainerType.OVERVIEW, mWorkspace.getCurrentPage()); in animateThreshold() [all …]
|
D | PinchThresholdManager.java | 32 private Workspace mWorkspace; field in PinchThresholdManager 37 mWorkspace = workspace; in PinchThresholdManager() 53 if (!mWorkspace.isInOverviewMode()) { in updateAndAnimatePassedThreshold() 71 Workspace.State fromState = mWorkspace.isInOverviewMode() ? Workspace.State.OVERVIEW in updateAndAnimatePassedThreshold() 73 Workspace.State toState = mWorkspace.isInOverviewMode() ? Workspace.State.NORMAL in updateAndAnimatePassedThreshold()
|
D | CellLayout.java | 351 if (mLauncher.mWorkspace.isInOverviewMode() in onTouchEvent()
|
/packages/apps/Launcher3/src/com/android/launcher3/accessibility/ |
D | OverviewScreenAccessibilityDelegate.java | 38 private final Workspace mWorkspace; field in OverviewScreenAccessibilityDelegate 41 mWorkspace = workspace; in OverviewScreenAccessibilityDelegate() 43 Context context = mWorkspace.getContext(); in OverviewScreenAccessibilityDelegate() 57 int index = mWorkspace.indexOfChild(host); in performAccessibilityAction() 58 mWorkspace.setCurrentPage(index); in performAccessibilityAction() 60 movePage(mWorkspace.indexOfChild(host) + 1, host); in performAccessibilityAction() 63 movePage(mWorkspace.indexOfChild(host) - 1, host); in performAccessibilityAction() 72 mWorkspace.onStartReordering(); in movePage() 73 mWorkspace.removeView(view); in movePage() 74 mWorkspace.addView(view, finalIndex); in movePage() [all …]
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
D | Launcher.java | 218 private Workspace mWorkspace; field in Launcher 325 if (mWorkspace != null) { 326 mWorkspace.buildPageHardwareLayers(); 419 mModel.startLoader(true, mWorkspace.getCurrentPage()); in onCreate() 722 (CellLayout) mWorkspace.getChildAt(mPendingAddInfo.screen); in completeTwoStageWidgetDrop() 753 mWorkspace.animateWidgetDrop(mPendingAddInfo, cellLayout, in completeTwoStageWidgetDrop() 908 boolean gotKey = TextKeyListener.getInstance().onKeyDown(mWorkspace, mDefaultKeySsb, in onKeyDown() 972 mWorkspace.setCurrentPage(currentScreen); in restoreState() 1023 mWorkspace = (Workspace) mDragLayer.findViewById(R.id.workspace); in setupViews() 1040 mWorkspace.setHapticFeedbackEnabled(false); in setupViews() [all …]
|
D | AppWidgetResizeFrame.java | 22 private Workspace mWorkspace; field in AppWidgetResizeFrame 85 mWorkspace = (Workspace) dragLayer.findViewById(R.id.workspace); in AppWidgetResizeFrame() 403 + mDragLayer.getPaddingLeft() - mWorkspace.getScrollX(); in snapToWidget() 405 + mDragLayer.getPaddingTop() - mWorkspace.getScrollY(); in snapToWidget()
|
/packages/apps/Launcher3/src/com/android/launcher3/util/ |
D | WallpaperOffsetInterpolator.java | 26 private final Workspace mWorkspace; field in WallpaperOffsetInterpolator 48 mWorkspace = workspace; in WallpaperOffsetInterpolator() 128 rightPageIndex = mWorkspace.numCustomPages(); in wallpaperOffsetForScroll() 131 leftPageIndex = mWorkspace.numCustomPages(); in wallpaperOffsetForScroll() 136 int leftPageScrollX = mWorkspace.getScrollForPage(leftPageIndex); in wallpaperOffsetForScroll() 137 int rightPageScrollX = mWorkspace.getScrollForPage(rightPageIndex); in wallpaperOffsetForScroll() 146 mWorkspace.getLayoutTransitionOffsetForPage(0); in wallpaperOffsetForScroll() 162 return wallpaperOffsetForScroll(mWorkspace.getScrollX()); in wallpaperOffsetForCurrentScroll() 166 int numScrollingPages = mWorkspace.getChildCount() - mWorkspace.numCustomPages(); in numEmptyScreensToIgnore() 167 if (numScrollingPages >= MIN_PARALLAX_PAGE_SPAN && mWorkspace.hasExtraEmptyScreen()) { in numEmptyScreensToIgnore() [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/allapps/ |
D | AllAppsTransitionController.java | 57 private Workspace mWorkspace; field in AllAppsTransitionController 288 … mWorkspace.setHotseatTranslationAndAlpha(Workspace.Direction.Y, -mShiftRange + shiftCurrent, in setProgress() 291 mWorkspace.setHotseatTranslationAndAlpha(Workspace.Direction.Y, in setProgress() 299 mWorkspace.setWorkspaceYTranslationAndAlpha( in setProgress() 488 mWorkspace = workspace; in setupViews() 492 mWorkspace.getPageIndicator().getCaretDrawable(), mLauncher); in setupViews()
|