Home
last modified time | relevance | path

Searched refs:CellLayout (Results 1 – 25 of 37) sorted by relevance

12

/packages/apps/Launcher2/src/com/android/launcher2/
DWorkspace.java111 private CellLayout.CellInfo mDragInfo;
126 private CellLayout mDragTargetLayout = null;
130 private CellLayout mDragOverlappingLayout = null;
135 private CellLayout mDropToLayout = null;
315 while (CellLayout.widthInPortrait(res, cellCountX + 1) <= minDims.x) { in Workspace()
320 while (actionBarHeight + CellLayout.heightInLandscape(res, cellCountY + 1) in Workspace()
360 CellLayout cl = (CellLayout) mLauncher.getWorkspace().getChildAt(0); in estimateItemSize()
375 public Rect estimateItemPosition(CellLayout cl, ItemInfo pendingInfo, in estimateItemPosition()
440 if (!(child instanceof CellLayout)) { in onChildViewAdded()
443 CellLayout cl = ((CellLayout) child); in onChildViewAdded()
[all …]
DFocusHelper.java534 final CellLayout layout = (CellLayout) workspace.getChildAt(pageIndex); in handleHotseatButtonKeyEvent()
567 private static ArrayList<View> getCellLayoutChildrenSortedSpatially(CellLayout layout, in getCellLayoutChildrenSortedSpatially()
579 CellLayout.LayoutParams llp = (CellLayout.LayoutParams) lhs.getLayoutParams(); in getCellLayoutChildrenSortedSpatially()
580 CellLayout.LayoutParams rlp = (CellLayout.LayoutParams) rhs.getLayoutParams(); in getCellLayoutChildrenSortedSpatially()
607 private static View getIconInDirection(CellLayout layout, ViewGroup parent, int i, in getIconInDirection()
612 private static View getIconInDirection(CellLayout layout, ViewGroup parent, View v, in getIconInDirection()
623 private static View getClosestIconOnLine(CellLayout layout, ViewGroup parent, View v, in getClosestIconOnLine()
626 final CellLayout.LayoutParams lp = (CellLayout.LayoutParams) v.getLayoutParams(); in getClosestIconOnLine()
637 CellLayout.LayoutParams tmpLp = (CellLayout.LayoutParams) newV.getLayoutParams(); in getClosestIconOnLine()
666 final CellLayout layout = (CellLayout) parent.getParent(); in handleIconKeyEvent()
[all …]
DShortcutAndWidgetContainer.java64 CellLayout.LayoutParams lp = (CellLayout.LayoutParams) child.getLayoutParams(); in getChildAt()
84 … final CellLayout.LayoutParams lp = (CellLayout.LayoutParams) child.getLayoutParams(); in dispatchDraw()
104 public void setupLp(CellLayout.LayoutParams lp) { in setupLp()
117 CellLayout.LayoutParams lp = (CellLayout.LayoutParams) child.getLayoutParams(); in measureChild()
140 CellLayout.LayoutParams lp = (CellLayout.LayoutParams) child.getLayoutParams(); in onLayout()
DFolder.java72 protected CellLayout mContent;
155 mContent = (CellLayout) findViewById(R.id.folder_content); in onFinishInflate()
546 CellLayout.LayoutParams lp = in createAndAddShortcut()
547 new CellLayout.LayoutParams(item.cellX, item.cellY, item.spanX, item.spanY); in createAndAddShortcut()
814 CellLayout currentLayout = (CellLayout) mLauncher.getWorkspace().getChildAt(currentPage); in centerAboutIcon()
894 CellLayout.LayoutParams lp = (CellLayout.LayoutParams) v.getLayoutParams(); in arrangeChildren()
946 CellLayout cellLayout = mLauncher.getCellLayout(mInfo.container, mInfo.screen); in replaceFolderWithFinalItem()
1012CellLayout.LayoutParams lp = (CellLayout.LayoutParams) mCurrentDragView.getLayoutParams(); in onDrop()
DFolderIcon.java166 private CellLayout mCellLayout;
271 public void setCellLayout(CellLayout layout) { in setCellLayout()
310 CellLayout.LayoutParams lp = (CellLayout.LayoutParams) getLayoutParams(); in onDragEnter()
311 CellLayout layout = (CellLayout) getParent().getParent(); in onDragEnter()
376 workspace.setFinalTransitionTransform((CellLayout) getParent().getParent()); in onDrop()
385 workspace.resetTransitionTransform((CellLayout) getParent().getParent()); in onDrop()
DHotseat.java36 private CellLayout mContent;
73 CellLayout getLayout() { in getLayout()
101 mContent = (CellLayout) findViewById(R.id.layout); in onFinishInflate()
143 CellLayout.LayoutParams lp = new CellLayout.LayoutParams(x,y,1,1); in resetLayout()
DLauncher.java721 CellLayout cellLayout = in completeTwoStageWidgetDrop()
722 (CellLayout) mWorkspace.getChildAt(mPendingAddInfo.screen); in completeTwoStageWidgetDrop()
1100 final CellLayout layout = getCellLayout(container, screen); in completeAddApplication()
1136 CellLayout layout = getCellLayout(container, screen); in completeAddShortcut()
1191 return CellLayout.rectToCell(context.getResources(), requiredWidth, requiredHeight, null); in getSpanForWidget()
1225 CellLayout layout = getCellLayout(container, screen); in completeAddAppWidget()
1928 FolderIcon addFolder(CellLayout layout, long container, final int screen, int cellX, in addFolder()
2342 CellLayout cl = (CellLayout) fi.getParent().getParent(); in growAndFadeOutFolderIcon()
2343 CellLayout.LayoutParams lp = (CellLayout.LayoutParams) fi.getLayoutParams(); in growAndFadeOutFolderIcon()
2363 final CellLayout cl = (CellLayout) fi.getParent().getParent(); in shrinkAndFadeInFolderIcon()
[all …]
DAppWidgetResizeFrame.java20 private CellLayout mCellLayout;
77 LauncherAppWidgetHostView widgetView, CellLayout cellLayout, DragLayer dragLayer) { in AppWidgetResizeFrame()
254 CellLayout.LayoutParams lp = (CellLayout.LayoutParams) mWidgetView.getLayoutParams(); in resizeWidgetIfNeeded()
351 Rect landMetrics = Workspace.getCellLayoutMetrics(launcher, CellLayout.LANDSCAPE); in getWidgetSizeRanges()
352 Rect portMetrics = Workspace.getCellLayoutMetrics(launcher, CellLayout.PORTRAIT); in getWidgetSizeRanges()
DDragLayer.java441 CellLayout cellLayout) { in addResizeFrame()
478 CellLayout.LayoutParams lp = (CellLayout.LayoutParams) child.getLayoutParams(); in animateViewIntoPosition()
790 CellLayout leftPage = (CellLayout) workspace.getChildAt(isRtl ? page + 1 : page - 1); in dispatchDraw()
791 CellLayout rightPage = (CellLayout) workspace.getChildAt(isRtl ? page - 1 : page + 1); in dispatchDraw()
DCellLayout.java61 public class CellLayout extends ViewGroup { class
126 private HashMap<CellLayout.LayoutParams, Animator> mReorderAnimators = new
127 HashMap<CellLayout.LayoutParams, Animator>();
169 public CellLayout(Context context) { in CellLayout() method in CellLayout
173 public CellLayout(Context context, AttributeSet attrs) { in CellLayout() method in CellLayout
177 public CellLayout(Context context, AttributeSet attrs, int defStyle) { in CellLayout() method in CellLayout
187 TypedArray a = context.obtainStyledAttributes(attrs, R.styleable.CellLayout, defStyle, 0); in CellLayout()
265 CellLayout.this.invalidate(mDragOutlines[thisIndex]); in CellLayout()
3142 return new CellLayout.LayoutParams(getContext(), attrs); in generateLayoutParams()
3147 return p instanceof CellLayout.LayoutParams; in checkLayoutParams()
[all …]
DSpringLoadedDragController.java28 private CellLayout mScreen;
42 public void setAlarm(CellLayout cl) { in setAlarm()
/packages/apps/Launcher3/src/com/android/launcher3/
DWorkspace.java123 @Thunk LongArrayMap<CellLayout> mWorkspaceScreens = new LongArrayMap<>();
133 private CellLayout.CellInfo mDragInfo;
153 @Thunk CellLayout mDragTargetLayout = null;
157 private CellLayout mDragOverlappingLayout = null;
162 private CellLayout mDropToLayout = null;
350 CellLayout customScreen = getScreenWithId(CUSTOM_CONTENT_SCREEN_ID); in setInsets()
365 CellLayout cl = (CellLayout) getChildAt(numCustomPages()); in estimateItemSize()
381 public Rect estimateItemPosition(CellLayout cl, int hCell, int vCell, int hSpan, int vSpan) { in estimateItemPosition()
482 if (!(child instanceof CellLayout)) { in onChildViewAdded()
485 CellLayout cl = ((CellLayout) child); in onChildViewAdded()
[all …]
DFocusHelper.java102 final CellLayout cellLayout = (CellLayout) itemContainer.getParent(); in onKey()
127 int row = ((CellLayout.LayoutParams) v.getLayoutParams()).cellY; in onKey()
216 final CellLayout hotseatLayout = (CellLayout) hotseatParent.getParent(); in handleHotseatButtonKeyEvent()
222 int iconRank = ((CellLayout.LayoutParams) hotseatLayout.getShortcutsAndWidgets() in handleHotseatButtonKeyEvent()
225 final CellLayout iconLayout = (CellLayout) workspace.getChildAt(pageIndex); in handleHotseatButtonKeyEvent()
299 CellLayout prevPage = (CellLayout) workspace.getPageAt(pageIndex - 1); in handleHotseatButtonKeyEvent()
300 boolean isPrevPageFullscreen = ((CellLayout.LayoutParams) prevPage in handleHotseatButtonKeyEvent()
311 CellLayout nextPage = (CellLayout) workspace.getPageAt(pageIndex + 1); in handleHotseatButtonKeyEvent()
312 boolean isNextPageFullscreen = ((CellLayout.LayoutParams) nextPage in handleHotseatButtonKeyEvent()
353 CellLayout iconLayout = (CellLayout) parent.getParent(); in handleIconKeyEvent()
[all …]
DFolderPagedView.java202 CellLayout.LayoutParams lp = (CellLayout.LayoutParams) view.getLayoutParams(); in addViewForRank()
219 textView.setLayoutParams(new CellLayout.LayoutParams( in createNewView()
225 public CellLayout getPageAt(int index) { in getPageAt()
226 return (CellLayout) getChildAt(index); in getPageAt()
235 public CellLayout getCurrentCellLayout() { in getCurrentCellLayout()
239 private CellLayout createAndAddNewPage() { in createAndAddNewPage()
241 CellLayout page = new CellLayout(getContext()); in createAndAddNewPage()
261 ((CellLayout) getChildAt(i)).setFixedSize(width, height); in setFixedSize()
287 ArrayList<CellLayout> pages = new ArrayList<CellLayout>(); in arrangeChildren()
289 CellLayout page = (CellLayout) getChildAt(i); in arrangeChildren()
[all …]
DShortcutAndWidgetContainer.java71 CellLayout.LayoutParams lp = (CellLayout.LayoutParams) child.getLayoutParams(); in getChildAt()
91 … final CellLayout.LayoutParams lp = (CellLayout.LayoutParams) child.getLayoutParams(); in dispatchDraw()
115 public void setupLp(CellLayout.LayoutParams lp) { in setupLp()
145 CellLayout.LayoutParams lp = (CellLayout.LayoutParams) child.getLayoutParams(); in measureChild()
180 CellLayout.LayoutParams lp = (CellLayout.LayoutParams) child.getLayoutParams(); in onLayout()
DHotseat.java33 private CellLayout mContent;
55 CellLayout getLayout() { in getLayout()
98 mContent = (CellLayout) findViewById(R.id.layout); in onFinishInflate()
141 CellLayout.LayoutParams lp = new CellLayout.LayoutParams(x,y,1,1); in resetLayout()
DFolderIcon.java198 @Thunk CellLayout mCellLayout;
305 public void setCellLayout(CellLayout layout) { in setCellLayout()
344 CellLayout.LayoutParams lp = (CellLayout.LayoutParams) getLayoutParams(); in onDragEnter()
345 CellLayout layout = (CellLayout) getParent().getParent(); in onDragEnter()
438 workspace.setFinalTransitionTransform((CellLayout) getParent().getParent()); in onDrop()
447 workspace.resetTransitionTransform((CellLayout) getParent().getParent()); in onDrop()
DAppWidgetResizeFrame.java31 private final CellLayout mCellLayout;
74 LauncherAppWidgetHostView widgetView, CellLayout cellLayout, DragLayer dragLayer) { in AppWidgetResizeFrame()
262 CellLayout.LayoutParams lp = (CellLayout.LayoutParams) mWidgetView.getLayoutParams(); in resizeWidgetIfNeeded()
364 Rect landMetrics = Workspace.getCellLayoutMetrics(launcher, CellLayout.LANDSCAPE); in getWidgetSizeRanges()
365 Rect portMetrics = Workspace.getCellLayoutMetrics(launcher, CellLayout.PORTRAIT); in getWidgetSizeRanges()
DLauncher.java776 … final CellLayout dropLayout = mWorkspace.getScreenWithId(mPendingAddInfo.screenId); in handleActivityResult()
850 CellLayout layout = getCellLayout(sPendingAddItem.container, sPendingAddItem.screenId); in onRequestPermissionsResult()
891 CellLayout dropLayout = mWorkspace.getScreenWithId(screenId); in ensurePendingDropLayoutExists()
903 CellLayout cellLayout = mWorkspace.getScreenWithId(mPendingAddInfo.screenId); in completeTwoStageWidgetDrop()
1499 CellLayout layout = getCellLayout(container, screenId); in completeAddShortcut()
2350 FolderIcon addFolder(CellLayout layout, long container, final long screenId, int cellX, in addFolder()
2366 CellLayout parent = mWorkspace.getParentCellLayoutForView(newFolder); in addFolder()
2528 if (v instanceof CellLayout) { in onClick()
3089 CellLayout cl = (CellLayout) fi.getParent().getParent(); in growAndFadeOutFolderIcon()
3090 CellLayout.LayoutParams lp = (CellLayout.LayoutParams) fi.getLayoutParams(); in growAndFadeOutFolderIcon()
[all …]
DDragLayer.java541 CellLayout cellLayout) { in addResizeFrame()
574 CellLayout.LayoutParams lp = (CellLayout.LayoutParams) child.getLayoutParams(); in animateViewIntoPosition()
898 CellLayout leftPage = (CellLayout) workspace.getChildAt(mIsRtl ? page + 1 : page - 1); in drawPageHints()
899 CellLayout rightPage = (CellLayout) workspace.getChildAt(mIsRtl ? page - 1 : page + 1); in drawPageHints()
DWorkspaceStateTransitionAnimation.java312 final CellLayout cl = (CellLayout) mWorkspace.getChildAt(i); in animateWorkspace()
361 final CellLayout cl = (CellLayout) mWorkspace.getChildAt(i); in animateWorkspace()
/packages/apps/Launcher3/src/com/android/launcher3/util/
DFocusLogic.java24 import com.android.launcher3.CellLayout;
163 public static int[][] createSparseMatrix(CellLayout layout) { in createSparseMatrix()
177 int cx = ((CellLayout.LayoutParams) cell.getLayoutParams()).cellX; in createSparseMatrix()
178 int cy = ((CellLayout.LayoutParams) cell.getLayoutParams()).cellY; in createSparseMatrix()
193 public static int[][] createSparseMatrixWithHotseat(CellLayout iconLayout, in createSparseMatrixWithHotseat()
194 CellLayout hotseatLayout, boolean isHotseatHorizontal, int allappsiconRank) { in createSparseMatrixWithHotseat()
229 int cx = ((CellLayout.LayoutParams) cell.getLayoutParams()).cellX; in createSparseMatrixWithHotseat()
230 int cy = ((CellLayout.LayoutParams) cell.getLayoutParams()).cellY; in createSparseMatrixWithHotseat()
247 int cx = ((CellLayout.LayoutParams) in createSparseMatrixWithHotseat()
251 int cy = ((CellLayout.LayoutParams) in createSparseMatrixWithHotseat()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/accessibility/
DLauncherAccessibilityDelegate.java21 import com.android.launcher3.CellLayout;
230 CellLayout layout = (CellLayout) host.getParent().getParent(); in getSupportedResizeActions()
256 CellLayout.LayoutParams lp = (CellLayout.LayoutParams) host.getLayoutParams(); in performResizeAction()
257 CellLayout layout = (CellLayout) host.getParent().getParent(); in performResizeAction()
348 CellLayout.CellInfo cellInfo = new CellLayout.CellInfo(item, info); in beginAccessibleDrag()
392 void startDrag(CellLayout.CellInfo cellInfo, boolean accessible); in startDrag()
408 CellLayout layout = (CellLayout) workspace.getPageAt(screenIndex); in findSpaceOnWorkspace()
414 layout = (CellLayout) workspace.getPageAt(screenIndex); in findSpaceOnWorkspace()
DDragAndDropAccessibilityDelegate.java28 import com.android.launcher3.CellLayout;
43 protected final CellLayout mView;
49 public DragAndDropAccessibilityDelegate(CellLayout forView) { in DragAndDropAccessibilityDelegate()
/packages/apps/Launcher3/src/com/android/launcher3/widget/
DWidgetsContainerView.java31 import com.android.launcher3.CellLayout;
296 CellLayout layout = (CellLayout) workspace.getChildAt(currentScreen); in onDropCompleted()

12