Home
last modified time | relevance | path

Searched refs:mViewRoot (Results 1 – 11 of 11) sorted by relevance

/frameworks/base/core/java/android/view/
DViewRootInsetsControllerHost.java41 private final ViewRootImpl mViewRoot; field in ViewRootInsetsControllerHost
45 mViewRoot = viewRoot; in ViewRootInsetsControllerHost()
50 return mViewRoot.mHandler; in getHandler()
55 mViewRoot.notifyInsetsChanged(); in notifyInsetsChanged()
60 if (mViewRoot.mView == null) { in addOnPreDrawRunnable()
63 mViewRoot.mView.getViewTreeObserver().addOnPreDrawListener( in addOnPreDrawRunnable()
67 mViewRoot.mView.getViewTreeObserver().removeOnPreDrawListener(this); in addOnPreDrawRunnable()
72 mViewRoot.mView.invalidate(); in addOnPreDrawRunnable()
77 if (mViewRoot.mView == null) { in dispatchWindowInsetsAnimationPrepare()
80 mViewRoot.mView.dispatchWindowInsetsAnimationPrepare(animation); in dispatchWindowInsetsAnimationPrepare()
[all …]
DSurfaceControlViewHost.java48 private final ViewRootImpl mViewRoot; field in SurfaceControlViewHost
58 if (mViewRoot == null) { in onConfigurationChanged()
61 mViewRoot.mHandler.post(() -> { in onConfigurationChanged()
65 if (mViewRoot != null) { in onConfigurationChanged()
66 mViewRoot.forceWmRelayout(); in onConfigurationChanged()
73 if (mViewRoot == null) { in onDispatchDetachedFromWindow()
76 mViewRoot.mHandler.post(() -> { in onDispatchDetachedFromWindow()
83 if (mViewRoot != null) { in onInsetsChanged()
84 mViewRoot.mHandler.post(() -> { in onInsetsChanged()
85 mViewRoot.setOverrideInsetsFrame(frame); in onInsetsChanged()
[all …]
/frameworks/base/core/java/com/android/internal/jank/
DFrameTracker.java101 private final ViewRootWrapper mViewRoot; field in FrameTracker
207 mViewRoot = mSurfaceOnly ? null : viewRootWrapper; in FrameTracker()
223 if (mViewRoot.getSurfaceControl().isValid()) { in FrameTracker()
224 mSurfaceControl = mViewRoot.getSurfaceControl(); in FrameTracker()
232 mSurfaceControl = mViewRoot.getSurfaceControl(); in FrameTracker()
266 mViewRoot.addSurfaceChangedCallback(mSurfaceChangedCallback); in FrameTracker()
667 mViewRoot.removeSurfaceChangedCallback(mSurfaceChangedCallback); in removeObservers()
735 private final ViewRootImpl mViewRoot; field in FrameTracker.ViewRootWrapper
738 mViewRoot = viewRoot; in ViewRootWrapper()
746 mViewRoot.addSurfaceChangedCallback(callback); in addSurfaceChangedCallback()
[all …]
/frameworks/base/core/java/com/android/internal/graphics/drawable/
DBackgroundBlurDrawable.java238 private final ViewRootImpl mViewRoot; field in BackgroundBlurDrawable.Aggregator
244 mViewRoot = viewRoot; in Aggregator()
285 if (mOnPreDrawListener == null && mViewRoot.getView() != null in onBlurDrawableUpdated()
298 mViewRoot.registerRtFrameCallback(frame -> { in registerPreDrawListener()
307 if (!hasRegions() && mViewRoot.getView() != null) { in registerPreDrawListener()
308 mViewRoot.getView().getViewTreeObserver() in registerPreDrawListener()
315 mViewRoot.getView().getViewTreeObserver().addOnPreDrawListener(mOnPreDrawListener); in registerPreDrawListener()
422 mViewRoot.dispatchBlurRegions(blurRegionsArray, frameNumber); in handleDispatchBlurTransactionLocked()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DRenderSessionImpl.java134 private ViewGroup mViewRoot; field in RenderSessionImpl
268 mViewRoot, measuredView, in measureLayout()
329 mViewRoot = new Layout(mLayoutBuilder); in inflate()
331 mContentRoot = ((Layout) mViewRoot).getContentRoot(); in inflate()
371 AttachInfo_Accessor.setAttachInfo(mViewRoot, mRenderer); in inflate()
380 measureView(mViewRoot, null /*measuredView*/, in inflate()
383 mViewRoot.layout(0, 0, mMeasuredScreenWidth, mMeasuredScreenHeight); in inflate()
385 visitAllChildren(mViewRoot, 0, 0, params.getExtendedViewInfoMode(), in inflate()
499 if (mViewRoot == null) { in renderAndBuildResult()
513 doLayout(getContext(), mViewRoot, mMeasuredScreenWidth, mMeasuredScreenHeight); in renderAndBuildResult() local
[all …]
/frameworks/base/core/tests/coretests/src/android/view/
DInsetsSourceConsumerTest.java81 private ViewRootImpl mViewRoot; field in InsetsSourceConsumerTest
93 mViewRoot = new ViewRootImpl(context, context.getDisplayNoVerify()); in setup()
95 mViewRoot.setView(new TextView(context), new LayoutParams(), null); in setup()
103 mController = new InsetsController(new ViewRootInsetsControllerHost(mViewRoot)); in setup()
218 ViewRootInsetsControllerHost host = new ViewRootInsetsControllerHost(mViewRoot); in testWontUpdateImeLeashVisibility_whenAnimation()
DInsetsControllerTest.java103 private ViewRootImpl mViewRoot; field in InsetsControllerTest
116 mViewRoot = new ViewRootImpl(context, context.getDisplayNoVerify()); in setup()
118 mViewRoot.setView(new TextView(context), new LayoutParams(), null); in setup()
124 mTestHost = spy(new TestHost(mViewRoot)); in setup()
208 mViewRoot.getView().getViewTreeObserver().dispatchOnPreDraw(); in testControlsRevoked_duringAnim()
531 mViewRoot.getView().getViewTreeObserver().dispatchOnPreDraw(); in testAnimationEndState_controller()
556 mViewRoot.getView().getViewTreeObserver().dispatchOnPreDraw(); in testCancellation_afterGainingControl()
580 mViewRoot.getView().getViewTreeObserver().dispatchOnPreDraw(); in testControlImeNotReady()
588 mViewRoot.getView().getViewTreeObserver().dispatchOnPreDraw(); in testControlImeNotReady()
605 mViewRoot.getView().getViewTreeObserver().dispatchOnPreDraw(); in testControlImeNotReady_controlRevoked()
[all …]
DBlurAggregatorTest.java51 private ViewRootImpl mViewRoot; field in BlurAggregatorTest
57 mViewRoot = new ViewRootImpl(mContext, mContext.getDisplayNoVerify()); in setUp()
59 mAggregator = new Aggregator(mViewRoot); in setUp()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/phone/
DPipMenuIconsAlgorithm.java32 protected ViewGroup mViewRoot; field in PipMenuIconsAlgorithm
47 mViewRoot = viewRoot; in bindViews()
DPipMenuView.java151 protected View mViewRoot; field in PipMenuView
181 mViewRoot = findViewById(R.id.background); in PipMenuView()
182 mViewRoot.setBackground(mBackgroundDrawable); in PipMenuView()
219 mPipMenuIconsAlgorithm.bindViews((ViewGroup) mViewRoot, (ViewGroup) mTopEndContainer, in PipMenuView()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/dreams/
DDreamOverlayContainerViewControllerTest.java88 ViewRootImpl mViewRoot; field in DreamOverlayContainerViewControllerTest
110 when(mDreamOverlayContainerView.getViewRootImpl()).thenReturn(mViewRoot); in setup()
178 verify(mBlurUtils, never()).applyBlur(eq(mViewRoot), anyInt(), eq(false)); in testBouncerAnimation_doesNotApply()
200 verify(mBlurUtils).applyBlur(mViewRoot, (int) blurRadius, false); in testBouncerAnimation_updateBlur()