Home
last modified time | relevance | path

Searched refs:tasks (Results 1 – 25 of 106) sorted by relevance

12345

/packages/apps/Launcher3/quickstep/tests/multivalentTests/src/com/android/quickstep/util/
DSplitSelectStateControllerTest.kt113 val tasks: ArrayList<GroupTask> = ArrayList() in activeTasks_noMatchingTasks() constant
114 tasks.add(groupTask1) in activeTasks_noMatchingTasks()
115 tasks.add(groupTask2) in activeTasks_noMatchingTasks()
135 consumer.accept(tasks) in activeTasks_noMatchingTasks()
154 val tasks: ArrayList<GroupTask> = ArrayList() in activeTasks_singleMatchingTask() constant
155 tasks.add(groupTask1) in activeTasks_singleMatchingTask()
156 tasks.add(groupTask2) in activeTasks_singleMatchingTask()
188 consumer.accept(tasks) in activeTasks_singleMatchingTask()
207 val tasks: ArrayList<GroupTask> = ArrayList() in activeTasks_skipTaskWithDifferentUser() constant
208 tasks.add(groupTask1) in activeTasks_skipTaskWithDifferentUser()
[all …]
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/util/
DDesktopTask.java33 public final List<Task> tasks; field in DesktopTask
35 public DesktopTask(@NonNull List<Task> tasks) { in DesktopTask() argument
36 super(tasks.get(0), null, null, TaskView.Type.DESKTOP); in DesktopTask()
37 this.tasks = tasks; in DesktopTask()
42 for (Task task : tasks) { in containsTask()
58 return tasks; in getTasks()
63 return new DesktopTask(tasks); in copy()
68 return "type=" + taskViewType + " tasks=" + tasks; in toString()
/packages/apps/ManagedProvisioning/studio-dev/ManagedProvisioningGradleProject/buildSrc/src/main/java/
D_global.kt4 import org.gradle.api.tasks.Delete
5 import org.gradle.api.tasks.compile.JavaCompile
6 import org.gradle.api.tasks.util.PatternFilterable
11 import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
25 …val task = tasks.register<SymlinkSourcesTask>("symlink${type.capitalized()}Sources${name.capitaliz… in <lambda>()
37 tasks.withType<KotlinCompile> { dependsOn(task) } in <lambda>()
38 tasks.withType<JavaCompile> { dependsOn(task) } in <lambda>()
39 tasks.maybeCreate<Delete>("cleanSymlinkedSources").apply { in <lambda>()
43 val symlinkSources = tasks.maybeCreate("symlinkSources").apply { in <lambda>()
47 rootProject.tasks.named("updateSdkSources") { in <lambda>()
DAConfigCreateCacheTask.kt3 import org.gradle.api.tasks.AbstractExecTask in <lambda>()
4 import org.gradle.api.tasks.Input in <lambda>()
5 import org.gradle.api.tasks.InputFile in <lambda>()
6 import org.gradle.api.tasks.InputFiles in <lambda>()
7 import org.gradle.api.tasks.Optional in <lambda>()
8 import org.gradle.api.tasks.OutputFile in <lambda>()
DStatsGeneratorTask.kt5 import org.gradle.api.tasks.Input
6 import org.gradle.api.tasks.InputFile
7 import org.gradle.api.tasks.InputFiles
8 import org.gradle.api.tasks.OutputDirectory
9 import org.gradle.api.tasks.TaskAction
DSymbolicLinksTask.kt4 import org.gradle.api.tasks.Input in <lambda>()
5 import org.gradle.api.tasks.InputFiles in <lambda>()
6 import org.gradle.api.tasks.Optional in <lambda>()
7 import org.gradle.api.tasks.OutputDirectory in <lambda>()
8 import org.gradle.api.tasks.TaskAction in <lambda>()
DCreateEventLogTask.kt4 import org.gradle.api.tasks.AbstractExecTask
5 import org.gradle.api.tasks.Input
6 import org.gradle.api.tasks.InputFile
7 import org.gradle.api.tasks.OutputDirectory
DGenerateJavaAidlDependencies.kt4 import org.gradle.api.tasks.AbstractExecTask in <lambda>()
5 import org.gradle.api.tasks.Input in <lambda>()
6 import org.gradle.api.tasks.InputFiles in <lambda>()
7 import org.gradle.api.tasks.OutputDirectory in <lambda>()
DGenerateCompatAnnotationSrcDir.kt2 import org.gradle.api.tasks.AbstractExecTask
3 import org.gradle.api.tasks.Input
4 import org.gradle.api.tasks.OutputDirectory
DAConfigCreateJavaLibTask.kt3 import org.gradle.api.tasks.AbstractExecTask
4 import org.gradle.api.tasks.InputFile
5 import org.gradle.api.tasks.OutputDirectory
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/taskbar/
DKeyboardQuickSwitchController.java133 mTaskListChangeId = mModel.getTasks((tasks) -> { in openQuickSwitchView()
135 processLoadedTasksOnDesktop(tasks); in openQuickSwitchView()
137 processLoadedTasks(tasks); in openQuickSwitchView()
151 private void processLoadedTasks(List<GroupTask> tasks) { in processLoadedTasks() argument
153 Collections.reverse(tasks); in processLoadedTasks()
154 mTasks = tasks.stream() in processLoadedTasks()
157 mNumHiddenTasks = Math.max(0, tasks.size() - MAX_TASKS); in processLoadedTasks()
160 private void processLoadedTasksOnDesktop(List<GroupTask> tasks) { in processLoadedTasksOnDesktop() argument
162 DesktopTask desktopTask = findDesktopTask(tasks); in processLoadedTasksOnDesktop()
165 mTasks = desktopTask.tasks.stream().map(GroupTask::new).collect(Collectors.toList()); in processLoadedTasksOnDesktop()
[all …]
/packages/modules/Permission/tests/cts/permission/src/android/permission/cts/
DNoActivityRelatedPermissionTest.java73 private void removeHomeRecentsTasks(List<ActivityManager.RecentTaskInfo> tasks) { in removeHomeRecentsTasks() argument
74 for (int i = tasks.size() -1; i >= 0; i--) { in removeHomeRecentsTasks()
75 ActivityManager.RecentTaskInfo task = tasks.get(i); in removeHomeRecentsTasks()
77 tasks.remove(i); in removeHomeRecentsTasks()
82 private void removeHomeRunningTasks(List<ActivityManager.RunningTaskInfo> tasks) { in removeHomeRunningTasks() argument
83 for (int i = tasks.size() -1; i >= 0; i--) { in removeHomeRunningTasks()
84 ActivityManager.RunningTaskInfo task = tasks.get(i); in removeHomeRunningTasks()
86 tasks.remove(i); in removeHomeRunningTasks()
/packages/apps/Camera2/src/com/android/camera/processing/imagebackend/
DImageBackend.java301 public boolean appendTasks(ImageToProcess img, Set<TaskImageContainer> tasks) { in appendTasks() argument
304 int countImageRefs = numPropagatedImageReferences(img, tasks); in appendTasks()
313 incrementTaskDone(tasks); in appendTasks()
315 scheduleTasks(tasks); in appendTasks()
327 Set<TaskImageContainer> tasks = new HashSet<TaskImageContainer>(1); in appendTasks() local
328 tasks.add(task); in appendTasks()
329 return appendTasks(img, tasks); in appendTasks()
424 public boolean receiveImage(ImageToProcess img, Set<TaskImageContainer> tasks, in receiveImage() argument
430 if (tasks == null || tasks.size() <= 0) { in receiveImage()
441 int countImageRefs = numPropagatedImageReferences(img, tasks); in receiveImage()
[all …]
/packages/apps/Launcher3/quickstep/tests/multivalentTests/src/com/android/quickstep/recents/data/
DFakeTasksRepository.kt27 private var tasks: MutableStateFlow<List<Task>> = MutableStateFlow(emptyList()) in <lambda>() variable in com.android.quickstep.recents.data.FakeTasksRepository
30 override fun getAllTaskData(forceRefresh: Boolean): Flow<List<Task>> = tasks in <lambda>()
37 tasks.value = tasks.value.map { it.apply { thumbnail = thumbnailDataMap[it.key.id] } } in <lambda>()
40 fun seedTasks(tasks: List<Task>) { in <lambda>()
41 this.tasks.value = tasks in <lambda>()
DTasksRepositoryTest.kt38 private val tasks = (0..5).map(::createTaskWithId) constant in com.android.quickstep.recents.data.TasksRepositoryTest
41 GroupTask(tasks[0]),
42 GroupTask(tasks[1], tasks[2], null),
43 DesktopTask(tasks.subList(3, 6))
56 assertThat(systemUnderTest.getAllTaskData(forceRefresh = true).first()).isEqualTo(tasks) in <lambda>()
64 assertThat(systemUnderTest.getTaskDataById(2).first()).isEqualTo(tasks[2]) in <lambda>()
/packages/apps/Car/Launcher/buildSrc/src/main/java/aconfig/
DAConfigCreateCacheTask.kt21 import org.gradle.api.tasks.AbstractExecTask in <lambda>()
22 import org.gradle.api.tasks.Input in <lambda>()
23 import org.gradle.api.tasks.InputFile in <lambda>()
24 import org.gradle.api.tasks.InputFiles in <lambda>()
25 import org.gradle.api.tasks.OutputFile in <lambda>()
DAConfigCreateJavaLibTask.kt21 import org.gradle.api.tasks.AbstractExecTask
22 import org.gradle.api.tasks.InputFile
23 import org.gradle.api.tasks.OutputDirectory
/packages/apps/Launcher3/quickstep/tests/multivalentTests/src/com/android/quickstep/task/thumbnail/
DTaskThumbnailViewModelTest.kt50 private val tasks = (0..5).map(::createTaskWithId) constant in com.android.quickstep.task.thumbnail.TaskThumbnailViewModelTest
59 tasksRepository.seedTasks(tasks) in <lambda>()
88 tasksRepository.seedTasks(tasks) in bindRunningTaskThenStoppedTaskWithoutThumbnail_thenStateChangesToBackgroundOnly()
101 tasksRepository.seedTasks(tasks) in <lambda>()
112 tasks[2].isLocked = true in <lambda>()
113 tasksRepository.seedTasks(tasks) in <lambda>()
125 tasksRepository.seedTasks(tasks) in <lambda>()
144 tasksRepository.seedTasks(tasks) in <lambda>()
/packages/modules/AppSearch/service/java/com/android/server/appsearch/util/
DRateLimitedExecutor.java246 public <T> List<Future<T>> invokeAll(Collection<? extends Callable<T>> tasks) in invokeAll() argument
248 return mExecutor.invokeAll(tasks); in invokeAll()
253 Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) in invokeAll() argument
255 return mExecutor.invokeAll(tasks, timeout, unit); in invokeAll()
259 public <T> T invokeAny(Collection<? extends Callable<T>> tasks) in invokeAny() argument
261 return mExecutor.invokeAny(tasks); in invokeAny()
265 public <T> T invokeAny(Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) in invokeAny() argument
267 return mExecutor.invokeAny(tasks, timeout, unit); in invokeAny()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/recents/data/
DTasksRepository.kt44 groupedTaskData.map { groupTaskList -> groupTaskList.flatMap { it.tasks } } in <lambda>()
48 combine(_taskData, getThumbnailQueryResults()) { tasks, results -> in <lambda>() method
49 tasks.forEach { task -> in <lambda>()
53 tasks in <lambda>()
93 combine(_taskData, visibleTaskIds) { tasks, visibleIds -> in <lambda>() method
94 tasks.filter { it.key.id in visibleIds } in <lambda>()
/packages/apps/ManagedProvisioning/studio-dev/ManagedProvisioningGradleProject/buildSrc/src/main/java/task/
DSymlinkSourcesTask.kt10 import org.gradle.api.tasks.Input in <lambda>()
11 import org.gradle.api.tasks.InputFiles in <lambda>()
12 import org.gradle.api.tasks.OutputDirectory in <lambda>()
13 import org.gradle.api.tasks.TaskAction in <lambda>()
14 import org.gradle.api.tasks.util.PatternFilterable in <lambda>()
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/util/
DMockTask.java70 public static void assertRanNever(String message, MockTask... tasks) { in assertRanNever() argument
71 for (MockTask task : tasks) { in assertRanNever()
76 public static void assertRanOnce(String message, MockTask... tasks) { in assertRanOnce() argument
77 for (MockTask task : tasks) { in assertRanOnce()
/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/search/
DSearchFeatureProviderImpl.java63 final List<SearchQueryTask> tasks = new ArrayList<>(); in getSearchQueryTasks() local
65 tasks.add(DatabaseResultTask.newTask(context, getSiteMapManager(), cleanQuery)); in getSearchQueryTasks()
66 tasks.add(InstalledAppResultTask.newTask(context, getSiteMapManager(), cleanQuery)); in getSearchQueryTasks()
67 tasks.add(AccessibilityServiceResultTask.newTask(context, getSiteMapManager(), cleanQuery)); in getSearchQueryTasks()
68 tasks.add(InputDeviceResultTask.newTask(context, getSiteMapManager(), cleanQuery)); in getSearchQueryTasks()
69 return tasks; in getSearchQueryTasks()
/packages/apps/ManagedProvisioning/studio-dev/ManagedProvisioningGradleProject/buildSrc/src/main/groovy/
DFilterCopyTask.groovy4 import org.gradle.api.tasks.Input
5 import org.gradle.api.tasks.InputDirectory
6 import org.gradle.api.tasks.OutputDirectory
7 import org.gradle.api.tasks.TaskAction
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/remoteaccess/
DKitchenSinkRemoteTaskService.java192 JSONArray tasks = null; in toJsonString() local
195 tasks = (JSONArray) jsonObject.get(PREF_KEY); in toJsonString()
200 if (jsonObject == null || tasks == null) { in toJsonString()
202 tasks = new JSONArray(); in toJsonString()
203 jsonObject.put(PREF_KEY, tasks); in toJsonString()
210 tasks.put(task); in toJsonString()

12345