Home
last modified time | relevance | path

Searched refs:getViewTreeObserver (Results 1 – 25 of 73) sorted by relevance

123

/frameworks/base/core/java/com/android/internal/view/
DOneShotPreDrawListener.java41 mViewTreeObserver = view.getViewTreeObserver(); in OneShotPreDrawListener()
70 view.getViewTreeObserver().addOnPreDrawListener(listener); in add()
90 mView.getViewTreeObserver().removeOnPreDrawListener(this); in removeListener()
97 mViewTreeObserver = v.getViewTreeObserver(); in onViewAttachedToWindow()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DRegionInterceptingFrameLayout.java52 getViewTreeObserver().addOnComputeInternalInsetsListener(mInsetsListener); in onAttachedToWindow()
58 getViewTreeObserver().removeOnComputeInternalInsetsListener(mInsetsListener); in onDetachedFromWindow()
/frameworks/base/packages/SystemUI/plugin/ExamplePlugin/src/com/android/systemui/plugin/testoverlayplugin/
DSampleOverlayPlugin.java49 mStatusBarView.getViewTreeObserver().removeOnComputeInternalInsetsListener( in onDestroy()
90 mStatusBarView.getViewTreeObserver().addOnComputeInternalInsetsListener( in holdStatusBarOpen()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DStatusBarTouchableRegionManager.java91 mStatusBarWindowView.getViewTreeObserver().addOnComputeInternalInsetsListener(this); in updateTouchableRegion()
94 mStatusBarWindowView.getViewTreeObserver().removeOnComputeInternalInsetsListener(this); in updateTouchableRegion()
DRegionSamplingHelper.java80 mSampledView.getViewTreeObserver().removeOnDrawListener(mUpdateOnDraw);
174 mSampledView.getViewTreeObserver().addOnDrawListener(mUpdateOnDraw); in updateSamplingListener()
/frameworks/base/core/java/com/android/internal/view/menu/
DStandardMenuPopup.java87 if (!mTreeObserver.isAlive()) mTreeObserver = v.getViewTreeObserver();
164 mTreeObserver = anchor.getViewTreeObserver(); // Refresh to latest in tryShow()
235 if (!mTreeObserver.isAlive()) mTreeObserver = mShownAnchorView.getViewTreeObserver(); in onDismiss()
/frameworks/base/core/tests/coretests/src/android/widget/focus/
DRequestFocusTest.java138 clearingFocusButton.getViewTreeObserver().addOnGlobalFocusChangeListener(mock); in testOnFocusChangeCallbackOrderWhenClearingFocusOfFirstFocusable()
181 clearingFocusButton.getViewTreeObserver().addOnGlobalFocusChangeListener(mock); in testOnFocusChangeCallbackOrderWhenClearingFocusOfNotFirstFocusable()
/frameworks/base/tests/Assist/src/com/android/test/assist/
DAssistInteractionSession.java101 mBackground.getViewTreeObserver().addOnPreDrawListener( in onShow()
105 mBackground.getViewTreeObserver().removeOnPreDrawListener(this); in onShow()
/frameworks/base/services/core/java/com/android/server/am/
DUserSwitchingDialog.java129 decorView.getViewTreeObserver().addOnWindowShownListener(this); in show()
152 decorView.getViewTreeObserver().removeOnWindowShownListener(this); in startUser()
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/
DTemplateLayout.java247 getViewTreeObserver().removeOnPreDrawListener(preDrawListener); in setXFraction()
252 getViewTreeObserver().addOnPreDrawListener(preDrawListener); in setXFraction()
/frameworks/base/core/java/android/transition/
DTransitionManager.java239 sceneRoot.getViewTreeObserver().addOnPreDrawListener(listener); in sceneChangeRunTransition()
261 mViewTreeObserver = mSceneRoot.getViewTreeObserver(); in MultiListener()
268 mSceneRoot.getViewTreeObserver().removeOnPreDrawListener(this); in removeListeners()
/frameworks/base/packages/SystemUI/legacy/recents/src/com/android/systemui/recents/
DRecentsActivity.java211 mRecentsView.getViewTreeObserver().removeOnPreDrawListener(this);
379 mRecentsView.getViewTreeObserver().addOnPreDrawListener(mRecentsDrawnEventListener); in onStart()
682 mRecentsView.getViewTreeObserver().addOnPreDrawListener(this); in onBusEvent()
687 mRecentsView.getViewTreeObserver().addOnPreDrawListener(this); in onBusEvent()
692 mRecentsView.getViewTreeObserver().addOnPreDrawListener(this); in onBusEvent()
791 mRecentsView.getViewTreeObserver().addOnPreDrawListener(mRecentsDrawnEventListener); in onBusEvent()
831 mRecentsView.getViewTreeObserver().removeOnPreDrawListener(this); in onPreDraw()
/frameworks/base/core/tests/coretests/src/android/view/
DGlobalFocusChange.java33 findViewById(R.id.left).getViewTreeObserver().addOnGlobalFocusChangeListener(this); in onCreate()
DRunQueue.java62 viewTreeObserver = view.getViewTreeObserver(); in onCreate()
DPreDrawListener.java53 getViewTreeObserver().addOnPreDrawListener(this); in onAttachedToWindow()
DViewInvalidateTest.java304 .getViewTreeObserver().removeOnDrawListener(this); in runOnMainAndDrawSync()
311 .getViewTreeObserver().addOnDrawListener(listener); in runOnMainAndDrawSync()
/frameworks/base/tests/JankBench/app/src/main/java/com/android/benchmark/ui/automation/
DAutomator.java218 mWindow.getDecorView().getViewTreeObserver().removeOnGlobalLayoutListener(this); in onGlobalLayout()
265 mWindow.getDecorView().getViewTreeObserver().addOnGlobalLayoutListener(this); in Automator()
/frameworks/base/core/tests/coretests/src/android/transition/
DSlideTransitionTest.java53 square1.getViewTreeObserver().addOnPreDrawListener(ratchet); in testShortSlide()
87 square1.getViewTreeObserver().removeOnPreDrawListener(ratchet); in testShortSlide()
/frameworks/base/packages/CarSystemUI/src/com/android/systemui/statusbar/hvac/
DAnimatedTemperatureView.java169 textView.getViewTreeObserver() in generateTextView()
180 textView.getViewTreeObserver().removeOnPreDrawListener(this); in generateTextView()
/frameworks/base/core/java/android/view/autofill/
DAutofillPopupWindow.java152 public ViewTreeObserver getViewTreeObserver() { in update()
153 return anchor.getViewTreeObserver(); in update()
/frameworks/base/tests/ActivityViewTest/src/com/google/android/test/activityview/
DActivityViewTestActivity.java51 ViewTreeObserver viewTreeObserver = mRoot.getViewTreeObserver(); in onCreate()
/frameworks/base/packages/WallpaperCropper/src/com/android/wallpapercropper/
DCropView.java194 final ViewTreeObserver observer = getViewTreeObserver(); in moveToLeft()
198 getViewTreeObserver().removeOnGlobalLayoutListener(this); in moveToLeft()
/frameworks/base/tests/WindowAnimationJank/src/android/windowanimationjank/
DElementLayoutActivity.java59 mLayout.getViewTreeObserver().addOnPreDrawListener(this); in onCreate()
/frameworks/base/core/java/android/widget/
DSpinner.java902 ViewTreeObserver vto = getViewTreeObserver(); in onRestoreInstanceState()
910 final ViewTreeObserver vto = getViewTreeObserver(); in onRestoreInstanceState()
1285 final ViewTreeObserver vto = getViewTreeObserver(); in show()
1304 final ViewTreeObserver vto = getViewTreeObserver(); in show()
DActivityChooserView.java381 getViewTreeObserver().addOnGlobalLayoutListener(mOnGlobalLayoutListener); in showPopupUnchecked()
424 ViewTreeObserver viewTreeObserver = getViewTreeObserver(); in dismissPopup()
458 ViewTreeObserver viewTreeObserver = getViewTreeObserver(); in onDetachedFromWindow()

123