HomeSort by relevance Sort by last modified time
    Searched defs:Thread (Results 201 - 225 of 435) sorted by null

1 2 3 4 5 6 7 891011>>

  /packages/apps/TV/src/com/android/tv/search/
DataManagerSearch.java 83 Thread.interrupted();
  /packages/services/Mms/src/com/android/mms/service/
MmsConfigManager.java 106 // TODO (ywen) - AsyncTask to avoid creating a new thread?
107 new Thread() {
127 * thread after a recent LISTEN_SUBSCRIPTION_INFO_LIST_CHANGED event.
  /packages/services/Telecomm/testapps/src/com/android/server/telecom/testapps/
CameraThread.java 28 import java.lang.Thread;
33 * Camera thread class used for handling camera callbacks.
45 * Create and start a looper thread, return the Handler
50 Log.w(TAG, "Looper thread already started");
54 new Thread() {
59 // Save the looper so that we can terminate this thread
77 * Terminate the looper thread
81 Log.w(TAG, "Looper thread doesn't start yet");
85 if (VERBOSE) Log.v(TAG, "Terminate looper thread");
  /external/guava/guava-tests/test/com/google/common/collect/
QueuesTest.java 167 // Clean up produced element to free the producer thread, otherwise it will complain
179 threadPool.submit(new Interrupter(Thread.currentThread()));
194 final Thread mainThread = Thread.currentThread();
205 // so when this drains all elements, we know the thread has also been interrupted in between
206 assertTrue(Thread.interrupted());
251 threadPool.submit(new Interrupter(Thread.currentThread()));
257 // we indeed waited; a slow thread had enough time to interrupt us
267 threadPool.submit(new Interrupter(Thread.currentThread()));
274 while (!Thread.interrupted()) { Thread.yield();
    [all...]
SynchronizedDequeTest.java 45 assertTrue(Thread.holdsLock(mutex));
51 assertTrue(Thread.holdsLock(mutex));
57 assertTrue(Thread.holdsLock(mutex));
63 assertTrue(Thread.holdsLock(mutex));
69 assertTrue(Thread.holdsLock(mutex));
76 assertFalse(Thread.holdsLock(mutex));
82 assertTrue(Thread.holdsLock(mutex));
88 assertTrue(Thread.holdsLock(mutex));
94 assertTrue(Thread.holdsLock(mutex));
100 assertTrue(Thread.holdsLock(mutex))
    [all...]
  /art/test/924-threads/src/art/
Test924.java 32 // Run the test on its own thread, so we have a known state for the "current" thread.
33 Thread t = new Thread("TestThread") {
48 Thread t1 = Thread.currentThread();
49 Thread t2 = getCurrentThread();
63 Thread t3 = new Thread("Daemon Thread");
    [all...]
  /external/v8/src/base/platform/
platform-posix.cc 67 // 0 is never a valid thread id.
543 // POSIX thread support.
546 class Thread::PlatformData {
549 pthread_t thread_; // Thread handle for pthread.
550 // Synchronizes thread creation
554 Thread::Thread(const Options& options)
565 Thread::~Thread() {
574 STATIC_ASSERT(Thread::kMaxThreadNameLength <= PTHREAD_MAX_NAMELEN_NP)
598 Thread* thread = reinterpret_cast<Thread*>(arg); local
    [all...]
  /frameworks/base/core/java/com/android/internal/os/
RuntimeInit.java 65 * Logs a message when a thread encounters an uncaught exception. By
69 private static class LoggingHandler implements Thread.UncaughtExceptionHandler {
71 public void uncaughtException(Thread t, Throwable e) {
101 private static class KillApplicationHandler implements Thread.UncaughtExceptionHandler {
102 public void uncaughtException(Thread t, Throwable e) {
143 Thread.setUncaughtExceptionPreHandler(new LoggingHandler());
144 Thread.setDefaultUncaughtExceptionHandler(new KillApplicationHandler());
  /libcore/luni/src/test/java/libcore/java/lang/
OldThreadGroupTest.java 27 public class OldThreadGroupTest extends TestCase implements Thread.UncaughtExceptionHandler {
29 class MyThread extends Thread {
42 Thread.sleep(50);
58 Thread.yield();
70 // A thread that runs in initialThreadGroup throughout each test.
78 Thread t1 = new Thread(tg, new Runnable() {
98 ThreadGroup tg = new ThreadGroup("thread suspension");
99 assertTrue("Thread suspention can not be changed",
101 assertTrue("Thread suspention can not be changed"
281 Thread thread = launchFiveSecondDummyThread(group); local
297 Thread thread = new Thread(group, "Bar") { local
376 MyThread thread = new MyThread(group, "MyThread " + i + " of " + threadCount); local
    [all...]
OldThreadTest.java 51 st = new Thread(tg, new SimpleThread(1), "SimpleThread3", 1);
52 assertTrue("Constructed incorrect thread", (st.getThreadGroup() == tg)
62 new Thread(tg, new SimpleThread(1), "SimpleThread3",
76 Thread.dumpStack();
81 assertTrue(s.contains("java.lang.Thread.dumpStack"));
90 boolean b = Thread.holdsLock(this);
91 assertTrue("Thread should hold lock for object", b);
95 boolean b = Thread.holdsLock(this);
96 assertFalse("Thread should not hold lock for object", b);
104 final Thread parker = new Thread()
157 Thread thread = new Thread() { local
391 Thread thread = launchFiveSecondDummyThread(); local
418 Thread thread = new Thread() { local
444 Thread thread = launchFiveSecondDummyThread(); local
    [all...]
  /art/test/616-cha/src/
Main.java 97 // Wait for the other thread to start.
102 // Wake up the other thread.
107 // This is the other thread.
203 assertSingleImplementation(java.lang.Thread.class, "join", true);
222 // Create another thread that also calls sMain1.foo().
223 // Try to test suspend and deopt another thread.
224 new Thread() {
  /art/test/904-object-allocation/src/art/
Test904.java 61 enableAllocationTracking(Thread.currentThread(), true);
65 enableAllocationTracking(Thread.currentThread(), false);
70 System.out.println("Tracking on same thread");
77 System.out.println("Tracking on same thread, not disabling tracking");
82 System.out.println("Tracking on different thread");
103 final Thread thisThread = Thread.currentThread();
105 Thread t = new Thread() {
125 enableAllocationTracking(sameThread ? t : Thread.currentThread(), true)
    [all...]
  /art/test/923-monitors/src/art/
Test923.java 96 firstAwakened = Thread.currentThread();
103 List<Thread> threads = new ArrayList<Thread>();
105 Thread t = new Thread(r);
114 Thread.yield();
115 Thread.sleep(500);
126 Thread.yield();
127 Thread.sleep(500);
138 for (Thread t : threads)
    [all...]
  /art/test/991-field-trace-2/src/art/
Test991.java 171 Trace.disableTracing(Thread.currentThread());
178 Thread.currentThread());
211 Trace.disableTracing(Thread.currentThread());
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/
AudioRecordHelper.java 100 new Thread() {
  /cts/hostsidetests/jvmti/allocation-tracking/app/src/android/jvmti/cts/
JvmtiTrackingTest.java 77 enableAllocationTracking(Thread.currentThread(), true);
81 enableAllocationTracking(Thread.currentThread(), false);
102 System.out.println("Tracking on different thread");
122 final Thread thisThread = Thread.currentThread();
124 Thread t = new Thread() {
145 enableAllocationTracking(sameThread ? t : Thread.currentThread(), true);
173 private static native void enableAllocationTracking(Thread thread, boolean enable)
    [all...]
  /cts/tests/autofillservice/src/android/autofillservice/cts/
AuthenticationActivity.java 180 Thread.interrupted();
  /cts/tests/tests/os/src/android/os/cts/
TokenWatcherTest.java 51 new Thread() {
61 Thread.sleep(50);
168 Thread.sleep(DELAY);
179 Thread.sleep(DELAY);
  /cts/tools/device-setup/TestDeviceSetup/src/android/tests/getinfo/
DeviceInfoActivity.java 124 new Thread() {
  /developers/build/prebuilts/gradle/AppRestrictions/Application/src/main/java/com/example/android/apprestrictions/
GetRestrictionsReceiver.java 49 new Thread() {
  /developers/samples/android/content/multiuser/AppRestrictions/Application/src/main/java/com/example/android/apprestrictions/
GetRestrictionsReceiver.java 49 new Thread() {
  /development/samples/browseable/AppRestrictions/src/com.example.android.apprestrictions/
GetRestrictionsReceiver.java 49 new Thread() {
  /external/deqp/framework/common/
tcuThreadUtil.hpp 23 * \brief Thread test utilities
90 class Thread;
95 MessageBuilder (Thread& thread) : m_thread(thread) {}
109 Thread& m_thread;
141 virtual void exec (Thread& thread) = 0; //!< Overwritten by inherited class to perform actual operation
142 virtual void execute (Thread& thread); //!< May Be overwritten by inherited class to change how syncronization is don
    [all...]
  /external/droiddriver/src/io/appium/droiddriver/helpers/
BaseDroidDriverTest.java 26 import java.lang.Thread.UncaughtExceptionHandler;
51 Thread.setDefaultUncaughtExceptionHandler(new UncaughtExceptionHandler() {
53 public void uncaughtException(Thread thread, Throwable ex) {
  /external/eigen/unsupported/Eigen/CXX11/src/ThreadPool/
NonBlockingThreadPool.h 37 // a walk starting thread index t and calculate num_threads - 1 subsequent
39 // repetitions (effectively getting a presudo-random permutation of thread
78 // Worker thread of this pool, push onto the thread's queue.
82 // A free-standing thread (or worker of another pool), push onto a random
89 // Schedule is called from a thread that is neither main thread nor a worker
90 // thread of this pool. Then, execution of w directly or indirectly
115 typedef typename Environment::EnvThread Thread;
121 int thread_id; // Worker thread index in pool
    [all...]

Completed in 1477 milliseconds

1 2 3 4 5 6 7 891011>>