Loading core/api/current.txt +2 −2 Original line number Original line Diff line number Diff line Loading @@ -53802,8 +53802,8 @@ package android.view { method @FlaggedApi("com.android.graphics.hwui.flags.limited_hdr") public void setDesiredHdrHeadroom(@FloatRange(from=0.0f, to=10000.0) float); method @FlaggedApi("com.android.graphics.hwui.flags.limited_hdr") public void setDesiredHdrHeadroom(@FloatRange(from=0.0f, to=10000.0) float); method public void setSecure(boolean); method public void setSecure(boolean); method public void setSurfaceLifecycle(int); method public void setSurfaceLifecycle(int); method public void setZOrderMediaOverlay(boolean); method @Deprecated @FlaggedApi("android.view.flags.deprecate_surface_view_z_order_apis") public void setZOrderMediaOverlay(boolean); method public void setZOrderOnTop(boolean); method @Deprecated @FlaggedApi("android.view.flags.deprecate_surface_view_z_order_apis") public void setZOrderOnTop(boolean); field public static final int SURFACE_LIFECYCLE_DEFAULT = 0; // 0x0 field public static final int SURFACE_LIFECYCLE_DEFAULT = 0; // 0x0 field public static final int SURFACE_LIFECYCLE_FOLLOWS_ATTACHMENT = 2; // 0x2 field public static final int SURFACE_LIFECYCLE_FOLLOWS_ATTACHMENT = 2; // 0x2 field public static final int SURFACE_LIFECYCLE_FOLLOWS_VISIBILITY = 1; // 0x1 field public static final int SURFACE_LIFECYCLE_FOLLOWS_VISIBILITY = 1; // 0x1 core/java/android/view/SurfaceView.java +15 −0 Original line number Original line Diff line number Diff line Loading @@ -16,6 +16,7 @@ package android.view; package android.view; import static android.view.flags.Flags.FLAG_DEPRECATE_SURFACE_VIEW_Z_ORDER_APIS; import static android.view.flags.Flags.FLAG_SURFACE_VIEW_GET_SURFACE_PACKAGE; import static android.view.flags.Flags.FLAG_SURFACE_VIEW_GET_SURFACE_PACKAGE; import static android.view.flags.Flags.FLAG_SURFACE_VIEW_SET_COMPOSITION_ORDER; import static android.view.flags.Flags.FLAG_SURFACE_VIEW_SET_COMPOSITION_ORDER; import static android.view.WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON; import static android.view.WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON; Loading Loading @@ -812,7 +813,12 @@ public class SurfaceView extends View implements ViewRootImpl.SurfaceChangedCall * window is attached to the window manager. * window is attached to the window manager. * * * <p>Calling this overrides any previous call to {@link #setZOrderOnTop}. * <p>Calling this overrides any previous call to {@link #setZOrderOnTop}. * * @deprecated Use {@link #setCompositionOrder(int)} instead. It provides more * control over the Z ordering behavior. */ */ @Deprecated @FlaggedApi(FLAG_DEPRECATE_SURFACE_VIEW_Z_ORDER_APIS) public void setZOrderMediaOverlay(boolean isMediaOverlay) { public void setZOrderMediaOverlay(boolean isMediaOverlay) { mRequestedSubLayer = isMediaOverlay mRequestedSubLayer = isMediaOverlay ? APPLICATION_MEDIA_OVERLAY_SUBLAYER : APPLICATION_MEDIA_SUBLAYER; ? APPLICATION_MEDIA_OVERLAY_SUBLAYER : APPLICATION_MEDIA_SUBLAYER; Loading @@ -834,7 +840,12 @@ public class SurfaceView extends View implements ViewRootImpl.SurfaceChangedCall * <p>Calling this overrides any previous call to {@link #setZOrderMediaOverlay}. * <p>Calling this overrides any previous call to {@link #setZOrderMediaOverlay}. * * * @param onTop Whether to show the surface on top of this view's window. * @param onTop Whether to show the surface on top of this view's window. * * @deprecated Use {@link #setCompositionOrder(int)} instead. It provides more * control over the Z ordering behavior. */ */ @Deprecated @FlaggedApi(FLAG_DEPRECATE_SURFACE_VIEW_Z_ORDER_APIS) public void setZOrderOnTop(boolean onTop) { public void setZOrderOnTop(boolean onTop) { // In R and above we allow dynamic layer changes. // In R and above we allow dynamic layer changes. final boolean allowDynamicChange = getContext().getApplicationInfo().targetSdkVersion final boolean allowDynamicChange = getContext().getApplicationInfo().targetSdkVersion Loading Loading @@ -866,7 +877,11 @@ public class SurfaceView extends View implements ViewRootImpl.SurfaceChangedCall * @return Whether the Z ordering changed. * @return Whether the Z ordering changed. * * * @hide * @hide * * @deprecated Use {@link #setCompositionOrder(int)} instead. It provides more control * over the Z ordering behavior. */ */ @Deprecated public boolean setZOrderedOnTop(boolean onTop, boolean allowDynamicChange) { public boolean setZOrderedOnTop(boolean onTop, boolean allowDynamicChange) { final int subLayer; final int subLayer; if (onTop) { if (onTop) { Loading core/java/android/view/flags/view_flags.aconfig +8 −0 Original line number Original line Diff line number Diff line Loading @@ -128,6 +128,14 @@ flag { is_exported: true is_exported: true } } flag { name: "deprecate_surface_view_z_order_apis" namespace: "window_surfaces" description: "Deprecate SurfaceView z order control APIs." bug: "341021569" is_fixed_read_only: true } flag { flag { name: "use_refactored_round_scrollbar" name: "use_refactored_round_scrollbar" namespace: "wear_frameworks" namespace: "wear_frameworks" Loading Loading
core/api/current.txt +2 −2 Original line number Original line Diff line number Diff line Loading @@ -53802,8 +53802,8 @@ package android.view { method @FlaggedApi("com.android.graphics.hwui.flags.limited_hdr") public void setDesiredHdrHeadroom(@FloatRange(from=0.0f, to=10000.0) float); method @FlaggedApi("com.android.graphics.hwui.flags.limited_hdr") public void setDesiredHdrHeadroom(@FloatRange(from=0.0f, to=10000.0) float); method public void setSecure(boolean); method public void setSecure(boolean); method public void setSurfaceLifecycle(int); method public void setSurfaceLifecycle(int); method public void setZOrderMediaOverlay(boolean); method @Deprecated @FlaggedApi("android.view.flags.deprecate_surface_view_z_order_apis") public void setZOrderMediaOverlay(boolean); method public void setZOrderOnTop(boolean); method @Deprecated @FlaggedApi("android.view.flags.deprecate_surface_view_z_order_apis") public void setZOrderOnTop(boolean); field public static final int SURFACE_LIFECYCLE_DEFAULT = 0; // 0x0 field public static final int SURFACE_LIFECYCLE_DEFAULT = 0; // 0x0 field public static final int SURFACE_LIFECYCLE_FOLLOWS_ATTACHMENT = 2; // 0x2 field public static final int SURFACE_LIFECYCLE_FOLLOWS_ATTACHMENT = 2; // 0x2 field public static final int SURFACE_LIFECYCLE_FOLLOWS_VISIBILITY = 1; // 0x1 field public static final int SURFACE_LIFECYCLE_FOLLOWS_VISIBILITY = 1; // 0x1
core/java/android/view/SurfaceView.java +15 −0 Original line number Original line Diff line number Diff line Loading @@ -16,6 +16,7 @@ package android.view; package android.view; import static android.view.flags.Flags.FLAG_DEPRECATE_SURFACE_VIEW_Z_ORDER_APIS; import static android.view.flags.Flags.FLAG_SURFACE_VIEW_GET_SURFACE_PACKAGE; import static android.view.flags.Flags.FLAG_SURFACE_VIEW_GET_SURFACE_PACKAGE; import static android.view.flags.Flags.FLAG_SURFACE_VIEW_SET_COMPOSITION_ORDER; import static android.view.flags.Flags.FLAG_SURFACE_VIEW_SET_COMPOSITION_ORDER; import static android.view.WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON; import static android.view.WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON; Loading Loading @@ -812,7 +813,12 @@ public class SurfaceView extends View implements ViewRootImpl.SurfaceChangedCall * window is attached to the window manager. * window is attached to the window manager. * * * <p>Calling this overrides any previous call to {@link #setZOrderOnTop}. * <p>Calling this overrides any previous call to {@link #setZOrderOnTop}. * * @deprecated Use {@link #setCompositionOrder(int)} instead. It provides more * control over the Z ordering behavior. */ */ @Deprecated @FlaggedApi(FLAG_DEPRECATE_SURFACE_VIEW_Z_ORDER_APIS) public void setZOrderMediaOverlay(boolean isMediaOverlay) { public void setZOrderMediaOverlay(boolean isMediaOverlay) { mRequestedSubLayer = isMediaOverlay mRequestedSubLayer = isMediaOverlay ? APPLICATION_MEDIA_OVERLAY_SUBLAYER : APPLICATION_MEDIA_SUBLAYER; ? APPLICATION_MEDIA_OVERLAY_SUBLAYER : APPLICATION_MEDIA_SUBLAYER; Loading @@ -834,7 +840,12 @@ public class SurfaceView extends View implements ViewRootImpl.SurfaceChangedCall * <p>Calling this overrides any previous call to {@link #setZOrderMediaOverlay}. * <p>Calling this overrides any previous call to {@link #setZOrderMediaOverlay}. * * * @param onTop Whether to show the surface on top of this view's window. * @param onTop Whether to show the surface on top of this view's window. * * @deprecated Use {@link #setCompositionOrder(int)} instead. It provides more * control over the Z ordering behavior. */ */ @Deprecated @FlaggedApi(FLAG_DEPRECATE_SURFACE_VIEW_Z_ORDER_APIS) public void setZOrderOnTop(boolean onTop) { public void setZOrderOnTop(boolean onTop) { // In R and above we allow dynamic layer changes. // In R and above we allow dynamic layer changes. final boolean allowDynamicChange = getContext().getApplicationInfo().targetSdkVersion final boolean allowDynamicChange = getContext().getApplicationInfo().targetSdkVersion Loading Loading @@ -866,7 +877,11 @@ public class SurfaceView extends View implements ViewRootImpl.SurfaceChangedCall * @return Whether the Z ordering changed. * @return Whether the Z ordering changed. * * * @hide * @hide * * @deprecated Use {@link #setCompositionOrder(int)} instead. It provides more control * over the Z ordering behavior. */ */ @Deprecated public boolean setZOrderedOnTop(boolean onTop, boolean allowDynamicChange) { public boolean setZOrderedOnTop(boolean onTop, boolean allowDynamicChange) { final int subLayer; final int subLayer; if (onTop) { if (onTop) { Loading
core/java/android/view/flags/view_flags.aconfig +8 −0 Original line number Original line Diff line number Diff line Loading @@ -128,6 +128,14 @@ flag { is_exported: true is_exported: true } } flag { name: "deprecate_surface_view_z_order_apis" namespace: "window_surfaces" description: "Deprecate SurfaceView z order control APIs." bug: "341021569" is_fixed_read_only: true } flag { flag { name: "use_refactored_round_scrollbar" name: "use_refactored_round_scrollbar" namespace: "wear_frameworks" namespace: "wear_frameworks" Loading