Home
last modified time | relevance | path

Searched refs:worker (Results 1 – 25 of 33) sorted by relevance

12

/frameworks/base/docs/html/training/articles/
Dperf-anr.jd56 worker thread and do most of the work there. This keeps the UI thread (which drives the user
91 resizing bitmaps should be done in a worker thread (or in the case of databases
94 <p>The most effective way to create a worker thread for longer
131 <p>To execute this worker thread, simply create an instance and
148 be sure that your UI thread does not block while waiting for the worker thread to
150 {@link java.lang.Thread#sleep Thread.sleep()}. Instead of blocking while waiting for a worker
163 tasks via worker threads, your
187 <li>For games specifically, do calculations for moves in a worker
/frameworks/base/docs/html/guide/components/
Dprocesses-and-threads.jd182 simply create a worker thread&mdash;particularly if the operation will likely outlast the activity.
224 your UI from a worker thread&mdash;you must do all manipulation to your user interface from the UI
237 "worker" threads).</p>
256 android.widget.ImageView} from the worker thread instead of the UI thread. This can result in
293 difficult to maintain. To handle more complex interactions with a worker thread, you might consider
294 using a {@link android.os.Handler} in your worker thread, to process messages delivered from the UI
296 which simplifies the execution of worker thread tasks that need to interact with the UI.</p>
302 interface. It performs the blocking operations in a worker thread and then publishes the results on
322 /** The system calls this to perform work in a worker thread and
337 part that should be done on a worker thread and the part that should be done on the UI thread.</p>
[all …]
Dservices.jd278 <dd>This is a subclass of {@link android.app.Service} that uses a worker thread to handle all
298 <li>Creates a default worker thread that executes all intents delivered to {@link
324 * constructor with a name for the worker thread.
331 * The IntentService calls this method from the default worker thread with
356 that the {@link android.app.IntentService} can properly handle the life of the worker thread.</p>
388 android.app.IntentService}. That is, for each start request, it uses a worker thread to perform the
/frameworks/av/media/libstagefright/webm/
DWebmFrameThread.cpp34 WebmFrameThread *worker = reinterpret_cast<WebmFrameThread*>(arg); in wrap() local
35 worker->run(); in wrap()
/frameworks/base/core/tests/BTtraffic/src/com/android/google/experimental/bttraffic/
DBTtraffic.java70 Runnable worker = in startWorker() local
75 mWorkerThread = new Thread(worker, "BTtrafficWorker"); in startWorker()
/frameworks/base/docs/html/training/volley/
Dsimple.jd30 {@code Request} objects. The {@code RequestQueue} manages worker threads for running the
104 parses the response on the worker thread, writes the response to cache, and posts the parsed
107 <p>Note that expensive operations like blocking I/O and parsing/decoding are done on worker
Drequest-custom.jd87 Volley calls {@code parseNetworkResponse()} from a worker thread. This ensures that
Drequest.jd54 expensive image operations (decoding, resizing) automatically happen on a worker thread.</li>
/frameworks/base/docs/html-intl/intl/zh-tw/guide/components/
Dservices.jd268 <dd>這是 {@link android.app.Service} 的子類別,會使用 worker 執行緒來處理所有的啟動要求,一次一個。
288 <li>建立預設的 worker 執行緒,該執行緒會執行所有傳送至 {@link
314 * constructor with a name for the worker thread.
321 * The IntentService calls this method from the default worker thread with
349 {@link android.app.IntentService} 才可以適當處理 worker 執行緒的生命。</p>
381 android.app.IntentService} 範例相同的工作。也就是,對每個啟動要求,會使用 worker 執行緒來執行工作,且一次只處理一個要求。
Dprocesses-and-threads.jd317 /** The system calls this to perform work in a worker thread and
/frameworks/base/services/core/java/com/android/server/
DAssetAtlasService.java374 ComputeWorker worker = new ComputeWorker(start, end, step, in computeBestConfiguration() local
376 new Thread(worker, "Atlas Worker #" + (i + 1)).start(); in computeBestConfiguration()
/frameworks/base/docs/html/training/improving-layouts/
Dsmooth-scrolling.jd40 <p>Using a background thread ("worker thread") removes strain from the main thread so it can focus
/frameworks/base/docs/html-intl/intl/ru/guide/components/
Dprocesses-and-threads.jd317 /** The system calls this to perform work in a worker thread and
Dservices.jd314 * constructor with a name for the worker thread.
321 * The IntentService calls this method from the default worker thread with
/frameworks/base/docs/html-intl/intl/zh-cn/guide/components/
Dprocesses-and-threads.jd317 /** The system calls this to perform work in a worker thread and
Dservices.jd314 * constructor with a name for the worker thread.
321 * The IntentService calls this method from the default worker thread with
/frameworks/base/docs/html-intl/intl/ko/guide/components/
Dprocesses-and-threads.jd317 /** The system calls this to perform work in a worker thread and
Dservices.jd314 * constructor with a name for the worker thread.
321 * The IntentService calls this method from the default worker thread with
/frameworks/base/docs/html-intl/intl/ja/guide/components/
Dprocesses-and-threads.jd317 /** The system calls this to perform work in a worker thread and
Dservices.jd314 * constructor with a name for the worker thread.
321 * The IntentService calls this method from the default worker thread with
/frameworks/base/docs/html/training/displaying-bitmaps/
Dprocess-bitmap.jd125 back to the worker task. In this case, a {@link android.graphics.drawable.BitmapDrawable} is used so
/frameworks/base/docs/html/training/location/
Ddisplay-address.jd109 The intent service handles an intent asynchronously on a worker thread, and
/frameworks/base/docs/html-intl/intl/in/guide/components/
Dservices.jd314 * constructor with a name for the worker thread.
321 * The IntentService calls this method from the default worker thread with
Dprocesses-and-threads.jd317 /** The system calls this to perform work in a worker thread and
/frameworks/base/docs/html/distribute/essentials/
Doptimizing-your-app.jd323 operations off the main thread to worker threads. Android offers built-in

12