/packages/apps/Launcher3/quickstep/src/com/android/quickstep/views/ |
D | RecentsView.java | 646 TaskView taskView = getTaskViewByTaskId(taskId); 647 if (taskView != null) { 648 removeView(taskView); 1138 TaskView taskView = getTaskViewByTaskId(taskId); in onTaskThumbnailChanged() local 1139 if (taskView != null) { in onTaskThumbnailChanged() 1140 for (TaskContainer container : taskView.getTaskContainers()) { in onTaskThumbnailChanged() 1155 for (TaskView taskView : getTaskViews()) { in onTaskIconChanged() 1156 Task firstTask = taskView.getFirstTask(); in onTaskIconChanged() 1160 if (taskView.getTaskContainers().stream().anyMatch( in onTaskIconChanged() 1162 taskView.onTaskListVisibilityChanged(true /* visible */); in onTaskIconChanged() [all …]
|
D | RecentsDismissUtils.kt | 130 .filter { (taskView, _) -> !tasksToExclude.contains(taskView) } in <lambda>() method 131 .forEach { (taskView, offset) -> in <lambda>() method 134 taskView, in <lambda>() 144 .filter { (taskView, _) -> !tasksToExclude.contains(taskView) } in <lambda>() method 145 .forEach { (taskView, offset) -> in <lambda>() method 148 taskView, in <lambda>() 230 recentsView.getTaskViewFromTaskViewId(taskViewId)?.let { taskView -> in <lambda>() method 231 Pair(taskView, columnOffset) in <lambda>() 242 .mapIndexed { index, taskView -> Pair(taskView, index + 1) } in <lambda>() method 247 .mapIndexed { index, taskView -> Pair(taskView, index + 1) } in <lambda>() method [all …]
|
D | DigitalWellBeingToast.kt | 73 private lateinit var taskView: TaskView variable 149 taskView.post { in initialize() 163 taskView: TaskView, in bind() 168 this.taskView = taskView in bind() 185 taskView.isLargeTile -> SplitBannerConfig.SPLIT_BANNER_FULLSCREEN in getSplitBannerConfig() 303 snapshotWidth = taskView.layoutParams.width in getContentDescriptionForTask() 305 taskView.layoutParams.height - in getContentDescriptionForTask() 309 taskView.pagedOrientationHandler.getGroupedTaskViewSizes( in getContentDescriptionForTask() 312 taskView.layoutParams.width, in getContentDescriptionForTask() 313 taskView.layoutParams.height, in getContentDescriptionForTask() [all …]
|
D | TaskMenuView.kt | 66 private lateinit var taskView: TaskView in <lambda>() variable 138 taskView = taskContainer.taskView in <lambda>() 159 TaskOverlayFactory.getEnabledShortcuts(taskView, taskContainer) in <lambda>() 186 taskView.pagedOrientationHandler.setLayoutParamsForTaskMenuOptionItem( in <lambda>() 220 scaleX = taskView.scaleX in <lambda>() 221 scaleY = taskView.scaleY in <lambda>() 376 taskView.pagedOrientationHandler.getTaskMenuHeight( in <lambda>() 383 if (enableOverviewIconMenu() && taskView.isOnGridBottomRow()) minMenuTop in <lambda>() 396 if (taskView.isOnGridBottomRow()) { in <lambda>() 498 RecentsViewContainer.containerFromContext(taskContainer.taskView.context) in <lambda>()
|
D | TaskContainer.kt | 41 val taskView: TaskView, constant in com.android.quickstep.views.TaskContainer 96 if (enableRefactorTaskThumbnail()) taskView.shouldShowSplash() 101 get() = TaskViewItemInfo(taskView, this) 105 digitalWellBeingToast?.bind(task, taskView, snapshotView, stagePosition) in bind() 107 thumbnailViewDeprecated.bind(task, overlay, taskView) in bind()
|
D | TaskMenuViewWithArrow.kt | 51 RecentsViewContainer.containerFromContext(taskContainer.taskView.context) in <lambda>() 95 private lateinit var taskView: TaskView in <lambda>() variable in com.android.quickstep.views.TaskMenuViewWithArrow 102 if (taskView.isLargeTile) in <lambda>() 143 return taskView.pagedOrientationHandler.getTaskMenuHeight( in <lambda>() 160 taskView = taskContainer.taskView in <lambda>() 195 TaskOverlayFactory.getEnabledShortcuts(taskView, taskContainer).forEach { in <lambda>()
|
D | RecentsViewUtils.kt | 57 fun screenshotTasks(taskView: TaskView): Map<Int, ThumbnailData> { in <lambda>() 59 return taskView.taskContainers.associate { in <lambda>() 263 taskViews.forEach { taskView -> in <lambda>() method 264 taskView.attachAlpha = in <lambda>() 265 if (taskView == recentsView.runningTaskView) { in <lambda>() 269 taskView.isVisibleInCarousel( in <lambda>() 402 fun isInExpectedScrollPosition(taskView: TaskView?) = in <lambda>() 403 taskView?.let { recentsView.isTaskInExpectedScrollPosition(it) } ?: false in <lambda>()
|
D | RecentsViewModelHelper.kt | 40 taskView: TaskView, in switchToScreenshot() 51 ViewUtils.postFrameDrawn(taskView, onFinishRunnable) in switchToScreenshot()
|
/packages/apps/Launcher3/quickstep/tests/multivalentTests/src/com/android/launcher3/model/data/ |
D | TaskViewItemInfoTest.kt | 62 private val taskView = mock<TaskView>() constant 71 whenever(taskView.context).thenReturn(context) in setUp() 72 whenever(taskView.recentsView).thenReturn(recentsView) in setUp() 73 whenever(recentsView.indexOfChild(taskView)).thenReturn(TASK_VIEW_INDEX) in setUp() 90 whenever(taskView.type).thenReturn(TaskViewType.SINGLE) in singleTask() 91 whenever(taskView.taskContainers).thenReturn(taskContainers) in singleTask() 93 val taskViewItemInfo = TaskViewItemInfo(taskContainers[0].taskView, taskContainers[0]) in singleTask() 111 whenever(taskView.type).thenReturn(TaskViewType.GROUPED) in splitTask() 112 whenever(taskView.taskContainers).thenReturn(taskContainers) in splitTask() 114 val taskViewItemInfo = TaskViewItemInfo(taskContainers[0].taskView, taskContainers[0]) in splitTask() [all …]
|
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/ |
D | TaskShortcutFactory.java | 113 TaskView taskView = taskContainer.getTaskView(); 119 new AppInfo.SplitAccessibilityInfo(taskView.containsMultipleTasks(), 120 TaskUtils.getTitle(taskView.getContext(), taskContainer.getTask()), 124 taskView, accessibilityInfo)); 138 TaskContainer taskContainer, TaskView taskView, in SplitSelectSystemShortcut() argument 141 taskView); in SplitSelectSystemShortcut() 166 public SaveAppPairSystemShortcut(RecentsViewContainer container, GroupedTaskView taskView, in SaveAppPairSystemShortcut() argument 168 super(iconResId, R.string.save_app_pair, container, taskView.getItemInfo(), taskView); in SaveAppPairSystemShortcut() 169 mTaskView = taskView; in SaveAppPairSystemShortcut() 312 TaskView taskView = mTaskContainer.getTaskView(); in onClick() local [all …]
|
D | TaskViewUtils.java | 123 TaskView taskView = (TaskView) v; in findTaskViewToLaunch() local 124 return recentsView.isTaskViewVisible(taskView) ? taskView : null; in findTaskViewToLaunch() 134 for (TaskView taskView : recentsView.getTaskViews()) { in findTaskViewToLaunch() 135 Task firstTask = taskView.getFirstTask(); in findTaskViewToLaunch() 136 if (firstTask != null && recentsView.isTaskViewVisible(taskView)) { in findTaskViewToLaunch() 139 return taskView; in findTaskViewToLaunch() 165 TaskView taskView = recentsView.getTaskViewByTaskId(openingTaskId); in findTaskViewToLaunch() local 166 if (taskView == null || !recentsView.isTaskViewVisible(taskView)) { in findTaskViewToLaunch() 169 return taskView; in findTaskViewToLaunch() 175 @NonNull TaskView taskView, in createRecentsWindowAnimator() argument [all …]
|
D | TaskOverlayFactory.java | 65 public static List<SystemShortcut> getEnabledShortcuts(TaskView taskView, in getEnabledShortcuts() argument 69 RecentsViewContainer.containerFromContext(taskView.getContext()); in getEnabledShortcuts() 71 if (taskView instanceof GroupedTaskView && !menuOption.showForGroupedTask()) { in getEnabledShortcuts() 74 if (taskView instanceof DesktopTaskView && !menuOption.showForDesktopTask()) { in getEnabledShortcuts() 254 GroupedTaskView taskView = (GroupedTaskView) mTaskContainer.getTaskView(); in saveAppPair() local 255 taskView.getRecentsView().getSplitSelectController().getAppPairsController() in saveAppPair() 256 .saveAppPair(taskView); in saveAppPair()
|
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/model/data/ |
D | TaskViewItemInfo.kt | 32 class TaskViewItemInfo(taskView: TaskView, taskContainer: TaskContainer?) : WorkspaceItemInfo() { 46 UserCache.getInstance(taskView.context).getUserInfo(componentKey.user).isPrivate 60 type = taskView.type.ordinal, 61 index = taskView.recentsView?.indexOfChild(taskView) ?: -1, 63 cardinality = taskView.taskContainers.size,
|
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/uioverrides/touchcontrollers/ |
D | PortraitOverviewStateTouchHelper.java | 67 TaskView taskView = mRecentsView.getNextPageTaskView(); in shouldSwipeDownReturnToApp() local 68 return taskView != null && mRecentsView.shouldSwipeDownLaunchApp(); in shouldSwipeDownReturnToApp() 80 TaskView taskView = mRecentsView.getCurrentPageTaskView(); in createSwipeDownToTaskAppAnimation() local 81 if (taskView == null) { in createSwipeDownToTaskAppAnimation() 84 return mRecentsView.createTaskLaunchAnimation(taskView, duration, interpolator); in createSwipeDownToTaskAppAnimation()
|
D | TaskViewLaunchTouchController.kt | 64 private fun canTaskLaunchTaskView(taskView: TaskView?) = in <lambda>() 65 taskView != null && in <lambda>() 66 taskView === recentsView.currentPageTaskView && in <lambda>() 68 (!recentsView.showAsGrid() || taskView.isLargeTile) && in <lambda>() 69 recentsView.isTaskInExpectedScrollPosition(taskView) in <lambda>()
|
D | TaskViewTouchControllerDeprecated.java | 163 for (TaskView taskView : mRecentsView.getTaskViews()) { in onControllerInterceptTouchEvent() 164 if (mRecentsView.isTaskViewVisible(taskView) && mContainer.getDragLayer() in onControllerInterceptTouchEvent() 165 .isEventOverView(taskView, ev)) { in onControllerInterceptTouchEvent() 171 mTaskBeingDragged = taskView; in onControllerInterceptTouchEvent() 183 mAllowGoingDown = taskView == mRecentsView.getCurrentPageTaskView() in onControllerInterceptTouchEvent() 186 && mRecentsView.isTaskInExpectedScrollPosition(taskView); in onControllerInterceptTouchEvent()
|
/packages/apps/Launcher3/quickstep/tests/src/com/android/quickstep/ |
D | DesktopSystemShortcutTest.kt | 87 private val taskView: TaskView = createTaskViewMock() constant in com.android.quickstep.DesktopSystemShortcutTest 268 whenever(taskView.context).thenReturn(context) in desktopSystemShortcutClicked() 282 desktopShortcut.onClick(taskView) in desktopSystemShortcutClicked() 317 taskView, in createTaskContainer() 346 val taskView: TaskView = mock() in createTaskViewMock() constant 347 whenever(taskView.type).thenReturn(TaskViewType.SINGLE) in createTaskViewMock() 348 whenever(taskView.context).thenReturn(context) in createTaskViewMock() 349 return taskView in createTaskViewMock()
|
D | AspectRatioSystemShortcutTests.kt | 126 private val taskView: TaskView = constant 139 taskView.setLayoutParams(ViewGroup.LayoutParams(MATCH_PARENT, MATCH_PARENT)) in setUp() 175 taskView.bind(task, orientedState, taskOverlayFactory) in createShortcut_flaggedOff_notCreated() 191 taskView.bind(task, orientedState, taskOverlayFactory) in createShortcut_sw599dp_notCreated() 209 taskView.bind(task, orientedState, taskOverlayFactory) in createShortcut_sw800dp_created_andOpensSettings() 216 shortcut.onClick(taskView) in createShortcut_sw800dp_created_andOpensSettings() 274 taskView,
|
/packages/apps/Car/Launcher/app/src/com/android/car/carlauncher/ |
D | CarLauncher.java | 211 mCarLauncherViewModel.getRemoteCarTaskView().observe(this, taskView -> { in setUpRemoteCarTaskViewObserver() 212 if (taskView == null || taskView.getParent() == parent) { in setUpRemoteCarTaskViewObserver() 217 if (taskView.getParent() != null) { in setUpRemoteCarTaskViewObserver() 219 ((ViewGroup) taskView.getParent()).removeView(taskView); in setUpRemoteCarTaskViewObserver() 222 parent.addView(taskView); in setUpRemoteCarTaskViewObserver()
|
/packages/services/Car/car_product/car_ui_portrait/apps/CarUiPortraitLauncher/src/com/android/car/portraitlauncher/homeactivities/ |
D | RemoteCarTaskViewControllerWrapperImpl.java | 187 public void onTaskViewCreated(@NonNull RemoteCarRootTaskView taskView) { in createCarRootTaskView() 188 RemoteCarRootTaskViewCallback.super.onTaskViewCreated(taskView); in createCarRootTaskView() 189 taskViewCallback.onTaskViewCreated(taskView); in createCarRootTaskView() 216 public void onTaskViewCreated(@NonNull RemoteCarDefaultRootTaskView taskView) { in createCarDefaultRootTaskView() 217 RemoteCarDefaultRootTaskViewCallback.super.onTaskViewCreated(taskView); in createCarDefaultRootTaskView() 218 taskViewCallback.onTaskViewCreated(taskView); in createCarDefaultRootTaskView()
|
D | CarUiPortraitHomeScreen.java | 943 public void onTaskViewCreated(@NonNull SurfaceView taskView) { in setUpBackgroundTaskView() 945 taskView.setZOrderOnTop(false); in setUpBackgroundTaskView() 946 mBackgroundAppArea.addView(taskView); in setUpBackgroundTaskView() 947 mTaskViewControllerWrapper.setTaskView(taskView, BACKGROUND); in setUpBackgroundTaskView() 1185 public void onTaskViewCreated(@NonNull SurfaceView taskView) { in setUpRootTaskView() 1187 taskView.setZOrderMediaOverlay(true); in setUpRootTaskView() 1188 mRootTaskViewPanel.setTaskView(taskView); in setUpRootTaskView() 1190 mTaskViewControllerWrapper.setTaskView(taskView, APPLICATION); in setUpRootTaskView() 1221 public void onTaskViewCreated(@NonNull SurfaceView taskView) { in setUpFullScreenTaskView() 1223 taskView.setZOrderOnTop(true); in setUpFullScreenTaskView() [all …]
|
/packages/services/Car/car-lib/src/android/car/app/ |
D | CarTaskViewController.java | 196 void onRemoteCarTaskViewReleased(@NonNull RemoteCarTaskView taskView) { in onRemoteCarTaskViewReleased() argument 202 if (!mRemoteCarTaskViews.contains(taskView)) { in onRemoteCarTaskViewReleased() 206 mRemoteCarTaskViews.remove(taskView); in onRemoteCarTaskViewReleased() 239 RemoteCarTaskView taskView = iterator.next(); in releaseTaskViews() local 243 taskView.release(); in releaseTaskViews()
|
D | CarTaskViewInputInterceptor.java | 104 private static boolean isIn(MotionEvent event, RemoteCarTaskView taskView) { in isIn() argument 105 ViewHelper.getBoundsOnScreen(taskView, sTmpBounds); in isIn() 262 private static void dispatchEvent(RemoteCarTaskView taskView, MotionEvent event) { in dispatchEvent() argument 263 if (taskView.getRootView() == null) { in dispatchEvent() 266 taskView.getRootView().dispatchTouchEvent(event); in dispatchEvent()
|
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/uioverrides/states/ |
D | OverviewState.java | 224 TaskView taskView = recentsView.getRunningTaskView(); 225 if (taskView != null) { 226 if (recentsView.isTaskViewFullyVisible(taskView)) { 227 taskView.launchWithAnimation(); 229 recentsView.snapToPage(recentsView.indexOfChild(taskView));
|
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/util/ |
D | RecentsOrientedState.java | 433 public float getFullScreenScaleAndPivot(Rect taskView, DeviceProfile dp, PointF outPivot) { in getFullScreenScaleAndPivot() argument 435 float scale = Math.min(outPivot.x / taskView.width(), outPivot.y / taskView.height()); in getFullScreenScaleAndPivot() 437 outPivot.set(taskView.centerX(), taskView.centerY()); in getFullScreenScaleAndPivot() 440 outPivot.set(taskView.left * factor, taskView.top * factor); in getFullScreenScaleAndPivot()
|