/aosp14/frameworks/base/core/java/com/android/server/ |
H A 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
|
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/am/ |
H A 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()
|
/aosp14/frameworks/base/tests/SurfaceComposition/src/android/surfacecomposition/ |
H A 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()
|
/aosp14/frameworks/base/services/core/java/com/android/server/wm/ |
H A 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()
|
/aosp14/frameworks/base/apct-tests/perftests/core/src/android/os/ |
H A 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()
|
/aosp14/frameworks/base/tests/BatteryWaster/src/com/android/batterywaster/ |
H A 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()
|
/aosp14/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
H A 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()
|
H A 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()
|
H A 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()
|
/aosp14/frameworks/base/media/java/android/media/ |
H A 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()
|
/aosp14/frameworks/base/core/tests/mockingcoretests/src/android/app/activity/ |
H A D | ActivityThreadClientTest.java | 278 private ActivityThread mThread; field in ActivityThreadClientTest.ClientMockSession 281 mThread = ActivityThread.currentActivityThread(); in ClientMockSession() 296 return mThread.handleLaunchActivity(r, null /* pendingActions */, in launchActivity() 301 mThread.handleStartActivity(r, null /* pendingActions */, null /* activityOptions */); in startActivity() 305 mThread.handleResumeActivity(r, true /* finalStateRequest */, in resumeActivity() 310 mThread.handlePauseActivity(r, false /* finished */, in pauseActivity() 316 mThread.handleStopActivity(r, 0 /* configChanges */, in stopActivity() 321 mThread.handleDestroyActivity(r, true /* finishing */, 0 /* configChanges */, in destroyActivity() 326 spyOn(mThread); in mockThread() 327 return mThread; in mockThread() [all …]
|
/aosp14/frameworks/base/core/java/com/android/internal/view/ |
H A D | WindowManagerPolicyThread.java | 27 static Thread mThread; field in WindowManagerPolicyThread 31 mThread = thread; in set() 36 return mThread; in getThread()
|
/aosp14/frameworks/base/core/java/android/os/ |
H A D | Looper.java | 79 final Thread mThread; field in Looper 332 mThread = Thread.currentThread(); in Looper() 339 return Thread.currentThread() == mThread; in isCurrentThread() 412 return mThread; in getThread() 451 proto.write(LooperProto.THREAD_NAME, mThread.getName()); in dumpDebug() 452 proto.write(LooperProto.THREAD_ID, mThread.getId()); in dumpDebug() 461 return "Looper (" + mThread.getName() + ", tid " + mThread.getId() in toString()
|
/aosp14/frameworks/base/services/core/jni/BroadcastRadio/ |
H A 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()
|
/aosp14/frameworks/base/services/core/java/com/android/server/am/ |
H A 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()
|
/aosp14/frameworks/base/core/java/android/view/textservice/ |
H A D | SpellCheckerSession.java | 268 private HandlerThread mThread; field in SpellCheckerSession.SpellCheckerSessionListenerImpl 357 if (mThread != null) { in processCloseLocked() 358 mThread.quit(); in processCloseLocked() 362 mThread = null; in processCloseLocked() 400 if (session.asBinder() instanceof Binder && mThread == null) { in onServiceConnected() 404 mThread = new HandlerThread("SpellCheckerSession", in onServiceConnected() 406 mThread.start(); in onServiceConnected() 407 mAsyncHandler = new Handler(mThread.getLooper()) { in onServiceConnected()
|
/aosp14/system/core/libutils/ |
H A D | Threads.cpp | 637 mThread(thread_id_t(-1)), in Thread() 673 mThread = thread_id_t(-1); in run() 683 this, name, priority, stack, &mThread); in run() 686 this, name, priority, stack, &mThread); in run() 692 mThread = thread_id_t(-1); in run() 754 self->mThread = thread_id_t(-1); in _threadLoop() 781 if (mThread == getThreadId()) { in requestExitAndWait() 805 if (mThread == getThreadId()) { in join() 833 pthread_t pthread = android_thread_id_t_to_pthread(mThread); in getTid()
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/external/ |
H A D | TileServiceManagerTest.java | 71 private HandlerThread mThread; field in TileServiceManagerTest 79 mThread = new HandlerThread("TestThread"); in setUp() 80 mThread.start(); in setUp() 81 mHandler = Handler.createAsync(mThread.getLooper()); in setUp() 99 mThread.quit(); in tearDown()
|
/aosp14/frameworks/base/tests/AccessoryDisplay/common/src/com/android/accessorydisplay/common/ |
H A D | Transport.java | 53 private ReaderThread mThread; field in Transport 86 if (mThread == null) { in close() 93 mThread.quit(); in close() 168 mThread = new ReaderThread(); in startReading() 169 mThread.start(); in startReading()
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/screenrecord/ |
H A D | ScreenInternalAudioRecorder.java | 45 private Thread mThread; field in ScreenInternalAudioRecorder 129 mThread = new Thread(() -> { in setupSimple() 295 if (mThread == null) { in start() 308 mThread.start(); in start() 324 mThread.join(); in end() 332 mThread = null; in end()
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/media/ |
H A D | NotificationPlayer.java | 285 mThread = null; in run() 341 private CmdThread mThread; field in NotificationPlayer 455 if (mThread == null) { in enqueueLocked() 457 mThread = new CmdThread(); in enqueueLocked() 458 mThread.start(); in enqueueLocked() 477 if (mWakeLock != null || mThread != null) { in setUsesWakeLock() 481 + " mThread=" + mThread); in setUsesWakeLock()
|
/aosp14/frameworks/base/core/java/com/android/internal/os/ |
H A D | TransferPipe.java | 48 final Thread mThread; field in TransferPipe 72 mThread = new Thread(this, threadName); in TransferPipe() 193 mThread.start(); in go() 199 mThread.interrupt(); in go() 301 if (mThread.isInterrupted()) { in run()
|
/aosp14/frameworks/base/services/accessibility/java/com/android/server/accessibility/ |
H A D | FlashNotificationsController.java | 227 private volatile FlashNotificationThread mThread; field in FlashNotificationsController 572 if (mThread != null) { in stopFlashNotificationLocked() 575 "stopFlashNotificationLocked: tag=" + mThread.mFlashNotification.mTag); in stopFlashNotificationLocked() 577 mThread.cancel(); in stopFlashNotificationLocked() 578 mThread = null; in stopFlashNotificationLocked() 601 mThread = new FlashNotificationThread(notification); in startFlashNotificationLocked() 602 mFlashNotificationHandler.post(mThread); in startFlashNotificationLocked() 780 if (mThread == this) { in run() 781 mThread = null; in run() 824 mThread.mForceStop = true; in cancel() [all …]
|
/aosp14/frameworks/base/services/core/java/com/android/server/pm/ |
H A D | DataLoaderManagerService.java | 50 private final HandlerThread mThread; field in DataLoaderManagerService 59 mThread = new HandlerThread(TAG); in DataLoaderManagerService() 60 mThread.start(); in DataLoaderManagerService() 62 mHandler = new Handler(mThread.getLooper()); in DataLoaderManagerService()
|
/aosp14/frameworks/base/core/java/android/app/ |
H A D | Instrumentation.java | 111 private ActivityThread mThread = null; field in Instrumentation 351 return mThread.getProcessName(); in getProcessName() 360 return mThread.isProfiling(); in isProfiling() 369 if (mThread.isProfiling()) { in startProfiling() 380 if (mThread.isProfiling()) { in stopProfiling() 422 mThread.getHandler().post(new EmptyRunnable()); in waitForIdle() 473 mThread.getHandler().post(sr); in runOnMainSync() 539 String myProc = mThread.getProcessName(); in startActivitySync() 1386 if (mThread == null) { in getFactory() 2206 mThread = thread; in init() [all …]
|