HomeSort by relevance Sort by last modified time
    Searched defs:thread (Results 151 - 175 of 684) sorted by null

1 2 3 4 5 67 8 91011>>

  /frameworks/base/tools/layoutlib/bridge/src/android/os/
HandlerThread_Delegate.java 44 for (HandlerThread thread : list) {
45 thread.quit();
57 // record the thread so that it can be quit() on clean up.
  /libcore/luni/src/test/java/libcore/java/lang/
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...]
  /packages/apps/Contacts/src/com/android/contacts/interactions/
TestLoaderManager.java 155 // We want to wait for each loader using a separate thread, so that we can
157 Thread[] waitThreads = new Thread[loaders.length];
160 waitThreads[i] = new Thread("LoaderWaitingThread" + i) {
175 for (Thread thread : waitThreads) {
177 thread.join();
  /packages/apps/Gallery2/src/com/android/gallery3d/data/
DownloadUtils.java 50 final Thread thread = Thread.currentThread(); local
54 thread.interrupt();
63 Thread.interrupted(); // consume the interrupt signal
  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/
test_capi.py 11 import thread namespace
14 thread = None variable
23 #this function can be interrupted by thread switching so let's
42 #main thread
56 #do every callback on a separate thread
62 context.n = 2 #submits per thread
69 t = threading.Thread(target=self.pendingcalls_thread, args = (context,))
91 #again, just using the main thread, likely they will all be dispatched at
101 @unittest.skipUnless(threading and thread, 'Threading required for this test.')
106 # some extra thread-state tests driven via _testcap
    [all...]
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/
test_capi.py 11 import thread namespace
14 thread = None variable
23 #this function can be interrupted by thread switching so let's
42 #main thread
56 #do every callback on a separate thread
62 context.n = 2 #submits per thread
69 t = threading.Thread(target=self.pendingcalls_thread, args = (context,))
91 #again, just using the main thread, likely they will all be dispatched at
101 @unittest.skipUnless(threading and thread, 'Threading required for this test.')
106 # some extra thread-state tests driven via _testcap
    [all...]
  /development/samples/ApiDemos/src/com/example/android/apis/app/
ServiceStartArguments.java 52 * work of creating the extra thread and dispatching commands to it.
113 // Start up the thread running the service. Note that we create a
114 // separate thread because the service normally runs in the process's
115 // main thread, which we don't want to block. We also make it
117 HandlerThread thread = new HandlerThread("ServiceStartArguments", local
119 thread.start();
121 mServiceLooper = thread.getLooper();
  /development/samples/USB/MissileLauncher/src/com/android/missilelauncher/
MissileLauncherActivity.java 139 Thread thread = new Thread(this); local
140 thread.start();
238 Thread.sleep(100);
  /development/samples/training/threadsample/src/com/example/android/threadsample/
PhotoManager.java 49 * thread to change the bitmap to reflect the state.
65 // Sets the amount of time an idle thread will wait for a task before terminating
106 // An object that manages Messages in a Thread
122 * Constructs the work queues and thread pools used to download and decode images.
127 * Creates a work queue for the pool of Thread objects used for downloading, using a linked
133 * Creates a work queue for the pool of Thread objects used for decoding, using a linked
145 * Creates a new pool of Thread objects for the download work queue
151 * Creates a new pool of Thread objects for the decoding work queue
171 * handleMessage() method. The Handler *must* run on the UI thread, because it moves photo
173 * To force the Handler to run on the UI thread, it's defined as part of the PhotoManage
335 Thread thread = taskArray[taskArrayIndex].mThreadThis; local
362 Thread thread = downloaderTask.getCurrentThread(); local
    [all...]
  /external/apache-harmony/x-net/src/test/impl/java.injected/org/apache/harmony/xnet/provider/jsse/
SSLServerSocketImplTest.java 64 Thread thread = new Thread() { local
74 thread.start();
83 Thread.sleep(500);
128 Thread thread = new Thread() { local
138 thread.start();
147 Thread.sleep(500)
192 Thread thread = new Thread() { local
256 Thread thread = new Thread() { local
    [all...]
  /external/chromium_org/remoting/android/java/src/org/chromium/chromoting/
HostListLoader.java 50 /** Handler for main thread. */
54 // Thread responsible for downloading the host list.
61 HandlerThread thread = new HandlerThread("network"); local
62 thread.start();
63 mNetworkThread = new Handler(thread.getLooper());
68 * Causes the host list to be fetched on a background thread. This should be called on the
69 * main thread, and callbacks will also be invoked on the main thread. On success,
171 /** Posts error to callback on main thread. */
  /external/nist-sip/java/gov/nist/javax/sip/stack/
TCPMessageProcessor.java 42 * Mike Andrews suggested that the thread be accessible so as to implement clean stop using
43 * Thread.join(). Roger M. Persson contributed a bug fix for cleanup on stop().
48 * Sit in a loop waiting for incoming tcp connections and start a new thread to handle each new
91 Thread thread = new Thread(this); local
92 thread.setName("TCPMessageProcessorThread");
93 thread.setPriority(Thread.MAX_PRIORITY);
94 thread.setDaemon(true)
    [all...]
TLSMessageProcessor.java 33 * should be added. Mike Andrews suggested that the thread be
34 * accessible so as to implement clean stop using Thread.join().
58 * Sit in a loop waiting for incoming tls connections and start a new thread to handle each new
100 Thread thread = new Thread(this); local
101 thread.setName("TLSMessageProcessorThread");
103 thread.setPriority(Thread.MAX_PRIORITY);
104 thread.setDaemon(true)
    [all...]
UDPMessageProcessor.java 39 * packet, a new UDPMessageChannel is created (upto the max thread pool size).
40 * Each UDP message is processed in its own thread).
55 * thread pooling be added to limit the number of threads and improve
114 * If the thread auditor is enabled, define a socket timeout value in order to
146 * Start our processor thread.
152 Thread thread = new Thread(this); local
153 thread.setDaemon(true);
155 thread.setName("UDPMessageProcessorThread")
    [all...]
  /frameworks/base/core/java/android/content/
AsyncQueryHandler.java 83 // which will make the first access on the main thread a lot faster.
129 HandlerThread thread = new HandlerThread("AsyncQueryWorker"); local
130 thread.start();
132 sLooper = thread.getLooper();
  /frameworks/base/core/java/android/widget/
Filter.java 104 HandlerThread thread = new HandlerThread( local
106 thread.start();
107 mThreadHandler = new RequestHandler(thread.getLooper());
128 * <p>Invoked in a worker thread to filter the data according to the
132 * will then be published in the UI thread through
149 * <p>Invoked in the UI thread to publish the filtering results in the
211 * <p>Worker thread handler. When a new filtering request is posted from
265 * handled in the UI thread.</p>
270 * UI thread. The processing involves calling
  /frameworks/base/core/tests/coretests/src/android/content/pm/
PackageHelperTests.java 94 Thread thread = new Thread(r1); local
95 Thread thread2 = new Thread(r2);
97 thread.start();
107 Thread.sleep(5);
  /frameworks/base/core/tests/coretests/src/android/database/
DatabaseLockTest.java 66 * same database at the same time with the same prioritization, neither thread
81 Thread.currentThread().sleep(SLEEP_TIME);
90 * This function is to create the second thread for testLockFairness() test.
93 Thread thread = new DatabaseFairnessThread(); local
94 thread.start();
97 private class DatabaseFairnessThread extends Thread {
104 Thread.sleep(SLEEP_TIME);
134 Thread.sleep(SLEEP_TIME);
147 * This function is to create the second thread for testLockLatency() test
150 Thread thread = new DatabaseLatencyThread(); local
    [all...]
  /frameworks/base/libs/usb/tests/AccessoryChat/src/com/android/accessorychat/
AccessoryChat.java 146 Thread thread = new Thread(null, this, "AccessoryChat"); local
147 thread.start();
186 Log.d(TAG, "thread out");
  /frameworks/base/services/core/java/com/android/server/
NetworkTimeUpdateService.java 72 // NTP lookup is done on this thread and handler
116 HandlerThread thread = new HandlerThread(TAG); local
117 thread.start();
118 mHandler = new MyHandler(thread.getLooper());
119 // Check the network time on the new thread
  /packages/apps/Bluetooth/src/com/android/bluetooth/avrcp/
AvrcpControllerService.java 71 HandlerThread thread = new HandlerThread("BluetoothAvrcpHandler"); local
72 thread.start();
73 Looper looper = thread.getLooper();
  /packages/apps/Browser/src/com/android/browser/util/
ThreadedCursorAdapter.java 93 HandlerThread thread = new HandlerThread("threaded_adapter_" + this, local
95 thread.start();
96 mLoadHandler = new Handler(thread.getLooper()) {
  /packages/apps/Calendar/src/com/android/calendar/
ContactsAsyncHelper.java 77 * Thread worker class that handles the task of opening the stream and loading
127 HandlerThread thread = new HandlerThread("ContactsAsyncWorker"); local
128 thread.start();
129 sThreadHandler = new WorkerHandler(thread.getLooper());
180 // notify the thread to begin working
220 // notify the thread to begin working
  /packages/apps/Email/src/com/android/email/
EmailConnectivityManager.java 66 // The thread waiting for connectivity
67 private Thread mWaitThread;
87 Thread thread= mWaitThread; local
88 if (thread != null) {
89 thread.interrupt();
95 * subclasses as necessary. NOTE: CALLED ON UI THREAD
103 * subclasses as necessary. NOTE: CALLED ON UI THREAD
175 mWaitThread = Thread.currentThread();
  /packages/apps/InCallUI/src/com/android/incallui/
ContactsAsyncHelper.java 82 /** Handler run on a worker thread to load photo asynchronously. */
103 * Thread worker class that handles the task of opening the stream and loading
203 HandlerThread thread = new HandlerThread("ContactsAsyncWorker"); local
204 thread.start();
205 sThreadHandler = new WorkerHandler(thread.getLooper());
251 // notify the thread to begin working

Completed in 1458 milliseconds

1 2 3 4 5 67 8 91011>>