Home
last modified time | relevance | path

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

12345678

/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiControllerTest.java92 TestLooper mLooper; field in WifiControllerTest
112 mLooper = new TestLooper(); in setUp()
122 mWifiController = new WifiController(mContext, mClientModeImpl, mLooper.getLooper(), in setUp()
123 mSettingsStore, mLooper.getLooper(), mFacade, mActiveModeWarden, in setUp()
126 mLooper.dispatchAll(); in setUp()
147 mLooper.dispatchAll(); in cleanUp()
159 mLooper.dispatchAll(); in enableWifi()
170 mLooper.dispatchAll(); in enableScanMode()
185 new WifiController(mContext, mClientModeImpl, mLooper.getLooper(), in testEnterScanModeAtStartWhenSet()
186 mSettingsStore, mLooper.getLooper(), mFacade, in testEnterScanModeAtStartWhenSet()
[all …]
DScanOnlyModeManagerTest.java59 TestLooper mLooper; field in ScanOnlyModeManagerTest
77 mLooper = new TestLooper(); in setUp()
80 mLooper.dispatchAll(); in setUp()
84 return new ScanOnlyModeManager(mContext, mLooper.getLooper(), mWifiNative, mListener, in createScanOnlyModeManager()
92 mLooper.dispatchAll(); in startScanOnlyModeAndVerifyEnabled()
99 mLooper.dispatchAll(); in startScanOnlyModeAndVerifyEnabled()
132 mLooper.dispatchAll(); in scanModeStartDoesNotSendScanningActiveWhenClientInterfaceNameIsEmpty()
146 mLooper.dispatchAll(); in scanOnlyModeStartCalledTwice()
158 mLooper.dispatchAll(); in scanModeStopCleansUpState()
173 mLooper.dispatchAll(); in scanModeStopsOnInterfaceDestroyed()
[all …]
DClientModeImplTest.java342 TestLooper mLooper; field in ClientModeImplTest
407 mLooper = new TestLooper(); in setUp()
437 when(mWifiServiceHandlerThread.getLooper()).thenReturn(mLooper.getLooper()); in setUp()
521 Handler handler = new Handler(mLooper.getLooper()) { in registerAsyncChannel()
548 mLooper.dispatchAll(); in registerAsyncChannel()
556 mCmi = new ClientModeImpl(mContext, mFrameworkFacade, mLooper.getLooper(), in initializeCmi()
571 mLooper.dispatchAll(); in initializeCmi()
576 mLooper.startAutoDispatch(); in initializeCmi()
578 mLooper.stopAutoDispatch(); in initializeCmi()
603 mLooper.dispatchAll(); in createNew()
[all …]
DActiveModeWardenTest.java80 TestLooper mLooper; field in ActiveModeWardenTest
109 mLooper = new TestLooper(); in setUp()
124 mLooper.dispatchAll(); in setUp()
137 mLooper.getLooper(), in createActiveModeWarden()
189 mLooper.dispatchAll(); in enterClientModeActiveState()
191 mLooper.dispatchAll(); in enterClientModeActiveState()
217 mLooper.dispatchAll(); in enterScanOnlyModeActiveState()
219 mLooper.dispatchAll(); in enterScanOnlyModeActiveState()
249 mLooper.dispatchAll(); in enterSoftApActiveMode()
291 mLooper.dispatchAll(); in testEnterSoftApModeFromDifferentState()
[all …]
DWifiMonitorTest.java60 private TestLooper mLooper; field in WifiMonitorTest
67 mLooper = new TestLooper(); in setUp()
68 mHandlerSpy = spy(new Handler(mLooper.getLooper())); in setUp()
69 mSecondHandlerSpy = spy(new Handler(mLooper.getLooper())); in setUp()
83 mLooper.dispatchAll(); in testBroadcastWpsEventFailDueToErrorTkipOnlyProhibhited()
101 mLooper.dispatchAll(); in testBroadcastWpsEventFailDueToErrorWepProhibhited()
120 mLooper.dispatchAll(); in testBroadcastWpsEventFailDueToConfigAuthError()
137 mLooper.dispatchAll(); in testBroadcastWpsEventFailDueToConfigPbcOverlapError()
155 mLooper.dispatchAll(); in testBroadcastWpsEventFailDueToConfigError()
172 mLooper.dispatchAll(); in testBroadcastWpsEventSuccess()
[all …]
DSoftApManagerTest.java108 private TestLooper mLooper; field in SoftApManagerTest
131 mLooper = new TestLooper(); in setUp()
159 mLooper.getLooper(), in createSoftApManager()
169 mLooper.dispatchAll(); in createSoftApManager()
233 mLooper.getLooper(), in startSoftApDefaultConfigFailedToLoad()
243 mLooper.dispatchAll(); in startSoftApDefaultConfigFailedToLoad()
245 mLooper.dispatchAll(); in startSoftApDefaultConfigFailedToLoad()
277 mLooper.getLooper(), in testSetupForSoftApModeNullApInterfaceNameFailureIncrementsMetrics()
287 mLooper.dispatchAll(); in testSetupForSoftApModeNullApInterfaceNameFailureIncrementsMetrics()
289 mLooper.dispatchAll(); in testSetupForSoftApModeNullApInterfaceNameFailureIncrementsMetrics()
[all …]
DClientModeManagerTest.java57 TestLooper mLooper; field in ClientModeManagerTest
74 mLooper = new TestLooper(); in setUp()
77 mLooper.dispatchAll(); in setUp()
81 return new ClientModeManager(mContext, mLooper.getLooper(), mWifiNative, mListener, in createClientModeManager()
91 mLooper.dispatchAll(); in startClientModeAndVerifyEnabled()
98 mLooper.dispatchAll(); in startClientModeAndVerifyEnabled()
174 mLooper.dispatchAll(); in detectAndReportErrorWhenSetupForClientWifiNativeFailure()
194 mLooper.dispatchAll(); in clientModeStartDoesNotSendScanningActiveWhenClientInterfaceNameIsEmpty()
215 mLooper.dispatchAll(); in clientModeStartCalledTwice()
227 mLooper.dispatchAll(); in clientModeStopCleansUpState()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/euicc/
DEuiccConnectorTest.java66 private TestLooper mLooper; field in EuiccConnectorTest
78 mLooper = new TestLooper(); in setUp()
90 mConnector = new EuiccConnector(mContext, mLooper.getLooper()); in testInitialState_unavailable_noPermission()
91 mLooper.dispatchAll(); in testInitialState_unavailable_noPermission()
99 mConnector = new EuiccConnector(mContext, mLooper.getLooper()); in testInitialState_unavailable_noBindPermission()
100 mLooper.dispatchAll(); in testInitialState_unavailable_noBindPermission()
108 mConnector = new EuiccConnector(mContext, mLooper.getLooper()); in testInitialState_unavailable_noPriority()
109 mLooper.dispatchAll(); in testInitialState_unavailable_noPriority()
117 mConnector = new EuiccConnector(mContext, mLooper.getLooper()); in testInitialState_commandRejected()
130 mLooper.dispatchAll(); in testInitialState_commandRejected()
[all …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/soap/
DRedirectListenerTest.java50 private TestLooper mLooper = new TestLooper(); field in RedirectListenerTest
51 private Handler mHandler = new Handler(mLooper.getLooper());
85 mRedirectListener = new RedirectListenerSpy(mLooper.getLooper(), TEST_PORT); in setUp()
91 mLooper.dispatchAll(); in verifyStartServer()
98 mLooper.dispatchAll(); in verifyStopServer()
103 assertFalse(mLooper.isIdle()); in verifyStopServer()
119 mLooper.moveTimeForward(RedirectListener.USER_TIMEOUT_MILLIS); in timeOutForKnownGetRequest()
120 mLooper.dispatchAll(); in timeOutForKnownGetRequest()
141 mLooper.moveTimeForward(RedirectListener.USER_TIMEOUT_MILLIS); in receiveUnknownGetRequest()
142 mLooper.dispatchAll(); in receiveUnknownGetRequest()
[all …]
/frameworks/base/tests/testables/src/android/testing/
DTestableLooper.java49 private Looper mLooper; field in TestableLooper
71 return mLooper; in getLooper()
75 mLooper = l; in setupQueue()
76 mQueue = mLooper.getQueue(); in setupQueue()
77 mHandler = new Handler(mLooper); in setupQueue()
87 if (HOLD_MAIN_THREAD && mLooper == Looper.getMainLooper()) { in destroy()
233 private final Looper mLooper; field in TestableLooper.LooperFrameworkMethod
239 mLooper = setAsMain ? Looper.getMainLooper() : createLooper(); in LooperFrameworkMethod()
240 mTestableLooper = new TestableLooper(mLooper, false); in LooperFrameworkMethod()
245 mHandler = new Handler(mLooper); in LooperFrameworkMethod()
[all …]
/frameworks/base/packages/Tethering/tests/unit/src/com/android/networkstack/tethering/
DEntitlementManagerTest.java100 private final TestLooper mLooper = new TestLooper(); field in EntitlementManagerTest
217 mEnMgr = new WrappedEntitlementManager(mMockContext, new Handler(mLooper.getLooper()), mLog, in setUp()
306 mLooper.dispatchAll(); in testRequestLastEntitlementCacheValue()
319 mLooper.dispatchAll(); in testRequestLastEntitlementCacheValue()
331 mLooper.dispatchAll(); in testRequestLastEntitlementCacheValue()
344 mLooper.dispatchAll(); in testRequestLastEntitlementCacheValue()
356 mLooper.dispatchAll(); in testRequestLastEntitlementCacheValue()
368 mLooper.dispatchAll(); in testRequestLastEntitlementCacheValue()
379 mLooper.dispatchAll(); in testRequestLastEntitlementCacheValue()
391 mLooper.dispatchAll(); in testRequestLastEntitlementCacheValue()
[all …]
DTetheringTest.java219 private final TestLooper mLooper = new TestLooper(); field in TetheringTest
418 return mLooper.getLooper(); in getTetheringLooper()
687 mLooper.dispatchAll(); in failingLocalOnlyHotspotLegacyApBroadcast()
706 mLooper.dispatchAll(); in prepareNcmTethering()
717 mLooper.dispatchAll(); in prepareUsbTethering()
733 mLooper.dispatchAll(); in testUsbConfiguredBroadcastStartsTethering()
762 mLooper.dispatchAll(); in workingLocalOnlyHotspotEnrichedApBroadcast()
783 mLooper.dispatchAll(); in workingLocalOnlyHotspotEnrichedApBroadcast()
817 mLooper.dispatchAll(); in sendIPv6TetherUpdates()
823 mLooper.dispatchAll(); in runUsbTethering()
[all …]
/frameworks/native/services/surfaceflinger/Scheduler/
DMessageQueue.cpp57 mQueue.mLooper->sendMessage(this, Message(MessageQueue::REFRESH)); in dispatchRefresh()
63 mQueue.mLooper->sendMessage(this, Message(MessageQueue::INVALIDATE)); in dispatchInvalidate()
84 mLooper = new Looper(true); in init()
95 mLooper->removeFd(mEventTube.getFd()); in setEventThread()
102 mLooper->addFd(mEventTube.getFd(), 0, Looper::EVENT_INPUT, MessageQueue::cb_eventReceiver, in setEventThread()
108 mLooper->removeFd(mEventTube.getFd()); in setEventConnection()
113 mLooper->addFd(mEventTube.getFd(), 0, Looper::EVENT_INPUT, MessageQueue::cb_eventReceiver, in setEventConnection()
120 int32_t ret = mLooper->pollOnce(-1); in waitMessage()
142 mLooper->sendMessageDelayed(relTime, messageHandler, dummyMessage); in postMessage()
144 mLooper->sendMessage(messageHandler, dummyMessage); in postMessage()
/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/base/libs/hwui/thread/
DThreadBase.h36 , mLooper(new Looper(false)) in ThreadBase()
37 , mQueue([this]() { mLooper->wake(); }, mLock) {} in ThreadBase()
43 mLooper->wake(); in requestExit()
64 int result = mLooper->pollOnce(timeout); in waitForWork()
71 Looper::setForThread(mLooper); in threadLoop()
80 sp<Looper> mLooper; variable
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/scanner/
DWifiScanningServiceTest.java133 TestLooper mLooper; field in WifiScanningServiceTest
153 mLooper = new TestLooper(); in setUp()
154 mWifiMetrics = new WifiMetrics(mContext, mFrameworkFacade, mClock, mLooper.getLooper(), in setUp()
168 mWifiScanningServiceImpl = new WifiScanningServiceImpl(mContext, mLooper.getLooper(), in setUp()
190 controlChannel.connect(mLooper.getLooper(), mWifiScanningServiceImpl.getMessenger(), in connectChannel()
192 mLooper.dispatchAll(); in connectChannel()
427 mLooper.dispatchAll(); in setupAndLoadDriver()
475 mLooper.dispatchAll(); in startService()
484 mLooper.dispatchAll(); in disconnectClientBeforeWifiEnabled()
487 mLooper.dispatchAll(); in disconnectClientBeforeWifiEnabled()
[all …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/p2p/
DWifiP2pMonitorTest.java44 private TestLooper mLooper; field in WifiP2pMonitorTest
51 mLooper = new TestLooper(); in setUp()
52 mHandlerSpy = spy(new Handler(mLooper.getLooper())); in setUp()
53 mSecondHandlerSpy = spy(new Handler(mLooper.getLooper())); in setUp()
65 mLooper.dispatchAll(); in testBroadcastSupplicantDisconnectionEvent()
81 mLooper.dispatchAll(); in testBroadcastEventToTwoHandlers()
97 mLooper.dispatchAll(); in testBroadcastEventWhenIfaceIsNull()
111 mLooper.dispatchAll(); in testBroadcastEventWhenIfaceHandlerIsNull()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/
DPasspointProvisionerTest.java153 private TestLooper mLooper = new TestLooper(); field in PasspointProvisionerTest
205 when(RedirectListener.createInstance(mLooper.getLooper())).thenReturn(mRedirectListener); in setUp()
296 mPasspointProvisioner.init(mLooper.getLooper()); in initAndStartProvisioning()
300 assertEquals(mHandler.getLooper(), mLooper.getLooper()); in initAndStartProvisioning()
302 mLooper.dispatchAll(); in initAndStartProvisioning()
308 mLooper.dispatchAll(); in initAndStartProvisioning()
338 mLooper.dispatchAll(); in stopAfterStep()
346 mLooper.dispatchAll(); in stopAfterStep()
356 mLooper.dispatchAll(); in stopAfterStep()
372 mLooper.dispatchAll(); in stopAfterStep()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/
DNotificationPlayer.java68 private Looper mLooper; field in NotificationPlayer
87 mLooper = Looper.myLooper(); in run()
88 if (DEBUG) Log.d(mTag, "in run: new looper " + mLooper); in run()
190 if((mLooper != null) in startSound()
191 && (mLooper.getThread().getState() != Thread.State.TERMINATED)) { in startSound()
192 if (DEBUG) { Log.d(mTag, "in startSound quitting looper " + mLooper); } in startSound()
193 mLooper.quit(); in startSound()
256 if ((mLooper != null) && in run()
257 (mLooper.getThread().getState() != Thread.State.TERMINATED)) in run()
259 if (DEBUG) { Log.d(mTag, "in STOP: quitting looper "+ mLooper); } in run()
[all …]
/frameworks/base/wifi/tests/src/android/net/wifi/
DWifiScannerTest.java82 private TestLooper mLooper; field in WifiScannerTest
92 mLooper = new TestLooper(); in setUp()
93 mHandler = spy(new Handler(mLooper.getLooper())); in setUp()
95 mContext, mLooper.getLooper(), mHandler); in setUp()
97 mWifiScanner = new WifiScanner(mContext, mService, mLooper.getLooper()); in setUp()
98 mLooper.dispatchAll(); in setUp()
256 mLooper.dispatchAll(); in testStartScan()
284 mLooper.dispatchAll(); in testStopScan()
287 mLooper.dispatchAll(); in testStopScan()
312 mLooper.dispatchAll(); in testStartScanListenerOnSuccess()
[all …]
/frameworks/base/lowpan/java/android/net/lowpan/
DLowpanCommissioningSession.java41 private final Looper mLooper; field in LowpanCommissioningSession
117 mLooper = looper; in LowpanCommissioningSession()
119 if (mLooper != null) { in LowpanCommissioningSession()
120 mHandler = new Handler(mLooper); in LowpanCommissioningSession()
196 } else if (mLooper != null) { in setCallback()
197 mHandler = new Handler(mLooper); in setCallback()
/frameworks/base/core/jni/
Dandroid_os_MessageQueue.cpp80 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/av/media/libstagefright/foundation/include/media/stagefright/foundation/
DAHandler.h41 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/
DTestHandlerThread.java23 private Looper mLooper; field in TestHandlerThread
46 mLooper.quit(); in doTest()
57 return mLooper; in getLooper()
78 mLooper = Looper.myLooper(); in run()
/frameworks/av/media/libstagefright/tests/
DBatteryChecker_test.cpp87 : mLooper(new ALooper) in BatteryCheckerTest()
89 mLooper->setName("BatterCheckerLooper"); in BatteryCheckerTest()
90 mLooper->start(false, false, ANDROID_PRIORITY_AUDIO); in BatteryCheckerTest()
91 mLooper->registerHandler(mHandler); in BatteryCheckerTest()
99 mLooper->stop(); in ~BatteryCheckerTest()
100 mLooper->unregisterHandler(mHandler->id()); in ~BatteryCheckerTest()
107 sp<ALooper> mLooper; member in android::BatteryCheckerTest

12345678