Searched refs:mThread (Results 1 - 25 of 58) 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/core/java/com/android/internal/view/
H A DWindowManagerPolicyThread.java26 static Thread mThread; field in class:WindowManagerPolicyThread
30 mThread = thread;
35 return mThread;
/frameworks/base/core/java/android/os/
H A DLooper.java60 final Thread mThread; field in class:Looper
188 mThread = Thread.currentThread();
196 return Thread.currentThread() == mThread;
281 return mThread;
305 return "Looper (" + mThread.getName() + ", tid " + mThread.getId()
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DHardwareCanvasSurfaceViewActivity.java34 private HardwareCanvasSurfaceViewActivity.RenderingThread mThread; field in class:HardwareCanvasSurfaceViewActivity
54 mThread = new RenderingThread(holder.getSurface());
55 mThread.start();
60 mThread.setSize(width, height);
65 if (mThread != null) mThread.stopRendering();
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();
/frameworks/av/media/libstagefright/foundation/
H A DALooper.cpp99 if (mThread != NULL || mRunningLocally) {
114 if (mThread != NULL || mRunningLocally) {
118 mThread = new LooperThread(this, canCallJava);
120 status_t err = mThread->run(
123 mThread.clear();
136 thread = mThread;
138 mThread.clear();
192 if (mThread == NULL && !mRunningLocally) {
/frameworks/base/core/java/android/net/http/
H A DIdleCache.java50 private IdleReaper mThread = null; field in class:IdleCache
86 if (mThread == null) {
87 mThread = new IdleReaper();
88 mThread.start();
165 mThread = null;
/frameworks/base/media/java/android/media/
H A DAsyncPlayer.java119 mThread = null;
129 private Thread mThread; field in class:AsyncPlayer
197 if (mThread == null) {
199 mThread = new Thread();
200 mThread.start();
208 * sound to play, but if the CPU turns off before mThread gets to work, it won't. The
218 if (mWakeLock != null || mThread != null) {
222 + " 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.java68 private Thread mThread; field in class:ViewServer
100 if (mThread != null) {
105 mThread = new Thread(this, "Remote View Server [port=" + mPort + "]");
107 mThread.start();
123 if (mThread != null) {
125 mThread.interrupt();
134 mThread = null;
156 return mThread != null && mThread.isAlive();
163 while (Thread.currentThread() == mThread) {
[all...]
/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/packages/SystemUI/src/com/android/systemui/media/
H A DNotificationPlayer.java216 mThread = null;
249 private CmdThread mThread; field in class:NotificationPlayer
350 if (mThread == null) {
352 mThread = new CmdThread();
353 mThread.start();
361 * sound to play, but if the CPU turns off before mThread gets to work, it won't. The
371 if (mWakeLock != null || mThread != null) {
375 + " mThread=" + mThread);
/frameworks/av/include/media/stagefright/
H A DAMRWriter.h55 pthread_t mThread; member in struct:android::AMRWriter
H A DAACWriter.h57 pthread_t mThread; member in struct:android::AACWriter
/frameworks/base/core/java/android/view/textservice/
H A DSpellCheckerSession.java235 private HandlerThread mThread; field in class:SpellCheckerSession.SpellCheckerSessionListenerImpl
318 if (mThread != null) {
319 mThread.quit();
321 mThread = null;
330 if (session.asBinder() instanceof Binder && mThread == null) {
333 mThread = new HandlerThread("SpellCheckerSession",
335 mThread.start();
336 mAsyncHandler = new Handler(mThread.getLooper()) {
/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()) {
/frameworks/base/tests/AccessoryDisplay/common/src/com/android/accessorydisplay/common/
H A DTransport.java53 private ReaderThread mThread; field in class:Transport
86 if (mThread == null) {
93 mThread.quit();
168 mThread = new ReaderThread();
169 mThread.start();
/frameworks/av/media/libstagefright/webm/
H A DWebmWriter.cpp236 if (mStreams[idx].mThread != NULL) {
241 mStreams[idx].mThread = new WebmFrameEmptySourceThread(
245 mStreams[idx].mThread = new WebmFrameMediaSourceThread(
278 if (mStreams[i].mThread == NULL) {
282 status_t status = mStreams[i].mThread->stop();
287 int64_t durationUs = mStreams[i].mThread->getDurationUs();
434 mStreams[kAudioIndex].mThread->resume();
435 mStreams[kVideoIndex].mThread->resume();
518 mStreams[kAudioIndex].mThread->start();
519 mStreams[kVideoIndex].mThread
[all...]
/frameworks/base/core/java/android/app/
H A DService.java703 mThread = thread; // NOTE: unused - remove?
717 private ActivityThread mThread = null; field in class:Service
/frameworks/av/include/media/stagefright/foundation/
H A DALooper.h75 sp<LooperThread> mThread; member in struct:android::ALooper
/frameworks/native/services/surfaceflinger/
H A DDispSync.h173 // mThread is the thread from which all the callbacks are called.
174 sp<DispSyncThread> mThread; member in class:android::DispSync
H A DDispSync.cpp292 mThread(new DispSyncThread()) {
294 mThread->run("DispSync", PRIORITY_URGENT_DISPLAY + PRIORITY_MORE_FAVORABLE);
376 return mThread->hasAnyEventListeners();
389 return mThread->addEventListener(phase, callback);
401 return mThread->removeEventListener(callback);
408 mThread->updateModel(mPeriod, mPhase);
456 mThread->updateModel(mPeriod, mPhase);
/frameworks/base/services/core/java/com/android/server/
H A DVibratorService.java72 volatile VibrateThread mThread; field in class:VibratorService
362 if (mThread != null) {
363 synchronized (mThread) {
364 mThread.mDone = true;
365 mThread.notify();
367 mThread = null;
412 // mThread better be null here. doCancelVibrate should always be
414 mThread = new VibrateThread(vib);
415 mThread.start();
646 if (mThread
[all...]

Completed in 563 milliseconds

123