/frameworks/base/core/tests/coretests/src/android/view/ |
D | SurfaceControlViewHostInsetsTest.java | 71 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/ |
D | DisplayInsetsController.java | 139 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 …]
|
D | DisplayImeController.java | 247 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()
|
D | DisplayLayout.java | 361 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/ |
D | WindowRelayoutResult.java | 52 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()
|
D | IDisplayWindowInsetsController.aidl | 42 void insetsChanged(in InsetsState insetsState); in insetsChanged() argument 47 void insetsControlChanged(in InsetsState insetsState, in InsetsSourceControl[] activeControls); in insetsControlChanged() argument
|
D | IWindow.aidl | 63 in MergedConfiguration newMergedConfiguration, in InsetsState insetsState, in resized() argument 71 void insetsControlChanged(in InsetsState insetsState, in insetsControlChanged() argument
|
D | IWindowSession.aidl | 66 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/ |
D | ParcelableBenchmark.java | 62 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/ |
D | CompatUIWindowManagerTest.java | 115 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 …]
|
D | UserAspectRatioSettingsWindowManagerTest.java | 123 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/ |
D | WindowMetricsController.java | 116 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/ |
D | SplitWindowManager.java | 114 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()
|
D | DividerView.java | 215 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/ |
D | DesktopModeWindowDecorViewModelTests.kt | 383 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/ |
D | TestIWindow.java | 49 MergedConfiguration mergedConfig, InsetsState insetsState, boolean forceLayout, in resized() argument 55 public void insetsControlChanged(InsetsState insetsState, in insetsControlChanged() argument
|
D | DisplayPolicyLayoutTests.java | 126 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/ |
D | BaseIWindow.java | 54 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/ |
D | WindowStateInsetsControlChangeItem.java | 70 @NonNull InsetsState insetsState, @NonNull InsetsSourceControl.Array activeControls) { in obtain() argument 77 instance.mInsetsState = new InsetsState(insetsState, true /* copySources */); in obtain()
|
D | WindowStateResizeItem.java | 83 @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/ |
D | DisplayFrames.java | 63 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/ |
D | ShellController.java | 90 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/ |
D | WindowManagerImpl.java | 292 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/ |
D | DisplayInsetsControllerTest.java | 195 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/ |
D | CompatUIController.java | 805 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()
|