Home
last modified time | relevance | path

Searched refs:mLooper (Results 1 – 25 of 85) sorted by relevance

1234

/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/samples/simplecamera/
DCameraTestThread.java34 private Looper mLooper = null; field in CameraTestThread
42 if (mLooper != null || mHandler !=null) { in start()
54 mLooper = Looper.myLooper(); in start()
73 if (mLooper == null || mHandler == null) { in close()
79 mLooper.quit(); in close()
80 mLooper.getThread().join(); in close()
81 mLooper = null; in close()
/frameworks/av/media/libmediaplayerservice/
DRemoteDisplay.cpp31 : mLooper(new ALooper), in RemoteDisplay()
33 mLooper->setName("wfd_looper"); in RemoteDisplay()
36 mLooper->registerHandler(mSource); in RemoteDisplay()
39 mLooper->start(); in RemoteDisplay()
59 mLooper->stop(); in dispose()
/frameworks/native/services/surfaceflinger/
DMessageQueue.cpp54 mQueue.mLooper->sendMessage(this, Message(MessageQueue::REFRESH)); in dispatchRefresh()
60 mQueue.mLooper->sendMessage(this, Message(MessageQueue::INVALIDATE)); in dispatchInvalidate()
66 mQueue.mLooper->sendMessage(this, Message(MessageQueue::TRANSACTION)); in dispatchTransaction()
99 mLooper = new Looper(true); in init()
108 mLooper->addFd(mEventTube->getFd(), 0, Looper::EVENT_INPUT, in setEventThread()
115 int32_t ret = mLooper->pollOnce(-1); in waitMessage()
138 mLooper->sendMessageDelayed(relTime, messageHandler, dummyMessage); in postMessage()
140 mLooper->sendMessage(messageHandler, dummyMessage); in postMessage()
/frameworks/base/core/java/android/os/
DHandlerThread.java26 Looper mLooper; field in HandlerThread
56 mLooper = Looper.myLooper(); in run()
78 while (isAlive() && mLooper == null) { in getLooper()
85 return mLooper; in getLooper()
DHandler.java198 mLooper = Looper.myLooper(); in Handler()
199 if (mLooper == null) { in Handler()
203 mQueue = mLooper.mQueue; in Handler()
228 mLooper = looper; in Handler()
469 if (Looper.myLooper() == mLooper) { in runWithScissors()
689 return mLooper; in getLooper()
694 if (mLooper == null) { in dump()
697 mLooper.dump(pw, prefix + " "); in dump()
743 final Looper mLooper; field in Handler
/frameworks/av/media/libstagefright/wifi-display/source/
DRepeaterSource.cpp63 mLooper = new ALooper; in start()
64 mLooper->setName("repeater_looper"); in start()
65 mLooper->start(); in start()
68 mLooper->registerHandler(mReflector); in start()
84 if (mLooper != NULL) { in stop()
85 mLooper->stop(); in stop()
86 mLooper.clear(); in stop()
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/
DNotificationPlayer.java60 private Looper mLooper; field in NotificationPlayer
77 mLooper = Looper.myLooper(); in run()
143 if((mLooper != null) in startSound()
144 && (mLooper.getThread().getState() != Thread.State.TERMINATED)) { in startSound()
145 mLooper.quit(); in startSound()
200 if((mLooper != null) in run()
201 && (mLooper.getThread().getState() != Thread.State.TERMINATED)) { in run()
202 mLooper.quit(); in run()
239 if(mLooper != null) { in onCompletion()
240 mLooper.quit(); in onCompletion()
/frameworks/av/media/libmediaplayerservice/nuplayer/
DStreamingSource.cpp45 if (mLooper != NULL) { in ~StreamingSource()
46 mLooper->unregisterHandler(id()); in ~StreamingSource()
47 mLooper->stop(); in ~StreamingSource()
52 if (mLooper == NULL) { in prepareAsync()
53 mLooper = new ALooper; in prepareAsync()
54 mLooper->setName("streaming"); in prepareAsync()
55 mLooper->start(); in prepareAsync()
57 mLooper->registerHandler(this); in prepareAsync()
DRTSPSource.cpp72 if (mLooper != NULL) { in ~RTSPSource()
73 mLooper->unregisterHandler(id()); in ~RTSPSource()
74 mLooper->stop(); in ~RTSPSource()
79 if (mLooper == NULL) { in prepareAsync()
80 mLooper = new ALooper; in prepareAsync()
81 mLooper->setName("rtsp"); in prepareAsync()
82 mLooper->start(); in prepareAsync()
84 mLooper->registerHandler(this); in prepareAsync()
104 mLooper->registerHandler(mHandler); in prepareAsync()
116 if (mLooper == NULL) { in stop()
[all …]
/frameworks/base/core/tests/coretests/src/android/os/
DTestHandlerThread.java28 private Looper mLooper; field in TestHandlerThread
51 mLooper.quit(); in doTest()
62 return mLooper; in getLooper()
83 mLooper = Looper.myLooper(); in run()
DHandlerTester.java62 mLooper = Looper.myLooper(); in run()
82 mLooper.quit(); in quit()
87 private Looper mLooper; field in HandlerTester
/frameworks/base/core/java/com/android/internal/view/
DWindowManagerPolicyThread.java27 static Looper mLooper; field in WindowManagerPolicyThread
31 mLooper = looper; in set()
39 return mLooper; in getLooper()
/frameworks/base/core/jni/
Dandroid_os_MessageQueue.cpp68 mLooper = Looper::getForThread(); in NativeMessageQueue()
69 if (mLooper == NULL) { in NativeMessageQueue()
70 mLooper = new Looper(false); in NativeMessageQueue()
71 Looper::setForThread(mLooper); in NativeMessageQueue()
97 mLooper->pollOnce(timeoutMillis); in pollOnce()
107 mLooper->wake(); in wake()
Dandroid_os_MessageQueue.h29 return mLooper; in getLooper()
62 sp<Looper> mLooper;
/frameworks/av/media/ndk/
DNdkMediaCodec.cpp70 sp<ALooper> mLooper; member
146 mData->mLooper = new ALooper; in createAMediaCodec()
147 mData->mLooper->setName("NDK MediaCodec_looper"); in createAMediaCodec()
148 status_t ret = mData->mLooper->start( in createAMediaCodec()
153 mData->mCodec = android::MediaCodec::CreateByType(mData->mLooper, name, encoder); in createAMediaCodec()
155 mData->mCodec = android::MediaCodec::CreateByComponentName(mData->mLooper, name); in createAMediaCodec()
158 mData->mLooper->registerHandler(mData->mHandler); in createAMediaCodec()
188 if (mData->mLooper != NULL) { in AMediaCodec_delete()
189 mData->mLooper->unregisterHandler(mData->mHandler->id()); in AMediaCodec_delete()
190 mData->mLooper->stop(); in AMediaCodec_delete()
[all …]
/frameworks/native/libs/gui/
DSensorEventQueue.cpp84 if (mLooper == 0) { in getLooper()
85 mLooper = new Looper(true); in getLooper()
86 mLooper->addFd(getFd(), getFd(), ALOOPER_EVENT_INPUT, NULL, NULL); in getLooper()
88 return mLooper; in getLooper()
/frameworks/av/media/libstagefright/timedtext/
DTimedTextDriver.cpp46 : mLooper(new ALooper), in TimedTextDriver()
51 mLooper->setName("TimedTextDriver"); in TimedTextDriver()
52 mLooper->start(); in TimedTextDriver()
54 mLooper->registerHandler(mPlayer); in TimedTextDriver()
60 mLooper->stop(); in ~TimedTextDriver()
/frameworks/av/media/libstagefright/
DMediaCodecSource.cpp64 sp<ALooper> mLooper; member
79 mLooper(new ALooper()), in Puller()
90 mLooper->setName("pull_looper"); in Puller()
94 mLooper->unregisterHandler(id()); in ~Puller()
95 mLooper->stop(); in ~Puller()
117 mLooper->start( in start()
121 mLooper->registerHandler(this); in start()
332 : mLooper(looper), in MediaCodecSource()
343 CHECK(mLooper != NULL); in MediaCodecSource()
361 mLooper->unregisterHandler(mReflector->id()); in ~MediaCodecSource()
[all …]
DMPEG2TSWriter.cpp73 sp<ALooper> mLooper; member
98 mLooper(new ALooper), in SourceInfo()
102 mLooper->setName("MPEG2TSWriter source"); in SourceInfo()
133 mLooper->registerHandler(this); in start()
134 mLooper->start(); in start()
142 mLooper->unregisterHandler(id()); in stop()
143 mLooper->stop(); in stop()
516 mLooper = new ALooper; in init()
517 mLooper->setName("MPEG2TSWriter"); in init()
521 mLooper->registerHandler(mReflector); in init()
[all …]
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/
DCameraTest.java63 private Looper mLooper = null; field in CameraTest
93 mLooper = Looper.myLooper(); in initializeMessageLooper()
110 mLooper.quit(); in terminateMessageLooper()
116 mLooper.getThread().join(); in terminateMessageLooper()
/frameworks/base/libs/hwui/renderthread/
DRenderThread.cpp148 mLooper = new Looper(false); in RenderThread()
164 mLooper->addFd(mDisplayEventReceiver->getFd(), 0, in initializeDisplayEventReceiver()
260 int result = mLooper->pollOnce(timeoutMillis); in threadLoop()
305 mLooper->wake(); in queue()
312 mLooper->wake(); in queueAtFront()
/frameworks/av/media/libstagefright/foundation/
DALooper.cpp36 mLooper(looper), in LooperThread()
47 return mLooper->loop(); in threadLoop()
58 ALooper *mLooper; member
DALooperRoster.cpp44 info.mLooper = looper; in registerHandler()
83 sp<ALooper> looper = info.mLooper.promote(); in unregisterStaleHandlers()
150 sp<ALooper> looper = mHandlers.valueAt(index).mLooper.promote(); in findLooper()
/frameworks/av/media/libstagefright/omx/
DGraphicBufferSource.cpp148 if (mRepeatAfterUs > 0ll && mLooper == NULL) { in omxExecuting()
151 mLooper = new ALooper; in omxExecuting()
152 mLooper->registerHandler(mReflector); in omxExecuting()
153 mLooper->start(); in omxExecuting()
184 if (mLooper != NULL) { in omxLoaded()
185 mLooper->unregisterHandler(mReflector->id()); in omxLoaded()
188 mLooper->stop(); in omxLoaded()
189 mLooper.clear(); in omxLoaded()
/frameworks/base/packages/FusedLocation/src/com/android/location/fused/
DFusionEngine.java52 private final Looper mLooper; field in FusionEngine
72 mLooper = looper; in FusionEngine()
139 mLocationManager.requestLocationUpdates(name, minTime, 0, this, mLooper); in enableProvider()
142 mLocationManager.requestLocationUpdates(name, minTime, 0, this, mLooper); in enableProvider()

1234