/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 | 87 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/ |
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/native/services/surfaceflinger/tests/unittests/ |
D | EventThreadTest.cpp | 117 std::unique_ptr<impl::EventThread> mThread; member in android::EventThreadTest 151 mThread->onHotplugReceived(INTERNAL_DISPLAY_ID, true); in EventThreadTest() 173 mThread = std::make_unique<impl::EventThread>(std::move(source), in createThread() 187 new MockEventThreadConnection(mThread.get(), ownerUid, in createConnection() 304 mThread->onHotplugReceived(INTERNAL_DISPLAY_ID, false); in TEST_F() 308 mThread->requestNextVsync(mConnection); in TEST_F() 316 mThread->requestNextVsync(mConnection); in TEST_F() 348 mThread->setVsyncRate(0, firstConnection); in TEST_F() 358 mThread->setVsyncRate(1, secondConnection); in TEST_F() 374 mThread->setVsyncRate(1, mConnection); in TEST_F() [all …]
|
/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/native/services/inputflinger/ |
D | InputThread.cpp | 44 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/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/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 | 41 ALOGE_IF(pthread_equal(pthread_self(), mThread), in ~AAudioThread() 79 int err = pthread_create(&mThread, nullptr, AAudioThread_internalThreadProc, this); in start() 84 int err = pthread_setname_np(mThread, mName); in start() 97 if (pthread_equal(pthread_self(), mThread)) { in stop() 102 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/native/cmds/lshal/ |
D | PipeRelay.cpp | 126 mThread = new RelayThread(mFds[0], os, err, interfaceName + "/" + instanceName); in PipeRelay() 127 mInitCheck = mThread->run(getThreadName(interfaceName, instanceName).c_str()); in PipeRelay() 140 if (mThread != nullptr) { in ~PipeRelay() 141 mThread->setFinished(); in ~PipeRelay() 142 mThread->join(); in ~PipeRelay() 143 mThread.clear(); in ~PipeRelay()
|
/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/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/core/tests/mockingcoretests/src/android/app/activity/ |
D | ActivityThreadClientTest.java | 222 private ActivityThread mThread; field in ActivityThreadClientTest.ClientMockSession 225 mThread = ActivityThread.currentActivityThread(); in ClientMockSession() 240 return mThread.handleLaunchActivity(r, null /* pendingActions */, in launchActivity() 245 mThread.handleStartActivity(r, null /* pendingActions */, null /* activityOptions */); in startActivity() 249 mThread.handleResumeActivity(r, true /* finalStateRequest */, in resumeActivity() 254 mThread.handlePauseActivity(r, false /* finished */, in pauseActivity() 260 mThread.handleStopActivity(r, 0 /* configChanges */, in stopActivity() 265 mThread.handleDestroyActivity(r, true /* finishing */, 0 /* configChanges */, in destroyActivity() 270 spyOn(mThread); in mockThread() 271 return mThread; in mockThread() [all …]
|
/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/java/android/os/ |
D | Looper.java | 79 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/ |
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/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/packages/SystemUI/tests/src/com/android/systemui/qs/external/ |
D | TileServiceManagerTest.java | 46 private HandlerThread mThread; field in TileServiceManagerTest 53 mThread = new HandlerThread("TestThread"); in setUp() 54 mThread.start(); in setUp() 55 mHandler = Handler.createAsync(mThread.getLooper()); in setUp() 73 mThread.quit(); in tearDown()
|
/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 …]
|