• Home
  • Raw
  • Download

Lines Matching refs:d

114     private boolean isDragSourceWorkspaceOrFolder(DragObject d) {  in isDragSourceWorkspaceOrFolder()  argument
115 return (d.dragSource instanceof Workspace) || (d.dragSource instanceof Folder); in isDragSourceWorkspaceOrFolder()
117 private boolean isWorkspaceOrFolderApplication(DragObject d) { in isWorkspaceOrFolderApplication() argument
118 return isDragSourceWorkspaceOrFolder(d) && (d.dragInfo instanceof ShortcutInfo); in isWorkspaceOrFolderApplication()
120 private boolean isWorkspaceOrFolderWidget(DragObject d) { in isWorkspaceOrFolderWidget() argument
121 return isDragSourceWorkspaceOrFolder(d) && (d.dragInfo instanceof LauncherAppWidgetInfo); in isWorkspaceOrFolderWidget()
123 private boolean isWorkspaceFolder(DragObject d) { in isWorkspaceFolder() argument
124 return (d.dragSource instanceof Workspace) && (d.dragInfo instanceof FolderInfo); in isWorkspaceFolder()
137 public boolean acceptDrop(DragObject d) { in acceptDrop() argument
138 return willAcceptDrop(d.dragInfo); in acceptDrop()
212 public void onDragEnter(DragObject d) { in onDragEnter() argument
213 super.onDragEnter(d); in onDragEnter()
218 public void onDragExit(DragObject d) { in onDragExit() argument
219 super.onDragExit(d); in onDragExit()
221 if (!d.dragComplete) { in onDragExit()
225 d.dragView.setColor(mHoverColor); in onDragExit()
229 private void animateToTrashAndCompleteDrop(final DragObject d) { in animateToTrashAndCompleteDrop() argument
232 dragLayer.getViewRectRelativeToSelf(d.dragView, from); in animateToTrashAndCompleteDrop()
233 final Rect to = getIconRect(d.dragView.getMeasuredWidth(), d.dragView.getMeasuredHeight(), in animateToTrashAndCompleteDrop()
238 deferCompleteDropIfUninstalling(d); in animateToTrashAndCompleteDrop()
243 completeDrop(d); in animateToTrashAndCompleteDrop()
248 dragLayer.animateView(d.dragView, from, to, scale, 1f, 1f, 0.1f, 0.1f, in animateToTrashAndCompleteDrop()
254 private void deferCompleteDropIfUninstalling(DragObject d) { in deferCompleteDropIfUninstalling() argument
256 if (isUninstallFromWorkspace(d)) { in deferCompleteDropIfUninstalling()
257 if (d.dragSource instanceof Folder) { in deferCompleteDropIfUninstalling()
258 ((Folder) d.dragSource).deferCompleteDropAfterUninstallActivity(); in deferCompleteDropIfUninstalling()
259 } else if (d.dragSource instanceof Workspace) { in deferCompleteDropIfUninstalling()
260 ((Workspace) d.dragSource).deferCompleteDropAfterUninstallActivity(); in deferCompleteDropIfUninstalling()
266 private boolean isUninstallFromWorkspace(DragObject d) { in isUninstallFromWorkspace() argument
267 if (LauncherAppState.isDisableAllApps() && isWorkspaceOrFolderApplication(d)) { in isUninstallFromWorkspace()
268 ShortcutInfo shortcut = (ShortcutInfo) d.dragInfo; in isUninstallFromWorkspace()
275 private void completeDrop(DragObject d) { in completeDrop() argument
276 ItemInfo item = (ItemInfo) d.dragInfo; in completeDrop()
279 if (isAllAppsApplication(d.dragSource, item)) { in completeDrop()
283 } else if (isUninstallFromWorkspace(d)) { in completeDrop()
287 final DragSource dragSource = d.dragSource; in completeDrop()
313 } else if (isWorkspaceOrFolderApplication(d)) { in completeDrop()
315 } else if (isWorkspaceFolder(d)) { in completeDrop()
320 } else if (isWorkspaceOrFolderWidget(d)) { in completeDrop()
339 if (d.dragSource instanceof Folder) { in completeDrop()
340 ((Folder) d.dragSource).onUninstallActivityReturned(false); in completeDrop()
341 } else if (d.dragSource instanceof Workspace) { in completeDrop()
342 ((Workspace) d.dragSource).onUninstallActivityReturned(false); in completeDrop()
347 public void onDrop(DragObject d) { in onDrop() argument
348 animateToTrashAndCompleteDrop(d); in onDrop()
355 DragObject d, PointF vel, ViewConfiguration config) { in createFlingToTrashAnimatorListener() argument
356 final Rect to = getIconRect(d.dragView.getMeasuredWidth(), d.dragView.getMeasuredHeight(), in createFlingToTrashAnimatorListener()
359 dragLayer.getViewRectRelativeToSelf(d.dragView, from); in createFlingToTrashAnimatorListener()
458 DragObject d, PointF vel, final long startTime, final int duration,
461 dragLayer.getViewRectRelativeToSelf(d.dragView, from);
467 public void onFlingToDelete(final DragObject d, int x, int y, PointF vel) {
468 final boolean isAllApps = d.dragSource instanceof AppsCustomizePagedView;
471 d.dragView.setColor(0);
472 d.dragView.updateInitialScaleToCurrentScale();
512 updateCb = createFlingToTrashAnimatorListener(dragLayer, d, vel, config);
514 updateCb = createFlingAlongVectorAnimatorListener(dragLayer, d, vel, startTime,
517 deferCompleteDropIfUninstalling(d);
526 completeDrop(d);
528 mLauncher.getDragController().onDeferredEndFling(d);
531 dragLayer.animateView(d.dragView, updateCb, duration, tInterpolator, onAnimationEndRunnable,