Home
last modified time | relevance | path

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

123

/packages/apps/Launcher3/src/com/android/launcher3/
DWorkspace.java177 @Thunk Launcher mLauncher; field in Workspace
348 mLauncher = Launcher.getLauncher(context); in Workspace()
349 mStateTransitionAnimation = new WorkspaceStateTransitionAnimation(mLauncher, this); in Workspace()
351 DeviceProfile grid = mLauncher.getDeviceProfile(); in Workspace()
393 float shrinkFactor = mLauncher.getDeviceProfile().workspaceSpringLoadShrinkFactor; in estimateItemSize()
404 DeviceProfile profile = mLauncher.getDeviceProfile(); in estimateItemSize()
450 mLauncher.onDragStarted(); in onDragStart()
451 mLauncher.lockScreenOrientation(); in onDragStart()
452 mLauncher.onInteractionBegin(); in onDragStart()
486 mLauncher.enterSpringLoadedDragMode(); in onDragStart()
[all …]
DLauncherStateTransitionAnimation.java119 @Thunk Launcher mLauncher; field in LauncherStateTransitionAnimation
124 mLauncher = l; in LauncherStateTransitionAnimation()
136 final AllAppsContainerView toView = mLauncher.getAppsView(); in startAnimationToAllApps()
137 final View buttonView = mLauncher.getStartViewForAllAppsRevealAnimation(); in startAnimationToAllApps()
141 int allAppsButtonSize = mLauncher.getDeviceProfile().allAppsButtonVisualSize; in startAnimationToAllApps()
158 mLauncher.getUserEventDispatcher().resetElapsedContainerMillis(); in startAnimationToAllApps()
177 final WidgetsContainerView toView = mLauncher.getWidgetsView(); in startAnimationToWidgets()
178 final View buttonView = mLauncher.getWidgetsButton(); in startAnimationToWidgets()
184 mLauncher.getUserEventDispatcher().resetElapsedContainerMillis(); in startAnimationToWidgets()
227 final Resources res = mLauncher.getResources(); in startAnimationToOverlay()
[all …]
DHotseat.java49 private Launcher mLauncher; field in Hotseat
70 mLauncher = Launcher.getLauncher(context); in Hotseat()
71 mHasVerticalHotseat = mLauncher.getDeviceProfile().isVerticalBarLayout(); in Hotseat()
114 DeviceProfile grid = mLauncher.getDeviceProfile(); in onFinishInflate()
131 DeviceProfile grid = mLauncher.getDeviceProfile(); in resetLayout()
148 if (mLauncher != null) { in resetLayout()
149 mLauncher.setAllAppsButton(allAppsButton); in resetLayout()
150 allAppsButton.setOnTouchListener(mLauncher.getHapticFeedbackTouchListener()); in resetLayout()
151 allAppsButton.setOnClickListener(mLauncher); in resetLayout()
152 allAppsButton.setOnLongClickListener(mLauncher); in resetLayout()
[all …]
DPinchToOverviewListener.java46 private Launcher mLauncher; field in PinchToOverviewListener
60 mLauncher = launcher; in PinchToOverviewListener()
61 mPinchDetector = new ScaleGestureDetector((Context) mLauncher, this); in PinchToOverviewListener()
83 if (mLauncher.mState != Launcher.State.WORKSPACE || mLauncher.isOnCustomContent()) { in onScaleBegin()
91 if (mLauncher.isWorkspaceLocked()) { in onScaleBegin()
96 mWorkspace = mLauncher.getWorkspace(); in onScaleBegin()
98 mAnimationManager = new PinchAnimationManager(mLauncher); in onScaleBegin()
105 if (AbstractFloatingView.getTopOpenView(mLauncher) != null) { in onScaleBegin()
180 if (mLauncher.getDragController().isDragging()) {
181 mLauncher.getDragController().cancelDrag();
DPinchAnimationManager.java65 private Launcher mLauncher; field in PinchAnimationManager
74 mLauncher = launcher; in PinchAnimationManager()
168 mLauncher.getUserEventDispatcher().logActionOnContainer( in animateThreshold()
171 mLauncher.showWorkspace(true); in animateThreshold()
174 mLauncher.getUserEventDispatcher().logActionOnContainer( in animateThreshold()
177 mLauncher.showOverviewMode(true); in animateThreshold()
204 animateShowHideView(INDEX_OVERVIEW_PANEL_BUTTONS, mLauncher.getOverviewPanel(), show); in animateOverviewPanelButtons()
210 ObjectAnimator.ofFloat(mLauncher.getDragLayer(), "backgroundAlpha", endValue), in animateScrim()
DWorkspaceStateTransitionAnimation.java188 final @Thunk Launcher mLauncher; field in WorkspaceStateTransitionAnimation
208 mLauncher = launcher; in WorkspaceStateTransitionAnimation()
211 DeviceProfile grid = mLauncher.getDeviceProfile(); in WorkspaceStateTransitionAnimation()
217 mSpringLoadedShrinkFactor = mLauncher.getDeviceProfile().workspaceSpringLoadShrinkFactor; in WorkspaceStateTransitionAnimation()
231 mLauncher.getSystemService(Context.ACCESSIBILITY_SERVICE); in getAnimationToState()
253 } else if (mLauncher.mState == Launcher.State.WORKSPACE_SPRING_LOADED in getAnimationDuration()
374 final ViewGroup overviewPanel = mLauncher.getOverviewPanel(); in animateWorkspace()
396 layerViews.addView(mLauncher.getQsbContainer()); in animateWorkspace()
397 layerViews.addView(mLauncher.getHotseat()); in animateWorkspace()
466 final DragLayer dragLayer = mLauncher.getDragLayer(); in animateBackgroundGradient()
DButtonDropTarget.java57 protected final Launcher mLauncher; field in ButtonDropTarget
84 mLauncher = Launcher.getLauncher(context); in ButtonDropTarget()
202 mLauncher.getDragController().getDistanceDragged() >= mDragDistanceThreshold); in isDropEnabled()
216 final DragLayer dragLayer = mLauncher.getDragLayer(); in onDrop()
229 mLauncher.exitSpringLoadedDragModeDelayed(true, 0, null); in onDrop()
250 mLauncher.getDragLayer().getDescendantCoordRelativeToSelf(this, coords); in getHitRectRelativeToDragLayer()
259 DragLayer dragLayer = mLauncher.getDragLayer(); in getIconRect()
294 mLauncher.getAccessibilityDelegate().handleAccessibleDrop(this, null, null); in onClick()
DLauncherAppWidgetHost.java39 private Launcher mLauncher; field in LauncherAppWidgetHost
43 mLauncher = launcher; in LauncherAppWidgetHost()
85 mLauncher.notifyWidgetProvidersChanged(); in onProvidersChanged()
112 view = onCreateView(mLauncher, appWidgetId, appWidget); in createView()
127 mLauncher, appWidget); in onProviderChanged()
131 info.initSpans(mLauncher); in onProviderChanged()
/packages/apps/Launcher3/src/com/android/launcher3/accessibility/
DLauncherAccessibilityDelegate.java71 @Thunk final Launcher mLauncher; field in LauncherAccessibilityDelegate
76 mLauncher = launcher; in LauncherAccessibilityDelegate()
153 DeleteDropTarget.removeWorkspaceOrFolderItem(mLauncher, item, host); in performAction()
156 InfoDropTarget.startDetailsActivityForInfo(item, mLauncher, null); in performAction()
159 return UninstallDropTarget.startUninstallActivity(mLauncher, item); in performAction()
165 mLauncher.showWorkspace(true, new Runnable() { in performAction()
171 mLauncher.getModelWriter().addItemToDatabase(info, in performAction()
177 mLauncher.bindItems(itemList, 0, itemList.size(), true); in performAction()
180 Workspace workspace = mLauncher.getWorkspace(); in performAction()
182 mLauncher.addPendingItem(info, LauncherSettings.Favorites.CONTAINER_DESKTOP, in performAction()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/allapps/
DAllAppsTransitionController.java65 private final Launcher mLauncher; field in AllAppsTransitionController
96 mLauncher = l; in AllAppsTransitionController()
110 if (!mLauncher.isAllAppsVisible() && mLauncher.getWorkspace().workspaceInModalState()) { in onControllerInterceptTouchEvent()
112 } else if (mLauncher.isAllAppsVisible() && in onControllerInterceptTouchEvent()
115 } else if (AbstractFloatingView.getTopOpenView(mLauncher) != null) { in onControllerInterceptTouchEvent()
124 if (mLauncher.isAllAppsVisible()) { in onControllerInterceptTouchEvent()
200 if (!mLauncher.isAllAppsVisible()) { in onDragEnd()
201 mLauncher.getUserEventDispatcher().logActionOnContainer( in onDragEnd()
206 mLauncher.showAppsView(true /* animated */, in onDragEnd()
211 mLauncher.showWorkspace(true); in onDragEnd()
[all …]
DAllAppsContainerView.java73 private final Launcher mLauncher; field in AllAppsContainerView
102 mLauncher = Launcher.getLauncher(context); in AllAppsContainerView()
104 mAdapter = new AllAppsGridAdapter(mLauncher, mApps, mLauncher, this); in AllAppsContainerView()
118 if (mLauncher.getDeviceProfile().isVerticalBarLayout()) { in updateBackground()
186 mSearchBarController.initialize(mApps, mSearchInput, mLauncher, this); in setSearchBarController()
208 if (mLauncher.getDragLayer().isEventOverView(mSearchContainer, ev)) { in shouldContainerScroll()
304 DeviceProfile grid = mLauncher.getDeviceProfile(); in onMeasure()
320 searchContainerLp.height = mLauncher.getDragLayer().getInsets().top in onMeasure()
373 if (!mLauncher.isAppsViewVisible() || in onLongClick()
374 mLauncher.getWorkspace().isSwitchingState()) return false; in onLongClick()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/dragndrop/
DPinItemDragListener.java77 private Launcher mLauncher; field in PinItemDragListener
117 mLauncher = launcher; in setLauncher()
123 if (mLauncher == null || mDragController == null) { in onDrag()
151 new PinShortcutRequestActivityInfo(mRequest, mLauncher)); in onDragStart()
156 mLauncher, mRequest.getAppWidgetProviderInfo(mLauncher)); in onDragStart()
166 View view = new View(mLauncher); in onDragStart()
193 return !mLauncher.isWorkspaceLocked(); in shouldStartDrag()
201 mLauncher.getDragLayer().setAlpha(1); in onPreDragStart()
204 mLauncher.getResources().getColor(R.color.delete_target_hover_tint)); in onPreDragStart()
232 if (isFlingToDelete || !success || (target != mLauncher.getWorkspace() && in onDropCompleted()
[all …]
DDragLayer.java82 private Launcher mLauncher; field in DragLayer
137 mLauncher = launcher; in setup()
141 boolean isAccessibilityEnabled = ((AccessibilityManager) mLauncher.getSystemService( in setup()
157 ? null : new PinchToOverviewListener(mLauncher); in onAccessibilityStateChanged()
161 return isEventOverView(mLauncher.getWorkspace().getPageIndicator(), ev); in isEventOverPageIndicator()
165 return isEventOverView(mLauncher.getHotseat(), ev); in isEventOverHotseat()
173 return isEventOverView(mLauncher.getDropTargetBar(), ev); in isEventOverDropTargetBar()
182 AbstractFloatingView topView = AbstractFloatingView.getTopOpenView(mLauncher); in handleTouchDown()
197 mLauncher.getUserEventDispatcher().logActionTapOutside( in handleTouchDown()
249 WidgetsBottomSheet widgetsBottomSheet = WidgetsBottomSheet.getOpen(mLauncher); in onInterceptTouchEvent()
[all …]
DDragController.java51 @Thunk Launcher mLauncher; field in DragController
117 mLauncher = launcher; in DragController()
141 mLauncher.getSystemService(InputMethodManager.class) in startDrag()
163 final Resources res = mLauncher.getResources(); in startDrag()
166 final DragView dragView = mDragObject.dragView = new DragView(mLauncher, b, registrationX, in startDrag()
180 mDragDriver = DragDriver.create(mLauncher, this, mDragObject, mOptions); in startDrag()
195 mLauncher.getDragLayer().performHapticFeedback(HapticFeedbackConstants.LONG_PRESS); in startDrag()
208 mLauncher.getUserEventDispatcher().resetActionDurationMillis(); in startDrag()
337 mLauncher.getDragLayer().getLocalVisibleRect(mDragLayerRect); in getClampedDragLayerPos()
586 mLauncher.getUserEventDispatcher().logDragNDrop(mDragObject, dropTargetAsView); in drop()
[all …]
/packages/apps/Launcher2/src/com/android/launcher2/
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 …]
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 …]
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 …]
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 …]
/packages/apps/Launcher3/src/com/android/launcher3/widget/
DWidgetHostViewLoader.java31 @Thunk Launcher mLauncher; field in WidgetHostViewLoader
42 mLauncher = launcher; in WidgetHostViewLoader()
60 mLauncher.getDragController().removeDragListener(this); in onDragEnd()
67 mLauncher.getAppWidgetHost().deleteAppWidgetId(mWidgetLoadingId); in onDragEnd()
76 mLauncher.getDragLayer().removeView(mInfo.boundWidget); in onDragEnd()
77 mLauncher.getAppWidgetHost().deleteAppWidgetId(mInfo.boundWidget.getAppWidgetId()); in onDragEnd()
91 final Bundle options = getDefaultOptionsForWidget(mLauncher, mInfo); in preloadWidget()
102 mWidgetLoadingId = mLauncher.getAppWidgetHost().allocateAppWidgetId(); in preloadWidget()
106 if(AppWidgetManagerCompat.getInstance(mLauncher).bindAppWidgetIdIfAllowed( in preloadWidget()
124 AppWidgetHostView hostView = mLauncher.getAppWidgetHost().createView( in preloadWidget()
[all …]
DWidgetsContainerView.java57 @Thunk Launcher mLauncher; field in WidgetsContainerView
76 mLauncher = Launcher.getLauncher(context); in WidgetsContainerView()
111 if (!mLauncher.isWidgetsViewVisible() in onClick()
112 || mLauncher.getWorkspace().isSwitchingState() in onClick()
134 if (!mLauncher.isWidgetsViewVisible()) return false; in onLongClick()
145 if (mLauncher.getWorkspace().isSwitchingState()) return false; in handleLongClick()
147 if (!mLauncher.isDraggingEnabled()) return false; in handleLongClick()
162 if (mLauncher.getDragController().isDragging()) { in beginDragging()
164 mLauncher.enterSpringLoadedDragMode(); in beginDragging()
181 mLauncher.getDragLayer().getLocationInDragLayer(image, loc); in beginDraggingWidget()
[all …]
DWidgetsBottomSheet.java66 private Launcher mLauncher; field in WidgetsBottomSheet
82 mLauncher = Launcher.getLauncher(context); in WidgetsBottomSheet()
106 mWasNavBarLight = (mLauncher.getWindow().getDecorView().getSystemUiVisibility() in populateAndShow()
108 mLauncher.getDragLayer().addView(this); in populateAndShow()
117 List<WidgetItem> widgets = mLauncher.getWidgetsForPackageUser(new PackageUserKey( in onWidgetsBound()
127 widget.applyFromCellItem(widgets.get(i), LauncherAppState.getInstance(mLauncher) in onWidgetsBound()
169 mLauncher.getWidgetsView().handleClick(); in onClick()
174 mLauncher.getDragController().addDragListener(this); in onLongClick()
175 return mLauncher.getWidgetsView().handleLongClick(view); in onLongClick()
228 mLauncher.activateLightSystemBars(lightNavBar, false /* statusBar */, true /* navBar */); in setLightNavBar()
/packages/apps/Launcher3/src/com/android/launcher3/folder/
DFolder.java140 protected final Launcher mLauncher; field in Folder
210 mLauncher = Launcher.getLauncher(context); in Folder()
268 mLauncher.onClick(v); in onClick()
274 if (!mLauncher.isDraggingEnabled()) return true; in onLongClick()
304 mLauncher.getWorkspace().beginDragShared(v, this, options); in startDrag()
359 mLauncher.getModelWriter().updateItemInDatabase(mInfo); in onBackKey()
440 mLauncher.getModelWriter().deleteItemFromDatabase(item); in bind()
510 Folder openFolder = getOpen(mLauncher); in animateOpen()
516 DragLayer dragLayer = mLauncher.getDragLayer(); in animateOpen()
597 mLauncher.getUserEventDispatcher().resetElapsedContainerMillis(); in animateOpen()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/shortcuts/
DShortcutsItemView.java56 private Launcher mLauncher; field in ShortcutsItemView
75 mLauncher = Launcher.getLauncher(context); in ShortcutsItemView()
101 if (!mLauncher.isDraggingEnabled()) return false; in onLongClick()
103 if (mLauncher.getDragController().isDragging()) return false; in onLongClick()
111 mIconShift.y = mIconLastTouchPos.y - mLauncher.getDeviceProfile().iconSizePx; in onLongClick()
113 DragView dv = mLauncher.getWorkspace().beginDragShared(sv.getIconView(), in onLongClick()
119 AbstractFloatingView.closeOpenContainer(mLauncher, AbstractFloatingView.TYPE_FOLDER); in onLongClick()
136 mSystemShortcutIcons = (LinearLayout) mLauncher.getLayoutInflater().inflate( in addShortcutView()
174 View.OnClickListener onClickListener = widgetInfo.getOnClickListener(mLauncher, itemInfo); in enableWidgetsIfExist()
187 widgetsView = mLauncher.getLayoutInflater().inflate(widgetsItem.layoutId, this, false); in enableWidgetsIfExist()

123