/packages/apps/Launcher3/src/com/android/launcher3/ |
D | Workspace.java | 181 private Launcher mLauncher; field in Workspace 304 mLauncher.getModel().bindRemainingSynchronousPages(); 335 mLauncher = (Launcher) context; in Workspace() 409 mLauncher.lockScreenOrientation(); in onDragStart() 410 mLauncher.onInteractionBegin(); in onDragStart() 438 mLauncher.unlockScreenOrientation(false); in onDragEnd() 445 mLauncher.onInteractionEnd(); in onDragEnd() 466 Display display = mLauncher.getWindowManager().getDefaultDisplay(); in initWorkspace() 522 DragLayer dragLayer = mLauncher.getDragLayer(); in getOpenFolder() 584 mLauncher.getLayoutInflater().inflate(R.layout.workspace_screen, null); in insertNewWorkspaceScreen() [all …]
|
D | LauncherClings.java | 52 private Launcher mLauncher; field in LauncherClings 57 mLauncher = launcher; in LauncherClings() 58 mInflater = LayoutInflater.from(mLauncher); in LauncherClings() 69 LauncherModel model = mLauncher.getModel(); in onClick() 76 SharedPreferences sp = mLauncher.getSharedPreferences(spKey, Context.MODE_PRIVATE); 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 …]
|
D | AppsCustomizePagedView.java | 161 private Launcher mLauncher; field in AppsCustomizePagedView 270 mWidgetPreviewLoader = new WidgetPreviewLoader(mLauncher); in getWidgetPreviewLoader() 393 int[] spanXY = Launcher.getSpanForWidget(mLauncher, widget); in onPackagesUpdated() 394 int[] minSpanXY = Launcher.getMinSpanForWidget(mLauncher, widget); in onPackagesUpdated() 440 if (!mLauncher.isAllAppsVisible() in onClick() 441 || mLauncher.getWorkspace().isSwitchingState() in onClick() 478 mLauncher.getWorkspace().beginDragShared(v, this); in beginDraggingApplication() 507 final Bundle options = getDefaultOptionsForWidget(mLauncher, info); in preloadWidget() 518 mWidgetLoadingId = mLauncher.getAppWidgetHost().allocateAppWidgetId(); in preloadWidget() 519 if(AppWidgetManagerCompat.getInstance(mLauncher).bindAppWidgetIdIfAllowed( in preloadWidget() [all …]
|
D | Folder.java | 66 protected Launcher mLauncher; field in Folder 172 mLauncher = (Launcher) context; in Folder() 236 mLauncher.onClick(v); in onClick() 242 if (!mLauncher.isDraggingEnabled()) return true; in onLongClick() 251 mLauncher.getWorkspace().beginDragShared(v, this); in onLongClick() 286 LauncherModel.updateItemInDatabase(mLauncher, mInfo); in doneEditingFolderName() 405 LauncherModel.deleteItemFromDatabase(mLauncher, item); in bind() 807 mLauncher.closeFolder(); in completeDragExit() 922 LauncherModel.moveItemInDatabase(mLauncher, info, mInfo.id, 0, in updateItemLocationsInDatabase() 936 LauncherModel.moveItemsInDatabase(mLauncher, items, mInfo.id, 0); in updateItemLocationsInDatabaseBatch() [all …]
|
D | DeleteDropTarget.java | 245 final DragLayer dragLayer = mLauncher.getDragLayer(); in animateToTrashAndCompleteDrop() 263 mLauncher.exitSpringLoadedDragModeDelayed(true, 0, null); in animateToTrashAndCompleteDrop() 300 mLauncher.startApplicationUninstallActivity(appInfo.componentName, appInfo.flags, in completeDrop() 308 mWaitingForUninstall = mLauncher.startApplicationUninstallActivity( in completeDrop() 327 mLauncher.addOnResumeCallback(checkIfUninstallWasSuccess); in completeDrop() 331 LauncherModel.deleteItemFromDatabase(mLauncher, item); in completeDrop() 335 mLauncher.removeFolder(folderInfo); in completeDrop() 336 LauncherModel.deleteFolderContentsFromDatabase(mLauncher, folderInfo); in completeDrop() 339 mLauncher.removeAppWidget((LauncherAppWidgetInfo) item); in completeDrop() 340 LauncherModel.deleteItemFromDatabase(mLauncher, item); in completeDrop() [all …]
|
D | DragController.java | 66 private Launcher mLauncher; field in DragController 147 mLauncher = launcher; in DragController() 176 mLauncher.getDragLayer().getLocationInDragLayer(v, loc); in startDrag() 216 mLauncher.getSystemService(Context.INPUT_METHOD_SERVICE); in startDrag() 240 final DragView dragView = mDragObject.dragView = new DragView(mLauncher, b, registrationX, in startDrag() 250 mLauncher.getDragLayer().performHapticFeedback(HapticFeedbackConstants.LONG_PRESS); in startDrag() 395 mLauncher.getDragLayer().getLocalVisibleRect(mDragLayerRect); in getClampedDragLayerPos() 481 mLauncher.getDragLayer().onExitScrollArea(); in clearScrollRunnable() 529 final int slop = ViewConfiguration.get(mLauncher).getScaledWindowTouchSlop(); in checkScrollState() 531 final DragLayer dragLayer = mLauncher.getDragLayer(); in checkScrollState() [all …]
|
D | Hotseat.java | 40 private Launcher mLauncher; field in Hotseat 66 mLauncher = launcher; in setup() 109 Utilities.getDescendantCoordRelativeToParent(this, mLauncher.getDragLayer(), in getCellCoordinates() 158 if (mLauncher != null) { in resetLayout() 159 allAppsButton.setOnTouchListener(mLauncher.getHapticFeedbackTouchListener()); in resetLayout() 160 mLauncher.setAllAppsButton(allAppsButton); in resetLayout() 161 allAppsButton.setOnClickListener(mLauncher); in resetLayout() 162 allAppsButton.setOnFocusChangeListener(mLauncher.mFocusHandler); in resetLayout() 179 if (mLauncher.getWorkspace().workspaceInModalState()) { in onInterceptTouchEvent()
|
D | Stats.java | 51 private final Launcher mLauncher; field in Stats 61 mLauncher = launcher; in Stats() 70 mLog = new DataOutputStream(mLauncher.openFileOutput( in Stats() 126 mLauncher.sendBroadcast(broadcastIntent, mLaunchBroadcastPermission); in recordLaunch() 162 stats = new DataOutputStream(mLauncher.openFileOutput( in saveStats() 173 mLauncher.getFileStreamPath(LauncherFiles.STATS_LOG + ".tmp") in saveStats() 174 .renameTo(mLauncher.getFileStreamPath(LauncherFiles.STATS_LOG)); in saveStats() 193 stats = new DataInputStream(mLauncher.openFileInput(LauncherFiles.STATS_LOG)); in loadStats()
|
D | DragLayer.java | 53 private Launcher mLauncher; field in DragLayer 116 mLauncher = launcher; in setup() 181 Folder currentFolder = mLauncher.getWorkspace().getOpenFolder(); in handleTouchDown() 192 mLauncher.closeFolder(); in handleTouchDown() 219 if (mLauncher == null || mLauncher.getWorkspace() == null) { in onInterceptHoverEvent() 222 Folder currentFolder = mLauncher.getWorkspace().getOpenFolder(); in onInterceptHoverEvent() 272 Folder currentFolder = mLauncher.getWorkspace().getOpenFolder(); in onRequestSendAccessibilityEvent() 286 Folder currentFolder = mLauncher.getWorkspace().getOpenFolder(); in addChildrenForAccessibility() 913 Workspace workspace = mLauncher.getWorkspace(); in drawPageHints()
|
D | PagedViewWithDraggableItems.java | 40 private Launcher mLauncher; field in PagedViewWithDraggableItems 52 mLauncher = (Launcher) context; in PagedViewWithDraggableItems() 112 if (!mLauncher.isAllAppsVisible() || in onLongClick() 113 mLauncher.getWorkspace().isSwitchingState()) return false; in onLongClick() 115 if (!mLauncher.isDraggingEnabled()) return false; in onLongClick()
|
D | ButtonDropTarget.java | 36 protected Launcher mLauncher; field in ButtonDropTarget 60 mLauncher = launcher; in setLauncher() 118 mLauncher.getDragLayer().getDescendantCoordRelativeToSelf(this, coords); in getHitRectRelativeToDragLayer() 127 DragLayer dragLayer = mLauncher.getDragLayer(); in getIconRect() 161 mLauncher.getDragLayer().getLocationInDragLayer(this, loc); in getLocationInDragLayer()
|
D | SpringLoadedDragController.java | 29 private Launcher mLauncher; field in SpringLoadedDragController 32 mLauncher = launcher; in SpringLoadedDragController() 53 Workspace w = mLauncher.getWorkspace(); in onAlarm() 59 mLauncher.getDragController().cancelDrag(); in onAlarm()
|
D | LauncherAppWidgetHost.java | 36 Launcher mLauncher; field in LauncherAppWidgetHost 40 mLauncher = launcher; in LauncherAppWidgetHost() 82 mLauncher.bindPackagesUpdated(LauncherModel.getSortedWidgetsAndShortcuts(mLauncher)); in onProvidersChanged()
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
D | Workspace.java | 137 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 …]
|
D | AppsCustomizePagedView.java | 166 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 …]
|
D | Folder.java | 63 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 …]
|
D | DeleteDropTarget.java | 205 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 …]
|
D | DragLayer.java | 55 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 …]
|
D | DragController.java | 67 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 …]
|
D | Hotseat.java | 35 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()
|
D | HandleView.java | 32 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()
|
D | PagedViewWithDraggableItems.java | 40 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()
|
D | LauncherAppWidgetHost.java | 31 Launcher mLauncher; field in LauncherAppWidgetHost 35 mLauncher = launcher; in LauncherAppWidgetHost() 53 mLauncher.bindPackagesUpdated(LauncherModel.getSortedWidgetsAndShortcuts(mLauncher)); in onProvidersChanged()
|
D | SpringLoadedDragController.java | 29 private Launcher mLauncher; field in SpringLoadedDragController 32 mLauncher = launcher; in SpringLoadedDragController() 53 Workspace w = mLauncher.getWorkspace(); in onAlarm() 59 mLauncher.getDragController().cancelDrag(); in onAlarm()
|
D | ButtonDropTarget.java | 38 protected Launcher mLauncher; field in ButtonDropTarget 62 mLauncher = launcher; in setLauncher() 125 DragLayer dragLayer = mLauncher.getDragLayer(); in getIconRect() 164 mLauncher.getDragLayer().getLocationInDragLayer(this, loc); in getLocationInDragLayer()
|