Home
last modified time | relevance | path

Searched refs:Thread (Results 1 – 25 of 125) 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()
DPhotoManager.java335 Thread thread = taskArray[taskArrayIndex].mThreadThis; in cancelAll()
362 Thread thread = downloaderTask.getCurrentThread(); in removeDownload()
/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/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/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/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/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/USB/MissileLauncher/src/com/android/missilelauncher/
DMissileLauncherActivity.java139 Thread thread = new Thread(this); in setDevice()
238 Thread.sleep(100); 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/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/browseable/BluetoothChat/src/com.example.android.bluetoothchat/
DBluetoothChatService.java302 private class AcceptThread extends Thread {
388 private class ConnectThread extends Thread {
461 private class ConnectedThread extends Thread {
/development/samples/BluetoothChat/src/com/example/android/BluetoothChat/
DBluetoothChatService.java265 private class AcceptThread extends Thread {
350 private class ConnectThread extends Thread {
422 private class ConnectedThread extends Thread {
/development/samples/browseable/WearNotifications/Application/src/com.example.android.wearable.wear.wearnotifications/handlers/
DBigTextIntentService.java109 Thread.sleep(SNOOZE_TIME); in handleActionSnooze()
111 Thread.currentThread().interrupt(); in handleActionSnooze()
/development/samples/browseable/WearNotifications/Wearable/src/com.example.android.wearable.wear.wearnotifications/handlers/
DBigTextIntentService.java110 Thread.sleep(SNOOZE_TIME); in handleActionSnooze()
112 Thread.currentThread().interrupt(); in handleActionSnooze()
/development/apps/SettingInjectorSample/src/com/example/android/injector/
DMyInjectorService.java37 Thread.sleep(500); in onGetSummary()
DSlowInjectorService.java37 Thread.sleep(5000); in onGetSummary()

12345