Searched refs:taskDescription (Results 1 – 10 of 10) sorted by relevance
84 assertNull(taskList.get(0).task1.taskDescription.getLabel()); in loadTasksInBackground_onlyKeys_noValidTaskDescription()85 assertNull(taskList.get(0).task2.taskDescription.getLabel()); in loadTasksInBackground_onlyKeys_noValidTaskDescription()90 String taskDescription = "Wheeee!"; in loadTasksInBackground_moreThanKeys_hasValidTaskDescription() local92 task1.taskDescription = new ActivityManager.TaskDescription(taskDescription); in loadTasksInBackground_moreThanKeys_hasValidTaskDescription()94 task2.taskDescription = new ActivityManager.TaskDescription(); in loadTasksInBackground_moreThanKeys_hasValidTaskDescription()104 assertEquals(taskDescription, taskList.get(0).task1.taskDescription.getLabel()); in loadTasksInBackground_moreThanKeys_hasValidTaskDescription()105 assertNull(taskList.get(0).task2.taskDescription.getLabel()); in loadTasksInBackground_moreThanKeys_hasValidTaskDescription()
60 @NonNull String taskDescription, @NonNull InterruptableTaskRunner<T> taskRunner) { in SingletonRunner()61 Objects.requireNonNull(taskDescription); in SingletonRunner()64 mTaskDescription = taskDescription; in SingletonRunner()
82 if (taskInfo.taskDescription != null) {85 taskInfo.taskDescription.getBackgroundColor());112 if (mRootTask.taskId == taskInfo.taskId && taskInfo.taskDescription != null) {115 taskInfo.taskDescription.getBackgroundColor());
108 if (taskInfo.taskDescription != null) {111 taskInfo.taskDescription.getBackgroundColor());125 if (mRootTask.taskId == taskInfo.taskId && taskInfo.taskDescription != null) {128 taskInfo.taskDescription.getBackgroundColor());
79 if (taskInfo.taskDescription != null) {81 taskInfo.taskDescription.getBackgroundColor());93 if (taskInfo.taskDescription != null) {95 taskInfo.taskDescription.getBackgroundColor());
99 Drawable icon = getIconFromTaskDescription(taskInfo.taskDescription);344 Drawable drawableIcon = getIconFromTaskDescription(task.taskDescription); in getRecentTaskIconAsync()366 ActivityManager.TaskDescription taskDescription) { in getIconFromTaskDescription() argument370 if (taskDescription.getInMemoryIcon() != null) { in getIconFromTaskDescription()371 icon = taskDescription.getInMemoryIcon(); in getIconFromTaskDescription()374 taskDescription.getIconFilename(), mContext.getUserId()); in getIconFromTaskDescription()
244 mTask.taskDescription = mTaskDescription; in getRecentTaskIconAsync_sets_iconFromTaskDescription()267 mTask.taskDescription = mTaskDescription; in getRecentTaskIconAsync_sets_iconFromPackageManager()292 mTask.taskDescription = mTaskDescription; in getRecentTaskIconAsync_sets_defaultIcon()398 recentTaskInfo.taskDescription = mock(ActivityManager.TaskDescription.class); in createRecentTaskInfo()
309 && target.taskInfo.taskDescription != null) in getDefaultBackgroundColor()310 ? target.taskInfo.taskDescription.getBackgroundColor() in getDefaultBackgroundColor()
151 TaskDescription desc = task.taskDescription; in getCacheEntry()189 activityInfo, task.key.userId, task.taskDescription); in getCacheEntry()
628 public void setTaskDescription(ActivityManager.TaskDescription taskDescription) { in setTaskDescription() argument629 taskDescription.setIcon(Icon.createWithResource(this, R.drawable.ic_launcher_settings)); in setTaskDescription()630 super.setTaskDescription(taskDescription); in setTaskDescription()