/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/devlib/src/netstats/src/com/arm/devlib/trafficcatcher/ |
TrafficMetricsService.java | 5 import java.lang.Thread; 41 Thread.sleep(this.period); 43 if (Thread.interrupted()) { 97 private Thread thread; field in class:TrafficMetricsService 117 if (this.thread != null) { 121 this.thread = new Thread(new TrafficPoller(runTag, getPackageManager(), pollingPeriod, packages)); 122 this.thread.start();
|
/external/drrickorang/LoopbackApp/app/src/main/java/org/drrickorang/loopback/ |
SoundLevelCalibration.java | 39 // used to run the callback on the UI thread 79 mNativeAudioThread = new NativeAudioThread(mNativeAudioThread); // generate fresh thread 94 private double runAudioThread(NativeAudioThread thread) { 95 // runs the native audio thread and returns the average amplitude 96 thread.start(); 98 thread.join(); 102 double[] data = thread.getWaveData();
|
/external/guice/core/src/com/google/inject/internal/ |
SingletonScope.java | 51 * This is significantly harder as all the dependencies in a thread at runtime 121 * ConstructionContext is not thread-safe, so each call should be synchronized. 139 // this thread now owns creation of an instance 144 // different thread to never be resolved, just a warning 153 // detection within the same thread; they are not real instances to cache 159 // guarantee thread-safety for instance and proxies initialization 181 // potential deadlock detected, creation lock is not taken by this thread 183 // guarantee thread-safety for instance and proxies initialization 186 Map<Thread, InternalContext> globalInternalContext = 188 InternalContext internalContext = globalInternalContext.get(Thread.currentThread()) 263 threadById.put(thread.getId(), thread); local [all...] |
/external/ims/rcs/rcsservice/src/com/android/service/ims/ |
RcsService.java | 294 Thread thread = new Thread(new Runnable() { local 306 }, "onMobileDataEnabled thread"); 308 thread.start();
|
/external/mockito/src/main/java/org/mockito/internal/util/concurrent/ |
WeakConcurrentMap.java | 19 * A thread-safe map with weak keys. Entries are based on a key's system hash code and keys are considered 31 private final Thread thread; field in class:WeakConcurrentMap 34 * @param cleanerThread {@code true} if a thread should be started that removes stale entries. 39 thread = new Thread(this); 40 thread.setName("weak-ref-cleaner-" + ID.getAndIncrement()); 41 thread.setPriority(Thread.MIN_PRIORITY); 42 thread.setDaemon(true) [all...] |
/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/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/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
FlashlightControllerImpl.java | 137 HandlerThread thread = new HandlerThread(TAG, Process.THREAD_PRIORITY_BACKGROUND); local 138 thread.start(); 139 mHandler = new Handler(thread.getLooper());
|
/frameworks/base/services/core/java/com/android/server/emergency/ |
EmergencyAffordanceService.java | 167 HandlerThread thread = new HandlerThread(TAG); local 168 thread.start(); 169 mHandler = new MyHandler(thread.getLooper());
|
/frameworks/base/wifi/tests/src/android/net/wifi/ |
WifiNetworkScoreCacheTest.java | 108 HandlerThread thread = new HandlerThread("WifiNetworkScoreCacheTest Handler Thread"); local 109 thread.start(); 110 mHandler = new Handler(thread.getLooper());
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/ |
CellularDataService.java | 79 HandlerThread thread = new HandlerThread(CellularDataService.class.getSimpleName()); local 80 thread.start(); 81 mLooper = thread.getLooper();
|
/libcore/luni/src/test/java/libcore/java/nio/channels/ |
SelectorTest.java | 58 Thread.currentThread().interrupt(); 62 assertTrue(Thread.currentThread().isInterrupted()); 64 // Clear the interrupted thread state so that it does not interfere with later tests. 65 Thread.interrupted(); 81 Thread thread = new Thread(new Runnable() { local 90 thread.start();
|
/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/provider_src/com/android/email/ |
EmailConnectivityManager.java | 65 // The thread waiting for connectivity 66 private Thread mWaitThread; 86 Thread thread= mWaitThread; local 87 if (thread != null) { 88 thread.interrupt(); 94 * subclasses as necessary. NOTE: CALLED ON UI THREAD 102 * subclasses as necessary. NOTE: CALLED ON UI THREAD 174 mWaitThread = Thread.currentThread();
|
/packages/apps/Launcher3/src/com/android/launcher3/logging/ |
FileLog.java | 25 * This class can safely be called from main thread. 46 // If the target directory changes, stop any active thread. 94 HandlerThread thread = new HandlerThread("file-logger"); local 95 thread.start(); 96 sHandler = new Handler(thread.getLooper(), new LogWriterCallback());
|
/packages/apps/Settings/src/com/android/settings/search/ |
DeviceIndexUpdateJobService.java | 59 Thread thread = new Thread(() -> updateIndex(params)); local 60 thread.setPriority(Thread.MIN_PRIORITY); 61 thread.start();
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
ContactsAsyncHelper.java | 72 /** Handler run on a worker thread to load photo asynchronously. */ 90 * Thread worker class that handles the task of opening the stream and loading 232 // notify the thread to begin working 238 HandlerThread thread = new HandlerThread("ContactsAsyncWorker"); local 239 thread.start(); 240 mThreadHandler = new WorkerHandler(thread.getLooper());
|
DtmfLocalTonePlayer.java | 132 * thread, as well as for actually playing the tones. 139 /** Handler running on the tonegenerator thread. */ 229 * Creates a new ToneHandler on a separate thread if none exists, and returns it. 235 HandlerThread thread = new HandlerThread("tonegenerator-dtmf"); local 236 thread.start(); 237 mHandler = new ToneHandler(thread.getLooper());
|
/development/samples/LunarLander/src/com/example/android/lunarlander/ |
LunarView.java | 48 class LunarThread extends Thread { 163 /** Message handler used by thread to interact with TextView */ 430 * Used to signal the thread whether it should be running or not. 431 * Passing true allows the thread to run; passing false will shut it 470 * owned by this thread, we can't touch the state of that View. 472 * thread, which updates the user-text View. 796 /** The thread that actually draws the animation */ 797 private LunarThread thread; field in class:LunarView 806 // create thread only; it's started in surfaceCreated() 807 thread = new LunarThread(holder, context, new Handler() [all...] |