Home
last modified time | relevance | path

Searched refs:viewRootImpl (Results 1 – 25 of 43) sorted by relevance

12

/aosp14/frameworks/base/core/java/android/view/
H A DAccessibilityEmbeddedConnection.java38 AccessibilityEmbeddedConnection(ViewRootImpl viewRootImpl) { in AccessibilityEmbeddedConnection() argument
39 mViewRootImpl = new WeakReference<>(viewRootImpl); in AccessibilityEmbeddedConnection()
44 final ViewRootImpl viewRootImpl = mViewRootImpl.get(); in associateEmbeddedHierarchy() local
45 if (viewRootImpl != null) { in associateEmbeddedHierarchy()
47 viewRootImpl.mContext); in associateEmbeddedHierarchy()
53 return viewRootImpl.mLeashToken; in associateEmbeddedHierarchy()
60 final ViewRootImpl viewRootImpl = mViewRootImpl.get(); in disassociateEmbeddedHierarchy() local
61 if (viewRootImpl != null) { in disassociateEmbeddedHierarchy()
63 viewRootImpl.mContext); in disassociateEmbeddedHierarchy()
74 final ViewRootImpl viewRootImpl = mViewRootImpl.get(); in setWindowMatrix() local
[all …]
H A DImeFocusController.java43 ImeFocusController(@NonNull ViewRootImpl viewRootImpl) { in ImeFocusController() argument
44 mViewRootImpl = viewRootImpl; in ImeFocusController()
166 void onPreWindowGainedFocus(ViewRootImpl viewRootImpl); in onPreWindowGainedFocus() argument
169 void onWindowLostFocus(@NonNull ViewRootImpl viewRootImpl); in onWindowLostFocus() argument
171 void onScheduledCheckFocus(@NonNull ViewRootImpl viewRootImpl); in onScheduledCheckFocus() argument
172 void onViewDetachedFromWindow(View view, ViewRootImpl viewRootImpl); in onViewDetachedFromWindow() argument
173 void onWindowDismissed(ViewRootImpl viewRootImpl); in onWindowDismissed() argument
H A DViewRootImpl.java10940 if (viewRootImpl != null && viewRootImpl.mView != null) { in findAccessibilityNodeInfoByAccessibilityId()
10961 if (viewRootImpl != null && viewRootImpl.mView != null) { in performAccessibilityAction()
10982 if (viewRootImpl != null && viewRootImpl.mView != null) { in findAccessibilityNodeInfosByViewId()
11004 if (viewRootImpl != null && viewRootImpl.mView != null) { in findAccessibilityNodeInfosByText()
11025 if (viewRootImpl != null && viewRootImpl.mView != null) { in findFocus()
11046 if (viewRootImpl != null && viewRootImpl.mView != null) { in focusSearch()
11064 if (viewRootImpl != null && viewRootImpl.mView != null) { in clearAccessibilityFocus()
11073 if (viewRootImpl != null && viewRootImpl.mView != null) { in notifyOutsideTouch()
11084 if (viewRootImpl != null && viewRootImpl.mView != null) { in takeScreenshotOfWindow()
11100 if (viewRootImpl != null) { in attachAccessibilityOverlayToWindow()
[all …]
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
H A DBlurUtilsTest.kt62 val viewRootImpl = mock(ViewRootImpl::class.java) regex
63 `when`(viewRootImpl.surfaceControl).thenReturn(surfaceControl)
71 val viewRootImpl = mock(ViewRootImpl::class.java) regex
72 `when`(viewRootImpl.surfaceControl).thenReturn(surfaceControl)
74 blurUtils.applyBlur(viewRootImpl, radius, true /* opaque */)
84 val viewRootImpl = mock(ViewRootImpl::class.java) regex
85 `when`(viewRootImpl.surfaceControl).thenReturn(surfaceControl)
89 blurUtils.applyBlur(viewRootImpl, radius, true /* opaque */)
99 val viewRootImpl = mock(ViewRootImpl::class.java) regex
102 blurUtils.applyBlur(viewRootImpl, radius, true /* opaque */)
[all …]
H A DNotificationShadeDepthControllerTest.kt75 @Mock private lateinit var viewRootImpl: ViewRootImpl
92 `when`(root.viewRootImpl).thenReturn(viewRootImpl)
424 verify(blurUtils).applyBlur(eq(viewRootImpl), eq(0), eq(false))
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
H A DBlurUtils.kt79 fun prepareBlur(viewRootImpl: ViewRootImpl?, radius: Int) {
80 if (viewRootImpl == null || !viewRootImpl.surfaceControl.isValid ||
103 fun applyBlur(viewRootImpl: ViewRootImpl?, radius: Int, opaque: Boolean) {
104 if (viewRootImpl == null || !viewRootImpl.surfaceControl.isValid) {
109 it.setBackgroundBlurRadius(viewRootImpl.surfaceControl, radius)
127 it.setOpaque(viewRootImpl.surfaceControl, opaque)
H A DNotificationShadeDepthController.kt242 blurUtils.applyBlur(root.viewRootImpl, blur, opaque)
450 blurUtils.prepareBlur(root.viewRootImpl, blur)
/aosp14/frameworks/base/packages/SystemUI/animation/src/com/android/systemui/animation/
H A DViewRootSync.kt20 view.viewRootImpl == null ||
22 otherView.viewRootImpl == null ||
23 view.viewRootImpl == otherView.viewRootImpl
H A DDialogLaunchAnimator.kt252 it.dialog.window?.decorView?.viewRootImpl == controller.viewRoot
339 it.dialog.window?.decorView?.viewRootImpl == view.viewRootImpl
722 if (decorView.viewRootImpl == null) {
H A DViewDialogLaunchAnimatorController.kt32 get() = source.viewRootImpl
H A DLaunchAnimator.kt278 openingWindowSyncView.viewRootImpl != controller.launchContainer.viewRootImpl
/aosp14/frameworks/base/core/tests/coretests/src/android/view/
H A DViewRootRefreshRateControllerTest.java83 final ViewRootImpl viewRootImpl = editText.getViewRootImpl(); in testUpdateRefreshRatePreference_shouldLowerThenRestore() local
84 mRefreshRateController = new ViewRootRefreshRateController(viewRootImpl); in testUpdateRefreshRatePreference_shouldLowerThenRestore()
86 viewRootImpl.mWindowAttributes.preferredMaxDisplayRefreshRate; in testUpdateRefreshRatePreference_shouldLowerThenRestore()
91 assertEquals(viewRootImpl.mWindowAttributes.preferredMaxDisplayRefreshRate, in testUpdateRefreshRatePreference_shouldLowerThenRestore()
97 assertEquals(viewRootImpl.mWindowAttributes.preferredMaxDisplayRefreshRate, in testUpdateRefreshRatePreference_shouldLowerThenRestore()
H A DViewRootImplTest.java357 ViewRootImpl viewRootImpl = new ViewRootImpl(sContext, in playSoundEffect_wrongEffectId_throwException() local
364 viewRootImpl.setView(view, layoutParams, /* panelParentView= */ null); in playSoundEffect_wrongEffectId_throwException()
367 () -> viewRootImpl.playSoundEffect(/* effectId= */ -1)); in playSoundEffect_wrongEffectId_throwException()
377 ViewRootImpl viewRootImpl = new ViewRootImpl(sContext, display); in playSoundEffect_wrongEffectId_touchFeedbackDisabled_doNothing() local
383 viewRootImpl.setView(view, layoutParams, /* panelParentView= */ null); in playSoundEffect_wrongEffectId_touchFeedbackDisabled_doNothing()
385 viewRootImpl.playSoundEffect(/* effectId= */ -1); in playSoundEffect_wrongEffectId_touchFeedbackDisabled_doNothing()
395 ViewRootImpl viewRootImpl = new ViewRootImpl(sContext, display); in performHapticFeedback_touchFeedbackDisabled_doNothing() local
397 boolean result = viewRootImpl.performHapticFeedback( in performHapticFeedback_touchFeedbackDisabled_doNothing()
H A DImeInsetsSourceConsumerTest.java71 ViewRootImpl viewRootImpl = new ViewRootImpl(mContext, mContext.getDisplayNoVerify()); in setup()
73 viewRootImpl.setView(new TextView(mContext), new LayoutParams(), null); in setup()
78 new ViewRootInsetsControllerHost(viewRootImpl))); in setup()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/shared/navigationbar/
H A DRegionSamplingHelperTest.kt58 lateinit var viewRootImpl: ViewRootImpl
70 whenever(sampledView.viewRootImpl).thenReturn(viewRootImpl)
71 whenever(viewRootImpl.surfaceControl).thenReturn(surfaceControl)
/aosp14/frameworks/base/core/java/android/webkit/
H A DWebViewDelegate.java140 ViewRootImpl viewRootImpl = containerView.getViewRootImpl(); in detachDrawGlFunctor() local
141 if (nativeDrawGLFunctor != 0 && viewRootImpl != null) { in detachDrawGlFunctor()
142 viewRootImpl.detachFunctor(nativeDrawGLFunctor); in detachDrawGlFunctor()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/
H A DWallpaperControllerTest.kt57 private lateinit var viewRootImpl: ViewRootImpl
70 `when`(root.viewRootImpl).thenReturn(viewRootImpl)
/aosp14/frameworks/base/core/java/android/widget/
H A DMediaController.java749 ViewRootImpl viewRootImpl = mDecor.getViewRootImpl(); in unregisterOnBackInvokedCallback() local
750 if (viewRootImpl != null in unregisterOnBackInvokedCallback()
751 && viewRootImpl.getOnBackInvokedDispatcher().isOnBackInvokedCallbackEnabled()) { in unregisterOnBackInvokedCallback()
752 viewRootImpl.getOnBackInvokedDispatcher() in unregisterOnBackInvokedCallback()
763 ViewRootImpl viewRootImpl = mDecor.getViewRootImpl(); in registerOnBackInvokedCallback() local
764 if (viewRootImpl != null in registerOnBackInvokedCallback()
765 && viewRootImpl.getOnBackInvokedDispatcher().isOnBackInvokedCallbackEnabled()) { in registerOnBackInvokedCallback()
766 viewRootImpl.getOnBackInvokedDispatcher().registerOnBackInvokedCallback( in registerOnBackInvokedCallback()
H A DMagnifier.java631 final ViewRootImpl viewRootImpl = mView.getViewRootImpl(); in obtainSurfaces() local
632 final Surface mainWindowSurface = viewRootImpl.mSurface; in obtainSurfaces()
634 final Rect surfaceInsets = viewRootImpl.mWindowAttributes.surfaceInsets; in obtainSurfaces()
636 viewRootImpl.getWidth() + surfaceInsets.left + surfaceInsets.right; in obtainSurfaces()
638 viewRootImpl.getHeight() + surfaceInsets.top + surfaceInsets.bottom; in obtainSurfaces()
640 new SurfaceInfo(viewRootImpl.getSurfaceControl(), mainWindowSurface, in obtainSurfaces()
/aosp14/frameworks/base/core/java/android/view/inputmethod/
H A DInputMethodManager.java712 if (viewRootImpl == null) { in getFallbackInputMethodManagerIfNecessary()
775 setCurrentRootViewLocked(viewRootImpl); in onPreWindowGainedFocus()
856 if (mCurRootView == viewRootImpl) { in onWindowLostFocus()
891 viewRootImpl.dispatchCheckFocus(); in onViewDetachedFromWindow()
899 if (mCurRootView != viewRootImpl) { in onWindowDismissed()
3007 if (mCurRootView != viewRootImpl) { in checkFocusInternalLocked()
3041 if (mCurRootView != viewRootImpl) { in onViewFocusChangedInternal()
3065 viewRootImpl.dispatchCheckFocus(); in onViewFocusChangedInternal()
3653 if (viewRootImpl == null) { in dispatchKeyEventFromInputMethod()
3659 if (viewRootImpl != null) { in dispatchKeyEventFromInputMethod()
[all …]
/aosp14/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/navigationbar/
H A DRegionSamplingHelper.java194 ViewRootImpl viewRootImpl = mSampledView.getViewRootImpl(); in updateSamplingListener() local
196 if (viewRootImpl != null) { in updateSamplingListener()
197 stopLayerControl = viewRootImpl.getSurfaceControl(); in updateSamplingListener()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/ui/binder/
H A DKeyguardSurfaceBehindParamsApplier.kt55 get() = SyncRtSurfaceTransactionApplier(keyguardViewController.viewRootImpl.view)
196 keyguardViewController.viewRootImpl.view?.visibility != View.VISIBLE &&
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/
H A DKeyguardUnlockAnimationController.kt539 keyguardViewController.viewRootImpl.view)
881 keyguardViewController.viewRootImpl.width / 2f,
888 if (keyguardViewController.viewRootImpl.view?.visibility != View.VISIBLE &&
921 if (keyguardViewController.viewRootImpl.view?.visibility != View.VISIBLE &&
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/dreams/
H A DDreamOverlayAnimationsController.kt290 viewRootImpl = view.viewRootImpl,
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/scene/ui/view/
H A DSceneWindowRootViewBinder.kt70 view.viewRootImpl.onBackInvokedDispatcher

12