Home
last modified time | relevance | path

Searched refs:mThread (Results 1 – 25 of 66) sorted by relevance

123

/frameworks/base/core/java/com/android/server/
DResettableTimeout.java64 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/
DFragmentRetainInstanceSupport.java109 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/
DMemoryAccessTask.java29 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/
DALooper.cpp102 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/
DViewServer.java71 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/
DUsbDebuggingManager.java66 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/
DBatteryWaster.java43 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/
DLooper.java72 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/
DCanvasTextureViewActivity.java33 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()
DHardwareCanvasTextureViewActivity.java34 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()
DHardwareCanvasSurfaceViewActivity.java41 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/
DAsyncPlayer.java120 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/
DWindowManagerPolicyThread.java26 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/
DTileServiceManagerTests.java31 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()
DTileLifecycleManagerTests.java46 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/
DWebmWriter.cpp229 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/
DBluetoothMasObexClientSession.java58 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/
DInstrumentationReporter.java37 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/
DSpellCheckerSession.java260 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/
DNotificationPlayer.java218 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/
DDirectStatementService.java126 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/
DDevice.java45 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/
DEditTextTypeActivity.java35 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/
DTransferPipe.java41 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/
DTransport.java53 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()

123