Home
last modified time | relevance | path

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

12345678910>>...15

/frameworks/base/core/java/android/widget/
DRemoteViewsService.java144 Thread t = Thread.currentThread(); in onDataSetChanged()
145 Thread.getDefaultUncaughtExceptionHandler().uncaughtException(t, ex); in onDataSetChanged()
156 Thread t = Thread.currentThread(); in getCount()
157 Thread.getDefaultUncaughtExceptionHandler().uncaughtException(t, ex); in getCount()
169 Thread t = Thread.currentThread(); in getViewAt()
170 Thread.getDefaultUncaughtExceptionHandler().uncaughtException(t, ex); in getViewAt()
179 Thread t = Thread.currentThread(); in getLoadingView()
180 Thread.getDefaultUncaughtExceptionHandler().uncaughtException(t, ex); in getLoadingView()
189 Thread t = Thread.currentThread(); in getViewTypeCount()
190 Thread.getDefaultUncaughtExceptionHandler().uncaughtException(t, ex); in getViewTypeCount()
[all …]
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/
DTonesAutoTest.java44 Thread.sleep(200); in tonesDtmfTest()
46 Thread.sleep(100); in tonesDtmfTest()
69 Thread.sleep(2000); in tonesSupervisoryTest()
71 Thread.sleep(200); in tonesSupervisoryTest()
81 Thread.sleep(5000); in tonesSupervisoryTest()
83 Thread.sleep(200); in tonesSupervisoryTest()
105 Thread.sleep(1000); in tonesProprietaryTest()
107 Thread.sleep(100); in tonesProprietaryTest()
130 Thread.sleep(100); in tonesSimultaneousTest()
132 Thread.sleep(500); in tonesSimultaneousTest()
[all …]
DCodecTest.java116 Thread.sleep(10000); in getCurrentPosition()
118 Thread.sleep(MediaNames.PAUSE_WAIT_TIME); in getCurrentPosition()
148 Thread.sleep(MediaNames.WAIT_TIME); in seekTo()
177 Thread.sleep(5000); in setLooping()
180 Thread.sleep(20000); in setLooping()
213 Thread.sleep(5000); in pause()
215 Thread.sleep(MediaNames.PAUSE_WAIT_TIME); in pause()
342 Thread.sleep(MediaNames.PAUSE_WAIT_TIME); in videoSeekTo()
345 Thread.sleep(1000); in videoSeekTo()
353 Thread.sleep(5000); in videoSeekTo()
[all …]
/frameworks/native/include/utils/
DThread.h39 class Thread : virtual public RefBase
44 Thread(bool canCallJava = true);
45 virtual ~Thread();
89 Thread& operator=(const Thread&);
100 sp<Thread> mHoldSelf;
/frameworks/base/core/tests/coretests/src/android/database/
DDatabaseLockTest.java81 Thread.currentThread().sleep(SLEEP_TIME); in testLockFairness()
93 Thread thread = new DatabaseFairnessThread(); in startDatabaseFairnessThread()
97 private class DatabaseFairnessThread extends Thread {
104 Thread.sleep(SLEEP_TIME); in run()
134 Thread.sleep(SLEEP_TIME); in testLockLatency()
150 Thread thread = new DatabaseLatencyThread(); in startDatabaseLatencyThread()
154 private class DatabaseLatencyThread extends Thread {
161 Thread.sleep(SLEEP_TIME); in run()
/frameworks/base/docs/html/training/multiple-threads/
Drun-code.jd1 page.title=Running Code on a Thread Pool Thread
12 <li><a href="#RunRunnable">Run a Runnable on a Thread in the Thread Pool</a></li>
46 <h2 id="RunRunnable">Run a Task on a Thread in the Thread Pool</h2>
84 * Stores the current Thread in the
87 mPhotoTask.setImageDecodeThread(Thread.currentThread());
94 To interrupt a thread, call {@link java.lang.Thread#interrupt Thread.interrupt()}. Notice that
95 {@link java.lang.Thread} objects are controlled by the system, which can modify them outside of
112 * Iterates over the array of Runnables and interrupts each one's Thread.
118 Thread thread = runnableArray[taskArrayIndex].mThread;
119 // if the Thread exists, post an interrupt to it
[all …]
Ddefine-runnable.jd1 page.title=Specifying the Code to Run on a Thread
40 {@link java.lang.Thread} and {@link java.lang.Runnable} are basic classes that, on their own,
43 {@link android.app.IntentService}. {@link java.lang.Thread} and {@link java.lang.Runnable} are
71 <a href="communicate-ui.html">Communicate with the UI Thread</a>.
83 {@link java.lang.Thread} in the {@link java.lang.Runnable} itself, by calling
84 {@link java.lang.Thread#currentThread() Thread.currentThread()}.
97 // Moves the current Thread into the background
101 * Stores the current Thread in the the PhotoTask instance,
103 * can interrupt the Thread.
105 mPhotoTask.setImageDecodeThread(Thread.currentThread());
Dindex.jd56 <b><a href="define-runnable.html">Specifying the Code to Run on a Thread</a></b>
59 Learn how to write code to run on a separate {@link java.lang.Thread}, by
66 Learn how to create an object that manages a pool of {@link java.lang.Thread} objects and
71 <b><a href="run-code.html">Running Code on a Thread Pool Thread</a></b>
77 <b><a href="communicate-ui.html">Communicating with the UI Thread</a></b>
/frameworks/ex/variablespeed/tests/src/com/android/ex/variablespeed/
DMediaPlayerProxyTestCase.java170 Thread.sleep(2000); in testPlayABitThenRelease()
218 Thread.sleep(2000); in testGetCurrentPosition_DuringPlayback()
236 Thread.sleep(1500); in testGetCurrentPosition_DuringPlaybackWithSeek()
269 Thread.sleep(1000); in testResetWithoutReleaseAndThenReUse()
282 Thread.sleep(2000); in testResetAfterPlaybackThenReUse()
289 Thread.sleep(2000); in testResetDuringPlaybackThenReUse()
294 Thread.sleep(2000); in testResetDuringPlaybackThenReUse()
313 Thread.sleep(2000); in testPause_DuringPlayback()
325 Thread.sleep(200); in testPause_DoesNotInvokeCallback()
335 Thread.sleep(200); in testReset_DoesNotInvokeCallback()
[all …]
/frameworks/native/libs/utils/
DThreads.cpp692 Thread::Thread(bool canCallJava) in Thread() function in android::Thread
704 Thread::~Thread() in ~Thread()
708 status_t Thread::readyToRun() in readyToRun()
713 status_t Thread::run(const char* name, int32_t priority, size_t stack) in run()
760 int Thread::_threadLoop(void* user) in _threadLoop()
762 Thread* const self = static_cast<Thread*>(user); in _threadLoop()
764 sp<Thread> strong(self->mHoldSelf); in _threadLoop()
765 wp<Thread> weak(strong); in _threadLoop()
825 void Thread::requestExit() in requestExit()
831 status_t Thread::requestExitAndWait() in requestExitAndWait()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/
DAccessibilityManagerServiceTest.java195 Thread.sleep(TIMEOUT_BINDER_CALL); in testSendAccessibilityEvent_OneService_MatchingPackageAndEventType()
225 Thread.sleep(TIMEOUT_BINDER_CALL); in testSendAccessibilityEvent_OneService_NotMatchingPackage()
255 Thread.sleep(TIMEOUT_BINDER_CALL); in testSendAccessibilityEvent_OneService_NotMatchingEventType()
287 Thread.sleep(TIMEOUT_BINDER_CALL); in testSendAccessibilityEvent_OneService_NotifivationAfterTimeout()
306 Thread.sleep(TIMEOUT_BINDER_CALL); in testSendAccessibilityEvent_OneService_NotifivationAfterTimeout()
316 Thread.sleep(TIMEOUT_TEST_NOTIFICATION_TIMEOUT); in testSendAccessibilityEvent_OneService_NotifivationAfterTimeout()
344 Thread.sleep(TIMEOUT_BINDER_CALL); in testSendAccessibilityEvent_TwoServices_MatchingPackageAndEventType_DiffFeedback()
384 Thread.sleep(TIMEOUT_BINDER_CALL); in testSendAccessibilityEvent_TwoServices_MatchingPackageAndEventType()
425 Thread.sleep(TIMEOUT_BINDER_CALL); in testSendAccessibilityEvent_TwoServices_MatchingPackageAndEventType_OneDefault()
468 Thread.sleep(TIMEOUT_BINDER_CALL); in testSendAccessibilityEvent_TwoServices_MatchingPackageAndEventType_TwoDefault()
[all …]
/frameworks/base/tests/CoreTests/android/core/
DSSLSocketTest.java161 Thread.sleep(delay * 1000); in fetch()
340 Thread reader = new Thread() { in testMultithreadedClose()
354 Thread closer = new Thread() { in testMultithreadedClose()
358 Thread.sleep(5000); in testMultithreadedClose()
394 Thread[] threads = new Thread[10]; in testMultithreadedFetch()
397 threads[i] = new Thread() { in testMultithreadedFetch()
793 Thread serverThread = new Thread(server); in testClientAuth()
794 Thread clientThread = new Thread(client); in testClientAuth()
841 Thread thread = new Thread() { in testSSLHandshakeHangTimeout()
871 Thread thread = new Thread() { in testSSLHandshakeHangClose()
[all …]
DSocketTest.java118 new Thread() { in testSetReuseAddress() method
134 Thread.sleep(2000); in testSetReuseAddress()
260 new Thread() { in disable_testSocketConnectClose() method
273 Thread.sleep(1000); in disable_testSocketConnectClose()
280 Thread.sleep(1000); in disable_testSocketConnectClose()
/frameworks/base/core/java/com/android/internal/view/
DWindowManagerPolicyThread.java26 static Thread mThread;
29 public static void set(Thread thread, Looper looper) { in set()
34 public static Thread getThread() { in getThread()
/frameworks/base/services/tests/servicestests/src/com/android/server/location/
DLocationBasedCountryDetectorTest.java150 public Thread getQueryThread() { in getQueryThread()
209 Thread queryThread = waitForQueryThreadLaunched(detector); in testFindingCountryCommon()
232 Thread queryThread = waitForQueryThreadLaunched(detector); in testFindingCountryCancelled()
311 Thread queryThread = waitForQueryThreadLaunched(detector); in testFindingCountryFailed()
334 Thread queryThread = waitForQueryThreadLaunched(detector); in testFindingCountryWithLastKnownLocation()
350 Thread.sleep(interval); in waitForTimerReset()
358 private void waitForThreadEnding(Thread thread) { in waitForThreadEnding()
366 private Thread waitForQueryThreadLaunched(TestCountryDetector detector) { in waitForQueryThreadLaunched()
371 Thread.sleep(interval); in waitForQueryThreadLaunched()
375 Thread thread = detector.getQueryThread(); in waitForQueryThreadLaunched()
/frameworks/base/core/java/android/webkit/
DDeviceOrientationService.java78 assert WebViewCore.THREAD_NAME.equals(Thread.currentThread().getName()); in sendErrorEvent()
86 assert WebViewCore.THREAD_NAME.equals(Thread.currentThread().getName()); in sendErrorEvent()
137 assert WebViewCore.THREAD_NAME.equals(Thread.currentThread().getName()); in getSensorManager()
169 assert WebViewCore.THREAD_NAME.equals(Thread.currentThread().getName()); in maybeSendChange()
190 assert WebViewCore.THREAD_NAME.equals(Thread.currentThread().getName()); in onSensorChanged()
223 assert WebViewCore.THREAD_NAME.equals(Thread.currentThread().getName()); in onAccuracyChanged()
DDeviceMotionService.java75 assert WebViewCore.THREAD_NAME.equals(Thread.currentThread().getName()); in sendErrorEvent()
84 assert WebViewCore.THREAD_NAME.equals(Thread.currentThread().getName()); in sendErrorEvent()
130 assert WebViewCore.THREAD_NAME.equals(Thread.currentThread().getName()); in getSensorManager()
159 assert WebViewCore.THREAD_NAME.equals(Thread.currentThread().getName()); in onSensorChanged()
176 assert WebViewCore.THREAD_NAME.equals(Thread.currentThread().getName()); in onAccuracyChanged()
DWebStorageClassic.java181 if (WebViewCore.THREAD_NAME.equals(Thread.currentThread().getName())) { in getOrigins()
195 if (WebViewCore.THREAD_NAME.equals(Thread.currentThread().getName())) { in getOriginsSync()
211 if (WebViewCore.THREAD_NAME.equals(Thread.currentThread().getName())) { in getUsageForOrigin()
232 if (WebViewCore.THREAD_NAME.equals(Thread.currentThread().getName())) { in getQuotaForOrigin()
247 if (WebViewCore.THREAD_NAME.equals(Thread.currentThread().getName())) { in setQuotaForOrigin()
259 if (WebViewCore.THREAD_NAME.equals(Thread.currentThread().getName())) { in deleteOrigin()
270 if (WebViewCore.THREAD_NAME.equals(Thread.currentThread().getName())) { in deleteAllData()
320 if (WebViewCore.THREAD_NAME.equals(Thread.currentThread().getName())) { in update()
/frameworks/base/core/tests/coretests/src/android/content/pm/
DPackageHelperTests.java92 Thread thread = new Thread(r1); in testMountAndPullSdCard()
93 Thread thread2 = new Thread(r2); in testMountAndPullSdCard()
105 Thread.sleep(5); in getMountRunnable()
/frameworks/base/tests/DumpRenderTree/src/com/android/dumprendertree/forwarder/
DForwarder.java49 Thread outgoing = new Thread(new SocketPipe(from, to)); in start()
50 Thread incoming = new Thread(new SocketPipe(to, from)); in start()
/frameworks/base/media/java/android/media/
DAsyncPlayer.java80 private final class Thread extends java.lang.Thread { class in AsyncPlayer
81 Thread() { in Thread() method in AsyncPlayer.Thread
131 private Thread mThread;
201 mThread = new Thread(); in enqueueLocked()
/frameworks/base/core/tests/coretests/src/android/os/
DTraceTest.java88 Thread t1 = new aThread(); in topMethod()
90 Thread t2 = new aThread(); in topMethod()
92 Thread t3 = new aThread(); in topMethod()
102 private class aThread extends Thread {
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/stress/
DMediaRecorderStressTest.java70 private Thread mLooperThread;
79 mLooperThread = new Thread() { in setUp()
96 Thread.sleep(2000); in setUp()
174 Thread.sleep(WAIT_TIME_CAMERA_TEST); in testStressCamera()
226 Thread.sleep(WAIT_TIME_RECORDER_TEST); in testStressRecorder()
262 Thread.sleep(WAIT_TIME_CAMERA_TEST); in testStressCameraSwitchRecorder()
290 Thread.sleep(WAIT_TIME_CAMERA_TEST); in testStressCameraSwitchRecorder()
402 Thread.sleep(recordDuration); in recordVideoAndPlayback()
413 Thread.sleep(recordDuration); in recordVideoAndPlayback()
505 Thread.sleep(recordDuration); in testStressTimeLapse()
[all …]
/frameworks/base/core/tests/hosttests/test-apps/DownloadManagerTestApp/src/com/android/frameworks/downloadmanagertests/
DDownloadManagerTestApp.java303 Thread.sleep(30 * 1000); // wait 30 secs in runDownloadMultipleSwitching()
307 Thread.sleep(30 * 1000); // wait 30 secs in runDownloadMultipleSwitching()
312 Thread.sleep(5 * 1000); // wait 5 seconds in runDownloadMultipleSwitching()
317 Thread.sleep(30 * 1000); // wait 30 secs in runDownloadMultipleSwitching()
374 Thread.sleep(40 * 1000); // wait 40 seconds in runDownloadMultipleWiFiEnableDisable()
384 Thread.sleep(20 * 1000); // wait 20 seconds in runDownloadMultipleWiFiEnableDisable()
444 Thread.sleep(60 * 1000); // wait 1 minute in runDownloadMultipleAirplaneModeEnableDisable()
455 Thread.sleep(20 * 1000); // wait 20 seconds in runDownloadMultipleAirplaneModeEnableDisable()
/frameworks/base/core/tests/coretests/src/android/widget/
DAutoCompleteTextViewCallbacks.java47 Thread.sleep(WAIT_TIME); in testPopupNoSelection()
81 Thread.sleep(WAIT_TIME); in testPopupEnterSelection()
99 Thread.sleep(WAIT_TIME); in testPopupEnterSelection()

12345678910>>...15