Searched refs:mThread (Results 1 - 25 of 64) sorted by relevance

123

/frameworks/base/core/java/com/android/server/
H A DResettableTimeout.java64 if (mThread == null) {
67 mThread = new T();
68 mThread.start();
74 mThread.interrupt();
87 if (mThread != null) {
88 mThread.interrupt();
89 mThread = null;
110 mThread = null;
129 private Thread mThread; field in class:ResettableTimeout
/frameworks/base/tests/SurfaceComposition/src/android/surfacecomposition/
H A DMemoryAccessTask.java29 private WorkThread mThread; field in class:MemoryAccessTask
51 if (mThread != null) {
55 mThread = new WorkThread();
56 mThread.start();
60 if (mThread != null) {
65 mThread.join();
/frameworks/base/core/java/com/android/internal/view/
H A DWindowManagerPolicyThread.java26 static Thread mThread; field in class:WindowManagerPolicyThread
30 mThread = thread;
35 return mThread;
/frameworks/av/media/libstagefright/foundation/
H A DALooper.cpp102 if (mThread != NULL || mRunningLocally) {
117 if (mThread != NULL || mRunningLocally) {
121 mThread = new LooperThread(this, canCallJava);
123 status_t err = mThread->run(
126 mThread.clear();
139 thread = mThread;
141 mThread.clear();
199 if (mThread == NULL && !mRunningLocally) {
243 if (mThread == NULL) {
/frameworks/base/core/java/android/os/
H A DLooper.java72 final Thread mThread; field in class:Looper
199 mThread = Thread.currentThread();
206 return Thread.currentThread() == mThread;
269 return mThread;
294 return "Looper (" + mThread.getName() + ", tid " + mThread.getId()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/external/
H A DTileServiceManagerTests.java31 private HandlerThread mThread; field in class:TileServiceManagerTests
38 mThread = new HandlerThread("TestThread");
39 mThread.start();
40 mHandler = new Handler(mThread.getLooper());
54 mThread.quit();
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DCanvasTextureViewActivity.java33 private CanvasTextureViewActivity.RenderingThread mThread; field in class:CanvasTextureViewActivity
51 mThread = new RenderingThread(mTextureView);
52 mThread.start();
62 if (mThread != null) mThread.stopRendering();
H A DHardwareCanvasTextureViewActivity.java34 private HardwareCanvasTextureViewActivity.RenderingThread mThread; field in class:HardwareCanvasTextureViewActivity
52 mThread = new RenderingThread(mTextureView);
53 mThread.start();
63 if (mThread != null) mThread.stopRendering();
H A DHardwareCanvasSurfaceViewActivity.java41 private HardwareCanvasSurfaceViewActivity.RenderingThread mThread; field in class:HardwareCanvasSurfaceViewActivity
91 mThread = new RenderingThread(holder.getSurface());
92 mThread.start();
97 mThread.setSize(width, height);
102 if (mThread != null) mThread.stopRendering();
/frameworks/base/media/java/android/media/
H A DAsyncPlayer.java120 mThread = null;
130 private Thread mThread; field in class:AsyncPlayer
229 if (mThread == null) {
231 mThread = new Thread();
232 mThread.start();
240 * sound to play, but if the CPU turns off before mThread gets to work, it won't. The
250 if (mWakeLock != null || mThread != null) {
254 + " mThread=" + mThread);
/frameworks/base/tests/BatteryWaster/src/com/android/batterywaster/
H A DBatteryWaster.java43 SpinThread mThread; field in class:BatteryWaster
123 if (mThread == null) {
124 mThread = new SpinThread();
125 mThread.start();
136 if (mThread != null) {
137 mThread.quit();
138 mThread = null;
/frameworks/base/services/core/java/com/android/server/wm/
H A DViewServer.java71 private Thread mThread; field in class:ViewServer
103 if (mThread != null) {
108 mThread = new Thread(this, "Remote View Server [port=" + mPort + "]");
110 mThread.start();
126 if (mThread != null) {
128 mThread.interrupt();
137 mThread = null;
159 return mThread != null && mThread.isAlive();
166 while (Thread.currentThread() == mThread) {
[all...]
/frameworks/base/tests/UiBench/src/com/android/test/uibench/
H A DEditTextTypeActivity.java35 Thread mThread; field in class:EditTextTypeActivity
74 mThread = new Thread(new Runnable() {
100 mThread.start();
/frameworks/av/media/libstagefright/tests/
H A DDummyRecorder.h35 pthread_t mThread; member in class:android::DummyRecorder
H A DDummyRecorder.cpp46 int err = pthread_create(&mThread, &attr, threadWrapper, this);
63 pthread_join(mThread, &dummy);
/frameworks/base/services/usb/java/com/android/server/usb/
H A DUsbDebuggingManager.java66 private UsbDebuggingThread mThread; field in class:UsbDebuggingManager
219 mThread = new UsbDebuggingThread();
220 mThread.start();
230 if (mThread != null) {
231 mThread.stopListening();
232 mThread = null;
251 if (mThread != null) {
252 mThread.sendResponse("OK");
258 if (mThread != null) {
259 mThread
[all...]
/frameworks/base/services/core/java/com/android/server/am/
H A DInstrumentationReporter.java37 Thread mThread; field in class:InstrumentationReporter
64 mThread = null;
133 if (mThread == null) {
134 mThread = new MyThread();
135 mThread.start();
/frameworks/opt/bluetooth/src/android/bluetooth/client/map/
H A DBluetoothMasObexClientSession.java58 private HandlerThread mThread; field in class:BluetoothMasObexClientSession
108 mThread = new HandlerThread("BluetoothMasObexClientSessionThread");
109 mThread.start();
110 mHandler = new ObexClientHandler(mThread.getLooper(), this);
130 mThread.quit();
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/
H A DNotificationPlayer.java218 mThread = null;
258 private CmdThread mThread; field in class:NotificationPlayer
359 if (mThread == null) {
361 mThread = new CmdThread();
362 mThread.start();
370 * sound to play, but if the CPU turns off before mThread gets to work, it won't. The
380 if (mWakeLock != null || mThread != null) {
384 + " mThread=" + mThread);
/frameworks/av/include/media/stagefright/
H A DAMRWriter.h54 pthread_t mThread; member in struct:android::AMRWriter
/frameworks/base/cmds/hid/src/com/android/commands/hid/
H A DDevice.java45 private final HandlerThread mThread; field in class:Device
62 mThread = new HandlerThread("HidDeviceHandler");
63 mThread.start();
64 mHandler = new DeviceHandler(mThread.getLooper());
/frameworks/base/core/java/android/view/textservice/
H A DSpellCheckerSession.java260 private HandlerThread mThread; field in class:SpellCheckerSession.SpellCheckerSessionListenerImpl
348 if (mThread != null) {
349 mThread.quit();
353 mThread = null;
391 if (session.asBinder() instanceof Binder && mThread == null) {
395 mThread = new HandlerThread("SpellCheckerSession",
397 mThread.start();
398 mAsyncHandler = new Handler(mThread.getLooper()) {
/frameworks/base/packages/StatementService/src/com/android/statementservice/
H A DDirectStatementService.java126 private HandlerThread mThread; field in class:DirectStatementService
131 mThread = new HandlerThread("DirectStatementService thread",
133 mThread.start();
134 onCreate(AbstractStatementRetriever.createDirectRetriever(this), mThread.getLooper(),
158 if (mThread != null) {
159 mThread.quit();
/frameworks/av/media/libstagefright/webm/
H A DWebmWriter.cpp229 if (mStreams[idx].mThread != NULL) {
234 mStreams[idx].mThread = new WebmFrameEmptySourceThread(
238 mStreams[idx].mThread = new WebmFrameMediaSourceThread(
276 if (mStreams[i].mThread == NULL) {
280 status_t status = mStreams[i].mThread->stop();
285 int64_t durationUs = mStreams[i].mThread->getDurationUs();
293 mStreams[i].mThread.clear();
441 mStreams[kAudioIndex].mThread->resume();
442 mStreams[kVideoIndex].mThread->resume();
526 mStreams[kAudioIndex].mThread
[all...]
/frameworks/base/core/java/com/android/internal/os/
H A DTransferPipe.java41 final Thread mThread;; field in class:TransferPipe
57 mThread = new Thread(this, "TransferPipe");
139 mThread.start();
145 mThread.interrupt();
238 if (mThread.isInterrupted()) {

Completed in 1197 milliseconds

123