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

1234

/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/services/oboeservice/
H A DAAudioThread.cpp34 // mThread is a pthread_t of unknown size so we need memset().
35 memset(&mThread, 0, sizeof(mThread));
62 int err = pthread_create(&mThread, nullptr, AAudioThread_internalThreadProc, this);
76 int err = pthread_join(mThread, nullptr);
H A DAAudioThread.h71 pthread_t mThread; // initialized in constructor member in class:aaudio::AAudioThread
/frameworks/support/frameworks/support/samples/Support4Demos/src/com/example/android/supportv4/app/
H A DFragmentRetainInstanceSupport.java110 final Thread mThread = new Thread() { field in class:FragmentRetainInstanceSupport.RetainedFragment
166 mThread.start();
184 synchronized (mThread) {
186 mThread.notify();
197 synchronized (mThread) {
200 mThread.notify();
215 synchronized (mThread) {
218 mThread.notify();
228 synchronized (mThread) {
230 mThread
[all...]
/frameworks/support/samples/Support4Demos/src/com/example/android/supportv4/app/
H A DFragmentRetainInstanceSupport.java110 final Thread mThread = new Thread() { field in class:FragmentRetainInstanceSupport.RetainedFragment
166 mThread.start();
184 synchronized (mThread) {
186 mThread.notify();
197 synchronized (mThread) {
200 mThread.notify();
215 synchronized (mThread) {
218 mThread.notify();
228 synchronized (mThread) {
230 mThread
[all...]
/frameworks/native/cmds/lshal/
H A DPipeRelay.cpp69 mThread = new RelayThread(mFds[0], os);
70 mInitCheck = mThread->run("RelayThread");
89 if (mThread != NULL) {
90 mThread->join();
91 mThread.clear();
H A DPipeRelay.h48 sp<RelayThread> mThread; member in struct:android::lshal::PipeRelay
/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.java75 final Thread mThread; field in class:Looper
218 mThread = Thread.currentThread();
225 return Thread.currentThread() == mThread;
293 return mThread;
332 proto.write(LooperProto.THREAD_NAME, mThread.getName());
333 proto.write(LooperProto.THREAD_ID, mThread.getId());
341 return "Looper (" + mThread.getName() + ", tid " + mThread.getId()
/frameworks/support/compat/java/android/support/v4/provider/
H A DSelfDestructiveThread.java46 private HandlerThread mThread; field in class:SelfDestructiveThread
91 return mThread != null;
107 if (mThread == null) {
108 mThread = new HandlerThread(mThreadName, mPriority);
109 mThread.start();
110 mHandler = new Handler(mThread.getLooper(), mCallback);
228 mThread.quit();
229 mThread = null;
/frameworks/av/media/libaaudio/src/core/
H A DAudioStream.cpp34 // mThread is a pthread_t of unknown size so we need memset.
35 memset(&mThread, 0, sizeof(mThread));
173 int err = pthread_create(&mThread, nullptr, AudioStream_internalThreadProc, this);
190 int err = pthread_timedjoin_np(mThread, returnArg, &abstime);
192 int err = pthread_join(mThread, returnArg);
/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);
92 mThread.start();
97 mThread.setSize(width, height);
102 if (mThread != null) mThread.stopRendering();
/frameworks/base/media/java/android/media/
H A DAsyncPlayer.java121 mThread = null;
131 private Thread mThread; field in class:AsyncPlayer
231 if (mThread == null) {
233 mThread = new Thread();
234 mThread.start();
242 * sound to play, but if the CPU turns off before mThread gets to work, it won't. The
252 if (mWakeLock != null || mThread != null) {
256 + " 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/services/net/java/android/net/util/
H A DBlockingSocketReader.java45 private final Thread mThread; field in class:BlockingSocketReader
67 mThread = new Thread(() -> { mainLoop(); });
83 mThread.start();
/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/packages/SystemUI/tests/src/com/android/systemui/qs/external/
H A DTileServiceManagerTest.java41 private HandlerThread mThread; field in class:TileServiceManagerTest
47 mThread = new HandlerThread("TestThread");
48 mThread.start();
49 mHandler = new Handler(mThread.getLooper());
62 mThread.quit();

Completed in 1279 milliseconds

1234