Home
last modified time | relevance | path

Searched refs:Task (Results 1 – 25 of 37) sorted by relevance

12

/packages/apps/Dialer/java/com/android/voicemail/impl/scheduling/
DTaskQueue.java25 import com.android.voicemail.impl.scheduling.Task.TaskId;
38 class TaskQueue implements Iterable<Task> {
40 private final Queue<Task> queue = new ArrayDeque<>();
44 for (Task task : queue) { in toBundles()
54 Task task = Tasks.createTask(context, pendingTask); in fromBundles()
70 public boolean add(Task task) { in add()
71 if (task.getId().id == Task.TASK_INVALID) { in add()
74 if (task.getId().id != Task.TASK_ALLOW_DUPLICATES) { in add()
75 Task oldTask = getTask(task.getId()); in add()
86 public void remove(Task task) { in remove()
[all …]
DTasks.java45 public static Task createTask(Context context, Bundle extras) throws TaskCreationException { in createTask()
62 Task task = (Task) Class.forName(className).getDeclaredConstructor().newInstance(); in createTask()
74 public static Bundle toBundle(Task task) { in toBundle()
85 public static Intent createIntent(Context context, Class<? extends Task> task) { in createIntent()
DTaskExecutor.java207 Task task = (Task) msg.obj;
233 Task task = (Task) msg.obj;
281 void addTask(Task task) {
DTask.java34 public interface Task { interface
147 void onDuplicatedTaskAdded(Task task); in onDuplicatedTaskAdded()
DBaseTask.java40 public abstract class BaseTask implements Task {
207 public void onDuplicatedTaskAdded(Task task) { in onDuplicatedTaskAdded()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/
DRecentTasksList.java26 import com.android.systemui.shared.recents.model.Task;
55 ArrayList<Task> mTasks = new ArrayList<>();
68 public void getTaskKeys(int numTasks, Consumer<ArrayList<Task>> callback) { in getTaskKeys()
71 ArrayList<Task> tasks = loadTasksInBackground(numTasks, true /* loadKeysOnly */); in getTaskKeys()
83 public synchronized int getTasks(boolean loadKeysOnly, Consumer<ArrayList<Task>> callback) { in getTasks()
97 ArrayList<Task> tasks = loadTasksInBackground(Integer.MAX_VALUE, loadKeysOnly); in getTasks()
146 private ArrayList<Task> loadTasksInBackground(int numTasks, in loadTasksInBackground()
149 ArrayList<Task> allTasks = new ArrayList<>(); in loadTasksInBackground()
170 Task.TaskKey taskKey = new Task.TaskKey(rawTask); in loadTasksInBackground()
171 Task task; in loadTasksInBackground()
[all …]
DRecentsModel.java35 import com.android.systemui.shared.recents.model.Task;
92 public int getTasks(Consumer<ArrayList<Task>> callback) { in getTasks()
118 public void findTaskWithId(int taskId, Consumer<Task.TaskKey> callback) { in findTaskWithId()
120 for (Task task : tasks) { in findTaskWithId()
146 for (Task task : tasks) { in onTaskStackChangedBackground()
162 Task task = mThumbnailChangeListeners.get(i).onTaskThumbnailChanged(taskId, snapshot); in onTaskSnapshotChanged()
171 Task.TaskKey dummyKey = new Task.TaskKey(taskId, 0, null, null, 0, 0); in onTaskRemoved()
217 Task onTaskThumbnailChanged(int taskId, ThumbnailData thumbnailData); in onTaskThumbnailChanged()
DTaskIconCache.java36 import com.android.systemui.shared.recents.model.Task;
61 public void onEntryEvicted(Task.TaskKey key) {
89 public IconLoadRequest updateIconInBackground(Task task, Consumer<Task> callback) { in updateIconInBackground()
126 private String loadContentDescriptionInBackground(Task task) { in loadContentDescriptionInBackground()
DTaskThumbnailCache.java28 import com.android.systemui.shared.recents.model.Task;
29 import com.android.systemui.shared.recents.model.Task.TaskKey;
108 public void updateThumbnailInCache(Task task) { in updateThumbnailInCache()
132 Task task, Consumer<ThumbnailData> callback) { in updateThumbnailInBackground()
192 public void remove(Task.TaskKey key) { in remove()
DTaskUtils.java29 import com.android.systemui.shared.recents.model.Task;
46 public static CharSequence getTitle(Context context, Task task) { in getTitle()
60 public static ComponentKey getLaunchComponentKeyForTask(Task.TaskKey taskKey) { in getLaunchComponentKeyForTask()
/packages/apps/Launcher3/go/quickstep/src/com/android/quickstep/
DTaskListLoader.java23 import com.android.systemui.shared.recents.model.Task;
39 private ArrayList<Task> mTaskList = new ArrayList<>();
52 public List<Task> getCurrentTaskList() { in getCurrentTaskList()
75 public void loadTaskList(@Nullable Consumer<ArrayList<Task>> onLoadedCallback) { in loadTaskList()
84 ArrayList<Task> tasks = new ArrayList<>(loadedTasks); in loadTaskList()
88 for (Task task : tasks) { in loadTaskList()
93 Task loadedTask = mTaskList.get(loadedPos); in loadTaskList()
110 public void loadTaskIconAndLabel(Task task, @Nullable Runnable onLoadedCallback) { in loadTaskIconAndLabel()
122 public void loadTaskThumbnail(Task task, @Nullable Runnable onLoadedCallback) { in loadTaskThumbnail()
130 void removeTask(Task task) { in removeTask()
DTaskHolder.java22 import com.android.systemui.shared.recents.model.Task;
33 private Task mTask;
57 public void bindTask(@NonNull Task task, boolean willAnimate) { in bindTask()
82 public Optional<Task> getTask() { in getTask()
DTaskActionController.java28 import com.android.systemui.shared.recents.model.Task;
29 import com.android.systemui.shared.recents.model.Task.TaskKey;
77 public void launchTask(@NonNull Task task) { in launchTask()
94 Task task = viewHolder.getTask().get(); in removeTask()
DTaskAdapter.java30 import com.android.systemui.shared.recents.model.Task;
133 List<Task> tasks = mLoader.getCurrentTaskList(); in onBindViewHolderInternal()
139 Task task = tasks.get(taskPos); in onBindViewHolderInternal()
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/
DTestTimer.java35 private final LinkedList<Task> mTaskList = new LinkedList<>();
48 Task task = mTaskList.getFirst(); in fastForwardTo()
76 Iterator<Task> iter = mTaskList.iterator(); in purge()
78 Task task = iter.next(); in purge()
123 Task testTimerTask = (Task) task; in scheduleAtTime()
126 ListIterator<Task> iter = mTaskList.listIterator(0); in scheduleAtTime()
135 public static class Task extends TimerTask { class in TestTimer
141 public Task(TimerTask delegate) { in Task() method in TestTimer.Task
/packages/apps/Dialer/java/com/android/dialer/shortcuts/
DShortcutUsageReporter.java75 EXECUTOR.submit(Task.ID, new Task(context), phoneNumber); in onOutgoingCallAdded()
78 private static final class Task extends AsyncTask<String, Void, Void> { class in ShortcutUsageReporter
83 public Task(Context context) { in Task() method in ShortcutUsageReporter.Task
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/quickstep/
DTaskSystemShortcut.java50 import com.android.systemui.shared.recents.model.Task;
88 Task task = view.getTask(); in getOnClickListener()
101 BaseDraggingActivity activity, Task task, ItemInfo dummyInfo) { in getOnClickListenerForTask()
127 final Task task = taskView.getTask(); in getOnClickListener()
331 BaseDraggingActivity activity, Task task, ItemInfo itemInfo) {
DTaskOverlayFactory.java29 import com.android.systemui.shared.recents.model.Task;
75 public void initOverlay(Task task, ThumbnailData thumbnail, Matrix matrix) { } in initOverlay()
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/quickstep/views/
DDigitalWellBeingToast.java46 import com.android.systemui.shared.recents.model.Task;
62 private Task mTask;
112 public void initialize(Task task) { in initialize()
229 Task task, long appUsageLimitTimeMs, long appRemainingTimeMs) { in getContentDescriptionForTask()
DRecentsView.java108 import com.android.systemui.shared.recents.model.Task;
241 Task.TaskKey taskKey = taskView.getTask().key;
274 private Task mTmpRunningTask;
367 public Task onTaskThumbnailChanged(int taskId, ThumbnailData thumbnailData) { in onTaskThumbnailChanged()
371 Task task = taskView.getTask(); in onTaskThumbnailChanged()
530 private void applyLoadPlan(ArrayList<Task> tasks) { in applyLoadPlan()
569 final Task task = tasks.get(i); in applyLoadPlan()
722 Task task = taskView.getTask(); in loadVisibleTaskData()
860 mTmpRunningTask = new Task(new Task.TaskKey(runningTaskId, 0, new Intent(), in showCurrentTask()
1045 private void removeTask(Task task, int index, PendingAnimation.OnEndListener onEndListener, in removeTask()
[all …]
DTaskThumbnailView.java53 import com.android.systemui.shared.recents.model.Task;
93 private Task mTask;
124 public void bind(Task task) { in bind()
135 public void setThumbnail(Task task, ThumbnailData thumbnailData) { in setThumbnail()
/packages/apps/Car/Settings/src/com/android/car/settings/security/
DSaveLockWorkerBase.java77 new Task().executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR); in start()
121 private class Task extends AsyncTask<Void, Void, Boolean> { class in SaveLockWorkerBase
/packages/apps/Settings/src/com/android/settings/password/
DSaveChosenLockWorkerBase.java92 new Task().execute(); in start()
115 private class Task extends AsyncTask<Void, Void, Pair<Boolean, Intent>> { class in SaveChosenLockWorkerBase
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/password/
DSaveChosenLockWorkerBase.java92 new Task().execute(); in start()
115 private class Task extends AsyncTask<Void, Void, Pair<Boolean, Intent>> { class in SaveChosenLockWorkerBase
/packages/apps/Launcher3/go/quickstep/src/com/android/quickstep/views/
DIconRecentsView.java76 import com.android.systemui.shared.recents.model.Task;
167 Optional<Task> optTask = taskHolder.getTask();
169 Task task = optTask.get();
370 List<Task> tasks = mTaskLoader.getCurrentTaskList(); in handleOverviewCommand()
376 Task taskToLaunch; in handleOverviewCommand()

12