/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/av/services/audioflinger/ |
D | PatchPanel.h | 85 mThread = other.mThread; 106 sp<ThreadType> thread() const { return mThread; } in thread() 108 sp<const ThreadType> const_thread() const { return mThread; } in const_thread() 116 if (mThread != 0) { in closeConnections() 118 mThread->deletePatchTrack(mTrack); in closeConnections() 121 panel->mAudioFlinger.closeThreadInternal_l(mThread); in closeConnections() 127 mThread = thread; 133 mThread->addPatchTrack(mTrack); in setTrackAndPeer() 142 swap(mThread, other.mThread); in swap() 154 sp<ThreadType> mThread; [all …]
|
/frameworks/native/services/surfaceflinger/tests/unittests/ |
D | EventThreadTest.cpp | 96 std::unique_ptr<android::impl::EventThread> mThread; member in android::EventThreadTest 119 mThread->onHotplugReceived(INTERNAL_DISPLAY_ID, true); in EventThreadTest() 133 mThread = in createThread() 146 new MockEventThreadConnection(mThread.get(), mResyncCallRecorder.getInvocable(), in createConnection() 233 mThread->onHotplugReceived(INTERNAL_DISPLAY_ID, false); in TEST_F() 237 mThread->requestNextVsync(mConnection); in TEST_F() 245 mThread->requestNextVsync(mConnection); in TEST_F() 277 mThread->setVsyncRate(0, firstConnection); in TEST_F() 288 mThread->setVsyncRate(1, secondConnection); in TEST_F() 304 mThread->setVsyncRate(1, mConnection); in TEST_F() [all …]
|
D | EventControlThreadTest.cpp | 45 std::unique_ptr<EventControlThread> mThread; member in android::__anon33ebc4470111::EventControlThreadTest 61 mThread = std::make_unique<android::impl::EventControlThread>( in createThread() 87 mThread->setVsyncEnabled(false); in TEST_F() 96 mThread->setVsyncEnabled(true); in TEST_F() 100 mThread->setVsyncEnabled(false); in TEST_F() 109 mThread->setVsyncEnabled(true); in TEST_F() 113 mThread->setVsyncEnabled(true); in TEST_F()
|
/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/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/native/cmds/lshal/ |
D | PipeRelay.cpp | 113 mThread = new RelayThread(mFds[0], os); in PipeRelay() 114 mInitCheck = mThread->run("RelayThread"); in PipeRelay() 127 if (mThread != nullptr) { in ~PipeRelay() 128 mThread->setFinished(); in ~PipeRelay() 129 mThread->join(); in ~PipeRelay() 130 mThread.clear(); in ~PipeRelay()
|
/frameworks/av/media/libstagefright/foundation/ |
D | ALooper.cpp | 102 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/av/services/oboeservice/ |
D | AAudioThread.cpp | 42 memset(&mThread, 0, sizeof(mThread)); in setup() 76 int err = pthread_create(&mThread, nullptr, AAudioThread_internalThreadProc, this); in start() 81 int err = pthread_setname_np(mThread, mName); in start() 93 int err = pthread_join(mThread, nullptr); in stop()
|
/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/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/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/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/tests/net/java/com/android/server/ |
D | NsdServiceTest.java | 68 HandlerThread mThread; field in NsdServiceTest 74 mThread = new HandlerThread("mock-service-handler"); in setUp() 75 mThread.start(); in setUp() 76 mHandler = new TestHandler(mThread.getLooper()); in setUp() 82 if (mThread != null) { in tearDown() 83 mThread.quit(); in tearDown() 84 mThread = null; in tearDown()
|
/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/core/java/android/os/ |
D | Looper.java | 79 final Thread mThread; field in Looper 301 mThread = Thread.currentThread(); in Looper() 308 return Thread.currentThread() == mThread; in isCurrentThread() 381 return mThread; in getThread() 420 proto.write(LooperProto.THREAD_NAME, mThread.getName()); in writeToProto() 421 proto.write(LooperProto.THREAD_ID, mThread.getId()); in writeToProto() 430 return "Looper (" + mThread.getName() + ", tid " + mThread.getId() in toString()
|
/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/packages/SystemUI/tests/src/com/android/systemui/qs/external/ |
D | TileServiceManagerTest.java | 44 private HandlerThread mThread; field in TileServiceManagerTest 50 mThread = new HandlerThread("TestThread"); in setUp() 51 mThread.start(); in setUp() 52 mHandler = Handler.createAsync(mThread.getLooper()); in setUp() 65 mThread.quit(); in tearDown()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | InstrumentationReporter.java | 37 Thread mThread; field in InstrumentationReporter 64 mThread = null; in run() 133 if (mThread == null) { in report() 134 mThread = new MyThread(); in report() 135 mThread.start(); in report()
|
/frameworks/native/libs/renderengine/gl/ |
D | ImageManager.cpp | 36 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, ¶m) != 0) { in initThread() 52 if (mThread.joinable()) { in ~ImageManager() 53 mThread.join(); in ~ImageManager()
|
/frameworks/av/media/libstagefright/webm/ |
D | WebmWriter.cpp | 292 if (mStreams[idx].mThread != NULL) { in initStream() 297 mStreams[idx].mThread = new WebmFrameEmptySourceThread( in initStream() 301 mStreams[idx].mThread = new WebmFrameMediaSourceThread( in initStream() 339 if (mStreams[i].mThread == NULL) { in reset() 343 status_t status = mStreams[i].mThread->stop(); in reset() 348 int64_t durationUs = mStreams[i].mThread->getDurationUs(); in reset() 356 mStreams[i].mThread.clear(); in reset() 506 mStreams[kAudioIndex].mThread->resume(); in start() 507 mStreams[kVideoIndex].mThread->resume(); in start() 591 mStreams[kAudioIndex].mThread->start(); in start() [all …]
|
/frameworks/base/core/tests/mockingcoretests/src/android/app/activity/ |
D | ActivityThreadClientTest.java | 284 private ActivityThread mThread; field in ActivityThreadClientTest.ClientMockSession 287 mThread = ActivityThread.currentActivityThread(); in ClientMockSession() 301 return mThread.handleLaunchActivity(r, null /* pendingActions */, in launchActivity() 306 mThread.handleStartActivity(r, null /* pendingActions */); in startActivity() 310 mThread.handleResumeActivity(r.token, true /* finalStateRequest */, in resumeActivity() 315 mThread.handlePauseActivity(r.token, false /* finished */, in pauseActivity() 321 mThread.handleStopActivity(r.token, false /* show */, 0 /* configChanges */, in stopActivity() 326 mThread.handleDestroyActivity(r.token, true /* finishing */, 0 /* configChanges */, in destroyActivity() 331 mThread.handleWindowVisibility(r.token, show); in changeVisibility() 350 null /* profilerInfo */, mThread /* client */, null /* asssitToken */); in stubActivityRecord()
|
/frameworks/native/services/surfaceflinger/Scheduler/ |
D | EventControlThread.cpp | 35 pthread_setname_np(mThread.native_handle(), "EventControlThread"); in EventControlThread() 37 pid_t tid = pthread_gettid_np(mThread.native_handle()); in EventControlThread() 48 mThread.join(); in ~EventControlThread()
|