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.java370 TestLooper altLooper = new TestLooper(); in testMainLooperIsUsedWhenHandlerNotProvided() local
371 when(mContext.getMainLooper()).thenReturn(altLooper.getLooper()); in testMainLooperIsUsedWhenHandlerNotProvided()
376 altLooper.dispatchAll(); in testMainLooperIsUsedWhenHandlerNotProvided()
378 assertEquals(altLooper.getLooper().getThread().getId(), callback.mCallingThreadId); in testMainLooperIsUsedWhenHandlerNotProvided()
766 TestLooper altLooper = new TestLooper(); in softApCallbackIsCalledOnCorrectThread() local
767 Handler altHandler = new Handler(altLooper.getLooper()); in softApCallbackIsCalledOnCorrectThread()
773 altLooper.dispatchAll(); in softApCallbackIsCalledOnCorrectThread()
808 TestLooper altLooper = new TestLooper(); in testMainLooperIsUsedWhenHandlerNotProvidedForObserver() local
809 when(mContext.getMainLooper()).thenReturn(altLooper.getLooper()); in testMainLooperIsUsedWhenHandlerNotProvidedForObserver()
812 altLooper.dispatchAll(); in testMainLooperIsUsedWhenHandlerNotProvidedForObserver()
[all …]