Searched refs:altLooper (Results 1 – 1 of 1) sorted by relevance
370 TestLooper altLooper = new TestLooper(); in testMainLooperIsUsedWhenHandlerNotProvided() local371 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() local767 Handler altHandler = new Handler(altLooper.getLooper()); in softApCallbackIsCalledOnCorrectThread()773 altLooper.dispatchAll(); in softApCallbackIsCalledOnCorrectThread()808 TestLooper altLooper = new TestLooper(); in testMainLooperIsUsedWhenHandlerNotProvidedForObserver() local809 when(mContext.getMainLooper()).thenReturn(altLooper.getLooper()); in testMainLooperIsUsedWhenHandlerNotProvidedForObserver()812 altLooper.dispatchAll(); in testMainLooperIsUsedWhenHandlerNotProvidedForObserver()[all …]