/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/util/ |
SingleThreadNamedTaskExecutorTest.java | 50 MockTask task = new MockTask(name, id); local 51 mExecutor.execute(task); 52 return task;
|
PerNameExecutorTest.java | 101 MockTask task = new MockTask(name, id); local 102 mExecutor.execute(task); 103 return task; 107 * Run one task for each name.
|
/sdk/sdkmanager/libs/sdkuilib/src/com/android/sdkuilib/internal/tasks/ |
ProgressTaskFactory.java | 26 * for each new task.
36 public void start(String title, ITask task) {
37 new ProgressTask(mShell, title, task);
|
ProgressTask.java | 43 * The given task will execute in a separate thread (not the UI thread).
47 public ProgressTask(Shell parent, String title, ITask task) {
48 mDialog = new ProgressDialog(parent, createTaskThread(title, task));
54 * Sets the description in the current task dialog.
62 * Sets the description in the current task dialog.
119 * It is up to the task thread to pool this and exit.
126 * Creates a thread to run the task. The thread has not been started yet.
127 * When the task completes, requests to close the dialog.
128 * @return A new thread that will run the task. The thread has not been started yet.
130 private Thread createTaskThread(String title, final ITask task) {
[all...] |
/external/webkit/WebCore/wml/ |
WMLAnchorElement.cpp | 66 void WMLAnchorElement::registerTask(WMLTaskElement* task) 69 m_task = task; 72 void WMLAnchorElement::deregisterTask(WMLTaskElement* task) 74 ASSERT_UNUSED(task, m_task == task);
|
/frameworks/base/awt/org/apache/harmony/awt/wtk/ |
NativeEventQueue.java | 40 public static abstract class Task { 107 public abstract void performTask(Task task); 109 public abstract void performLater(Task task);
|
/external/emma/ant/ant14/com/vladium/emma/ant/ |
StringValue.java | 11 import org.apache.tools.ant.Task; 47 protected StringValue (final Task task) 49 if (task == null) throw new IllegalArgumentException ("null input: task"); 51 m_task = task; 55 protected final Task m_task;
|
/external/kernel-headers/original/linux/ |
ptrace.h | 55 * The owner ship rules for task->ptrace which holds the ptrace 56 * flags is simple. When a task is running it owns it's task->ptrace 57 * flags. When the a task is stopped the ptracer owns task->ptrace. 92 extern int ptrace_check_attach(struct task_struct *task, int kill); 99 extern int ptrace_may_attach(struct task_struct *task);
|
/external/webkit/WebKit/chromium/src/ |
WebWorkerBase.cpp | 141 void WebWorkerBase::dispatchTaskToMainThread(PassOwnPtr<ScriptExecutionContext::Task> task) 143 return callOnMainThread(invokeTaskMethod, task.release()); 148 ScriptExecutionContext::Task* task = local 149 static_cast<ScriptExecutionContext::Task*>(param); 150 task->performTask(0); 151 delete task; 295 void WebWorkerBase::postTaskToLoader(PassOwnPtr<ScriptExecutionContext::Task> task) [all...] |
/dalvik/libcore/concurrent/src/main/java/java/util/concurrent/ |
Executors.java | 96 * sequentially, and no more than one task will be active at any 177 * sequentially, and no more than one task will be active at any 194 * guaranteed to execute sequentially, and no more than one task 309 * any task runs in {@link ThreadPoolExecutor} subclasses using 328 * called, runs the given task and returns the given result. This 331 * @param task the task to run 334 * @throws NullPointerException if task null 336 public static <T> Callable<T> callable(Runnable task, T result) { 337 if (task == null [all...] |
AbstractExecutorService.java | 30 public Future<?> submit(Runnable task) { 31 if (task == null) throw new NullPointerException(); 32 FutureTask<Object> ftask = new FutureTask<Object>(task, null); 41 public <T> Future<T> submit(Runnable task, T result) { 42 if (task == null) throw new NullPointerException(); 43 FutureTask<T> ftask = new FutureTask<T>(task, result); 52 public <T> Future<T> submit(Callable<T> task) { 53 if (task == null) throw new NullPointerException(); 54 FutureTask<T> ftask = new FutureTask<T>(task); 87 // Start one task for sure; the rest incrementall [all...] |
Executor.java | 11 * interface provides a way of decoupling task submission from the 12 * mechanics of how each task will be run, including details of thread 27 * executor can run the submitted task immediately in the caller's 39 * for each task. 106 * @param command the runnable task 107 * @throws RejectedExecutionException if this task cannot be
|
ScheduledThreadPoolExecutor.java | 30 * <p>Successive executions of a task scheduled via 54 * 1. Using a custom task type, ScheduledFutureTask for 69 * different recheck logic when task (re)submission overlaps 72 * 4. Task decoration methods to allow interception and 120 /** The time the task is enabled to execute in nanoTime units */ 127 * non-repeating task. 131 /** The actual task to be re-enqueued by reExecutePeriodic */ 204 * Sets the next time to run for a periodic task. 238 * Returns true if can run a task given current run state 241 * @param periodic true if this task periodic, false if delaye [all...] |
ScheduledFuture.java | 12 * a task with a {@link ScheduledExecutorService}.
|
ThreadPoolExecutor.java | 13 * An {@link ExecutorService} that executes each submitted task using 19 * asynchronous tasks, due to reduced per-task invocation overhead, 47 * When a new task is submitted in method {@link #execute}, and fewer 115 * this would exceed maximumPoolSize, in which case, the task will be 125 * without otherwise holding them. Here, an attempt to queue a task 140 * each task is completely independent of others, so tasks cannot 182 * that invokes {@code execute} itself runs the task. This provides a 186 * <li> In {@link ThreadPoolExecutor.DiscardPolicy}, a task that 190 * executor is not shut down, the task at the head of the work queue 205 * before and after execution of each task. These can be used t 1057 Runnable task = w.firstTask; local [all...] |
/external/kernel-headers/original/asm-arm/ |
thread_info.h | 48 * low level task data that entry.S needs immediate access to. 55 struct task_struct *task; /* main task structure */ member in struct:thread_info 70 .task = &tsk, \ 97 extern struct thread_info *alloc_thread_info(struct task_struct *task); 130 * TIF_USEDFPU - FPU was used by this task this quantum (SMP)
|
/dalvik/libcore/luni/src/test/java/tests/api/java/util/ |
TimerTest.java | 111 // Ensure a task is run 143 // Ensure a task is run 175 // Ensure a task is run 219 // Ensure a task is run 256 // Ensure a task throws an IllegalStateException after cancelled 267 "Scheduling a task after Timer.cancel() should throw exception", 270 // Ensure a task is run but not after cancel 412 "Scheduling a task after Timer.cancel() should throw exception", 415 // Ensure a Timer throws an IllegalStateException if task already 428 "Scheduling a task after cancelling it should throw exception" [all...] |
TimerTaskTest.java | 102 // Ensure cancelled task never runs 109 // Ensure cancelling a task which has already run returns true 120 "TimerTask.cancel() should return false if task has run", 127 // Ensure cancelling a repeated execution task which has never run 137 // Ensure cancelling a repeated execution task which HAS run returns 158 "TimerTask.cancel() should return true if task has never run", 165 // Ensure cancelling a task won't cause deadlock 249 // Ensure a new task is never run 258 // Ensure a task is run
|
/external/proguard/examples/ |
proguardall.pro | 3 # (including its main application, its GUI, its Ant task, and its WTK plugin), 35 -adaptresourcefilecontents proguard/ant/task.properties 51 # If we have ant.jar, we can properly process the Ant task.
|
/external/kernel-headers/original/asm-x86/ |
processor-flags.h | 18 #define X86_EFLAGS_NT 0x00004000 /* Nested Task */ 32 #define X86_CR0_TS 0x00000008 /* Task Switched */ 64 * x86-64 Task Priority Register, CR8 66 #define X86_CR8_TPR 0x0000000F /* task priority register */
|
/external/proguard/examples/ant/ |
proguard.xml | 2 main application, its GUI, its Ant task, and its WTK plugin), and the 9 <taskdef resource="proguard/ant/task.properties" 33 <adaptresourcefilecontents filter="proguard/ant/task.properties" /> 56 <!-- If we have ant.jar, we can properly process the Ant task. -->
|
/external/webkit/WebCore/storage/ |
LocalStorageThread.cpp | 68 while (OwnPtr<LocalStorageTask> task = m_queue.waitForMessage()) 69 task->performTask(); 74 void LocalStorageThread::scheduleTask(PassOwnPtr<LocalStorageTask> task) 78 m_queue.append(task);
|
/frameworks/base/services/java/com/android/server/am/ |
TaskRecord.java | 27 final int taskId; // Unique identifier for this task. 28 final String affinity; // The affinity name for this task, or null. 30 Intent intent; // The original intent that started the task. 31 Intent affinityIntent; // Intent of affinity-moved activity that started this task. 33 ComponentName realActivity; // The actual activity component that started the task. 34 int numActivities; // Current number of activities in this task. 35 long lastActiveTime; // Last time this task was active, including sleep. 36 boolean rootWasReset; // True if the intent at the root of the task had 83 // task as having a true root activity.
|
/frameworks/base/tools/aidl/ |
options.h | 18 int task; member in struct:Options
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ |
QueryTask.java | 26 * A task that gets suggestions from a corpus. 36 * Creates a new query task. 86 QueryTask<C> task = new QueryTask<C>(query, maxResultsPerProvider, provider, handler, local 88 executor.execute(task);
|