Home
last modified time | relevance | path

Searched refs:mLauncher (Results 1 – 18 of 18) sorted by relevance

/packages/apps/Launcher2/src/com/android/launcher2/
DHandleView.java32 private Launcher mLauncher; field in HandleView
56 if (newFocus == null && !mLauncher.isAllAppsVisible()) { in focusSearch()
57 final Workspace workspace = mLauncher.getWorkspace(); in focusSearch()
67 if (ev.getAction() == MotionEvent.ACTION_DOWN && mLauncher.isAllAppsVisible()) { in onTouchEvent()
74 mLauncher = launcher; in setLauncher()
DSpringLoadedDragController.java29 private Launcher mLauncher; field in SpringLoadedDragController
32 mLauncher = launcher; in SpringLoadedDragController()
53 Workspace w = mLauncher.getWorkspace(); in onAlarm()
59 mLauncher.getDragController().cancelDrag(); in onAlarm()
DHotseat.java34 private Launcher mLauncher; field in Hotseat
63 mLauncher = launcher; in setup()
112 if (mLauncher != null && in resetLayout()
114 mLauncher.onTouchDownAllAppsButton(v); in resetLayout()
123 if (mLauncher != null) { in resetLayout()
124 mLauncher.onClickAllAppsButton(v); in resetLayout()
DDeleteDropTarget.java197 DragLayer dragLayer = mLauncher.getDragLayer(); in animateToTrashAndCompleteDrop()
209 mLauncher.exitSpringLoadedDragMode(); in animateToTrashAndCompleteDrop()
224 mLauncher.startApplicationUninstallActivity((ApplicationInfo) item); in completeDrop()
226 LauncherModel.deleteItemFromDatabase(mLauncher, item); in completeDrop()
230 mLauncher.removeFolder(folderInfo); in completeDrop()
231 LauncherModel.deleteFolderContentsFromDatabase(mLauncher, folderInfo); in completeDrop()
234 mLauncher.removeAppWidget((LauncherAppWidgetInfo) item); in completeDrop()
235 LauncherModel.deleteItemFromDatabase(mLauncher, item); in completeDrop()
238 final LauncherAppWidgetHost appWidgetHost = mLauncher.getAppWidgetHost(); in completeDrop()
388 final ViewConfiguration config = ViewConfiguration.get(mLauncher);
[all …]
DPagedViewWithDraggableItems.java40 private Launcher mLauncher; field in PagedViewWithDraggableItems
52 mLauncher = (Launcher) context; in PagedViewWithDraggableItems()
108 if (!mLauncher.isAllAppsCustomizeOpen() || in onLongClick()
109 mLauncher.getWorkspace().isSwitchingState()) return false; in onLongClick()
111 if (!mLauncher.isDraggingEnabled()) return false; in onLongClick()
DFolder.java65 protected Launcher mLauncher; field in Folder
146 mLauncher = (Launcher) context; in Folder()
204 mLauncher.startActivitySafely(v, item.intent, item); in onClick()
210 if (!mLauncher.isDraggingEnabled()) return true; in onLongClick()
219 mLauncher.dismissFolderCling(null); in onLongClick()
221 mLauncher.getWorkspace().onDragStartedWithItem(v); in onLongClick()
222 mLauncher.getWorkspace().beginDragShared(v, this); in onLongClick()
258 LauncherModel.updateItemInDatabase(mLauncher, mInfo); in doneEditingFolderName()
377 LauncherModel.deleteItemFromDatabase(mLauncher, item); in bind()
438 Cling cling = mLauncher.showFirstRunFoldersCling(); in animateOpen()
[all …]
DWorkspace.java139 private Launcher mLauncher; field in Workspace
337 mLauncher = (Launcher) context; in Workspace()
355 CellLayout cl = (CellLayout) mLauncher.getWorkspace().getChildAt(0); in estimateItemSize()
390 mLauncher.lockScreenOrientation(); in onDragStart()
400 mLauncher.unlockScreenOrientation(false); in onDragEnd()
427 Display display = mLauncher.getWindowManager().getDefaultDisplay(); in initWorkspace()
469 DragLayer dragLayer = mLauncher.getDragLayer(); in getOpenFolder()
525 layout = mLauncher.getHotseat().getLayout(); in addInScreen()
534 screen = mLauncher.getHotseat().getOrderInHotseat(x, y); in addInScreen()
538 x = mLauncher.getHotseat().getCellXFromOrder(screen); in addInScreen()
[all …]
DAppsCustomizePagedView.java250 private Launcher mLauncher; field in AppsCustomizePagedView
380 mLauncher.showWorkspace(true); in onUnhandledTap()
507 mLauncher.getDragLayer().getLocationInDragLayer(this, offset); in showAllAppsCling()
512 mLauncher.showFirstRunAllAppsCling(pos); in showAllAppsCling()
549 AppWidgetManager.getInstance(mLauncher).getInstalledProviders(); in updatePackages()
555 int[] spanXY = Launcher.getSpanForWidget(mLauncher, widget); in updatePackages()
556 int[] minSpanXY = Launcher.getMinSpanForWidget(mLauncher, widget); in updatePackages()
581 if (!mLauncher.isAllAppsCustomizeOpen() || in onClick()
582 mLauncher.getWorkspace().isSwitchingState()) return; in onClick()
596 mLauncher.updateWallpaperVisibility(true); in onClick()
[all …]
DButtonDropTarget.java37 protected Launcher mLauncher; field in ButtonDropTarget
61 mLauncher = launcher; in setLauncher()
120 DragLayer dragLayer = mLauncher.getDragLayer(); in getIconRect()
145 mLauncher.getDragLayer().getLocationInDragLayer(this, loc); in getLocationInDragLayer()
DDragController.java67 private Launcher mLauncher; field in DragController
150 mLauncher = launcher; in DragController()
180 mLauncher.getDragLayer().getLocationInDragLayer(v, loc); in startDrag()
218 mLauncher.getSystemService(Context.INPUT_METHOD_SERVICE); in startDrag()
244 final DragView dragView = mDragObject.dragView = new DragView(mLauncher, b, registrationX, in startDrag()
396 mLauncher.getDragLayer().getLocalVisibleRect(mDragLayerRect); in getClampedDragLayerPos()
479 mLauncher.getDragLayer().onExitScrollArea(); in clearScrollRunnable()
513 final int slop = ViewConfiguration.get(mLauncher).getScaledWindowTouchSlop(); in handleMoveEvent()
524 mLauncher.getDragLayer().onEnterScrollArea(SCROLL_LEFT); in handleMoveEvent()
533 mLauncher.getDragLayer().onEnterScrollArea(SCROLL_RIGHT); in handleMoveEvent()
[all …]
DDragLayer.java56 private Launcher mLauncher; field in DragLayer
98 mLauncher = launcher; in setup()
141 Folder currentFolder = mLauncher.getWorkspace().getOpenFolder(); in handleTouchDown()
142 if (currentFolder != null && !mLauncher.isFolderClingVisible() && intercept) { in handleTouchDown()
152 mLauncher.closeFolder(); in handleTouchDown()
172 Folder currentFolder = mLauncher.getWorkspace().getOpenFolder(); in onInterceptHoverEvent()
696 if (mLauncher != null) { in updateChildIndices()
697 mWorkspaceIndex = indexOfChild(mLauncher.getWorkspace()); in updateChildIndices()
698 mQsbIndex = indexOfChild(mLauncher.getSearchBar()); in updateChildIndices()
711 mLauncher.getWorkspace().isDrawingBackgroundGradient()) { in getChildDrawingOrder()
[all …]
DInstallWidgetReceiver.java76 private Launcher mLauncher; field in InstallWidgetReceiver.WidgetListAdapter
87 mLauncher = l; in WidgetListAdapter()
191 mLauncher.addAppWidgetFromDrop(createInfo, LauncherSettings.Favorites.CONTAINER_DESKTOP, in onClick()
DCling.java58 private Launcher mLauncher; field in Cling
90 mLauncher = l; in init()
189 Folder f = mLauncher.getWorkspace().getOpenFolder(); in onTouchEvent()
205 mLauncher.getWindowManager().getDefaultDisplay().getMetrics(metrics); in dispatchDraw()
DAppWidgetResizeFrame.java68 private Launcher mLauncher; field in AppWidgetResizeFrame
74 mLauncher = (Launcher) context; in AppWidgetResizeFrame()
82 int[] result = Launcher.getMinSpanForWidget(mLauncher, info); in AppWidgetResizeFrame()
129 final float density = mLauncher.getResources().getDisplayMetrics().density; in AppWidgetResizeFrame()
311 updateWidgetSizeRanges(mWidgetView, mLauncher, spanX, spanY); in resizeWidgetIfNeeded()
DFolderIcon.java52 private Launcher mLauncher; field in FolderIcon
139 icon.mLauncher = launcher; in fromXml()
295 LauncherModel.addOrMoveItemInDatabase(mLauncher, item, mInfo.id, 0, item.cellX, item.cellY); in addItem()
345 DragLayer dragLayer = mLauncher.getDragLayer(); in onDrop()
351 Workspace workspace = mLauncher.getWorkspace(); in onDrop()
DInfoDropTarget.java83 mLauncher.startApplicationDetailsActivity(componentName); in acceptDrop()
DAppsCustomizeTabHost.java61 private Launcher mLauncher; field in AppsCustomizeTabHost
75 mLauncher = launcher; in setup()
DCellLayout.java61 private Launcher mLauncher; field in CellLayout
179 mLauncher = (Launcher) context; in CellLayout()
2150 mLauncher.getWorkspace().updateItemLocationsInDatabase(this); in commitTempPlacement()