Home
last modified time | relevance | path

Searched refs:task (Results 1 – 25 of 176) sorted by relevance

12345678

/packages/apps/Dialer/java/com/android/voicemail/impl/scheduling/
DTaskQueue.java43 for (Task task : queue) { in toBundles()
44 result.add(Tasks.toBundle(task)); in toBundles()
52 Task task = Tasks.createTask(context, pendingTask); in fromBundles() local
53 task.onRestore(pendingTask); in fromBundles()
54 add(task); in fromBundles()
65 public boolean add(Task task) { in add() argument
66 if (task.getId().id == Task.TASK_INVALID) { in add()
69 if (task.getId().id != Task.TASK_ALLOW_DUPLICATES) { in add()
70 Task oldTask = getTask(task.getId()); in add()
72 oldTask.onDuplicatedTaskAdded(task); in add()
[all …]
DTaskExecutor.java207 Task task = (Task) msg.obj;
209 VvmLog.i(TAG, "executing task " + task);
210 task.onExecuteInBackgroundThread();
212 VvmLog.e(TAG, "Exception while executing task " + task + ":", throwable);
216 schedulerMessage.obj = task;
233 Task task = (Task) msg.obj;
234 getTasks().remove(task);
235 task.onCompleted();
281 void addTask(Task task) {
283 getTasks().add(task);
[all …]
DTasks.java47 Task task = (Task) Class.forName(className).getDeclaredConstructor().newInstance(); in createTask() local
48 task.onCreate(context, extras); in createTask()
49 return task; in createTask()
59 public static Bundle toBundle(Task task) { in toBundle() argument
60 Bundle result = task.toBundle(); in toBundle()
61 result.putString(EXTRA_CLASS_NAME, task.getClass().getName()); in toBundle()
70 public static Intent createIntent(Context context, Class<? extends Task> task) { in createIntent() argument
73 intent.putExtra(EXTRA_CLASS_NAME, task.getName()); in createIntent()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/provisioning/
DDeviceOwnerProvisioningController.java26 import com.android.managedprovisioning.task.AbstractProvisioningTask;
27 import com.android.managedprovisioning.task.AddWifiNetworkTask;
28 import com.android.managedprovisioning.task.CopyAccountToUserTask;
29 import com.android.managedprovisioning.task.DeleteNonRequiredAppsTask;
30 import com.android.managedprovisioning.task.DeviceOwnerInitializeProvisioningTask;
31 import com.android.managedprovisioning.task.DisallowAddUserTask;
32 import com.android.managedprovisioning.task.DownloadPackageTask;
33 import com.android.managedprovisioning.task.InstallPackageTask;
34 import com.android.managedprovisioning.task.SetDevicePolicyTask;
35 import com.android.managedprovisioning.task.VerifyPackageTask;
[all …]
DProfileOwnerProvisioningController.java29 import com.android.managedprovisioning.task.AbstractProvisioningTask;
30 import com.android.managedprovisioning.task.CopyAccountToUserTask;
31 import com.android.managedprovisioning.task.CreateManagedProfileTask;
32 import com.android.managedprovisioning.task.DeleteNonRequiredAppsTask;
33 import com.android.managedprovisioning.task.DisableInstallShortcutListenersTask;
34 import com.android.managedprovisioning.task.InstallExistingPackageTask;
35 import com.android.managedprovisioning.task.ManagedProfileSettingsTask;
36 import com.android.managedprovisioning.task.SetDevicePolicyTask;
37 import com.android.managedprovisioning.task.StartManagedProfileTask;
94 public synchronized void onSuccess(AbstractProvisioningTask task) { in onSuccess() argument
[all …]
DAbstractProvisioningController.java33 import com.android.managedprovisioning.task.AbstractProvisioningTask;
94 for (AbstractProvisioningTask task : tasks) { in addTasks()
95 mTasks.add(task); in addTasks()
102 protected abstract int getErrorMsgId(AbstractProvisioningTask task, int errorCode); in getErrorMsgId() argument
103 protected abstract boolean getRequireFactoryReset(AbstractProvisioningTask task, int errorCode); in getRequireFactoryReset() argument
172 public synchronized void onSuccess(AbstractProvisioningTask task) { in onSuccess() argument
187 public synchronized void onError(AbstractProvisioningTask task, int errorCode) { in onError() argument
190 mProvisioningAnalyticsTracker.logProvisioningError(mContext, task, errorCode); in onError()
191 mCallback.error(getErrorTitle(), getErrorMsgId(task, errorCode), in onError()
192 getRequireFactoryReset(task, errorCode)); in onError()
[all …]
/packages/apps/TV/src/com/android/tv/dvr/recorder/
DSeriesRecordingScheduler.java116 SeriesRecordingUpdateTask task = iter.next();
117 if (CollectionUtils.subtract(task.getSeriesRecordings(), seriesRecordings,
119 task.cancel(true);
124 FetchSeriesInfoTask task = mFetchSeriesInfoTasks.get(seriesRecording.getId());
125 if (task != null) {
126 task.cancel(true);
242 FetchSeriesInfoTask task = mFetchSeriesInfoTasks.get(mFetchSeriesInfoTasks.keyAt(i)); in stop() local
243 task.cancel(true); in stop()
246 for (SeriesRecordingUpdateTask task : mScheduleTasks) { in stop()
247 task.cancel(true); in stop()
[all …]
/packages/apps/Dialer/java/com/android/voicemail/impl/
DOmtpService.java51 VisualVoicemailTask task, final PhoneAccountHandle phoneAccountHandle) { in onCellServiceConnected() argument
55 task.finish(); in onCellServiceConnected()
61 task.finish(); in onCellServiceConnected()
66 task.finish(); in onCellServiceConnected()
72 task.finish(); in onCellServiceConnected()
76 public void onSmsReceived(VisualVoicemailTask task, final VisualVoicemailSms sms) { in onSmsReceived() argument
80 task.finish(); in onSmsReceived()
90 task.finish(); in onSmsReceived()
101 task.finish(); in onSmsReceived()
106 final VisualVoicemailTask task, final PhoneAccountHandle phoneAccountHandle) { in onSimRemoved() argument
[all …]
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/
DEmailAsyncTask.java54 private void add(EmailAsyncTask<?, ?, ?> task) { in add() argument
56 mTasks.add(task); in add()
60 private void remove(EmailAsyncTask<?, ?, ?> task) { in remove() argument
62 mTasks.remove(task); in remove()
72 for (EmailAsyncTask<?, ?, ?> task : mTasks) { in cancelAllInterrupt()
73 task.cancel(true); in cancelAllInterrupt()
88 for (EmailAsyncTask<?, ?, ?> task : mTasks) { in cancelOthers()
89 if ((task != current) && task.getClass().equals(clazz)) { in cancelOthers()
90 task.cancel(true); in cancelOthers()
91 toRemove.add(task); in cancelOthers()
[all …]
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/
DTestTimer.java46 Task task = mTaskList.getFirst(); in fastForwardTo() local
47 if (!task.isCancelled()) { in fastForwardTo()
48 task.run(); in fastForwardTo()
75 Task task = iter.next(); in purge() local
76 if (task.isCancelled()) { in purge()
85 public void schedule(TimerTask task, Date time) { in schedule() argument
87 scheduleAtTime(task, executeTime); in schedule()
91 public void schedule(TimerTask task, Date firstTime, long period) { in schedule() argument
96 public void schedule(TimerTask task, long delay) { in schedule() argument
98 scheduleAtTime(task, executeTime); in schedule()
[all …]
/packages/apps/Camera2/src/com/android/camera/processing/imagebackend/
DImageBackend.java326 public boolean appendTasks(ImageToProcess img, TaskImageContainer task) { in appendTasks() argument
328 tasks.add(task); in appendTasks()
349 public boolean receiveImage(ImageToProcess img, TaskImageContainer task, in receiveImage() argument
352 return receiveImage(img, task, blockUntilImageRelease, closeOnImageRelease, in receiveImage()
375 public boolean receiveImage(ImageToProcess img, TaskImageContainer task, in receiveImage() argument
380 passTasks.add(task); in receiveImage()
592 for (TaskImageContainer task : tasks) { in initializeTaskDone()
593 sessionSet.add(task.mSession); in initializeTaskDone()
594 Integer currentCount = sessionTaskCount.get(task.mSession); in initializeTaskDone()
596 sessionTaskCount.put(task.mSession, 1); in initializeTaskDone()
[all …]
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/task/
DDisallowAddUserTaskTest.java17 package com.android.managedprovisioning.task;
74 final DisallowAddUserTask task = in testMaybeDisallowAddUsers_normalSystem() local
78 task.run(primaryUser.id); in testMaybeDisallowAddUsers_normalSystem()
83 verify(mCallback).onSuccess(task); in testMaybeDisallowAddUsers_normalSystem()
91 final DisallowAddUserTask task = in testMaybeDisallowAddUsers_normalSystem_restrictionAlreadySetupForOneUser() local
100 task.run(primaryUser.id); in testMaybeDisallowAddUsers_normalSystem_restrictionAlreadySetupForOneUser()
105 verify(mCallback).onSuccess(task); in testMaybeDisallowAddUsers_normalSystem_restrictionAlreadySetupForOneUser()
113 final DisallowAddUserTask task = in testMaybeDisallowAddUsers_splitUserSystem_meatUserDeviceOwner() local
117 task.run(meatUser.id); in testMaybeDisallowAddUsers_splitUserSystem_meatUserDeviceOwner()
124 verify(mCallback).onSuccess(task); in testMaybeDisallowAddUsers_splitUserSystem_meatUserDeviceOwner()
[all …]
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/provisioning/
DDeviceOwnerProvisioningControllerTest.java32 import com.android.managedprovisioning.task.AbstractProvisioningTask;
33 import com.android.managedprovisioning.task.AddWifiNetworkTask;
34 import com.android.managedprovisioning.task.DeleteNonRequiredAppsTask;
35 import com.android.managedprovisioning.task.DeviceOwnerInitializeProvisioningTask;
36 import com.android.managedprovisioning.task.DisallowAddUserTask;
37 import com.android.managedprovisioning.task.DownloadPackageTask;
38 import com.android.managedprovisioning.task.InstallPackageTask;
39 import com.android.managedprovisioning.task.SetDevicePolicyTask;
40 import com.android.managedprovisioning.task.VerifyPackageTask;
177 AbstractProvisioningTask task = verifyTaskRun(AddWifiNetworkTask.class); in testErrorAddWifiTask() local
[all …]
DProfileOwnerProvisioningControllerTest.java40 import com.android.managedprovisioning.task.AbstractProvisioningTask;
41 import com.android.managedprovisioning.task.CopyAccountToUserTask;
42 import com.android.managedprovisioning.task.CreateManagedProfileTask;
43 import com.android.managedprovisioning.task.DisableInstallShortcutListenersTask;
44 import com.android.managedprovisioning.task.InstallExistingPackageTask;
45 import com.android.managedprovisioning.task.ManagedProfileSettingsTask;
46 import com.android.managedprovisioning.task.SetDevicePolicyTask;
47 import com.android.managedprovisioning.task.StartManagedProfileTask;
146 AbstractProvisioningTask task = verifyTaskRun(InstallExistingPackageTask.class); in testCancel() local
168 mController.onSuccess(task); in testCancel()
[all …]
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/ota/
DOtaControllerTest.java38 import com.android.managedprovisioning.task.AbstractProvisioningTask;
39 import com.android.managedprovisioning.task.CrossProfileIntentFiltersSetter;
40 import com.android.managedprovisioning.task.DeleteNonRequiredAppsTask;
41 import com.android.managedprovisioning.task.DisableInstallShortcutListenersTask;
42 import com.android.managedprovisioning.task.DisallowAddUserTask;
43 import com.android.managedprovisioning.task.InstallExistingPackageTask;
166 public synchronized void execute(int userId, AbstractProvisioningTask task) { in execute() argument
167 mTasks.add(Pair.create(userId, task)); in execute()
199 for (Pair<Integer, Class> task : tasks) { in assertTaskList()
200 assertTaskListContains(task.first, task.second); in assertTaskList()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/pipeline/
DProcessingTaskController.java42 ProcessingTask task = mTasks.get(msg.what);
43 if (task != null) {
45 task.onResult((ProcessingTask.Result) msg.obj);
47 task.onUpdate((ProcessingTask.Update) msg.obj);
57 ProcessingTask task = mTasks.get(msg.what); in handleMessage() local
58 if (task != null) { in handleMessage()
59 task.processRequest((ProcessingTask.Request) msg.obj); in handleMessage()
89 public void add(ProcessingTask task) { in add() argument
90 task.added(this); in add()
91 mTasks.put(task.getType(), task); in add() local
/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/
DDrawableDownloader.java228 DrawableLoader task = new DrawableLoader(null, mRecycledBitmaps) { in loadBitmapBlocking() local
238 return task.doInBackground(options); in loadBitmapBlocking()
259 DrawableLoader task = new DrawableLoader(imageView, mRecycledBitmaps) { in loadBitmap() local
269 imageView.setTag(R.id.imageDownloadTask, new SoftReference<DrawableLoader>(task)); in loadBitmap()
270 scheduleTask(task, options); in loadBitmap()
291 DrawableLoader task = new DrawableLoader(null, mRecycledBitmaps) { in getBitmap() local
306 callback.mTask = new SoftReference<DrawableLoader>(task); in getBitmap()
307 scheduleTask(task, options); in getBitmap()
310 private static void scheduleTask(DrawableLoader task, BitmapWorkerOptions options) { in scheduleTask() argument
312 task.executeOnExecutor(BITMAP_RESOURCE_DOWNLOADER_THREAD_POOL_EXECUTOR, options); in scheduleTask()
[all …]
DBitmapDownloader.java135 BitmapWorkerTask task = new BitmapWorkerTask(null) { in loadBitmapBlocking() local
146 return task.doInBackground(options); in loadBitmapBlocking()
167 BitmapWorkerTask task = new BitmapWorkerTask(imageView) { in loadBitmap() local
177 imageView.setTag(R.id.imageDownloadTask, new SoftReference<BitmapWorkerTask>(task)); in loadBitmap()
178 task.execute(options); in loadBitmap()
195 BitmapWorkerTask task = new BitmapWorkerTask(null) { in getBitmap() local
213 callback.mTask = new SoftReference<BitmapWorkerTask>(task); in getBitmap()
214 task.executeOnExecutor(BITMAP_DOWNLOADER_THREAD_POOL_EXECUTOR, options); in getBitmap()
223 BitmapWorkerTask task = null; in cancelDownload() local
229 task = softReference.get(); in cancelDownload()
[all …]
/packages/apps/Car/Hvac/src/com/android/car/hvac/
DHvacController.java397 final AsyncTask<Void, Void, Void> task = new AsyncTask<Void, Void, Void>() { in requestRefresh() local
428 task.execute(); in requestRefresh()
464 final AsyncTask<Void, Void, Void> task = new AsyncTask<Void, Void, Void>() { in setTemperature() local
477 task.execute(); in setTemperature()
490 final AsyncTask<Void, Void, Void> task = new AsyncTask<Void, Void, Void>() { in setSeatWarmerLevel() local
503 task.execute(); in setSeatWarmerLevel()
525 final AsyncTask<Void, Void, Void> task = new AsyncTask<Void, Void, Void>() { in setFanSpeed() local
552 task.execute(); in setFanSpeed()
584 final AsyncTask<Void, Void, Void> task = new AsyncTask<Void, Void, Void>() { in setDefrosterState() local
597 task.execute(); in setDefrosterState()
[all …]
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/util/
DSingleThreadNamedTaskExecutor.java56 public void execute(NamedTask task) { in execute() argument
60 mQueue.add(task); in execute()
76 NamedTask task; in loop() local
78 task = mQueue.take(); in loop()
82 currentThread.setName(threadName + " " + task.getName()); in loop()
84 if (DBG) Log.d(TAG, "Running task " + task.getName()); in loop()
85 task.run(); in loop()
86 if (DBG) Log.d(TAG, "Task " + task.getName() + " complete"); in loop()
88 Log.e(TAG, "Task " + task.getName() + " failed", ex); in loop()
DBatchingNamedTaskExecutor.java48 public void execute(NamedTask task) { in execute() argument
50 if (DBG) Log.d(TAG, "Queuing " + task); in execute()
51 mQueuedTasks.add(task); in execute()
55 private void dispatch(NamedTask task) { in dispatch() argument
56 if (DBG) Log.d(TAG, "Dispatching " + task); in dispatch()
57 mExecutor.execute(task); in dispatch()
74 for (NamedTask task : batch) { in executeNextBatch()
75 dispatch(task); in executeNextBatch()
/packages/apps/Camera2/src/com/android/camera/one/v2/imagesaver/
DYuvImageBackendImageSaver.java113 public void onStart(TaskImageContainer.TaskInfo task) { in onStart() argument
114 switch (task.destination) { in onStart()
125 public void onResultCompressed(TaskImageContainer.TaskInfo task, in onResultCompressed() argument
127 if (task.destination == TaskImageContainer.TaskInfo.Destination.FINAL_IMAGE) { in onResultCompressed()
134 public void onResultUncompressed(TaskImageContainer.TaskInfo task, in onResultUncompressed() argument
137 switch (task.destination) { in onResultUncompressed()
140 task.result.width, in onResultUncompressed()
141 task.result.height, Bitmap.Config.ARGB_8888); in onResultUncompressed()
146 task.result.width, in onResultUncompressed()
147 task.result.height, Bitmap.Config.ARGB_8888); in onResultUncompressed()
[all …]
/packages/apps/Launcher2/src/com/android/launcher2/
DAppsCustomizePagedView.java69 void run(AppsCustomizeAsyncTask task, AsyncTaskPageData data); in run() argument
933 AppsCustomizeAsyncTask task = (AppsCustomizeAsyncTask) iter.next(); in cancelAllTasks() local
934 task.cancel(false); in cancelAllTasks()
936 mDirtyPageContent.set(task.page, true); in cancelAllTasks()
939 View v = getPageAt(task.page); in cancelAllTasks()
963 AppsCustomizeAsyncTask task = (AppsCustomizeAsyncTask) iter.next(); in snapToPage() local
964 int pageIndex = task.page; in snapToPage()
967 task.setThreadPriority(getThreadPriorityForPage(pageIndex)); in snapToPage()
969 task.setThreadPriority(Process.THREAD_PRIORITY_LOWEST); in snapToPage()
1069 AppsCustomizeAsyncTask task = (AppsCustomizeAsyncTask) iter.next(); in getWidgetPageLoadPriority() local
[all …]
/packages/apps/Camera2/src/com/android/camera/processing/
DProcessingService.java195 ProcessingTask task; in asyncProcessAllTasksAndShutdown()
196 while ((task = mProcessingServiceManager.popNextSession()) != null) { in asyncProcessAllTasksAndShutdown()
197 mCurrentTask = task; in asyncProcessAllTasksAndShutdown()
206 processAndNotify(task); in asyncProcessAllTasksAndShutdown()
217 void processAndNotify(ProcessingTask task) { in processAndNotify() argument
218 if (task == null) { in processAndNotify()
222 CaptureSession session = task.getSession(); in processAndNotify()
228 session = mSessionManager.createNewSession(task.getName(), 0, task.getLocation()); in processAndNotify()
238 task.process(this, getServices(), session); in processAndNotify()
/packages/apps/DocumentsUI/src/com/android/documentsui/
DItemDragListener.java92 @Nullable TimerTask task = createOpenTask(v, event); in handleEnteredEvent() local
94 if (task == null) { in handleEnteredEvent()
97 v.setTag(R.id.drag_hovering_tag, task); in handleEnteredEvent()
98 mHoverTimer.schedule(task, mSpringTimeout); in handleEnteredEvent()
110 TimerTask task = (TimerTask) v.getTag(R.id.drag_hovering_tag); in handleExitedEndedEvent() local
111 if (task != null) { in handleExitedEndedEvent()
112 task.cancel(); in handleExitedEndedEvent()
130 TimerTask task = new TimerTask() { in createOpenTask() local
138 return task; in createOpenTask()

12345678