/frameworks/base/libs/hwui/thread/ |
H A D | TaskProcessor.h | 36 virtual void process(const sp<TaskBase>& task) = 0; 45 bool add(const sp<Task<T> >& task); 47 virtual void onProcess(const sp<Task<T> >& task) = 0; 50 virtual void process(const sp<TaskBase>& task) { argument 51 sp<Task<T> > realTask = static_cast<Task<T>* >(task.get()); 53 // sp<Task<T> > realTask = static_cast<sp<Task<T> > >(task); 61 bool TaskProcessor<T>::add(const sp<Task<T> >& task) { argument 64 return mManager->addTask(task, self);
|
H A D | TaskManager.h | 44 * Returns true if this task manager can run tasks, 61 bool addTask(const sp<Task<T> >& task, const sp<TaskProcessor<T> >& processor) { argument 62 return addTaskBase(sp<TaskBase>(task), sp<TaskProcessorBase>(processor)); 65 bool addTaskBase(const sp<TaskBase>& task, const sp<TaskProcessorBase>& processor); 70 TaskWrapper(const sp<TaskBase>& task, const sp<TaskProcessorBase>& processor): argument 71 mTask(task), mProcessor(processor) { 82 bool addTask(TaskWrapper task); 94 // task is available in the list
|
H A D | TaskManager.cpp | 57 bool TaskManager::addTaskBase(const sp<TaskBase>& task, const sp<TaskProcessorBase>& processor) { argument 59 TaskWrapper wrapper(task, processor); 90 const TaskWrapper& task = tasks.itemAt(i); local 91 task.mProcessor->process(task.mTask); 97 bool TaskManager::WorkerThread::addTask(TaskWrapper task) { argument 103 ssize_t index = mTasks.add(task);
|
/frameworks/base/tools/aidl/ |
H A D | options.h | 18 int task; member in struct:Options
|
/frameworks/base/tests/ActivityTests/src/com/google/android/test/activity/ |
H A D | ActivityTestMain.java | 74 final ActivityManager.RecentTaskInfo task, 88 if (task.id >= 0 && thumbs != null) { 90 mAm.removeSubTask(task.id, subIndex+1); 92 mAm.moveTaskToFront(task.id, ActivityManager.MOVE_TASK_WITH_HOME); 95 startActivity(task.baseIntent); 97 Log.w("foo", "Unable to start task: " + e); 106 if (task.id >= 0 && thumbs != null) { 108 mAm.removeTask(task.id, ActivityManager.REMOVE_TASK_KILL_PROCESS); 110 mAm.removeSubTask(task.id, subIndex); 73 addThumbnail(LinearLayout container, Bitmap bm, final ActivityManager.RecentTaskInfo task, final ActivityManager.TaskThumbnails thumbs, final int subIndex) argument
|
/frameworks/support/v4/java/android/support/v4/content/ |
H A D | AsyncTaskLoader.java | 119 * Attempt to cancel the current load task. See {@link android.os.AsyncTask#cancel(boolean)} 129 * @return Returns <tt>false</tt> if the task could not be cancelled, 138 // There was a pending task already waiting for a previous 141 "cancelLoad: still waiting for cancelled task; dropping next"); 149 // There is a task, but it is waiting for the time it should 151 if (DEBUG) Log.v(TAG, "cancelLoad: task is waiting, dropping it"); 170 * Called if the task was canceled before it was completed. Gives the class a chance 199 void dispatchOnCancelled(LoadTask task, D data) { argument 201 if (mCancellingTask == task) { 202 if (DEBUG) Log.v(TAG, "Cancelled task i 210 dispatchOnLoadComplete(LoadTask task, D data) argument [all...] |
H A D | ModernAsyncTask.java | 86 * Indicates the current status of the task. Each status will be set only once 87 * during the lifetime of a task. 91 * Indicates that the task has not been executed yet. 95 * Indicates that the task is running. 115 * Creates a new asynchronous task. This constructor must be invoked on the UI thread. 164 * Returns the current status of this task. 175 * by the caller of this task. 180 * @param params The parameters of the task. 182 * @return A result, defined by the subclass of this task. 203 * <p>This method won't be invoked if the task wa 492 AsyncTaskResult(ModernAsyncTask task, Data... data) argument [all...] |
/frameworks/base/core/java/android/content/ |
H A D | AsyncTaskLoader.java | 60 // Set to true to indicate that the task has been posted to a handler for 78 // reflect the fact that the task was being canceled. 109 /* Runs on the UI thread, when the waiting task is posted to a handler. 110 * This method is only executed when task execution was deferred (waiting was true). */ 117 /* Used for testing purposes to wait for the task to complete. */ 174 // There was a pending task already waiting for a previous 177 "cancelLoad: still waiting for cancelled task; dropping next"); 185 // There is a task, but it is waiting for the time it should 187 if (DEBUG) Slog.v(TAG, "cancelLoad: task is waiting, dropping it"); 207 * Called if the task wa 239 dispatchOnCancelled(LoadTask task, D data) argument 252 dispatchOnLoadComplete(LoadTask task, D data) argument [all...] |
/frameworks/base/services/java/com/android/server/wm/ |
H A D | TaskStack.java | 96 * @param task The task to add. 99 boolean addTask(Task task, boolean toTop) { argument 108 if (task.mUserId != currentUserId) { 109 // Place the task below all current user tasks. 118 if (DEBUG_TASK_MOVEMENT) Slog.d(TAG, "addTask: task=" + task + " toTop=" + toTop 120 mTasks.add(stackNdx, task); 122 task.mStack = this; 126 boolean moveTaskToTop(Task task) { argument 133 moveTaskToBottom(Task task) argument 144 removeTask(Task task) argument [all...] |
/frameworks/base/core/java/android/os/ |
H A D | AsyncTask.java | 46 * <p>An asynchronous task is defined by a computation that runs on a background thread and 47 * whose result is published on the UI thread. An asynchronous task is defined by 3 generic 89 * <p>Once created, a task is executed very simply:</p> 95 * <p>The three types used by an asynchronous task are the following:</p> 97 * <li><code>Params</code>, the type of the parameters sent to the task upon 104 * <p>Not all types are always used by an asynchronous task. To mark a type as unused, 111 * <p>When an asynchronous task is executed, the task goes through 4 steps:</p> 113 * <li>{@link #onPreExecute()}, invoked on the UI thread before the task 114 * is executed. This step is normally used to setup the task, fo 663 AsyncTaskResult(AsyncTask task, Data... data) argument [all...] |
H A D | Handler.java | 418 * Runs the specified task synchronously. 429 * must synchronously await completion of a task that must run on the 746 public BlockingRunnable(Runnable task) { argument 747 mTask = task;
|
/frameworks/base/libs/hwui/ |
H A D | PathCache.cpp | 218 // If there is a pending task we must wait for it to return 220 const sp<Task<SkBitmap*> >& task = texture->task(); local 221 if (task != NULL) { 222 SkBitmap* bitmap = task->getResult(); 225 // If there is a pending task, the path was not added 343 void PathCache::PathProcessor::onProcess(const sp<Task<SkBitmap*> >& task) { argument 344 sp<PathTask> t = static_cast<PathTask* >(task.get()); 437 const sp<Task<SkBitmap*> >& task = texture->task(); local 486 sp<PathTask> task = new PathTask(path, paint, texture); local [all...] |
H A D | PathCache.h | 81 sp<Task<SkBitmap*> > task() const { function in struct:android::uirenderer::PathTexture 85 void setTask(const sp<Task<SkBitmap*> >& task) { argument 86 mTask = task; 313 virtual void onProcess(const sp<Task<SkBitmap*> >& task);
|
/frameworks/opt/net/voip/src/java/com/android/server/sip/ |
H A D | SipService.java | 1226 public void execute(Runnable task) { argument 1227 mMyWakeLock.acquire(task); 1228 Message.obtain(this, 0/* don't care */, task).sendToTarget(); 1240 private void executeInternal(Runnable task) { argument 1242 task.run(); 1244 loge("run task: " + task, t); 1246 mMyWakeLock.release(task);
|
/frameworks/base/services/java/com/android/server/am/ |
H A D | ActivityRecord.java | 96 TaskRecord task; // the task this is in. field in class:ActivityRecord 119 boolean frontOfTask; // is this the root activity of its task? 157 pw.print(" task="); pw.println(task); 482 if (task != null && task.removeActivity(this)) { 483 mStackSupervisor.removeTask(task); 486 if (task != null) { 487 task [all...] |
H A D | ActivityStack.java | 108 // How long until we reset a task when the user returns to it. Currently 357 final TaskRecord task = mTaskHistory.get(taskNdx); 358 final ArrayList<ActivityRecord> activities = task.mActivities; 374 * @param taskId If non-zero, we'll attempt to skip over records with the same task ID. 380 TaskRecord task = mTaskHistory.get(taskNdx); 381 if (task.taskId == taskId) { 384 ArrayList<ActivityRecord> activities = task.mActivities; 397 // Iterate to find the first non-empty task stack. Note that this code can 418 final TaskRecord task = mTaskHistory.get(taskNdx); 419 if (task 1640 insertTaskAtTop(TaskRecord task) argument 1843 resetTargetTaskIfNeededLocked(TaskRecord task, boolean forceReset) argument 1999 resetAffinityTaskIfNeededLocked(TaskRecord affinityTask, TaskRecord task, boolean topTaskIsHigher, boolean forceReset, int taskInsertionPoint) argument 3124 logStartActivity(int tag, ActivityRecord r, TaskRecord task) argument 3551 removeTask(TaskRecord task) argument 3571 addTask(final TaskRecord task, final boolean toTop) argument [all...] |
H A D | ActivityStackSupervisor.java | 131 * new task is created. */ 288 prev.task.mOnTopOfHome = false; 306 TaskRecord task = stack.taskForIdLocked(id); 307 if (task != null) { 308 return task; 334 void removeTask(TaskRecord task) { argument 335 mWindowManager.removeTask(task.taskId); 336 final ActivityStack stack = task.stack; 338 if (r != null && r.task == task) { [all...] |
H A D | ActivityManagerService.java | 674 * waiting to receive all of the thumbnails for a task. 2235 r.task.stack.notifyActivityDrawnLocked(r); 2253 msg.obj = r.task.askedCompatMode ? null : r; 3184 final void addRecentTaskLocked(TaskRecord task) { argument 3186 // Quick case: check if the top-most recent task is the same. 3187 if (N > 0 && mRecentTasks.get(0) == task) { 3190 // Remove any existing entries that are the same kind of task. 3193 if (task.userId == tr.userId 3194 && ((task.affinity != null && task 6871 moveTaskToFront(int task, int flags, Bundle options) argument 6942 moveTaskBackwards(int task) argument 6957 moveTaskBackwardsLocked(int task) argument [all...] |
/frameworks/base/media/jni/mediaeditor/ |
H A D | VideoEditorMain.cpp | 136 int task, 1407 pContext->onProgressUpdateMethodId, 1/*task status*/, 1421 pContext->onProgressUpdateMethodId, 1/*task status*/, 1430 pContext->onProgressUpdateMethodId, 0/*task status*/, 2421 int task, 2433 videoEditJava_getEngineCToJava(task), progress); 2771 // Check if a task is being performed. 2419 videoEditor_callOnProgressUpdate( ManualEditContext* pContext, int task, int progress) argument
|
/frameworks/webview/chromium/java/com/android/webview/chromium/ |
H A D | WebViewChromium.java | 94 public void addTask(Runnable task) { argument 95 mQueue.add(task); 111 Runnable task = mQueue.poll(); 112 while(task != null) { 113 task.run(); 114 task = mQueue.poll(); 164 private <T> T runBlockingFuture(FutureTask<T> task) { argument 169 mRunQueue.addTask(task); 171 return task.get(4, TimeUnit.SECONDS); 184 FutureTask<Void> task [all...] |
/frameworks/base/core/java/android/app/ |
H A D | ActivityManagerNative.java | 579 int task = data.readInt(); 583 moveTaskToFront(task, fl, options); 590 int task = data.readInt(); 591 moveTaskToBack(task); 608 int task = data.readInt(); 609 moveTaskBackwards(task); 2663 public void moveTaskToFront(int task, int flags, Bundle options) throws RemoteException argument 2668 data.writeInt(task); 2681 public void moveTaskToBack(int task) throws RemoteException argument 2686 data.writeInt(task); 2706 moveTaskBackwards(int task) argument [all...] |
H A D | IActivityManager.java | 116 public void moveTaskToFront(int task, int flags, Bundle options) throws RemoteException; argument 117 public void moveTaskToBack(int task) throws RemoteException; argument 119 public void moveTaskBackwards(int task) throws RemoteException; argument
|