Home
last modified time | relevance | path

Searched refs:mInsetsState (Results 1 – 17 of 17) sorted by relevance

/frameworks/base/core/java/android/app/servertransaction/
DWindowStateInsetsControlChangeItem.java42 private InsetsState mInsetsState; field in WindowStateInsetsControlChangeItem
52 window.insetsControlChanged(mInsetsState, mActiveControls); in execute()
77 instance.mInsetsState = new InsetsState(insetsState, true /* copySources */); in obtain()
91 mInsetsState = null; in recycle()
102 dest.writeTypedObject(mInsetsState, flags); in writeToParcel()
109 mInsetsState = in.readTypedObject(InsetsState.CREATOR); in WindowStateInsetsControlChangeItem()
134 return Objects.equals(mInsetsState, other.mInsetsState) in equals()
142 result = 31 * result + Objects.hashCode(mInsetsState); in hashCode()
DWindowStateResizeItem.java47 private InsetsState mInsetsState; field in WindowStateResizeItem
64 window.resized(mFrames, mReportDraw, mConfiguration, mInsetsState, mForceLayout, in execute()
95 instance.mInsetsState = new InsetsState(insetsState, true /* copySources */); in obtain()
114 mInsetsState = null; in recycle()
133 dest.writeTypedObject(mInsetsState, flags); in writeToParcel()
148 mInsetsState = in.readTypedObject(InsetsState.CREATOR); in WindowStateResizeItem()
179 && Objects.equals(mInsetsState, other.mInsetsState) in equals()
195 result = 31 * result + Objects.hashCode(mInsetsState); in hashCode()
/frameworks/base/core/tests/coretests/src/android/view/
DInsetsAnimationControlImplTest.java79 private InsetsState mInsetsState; field in InsetsAnimationControlImplTest
94 mInsetsState = new InsetsState(); in setup()
95 mInsetsState.getOrCreateSource(ID_STATUS_BAR, statusBars()) in setup()
97 mInsetsState.getOrCreateSource(ID_NAVIGATION_BAR, navigationBars()) in setup()
100 WindowInsets.Type.statusBars(), mInsetsState, in setup()
108 WindowInsets.Type.navigationBars(), mInsetsState, in setup()
121 new Rect(0, 0, 500, 500), mInsetsState, mMockListener, systemBars(), in setup()
182 when(mMockController.getState()).thenReturn(mInsetsState); in testFinishing()
184 mController.applyChangeInsets(mInsetsState); in testFinishing()
222 when(mMockController.getState()).thenReturn(mInsetsState); in testFinish_immediately()
[all …]
/frameworks/base/core/tests/coretests/src/android/app/servertransaction/
DClientTransactionItemTest.java84 private InsetsState mInsetsState; field in ClientTransactionItemTest
97 mInsetsState = new InsetsState(); in setup()
159 true /* reportDraw */, mMergedConfiguration, mInsetsState, true /* forceLayout */, in testWindowStateResizeItem_execute()
165 true /* reportDraw */, mMergedConfiguration, mInsetsState, true /* forceLayout */, in testWindowStateResizeItem_execute()
173 mWindow, mInsetsState, mActiveControls); in testWindowStateInsetsControlChangeItem_execute()
176 verify(mWindow).insetsControlChanged(mInsetsState, mActiveControls); in testWindowStateInsetsControlChangeItem_execute()
185 mWindow, mInsetsState, mActiveControls); in testWindowStateInsetsControlChangeItem_executeError()
/frameworks/base/services/core/java/com/android/server/wm/
DDisplayFrames.java45 public final InsetsState mInsetsState; field in DisplayFrames
66 mInsetsState = insetsState; in DisplayFrames()
72 mInsetsState = new InsetsState(); in DisplayFrames()
84 final InsetsState state = mInsetsState; in update()
87 && mInsetsState.getDisplayCutout().equals(displayCutout) in update()
DDisplayPolicy.java1363 displayFrames.mInsetsState, displayFrames.mDisplayCutoutSafe,
1368 final InsetsState state = displayFrames.mInsetsState;
1963 final InsetsState insetsState = df.mInsetsState;
2129 final InsetsState currentInsetsState = mDisplayContent.mDisplayFrames.mInsetsState;
2575 final InsetsState state = displayFrames.mInsetsState;
DWindowToken.java452 ? mFixedRotationTransformState.mDisplayFrames.mInsetsState in getFixedRotationTransformInsetsState()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/
DDisplayLayout.java87 private InsetsState mInsetsState = new InsetsState(); field in DisplayLayout
122 && Objects.equals(mInsetsState, other.mInsetsState); in equals()
130 mNavigationBarCanMove, mReverseDefaultRotation, mInsetsState); in hashCode()
181 mInsetsState.set(dl.mInsetsState, true /* copySources */); in set()
205 mInsetsState = state; in setInsets()
211 computeNonDecorInsets(res, mRotation, mWidth, mHeight, mCutout, mInsetsState, mUiMode, in recalcInsets()
DDisplayImeController.java146 final InsetsSource imeSource = pd.mInsetsState.peekSource(InsetsSource.ID_IME); in isImeShowing()
221 final InsetsState mInsetsState = new InsetsState(); field in DisplayImeController.PerDisplay
248 if (mInsetsState.equals(insetsState)) { in insetsChanged()
260 final InsetsSource oldSource = mInsetsState.peekSource(InsetsSource.ID_IME); in insetsChanged()
263 mInsetsState.set(insetsState, true /* copySources */); in insetsChanged()
410 mInsetsState.setSourceVisible(InsetsSource.ID_IME, visible); in setVisibleDirectly()
441 final var imeSource = mInsetsState.peekSource(InsetsSource.ID_IME); in startAnimation()
460 final InsetsSource imeSource = mInsetsState.peekSource(InsetsSource.ID_IME); in startAnimation()
DDisplayController.java118 return r != null ? r.mInsetsState : null; in getInsetsState()
298 private InsetsState mInsetsState = new InsetsState(); field in DisplayController.DisplayRecord
307 mDisplayLayout.setInsets(mContext.getResources(), mInsetsState); in setDisplayLayout() local
311 mInsetsState = state; in setInsets()
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/windowdecor/
DWindowDecorationTests.java133 private final InsetsState mInsetsState = new InsetsState(); field in WindowDecorationTests
159 mInsetsState.getOrCreateSource(STATUS_BAR_INSET_SOURCE_ID, statusBars()).setVisible(true); in setUp()
160 doReturn(mInsetsState).when(mMockDisplayController).getInsetsState(anyInt()); in setUp()
560 assertTrue(mInsetsState.getOrCreateSource(STATUS_BAR_INSET_SOURCE_ID, statusBars()) in testInsetsAddedWhenCaptionIsVisible()
562 assertTrue(mInsetsState.sourceSize() == 1); in testInsetsAddedWhenCaptionIsVisible()
563 assertTrue(mInsetsState.sourceAt(0).getType() == statusBars()); in testInsetsAddedWhenCaptionIsVisible()
625 mInsetsState.getOrCreateSource(STATUS_BAR_INSET_SOURCE_ID, captionBar()).setVisible(true); in testRelayout_captionHidden_insetsRemoved()
629 mInsetsState.getOrCreateSource(STATUS_BAR_INSET_SOURCE_ID, captionBar()).setVisible(false); in testRelayout_captionHidden_insetsRemoved()
652 mInsetsState.getOrCreateSource(STATUS_BAR_INSET_SOURCE_ID, captionBar()).setVisible(false); in testRelayout_captionHidden_neverWasVisible_insetsNotRemoved()
681 mInsetsState.getOrCreateSource(STATUS_BAR_INSET_SOURCE_ID, captionBar()).setVisible(true); in testClose_withExistingInsets_insetsRemoved()
[all …]
DDesktopModeWindowDecorationTests.java142 private final InsetsState mInsetsState = new InsetsState(); field in DesktopModeWindowDecorationTests
175 doReturn(mInsetsState).when(mMockDisplayController).getInsetsState(anyInt()); in setUp()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/sysui/
DShellController.java87 private InsetsState mInsetsState = new InsetsState();
91 if (mInsetsState == insetsState) {
95 InsetsSource oldSource = mInsetsState.peekSource(InsetsSource.ID_IME);
111 mInsetsState = insetsState;
/frameworks/base/core/java/android/view/
DWindowlessWindowManager.java95 private InsetsState mInsetsState; field in WindowlessWindowManager
467 if (outInsetsState != null && mInsetsState != null) { in relayoutInner()
468 outInsetsState.set(mInsetsState); in relayoutInner()
666 mInsetsState = state; in setInsetsState()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/compatui/
DCompatUIController.java790 final InsetsState mInsetsState = new InsetsState(); field in CompatUIController.PerDisplayOnInsetsChangedListener
806 if (mInsetsState.equals(insetsState)) { in insetsChanged()
809 mInsetsState.set(insetsState); in insetsChanged()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/split/
DSplitLayout.java117 private final InsetsState mInsetsState = new InsetsState(); field in SplitLayout
425 mSplitWindowManager.init(this, mInsetsState, false /* isRestoring */); in init()
456 mSplitWindowManager.init(this, mInsetsState, true /* isRestoring */); in update()
464 mInsetsState.set(insetsState); in insetsChanged()
479 if (!mInsetsState.equals(insetsState)) { in insetsControlChanged()
/frameworks/base/core/java/android/service/wallpaper/
DWallpaperService.java302 final InsetsState mInsetsState = new InsetsState(); field in WallpaperService.Engine
310 mInsetsState, mTempControls)
1260 inputChannel, mInsetsState, mTempControls, new Rect(), in updateSurface()
1287 mSurfaceControl, mInsetsState, mTempControls, mSyncSeqIdBundle); in updateSurface()
1349 final DisplayCutout rawCutout = mInsetsState.getDisplayCutout(); in updateSurface()
1351 visibleFrame.intersect(mInsetsState.getDisplayFrame()); in updateSurface()
1352 WindowInsets windowInsets = mInsetsState.calculateInsets(visibleFrame, in updateSurface()