/aosp12/packages/apps/Launcher3/tests/src/com/android/launcher3/ui/workspace/ |
H A D | TwoPanelWorkspaceTest.java | 72 mWorkspace.dragIcon(mWorkspace.getHotseatAppIcon("Chrome"), 1); in testDragIconToRightPanel() 94 mWorkspace.dragIcon(mWorkspace.getWorkspaceAppIcon("Maps"), 2); in testDragIconToPage2() 118 mWorkspace.dragIcon(mWorkspace.getHotseatAppIcon("Phone"), 3); in testDragIconToPage3() 143 mWorkspace.dragIcon(mWorkspace.getWorkspaceAppIcon("Maps"), 3); in testEmptyPageDoesNotGetRemovedIfPagePairIsNotEmpty() 144 mWorkspace.dragIcon(mWorkspace.getHotseatAppIcon("Chrome"), 0); in testEmptyPageDoesNotGetRemovedIfPagePairIsNotEmpty() 154 mWorkspace.dragIcon(mWorkspace.getWorkspaceAppIcon("Maps"), -1); in testEmptyPageDoesNotGetRemovedIfPagePairIsNotEmpty() 167 mWorkspace.dragIcon(mWorkspace.getWorkspaceAppIcon("Chrome"), 1); in testEmptyPageDoesNotGetRemovedIfPagePairIsNotEmpty() 193 mWorkspace.dragIcon(mWorkspace.getHotseatAppIcon("Camera"), 1); in testEmptyPagesGetRemovedIfBothPagesAreEmpty() 227 mWorkspace.dragIcon(mWorkspace.getWorkspaceAppIcon("Maps"), 2); in testMiddleEmptyPagesGetRemoved() 228 mWorkspace.dragIcon(mWorkspace.getHotseatAppIcon("Messages"), 3); in testMiddleEmptyPagesGetRemoved() [all …]
|
/aosp12/packages/apps/Launcher3/src/com/android/launcher3/util/ |
H A D | WallpaperOffsetInterpolator.java | 33 private final Workspace mWorkspace; field in WallpaperOffsetInterpolator 45 mWorkspace = workspace; in WallpaperOffsetInterpolator() 99 int leftPageScrollX = mWorkspace.getScrollForPage(leftPageIndex); in wallpaperOffsetForScroll() 100 int rightPageScrollX = mWorkspace.getScrollForPage(rightPageIndex); in wallpaperOffsetForScroll() 110 mWorkspace.getLayoutTransitionOffsetForPage(0); in wallpaperOffsetForScroll() 141 return (int) Math.ceil(numOfPages / mWorkspace.getPanelCount()); in getNumScrollableScreensExcludingEmpty() 152 int numOfPages = mWorkspace.getChildCount(); in getNumPagesExcludingEmpty() 154 return numOfPages - mWorkspace.getPanelCount(); in getNumPagesExcludingEmpty() 197 mWorkspace.getContext().unregisterReceiver(this); in setWindowToken() 200 mWorkspace.getContext() in setWindowToken() [all …]
|
/aosp12/packages/apps/Launcher3/src/com/android/launcher3/touch/ |
H A D | WorkspaceTouchListener.java | 64 private final Workspace mWorkspace; field in WorkspaceTouchListener 74 mWorkspace = workspace; in WorkspaceTouchListener() 107 mWorkspace.onTouchEvent(ev); in onTouch() 115 mWorkspace.onTouchEvent(ev); in onTouch() 126 mWorkspace.onTouchEvent(ev); in onTouch() 127 if (mWorkspace.isHandlingTouch()) { in onTouch() 141 if (!mWorkspace.isHandlingTouch()) { in onTouch() 143 (CellLayout) mWorkspace.getChildAt(mWorkspace.getCurrentPage()); in onTouch() 145 mWorkspace.onWallpaperTap(ev); in onTouch() 172 mWorkspace.getParent().requestDisallowInterceptTouchEvent(true); in onLongPress() [all …]
|
/aosp12/packages/apps/Launcher3/src/com/android/launcher3/ |
H A D | Launcher.java | 300 Workspace mWorkspace; field in Launcher 993 int pageIndex = mWorkspace.isOverlayShown() ? -1 : mWorkspace.getCurrentPage(); in logStopAndResume() 1167 if (mWorkspace != null) { in onScrollChanged() 1251 return createShortcut((ViewGroup) mWorkspace.getChildAt(mWorkspace.getCurrentPage()), info); in createShortcut() 1478 return mWorkspace; in getWorkspace() 1564 mWorkspace.post(mWorkspace::moveToDefaultScreen); in onNewIntent() 2090 text.add(mWorkspace == null in dispatchPopulateAccessibilityEvent() 2192 mWorkspace.clearDropTargets(); in startBinding() 2302 Workspace workspace = mWorkspace; in bindItems() 2390 int currentScreenId = mWorkspace.getScreenIdForPageIndex(mWorkspace.getNextPage()); in bindItems() [all …]
|
H A D | WorkspaceStateTransitionAnimation.java | 66 private final Workspace mWorkspace; field in WorkspaceStateTransitionAnimation 72 mWorkspace = workspace; in WorkspaceStateTransitionAnimation() 101 final int childCount = mWorkspace.getChildCount(); in setWorkspaceProperty() 103 applyChildState(state, (CellLayout) mWorkspace.getChildAt(i), i, pageAlphaProvider, in setWorkspaceProperty() 110 Hotseat hotseat = mWorkspace.getHotseat(); in setWorkspaceProperty() 118 mWorkspace, mNewScale)); in setWorkspaceProperty() 120 propertySetter.setFloat(mWorkspace, SCALE_PROPERTY, mNewScale, scaleInterpolator); in setWorkspaceProperty() 123 mWorkspace.setPivotToScaleWithSelf(hotseat); in setWorkspaceProperty() 143 propertySetter.setFloat(mWorkspace, VIEW_TRANSLATE_X, in setWorkspaceProperty() 145 propertySetter.setFloat(mWorkspace, VIEW_TRANSLATE_Y, in setWorkspaceProperty() [all …]
|
H A D | Hotseat.java | 44 private Workspace mWorkspace; field in Hotseat 126 mWorkspace = w; in setWorkspace() 135 if (mWorkspace != null && ev.getY() <= yThreshold) { in onInterceptTouchEvent() 136 mSendTouchToWorkspace = mWorkspace.onInterceptTouchEvent(ev); in onInterceptTouchEvent() 152 return mWorkspace.onTouchEvent(event); in onTouchEvent()
|
/aosp12/packages/apps/Launcher3/src/com/android/launcher3/secondarydisplay/ |
H A D | SecondaryDragLayer.java | 51 private GridView mWorkspace; field in SecondaryDragLayer 76 mWorkspace = findViewById(R.id.workspace_grid); in onFinishInflate() 79 mWorkspace.setAdapter(mPinnedAppsAdapter); in onFinishInflate() 80 mWorkspace.setNumColumns(mActivity.getDeviceProfile().inv.numColumns); in onFinishInflate() 131 } else if (child == mWorkspace) { in onMeasure() 132 measureChildWithMargins(mWorkspace, widthMeasureSpec, 0, heightMeasureSpec, in onMeasure()
|