HomeSort by relevance Sort by last modified time
    Searched defs:thread (Results 226 - 250 of 1272) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /cts/hostsidetests/statsd/apps/statsdapp/src/com/android/server/cts/device/statsd/
StatsdCtsForegroundService.java 57 Thread.sleep(SLEEP_OF_FOREGROUND_SERVICE);
60 Thread.currentThread().interrupt();
71 // Start up the thread running the service. Note that we create a
72 // separate thread because the service normally runs in the process's
73 // main thread, which we don't want to block. We also make it
75 HandlerThread thread = new HandlerThread("ServiceStartArguments", local
77 thread.start();
80 mServiceLooper = thread.getLooper();
  /cts/tests/tests/media/src/android/media/cts/
ResourceManagerStubActivity.java 78 Thread thread = new Thread() { local
87 Thread.sleep(5000); // wait for process to launch and allocate all codecs.
101 thread.start();
102 thread.join(20000 /* millis */);
104 Thread.sleep(5000); // give the gc a chance to release test activities.
  /external/guava/guava/src/com/google/common/base/internal/
Finalizer.java 29 * Thread that finalizes referents. All references should implement
38 * Google Collections, this thread would keep an indirect strong reference
59 * Starts the Finalizer thread. FinalizableReferenceQueue calls this method
63 * @param queue a reference queue that the thread will poll.
86 Thread thread = new Thread(finalizer); local
87 thread.setName(Finalizer.class.getName());
88 thread.setDaemon(true);
92 inheritableThreadLocals.set(thread, null)
    [all...]
  /external/ims/rcs/presencepolling/src/com/android/service/ims/presence/
PersistService.java 51 * This service essentially plays the role of a "worker thread", allowing us to store
69 // separate thread because the service normally runs in the process's
70 // main thread, which we don't want to block.
71 HandlerThread thread = new HandlerThread("PersistServiceThread", local
73 thread.start();
75 mServiceLooper = thread.getLooper();
125 logger.print( "Thread=" + Thread.currentThread().getName() + " received "
  /external/testng/src/main/java/org/testng/internal/thread/
ThreadUtil.java 1 package org.testng.internal.thread;
24 * @return true if the current thread was created by TestNG.
27 return Thread.currentThread().getName().contains(THREAD_NAME);
51 public Thread newThread(Runnable r) {
52 Thread result = new Thread(r);
78 Thread.currentThread().interrupt();
85 * Returns a readable name of the current executing thread.
88 Thread thread= Thread.currentThread(); local
    [all...]
  /frameworks/base/media/java/android/mtp/
MtpServer.java 60 Thread thread = new Thread(this, "MtpServer"); local
61 thread.start();
  /frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/
MtpManagerTest.java 76 final Thread thread = new Thread(future); local
77 thread.start();
  /frameworks/base/telephony/java/android/telephony/
TelephonyScanManager.java 105 HandlerThread thread = new HandlerThread(TAG); local
106 thread.start();
107 mLooper = thread.getLooper();
  /libcore/luni/src/test/java/libcore/java/net/
SocketTimeoutTest.java 122 Thread thread = new Thread(() -> { local
134 thread.start();
136 // Wait for the thread to start.
145 // Make sure the writing thread completes after the socket is closed.
  /libcore/ojluni/src/main/java/java/util/
Timer.java 33 * background thread. Tasks may be scheduled for one-time execution, or for
37 * thread that is used to execute all of the timer's tasks, sequentially.
39 * to complete, it "hogs" the timer's task execution thread. This can, in
46 * execution thread terminates gracefully (and becomes subject to garbage
48 * default, the task execution thread does not run as a <i>daemon thread</i>,
50 * wants to terminate a timer's task execution thread rapidly, the caller
53 * <p>If the timer's task execution thread terminates unexpectedly, for
59 * <p>This class is thread-safe: multiple threads can share a single
68 * ScheduledThreadPoolExecutor} which is a thread pool for repeatedl
108 private final TimerThread thread = new TimerThread(queue); field in class:Timer
    [all...]
  /packages/apps/DeskClock/src/com/android/deskclock/
AsyncRingtonePlayer.java 26 * dedicated thread so that this class can be called from the main thread. Consequently, problems
27 * controlling the ringtone do not cause ANRs in the main thread of the application.</p>
57 // Message codes used with the ringtone thread.
64 /** Handler running on the ringtone thread. */
101 * Posts a message to the ringtone-thread handler.
128 * Creates a new ringtone Handler running in its own thread.
132 final HandlerThread thread = new HandlerThread("ringtone-player"); local
133 thread.start();
135 return new Handler(thread.getLooper())
    [all...]
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
ExecutorUtils.java 23 import java.lang.Thread.UncaughtExceptionHandler;
54 public Thread newThread(final Runnable runnable) {
55 Thread thread = new Thread(runnable, TAG); local
56 thread.setUncaughtExceptionHandler(new UncaughtExceptionHandler() {
58 public void uncaughtException(Thread thread, Throwable ex) {
62 return thread;
145 if (Thread.interrupted())
    [all...]
  /art/test/129-ThreadGetId/src/
Main.java 25 final Thread[] threads = new Thread[numberOfThreads];
27 threads[t] = new Thread(new Main());
30 for (Thread t : threads) {
39 static Thread getHeapTaskDaemon() throws Exception {
46 Thread[] array = new Thread[activeCount];
48 for (Thread thread : array) {
49 if (thread.getName().equals("HeapTaskDaemon") &
67 Thread thread = pair.getKey(); local
    [all...]
  /bionic/tests/
semaphore_test.cpp 209 pthread_t thread; local
210 ASSERT_EQ(0, pthread_create(&thread, nullptr, SemWaitEINTRThreadFn, &s));
211 // Give some time for the thread to run sem_wait.
213 ASSERT_EQ(0, pthread_kill(thread, SIGUSR1));
214 // Give some time for the thread to handle signal.
218 ASSERT_EQ(0, pthread_join(thread, &result));
232 pthread_t thread; local
233 ASSERT_EQ(0, pthread_create(&thread, nullptr, SemWaitEINTRThreadFn, &s));
234 // Give some time for the thread to run sem_wait.
236 ASSERT_EQ(0, pthread_kill(thread, SIGUSR1))
    [all...]
  /development/tools/bugreport/src/com/android/bugreport/logcat/
LogLine.java 58 * The thread that emitted the log.
91 * The thread associated with this log line.
95 public ThreadInfo thread; field in class:LogLine
  /external/autotest/client/tests/monotonic_time/src/
threads.c 19 typedef struct thread { struct
20 pthread_t thread; member in struct:thread
31 * Helper function to run a thread on a specific set of CPUs.
35 thread_t *thread = arg; local
38 if (sched_setaffinity(0, sizeof thread->cpus, &thread->cpus) < 0)
41 result = thread->func(thread->arg);
58 thread_t *thread; local
64 thread = &threads[num_threads++]
93 thread_t *thread; local
    [all...]
  /external/compiler-rt/lib/msan/
msan_thread.cc 14 MsanThread *thread = (MsanThread*)MmapOrDie(size, __func__); local
15 thread->start_routine_ = start_routine;
16 thread->arg_ = arg;
17 thread->destructor_iterations_ = GetPthreadDestructorIterations();
19 return thread;
58 // We also clear the shadow on thread destruction because
71 // start_routine_ == 0 if we're on the main thread or on one of the
  /external/compiler-rt/lib/tsan/rtl/
tsan_debugging.cc 25 if (typ == ReportTypeThreadLeak) return "thread-leak";
146 ReportThread *thread = rep->threads[idx]; local
147 *tid = thread->id;
148 *os_id = thread->os_id;
149 *running = thread->running;
150 *name = thread->name;
151 *parent_tid = thread->parent_tid;
152 if (thread->stack) CopyTrace(thread->stack->frames, trace, trace_size);
  /external/elfutils/tests/
backtrace-child.c 21 Main thread will signal SIGUSR2. Other thread will signal SIGUSR1.
221 pthread_t thread; local
222 int i = pthread_create (&thread, NULL, start, NULL);
233 pthread_join (thread, NULL);
backtrace-dwarf.c 98 Dwfl_Thread *thread = dwfl_frame_thread (state); local
99 Dwfl *dwfl = dwfl_thread_dwfl (thread);
118 thread_callback (Dwfl_Thread *thread, void *thread_arg)
120 dwfl_thread_getframes (thread, frame_callback, NULL);
  /external/libchrome/base/threading/
simple_thread.cc 31 DCHECK(!HasBeenStarted()) << "Tried to Start a thread multiple times.";
40 event_.Wait(); // Wait for the thread to complete initialization.
44 DCHECK(options_.joinable) << "A non-joinable thread can't be joined.";
45 DCHECK(HasBeenStarted()) << "Tried to Join a never-started thread.";
46 DCHECK(!HasBeenJoined()) << "Tried to Join a thread multiple times.";
65 // We've initialized our new thread, signal that we're done to Start().
112 DelegateSimpleThread* thread = new DelegateSimpleThread(this, name_prefix_); local
113 thread->Start();
114 threads_.push_back(thread);
  /external/libcups/cups/
thread.c 20 #include "thread-private.h"
147 * '_cupsThreadCancel()' - Cancel (kill) a thread.
151 _cupsThreadCancel(_cups_thread_t thread)/* I - Thread ID */
153 pthread_cancel(thread);
158 * '_cupsThreadCreate()' - Create a thread.
161 _cups_thread_t /* O - Thread ID */
166 pthread_t thread; local
168 if (pthread_create(&thread, NULL, (void *(*)(void *))func, arg))
171 return (thread);
    [all...]
  /external/linux-kselftest/tools/testing/selftests/powerpc/dscr/
dscr_default_test.c 23 unsigned long thread = (unsigned long)in; local
46 fprintf(stderr, "thread %ld kernel DSCR should be %ld "
47 "but is %ld\n", thread, d, cur_dscr);
48 result[thread] = 1;
49 pthread_exit(&result[thread]);
53 fprintf(stderr, "thread %ld user DSCR should be %ld "
54 "but is %ld\n", thread, d, cur_dscr_usr);
55 result[thread] = 1;
56 pthread_exit(&result[thread]);
59 result[thread] = 0
    [all...]
  /external/linux-kselftest/tools/testing/selftests/powerpc/tm/
tm-tmspr.c 15 * (2) in each thread:
101 pthread_t thread; local
112 if (pthread_create(&thread, NULL, (void*)tfiar_tfhar, (void *)i))
115 if (pthread_join(thread, NULL) != 0)
120 if (pthread_create(&thread, NULL, (void*)texasr, (void *)i))
123 if (pthread_join(thread, NULL) != 0)
  /external/ltp/testcases/kernel/syscalls/sched_getattr/
sched_getattr01.c 95 pthread_t thread; local
106 pthread_create(&thread, NULL, run_deadline, NULL);
107 pthread_join(thread, NULL);

Completed in 1063 milliseconds

1 2 3 4 5 6 7 8 91011>>