/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | WifiControllerTest.java | 76 MockLooper mLooper; field in WifiControllerTest 90 mLooper = new MockLooper(); in setUp() 97 mSettingsStore, mLockList, mLooper.getLooper(), mFacade); in setUp() 100 mLooper.dispatchAll(); in setUp() 105 mLooper.dispatchAll(); in cleanUp() 114 mLooper.dispatchAll(); in enableWifi() 119 mLooper.dispatchAll(); in enableWifi() 124 mLooper.dispatchAll(); in enableWifi() 159 mLooper.dispatchAll(); in doTestEcm() 163 mLooper.dispatchAll(); in doTestEcm() [all …]
|
D | WifiStateMachineTest.java | 313 MockLooper mLooper; field in WifiStateMachineTest 337 mLooper = new MockLooper(); in setUp() 376 mWsm = new WifiStateMachine(context, factory, mLooper.getLooper(), in setUp() 381 Handler handler = new Handler(mLooper.getLooper()) { in setUp() 400 mLooper.dispatchAll(); in setUp() 426 mLooper.dispatchAll(); in createNew() 436 mLooper.dispatchAll(); in loadComponents() 452 mLooper.dispatchAll(); in loadComponents() 464 mLooper.dispatchAll(); in loadComponentsFailure() 469 mLooper.dispatchAll(); in loadComponentsFailure() [all …]
|
D | SoftApManagerTest.java | 64 MockLooper mLooper; field in SoftApManagerTest 84 mLooper = new MockLooper(); in setUp() 93 mLooper.getLooper(), in setUp() 106 mLooper.dispatchAll(); in setUp() 115 mLooper.dispatchAll(); in startSoftApWithoutConfig() 132 mLooper.moveTimeForward(5000); in tetheringTimedOut() 133 mLooper.dispatchAll(); in tetheringTimedOut() 155 mLooper.dispatchAll(); in stopWhenNotStarted() 168 mLooper.dispatchAll(); in stopWhenStarted() 189 mLooper.dispatchAll(); in startSoftApAndVerifyEnabled() [all …]
|
D | MockLooper.java | 38 protected final Looper mLooper; field in MockLooper 72 mLooper = LOOPER_CONSTRUCTOR.newInstance(false); in MockLooper() 76 threadLocalLooper.set(mLooper); in MockLooper() 83 return mLooper; in getLooper() 88 MessageQueue queue = mLooper.getQueue(); in getMessageLinkedList() 132 MESSAGE_QUEUE_MESSAGES_FIELD.set(mLooper.getQueue(), in messageQueueNext()
|
D | RttServiceTest.java | 63 MockLooper mLooper; field in RttServiceTest 73 mLooper = new MockLooper(); in setUp() 74 mRttServiceImpl = new RttService.RttServiceImpl(mContext, mLooper.getLooper()); in setUp() 93 channel.connect(mLooper.getLooper(), mRttServiceImpl.getMessenger(), in connectChannel() 95 mLooper.dispatchAll(); in connectChannel() 116 mLooper.dispatchAll(); in sendRangingRequest() 152 mLooper.dispatchAll(); in sendEnableResponder() 164 mLooper.dispatchAll(); in sendDisableResponder()
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/samples/simplecamera/ |
D | CameraTestThread.java | 34 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/ |
D | RemoteDisplay.cpp | 32 : mLooper(new ALooper), in RemoteDisplay() 34 mLooper->setName("wfd_looper"); in RemoteDisplay() 37 mLooper->registerHandler(mSource); in RemoteDisplay() 40 mLooper->start(); in RemoteDisplay() 60 mLooper->stop(); in dispose()
|
/frameworks/native/services/surfaceflinger/ |
D | MessageQueue.cpp | 54 mQueue.mLooper->sendMessage(this, Message(MessageQueue::REFRESH)); in dispatchRefresh() 60 mQueue.mLooper->sendMessage(this, Message(MessageQueue::INVALIDATE)); in dispatchInvalidate() 89 mLooper = new Looper(true); in init() 98 mLooper->addFd(mEventTube->getFd(), 0, Looper::EVENT_INPUT, in setEventThread() 105 int32_t ret = mLooper->pollOnce(-1); in waitMessage() 129 mLooper->sendMessageDelayed(relTime, messageHandler, dummyMessage); in postMessage() 131 mLooper->sendMessage(messageHandler, dummyMessage); in postMessage()
|
/frameworks/opt/net/wifi/tests/wifitests/src/android/net/wifi/ |
D | WifiScannerTest.java | 58 private MockLooper mLooper; field in WifiScannerTest 67 mLooper = new MockLooper(); in setUp() 70 mContext, mLooper.getLooper(), mHandler); in setUp() 72 mWifiScanner = new WifiScanner(mContext, mService, mLooper.getLooper()); in setUp() 73 mLooper.dispatchAll(); in setUp() 103 mLooper.dispatchAll(); in testStartTrackingBssidsDuplicateListeners() 108 mLooper.dispatchAll(); in testStartTrackingBssidsDuplicateListeners()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/scanner/ |
D | WifiScanningServiceTest.java | 87 MockLooper mLooper; field in WifiScanningServiceTest 105 mLooper = new MockLooper(); in setUp() 111 mWifiScanningServiceImpl = new WifiScanningServiceImpl(mContext, mLooper.getLooper(), in setUp() 133 controlChannel.connect(mLooper.getLooper(), mWifiScanningServiceImpl.getMessenger(), in connectChannel() 135 mLooper.dispatchAll(); in connectChannel() 290 mLooper.dispatchAll(); in setupAndLoadDriver() 335 mLooper.dispatchAll(); in startService() 344 mLooper.dispatchAll(); in disconnectClientBeforeWifiEnabled() 347 mLooper.dispatchAll(); in disconnectClientBeforeWifiEnabled() 362 mLooper.dispatchAll(); in loadDriver() [all …]
|
D | SupplicantPnoScannerTest.java | 61 MockLooper mLooper; field in SupplicantPnoScannerTest 71 mLooper = new MockLooper(); in setup() 133 assertEquals("dispatch message after alarm", 1, mLooper.dispatchAll()); in pauseResumeHwDisconnectedPnoScanForSingleScan() 203 assertEquals("dispatch message after alarm", 1, mLooper.dispatchAll()); in delayedHwDisconnectedPnoScanFailure() 212 assertEquals("dispatch message after alarm", 1, mLooper.dispatchAll()); in delayedHwDisconnectedPnoScanFailure() 237 new SupplicantWifiScannerImpl(mContext, mWifiNative, mLooper.getLooper(), mClock); in createScannerWithHwPnoScanSupport() 243 new SupplicantWifiScannerImpl(mContext, mWifiNative, mLooper.getLooper(), mClock); in createScannerWithSwPnoScanSupport() 320 assertEquals("dispatch message after results event", 1, mLooper.dispatchAll()); in expectSuccessfulHwDisconnectedPnoScan() 341 assertEquals("dispatch message after results event", 1, mLooper.dispatchAll()); in expectSuccessfulSingleScanWithHwPnoEnabled() 367 assertEquals("dispatch message after results event", 1, mLooper.dispatchAll()); in expectSuccessfulSwPnoScan()
|
/frameworks/av/media/libstagefright/wifi-display/source/ |
D | RepeaterSource.cpp | 63 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/av/media/libmediaplayerservice/nuplayer/ |
D | StreamingSource.cpp | 48 if (mLooper != NULL) { in ~StreamingSource() 49 mLooper->unregisterHandler(id()); in ~StreamingSource() 50 mLooper->stop(); in ~StreamingSource() 55 if (mLooper == NULL) { in prepareAsync() 56 mLooper = new ALooper; in prepareAsync() 57 mLooper->setName("streaming"); in prepareAsync() 58 mLooper->start(); in prepareAsync() 60 mLooper->registerHandler(this); in prepareAsync()
|
D | RTSPSource.cpp | 79 if (mLooper != NULL) { in ~RTSPSource() 80 mLooper->unregisterHandler(id()); in ~RTSPSource() 81 mLooper->stop(); in ~RTSPSource() 91 if (mLooper == NULL) { in prepareAsync() 92 mLooper = new ALooper; in prepareAsync() 93 mLooper->setName("rtsp"); in prepareAsync() 94 mLooper->start(); in prepareAsync() 96 mLooper->registerHandler(this); in prepareAsync() 116 mLooper->registerHandler(mHandler); in prepareAsync() 128 if (mLooper == NULL) { in stop() [all …]
|
/frameworks/base/core/jni/ |
D | android_os_MessageQueue.cpp | 80 mLooper = Looper::getForThread(); in NativeMessageQueue() 81 if (mLooper == NULL) { in NativeMessageQueue() 82 mLooper = new Looper(false); in NativeMessageQueue() 83 Looper::setForThread(mLooper); in NativeMessageQueue() 110 mLooper->pollOnce(timeoutMillis); in pollOnce() 122 mLooper->wake(); in wake() 134 mLooper->addFd(fd, Looper::POLL_CALLBACK, looperEvents, this, in setFileDescriptorEvents() 137 mLooper->removeFd(fd); in setFileDescriptorEvents()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/ |
D | NotificationPlayer.java | 61 private Looper mLooper; field in NotificationPlayer 78 mLooper = Looper.myLooper(); in run() 145 if((mLooper != null) in startSound() 146 && (mLooper.getThread().getState() != Thread.State.TERMINATED)) { in startSound() 147 mLooper.quit(); in startSound() 202 if((mLooper != null) in run() 203 && (mLooper.getThread().getState() != Thread.State.TERMINATED)) { in run() 204 mLooper.quit(); in run() 241 if(mLooper != null) { in onCompletion() 242 mLooper.quit(); in onCompletion()
|
/frameworks/base/core/java/android/os/ |
D | HandlerThread.java | 26 Looper mLooper; field in HandlerThread 56 mLooper = Looper.myLooper(); in run() 78 while (isAlive() && mLooper == null) { in getLooper() 85 return mLooper; in getLooper()
|
D | Handler.java | 198 mLooper = Looper.myLooper(); in Handler() 199 if (mLooper == null) { in Handler() 203 mQueue = mLooper.mQueue; in Handler() 228 mLooper = looper; in Handler() 481 if (Looper.myLooper() == mLooper) { in runWithScissors() 701 return mLooper; in getLooper() 706 if (mLooper == null) { in dump() 709 mLooper.dump(pw, prefix + " "); in dump() 754 final Looper mLooper; field in Handler
|
/frameworks/av/include/media/stagefright/foundation/ |
D | AHandler.h | 41 return mLooper.promote(); in looper() 45 return mLooper; in getLooper() 61 wp<ALooper> mLooper; member 65 mLooper = looper; in setID()
|
/frameworks/base/core/tests/coretests/src/android/os/ |
D | TestHandlerThread.java | 28 private Looper mLooper; field in TestHandlerThread 51 mLooper.quit(); in doTest() 62 return mLooper; in getLooper() 83 mLooper = Looper.myLooper(); in run()
|
D | HandlerTester.java | 62 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/ |
D | WindowManagerPolicyThread.java | 27 static Looper mLooper; field in WindowManagerPolicyThread 31 mLooper = looper; in set() 39 return mLooper; in getLooper()
|
/frameworks/av/media/ndk/ |
D | NdkMediaCodec.cpp | 70 sp<ALooper> mLooper; member 146 mData->mLooper = new ALooper; in createAMediaCodec() 147 mData->mLooper->setName("NDK MediaCodec_looper"); in createAMediaCodec() 148 size_t res = mData->mLooper->start( in createAMediaCodec() 158 mData->mCodec = android::MediaCodec::CreateByType(mData->mLooper, name, encoder); in createAMediaCodec() 160 mData->mCodec = android::MediaCodec::CreateByComponentName(mData->mLooper, name); in createAMediaCodec() 167 mData->mLooper->registerHandler(mData->mHandler); in createAMediaCodec() 198 if (mData->mLooper != NULL) { in AMediaCodec_delete() 200 mData->mLooper->unregisterHandler(mData->mHandler->id()); in AMediaCodec_delete() 202 mData->mLooper->stop(); in AMediaCodec_delete() [all …]
|
/frameworks/base/libs/hwui/tests/common/ |
D | TestContext.cpp | 56 mLooper = new Looper(true); in TestContext() 58 mLooper->addFd(mDisplayEventReceiver.getFd(), IDENT_DISPLAYEVENT, in TestContext() 84 mLooper->pollOnce(-1); in waitForVsync()
|
/frameworks/av/media/libstagefright/ |
D | MPEG2TSWriter.cpp | 73 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() 503 mLooper = new ALooper; in init() 504 mLooper->setName("MPEG2TSWriter"); in init() 508 mLooper->registerHandler(mReflector); in init() [all …]
|