Loading core/java/android/view/DragEvent.java +2 −1 Original line number Diff line number Diff line Loading @@ -619,10 +619,11 @@ public class DragEvent implements Parcelable { } if (in.readInt() != 0) { event.mDragSurface = SurfaceControl.CREATOR.createFromParcel(in); event.mDragSurface.setUnreleasedWarningCallSite("DragEvent"); } if (in.readInt() != 0) { event.mDragAndDropPermissions = IDragAndDropPermissions.Stub.asInterface(in.readStrongBinder());; IDragAndDropPermissions.Stub.asInterface(in.readStrongBinder()); } return event; } Loading core/java/android/view/RemoteAnimationTarget.java +6 −0 Original line number Diff line number Diff line Loading @@ -296,6 +296,9 @@ public class RemoteAnimationTarget implements Parcelable { taskId = in.readInt(); mode = in.readInt(); leash = in.readTypedObject(SurfaceControl.CREATOR); if (leash != null) { leash.setUnreleasedWarningCallSite("RemoteAnimationTarget[leash]"); } isTranslucent = in.readBoolean(); clipRect = in.readTypedObject(Rect.CREATOR); contentInsets = in.readTypedObject(Rect.CREATOR); Loading @@ -307,6 +310,9 @@ public class RemoteAnimationTarget implements Parcelable { windowConfiguration = in.readTypedObject(WindowConfiguration.CREATOR); isNotInRecents = in.readBoolean(); startLeash = in.readTypedObject(SurfaceControl.CREATOR); if (startLeash != null) { startLeash.setUnreleasedWarningCallSite("RemoteAnimationTarget[startLeash]"); } startBounds = in.readTypedObject(Rect.CREATOR); taskInfo = in.readTypedObject(ActivityManager.RunningTaskInfo.CREATOR); allowEnterPip = in.readBoolean(); Loading core/java/android/view/SurfaceControl.java +14 −0 Original line number Diff line number Diff line Loading @@ -1290,6 +1290,20 @@ public final class SurfaceControl implements Parcelable { sDebugUsageAfterRelease = debug; } /** * Provides more information to show about the source of this SurfaceControl if it is finalized * without being released. This is primarily intended for callers to update the call site after * receiving a SurfaceControl from another process, which would otherwise get a generic default * call site. * @hide */ public void setUnreleasedWarningCallSite(@NonNull String callsite) { if (!isValid()) { return; } mCloseGuard.openWithCallSite("release", callsite); } /** * Checks whether two {@link SurfaceControl} objects represent the same surface. * Loading core/java/android/view/SurfaceControlViewHost.java +1 −0 Original line number Diff line number Diff line Loading @@ -170,6 +170,7 @@ public class SurfaceControlViewHost { private SurfacePackage(Parcel in) { mSurfaceControl = new SurfaceControl(); mSurfaceControl.readFromParcel(in); mSurfaceControl.setUnreleasedWarningCallSite("SurfacePackage(Parcel)"); mAccessibilityEmbeddedConnection = IAccessibilityEmbeddedConnection.Stub.asInterface( in.readStrongBinder()); mInputToken = in.readStrongBinder(); Loading core/java/android/window/TransitionInfo.java +1 −0 Original line number Diff line number Diff line Loading @@ -198,6 +198,7 @@ public final class TransitionInfo implements Parcelable { in.readTypedList(mChanges, Change.CREATOR); mRootLeash = new SurfaceControl(); mRootLeash.readFromParcel(in); mRootLeash.setUnreleasedWarningCallSite("TransitionInfo"); mRootOffset.readFromParcel(in); mOptions = in.readTypedObject(AnimationOptions.CREATOR); } Loading Loading
core/java/android/view/DragEvent.java +2 −1 Original line number Diff line number Diff line Loading @@ -619,10 +619,11 @@ public class DragEvent implements Parcelable { } if (in.readInt() != 0) { event.mDragSurface = SurfaceControl.CREATOR.createFromParcel(in); event.mDragSurface.setUnreleasedWarningCallSite("DragEvent"); } if (in.readInt() != 0) { event.mDragAndDropPermissions = IDragAndDropPermissions.Stub.asInterface(in.readStrongBinder());; IDragAndDropPermissions.Stub.asInterface(in.readStrongBinder()); } return event; } Loading
core/java/android/view/RemoteAnimationTarget.java +6 −0 Original line number Diff line number Diff line Loading @@ -296,6 +296,9 @@ public class RemoteAnimationTarget implements Parcelable { taskId = in.readInt(); mode = in.readInt(); leash = in.readTypedObject(SurfaceControl.CREATOR); if (leash != null) { leash.setUnreleasedWarningCallSite("RemoteAnimationTarget[leash]"); } isTranslucent = in.readBoolean(); clipRect = in.readTypedObject(Rect.CREATOR); contentInsets = in.readTypedObject(Rect.CREATOR); Loading @@ -307,6 +310,9 @@ public class RemoteAnimationTarget implements Parcelable { windowConfiguration = in.readTypedObject(WindowConfiguration.CREATOR); isNotInRecents = in.readBoolean(); startLeash = in.readTypedObject(SurfaceControl.CREATOR); if (startLeash != null) { startLeash.setUnreleasedWarningCallSite("RemoteAnimationTarget[startLeash]"); } startBounds = in.readTypedObject(Rect.CREATOR); taskInfo = in.readTypedObject(ActivityManager.RunningTaskInfo.CREATOR); allowEnterPip = in.readBoolean(); Loading
core/java/android/view/SurfaceControl.java +14 −0 Original line number Diff line number Diff line Loading @@ -1290,6 +1290,20 @@ public final class SurfaceControl implements Parcelable { sDebugUsageAfterRelease = debug; } /** * Provides more information to show about the source of this SurfaceControl if it is finalized * without being released. This is primarily intended for callers to update the call site after * receiving a SurfaceControl from another process, which would otherwise get a generic default * call site. * @hide */ public void setUnreleasedWarningCallSite(@NonNull String callsite) { if (!isValid()) { return; } mCloseGuard.openWithCallSite("release", callsite); } /** * Checks whether two {@link SurfaceControl} objects represent the same surface. * Loading
core/java/android/view/SurfaceControlViewHost.java +1 −0 Original line number Diff line number Diff line Loading @@ -170,6 +170,7 @@ public class SurfaceControlViewHost { private SurfacePackage(Parcel in) { mSurfaceControl = new SurfaceControl(); mSurfaceControl.readFromParcel(in); mSurfaceControl.setUnreleasedWarningCallSite("SurfacePackage(Parcel)"); mAccessibilityEmbeddedConnection = IAccessibilityEmbeddedConnection.Stub.asInterface( in.readStrongBinder()); mInputToken = in.readStrongBinder(); Loading
core/java/android/window/TransitionInfo.java +1 −0 Original line number Diff line number Diff line Loading @@ -198,6 +198,7 @@ public final class TransitionInfo implements Parcelable { in.readTypedList(mChanges, Change.CREATOR); mRootLeash = new SurfaceControl(); mRootLeash.readFromParcel(in); mRootLeash.setUnreleasedWarningCallSite("TransitionInfo"); mRootOffset.readFromParcel(in); mOptions = in.readTypedObject(AnimationOptions.CREATOR); } Loading