Home
last modified time | relevance | path

Searched refs:mThread (Results 1 – 25 of 134) sorted by relevance

123456

/frameworks/base/core/java/com/android/server/
DResettableTimeout.java64 if (mThread == null) { in go()
67 mThread = new T(); in go()
68 mThread.start(); in go()
74 mThread.interrupt(); in go()
87 if (mThread != null) { in cancel()
88 mThread.interrupt(); in cancel()
89 mThread = null; in cancel()
110 mThread = null; in run()
131 private Thread mThread; field in ResettableTimeout
/frameworks/av/services/audioflinger/
DPatchPanel.h87 mThread = other.mThread;
108 sp<ThreadType> thread() const { return mThread; } in thread()
110 sp<const ThreadType> const_thread() const { return mThread; } in const_thread()
118 if (mThread != 0) { in closeConnections()
120 mThread->deletePatchTrack(mTrack); in closeConnections()
123 panel->mAudioFlinger.closeThreadInternal_l(mThread); in closeConnections()
129 mThread = thread;
135 mThread->addPatchTrack(mTrack); in setTrackAndPeer()
144 swap(mThread, other.mThread); in swap()
156 sp<ThreadType> mThread;
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/am/
DServiceThreadRule.java29 private ServiceThread mThread; field in ServiceThreadRule
32 return mThread; in getThread()
40 mThread = new ServiceThread("TestServiceThread", Process.THREAD_PRIORITY_DEFAULT, in apply()
42 mThread.start(); in apply()
46 mThread.getThreadHandler().runWithScissors(mThread::quit, 0 /* timeout */); in apply()
/frameworks/base/tests/SurfaceComposition/src/android/surfacecomposition/
DMemoryAccessTask.java29 private WorkThread mThread; field in MemoryAccessTask
51 if (mThread != null) { in start()
55 mThread = new WorkThread(); in start()
56 mThread.start(); in start()
60 if (mThread != null) { in stop()
65 mThread.join(); in stop()
/frameworks/native/services/inputflinger/
DInputThread.cpp44 mThread = new InputThreadImpl(loop); in InputThread()
45 mThread->run(mName.c_str(), ANDROID_PRIORITY_URGENT_DISPLAY); in InputThread()
49 mThread->requestExit(); in ~InputThread()
53 mThread->requestExitAndWait(); in ~InputThread()
57 return gettid() == mThread->getTid(); in isCallingThread()
/frameworks/native/services/surfaceflinger/tests/unittests/
DEventThreadTest.cpp125 std::unique_ptr<impl::EventThread> mThread; member in android::EventThreadTest
160 mThread->onHotplugReceived(INTERNAL_DISPLAY_ID, true); in EventThreadTest()
183 mThread = std::make_unique<impl::EventThread>(std::move(source), mTokenManager.get(), in createThread()
196 new MockEventThreadConnection(mThread.get(), ownerUid, in createConnection()
355 mThread->onHotplugReceived(INTERNAL_DISPLAY_ID, false); in TEST_F()
359 mThread->requestNextVsync(mConnection); in TEST_F()
367 mThread->requestNextVsync(mConnection); in TEST_F()
397 mThread->requestNextVsync(mConnection); in TEST_F()
417 VsyncEventData vsyncEventData = mThread->getLatestVsyncEventData(mConnection); in TEST_F()
463 mThread->setVsyncRate(0, firstConnection); in TEST_F()
[all …]
/frameworks/av/services/oboeservice/
DAAudioThread.cpp42 ALOGE_IF(mThread.get_id() == std::this_thread::get_id(), in ~AAudioThread()
72 mThread = std::thread(&AAudioThread::dispatch, this); in start()
82 if (mThread.get_id() == std::this_thread::get_id()) { in stop()
86 } else if (mThread.joinable()) { in stop()
88 mThread.join(); in stop()
/frameworks/base/services/core/java/com/android/server/wm/
DViewServer.java71 private Thread mThread; field in ViewServer
103 if (mThread != null) { in start()
108 mThread = new Thread(this, "Remote View Server [port=" + mPort + "]"); in start()
110 mThread.start(); in start()
126 if (mThread != null) { in stop()
128 mThread.interrupt(); in stop()
137 mThread = null; in stop()
159 return mThread != null && mThread.isAlive(); in isRunning()
166 while (Thread.currentThread() == mThread) { in run()
/frameworks/av/media/libstagefright/foundation/
DALooper.cpp102 if (mThread != NULL || mRunningLocally) { in start()
117 if (mThread != NULL || mRunningLocally) { in start()
121 mThread = new LooperThread(this, canCallJava); in start()
123 status_t err = mThread->run( in start()
126 mThread.clear(); in start()
139 thread = mThread; in stop()
141 mThread.clear(); in stop()
201 if (mThread == NULL && !mRunningLocally) { in loop()
248 if (mThread == NULL) { in awaitResponse()
/frameworks/base/apct-tests/perftests/core/src/android/os/
DLooperStatsPerfTest.java47 private HandlerThread mThread; field in LooperStatsPerfTest
56 mThread = new HandlerThread("UnusedThread"); in setUp()
57 mThread.start(); in setUp()
59 mMessages[i] = mThread.getThreadHandler().obtainMessage(i); in setUp()
65 mThread.quit(); in tearDown()
/frameworks/base/tests/BatteryWaster/src/com/android/batterywaster/
DBatteryWaster.java43 SpinThread mThread; field in BatteryWaster
123 if (mThread == null) { in startRunning()
124 mThread = new SpinThread(); in startRunning()
125 mThread.start(); in startRunning()
136 if (mThread != null) { in stopRunning()
137 mThread.quit(); in stopRunning()
138 mThread = null; in stopRunning()
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DCanvasTextureViewActivity.java33 private CanvasTextureViewActivity.RenderingThread mThread; field in CanvasTextureViewActivity
51 mThread = new RenderingThread(mTextureView); in onSurfaceTextureAvailable()
52 mThread.start(); in onSurfaceTextureAvailable()
62 if (mThread != null) mThread.stopRendering(); in onSurfaceTextureDestroyed()
DHardwareCanvasTextureViewActivity.java34 private HardwareCanvasTextureViewActivity.RenderingThread mThread; field in HardwareCanvasTextureViewActivity
52 mThread = new RenderingThread(mTextureView); in onSurfaceTextureAvailable()
53 mThread.start(); in onSurfaceTextureAvailable()
63 if (mThread != null) mThread.stopRendering(); in onSurfaceTextureDestroyed()
DHardwareCanvasSurfaceViewActivity.java41 private HardwareCanvasSurfaceViewActivity.RenderingThread mThread; field in HardwareCanvasSurfaceViewActivity
91 mThread = new RenderingThread(holder); in surfaceCreated()
92 mThread.start(); in surfaceCreated()
97 mThread.setSize(width, height); in surfaceChanged()
102 if (mThread != null) mThread.stopRendering(); in surfaceDestroyed()
/frameworks/native/services/surfaceflinger/CompositionEngine/src/
DHwcAsyncWorker.cpp31 mThread = std::thread(&HwcAsyncWorker::run, this); in HwcAsyncWorker()
32 pthread_setname_np(mThread.native_handle(), "HwcAsyncWorker"); in HwcAsyncWorker()
41 if (mThread.joinable()) { in ~HwcAsyncWorker()
42 mThread.join(); in ~HwcAsyncWorker()
/frameworks/base/core/java/com/android/internal/view/
DWindowManagerPolicyThread.java27 static Thread mThread; field in WindowManagerPolicyThread
31 mThread = thread; in set()
36 return mThread; in getThread()
/frameworks/base/media/java/android/media/
DAsyncPlayer.java121 mThread = null; in run()
131 private Thread mThread; field in AsyncPlayer
231 if (mThread == null) { in enqueueLocked()
233 mThread = new Thread(); in enqueueLocked()
234 mThread.start(); in enqueueLocked()
253 if (mWakeLock != null || mThread != null) { in setUsesWakeLock()
257 + " mThread=" + mThread); in setUsesWakeLock()
/frameworks/base/services/core/jni/BroadcastRadio/
DNativeCallbackThread.cpp31 mThread(&NativeCallbackThread::threadLoop, this) { in NativeCallbackThread()
109 if (mThread.get_id() == std::this_thread::get_id()) { in stop()
112 mThread.detach(); in stop()
114 mThread.join(); in stop()
/frameworks/base/core/tests/mockingcoretests/src/android/app/activity/
DActivityThreadClientTest.java269 private ActivityThread mThread; field in ActivityThreadClientTest.ClientMockSession
272 mThread = ActivityThread.currentActivityThread(); in ClientMockSession()
287 return mThread.handleLaunchActivity(r, null /* pendingActions */, in launchActivity()
292 mThread.handleStartActivity(r, null /* pendingActions */, null /* activityOptions */); in startActivity()
296 mThread.handleResumeActivity(r, true /* finalStateRequest */, in resumeActivity()
301 mThread.handlePauseActivity(r, false /* finished */, in pauseActivity()
307 mThread.handleStopActivity(r, 0 /* configChanges */, in stopActivity()
312 mThread.handleDestroyActivity(r, true /* finishing */, 0 /* configChanges */, in destroyActivity()
317 spyOn(mThread); in mockThread()
318 return mThread; in mockThread()
[all …]
/frameworks/base/core/java/android/os/
DLooper.java79 final Thread mThread; field in Looper
326 mThread = Thread.currentThread(); in Looper()
333 return Thread.currentThread() == mThread; in isCurrentThread()
406 return mThread; in getThread()
445 proto.write(LooperProto.THREAD_NAME, mThread.getName()); in dumpDebug()
446 proto.write(LooperProto.THREAD_ID, mThread.getId()); in dumpDebug()
455 return "Looper (" + mThread.getName() + ", tid " + mThread.getId() in toString()
/frameworks/native/libs/renderengine/gl/
DImageManager.cpp36 mThread = std::thread([this]() { threadMain(); }); in initThread()
37 pthread_setname_np(mThread.native_handle(), "ImageManager"); in initThread()
41 if (pthread_setschedparam(mThread.native_handle(), SCHED_FIFO, &param) != 0) { in initThread()
52 if (mThread.joinable()) { in ~ImageManager()
53 mThread.join(); in ~ImageManager()
/frameworks/av/media/libstagefright/renderfright/gl/
DImageManager.cpp36 mThread = std::thread([this]() { threadMain(); }); in initThread()
37 pthread_setname_np(mThread.native_handle(), "ImageManager"); in initThread()
42 if (pthread_setschedparam(mThread.native_handle(), SCHED_FIFO, &param) != 0) { in initThread()
54 if (mThread.joinable()) { in ~ImageManager()
55 mThread.join(); in ~ImageManager()
/frameworks/base/services/core/java/com/android/server/am/
DInstrumentationReporter.java38 Thread mThread; field in InstrumentationReporter
65 mThread = null; in run()
136 if (mThread == null) { in report()
137 mThread = new MyThread(); in report()
138 mThread.start(); in report()
/frameworks/native/cmds/lshal/
DPipeRelay.cpp49 pipeRelay->mThread = in create()
103 if (mThread != nullptr && mThread->joinable()) { in ~PipeRelay()
104 mThread->join(); in ~PipeRelay()
/frameworks/native/services/surfaceflinger/
DBackgroundExecutor.cpp31 mThread = std::thread([&]() { in BackgroundExecutor()
62 if (mThread.joinable()) { in ~BackgroundExecutor()
63 mThread.join(); in ~BackgroundExecutor()

123456