/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() 129 private Thread mThread; field in ResettableTimeout
|
/frameworks/support/samples/Support4Demos/src/com/example/android/supportv4/app/ |
D | FragmentRetainInstanceSupport.java | 109 final Thread mThread = new Thread() { field in FragmentRetainInstanceSupport.RetainedFragment 165 mThread.start(); in onCreate() 183 synchronized (mThread) { in onActivityCreated() 185 mThread.notify(); in onActivityCreated() 196 synchronized (mThread) { in onDestroy() 199 mThread.notify(); in onDestroy() 214 synchronized (mThread) { in onDetach() 217 mThread.notify(); in onDetach() 227 synchronized (mThread) { in restart() 229 mThread.notify(); in restart()
|
/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/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() 199 if (mThread == NULL && !mRunningLocally) { in loop() 243 if (mThread == NULL) { in awaitResponse()
|
/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/base/services/usb/java/com/android/server/usb/ |
D | UsbDebuggingManager.java | 66 private UsbDebuggingThread mThread; field in UsbDebuggingManager 219 mThread = new UsbDebuggingThread(); in handleMessage() 220 mThread.start(); in handleMessage() 230 if (mThread != null) { in handleMessage() 231 mThread.stopListening(); in handleMessage() 232 mThread = null; in handleMessage() 251 if (mThread != null) { in handleMessage() 252 mThread.sendResponse("OK"); in handleMessage() 258 if (mThread != null) { in handleMessage() 259 mThread.sendResponse("NO"); in handleMessage() [all …]
|
/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/core/java/android/os/ |
D | Looper.java | 72 final Thread mThread; field in Looper 199 mThread = Thread.currentThread(); in Looper() 206 return Thread.currentThread() == mThread; in isCurrentThread() 269 return mThread; in getThread() 294 return "Looper (" + mThread.getName() + ", tid " + mThread.getId() in toString()
|
/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.getSurface()); 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 | 120 mThread = null; in run() 130 private Thread mThread; field in AsyncPlayer 229 if (mThread == null) { in enqueueLocked() 231 mThread = new Thread(); in enqueueLocked() 232 mThread.start(); in enqueueLocked() 250 if (mWakeLock != null || mThread != null) { in setUsesWakeLock() 254 + " mThread=" + mThread); in setUsesWakeLock()
|
/frameworks/base/core/java/com/android/internal/view/ |
D | WindowManagerPolicyThread.java | 26 static Thread mThread; field in WindowManagerPolicyThread 30 mThread = thread; in set() 35 return mThread; in getThread()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/external/ |
D | TileServiceManagerTests.java | 31 private HandlerThread mThread; field in TileServiceManagerTests 38 mThread = new HandlerThread("TestThread"); in setUp() 39 mThread.start(); in setUp() 40 mHandler = new Handler(mThread.getLooper()); in setUp() 54 mThread.quit(); in tearDown()
|
D | TileLifecycleManagerTests.java | 46 private HandlerThread mThread; field in TileLifecycleManagerTests 56 mThread = new HandlerThread("TestThread"); in setUp() 57 mThread.start(); in setUp() 58 mHandler = new Handler(mThread.getLooper()); in setUp() 74 mThread.quit(); in tearDown()
|
/frameworks/av/media/libstagefright/webm/ |
D | WebmWriter.cpp | 229 if (mStreams[idx].mThread != NULL) { in initStream() 234 mStreams[idx].mThread = new WebmFrameEmptySourceThread( in initStream() 238 mStreams[idx].mThread = new WebmFrameMediaSourceThread( in initStream() 276 if (mStreams[i].mThread == NULL) { in reset() 280 status_t status = mStreams[i].mThread->stop(); in reset() 285 int64_t durationUs = mStreams[i].mThread->getDurationUs(); in reset() 293 mStreams[i].mThread.clear(); in reset() 441 mStreams[kAudioIndex].mThread->resume(); in start() 442 mStreams[kVideoIndex].mThread->resume(); in start() 526 mStreams[kAudioIndex].mThread->start(); in start() [all …]
|
/frameworks/opt/bluetooth/src/android/bluetooth/client/map/ |
D | BluetoothMasObexClientSession.java | 58 private HandlerThread mThread; field in BluetoothMasObexClientSession 108 mThread = new HandlerThread("BluetoothMasObexClientSessionThread"); in start() 109 mThread.start(); in start() 110 mHandler = new ObexClientHandler(mThread.getLooper(), this); in start() 130 mThread.quit(); in stop()
|
/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/base/core/java/android/view/textservice/ |
D | SpellCheckerSession.java | 260 private HandlerThread mThread; field in SpellCheckerSession.SpellCheckerSessionListenerImpl 348 if (mThread != null) { in processCloseLocked() 349 mThread.quit(); in processCloseLocked() 353 mThread = null; in processCloseLocked() 391 if (session.asBinder() instanceof Binder && mThread == null) { in onServiceConnected() 395 mThread = new HandlerThread("SpellCheckerSession", in onServiceConnected() 397 mThread.start(); in onServiceConnected() 398 mAsyncHandler = new Handler(mThread.getLooper()) { in onServiceConnected()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/ |
D | NotificationPlayer.java | 218 mThread = null; in run() 258 private CmdThread mThread; field in NotificationPlayer 359 if (mThread == null) { in enqueueLocked() 361 mThread = new CmdThread(); in enqueueLocked() 362 mThread.start(); in enqueueLocked() 380 if (mWakeLock != null || mThread != null) { in setUsesWakeLock() 384 + " mThread=" + mThread); in setUsesWakeLock()
|
/frameworks/base/packages/StatementService/src/com/android/statementservice/ |
D | DirectStatementService.java | 126 private HandlerThread mThread; field in DirectStatementService 131 mThread = new HandlerThread("DirectStatementService thread", in onCreate() 133 mThread.start(); in onCreate() 134 onCreate(AbstractStatementRetriever.createDirectRetriever(this), mThread.getLooper(), in onCreate() 158 if (mThread != null) { in onDestroy() 159 mThread.quit(); in onDestroy()
|
/frameworks/base/cmds/hid/src/com/android/commands/hid/ |
D | Device.java | 45 private final HandlerThread mThread; field in Device 62 mThread = new HandlerThread("HidDeviceHandler"); in Device() 63 mThread.start(); in Device() 64 mHandler = new DeviceHandler(mThread.getLooper()); in Device()
|
/frameworks/base/tests/UiBench/src/com/android/test/uibench/ |
D | EditTextTypeActivity.java | 35 Thread mThread; field in EditTextTypeActivity 74 mThread = new Thread(new Runnable() { in onCreate() 100 mThread.start(); in onCreate()
|
/frameworks/base/core/java/com/android/internal/os/ |
D | TransferPipe.java | 41 final Thread mThread;; field in TransferPipe 57 mThread = new Thread(this, "TransferPipe"); in TransferPipe() 139 mThread.start(); in go() 145 mThread.interrupt(); in go() 238 if (mThread.isInterrupted()) { in run()
|
/frameworks/base/tests/AccessoryDisplay/common/src/com/android/accessorydisplay/common/ |
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()
|