Home
last modified time | relevance | path

Searched refs:Task (Results 1 – 25 of 49) 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()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/
DRecentTasksList.java32 import com.android.systemui.shared.recents.model.Task;
81 public void getTaskKeys(int numTasks, Consumer<ArrayList<Task>> callback) { in getTaskKeys()
84 ArrayList<Task> tasks = loadTasksInBackground(numTasks, -1, true /* loadKeysOnly */); in getTaskKeys()
96 public synchronized int getTasks(boolean loadKeysOnly, Consumer<ArrayList<Task>> callback) { in getTasks()
103 ArrayList<Task> result = copyOf(mResultsUi); in getTasks()
123 ArrayList<Task> result = copyOf(mResultsUi); in getTasks()
201 Task.TaskKey taskKey = new Task.TaskKey(rawTask); in loadTasksInBackground()
202 Task task; in loadTasksInBackground()
205 task = Task.from(taskKey, rawTask, isLocked); in loadTasksInBackground()
207 task = new Task(taskKey); in loadTasksInBackground()
[all …]
DRecentsModel.java37 import com.android.systemui.shared.recents.model.Task;
98 public int getTasks(Consumer<ArrayList<Task>> callback) { in getTasks()
124 for (Task task : tasks) { in isTaskRemoved()
152 for (Task task : tasks) { in onTaskStackChangedBackground()
168 Task task = mThumbnailChangeListeners.get(i).onTaskThumbnailChanged(taskId, snapshot); in onTaskSnapshotChanged()
177 Task.TaskKey stubKey = new Task.TaskKey(taskId, 0, null, null, 0, 0); in onTaskRemoved()
228 Task onTaskThumbnailChanged(int taskId, ThumbnailData thumbnailData); in onTaskThumbnailChanged()
DTaskThumbnailCache.java25 import com.android.systemui.shared.recents.model.Task;
26 import com.android.systemui.shared.recents.model.Task.TaskKey;
106 public void updateThumbnailInCache(Task task) { in updateThumbnailInCache()
130 Task task, Consumer<ThumbnailData> callback) { in updateThumbnailInBackground()
185 public void remove(Task.TaskKey key) { in remove()
DTaskOverlayFactory.java54 import com.android.systemui.shared.recents.model.Task;
175 public void initOverlay(Task task, ThumbnailData thumbnail, Matrix matrix, in initOverlay()
206 protected void saveScreenshot(Task task) { in saveScreenshot()
301 protected final Task mTask;
303 public OverlayUICallbacksImpl(boolean isAllowedByPolicy, Task task) { in OverlayUICallbacksImpl()
DTaskIconCache.java48 import com.android.systemui.shared.recents.model.Task;
49 import com.android.systemui.shared.recents.model.Task.TaskKey;
99 public CancellableTask updateIconInBackground(Task task, Consumer<Task> callback) { in updateIconInBackground()
140 private TaskCacheEntry getCacheEntry(Task task) { in getCacheEntry()
DTaskUtils.java31 import com.android.systemui.shared.recents.model.Task;
49 public static CharSequence getTitle(Context context, Task task) { in getTitle()
62 public static ComponentKey getLaunchComponentKeyForTask(Task.TaskKey taskKey) { in getLaunchComponentKeyForTask()
DImageActionsApi.java40 import com.android.systemui.shared.recents.model.Task;
114 Insets visibleInsets, Task.TaskKey task) { in saveScreenshot()
/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/services/Mtp/src/com/android/mtp/
DPipeManager.java46 final Task task = new ImportFileTask(model, identifier); in readDocument()
52 final Task task = new GetThumbnailTask(model, identifier); in readThumbnail()
57 private static abstract class Task implements Runnable { class in PipeManager
62 Task(MtpManager manager, Identifier identifier) throws IOException { in Task() method in PipeManager.Task
73 private static class ImportFileTask extends Task {
94 private static class GetThumbnailTask extends Task {
/packages/modules/adb/client/openscreen/platform/
Dtask_runner.h47 using Task = openscreen::TaskRunner::Task;
52 void PostPackagedTask(Task task) final;
53 void PostPackagedTaskWithDelay(Task task, openscreen::Clock::duration delay) final;
62 std::multimap<std::chrono::time_point<std::chrono::steady_clock>, Task> tasks_
Dtask_runner.cpp47 void AdbOspTaskRunner::PostPackagedTask(Task task) { in PostPackagedTask()
51 void AdbOspTaskRunner::PostPackagedTaskWithDelay(Task task, Clock::duration delay) { in PostPackagedTaskWithDelay()
92 std::vector<Task> running_tasks; in TaskExecutorWorker()
109 for (Task& task : running_tasks) { in TaskExecutorWorker()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/fallback/
DFallbackRecentsView.java44 import com.android.systemui.shared.recents.model.Task;
45 import com.android.systemui.shared.recents.model.Task.TaskKey;
138 protected void applyLoadPlan(ArrayList<Task> tasks) { in applyLoadPlan()
145 for (Task t : tasks) { in applyLoadPlan()
152 ArrayList<Task> newList = new ArrayList<>(tasks.size() + 1); in applyLoadPlan()
154 newList.add(Task.from(new TaskKey(mHomeTaskInfo), mHomeTaskInfo, false)); in applyLoadPlan()
/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/services/Car/service/jni/evs/
DEvsCallbackThread.h36 using Task = std::function<void(JNIEnv*)>; variable
44 std::queue<Task> mTaskQueue GUARDED_BY(mLock);
56 void enqueue(const Task& task) ACQUIRE(mLock);
DEvsCallbackThread.cpp46 Task task; in threadLoop()
91 void EvsCallbackThread::enqueue(const Task& task) { in enqueue()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/taskbar/
DTaskbarDragController.java37 import com.android.systemui.shared.recents.model.Task;
106 } else if (tag instanceof Task) { in startSystemDragOnLongClick()
107 Task task = (Task) tag; in startSystemDragOnLongClick()
DTaskbarActivityContext.java71 import com.android.systemui.shared.recents.model.Task;
252 if (tag instanceof Task) { in onTaskbarIconClicked()
253 Task task = (Task) tag; in onTaskbarIconClicked()
/packages/apps/Launcher3/quickstep/tests/src/com/android/quickstep/
DRecentTasksListTest.java33 import com.android.systemui.shared.recents.model.Task;
80 List<Task> taskList = mRecentTasksList.loadTasksInBackground(Integer.MAX_VALUE, -1, true); in loadTasksInBackground_onlyKeys_noValidTaskDescription()
94 List<Task> taskList = mRecentTasksList.loadTasksInBackground(Integer.MAX_VALUE, -1, false); in loadTasksInBackground_moreThanKeys_hasValidTaskDescription()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/views/
DDigitalWellBeingToast.java53 import com.android.systemui.shared.recents.model.Task;
69 private Task mTask;
111 public void initialize(Task task) { in initialize()
228 Task task, long appUsageLimitTimeMs, long appRemainingTimeMs) { in getContentDescriptionForTask()
DTaskThumbnailView.java61 import com.android.systemui.shared.recents.model.Task;
97 private Task mTask;
132 public void bind(Task task) { in bind()
149 public void setThumbnail(Task task, ThumbnailData thumbnailData, boolean refreshNow) { in setThumbnail()
159 public void setThumbnail(Task task, ThumbnailData thumbnailData) { in setThumbnail()
/packages/apps/Car/Settings/src/com/android/car/settings/security/
DSaveLockWorker.java97 new Task().executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR); in start()
152 private class Task extends AsyncTask<Void, Void, Boolean> { class in SaveLockWorker

12