Home
last modified time | relevance | path

Searched refs:isAttachedToWindow (Results 1 – 25 of 131) sorted by relevance

123456

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/lifecycle/
DRepeatWhenAttachedTest.kt110 whenever(view.isAttachedToWindow).thenReturn(false) in repeatWhenAttached_viewStartsDetached_runsBlockWhenAttached()
114 whenever(view.isAttachedToWindow).thenReturn(true) in repeatWhenAttached_viewStartsDetached_runsBlockWhenAttached()
125 whenever(view.isAttachedToWindow).thenReturn(true) in repeatWhenAttached_viewAlreadyAttached_immediatelyRunsBlock()
137 whenever(view.isAttachedToWindow).thenReturn(true) in repeatWhenAttached_startsVisibleWithoutFocus_STARTED()
150 whenever(view.isAttachedToWindow).thenReturn(true) in repeatWhenAttached_startsWithFocusButInvisible_CREATED()
163 whenever(view.isAttachedToWindow).thenReturn(true) in repeatWhenAttached_startsVisibleAndWithFocus_RESUMED()
177 whenever(view.isAttachedToWindow).thenReturn(true) in repeatWhenAttached_becomesVisibleWithoutFocus_STARTED()
193 whenever(view.isAttachedToWindow).thenReturn(true) in repeatWhenAttached_gainsFocusButInvisible_CREATED()
209 whenever(view.isAttachedToWindow).thenReturn(true) in repeatWhenAttached_becomesVisibleAndGainsFocus_RESUMED()
229 whenever(view.isAttachedToWindow).thenReturn(true) in repeatWhenAttached_viewGetsDetached_destroysTheLifecycle()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/
DViewController.java79 if (isAttachedToWindow()) { in init()
101 public boolean isAttachedToWindow() { in isAttachedToWindow() method in ViewController
102 return mView != null && mView.isAttachedToWindow(); in isAttachedToWindow()
DWallpaperController.kt68 if (root.isAttachedToWindow && root.windowToken != null) { in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/common/ui/view/
DLongPressHandlingViewInteractionHandler.kt31 private val isAttachedToWindow: () -> Boolean, constant in com.android.systemui.common.ui.view.LongPressHandlingViewInteractionHandler
116 if (!isAttachedToWindow()) { in dispatchLongPress()
128 if (!isAttachedToWindow()) { in dispatchSingleTap()
DLongPressHandlingView.kt79 isAttachedToWindow = ::isAttachedToWindow, in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/clipboardoverlay/
DClipboardOverlayWindow.java115 if (decorView != null && decorView.isAttachedToWindow()) { in remove()
126 if (decorView.isAttachedToWindow()) { in withWindowAttached()
147 if (decorView.isAttachedToWindow()) { in attach()
170 if (decorView != null && decorView.isAttachedToWindow()) { in setWindowFocusable()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/common/ui/view/
DLongPressHandlingViewInteractionHandlerTest.kt53 private var isAttachedToWindow: Boolean = true in <lambda>() variable in com.android.systemui.common.ui.view.LongPressHandlingViewInteractionHandlerTest
67 isAttachedToWindow = { isAttachedToWindow }, in <lambda>()
111 isAttachedToWindow = false in <lambda>()
/frameworks/base/packages/SystemUI/animation/src/com/android/systemui/animation/
DViewRootSync.kt19 !view.isAttachedToWindow || in synchronizeNextDraw()
21 !otherView.isAttachedToWindow || in synchronizeNextDraw()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/touch/
DTouchInsetManagerTest.java71 when(view.isAttachedToWindow()).thenReturn(false); in testViewOnAttachedHandling()
83 when(view.isAttachedToWindow()).thenReturn(true); in testViewOnAttachedHandling()
101 when(view.isAttachedToWindow()).thenReturn(true); in testViewOnDetachedHandling()
112 when(view.isAttachedToWindow()).thenReturn(false); in testViewOnDetachedHandling()
241 when(view.isAttachedToWindow()).thenReturn(true); in createView()
/frameworks/base/core/java/android/view/
DViewRootRectTracker.java58 if (v == null || !v.isAttachedToWindow() || !v.isAggregatedVisible()) { in updateRectsForView()
69 if (!found && view.isAttachedToWindow()) { in updateRectsForView()
175 if (view == null || !view.isAttachedToWindow() in update()
/frameworks/layoutlib/validator/src/com/android/tools/idea/validator/
DLayoutValidator.java107 if (!sPaused && view.isAttachedToWindow()) { in validate()
132 if (!sPaused && view.isAttachedToWindow()) { in buildHierarchy()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DAdminSecondaryLockScreenController.java73 if (mView.isAttachedToWindow() && mClient != null) {
181 if (!mView.isAttachedToWindow()) { in show()
199 if (mView.isAttachedToWindow()) { in hide()
230 if (mView.isAttachedToWindow() && userId == mSelectedUserInteractor.getSelectedUserId()) { in dismiss()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/navigationbar/buttons/
DNearestTouchFrameTest.java117 when(left.isAttachedToWindow()).thenReturn(false); in testNearestView_DetachedViewsExcluded()
199 when(view.isAttachedToWindow()).thenReturn(false); in testViewNotAttachedNoCrash()
214 when(view2.isAttachedToWindow()).thenReturn(false); in testViewMiddleChildNotAttachedCrash()
268 when(v.isAttachedToWindow()).thenReturn(true); in mockViewAt()
/frameworks/base/packages/SystemUI/src/com/android/systemui/navigationbar/buttons/
DNearestTouchFrame.java110 .filter(View::isAttachedToWindow)
117 if (!child.isAttachedToWindow()) {
214 .filter(View::isAttachedToWindow)
DContextualButtonGroup.java138 pw.println(" attached(): " + (view != null && view.isAttachedToWindow())); in dump()
145 + " attached=" + (view != null && view.isAttachedToWindow()) in dump()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/
DWallpaperControllerTest.kt66 `when`(root.isAttachedToWindow).thenReturn(true) in setup()
118 `when`(root.isAttachedToWindow).thenReturn(false) in setNotificationZoom_invalidWindow_doesNotSetZoom()
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/navigationbar/
DRegionSamplingHelper.java192 && (mSampledView.isAttachedToWindow() || mFirstSamplingAfterStart); in updateSamplingListener()
304 pw.println(prefix + "\tsampleView isAttached: " + mSampledView.isAttachedToWindow());
305 pw.println(prefix + "\tsampleView isScValid: " + (mSampledView.isAttachedToWindow()
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/recents/utilities/
DViewRippler.java50 if (!mRoot.isAttachedToWindow()) return;
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/compose/
DComposeInitializerTest.kt38 assertThat(root.isAttachedToWindow).isTrue() in testCanAddComposeViewInInitializedWindow()
/frameworks/base/core/java/android/view/accessibility/
DAccessibilityRequestPreparer.java68 if (!view.isAttachedToWindow()) { in AccessibilityRequestPreparer()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/
DQuickStatusBarHeaderControllerTest.kt51 `when`(view.isAttachedToWindow).thenReturn(true) in setUp()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DTrustedOverlayTests.java115 if (rootView.isAttachedToWindow()) { in setSpyWindowDoesntCrash()
160 if (rootView.isAttachedToWindow()) { in testTrustedOverlayChildHelper()
/frameworks/base/packages/SystemUI/animation/src/com/android/systemui/animation/back/
DOnBackAnimationCallbackExtension.kt100 if (isAttachedToWindow) { in registerOnBackInvokedCallbackOnViewAttached()
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/
DScreenshotViewProxy.kt39 val isAttachedToWindow: Boolean constant
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/
DAuthContainerView.java604 if (!v.isAttachedToWindow()) { in getJankListener()
614 if (!v.isAttachedToWindow()) { in getJankListener()
623 if (!v.isAttachedToWindow()) { in getJankListener()
772 if (mCredentialView != null && mCredentialView.isAttachedToWindow()) {
885 if (isAttachedToWindow() && getRootWindowInsets().isVisible(WindowInsets.Type.ime())) {
944 if (isAttachedToWindow()) {
998 pw.println(" isAttachedToWindow=" + isAttachedToWindow());

123456