Home
last modified time | relevance | path

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

12345678910>>...12

/packages/apps/Gallery2/src/com/android/gallery3d/util/
DProfile.java42 Thread thread;
77 public synchronized void addWatchEntry(Thread thread, int cycleTime) { in addWatchEntry()
87 public synchronized void removeWatchEntry(Thread thread) { in removeWatchEntry()
112 Thread thread = entry.thread; in processList()
126 Thread thread = entry.thread; in sampleStack()
139 private WatchEntry findEntry(Thread thread) { in findEntry()
155 public synchronized void hold(Thread t) { in hold()
166 public synchronized void commit(Thread t) { in commit()
177 public synchronized void drop(Thread t) { in drop()
188 Thread t = Thread.currentThread(); in enable()
[all …]
/packages/apps/Gallery/src/com/android/camera/
DBitmapManager.java60 private final WeakHashMap<Thread, ThreadStatus> mThreadStatus =
61 new WeakHashMap<Thread, ThreadStatus>();
71 private synchronized ThreadStatus getOrCreateThreadStatus(Thread t) { in getOrCreateThreadStatus()
84 private synchronized void setDecodingOptions(Thread t, in setDecodingOptions()
89 synchronized void removeDecodingOptions(Thread t) { in removeDecodingOptions()
98 public synchronized boolean canThreadDecoding(Thread t) { in canThreadDecoding()
109 public synchronized void allowThreadDecoding(Thread t) { in allowThreadDecoding()
113 public synchronized void cancelThreadDecoding(Thread t, ContentResolver cr) { in cancelThreadDecoding()
140 Thread t = Thread.currentThread(); in getThumbnail()
183 Thread thread = Thread.currentThread(); in decodeFileDescriptor()
DImageLoader.java41 private Thread mDecodeThread;
152 Thread t = new Thread(new WorkerThread()); in start()
165 Thread t = mDecodeThread; in stop()
/packages/apps/Launcher3/tests/src/com/android/launcher3/util/
DRaceConditionReproducerTest.java41 Thread tb = new Thread(() -> { in run3_3_TestAction()
88 Thread tb = new Thread(() -> { in test3_3_enter_exit()
141 Thread tb = new Thread(() -> { in test2_1_2()
147 Thread tc = new Thread(() -> { in test2_1_2()
174 Thread tb = new Thread(() -> { in test2_1_2_enter_exit()
182 Thread tc = new Thread(() -> { in test2_1_2_enter_exit()
/packages/apps/Dialer/java/com/android/dialer/common/concurrent/
DDialerExecutorModule.java61 public Thread newThread(Runnable runnable) { in provideNonUiThreadPool()
63 Thread thread = new Thread(runnable, "DialerExecutors-LowPriority"); in provideNonUiThreadPool()
78 public Thread newThread(Runnable runnable) {
80 Thread thread = new Thread(runnable, "DialerExecutors-LowPriority-Serial");
101 public Thread newThread(Runnable runnable) {
103 Thread thread = new Thread(runnable, "DialerExecutors-HighPriority-Serial");
/packages/apps/LegacyCamera/tests/src/com/android/camera/power/
DImageAndVideoCapture.java67 Thread.sleep(WAIT_FOR_STABLE_STATE); in testLaunchCamera()
80 Thread.sleep(WAIT_FOR_IMAGE_CAPTURE_TO_BE_TAKEN); in testCapture5Image()
83 Thread.sleep(WAIT_FOR_IMAGE_CAPTURE_TO_BE_TAKEN); in testCapture5Image()
85 Thread.sleep(WAIT_FOR_STABLE_STATE); in testCapture5Image()
103 Thread.sleep(WAIT_FOR_PREVIEW); in testCapture5Videos()
106 Thread.sleep(WAIT_FOR_VIDEO_CAPTURE_TO_BE_TAKEN); in testCapture5Videos()
108 Thread.sleep(WAIT_FOR_PREVIEW); in testCapture5Videos()
110 Thread.sleep(WAIT_FOR_STABLE_STATE); in testCapture5Videos()
/packages/apps/Settings/tests/uitests/src/com/android/settings/ui/
DLocationSettingsTests.java78 Thread.sleep(TIMEOUT); in testLoadingLocationSettings()
100 Thread.sleep(TIMEOUT); in testLocationDeviceOnlyMode()
108 Thread.sleep(TIMEOUT); in testLocationBatterySavingMode()
116 Thread.sleep(TIMEOUT); in testLocationHighAccuracyMode()
126 Thread.sleep(TIMEOUT); in testLocationSettingsElements()
163 Thread.sleep(TIMEOUT); in verifyLocationSettingsMode()
168 Thread.sleep(TIMEOUT); in verifyLocationSettingsMode()
171 Thread.sleep(TIMEOUT); in verifyLocationSettingsMode()
203 Thread.sleep(TIMEOUT); in verifyLocationSettingsOnOrOff()
231 Thread.sleep(TIMEOUT); in dismissAlertDialogs()
[all …]
DMoreWirelessSettingsTest2.java155 Thread.sleep(SLEEP_TIME); in testWifiMenuLoadConfigure()
281 Thread.sleep(SLEEP_TIME); in testPhase2Settings()
301 Thread.sleep(SLEEP_TIME); in testCaCertSettings()
564 Thread.sleep(SLEEP_TIME); in verifyKeepWiFiOnDuringSleep()
588 Thread.sleep(SLEEP_TIME); in verifyNetworkNotificationsOnOrOff()
609 Thread.sleep(SLEEP_TIME); in verifyWiFiOnOrOff()
650 Thread.sleep(TIMEOUT); in loadWiFiConfigureMenu()
668 Thread.sleep(SLEEP_TIME*5); in loadAddNetworkMenu()
682 Thread.sleep(SLEEP_TIME); in selectSecurityOption()
690 Thread.sleep(SLEEP_TIME); in selectEAPMethod()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DContactsTaskSchedulerTest.java70 Thread.sleep(10 * 1000); in testAutoShutdown()
76 Thread.sleep(1 * 1000); in testAutoShutdown()
79 Thread.sleep(1 * 1000); in testAutoShutdown()
82 Thread.sleep(1 * 1000); in testAutoShutdown()
85 Thread.sleep(1 * 1000); in testAutoShutdown()
90 Thread.sleep(10 * 1000); in testAutoShutdown()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
DExecutorUtils.java23 import java.lang.Thread.UncaughtExceptionHandler;
54 public Thread newThread(final Runnable runnable) { in newThread()
55 Thread thread = new Thread(runnable, TAG); in newThread()
58 public void uncaughtException(Thread thread, Throwable ex) { in newThread()
145 if (Thread.interrupted()) { in run()
/packages/apps/UniversalMediaPlayer/java/com/android/pump/app/
DPumpApplication.java29 public class PumpApplication extends GlobalsApplication implements Thread.UncaughtExceptionHandler {
32 private final Thread.UncaughtExceptionHandler mSystemUncaughtExceptionHandler =
33 Thread.getDefaultUncaughtExceptionHandler();
36 Thread.setDefaultUncaughtExceptionHandler(this); in PumpApplication()
60 public void uncaughtException(@NonNull Thread t, @NonNull Throwable e) { in uncaughtException()
/packages/services/AlternativeNetworkAccess/tests/src/com/android/ons/
DONSProfileSelectorTest.java134 new Thread(new Runnable() { in testStartProfileSelectionWithNoOpportunisticSub()
193 new Thread(new Runnable() { in testStartProfileSelectionSuccess()
258 new Thread(new Runnable() { in testStartProfileSelectionWithActivePrimarySimOnESim()
298 Thread.sleep(ms); in waitForMs()
308 new Thread(new Runnable() { in testselectProfileForDataWithNoOpportunsticSub()
338 new Thread(new Runnable() { in testselectProfileForDataWithInActiveSub()
369 new Thread(new Runnable() { in testselectProfileForDataWithInvalidSubId()
403 new Thread(new Runnable() { in testselectProfileForDataWithValidSub()
/packages/apps/Nfc/tests/src/com/android/nfc/snep/
DSnepBasicTests.java44 new Thread() { in testGetSmallNdef() method
75 new Thread() { in testGetLargeNdef() method
106 new Thread() { in testGetExcessiveNdef() method
137 new Thread() { in testPutSmallNdef() method
168 new Thread() { in testPutLargeNdef() method
199 new Thread() { in testUnsupportedVersion() method
233 new Thread() { in testDifferentMinorVersion() method
/packages/apps/Protips/src/com/android/protips/
DProtipWidget.java90 Thread.sleep(500); in goodmorning()
92 Thread.sleep(200); in goodmorning()
94 Thread.sleep(100); in goodmorning()
96 Thread.sleep(600); in goodmorning()
180 Thread.sleep(100); in blink()
183 Thread.sleep(200); in blink()
185 Thread.sleep(100); in blink()
/packages/services/Telecomm/testapps/src/com/android/server/telecom/testapps/
DTestRttActivity.java82 private Thread mReceiveReader = new Thread() {
99 if (Thread.currentThread().isInterrupted()) {
112 if (Thread.currentThread().isInterrupted()) {
116 Thread.sleep(5000);
/packages/apps/Camera2/tests/src/com/android/camera/stress/
DVideoCapture.java76 Thread.sleep(WAIT_FOR_PREVIEW); in captureVideos()
79 Thread.sleep(video_duration); in captureVideos()
94 Thread.sleep(WAIT_FOR_SWITCH_CAMERA); in testBackVideoCapture()
108 Thread.sleep(WAIT_FOR_SWITCH_CAMERA); in testFrontVideoCapture()
DImageCapture.java80 Thread.sleep(WAIT_FOR_IMAGE_CAPTURE_TO_BE_TAKEN); in captureImages()
83 Thread.sleep(WAIT_FOR_IMAGE_CAPTURE_TO_BE_TAKEN); in captureImages()
101 Thread.sleep(WAIT_FOR_SWITCH_CAMERA); in testBackImageCapture()
115 Thread.sleep(WAIT_FOR_SWITCH_CAMERA); in testFrontImageCapture()
/packages/apps/TV/tuner/src/com/android/tv/tuner/source/
DFileTsStreamer.java68 private Thread mStreamingThread;
209 Thread.currentThread().interrupt(); in stopStream()
359 Thread.currentThread().interrupt(); in readAt()
421 private class StreamingThread extends Thread {
439 Thread.currentThread().interrupt(); in run()
454 Thread.currentThread().interrupt(); in run()
/packages/apps/LegacyCamera/tests/src/com/android/camera/stress/
DVideoCapture.java79 Thread.sleep(WAIT_FOR_PREVIEW); in captureVideos()
82 Thread.sleep(video_duration); in captureVideos()
98 Thread.sleep(WAIT_FOR_SWITCH_CAMERA); in testBackVideoCapture()
113 Thread.sleep(WAIT_FOR_SWITCH_CAMERA); in testFrontVideoCapture()
DImageCapture.java82 Thread.sleep(WAIT_FOR_IMAGE_CAPTURE_TO_BE_TAKEN); in captureImages()
85 Thread.sleep(WAIT_FOR_IMAGE_CAPTURE_TO_BE_TAKEN); in captureImages()
104 Thread.sleep(WAIT_FOR_SWITCH_CAMERA); in testBackImageCapture()
119 Thread.sleep(WAIT_FOR_SWITCH_CAMERA); in testFrontImageCapture()
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothOppLauncherActivity.java124 Thread t = new Thread(new Runnable() { in onCreate()
142 Thread t = new Thread(new Runnable() { in onCreate()
169 Thread t = new Thread(new Runnable() { in onCreate()
/packages/apps/Contacts/tests/src/com/android/contacts/interactions/
DTestLoaderManager.java107 Thread[] waitThreads = new Thread[loaders.length]; in waitForLoaders()
110 waitThreads[i] = new Thread("LoaderWaitingThread" + i) { in waitForLoaders()
125 for (Thread thread : waitThreads) { in waitForLoaders()
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/
DLevelTrackingMediaRecorder.java66 private Thread mRefreshLevelThread;
194 mRefreshLevelThread = new Thread() { in startTrackingSoundLevel()
207 Thread.sleep(REFRESH_INTERVAL_MILLIS); in startTrackingSoundLevel()
210 Thread.currentThread().interrupt(); in startTrackingSoundLevel()
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DSessionManagerTest.java136 Thread.sleep(1); in testEndSession()
283 Thread.sleep(TEST_DELAY_TIME); in testEndSubsessionWithParentComplete()
338 Thread.sleep(1); in testEndExternalSession()
363 Thread.sleep(TEST_DELAY_TIME); in testEndExternalSessionListenerCallback()
403 Thread.sleep(2 * TEST_DELAY_TIME); in testStaleSessionCleanupTimer()
407 Thread.sleep(1000); in testStaleSessionCleanupTimer()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/ota/
DPreBootListener.java34 Thread thread = new Thread(() -> { in onReceive()
38 thread.setPriority(Thread.MAX_PRIORITY); in onReceive()

12345678910>>...12