Loading AconfigFlags.bp +0 −7 Original line number Original line Diff line number Diff line Loading @@ -99,7 +99,6 @@ aconfig_declarations_group { "framework_graphics_flags_java_lib", "framework_graphics_flags_java_lib", "hwui_flags_java_lib", "hwui_flags_java_lib", "libcore_exported_aconfig_flags_lib", "libcore_exported_aconfig_flags_lib", "libgui_flags_java_lib", "power_flags_lib", "power_flags_lib", "sdk_sandbox_flags_lib", "sdk_sandbox_flags_lib", "surfaceflinger_flags_java_lib", "surfaceflinger_flags_java_lib", Loading Loading @@ -1209,12 +1208,6 @@ java_aconfig_library { defaults: ["framework-minus-apex-aconfig-java-defaults"], defaults: ["framework-minus-apex-aconfig-java-defaults"], } } java_aconfig_library { name: "libgui_flags_java_lib", aconfig_declarations: "libgui_flags", defaults: ["framework-minus-apex-aconfig-java-defaults"], } // Content Capture // Content Capture aconfig_declarations { aconfig_declarations { name: "android.view.contentcapture.flags-aconfig", name: "android.view.contentcapture.flags-aconfig", Loading core/java/android/view/SurfaceControl.java +0 −17 Original line number Original line Diff line number Diff line Loading @@ -164,9 +164,6 @@ public final class SurfaceControl implements Parcelable { float width, float height, float vecX, float vecY, float width, float height, float vecX, float vecY, float maxStretchAmountX, float maxStretchAmountY, float childRelativeLeft, float maxStretchAmountX, float maxStretchAmountY, float childRelativeLeft, float childRelativeTop, float childRelativeRight, float childRelativeBottom); float childRelativeTop, float childRelativeRight, float childRelativeBottom); private static native void nativeSetEdgeExtensionEffect(long transactionObj, long nativeObj, boolean leftEdge, boolean rightEdge, boolean topEdge, boolean bottomEdge); private static native void nativeSetTrustedOverlay(long transactionObj, long nativeObject, private static native void nativeSetTrustedOverlay(long transactionObj, long nativeObject, int isTrustedOverlay); int isTrustedOverlay); private static native void nativeSetDropInputMode( private static native void nativeSetDropInputMode( Loading Loading @@ -3513,19 +3510,6 @@ public final class SurfaceControl implements Parcelable { return this; return this; } } /** * @hide */ public Transaction setEdgeExtensionEffect(SurfaceControl sc, int edge) { checkPreconditions(sc); nativeSetEdgeExtensionEffect( mNativeObject, sc.mNativeObject, (edge & WindowInsets.Side.LEFT) != 0, (edge & WindowInsets.Side.RIGHT) != 0, (edge & WindowInsets.Side.TOP) != 0, (edge & WindowInsets.Side.BOTTOM) != 0); return this; } /** /** * @hide * @hide */ */ Loading Loading @@ -4898,5 +4882,4 @@ public final class SurfaceControl implements Parcelable { public static void notifyShutdown() { public static void notifyShutdown() { nativeNotifyShutdown(); nativeNotifyShutdown(); } } } } core/java/android/view/animation/Animation.java +3 −5 Original line number Original line Diff line number Diff line Loading @@ -28,7 +28,6 @@ import android.os.Handler; import android.os.SystemProperties; import android.os.SystemProperties; import android.util.AttributeSet; import android.util.AttributeSet; import android.util.TypedValue; import android.util.TypedValue; import android.view.WindowInsets; import dalvik.system.CloseGuard; import dalvik.system.CloseGuard; Loading Loading @@ -882,13 +881,12 @@ public abstract class Animation implements Cloneable { } } /** /** * @return the edges to which outsets can be applied to * @return if a window animation has outsets applied to it. * * * @hide * @hide */ */ @WindowInsets.Side.InsetsSide public boolean hasExtension() { public int getExtensionEdges() { return false; return 0x0; } } /** /** Loading core/java/android/view/animation/AnimationSet.java +5 −6 Original line number Original line Diff line number Diff line Loading @@ -21,7 +21,6 @@ import android.content.res.TypedArray; import android.graphics.RectF; import android.graphics.RectF; import android.os.Build; import android.os.Build; import android.util.AttributeSet; import android.util.AttributeSet; import android.view.WindowInsets; import java.util.ArrayList; import java.util.ArrayList; import java.util.List; import java.util.List; Loading Loading @@ -541,12 +540,12 @@ public class AnimationSet extends Animation { /** @hide */ /** @hide */ @Override @Override @WindowInsets.Side.InsetsSide public boolean hasExtension() { public int getExtensionEdges() { int edge = 0x0; for (Animation animation : mAnimations) { for (Animation animation : mAnimations) { edge |= animation.getExtensionEdges(); if (animation.hasExtension()) { return true; } } return edge; } return false; } } } } core/java/android/view/animation/ExtendAnimation.java +3 −19 Original line number Original line Diff line number Diff line Loading @@ -20,7 +20,6 @@ import android.content.Context; import android.content.res.TypedArray; import android.content.res.TypedArray; import android.graphics.Insets; import android.graphics.Insets; import android.util.AttributeSet; import android.util.AttributeSet; import android.view.WindowInsets; /** /** * An animation that controls the outset of an object. * An animation that controls the outset of an object. Loading Loading @@ -51,8 +50,6 @@ public class ExtendAnimation extends Animation { private float mToRightValue; private float mToRightValue; private float mToBottomValue; private float mToBottomValue; private int mExtensionEdges = 0x0; /** /** * Constructor used when an ExtendAnimation is loaded from a resource. * Constructor used when an ExtendAnimation is loaded from a resource. * * Loading Loading @@ -154,22 +151,9 @@ public class ExtendAnimation extends Animation { /** @hide */ /** @hide */ @Override @Override @WindowInsets.Side.InsetsSide public boolean hasExtension() { public int getExtensionEdges() { return mFromInsets.left < 0 || mFromInsets.top < 0 || mFromInsets.right < 0 mExtensionEdges = 0x0; || mFromInsets.bottom < 0; if (mFromLeftValue > 0 || mToLeftValue > 0) { mExtensionEdges |= WindowInsets.Side.LEFT; } if (mFromRightValue > 0 || mToRightValue > 0) { mExtensionEdges |= WindowInsets.Side.RIGHT; } if (mFromTopValue > 0 || mToTopValue > 0) { mExtensionEdges |= WindowInsets.Side.TOP; } if (mFromBottomValue > 0 || mToBottomValue > 0) { mExtensionEdges |= WindowInsets.Side.BOTTOM; } return mExtensionEdges; } } @Override @Override Loading Loading
AconfigFlags.bp +0 −7 Original line number Original line Diff line number Diff line Loading @@ -99,7 +99,6 @@ aconfig_declarations_group { "framework_graphics_flags_java_lib", "framework_graphics_flags_java_lib", "hwui_flags_java_lib", "hwui_flags_java_lib", "libcore_exported_aconfig_flags_lib", "libcore_exported_aconfig_flags_lib", "libgui_flags_java_lib", "power_flags_lib", "power_flags_lib", "sdk_sandbox_flags_lib", "sdk_sandbox_flags_lib", "surfaceflinger_flags_java_lib", "surfaceflinger_flags_java_lib", Loading Loading @@ -1209,12 +1208,6 @@ java_aconfig_library { defaults: ["framework-minus-apex-aconfig-java-defaults"], defaults: ["framework-minus-apex-aconfig-java-defaults"], } } java_aconfig_library { name: "libgui_flags_java_lib", aconfig_declarations: "libgui_flags", defaults: ["framework-minus-apex-aconfig-java-defaults"], } // Content Capture // Content Capture aconfig_declarations { aconfig_declarations { name: "android.view.contentcapture.flags-aconfig", name: "android.view.contentcapture.flags-aconfig", Loading
core/java/android/view/SurfaceControl.java +0 −17 Original line number Original line Diff line number Diff line Loading @@ -164,9 +164,6 @@ public final class SurfaceControl implements Parcelable { float width, float height, float vecX, float vecY, float width, float height, float vecX, float vecY, float maxStretchAmountX, float maxStretchAmountY, float childRelativeLeft, float maxStretchAmountX, float maxStretchAmountY, float childRelativeLeft, float childRelativeTop, float childRelativeRight, float childRelativeBottom); float childRelativeTop, float childRelativeRight, float childRelativeBottom); private static native void nativeSetEdgeExtensionEffect(long transactionObj, long nativeObj, boolean leftEdge, boolean rightEdge, boolean topEdge, boolean bottomEdge); private static native void nativeSetTrustedOverlay(long transactionObj, long nativeObject, private static native void nativeSetTrustedOverlay(long transactionObj, long nativeObject, int isTrustedOverlay); int isTrustedOverlay); private static native void nativeSetDropInputMode( private static native void nativeSetDropInputMode( Loading Loading @@ -3513,19 +3510,6 @@ public final class SurfaceControl implements Parcelable { return this; return this; } } /** * @hide */ public Transaction setEdgeExtensionEffect(SurfaceControl sc, int edge) { checkPreconditions(sc); nativeSetEdgeExtensionEffect( mNativeObject, sc.mNativeObject, (edge & WindowInsets.Side.LEFT) != 0, (edge & WindowInsets.Side.RIGHT) != 0, (edge & WindowInsets.Side.TOP) != 0, (edge & WindowInsets.Side.BOTTOM) != 0); return this; } /** /** * @hide * @hide */ */ Loading Loading @@ -4898,5 +4882,4 @@ public final class SurfaceControl implements Parcelable { public static void notifyShutdown() { public static void notifyShutdown() { nativeNotifyShutdown(); nativeNotifyShutdown(); } } } }
core/java/android/view/animation/Animation.java +3 −5 Original line number Original line Diff line number Diff line Loading @@ -28,7 +28,6 @@ import android.os.Handler; import android.os.SystemProperties; import android.os.SystemProperties; import android.util.AttributeSet; import android.util.AttributeSet; import android.util.TypedValue; import android.util.TypedValue; import android.view.WindowInsets; import dalvik.system.CloseGuard; import dalvik.system.CloseGuard; Loading Loading @@ -882,13 +881,12 @@ public abstract class Animation implements Cloneable { } } /** /** * @return the edges to which outsets can be applied to * @return if a window animation has outsets applied to it. * * * @hide * @hide */ */ @WindowInsets.Side.InsetsSide public boolean hasExtension() { public int getExtensionEdges() { return false; return 0x0; } } /** /** Loading
core/java/android/view/animation/AnimationSet.java +5 −6 Original line number Original line Diff line number Diff line Loading @@ -21,7 +21,6 @@ import android.content.res.TypedArray; import android.graphics.RectF; import android.graphics.RectF; import android.os.Build; import android.os.Build; import android.util.AttributeSet; import android.util.AttributeSet; import android.view.WindowInsets; import java.util.ArrayList; import java.util.ArrayList; import java.util.List; import java.util.List; Loading Loading @@ -541,12 +540,12 @@ public class AnimationSet extends Animation { /** @hide */ /** @hide */ @Override @Override @WindowInsets.Side.InsetsSide public boolean hasExtension() { public int getExtensionEdges() { int edge = 0x0; for (Animation animation : mAnimations) { for (Animation animation : mAnimations) { edge |= animation.getExtensionEdges(); if (animation.hasExtension()) { return true; } } return edge; } return false; } } } }
core/java/android/view/animation/ExtendAnimation.java +3 −19 Original line number Original line Diff line number Diff line Loading @@ -20,7 +20,6 @@ import android.content.Context; import android.content.res.TypedArray; import android.content.res.TypedArray; import android.graphics.Insets; import android.graphics.Insets; import android.util.AttributeSet; import android.util.AttributeSet; import android.view.WindowInsets; /** /** * An animation that controls the outset of an object. * An animation that controls the outset of an object. Loading Loading @@ -51,8 +50,6 @@ public class ExtendAnimation extends Animation { private float mToRightValue; private float mToRightValue; private float mToBottomValue; private float mToBottomValue; private int mExtensionEdges = 0x0; /** /** * Constructor used when an ExtendAnimation is loaded from a resource. * Constructor used when an ExtendAnimation is loaded from a resource. * * Loading Loading @@ -154,22 +151,9 @@ public class ExtendAnimation extends Animation { /** @hide */ /** @hide */ @Override @Override @WindowInsets.Side.InsetsSide public boolean hasExtension() { public int getExtensionEdges() { return mFromInsets.left < 0 || mFromInsets.top < 0 || mFromInsets.right < 0 mExtensionEdges = 0x0; || mFromInsets.bottom < 0; if (mFromLeftValue > 0 || mToLeftValue > 0) { mExtensionEdges |= WindowInsets.Side.LEFT; } if (mFromRightValue > 0 || mToRightValue > 0) { mExtensionEdges |= WindowInsets.Side.RIGHT; } if (mFromTopValue > 0 || mToTopValue > 0) { mExtensionEdges |= WindowInsets.Side.TOP; } if (mFromBottomValue > 0 || mToBottomValue > 0) { mExtensionEdges |= WindowInsets.Side.BOTTOM; } return mExtensionEdges; } } @Override @Override Loading