Home
last modified time | relevance | path

Searched refs:altLooper (Results 1 – 1 of 1) sorted by relevance

/frameworks/base/wifi/tests/src/android/net/wifi/
DWifiManagerTest.java407 TestLooper altLooper = new TestLooper(); in testMainLooperIsUsedWhenHandlerNotProvided() local
408 when(mContext.getMainLooper()).thenReturn(altLooper.getLooper()); in testMainLooperIsUsedWhenHandlerNotProvided()
413 altLooper.dispatchAll(); in testMainLooperIsUsedWhenHandlerNotProvided()
415 assertEquals(altLooper.getLooper().getThread().getId(), callback.mCallingThreadId); in testMainLooperIsUsedWhenHandlerNotProvided()
805 TestLooper altLooper = new TestLooper(); in softApCallbackIsCalledOnCorrectThread() local
806 Handler altHandler = new Handler(altLooper.getLooper()); in softApCallbackIsCalledOnCorrectThread()
812 altLooper.dispatchAll(); in softApCallbackIsCalledOnCorrectThread()
847 TestLooper altLooper = new TestLooper(); in testMainLooperIsUsedWhenHandlerNotProvidedForObserver() local
848 when(mContext.getMainLooper()).thenReturn(altLooper.getLooper()); in testMainLooperIsUsedWhenHandlerNotProvidedForObserver()
851 altLooper.dispatchAll(); in testMainLooperIsUsedWhenHandlerNotProvidedForObserver()
[all …]