Home
last modified time | relevance | path

Searched refs:insetsState (Results 1 – 25 of 46) sorted by relevance

12

/frameworks/base/core/tests/coretests/src/android/view/
DSurfaceControlViewHostInsetsTest.java71 final InsetsState insetsState = new InsetsState(); in statusBarState() local
72 insetsState.setDisplayFrame(new Rect(0, 0, 1000, 1000)); in statusBarState()
73 insetsState.getOrCreateSource( in statusBarState()
77 return insetsState; in statusBarState()
95 final InsetsState insetsState = statusBarVisibleState(); in sendInsetsToSurfaceControlViewHost() local
96 sendInsetsSync(insetsState, new Rect(0, 0, 100, 100)); in sendInsetsToSurfaceControlViewHost()
106 final InsetsState insetsState = statusBarVisibleState(); in insetsAreRelativeToFrame() local
107 sendInsetsSync(insetsState, new Rect(0, 0, 100, 100)); in insetsAreRelativeToFrame()
112 sendInsetsSync(insetsState, new Rect(0, 5, 100, 100)); in insetsAreRelativeToFrame()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/
DDisplayInsetsController.java139 private void insetsChanged(InsetsState insetsState) { in insetsChanged() argument
144 mDisplayController.updateDisplayInsets(mDisplayId, insetsState); in insetsChanged()
146 listener.insetsChanged(insetsState); in insetsChanged()
150 private void insetsControlChanged(InsetsState insetsState, in insetsControlChanged() argument
157 listener.insetsControlChanged(insetsState, activeControls); in insetsControlChanged()
224 public void insetsChanged(InsetsState insetsState) throws RemoteException { in insetsChanged() argument
226 PerDisplay.this.insetsChanged(insetsState); in insetsChanged()
231 public void insetsControlChanged(InsetsState insetsState, in insetsControlChanged() argument
234 PerDisplay.this.insetsControlChanged(insetsState, activeControls); in insetsControlChanged()
285 default void insetsChanged(InsetsState insetsState) {} in insetsChanged() argument
[all …]
DDisplayImeController.java247 public void insetsChanged(InsetsState insetsState) { in insetsChanged() argument
248 if (mInsetsState.equals(insetsState)) { in insetsChanged()
253 updateImeVisibility(insetsState.isSourceOrDefaultVisible(InsetsSource.ID_IME, in insetsChanged()
257 final InsetsSource newSource = insetsState.peekSource(InsetsSource.ID_IME); in insetsChanged()
263 mInsetsState.set(insetsState, true /* copySources */); in insetsChanged()
273 public void insetsControlChanged(InsetsState insetsState, in insetsControlChanged() argument
275 insetsChanged(insetsState); in insetsControlChanged()
DDisplayLayout.java361 int displayHeight, DisplayCutout displayCutout, InsetsState insetsState, int uiMode, in computeNonDecorInsets() argument
367 final Insets insets = insetsState.calculateInsets( in computeNonDecorInsets()
368 insetsState.getDisplayFrame(), in computeNonDecorInsets()
/frameworks/base/core/java/android/view/
DWindowRelayoutResult.java52 public final InsetsState insetsState; field in WindowRelayoutResult
86 @NonNull SurfaceControl surfaceControl, @NonNull InsetsState insetsState, in WindowRelayoutResult() argument
91 this.insetsState = requireNonNull(insetsState); in WindowRelayoutResult()
105 insetsState.readFromParcel(in); in readFromParcel()
116 insetsState.writeToParcel(dest, flags); in writeToParcel()
DIDisplayWindowInsetsController.aidl42 void insetsChanged(in InsetsState insetsState); in insetsChanged() argument
47 void insetsControlChanged(in InsetsState insetsState, in InsetsSourceControl[] activeControls); in insetsControlChanged() argument
DIWindow.aidl63 in MergedConfiguration newMergedConfiguration, in InsetsState insetsState, in resized() argument
71 void insetsControlChanged(in InsetsState insetsState, in insetsControlChanged() argument
DIWindowSession.aidl66 out InputChannel outInputChannel, out InsetsState insetsState, in addToDisplay() argument
71 out InputChannel outInputChannel, out InsetsState insetsState, in addToDisplayAsUser() argument
75 in int viewVisibility, in int layerStackId, out InsetsState insetsState, in addToDisplayWithoutInputChannel() argument
94 out InsetsState insetsState, out InsetsSourceControl.Array activeControls, in relayoutLegacy() argument
/frameworks/base/core/tests/benchmarks/src/android/os/
DParcelableBenchmark.java62 final InsetsState insetsState = new InsetsState(); in timeReadWriteInsetsState() local
64 insetsState.addSource(new InsetsSource(i, 1 << i)); in timeReadWriteInsetsState()
67 insetsState.writeToParcel(mParcel, 0); in timeReadWriteInsetsState()
69 insetsState.readFromParcel(mParcel); in timeReadWriteInsetsState()
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/compatui/
DCompatUIWindowManagerTest.java115 final InsetsState insetsState = new InsetsState(); in setUp() local
116 insetsState.setDisplayFrame(new Rect(0, 0, TASK_WIDTH, TASK_HEIGHT)); in setUp()
120 insetsState.addSource(insetsSource); in setUp()
121 mDisplayLayout.setInsets(mContext.getResources(), insetsState); in setUp() local
381 final InsetsState insetsState = new InsetsState(); in testUpdateDisplayLayoutInsets() local
382 insetsState.setDisplayFrame(new Rect(0, 0, 1000, 2000)); in testUpdateDisplayLayoutInsets()
386 insetsState.addSource(insetsSource); in testUpdateDisplayLayoutInsets()
387 displayLayout.setInsets(mContext.getResources(), insetsState); in testUpdateDisplayLayoutInsets() local
528 final InsetsState insetsState = new InsetsState(); in testShouldShowSizeCompatRestartButton() local
529 insetsState.setDisplayFrame(new Rect(0, 0, 1000, TASK_HEIGHT)); in testShouldShowSizeCompatRestartButton()
[all …]
DUserAspectRatioSettingsWindowManagerTest.java123 InsetsState insetsState = new InsetsState(); in setUp() local
124 insetsState.setDisplayFrame(new Rect(0, 0, displayWidth, displayHeight)); in setUp()
128 insetsState.addSource(insetsSource); in setUp()
129 displayLayout.setInsets(mContext.getResources(), insetsState); in setUp() local
344 InsetsState insetsState = new InsetsState(); in testUpdateDisplayLayoutInsets() local
345 insetsState.setDisplayFrame(new Rect(0, 0, 1000, 2000)); in testUpdateDisplayLayoutInsets()
349 insetsState.addSource(insetsSource); in testUpdateDisplayLayoutInsets()
350 displayLayout.setInsets(mContext.getResources(), insetsState); in testUpdateDisplayLayoutInsets() local
/frameworks/base/core/java/android/window/
DWindowMetricsController.java116 final InsetsState insetsState = new InsetsState(); in getWindowInsetsFromServerForDisplay() local
118 displayId, token, insetsState); in getWindowInsetsFromServerForDisplay()
121 insetsState.scale(overrideInvScale); in getWindowInsetsFromServerForDisplay()
123 return insetsState.calculateInsets(bounds, null /* ignoringVisibilityState */, in getWindowInsetsFromServerForDisplay()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/split/
DSplitWindowManager.java114 void init(SplitLayout splitLayout, InsetsState insetsState, boolean isRestoring) { in init() argument
136 mDividerView.setup(splitLayout, this, mViewHost, insetsState); in init()
208 void onInsetsChanged(InsetsState insetsState) { in onInsetsChanged() argument
210 mDividerView.onInsetsChanged(insetsState, true /* animate */); in onInsetsChanged()
DDividerView.java215 SurfaceControlViewHost viewHost, InsetsState insetsState) { in setup() argument
220 onInsetsChanged(insetsState, false /* animate */); in setup()
234 void onInsetsChanged(InsetsState insetsState, boolean animate) { in onInsetsChanged() argument
241 if (!insetsState.isSourceOrDefaultVisible(InsetsSource.ID_IME, WindowInsets.Type.ime())) { in onInsetsChanged()
242 for (int i = insetsState.sourceSize() - 1; i >= 0; i--) { in onInsetsChanged()
243 final InsetsSource source = insetsState.sourceAt(i); in onInsetsChanged()
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/windowdecor/
DDesktopModeWindowDecorViewModelTests.kt383 val insetsState = InsetsState() in testRelayoutRunsWhenStatusBarsInsetsSourceVisibilityChanges() constant
387 insetsState.addSource(statusBarInsetsSource) in testRelayoutRunsWhenStatusBarsInsetsSourceVisibilityChanges()
389 desktopModeOnInsetsChangedListener.insetsChanged(insetsState) in testRelayoutRunsWhenStatusBarsInsetsSourceVisibilityChanges()
404 val insetsState = InsetsState() in testRelayoutDoesNotRunWhenNonStatusBarsInsetsSourceVisibilityChanges() constant
408 insetsState.addSource(navigationBarInsetsSource) in testRelayoutDoesNotRunWhenNonStatusBarsInsetsSourceVisibilityChanges()
410 desktopModeOnInsetsChangedListener.insetsChanged(insetsState) in testRelayoutDoesNotRunWhenNonStatusBarsInsetsSourceVisibilityChanges()
425 val insetsState = InsetsState() in testRelayoutDoesNotRunWhenNonStatusBarsInsetSourceVisibilityDoesNotChange() constant
429 insetsState.addSource(statusBarInsetsSource) in testRelayoutDoesNotRunWhenNonStatusBarsInsetSourceVisibilityDoesNotChange()
431 desktopModeOnInsetsChangedListener.insetsChanged(insetsState) in testRelayoutDoesNotRunWhenNonStatusBarsInsetSourceVisibilityDoesNotChange()
432 desktopModeOnInsetsChangedListener.insetsChanged(insetsState) in testRelayoutDoesNotRunWhenNonStatusBarsInsetSourceVisibilityDoesNotChange()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DTestIWindow.java49 MergedConfiguration mergedConfig, InsetsState insetsState, boolean forceLayout, in resized() argument
55 public void insetsControlChanged(InsetsState insetsState, in insetsControlChanged() argument
DDisplayPolicyLayoutTests.java126 private DisplayFrames createDisplayFrames(InsetsState insetsState) { in createDisplayFrames() argument
132 return new DisplayFrames(insetsState, info, info.displayCutout, roundedCorners, in createDisplayFrames()
/frameworks/base/core/java/com/android/internal/view/
DBaseIWindow.java54 MergedConfiguration mergedConfiguration, InsetsState insetsState, boolean forceLayout, in resized() argument
66 public void insetsControlChanged(InsetsState insetsState, in insetsControlChanged() argument
/frameworks/base/core/java/android/app/servertransaction/
DWindowStateInsetsControlChangeItem.java70 @NonNull InsetsState insetsState, @NonNull InsetsSourceControl.Array activeControls) { in obtain() argument
77 instance.mInsetsState = new InsetsState(insetsState, true /* copySources */); in obtain()
DWindowStateResizeItem.java83 @NonNull MergedConfiguration configuration, @NonNull InsetsState insetsState, in obtain() argument
95 instance.mInsetsState = new InsetsState(insetsState, true /* copySources */); in obtain()
/frameworks/base/services/core/java/com/android/server/wm/
DDisplayFrames.java63 public DisplayFrames(InsetsState insetsState, DisplayInfo info, DisplayCutout cutout, in DisplayFrames() argument
66 mInsetsState = insetsState; in DisplayFrames()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/sysui/
DShellController.java90 public void insetsChanged(InsetsState insetsState) {
91 if (mInsetsState == insetsState) {
99 InsetsSource newSource = insetsState.peekSource(InsetsSource.ID_IME);
111 mInsetsState = insetsState;
/frameworks/layoutlib/bridge/src/android/view/
DWindowManagerImpl.java292 final InsetsState insetsState = new InsetsState(); in computeWindowInsets() local
294 null /* token */, insetsState); in computeWindowInsets() local
298 return insetsState.calculateInsets(getCurrentBounds(mContext), in computeWindowInsets()
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/common/
DDisplayInsetsControllerTest.java195 public void insetsChanged(InsetsState insetsState) { in insetsChanged() argument
200 public void insetsControlChanged(InsetsState insetsState, in insetsControlChanged() argument
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/compatui/
DCompatUIController.java805 public void insetsChanged(InsetsState insetsState) { in insetsChanged() argument
806 if (mInsetsState.equals(insetsState)) { in insetsChanged()
809 mInsetsState.set(insetsState); in insetsChanged()
814 public void insetsControlChanged(InsetsState insetsState, in insetsControlChanged() argument
816 insetsChanged(insetsState); in insetsControlChanged()

12