Home
last modified time | relevance | path

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

123

/packages/apps/Launcher3/src/com/android/launcher3/widget/
DWidgetsContainerView.java59 @Thunk Launcher mLauncher; field in WidgetsContainerView
83 mLauncher = (Launcher) context; in WidgetsContainerView()
84 mDragController = mLauncher.getDragController(); in WidgetsContainerView()
85 mAdapter = new WidgetsListAdapter(context, this, this, mLauncher); in WidgetsContainerView()
115 if (!mLauncher.isWidgetsViewVisible() in onClick()
116 || mLauncher.getWorkspace().isSwitchingState() in onClick()
139 if (!mLauncher.isWidgetsViewVisible() || in onLongClick()
140 mLauncher.getWorkspace().isSwitchingState()) return false; in onLongClick()
142 if (!mLauncher.isDraggingEnabled()) return false; in onLongClick()
146 WidgetHostViewLoader hostLoader = new WidgetHostViewLoader(mLauncher, v); in onLongClick()
[all …]
DWidgetHostViewLoader.java31 @Thunk Launcher mLauncher; field in WidgetHostViewLoader
42 mLauncher = launcher; in WidgetHostViewLoader()
58 mLauncher.getDragController().removeDragListener(this); in onDragEnd()
65 mLauncher.getAppWidgetHost().deleteAppWidgetId(mWidgetLoadingId); in onDragEnd()
74 mLauncher.getDragLayer().removeView(mInfo.boundWidget); in onDragEnd()
75 mLauncher.getAppWidgetHost().deleteAppWidgetId(mInfo.boundWidget.getAppWidgetId()); in onDragEnd()
89 final Bundle options = getDefaultOptionsForWidget(mLauncher, mInfo); in preloadWidget()
100 mWidgetLoadingId = mLauncher.getAppWidgetHost().allocateAppWidgetId(); in preloadWidget()
104 if(AppWidgetManagerCompat.getInstance(mLauncher).bindAppWidgetIdIfAllowed( in preloadWidget()
122 AppWidgetHostView hostView = mLauncher.getAppWidgetHost().createView( in preloadWidget()
[all …]
DWidgetsListAdapter.java58 private Launcher mLauncher; field in WidgetsListAdapter
78 mLauncher = launcher; in WidgetsListAdapter()
144 PendingAddWidgetInfo pawi = new PendingAddWidgetInfo(mLauncher, info, null); in onBindViewHolder()
151 … widget.applyFromResolveInfo(mLauncher.getPackageManager(), info, mWidgetPreviewLoader); in onBindViewHolder()
211 Resources r = mLauncher.getResources(); in setContainerHeight()
212 DeviceProfile profile = mLauncher.getDeviceProfile(); in setContainerHeight()
/packages/apps/Launcher3/src/com/android/launcher3/
DLauncherClings.java52 @Thunk Launcher mLauncher; field in LauncherClings
58 mLauncher = launcher; in LauncherClings()
59 mInflater = LayoutInflater.from(mLauncher); in LauncherClings()
70 LauncherModel model = mLauncher.getModel(); in onClick()
76 SharedPreferences.Editor editor = Utilities.getPrefs(mLauncher).edit(); in onClick()
94 mLauncher.hideWorkspaceSearchAndHotseat(); in showMigrationCling()
96 ViewGroup root = (ViewGroup) mLauncher.findViewById(R.id.launcher); in showMigrationCling()
103 mLauncher.showWorkspaceSearchAndHotseat(); in dismissMigrationCling()
112 dismissCling(mLauncher.findViewById(R.id.migration_cling), cb, in dismissMigrationCling()
116 mLauncher.getWorkspace().post(dismissCb); in dismissMigrationCling()
[all …]
DHotseat.java35 private Launcher mLauncher; field in Hotseat
51 mLauncher = (Launcher) context; in Hotseat()
52 mHasVerticalHotseat = mLauncher.getDeviceProfile().isVerticalBarLayout(); in Hotseat()
95 DeviceProfile grid = mLauncher.getDeviceProfile(); in onFinishInflate()
120 mLauncher.resizeIconDrawable(d); in resetLayout()
129 if (mLauncher != null) { in resetLayout()
130 mLauncher.setAllAppsButton(allAppsButton); in resetLayout()
131 allAppsButton.setOnTouchListener(mLauncher.getHapticFeedbackTouchListener()); in resetLayout()
132 allAppsButton.setOnClickListener(mLauncher); in resetLayout()
133 allAppsButton.setOnLongClickListener(mLauncher); in resetLayout()
[all …]
DWorkspace.java164 @Thunk Launcher mLauncher; field in Workspace
294 mLauncher.getModel().bindRemainingSynchronousPages();
320 mLauncher = (Launcher) context; in Workspace()
321 mStateTransitionAnimation = new WorkspaceStateTransitionAnimation(mLauncher, this); in Workspace()
323 DeviceProfile grid = mLauncher.getDeviceProfile(); in Workspace()
395 mLauncher.lockScreenOrientation(); in onDragStart()
396 mLauncher.onInteractionBegin(); in onDragStart()
426 mLauncher.unlockScreenOrientation(false); in onDragEnd()
432 mLauncher.onInteractionEnd(); in onDragEnd()
441 DeviceProfile grid = mLauncher.getDeviceProfile(); in initWorkspace()
[all …]
DLauncherStateTransitionAnimation.java112 @Thunk Launcher mLauncher; field in LauncherStateTransitionAnimation
116 mLauncher = l; in LauncherStateTransitionAnimation()
127 final AllAppsContainerView toView = mLauncher.getAppsView(); in startAnimationToAllApps()
128 final View buttonView = mLauncher.getAllAppsButton(); in startAnimationToAllApps()
132 int allAppsButtonSize = mLauncher.getDeviceProfile().allAppsButtonVisualSize; in startAnimationToAllApps()
164 final WidgetsContainerView toView = mLauncher.getWidgetsView(); in startAnimationToWidgets()
165 final View buttonView = mLauncher.getWidgetsButton(); in startAnimationToWidgets()
202 final Resources res = mLauncher.getResources(); in startAnimationToOverlay()
207 final View fromView = mLauncher.getWorkspace(); in startAnimationToOverlay()
219 Animator workspaceAnim = mLauncher.startWorkspaceStateChangeAnimation(toWorkspaceState, -1, in startAnimationToOverlay()
[all …]
DFolder.java120 protected final Launcher mLauncher; field in Folder
186 mLauncher = (Launcher) context; in Folder()
248 mLauncher.onClick(v); in onClick()
254 if (!mLauncher.isDraggingEnabled()) return true; in onLongClick()
266 mLauncher.getWorkspace().beginDragShared(v, new Point(), this, accessible); in beginDrag()
287 mLauncher.getSearchDropTargetBar().enableAccessibleDrag(enable); in enableAccessibleDrag()
294 mLauncher.getWorkspace().setAddNewPageOnDrag(!enable); in enableAccessibleDrag()
317 LauncherModel.updateItemInDatabase(mLauncher, mInfo); in doneEditingFolderName()
386 LauncherModel.deleteItemFromDatabase(mLauncher, item); in bind()
579 AnimationUtils.loadInterpolator(mLauncher, in animateOpen()
[all …]
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()
DDragController.java70 @Thunk Launcher mLauncher; field in DragController
153 mLauncher = launcher; in DragController()
184 mLauncher.getDragLayer().getLocationInDragLayer(v, loc); in startDrag()
223 mLauncher.getSystemService(Context.INPUT_METHOD_SERVICE); in startDrag()
242 final DragView dragView = mDragObject.dragView = new DragView(mLauncher, b, registrationX, in startDrag()
267 mLauncher.getDragLayer().performHapticFeedback(HapticFeedbackConstants.LONG_PRESS); in startDrag()
413 mLauncher.getDragLayer().getLocalVisibleRect(mDragLayerRect); in getClampedDragLayerPos()
503 mLauncher.getDragLayer().onExitScrollArea(); in clearScrollRunnable()
550 final int slop = ViewConfiguration.get(mLauncher).getScaledWindowTouchSlop(); in checkScrollState()
552 final DragLayer dragLayer = mLauncher.getDragLayer(); in checkScrollState()
[all …]
DButtonDropTarget.java52 protected Launcher mLauncher; field in ButtonDropTarget
104 mLauncher = launcher; in setLauncher()
226 final DragLayer dragLayer = mLauncher.getDragLayer(); in onDrop()
242 mLauncher.exitSpringLoadedDragModeDelayed(true, 0, null); in onDrop()
262 mLauncher.getDragLayer().getDescendantCoordRelativeToSelf(this, coords); in getHitRectRelativeToDragLayer()
267 DragLayer dragLayer = mLauncher.getDragLayer(); in getIconRect()
302 mLauncher.getDragLayer().getLocationInDragLayer(this, loc); in getLocationInDragLayer()
DLauncherAppWidgetHost.java41 private Launcher mLauncher; field in LauncherAppWidgetHost
45 mLauncher = launcher; in LauncherAppWidgetHost()
107 mLauncher.notifyWidgetProvidersChanged();
132 mLauncher, appWidget);
/packages/apps/Launcher3/src/com/android/launcher3/accessibility/
DLauncherAccessibilityDelegate.java69 @Thunk final Launcher mLauncher; field in LauncherAccessibilityDelegate
75 mLauncher = launcher; in LauncherAccessibilityDelegate()
139 DeleteDropTarget.removeWorkspaceOrFolderItem(mLauncher, item, host); in performAction()
142 InfoDropTarget.startDetailsActivityForInfo(item, mLauncher); in performAction()
145 return UninstallDropTarget.startUninstallActivity(mLauncher, item); in performAction()
151 mLauncher.showWorkspace(true, new Runnable() { in performAction()
157 LauncherModel.addItemToDatabase(mLauncher, info, in performAction()
163 mLauncher.bindItems(itemList, 0, itemList.size(), true); in performAction()
166 Workspace workspace = mLauncher.getWorkspace(); in performAction()
168 mLauncher.addPendingItem(info, LauncherSettings.Favorites.CONTAINER_DESKTOP, in performAction()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/allapps/
DAllAppsContainerView.java135 private final Launcher mLauncher; field in AllAppsContainerView
174 mLauncher = (Launcher) context; in AllAppsContainerView()
177 mAdapter = new AllAppsGridAdapter(mLauncher, mApps, this, mLauncher, this); in AllAppsContainerView()
231 mSearchBarController.initialize(mApps, mSearchInput, mLauncher, this); in setSearchBarController()
319 mLauncher.updateOverlayBounds(newBounds); in onBoundsChanged()
334 DeviceProfile grid = mLauncher.getDeviceProfile(); in onMeasure()
442 if (!mLauncher.isAppsViewVisible() || in onLongClick()
443 mLauncher.getWorkspace().isSwitchingState()) return false; in onLongClick()
445 if (!mLauncher.isDraggingEnabled()) return false; in onLongClick()
448 mLauncher.getWorkspace().beginDragShared(v, mIconLastTouchPos, this, false); in onLongClick()
[all …]
/packages/apps/Launcher2/src/com/android/launcher2/
DAppsCustomizePagedView.java166 private Launcher mLauncher; field in AppsCustomizePagedView
358 mWidgetPreviewLoader = new WidgetPreviewLoader(mLauncher); in onDataReady()
424 mLauncher.getDragLayer().getLocationInDragLayer(this, offset); in showAllAppsCling()
429 pos[1] += offset[1] - mLauncher.getDragLayer().getPaddingTop(); in showAllAppsCling()
430 mLauncher.showFirstRunAllAppsCling(pos); in showAllAppsCling()
457 int[] spanXY = Launcher.getSpanForWidget(mLauncher, widget); in onPackagesUpdated()
458 int[] minSpanXY = Launcher.getMinSpanForWidget(mLauncher, widget); in onPackagesUpdated()
504 if (!mLauncher.isAllAppsVisible() || in onClick()
505 mLauncher.getWorkspace().isSwitchingState()) return; in onClick()
519 mLauncher.updateWallpaperVisibility(true); in onClick()
[all …]
DFolder.java63 protected Launcher mLauncher; field in Folder
145 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.java137 private Launcher mLauncher; field in Workspace
259 mLauncher.getModel().bindRemainingSynchronousPages();
289 mLauncher = (Launcher) context; in Workspace()
312 mLauncher.getWindowManager().getDefaultDisplay().getCurrentSizeRange(minDims, maxDims); in Workspace()
360 CellLayout cl = (CellLayout) mLauncher.getWorkspace().getChildAt(0); in estimateItemSize()
385 mLauncher.lockScreenOrientation(); in onDragStart()
395 mLauncher.unlockScreenOrientation(false); in onDragEnd()
424 Display display = mLauncher.getWindowManager().getDefaultDisplay(); in initWorkspace()
465 DragLayer dragLayer = mLauncher.getDragLayer(); in getOpenFolder()
521 layout = mLauncher.getHotseat().getLayout(); in addInScreen()
[all …]
DDeleteDropTarget.java205 DragLayer dragLayer = mLauncher.getDragLayer(); in animateToTrashAndCompleteDrop()
217 mLauncher.exitSpringLoadedDragMode(); in animateToTrashAndCompleteDrop()
232 mLauncher.startApplicationUninstallActivity((ApplicationInfo) item, item.user); in completeDrop()
234 LauncherModel.deleteItemFromDatabase(mLauncher, item); in completeDrop()
238 mLauncher.removeFolder(folderInfo); in completeDrop()
239 LauncherModel.deleteFolderContentsFromDatabase(mLauncher, folderInfo); in completeDrop()
242 mLauncher.removeAppWidget((LauncherAppWidgetInfo) item); in completeDrop()
243 LauncherModel.deleteItemFromDatabase(mLauncher, item); in completeDrop()
246 final LauncherAppWidgetHost appWidgetHost = mLauncher.getAppWidgetHost(); in completeDrop()
396 final ViewConfiguration config = ViewConfiguration.get(mLauncher);
[all …]
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()
DHotseat.java35 private Launcher mLauncher; field in Hotseat
69 mLauncher = launcher; in setup()
122 if (mLauncher != null && in resetLayout()
124 mLauncher.onTouchDownAllAppsButton(v); in resetLayout()
133 if (mLauncher != null) { in resetLayout()
134 mLauncher.onClickAllAppsButton(v); in resetLayout()
DLauncherAppWidgetHost.java31 Launcher mLauncher; field in LauncherAppWidgetHost
35 mLauncher = launcher; in LauncherAppWidgetHost()
53 mLauncher.bindPackagesUpdated(LauncherModel.getSortedWidgetsAndShortcuts(mLauncher)); in onProvidersChanged()
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()
DPagedViewWithDraggableItems.java40 private Launcher mLauncher; field in PagedViewWithDraggableItems
52 mLauncher = (Launcher) context; in PagedViewWithDraggableItems()
108 if (!mLauncher.isAllAppsVisible() || in onLongClick()
109 mLauncher.getWorkspace().isSwitchingState()) return false; in onLongClick()
111 if (!mLauncher.isDraggingEnabled()) return false; in onLongClick()
DDragLayer.java55 private Launcher mLauncher; field in DragLayer
97 mLauncher = launcher; in setup()
140 Folder currentFolder = mLauncher.getWorkspace().getOpenFolder(); in handleTouchDown()
141 if (currentFolder != null && !mLauncher.isFolderClingVisible() && intercept) { in handleTouchDown()
151 mLauncher.closeFolder(); in handleTouchDown()
171 if (mLauncher == null || mLauncher.getWorkspace() == null) { in onInterceptHoverEvent()
174 Folder currentFolder = mLauncher.getWorkspace().getOpenFolder(); in onInterceptHoverEvent()
227 Folder currentFolder = mLauncher.getWorkspace().getOpenFolder(); in onRequestSendAccessibilityEvent()
241 Folder currentFolder = mLauncher.getWorkspace().getOpenFolder(); in addChildrenForAccessibility()
729 if (mLauncher != null) { in updateChildIndices()
[all …]
DDragController.java67 private Launcher mLauncher; field in DragController
150 mLauncher = launcher; in DragController()
180 mLauncher.getDragLayer().getLocationInDragLayer(v, loc); in startDrag()
220 mLauncher.getSystemService(Context.INPUT_METHOD_SERVICE); in startDrag()
246 final DragView dragView = mDragObject.dragView = new DragView(mLauncher, b, registrationX, in startDrag()
397 mLauncher.getDragLayer().getLocalVisibleRect(mDragLayerRect); in getClampedDragLayerPos()
480 mLauncher.getDragLayer().onExitScrollArea(); in clearScrollRunnable()
531 final int slop = ViewConfiguration.get(mLauncher).getScaledWindowTouchSlop(); in checkScrollState()
533 final DragLayer dragLayer = mLauncher.getDragLayer(); in checkScrollState()
626 ViewConfiguration config = ViewConfiguration.get(mLauncher);
[all …]

123