Home
last modified time | relevance | path

Searched refs:Thread (Results 1 – 25 of 124) sorted by relevance

12345

/development/samples/training/threadsample/src/com/example/android/threadsample/
DPhotoDownloadRunnable.java66 void setDownloadThread(Thread currentThread); in setDownloadThread()
114 mPhotoTask.setDownloadThread(Thread.currentThread()); in run()
133 if (Thread.interrupted()) { in run()
162 if (Thread.interrupted()) { in run()
169 if (Thread.interrupted()) { in run()
238 if (Thread.interrupted()) { in run()
325 if (Thread.interrupted()) { in run()
332 if (Thread.interrupted()) { in run()
392 Thread.interrupted(); in run()
DPhotoDecodeRunnable.java65 void setImageDecodeThread(Thread currentThread); in setImageDecodeThread()
118 mPhotoTask.setImageDecodeThread(Thread.currentThread()); in run()
154 if (Thread.interrupted()) { in run()
198 if (Thread.interrupted()) { in run()
241 if (Thread.interrupted()) { in run()
251 Thread.sleep(SLEEP_TIME_MILLISECONDS); in run()
283 Thread.interrupted(); in run()
DPhotoTask.java64 Thread mThreadThis;
80 private Thread mCurrentThread;
215 public Thread getCurrentThread() { in getCurrentThread()
225 public void setCurrentThread(Thread thread) { in setCurrentThread()
239 public void setDownloadThread(Thread currentThread) { in setDownloadThread()
270 public void setImageDecodeThread(Thread currentThread) { in setImageDecodeThread()
/development/samples/ToyVpn/src/com/example/android/toyvpn/
DToyVpnService.java47 private static class Connection extends Pair<Thread, ParcelFileDescriptor> {
48 public Connection(Thread thread, ParcelFileDescriptor pfd) { in Connection()
53 private final AtomicReference<Thread> mConnectingThread = new AtomicReference<>();
120 final Thread thread = new Thread(connection, "ToyVpnThread"); in startConnection()
134 private void setConnectingThread(final Thread thread) { in setConnectingThread()
135 final Thread oldThread = mConnectingThread.getAndSet(thread); in setConnectingThread()
/development/samples/training/NsdChat/src/com/example/android/nsdchat/
DChatConnection.java121 Thread mThread = null;
124 mThread = new Thread(new ServerThread()); in ChatServer()
148 while (!Thread.currentThread().isInterrupted()) { in run()
173 private Thread mSendThread;
174 private Thread mRecThread;
182 mSendThread = new Thread(new SendingThread()); in ChatClient()
206 mRecThread = new Thread(new ReceivingThread()); in run()
235 while (!Thread.currentThread().isInterrupted()) { in run()
/development/samples/WiFiDirectServiceDiscovery/src/com/example/android/wifidirect/discovery/
DClientSocketHandler.java12 public class ClientSocketHandler extends Thread {
33 new Thread(chat).start(); in run()
DChatManager.java70 Thread thread = new Thread() { in write()
/development/samples/IntentPlayground/src/com/example/android/intentplayground/
DTestBase.java64 Thread.sleep(500); in startActivities()
66 Thread.sleep(500); in startActivities()
77 Thread.sleep(500); in startActivities()
/development/apps/Development/src/com/android/development/
DBadBehaviorActivity.java57 try { Thread.sleep(20000); } catch (InterruptedException e) { Log.wtf(TAG, e); } in onReceive()
71 try { Thread.sleep(30000); } catch (InterruptedException e) { Log.wtf(TAG, e); } in onStartCommand()
92 try { Thread.sleep(mDelay); } catch (InterruptedException e) { Log.wtf(TAG, e); } in activityStarting()
146 try { Thread.sleep(20000); } catch (InterruptedException e) { Log.wtf(TAG, e); } in onCreate()
181 new Thread() { in onCreate()
208 try { Thread.sleep(20000); } catch (InterruptedException e) { Log.wtf(TAG, e); } in onCreate()
DLogViewer.java62 new Thread(new LogReader()).start(); in onCreate()
122 Thread.sleep(1000); in run()
/development/samples/StackWidget/src/com/example/android/stackwidget/
DStackWidgetService.java60 Thread.sleep(3000); in onCreate()
98 Thread.sleep(500); in getViewAt()
/development/apps/SettingInjectorSample/src/com/example/android/injector/
DSlowInjectorService.java37 Thread.sleep(5000); in onGetSummary()
DMyInjectorService.java37 Thread.sleep(500); in onGetSummary()
DDisabledInjectorService.java37 Thread.sleep(500); in onGetSummary()
DFailingInjectorService.java45 Thread.sleep(100); in onGetSummary()
/development/samples/ApiDemos/src/com/example/android/apis/app/
DAlarmService_Service.java55 Thread thr = new Thread(null, mTask, "AlarmService_Service"); in onCreate()
DNotifyingService.java54 Thread notifyingThread = new Thread(null, mTask, "NotifyingService"); in onCreate()
DFragmentRetainInstance.java108 final Thread mThread = new Thread() {
/development/samples/Alarm/src/com/example/android/newalarm/
DAlarmService.java80 Thread mWorkThread;
141 mWorkThread = new Thread( in onCreate()
/development/cmds/monkey/src/com/android/commands/monkey/
DMonkeyWaitEvent.java40 Thread.sleep(mWaitTime); in injectEvent()
DMonkeyThrottleEvent.java43 Thread.sleep(mThrottle); in injectEvent()
/development/samples/USB/MissileLauncher/src/com/android/missilelauncher/
DMissileLauncherActivity.java139 Thread thread = new Thread(this); in setDevice()
238 Thread.sleep(100); in run()
/development/samples/Vault/tests/src/com/example/android/vault/
DEncryptedDocumentTest.java109 new Thread() { in testMetadataAndContents() method
134 new Thread() { in testMetadataAndContents() method
226 new Thread() { in testErrorAbortsWrite() method
/development/samples/ReceiveShareDemo/src/com/example/android/receiveshare/
DReceiveShareService.java47 Thread.sleep(5*1000); in onHandleIntent()
/development/samples/browseable/MidiScope/src/com.example.android.common.midi/
DMidiEventThread.java30 class EventThread extends Thread {

12345