Home
last modified time | relevance | path

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

123

/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, ALOOPER_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()
465 if (Looper.myLooper() == mLooper) { in runWithScissors()
684 return mLooper; in getLooper()
689 if (mLooper == null) { in dump()
692 mLooper.dump(pw, prefix + " "); in dump()
737 final Looper mLooper; field in Handler
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/
DNotificationPlayer.java59 private Looper mLooper; field in NotificationPlayer
76 mLooper = Looper.myLooper(); in run()
140 if((mLooper != null) in startSound()
141 && (mLooper.getThread().getState() != Thread.State.TERMINATED)) { in startSound()
142 mLooper.quit(); in startSound()
197 if((mLooper != null) in run()
198 && (mLooper.getThread().getState() != Thread.State.TERMINATED)) { in run()
199 mLooper.quit(); in run()
236 if(mLooper != null) { in onCompletion()
237 mLooper.quit(); in onCompletion()
/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()
82 if (mLooper != NULL) { in stop()
83 mLooper->stop(); in stop()
84 mLooper.clear(); in stop()
/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/native/libs/gui/
DSensorEventQueue.cpp82 if (mLooper == 0) { in getLooper()
83 mLooper = new Looper(true); in getLooper()
84 mLooper->addFd(getFd(), getFd(), ALOOPER_EVENT_INPUT, NULL, NULL); in getLooper()
86 return mLooper; in getLooper()
/frameworks/av/media/libmediaplayerservice/nuplayer/
DRTSPSource.cpp69 if (mLooper != NULL) { in ~RTSPSource()
70 mLooper->stop(); in ~RTSPSource()
75 if (mLooper == NULL) { in prepareAsync()
76 mLooper = new ALooper; in prepareAsync()
77 mLooper->setName("rtsp"); in prepareAsync()
78 mLooper->start(); in prepareAsync()
81 mLooper->registerHandler(mReflector); in prepareAsync()
101 mLooper->registerHandler(mHandler); in prepareAsync()
115 if (mLooper == NULL) { in stop()
613 mLooper->registerHandler(mHandler); in onSDPLoaded()
[all …]
DNuPlayerDriver.cpp41 mLooper(new ALooper), in NuPlayerDriver()
45 mLooper->setName("NuPlayerDriver Looper"); in NuPlayerDriver()
47 mLooper->start( in NuPlayerDriver()
53 mLooper->registerHandler(mPlayer); in NuPlayerDriver()
59 mLooper->stop(); in ~NuPlayerDriver()
/frameworks/av/media/libmediaplayerservice/nuplayer/mp4/
DMP4Source.cpp111 mLooper(new ALooper), in MP4Source()
114 mLooper->registerHandler(mParser); in MP4Source()
127 mLooper->start(false /* runOnCallingThread */); in start()
/frameworks/av/media/libstagefright/timedtext/
DTimedTextDriver.cpp44 : mLooper(new ALooper), in TimedTextDriver()
48 mLooper->setName("TimedTextDriver"); in TimedTextDriver()
49 mLooper->start(); in TimedTextDriver()
51 mLooper->registerHandler(mPlayer); in TimedTextDriver()
57 mLooper->stop(); in ~TimedTextDriver()
/frameworks/av/media/libstagefright/foundation/
DALooperRoster.cpp44 info.mLooper = looper; in registerHandler()
80 sp<ALooper> looper = info.mLooper.promote(); in unregisterStaleHandlers()
106 sp<ALooper> looper = info.mLooper.promote(); in postMessage_l()
160 sp<ALooper> looper = mHandlers.valueAt(index).mLooper.promote(); in findLooper()
DALooper.cpp36 mLooper(looper), in LooperThread()
47 return mLooper->loop(); in threadLoop()
58 ALooper *mLooper; member
/frameworks/av/media/libstagefright/
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/av/media/libstagefright/omx/
DGraphicBufferSource.cpp138 if (mRepeatAfterUs > 0ll && mLooper == NULL) { in omxExecuting()
141 mLooper = new ALooper; in omxExecuting()
142 mLooper->registerHandler(mReflector); in omxExecuting()
143 mLooper->start(); in omxExecuting()
174 if (mLooper != NULL) { in omxLoaded()
175 mLooper->unregisterHandler(mReflector->id()); in omxLoaded()
178 mLooper->stop(); in omxLoaded()
179 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()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/
DMediaPlayerStateUnitTestTemplate.java51 private Looper mLooper = null; field in MediaPlayerStateUnitTestTemplate
112 mLooper = Looper.myLooper(); in initializeMessageLooper()
492 mLooper.quit(); in terminateMessageLooper()
502 mLooper = null; in cleanUp()
/frameworks/base/services/input/
DPointerController.cpp56 mPolicy(policy), mLooper(looper), mSpriteController(spriteController) { in PointerController()
85 mLooper->removeMessages(mHandler); in ~PointerController()
467 mLooper->sendMessageDelayed(ANIMATION_FRAME_INTERVAL, mHandler, Message(MSG_ANIMATE)); in startAnimationLocked()
472 mLooper->removeMessages(mHandler, MSG_INACTIVITY_TIMEOUT); in resetInactivityTimeoutLocked()
476 mLooper->sendMessageDelayed(timeout, mHandler, MSG_INACTIVITY_TIMEOUT); in resetInactivityTimeoutLocked()
480 mLooper->removeMessages(mHandler, MSG_INACTIVITY_TIMEOUT); in removeInactivityTimeoutLocked()

123