Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 497e3499 authored by Rob Carr's avatar Rob Carr Committed by Chavi Weingarten
Browse files

Expose AttachedSurfaceControl API

Expose new setChildBoundingInsets API. Discussed in previous CL.

Bug: 263057433
Test: testCropWithChildBoundingInsets
Change-Id: I1a951986c89fa032b52e61145de0cbc6dd1ee6b5
parent bcb1addc
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -49296,6 +49296,7 @@ package android.view {
    method @Nullable public android.view.SurfaceControl.Transaction buildReparentTransaction(@NonNull android.view.SurfaceControl);
    method public default int getBufferTransformHint();
    method public default void removeOnBufferTransformHintChangedListener(@NonNull android.view.AttachedSurfaceControl.OnBufferTransformHintChangedListener);
    method public default void setChildBoundingInsets(@NonNull android.graphics.Rect);
    method public default void setTouchableRegion(@Nullable android.graphics.Region);
  }
+2 −2
Original line number Diff line number Diff line
@@ -156,14 +156,14 @@ public interface AttachedSurfaceControl {
     * AttachedSurfaceControl. This includes SurfaceView, and an example usage may
     * be to ensure that SurfaceView with {@link android.view.SurfaceView#setZOrderOnTop}
     * are cropped to a region not including the app bar.
     *
     * <p>
     * This cropped is expressed in terms of insets in window-space. Negative insets
     * are considered invalid and will produce an exception. Insets of zero will produce
     * the same result as if this function had never been called.
     *
     * @param insets The insets in each direction by which to bound the children
     *               expressed in window-space.
     * @hide
     * @throws IllegalArgumentException If negative insets are provided.
     */
    default void setChildBoundingInsets(@NonNull Rect insets) {
    }