Home
last modified time | relevance | path

Searched refs:threads (Results 1 – 25 of 59) sorted by relevance

123

/frameworks/base/services/tests/servicestests/src/com/android/server/
DLockSettingsStorageTests.java119 List<Thread> threads = new ArrayList<>(); in testKeyValue_Concurrency() local
122 threads.add(new Thread() { in testKeyValue_Concurrency()
144 threads.get(i).start(); in testKeyValue_Concurrency()
150 for (int i = 0; i < threads.size(); i++) { in testKeyValue_Concurrency()
152 threads.get(i).join(); in testKeyValue_Concurrency()
163 List<Thread> threads = new ArrayList<>(); in testKeyValue_CacheStarvedWriter() local
166 threads.add(new Thread() { in testKeyValue_CacheStarvedWriter()
181 threads.get(i).start(); in testKeyValue_CacheStarvedWriter()
184 for (int i = 0; i < threads.size(); i++) { in testKeyValue_CacheStarvedWriter()
186 threads.get(i).join(); in testKeyValue_CacheStarvedWriter()
/frameworks/base/docs/html/training/multiple-threads/
Dindex.jd30 <li><a href="{@docRoot}guide/components/processes-and-threads.html">Processes and Threads</a></li>
43 split it into smaller operations running on multiple threads. On a device that has a CPU with
44 multiple processors (cores), the system can run the threads in parallel, rather than making each
50 This class shows you how to set up and use multiple threads in an Android app, using a
52 communicate between one of these threads and the UI thread.
Dcreate-threadpool.jd20 <li><a href="{@docRoot}guide/components/processes-and-threads.html">Processes and Threads</a></li>
39 you need to provide a managed collection of threads. To do this, use an instance of
49 <a href="{@docRoot}guide/components/processes-and-threads.html">
159 The initial number of threads to allocate to the pool, and the maximum allowable number.
160 The number of threads you can have in a thread pool depends primarily on the number of cores
217 To create a pool of threads, instantiate a thread pool manager by calling
219 This creates and manages a constrained group of threads. Because the initial pool size and
Ddefine-runnable.jd18 <li><a href="{@docRoot}guide/components/processes-and-threads.html">Processes and Threads</a></li>
45 automatically manages threads and task queues, and can even run multiple threads in parallel.
Drun-code.jd18 <li><a href="{@docRoot}guide/components/processes-and-threads.html">Processes and Threads</a></li>
131 immediately. However, it only stops threads that are waiting, and will not interrupt CPU or
Dcommunicate-ui.jd18 <li><a href="{@docRoot}guide/components/processes-and-threads.html">Processes and Threads</a></li>
46 {@link android.os.Handler} is part of the Android system's framework for managing threads. A
/frameworks/wilhelm/tests/sandbox/
Dmultithread.c37 pthread_t threads[MAX_THREAD]; variable
155 ok = pthread_create(&threads[i], (const pthread_attr_t *) NULL, thread_start, in main()
185 ok = pthread_join(threads[i], NULL); in main()
/frameworks/base/tests/CoreTests/android/core/
DTestWebServer.java42 Vector threads = new Vector(); field in TestWebServer
264 synchronized (threads) { in run()
265 if (threads.isEmpty()) { in run()
271 w = (Worker) threads.elementAt(0); in run()
272 threads.removeElementAt(0); in run()
407 Vector pool = threads; in run()
DSSLSocketTest.java394 Thread[] threads = new Thread[10]; in testMultithreadedFetch() local
396 for (int i = 0; i < threads.length; i++) { in testMultithreadedFetch()
397 threads[i] = new Thread() { in testMultithreadedFetch()
433 threads[i].start(); in testMultithreadedFetch()
438 for (int i = 0; i < threads.length; i++) { in testMultithreadedFetch()
440 threads[i].join(); in testMultithreadedFetch()
/frameworks/av/media/libnbaio/
DREADME.txt13 no mutexes, so safe to use between SCHED_NORMAL and SCHED_FIFO threads
29 no mutexes, so safe to use between SCHED_NORMAL and SCHED_FIFO threads
/frameworks/rs/cpu_ref/
DrsCpuIntrinsicHistogram.cpp104 const uint32_t threads = mCtx->getThreadCount(); in preLaunch() local
142 memset(mSums, 0, 256 * sizeof(int32_t) * threads * vSize); in preLaunch()
150 uint32_t threads = mCtx->getThreadCount(); in postLaunch() local
157 for (uint32_t t=1; t < threads; t++) { in postLaunch()
DrsCpuIntrinsicBlur.cpp446 uint32_t threads = mCtx->getThreadCount(); in ~RsdCpuScriptIntrinsicBlur() local
448 for (size_t i = 0; i < threads; i++) { in ~RsdCpuScriptIntrinsicBlur()
/frameworks/base/docs/html/guide/components/
Dprocesses-and-threads.jd18 <li><a href="#WorkerThreads">Worker threads</a></li>
35 threads for any process.</p>
37 <p>This document discusses how processes and threads work in an Android application.</p>
232 <h3 id="WorkerThreads">Worker threads</h3>
236 that are not instantaneous, you should make sure to do them in separate threads ("background" or
237 "worker" threads).</p>
260 threads. Here is a list of methods that can help:</p>
302 the UI thread, without requiring you to handle threads and/or handlers yourself.</p>
306 background threads. To update your UI, you should implement {@link
376 a pool of threads that the system maintains in the same process as the {@link android.os.IBinder
[all …]
/frameworks/base/docs/html/tools/debugging/
Ddebugging-projects.jd31 running threads</li>
55 <li>Threads - Shows currently running threads within a VM.</li>
Ddebugging-projects-cmdline.jd63 <p>Your IDE should attach to your application running on the emulator, showing you its threads
Dddms.jd128 classes and threads are allocating the objects. This allows you to track, in real time, where
175 <p>The Threads tab in DDMS shows you the currently running threads for a selected process.</p>
178 <li>In the Devices tab, select the process that you want to examine the threads for.</li>
/frameworks/base/docs/html/training/volley/
Dsimple.jd30 {@code Request} objects. The {@code RequestQueue} manages worker threads for running the
99 network dispatch threads. When you add a request to the queue, it is picked up by the cache
108 threads. You can add a request from any thread, but responses are always delivered on the
/frameworks/base/docs/html/training/articles/
Dsmp.jd101 when two or more of your threads are running simultaneously on different cores.
150 <p>Here’s a simple example, with code running on two threads:</p>
177 <p>Sequential consistency guarantees that, after both threads have finished
273 <p>This results in both reg1 and reg2 set to “false”, allowing the threads to
736 non-atomic increment (“++A”) executed on the same variable by two threads
754 <p>If the threads execute concurrently from top to bottom, both threads will
790 This behavior is important to understand when multiple threads are performing
888 <p>The memory barrier is necessary to ensure that other threads observe the
922 that other threads will see this value immediately. This isn’t a problem,
923 though, because we only need to keep the other threads <strong>out</strong>. The
[all …]
Dperf-anr.jd2 page.tags=threads,asynctask
152 android.os.Handler} for the other threads to post back to upon completion.
163 tasks via worker threads, your
Dperf-jni.jd13 <li><a href="#threads">Threads</a></li>
57 …thread-local storage. For this reason, <strong>you cannot share a JNIEnv between threads</strong>.
68 <a name="threads" id="threads"></a>
71 <p>All threads are Linux threads, scheduled by the kernel. They're usually
84 <p>Android does not suspend threads executing native code. If
200 between threads, and are valid until the matching Release call.)</p>
538 <li><b>Detaching threads</b>
/frameworks/av/media/libstagefright/codecs/on2/dec/
DSoftVPX.cpp77 cfg.threads = GetCPUCoreCount(); in initDecoder()
/frameworks/compile/mclinker/include/mcld/Config/
DConfig.h.in28 /* Define if you have POSIX threads libraries and header files. */
/frameworks/base/docs/html/guide/faq/
Dframework.jd44 separate pool of transaction threads in each process to dispatch all
45 incoming IPC calls. The developer should create separate threads for any
/frameworks/compile/slang/
DREADME.rst247 threads to complete pending operations. A few special functions can also
322 This may allow the runtime to make more effective use of threads.
/frameworks/base/docs/html-intl/intl/ja/guide/topics/
Dfundamentals.jd34 <li><a href="#threads">スレッド</a></li>
495 …理、ループ計算など)をできる限り避ける必要があるということです。時間がかかる処理には別のスレッドを生成できます。詳しくは、次の<a href="#threads">スレッド</a> セクションをご…
507 <h3 id="threads">スレッド</h3>

123