Searched refs:viewTreeObserver (Results 1 – 2 of 2) sorted by relevance
19 private ViewTreeObserver viewTreeObserver; field in ViewTreeObserverTest25 viewTreeObserver = Robolectric.Reflection.newInstanceOf(ViewTreeObserver.class); in setUp()32 viewTreeObserver.addOnGlobalLayoutListener(listener1); in shouldRecordMultipleOnGlobalLayoutListenersAndFireThemWhenAsked()33 viewTreeObserver.addOnGlobalLayoutListener(listener2); in shouldRecordMultipleOnGlobalLayoutListenersAndFireThemWhenAsked()35 shadowOf(viewTreeObserver).fireOnGlobalLayoutListeners(); in shouldRecordMultipleOnGlobalLayoutListenersAndFireThemWhenAsked()41 viewTreeObserver.removeGlobalOnLayoutListener(listener1); in shouldRecordMultipleOnGlobalLayoutListenersAndFireThemWhenAsked()42 shadowOf(viewTreeObserver).fireOnGlobalLayoutListeners(); in shouldRecordMultipleOnGlobalLayoutListenersAndFireThemWhenAsked()49 viewTreeObserver.removeGlobalOnLayoutListener(listener2); in shouldRecordMultipleOnGlobalLayoutListenersAndFireThemWhenAsked()50 shadowOf(viewTreeObserver).fireOnGlobalLayoutListeners(); in shouldRecordMultipleOnGlobalLayoutListenersAndFireThemWhenAsked()58 viewTreeObserver.addOnGlobalLayoutListener(listener1); in getGlobalLayoutListeners_shouldReturnTheListeners()[all …]
82 private ViewTreeObserver viewTreeObserver; field in ShadowView989 if (viewTreeObserver == null) { in getViewTreeObserver()990 viewTreeObserver = newInstanceOf(ViewTreeObserver.class); in getViewTreeObserver()992 return viewTreeObserver; in getViewTreeObserver()