Searched refs:viewTreeObserver (Results 1 – 6 of 6) sorted by relevance
167 mContentView?.viewTreeObserver?.addOnPreDrawListener(mStartPositionUpdater) in startPositionUpdater()174 mContentView?.viewTreeObserver?.removeOnPreDrawListener(mStartPositionUpdater) in stopPositionUpdater()187 if (mContentView!!.viewTreeObserver.isAlive) { in onPreDraw()192 mContentView?.viewTreeObserver?.removeOnPreDrawListener(mStartPositionUpdater) in onPreDraw()
188 mContentView.viewTreeObserver.addOnPreDrawListener(mStartPositionUpdater) in startPositionUpdater()195 mContentView.viewTreeObserver.removeOnPreDrawListener(mStartPositionUpdater) in stopPositionUpdater()208 if (mContentView.viewTreeObserver.isAlive) { in onPreDraw()213 mContentView.viewTreeObserver.removeOnPreDrawListener(mStartPositionUpdater) in onPreDraw()
494 val viewTreeObserver = toView!!.viewTreeObserver in animateToView() constant495 viewTreeObserver.addOnPreDrawListener(object : OnPreDrawListener { in animateToView()497 if (viewTreeObserver.isAlive) { in animateToView()498 viewTreeObserver.removeOnPreDrawListener(this) in animateToView()
337 ViewTreeObserver viewTreeObserver = in showHeadsUp() local344 viewTreeObserver.addOnComputeInternalInsetsListener(onComputeInternalInsetsListener); in showHeadsUp()347 viewTreeObserver.addOnGlobalLayoutListener( in showHeadsUp()365 viewTreeObserver.addOnGlobalFocusChangeListener(onGlobalFocusChangeListener); in showHeadsUp()
442 final ViewTreeObserver viewTreeObserver = mock(ViewTreeObserver.class); in testOnGlobalLayout_shouldNotRemoveListener() local446 when(mScrollView.getViewTreeObserver()).thenReturn(viewTreeObserver); in testOnGlobalLayout_shouldNotRemoveListener()450 verify(viewTreeObserver, never()).removeOnGlobalLayoutListener(mMainClear); in testOnGlobalLayout_shouldNotRemoveListener()
446 final ViewTreeObserver viewTreeObserver = decorView.getViewTreeObserver(); in updateOverflowButtonColor() local447 viewTreeObserver.addOnGlobalLayoutListener( in updateOverflowButtonColor()