Home
last modified time | relevance | path

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

123456

/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()
DToyVpnConnection.java153 Thread.sleep(3000); in run()
237 Thread.sleep(IDLE_INTERVAL_MS); in run()
294 Thread.sleep(IDLE_INTERVAL_MS); in handshake()
/development/samples/WiFiDirectServiceDiscovery/src/com/example/android/wifidirect/discovery/
DClientSocketHandler.java12 public class ClientSocketHandler extends Thread {
33 new Thread(chat).start(); in run()
DChatManager.java71 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/VirtualDeviceManager/common/src/com/example/android/vdmdemo/common/
DRemoteIo.java68 Thread t = new Thread(new ReceiverRunnable(inputStream, inputStreamClosedCallback)); in initialize()
69 t.setPriority(Thread.MAX_PRIORITY); in initialize()
/development/samples/VirtualDeviceManager/virtualcamera/src/com/example/android/vdmdemo/virtualcamera/
DCanvasVirtualCamera.java62 private class RenderThread extends Thread {
92 Thread.sleep(1000 / 25); in run()
/development/samples/StackWidget/src/com/example/android/stackwidget/
DStackWidgetService.java60 Thread.sleep(3000); in onCreate()
98 Thread.sleep(500); in getViewAt()
/development/samples/ApiDemos/src/com/example/android/apis/app/
DNotifyingService.java54 Thread notifyingThread = new Thread(null, mTask, "NotifyingService"); in onCreate()
DAlarmService_Service.java55 Thread thr = new Thread(null, mTask, "AlarmService_Service"); 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/apps/SettingInjectorSample/src/com/example/android/injector/
DMyInjectorService.java37 Thread.sleep(500); in onGetSummary()
DSlowInjectorService.java37 Thread.sleep(5000); in onGetSummary()
DDisabledInjectorService.java37 Thread.sleep(500); in onGetSummary()
DFailingInjectorService.java45 Thread.sleep(100); in onGetSummary()
/development/samples/USB/MissileLauncher/src/com/android/missilelauncher/
DMissileLauncherActivity.java139 Thread thread = new Thread(this); in setDevice()
238 Thread.sleep(100); in run()
/development/cmds/monkey/src/com/android/commands/monkey/
DMonkeyWaitEvent.java40 Thread.sleep(mWaitTime); in injectEvent()
DMonkeyThrottleEvent.java43 Thread.sleep(mThrottle); in injectEvent()
/development/samples/Vault/tests/src/com/example/android/vault/
DEncryptedDocumentTest.java110 new Thread() { in testMetadataAndContents() method
135 new Thread() { in testMetadataAndContents() method
227 new Thread() { in testErrorAbortsWrite() method

123456