Searched refs:altLooper (Results 1 – 1 of 1) sorted by relevance
407 TestLooper altLooper = new TestLooper(); in testMainLooperIsUsedWhenHandlerNotProvided() local408 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() local806 Handler altHandler = new Handler(altLooper.getLooper()); in softApCallbackIsCalledOnCorrectThread()812 altLooper.dispatchAll(); in softApCallbackIsCalledOnCorrectThread()847 TestLooper altLooper = new TestLooper(); in testMainLooperIsUsedWhenHandlerNotProvidedForObserver() local848 when(mContext.getMainLooper()).thenReturn(altLooper.getLooper()); in testMainLooperIsUsedWhenHandlerNotProvidedForObserver()851 altLooper.dispatchAll(); in testMainLooperIsUsedWhenHandlerNotProvidedForObserver()[all …]