diff options
| author | 2023-09-25 17:57:35 +0000 | |
|---|---|---|
| committer | 2023-09-25 18:40:46 +0000 | |
| commit | da151e65ec1896502a418dcbe13631f4f5ebe1f3 (patch) | |
| tree | dd73fcb058f3b8cf7a29a5e5943ed944ffede223 | |
| parent | df6dfe635f9cd997b5e5c17467bc9d54d32491b2 (diff) | |
Restore the pretty printed transition type in generated class
And make it so that it never gets overriden again.
Bug: 301973843
Test: N/A
Change-Id: Ib40f16f5e3d6dcf1031435d91d5d61069a8b071e
| -rw-r--r-- | core/java/android/window/TransitionRequestInfo.java | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/core/java/android/window/TransitionRequestInfo.java b/core/java/android/window/TransitionRequestInfo.java index 9b10a7ff5d12..932608a3b57b 100644 --- a/core/java/android/window/TransitionRequestInfo.java +++ b/core/java/android/window/TransitionRequestInfo.java @@ -16,6 +16,8 @@ package android.window; +import static android.view.WindowManager.transitTypeToString; + import android.annotation.Nullable; import android.app.ActivityManager; import android.app.WindowConfiguration; @@ -88,6 +90,11 @@ public final class TransitionRequestInfo implements Parcelable { this(type, triggerTask, null /* pipTask */, remoteTransition, displayChange, flags); } + /** @hide */ + String typeToString() { + return transitTypeToString(mType); + } + /** Requested change to a display. */ @DataClass(genToString = true, genSetters = true, genBuilder = false, genConstructor = false) public static class DisplayChange implements Parcelable { @@ -263,7 +270,7 @@ public final class TransitionRequestInfo implements Parcelable { }; @DataClass.Generated( - time = 1693425051905L, + time = 1695667226050L, codegenVersion = "1.0.23", sourceFile = "frameworks/base/core/java/android/window/TransitionRequestInfo.java", inputSignatures = "private final int mDisplayId\nprivate @android.annotation.Nullable android.graphics.Rect mStartAbsBounds\nprivate @android.annotation.Nullable android.graphics.Rect mEndAbsBounds\nprivate int mStartRotation\nprivate int mEndRotation\nprivate boolean mPhysicalDisplayChanged\nclass DisplayChange extends java.lang.Object implements [android.os.Parcelable]\n@com.android.internal.util.DataClass(genToString=true, genSetters=true, genBuilder=false, genConstructor=false)") @@ -298,11 +305,11 @@ public final class TransitionRequestInfo implements Parcelable { * @param type * The type of the transition being requested. * @param triggerTask - * If non-null, If non-null, the task containing the activity whose lifecycle change (start or + * If non-null, the task containing the activity whose lifecycle change (start or * finish) has caused this transition to occur. * @param pipTask - * If non-null, If non-null, the task containing the activity whose lifecycle change (start or - * finish) has caused this transition to occur. + * If non-null, the task containing the pip activity that participates in this + * transition. * @param remoteTransition * If non-null, a remote-transition associated with the source of this transition. * @param displayChange @@ -431,7 +438,7 @@ public final class TransitionRequestInfo implements Parcelable { // String fieldNameToString() { ... } return "TransitionRequestInfo { " + - "type = " + mType + ", " + + "type = " + typeToString() + ", " + "triggerTask = " + mTriggerTask + ", " + "pipTask = " + mPipTask + ", " + "remoteTransition = " + mRemoteTransition + ", " + @@ -506,10 +513,10 @@ public final class TransitionRequestInfo implements Parcelable { }; @DataClass.Generated( - time = 1693425051928L, + time = 1695667226088L, codegenVersion = "1.0.23", sourceFile = "frameworks/base/core/java/android/window/TransitionRequestInfo.java", - inputSignatures = "private final @android.view.WindowManager.TransitionType int mType\nprivate @android.annotation.Nullable android.app.ActivityManager.RunningTaskInfo mTriggerTask\nprivate @android.annotation.Nullable android.app.ActivityManager.RunningTaskInfo mPipTask\nprivate @android.annotation.Nullable android.window.RemoteTransition mRemoteTransition\nprivate @android.annotation.Nullable android.window.TransitionRequestInfo.DisplayChange mDisplayChange\nprivate final int mFlags\nclass TransitionRequestInfo extends java.lang.Object implements [android.os.Parcelable]\n@com.android.internal.util.DataClass(genToString=true, genSetters=true, genAidl=true)") + inputSignatures = "private final @android.view.WindowManager.TransitionType int mType\nprivate @android.annotation.Nullable android.app.ActivityManager.RunningTaskInfo mTriggerTask\nprivate @android.annotation.Nullable android.app.ActivityManager.RunningTaskInfo mPipTask\nprivate @android.annotation.Nullable android.window.RemoteTransition mRemoteTransition\nprivate @android.annotation.Nullable android.window.TransitionRequestInfo.DisplayChange mDisplayChange\nprivate final int mFlags\n java.lang.String typeToString()\nclass TransitionRequestInfo extends java.lang.Object implements [android.os.Parcelable]\n@com.android.internal.util.DataClass(genToString=true, genSetters=true, genAidl=true)") @Deprecated private void __metadata() {} |