/frameworks/base/core/java/com/android/server/ |
D | ResettableTimeout.java | 64 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/base/services/tests/servicestests/src/com/android/server/am/ |
D | ServiceThreadRule.java | 29 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/ |
D | MemoryAccessTask.java | 29 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/av/services/audioflinger/ |
D | IAfPatchPanel.h | 113 mThread = other.mThread; 135 sp<ThreadType> thread() const { return mThread; } in thread() 137 sp<const ThreadType> const_thread() const { return mThread; } in const_thread() 148 if (mThread != nullptr) { in closeConnections_l() 150 mThread->deletePatchTrack(mTrack); in closeConnections_l() 153 panel->closeThreadInternal_l(mThread); in closeConnections_l() 159 mThread = thread; 165 mThread->addPatchTrack(mTrack); in setTrackAndPeer() 178 swap(mThread, other.mThread); in swap() 188 sp<ThreadType> mThread; [all …]
|
/frameworks/native/services/inputflinger/ |
D | InputThread.cpp | 44 mThread = sp<InputThreadImpl>::make(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() 58 return gettid() == mThread->getTid(); in isCallingThread()
|
D | InputFilterCallbacks.cpp | 46 mThread = std::make_unique<InputThread>( in InputFilterThread() 51 if (mThread && mThread->isCallingThread()) { in finish() 55 mThread.reset(); in finish() 72 std::unique_ptr<InputThread> mThread; member in android::__anone6a176790111::InputFilterThread
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | ViewServer.java | 71 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/services/oboeservice/ |
D | AAudioThread.cpp | 42 ALOGE_IF(mThread.get_id() == std::this_thread::get_id(), in ~AAudioThread() 72 mThread = std::thread(&AAudioThread::dispatch, this); in start() 84 if (mThread.get_id() == std::this_thread::get_id()) { in stop() 88 } else if (mThread.joinable()) { in stop() 90 mThread.join(); in stop()
|
/frameworks/native/services/surfaceflinger/tests/unittests/ |
D | EventThreadTest.cpp | 117 mThread->onVsync(expectedPresentationTime, timestamp, deadlineTimestamp); in onVSyncEvent() 143 std::unique_ptr<impl::EventThread> mThread; member in android::EventThreadTest 180 mThread.reset(); in ~EventThreadTest() 204 mThread = std::make_unique<impl::EventThread>("EventThreadTest", mVsyncSchedule, in setupEventThread() 220 mThread->onHotplugReceived(INTERNAL_DISPLAY_ID, true); in setupEventThread() 228 sp<MockEventThreadConnection>::make(mThread.get(), ownerUid, eventRegistration); in createConnection() 401 mThread->onHotplugReceived(INTERNAL_DISPLAY_ID, false); in TEST_F() 405 mThread->requestNextVsync(mConnection); in TEST_F() 415 mThread->requestNextVsync(mConnection); in TEST_F() 449 mThread->requestNextVsync(mConnection); in TEST_F() [all …]
|
/frameworks/native/services/surfaceflinger/ |
D | BackgroundExecutor.cpp | 48 mThread = std::thread([&, highPriority]() { in BackgroundExecutor() 62 pthread_setname_np(mThread.native_handle(), "BckgrndExec HP"); in BackgroundExecutor() 64 pthread_setname_np(mThread.native_handle(), "BckgrndExec LP"); in BackgroundExecutor() 71 if (mThread.joinable()) { in ~BackgroundExecutor() 72 mThread.join(); in ~BackgroundExecutor()
|
/frameworks/base/apct-tests/perftests/core/src/android/os/ |
D | LooperStatsPerfTest.java | 47 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/av/media/module/foundation/ |
D | ALooper.cpp | 106 if (mThread != NULL || mRunningLocally) { in start() 121 if (mThread != NULL || mRunningLocally) { in start() 125 mThread = new LooperThread(this, canCallJava); in start() 127 status_t err = mThread->run( in start() 130 mThread.clear(); in start() 143 thread = mThread; in stop() 145 mThread.clear(); in stop() 256 if (mThread == NULL && !mRunningLocally) { in loop() 303 if (mThread == NULL) { in awaitResponse()
|
/frameworks/base/tests/BatteryWaster/src/com/android/batterywaster/ |
D | BatteryWaster.java | 43 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/graphics/HwAccelerationTest/src/com/android/test/hwui/ |
D | CanvasTextureViewActivity.java | 33 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()
|
D | HardwareCanvasTextureViewActivity.java | 34 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()
|
D | HardwareCanvasSurfaceViewActivity.java | 41 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/ |
D | HwcAsyncWorker.cpp | 31 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/ |
D | WindowManagerPolicyThread.java | 27 static Thread mThread; field in WindowManagerPolicyThread 31 mThread = thread; in set() 36 return mThread; in getThread()
|
/frameworks/base/media/java/android/media/ |
D | AsyncPlayer.java | 121 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/ |
D | NativeCallbackThread.cpp | 31 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/ |
D | ActivityThreadClientTest.java | 279 private ActivityThread mThread; field in ActivityThreadClientTest.ClientMockSession 282 mThread = ActivityThread.currentActivityThread(); in ClientMockSession() 297 return mThread.handleLaunchActivity(r, null /* pendingActions */, in launchActivity() 302 mThread.handleStartActivity(r, null /* pendingActions */, null /* activityOptions */); in startActivity() 306 mThread.handleResumeActivity(r, true /* finalStateRequest */, in resumeActivity() 311 mThread.handlePauseActivity(r, false /* finished */, in pauseActivity() 317 mThread.handleStopActivity(r, in stopActivity() 322 mThread.handleDestroyActivity(r, true /* finishing */, in destroyActivity() 327 spyOn(mThread); in mockThread() 328 return mThread; in mockThread() [all …]
|
/frameworks/base/core/java/android/os/ |
D | Looper.java | 82 final Thread mThread; field in Looper 367 mThread = Thread.currentThread(); in Looper() 374 return Thread.currentThread() == mThread; in isCurrentThread() 447 return mThread; in getThread() 486 proto.write(LooperProto.THREAD_NAME, mThread.getName()); in dumpDebug() 487 proto.write(LooperProto.THREAD_ID, mThread.getId()); in dumpDebug() 496 return "Looper (" + mThread.getName() + ", tid " + mThread.getId() in toString()
|
/frameworks/av/media/libstagefright/renderfright/gl/ |
D | ImageManager.cpp | 36 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, ¶m) != 0) { in initThread() 54 if (mThread.joinable()) { in ~ImageManager() 55 mThread.join(); in ~ImageManager()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | InstrumentationReporter.java | 38 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/base/core/java/android/database/sqlite/ |
D | SQLiteRawStatement.java | 113 private Thread mThread; field in SQLiteRawStatement 167 mThread = Thread.currentThread(); in SQLiteRawStatement() 183 if (mThread != Thread.currentThread()) { in throwIfInvalid() 185 if (mThread == null) { in throwIfInvalid() 188 throw new IllegalStateException("method called on a foreign thread: " + mThread); in throwIfInvalid() 218 if (mThread != null) { in close() 223 mThread = null; in close() 233 return mThread != null; in isOpen()
|