Jorim Jaggi | 33a701a | 2017-12-01 14:58:18 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2018 The Android Open Source Project |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License |
| 15 | */ |
| 16 | |
| 17 | package android.view; |
| 18 | |
Kweku Adams | 87c60a0 | 2018-06-13 12:13:52 -0700 | [diff] [blame] | 19 | import static android.view.RemoteAnimationTargetProto.CLIP_RECT; |
| 20 | import static android.view.RemoteAnimationTargetProto.CONTENT_INSETS; |
| 21 | import static android.view.RemoteAnimationTargetProto.IS_TRANSLUCENT; |
| 22 | import static android.view.RemoteAnimationTargetProto.LEASH; |
lumark | 2ec1912 | 2020-01-23 00:09:04 +0800 | [diff] [blame] | 23 | import static android.view.RemoteAnimationTargetProto.LOCAL_BOUNDS; |
Kweku Adams | 87c60a0 | 2018-06-13 12:13:52 -0700 | [diff] [blame] | 24 | import static android.view.RemoteAnimationTargetProto.MODE; |
| 25 | import static android.view.RemoteAnimationTargetProto.POSITION; |
| 26 | import static android.view.RemoteAnimationTargetProto.PREFIX_ORDER_INDEX; |
lumark | 2ec1912 | 2020-01-23 00:09:04 +0800 | [diff] [blame] | 27 | import static android.view.RemoteAnimationTargetProto.SCREEN_SPACE_BOUNDS; |
Kweku Adams | 87c60a0 | 2018-06-13 12:13:52 -0700 | [diff] [blame] | 28 | import static android.view.RemoteAnimationTargetProto.SOURCE_CONTAINER_BOUNDS; |
Evan Rosky | 2289ba1 | 2018-11-19 18:28:18 -0800 | [diff] [blame] | 29 | import static android.view.RemoteAnimationTargetProto.START_BOUNDS; |
| 30 | import static android.view.RemoteAnimationTargetProto.START_LEASH; |
Kweku Adams | 87c60a0 | 2018-06-13 12:13:52 -0700 | [diff] [blame] | 31 | import static android.view.RemoteAnimationTargetProto.TASK_ID; |
| 32 | import static android.view.RemoteAnimationTargetProto.WINDOW_CONFIGURATION; |
Jorim Jaggi | f75d161 | 2018-02-27 15:05:21 +0100 | [diff] [blame] | 33 | |
Jorim Jaggi | 33a701a | 2017-12-01 14:58:18 +0100 | [diff] [blame] | 34 | import android.annotation.IntDef; |
Winson Chung | e2d7217 | 2018-01-25 17:46:20 +0000 | [diff] [blame] | 35 | import android.app.WindowConfiguration; |
Artur Satayev | ad9254c | 2019-12-10 17:47:54 +0000 | [diff] [blame] | 36 | import android.compat.annotation.UnsupportedAppUsage; |
Jorim Jaggi | 33a701a | 2017-12-01 14:58:18 +0100 | [diff] [blame] | 37 | import android.graphics.Point; |
| 38 | import android.graphics.Rect; |
| 39 | import android.os.Parcel; |
| 40 | import android.os.Parcelable; |
Jorim Jaggi | f75d161 | 2018-02-27 15:05:21 +0100 | [diff] [blame] | 41 | import android.util.proto.ProtoOutputStream; |
Jorim Jaggi | 33a701a | 2017-12-01 14:58:18 +0100 | [diff] [blame] | 42 | |
Jorim Jaggi | f75d161 | 2018-02-27 15:05:21 +0100 | [diff] [blame] | 43 | import java.io.PrintWriter; |
Jorim Jaggi | 33a701a | 2017-12-01 14:58:18 +0100 | [diff] [blame] | 44 | import java.lang.annotation.Retention; |
| 45 | import java.lang.annotation.RetentionPolicy; |
| 46 | |
| 47 | /** |
| 48 | * Describes an activity to be animated as part of a remote animation. |
| 49 | * |
| 50 | * @hide |
| 51 | */ |
| 52 | public class RemoteAnimationTarget implements Parcelable { |
| 53 | |
| 54 | /** |
| 55 | * The app is in the set of opening apps of this transition. |
| 56 | */ |
| 57 | public static final int MODE_OPENING = 0; |
| 58 | |
| 59 | /** |
| 60 | * The app is in the set of closing apps of this transition. |
| 61 | */ |
| 62 | public static final int MODE_CLOSING = 1; |
| 63 | |
Evan Rosky | 2289ba1 | 2018-11-19 18:28:18 -0800 | [diff] [blame] | 64 | /** |
| 65 | * The app is in the set of resizing apps (eg. mode change) of this transition. |
| 66 | */ |
| 67 | public static final int MODE_CHANGING = 2; |
| 68 | |
Jorim Jaggi | 33a701a | 2017-12-01 14:58:18 +0100 | [diff] [blame] | 69 | @IntDef(prefix = { "MODE_" }, value = { |
| 70 | MODE_OPENING, |
Evan Rosky | 2289ba1 | 2018-11-19 18:28:18 -0800 | [diff] [blame] | 71 | MODE_CLOSING, |
| 72 | MODE_CHANGING |
Jorim Jaggi | 33a701a | 2017-12-01 14:58:18 +0100 | [diff] [blame] | 73 | }) |
| 74 | @Retention(RetentionPolicy.SOURCE) |
| 75 | public @interface Mode {} |
| 76 | |
| 77 | /** |
| 78 | * The {@link Mode} to describe whether this app is opening or closing. |
| 79 | */ |
Mathew Inwood | a570dee | 2018-08-17 14:56:00 +0100 | [diff] [blame] | 80 | @UnsupportedAppUsage |
Jorim Jaggi | 33a701a | 2017-12-01 14:58:18 +0100 | [diff] [blame] | 81 | public final @Mode int mode; |
| 82 | |
| 83 | /** |
| 84 | * The id of the task this app belongs to. |
| 85 | */ |
Mathew Inwood | a570dee | 2018-08-17 14:56:00 +0100 | [diff] [blame] | 86 | @UnsupportedAppUsage |
Jorim Jaggi | 33a701a | 2017-12-01 14:58:18 +0100 | [diff] [blame] | 87 | public final int taskId; |
| 88 | |
| 89 | /** |
| 90 | * The {@link SurfaceControl} object to actually control the transform of the app. |
| 91 | */ |
Mathew Inwood | a570dee | 2018-08-17 14:56:00 +0100 | [diff] [blame] | 92 | @UnsupportedAppUsage |
Jorim Jaggi | 33a701a | 2017-12-01 14:58:18 +0100 | [diff] [blame] | 93 | public final SurfaceControl leash; |
| 94 | |
| 95 | /** |
Evan Rosky | 2289ba1 | 2018-11-19 18:28:18 -0800 | [diff] [blame] | 96 | * The {@link SurfaceControl} for the starting state of a target if this transition is |
| 97 | * MODE_CHANGING, {@code null)} otherwise. This is relative to the app window. |
| 98 | */ |
| 99 | @UnsupportedAppUsage |
| 100 | public final SurfaceControl startLeash; |
| 101 | |
| 102 | /** |
Jorim Jaggi | 33a701a | 2017-12-01 14:58:18 +0100 | [diff] [blame] | 103 | * Whether the app is translucent and may reveal apps behind. |
| 104 | */ |
Mathew Inwood | a570dee | 2018-08-17 14:56:00 +0100 | [diff] [blame] | 105 | @UnsupportedAppUsage |
Jorim Jaggi | 33a701a | 2017-12-01 14:58:18 +0100 | [diff] [blame] | 106 | public final boolean isTranslucent; |
| 107 | |
| 108 | /** |
| 109 | * The clip rect window manager applies when clipping the app's main surface in screen space |
| 110 | * coordinates. This is just a hint to the animation runner: If running a clip-rect animation, |
| 111 | * anything that extends beyond these bounds will not have any effect. This implies that any |
| 112 | * clip-rect animation should likely stop at these bounds. |
| 113 | */ |
Mathew Inwood | a570dee | 2018-08-17 14:56:00 +0100 | [diff] [blame] | 114 | @UnsupportedAppUsage |
Jorim Jaggi | 33a701a | 2017-12-01 14:58:18 +0100 | [diff] [blame] | 115 | public final Rect clipRect; |
| 116 | |
| 117 | /** |
Winson Chung | 584d652 | 2018-02-07 23:57:38 +0000 | [diff] [blame] | 118 | * The insets of the main app window. |
| 119 | */ |
Mathew Inwood | a570dee | 2018-08-17 14:56:00 +0100 | [diff] [blame] | 120 | @UnsupportedAppUsage |
Winson Chung | 584d652 | 2018-02-07 23:57:38 +0000 | [diff] [blame] | 121 | public final Rect contentInsets; |
| 122 | |
| 123 | /** |
Jorim Jaggi | 33a701a | 2017-12-01 14:58:18 +0100 | [diff] [blame] | 124 | * The index of the element in the tree in prefix order. This should be used for z-layering |
| 125 | * to preserve original z-layer order in the hierarchy tree assuming no "boosting" needs to |
| 126 | * happen. |
| 127 | */ |
Mathew Inwood | a570dee | 2018-08-17 14:56:00 +0100 | [diff] [blame] | 128 | @UnsupportedAppUsage |
Jorim Jaggi | 33a701a | 2017-12-01 14:58:18 +0100 | [diff] [blame] | 129 | public final int prefixOrderIndex; |
| 130 | |
| 131 | /** |
| 132 | * The source position of the app, in screen spaces coordinates. If the position of the leash |
| 133 | * is modified from the controlling app, any animation transform needs to be offset by this |
| 134 | * amount. |
lumark | 2ec1912 | 2020-01-23 00:09:04 +0800 | [diff] [blame] | 135 | * @deprecated Use {@link #localBounds} instead. |
Jorim Jaggi | 33a701a | 2017-12-01 14:58:18 +0100 | [diff] [blame] | 136 | */ |
lumark | 2ec1912 | 2020-01-23 00:09:04 +0800 | [diff] [blame] | 137 | @Deprecated |
Mathew Inwood | a570dee | 2018-08-17 14:56:00 +0100 | [diff] [blame] | 138 | @UnsupportedAppUsage |
Jorim Jaggi | 33a701a | 2017-12-01 14:58:18 +0100 | [diff] [blame] | 139 | public final Point position; |
| 140 | |
| 141 | /** |
lumark | 2ec1912 | 2020-01-23 00:09:04 +0800 | [diff] [blame] | 142 | * Bounds of the target relative to its parent. |
| 143 | * When the app target animating on its parent, we need to use the local coordinates relative to |
| 144 | * its parent with {@code localBounds.left} & {@code localBounds.top} rather than using |
| 145 | * {@code position} in screen coordinates. |
| 146 | */ |
| 147 | public final Rect localBounds; |
| 148 | |
| 149 | /** |
Jorim Jaggi | 33a701a | 2017-12-01 14:58:18 +0100 | [diff] [blame] | 150 | * The bounds of the source container the app lives in, in screen space coordinates. If the crop |
| 151 | * of the leash is modified from the controlling app, it needs to take the source container |
| 152 | * bounds into account when calculating the crop. |
lumark | 2ec1912 | 2020-01-23 00:09:04 +0800 | [diff] [blame] | 153 | * @deprecated Renamed to {@link #screenSpaceBounds} |
Jorim Jaggi | 33a701a | 2017-12-01 14:58:18 +0100 | [diff] [blame] | 154 | */ |
lumark | 2ec1912 | 2020-01-23 00:09:04 +0800 | [diff] [blame] | 155 | @Deprecated |
Mathew Inwood | a570dee | 2018-08-17 14:56:00 +0100 | [diff] [blame] | 156 | @UnsupportedAppUsage |
Jorim Jaggi | 33a701a | 2017-12-01 14:58:18 +0100 | [diff] [blame] | 157 | public final Rect sourceContainerBounds; |
| 158 | |
Winson Chung | e2d7217 | 2018-01-25 17:46:20 +0000 | [diff] [blame] | 159 | /** |
lumark | 2ec1912 | 2020-01-23 00:09:04 +0800 | [diff] [blame] | 160 | * Bounds of the target relative to the screen. If the crop of the leash is modified from the |
| 161 | * controlling app, it needs to take the screen space bounds into account when calculating the |
| 162 | * crop. |
| 163 | */ |
| 164 | public final Rect screenSpaceBounds; |
| 165 | |
| 166 | /** |
Evan Rosky | 2289ba1 | 2018-11-19 18:28:18 -0800 | [diff] [blame] | 167 | * The starting bounds of the source container in screen space coordinates. This is {@code null} |
| 168 | * if the animation target isn't MODE_CHANGING. Since this is the starting bounds, it's size |
| 169 | * should be equivalent to the size of the starting thumbnail. Note that sourceContainerBounds |
| 170 | * is the end bounds of a change transition. |
| 171 | */ |
| 172 | @UnsupportedAppUsage |
| 173 | public final Rect startBounds; |
| 174 | |
| 175 | /** |
Winson Chung | e2d7217 | 2018-01-25 17:46:20 +0000 | [diff] [blame] | 176 | * The window configuration for the target. |
| 177 | */ |
Mathew Inwood | a570dee | 2018-08-17 14:56:00 +0100 | [diff] [blame] | 178 | @UnsupportedAppUsage |
Winson Chung | e2d7217 | 2018-01-25 17:46:20 +0000 | [diff] [blame] | 179 | public final WindowConfiguration windowConfiguration; |
| 180 | |
Vadim Tryshev | 593e956 | 2018-03-08 17:15:45 -0800 | [diff] [blame] | 181 | /** |
| 182 | * Whether the task is not presented in Recents UI. |
| 183 | */ |
Mathew Inwood | a570dee | 2018-08-17 14:56:00 +0100 | [diff] [blame] | 184 | @UnsupportedAppUsage |
Vadim Tryshev | 593e956 | 2018-03-08 17:15:45 -0800 | [diff] [blame] | 185 | public boolean isNotInRecents; |
| 186 | |
Jorim Jaggi | 33a701a | 2017-12-01 14:58:18 +0100 | [diff] [blame] | 187 | public RemoteAnimationTarget(int taskId, int mode, SurfaceControl leash, boolean isTranslucent, |
Winson Chung | 584d652 | 2018-02-07 23:57:38 +0000 | [diff] [blame] | 188 | Rect clipRect, Rect contentInsets, int prefixOrderIndex, Point position, |
lumark | 2ec1912 | 2020-01-23 00:09:04 +0800 | [diff] [blame] | 189 | Rect localBounds, Rect screenSpaceBounds, |
| 190 | WindowConfiguration windowConfig, boolean isNotInRecents, |
Evan Rosky | 2289ba1 | 2018-11-19 18:28:18 -0800 | [diff] [blame] | 191 | SurfaceControl startLeash, Rect startBounds) { |
Jorim Jaggi | 33a701a | 2017-12-01 14:58:18 +0100 | [diff] [blame] | 192 | this.mode = mode; |
| 193 | this.taskId = taskId; |
| 194 | this.leash = leash; |
| 195 | this.isTranslucent = isTranslucent; |
| 196 | this.clipRect = new Rect(clipRect); |
Winson Chung | 584d652 | 2018-02-07 23:57:38 +0000 | [diff] [blame] | 197 | this.contentInsets = new Rect(contentInsets); |
Jorim Jaggi | 33a701a | 2017-12-01 14:58:18 +0100 | [diff] [blame] | 198 | this.prefixOrderIndex = prefixOrderIndex; |
| 199 | this.position = new Point(position); |
lumark | 2ec1912 | 2020-01-23 00:09:04 +0800 | [diff] [blame] | 200 | this.localBounds = new Rect(localBounds); |
| 201 | this.sourceContainerBounds = new Rect(screenSpaceBounds); |
| 202 | this.screenSpaceBounds = new Rect(screenSpaceBounds); |
Winson Chung | e2d7217 | 2018-01-25 17:46:20 +0000 | [diff] [blame] | 203 | this.windowConfiguration = windowConfig; |
Vadim Tryshev | 593e956 | 2018-03-08 17:15:45 -0800 | [diff] [blame] | 204 | this.isNotInRecents = isNotInRecents; |
Evan Rosky | 2289ba1 | 2018-11-19 18:28:18 -0800 | [diff] [blame] | 205 | this.startLeash = startLeash; |
| 206 | this.startBounds = startBounds == null ? null : new Rect(startBounds); |
Jorim Jaggi | 33a701a | 2017-12-01 14:58:18 +0100 | [diff] [blame] | 207 | } |
| 208 | |
| 209 | public RemoteAnimationTarget(Parcel in) { |
| 210 | taskId = in.readInt(); |
| 211 | mode = in.readInt(); |
| 212 | leash = in.readParcelable(null); |
| 213 | isTranslucent = in.readBoolean(); |
| 214 | clipRect = in.readParcelable(null); |
Winson Chung | 584d652 | 2018-02-07 23:57:38 +0000 | [diff] [blame] | 215 | contentInsets = in.readParcelable(null); |
Jorim Jaggi | 33a701a | 2017-12-01 14:58:18 +0100 | [diff] [blame] | 216 | prefixOrderIndex = in.readInt(); |
| 217 | position = in.readParcelable(null); |
lumark | 2ec1912 | 2020-01-23 00:09:04 +0800 | [diff] [blame] | 218 | localBounds = in.readParcelable(null); |
Jorim Jaggi | 33a701a | 2017-12-01 14:58:18 +0100 | [diff] [blame] | 219 | sourceContainerBounds = in.readParcelable(null); |
lumark | 2ec1912 | 2020-01-23 00:09:04 +0800 | [diff] [blame] | 220 | screenSpaceBounds = in.readParcelable(null); |
Winson Chung | e2d7217 | 2018-01-25 17:46:20 +0000 | [diff] [blame] | 221 | windowConfiguration = in.readParcelable(null); |
Vadim Tryshev | 593e956 | 2018-03-08 17:15:45 -0800 | [diff] [blame] | 222 | isNotInRecents = in.readBoolean(); |
Evan Rosky | 2289ba1 | 2018-11-19 18:28:18 -0800 | [diff] [blame] | 223 | startLeash = in.readParcelable(null); |
| 224 | startBounds = in.readParcelable(null); |
Jorim Jaggi | 33a701a | 2017-12-01 14:58:18 +0100 | [diff] [blame] | 225 | } |
| 226 | |
| 227 | @Override |
| 228 | public int describeContents() { |
| 229 | return 0; |
| 230 | } |
| 231 | |
| 232 | @Override |
| 233 | public void writeToParcel(Parcel dest, int flags) { |
| 234 | dest.writeInt(taskId); |
| 235 | dest.writeInt(mode); |
| 236 | dest.writeParcelable(leash, 0 /* flags */); |
| 237 | dest.writeBoolean(isTranslucent); |
| 238 | dest.writeParcelable(clipRect, 0 /* flags */); |
Winson Chung | 584d652 | 2018-02-07 23:57:38 +0000 | [diff] [blame] | 239 | dest.writeParcelable(contentInsets, 0 /* flags */); |
Jorim Jaggi | 33a701a | 2017-12-01 14:58:18 +0100 | [diff] [blame] | 240 | dest.writeInt(prefixOrderIndex); |
| 241 | dest.writeParcelable(position, 0 /* flags */); |
lumark | 2ec1912 | 2020-01-23 00:09:04 +0800 | [diff] [blame] | 242 | dest.writeParcelable(localBounds, 0 /* flags */); |
Jorim Jaggi | 33a701a | 2017-12-01 14:58:18 +0100 | [diff] [blame] | 243 | dest.writeParcelable(sourceContainerBounds, 0 /* flags */); |
lumark | 2ec1912 | 2020-01-23 00:09:04 +0800 | [diff] [blame] | 244 | dest.writeParcelable(screenSpaceBounds, 0 /* flags */); |
Winson Chung | e2d7217 | 2018-01-25 17:46:20 +0000 | [diff] [blame] | 245 | dest.writeParcelable(windowConfiguration, 0 /* flags */); |
Vadim Tryshev | 593e956 | 2018-03-08 17:15:45 -0800 | [diff] [blame] | 246 | dest.writeBoolean(isNotInRecents); |
Evan Rosky | 2289ba1 | 2018-11-19 18:28:18 -0800 | [diff] [blame] | 247 | dest.writeParcelable(startLeash, 0 /* flags */); |
| 248 | dest.writeParcelable(startBounds, 0 /* flags */); |
Jorim Jaggi | 33a701a | 2017-12-01 14:58:18 +0100 | [diff] [blame] | 249 | } |
| 250 | |
Jorim Jaggi | f75d161 | 2018-02-27 15:05:21 +0100 | [diff] [blame] | 251 | public void dump(PrintWriter pw, String prefix) { |
| 252 | pw.print(prefix); pw.print("mode="); pw.print(mode); |
| 253 | pw.print(" taskId="); pw.print(taskId); |
| 254 | pw.print(" isTranslucent="); pw.print(isTranslucent); |
| 255 | pw.print(" clipRect="); clipRect.printShortString(pw); |
| 256 | pw.print(" contentInsets="); contentInsets.printShortString(pw); |
| 257 | pw.print(" prefixOrderIndex="); pw.print(prefixOrderIndex); |
| 258 | pw.print(" position="); position.printShortString(pw); |
| 259 | pw.print(" sourceContainerBounds="); sourceContainerBounds.printShortString(pw); |
lumark | 2ec1912 | 2020-01-23 00:09:04 +0800 | [diff] [blame] | 260 | pw.print(" screenSpaceBounds="); screenSpaceBounds.printShortString(pw); |
| 261 | pw.print(" localBounds="); localBounds.printShortString(pw); |
Jorim Jaggi | f75d161 | 2018-02-27 15:05:21 +0100 | [diff] [blame] | 262 | pw.println(); |
| 263 | pw.print(prefix); pw.print("windowConfiguration="); pw.println(windowConfiguration); |
| 264 | pw.print(prefix); pw.print("leash="); pw.println(leash); |
| 265 | } |
| 266 | |
Jeffrey Huang | cb78285 | 2019-12-05 11:28:11 -0800 | [diff] [blame] | 267 | public void dumpDebug(ProtoOutputStream proto, long fieldId) { |
Jorim Jaggi | f75d161 | 2018-02-27 15:05:21 +0100 | [diff] [blame] | 268 | final long token = proto.start(fieldId); |
| 269 | proto.write(TASK_ID, taskId); |
| 270 | proto.write(MODE, mode); |
Jeffrey Huang | cb78285 | 2019-12-05 11:28:11 -0800 | [diff] [blame] | 271 | leash.dumpDebug(proto, LEASH); |
Jorim Jaggi | f75d161 | 2018-02-27 15:05:21 +0100 | [diff] [blame] | 272 | proto.write(IS_TRANSLUCENT, isTranslucent); |
Jeffrey Huang | cb78285 | 2019-12-05 11:28:11 -0800 | [diff] [blame] | 273 | clipRect.dumpDebug(proto, CLIP_RECT); |
| 274 | contentInsets.dumpDebug(proto, CONTENT_INSETS); |
Jorim Jaggi | f75d161 | 2018-02-27 15:05:21 +0100 | [diff] [blame] | 275 | proto.write(PREFIX_ORDER_INDEX, prefixOrderIndex); |
Jeffrey Huang | cb78285 | 2019-12-05 11:28:11 -0800 | [diff] [blame] | 276 | position.dumpDebug(proto, POSITION); |
| 277 | sourceContainerBounds.dumpDebug(proto, SOURCE_CONTAINER_BOUNDS); |
lumark | 2ec1912 | 2020-01-23 00:09:04 +0800 | [diff] [blame] | 278 | screenSpaceBounds.dumpDebug(proto, SCREEN_SPACE_BOUNDS); |
| 279 | localBounds.dumpDebug(proto, LOCAL_BOUNDS); |
Jeffrey Huang | cb78285 | 2019-12-05 11:28:11 -0800 | [diff] [blame] | 280 | windowConfiguration.dumpDebug(proto, WINDOW_CONFIGURATION); |
Evan Rosky | baca819 | 2019-01-29 18:44:28 -0800 | [diff] [blame] | 281 | if (startLeash != null) { |
Jeffrey Huang | cb78285 | 2019-12-05 11:28:11 -0800 | [diff] [blame] | 282 | startLeash.dumpDebug(proto, START_LEASH); |
Evan Rosky | baca819 | 2019-01-29 18:44:28 -0800 | [diff] [blame] | 283 | } |
| 284 | if (startBounds != null) { |
Jeffrey Huang | cb78285 | 2019-12-05 11:28:11 -0800 | [diff] [blame] | 285 | startBounds.dumpDebug(proto, START_BOUNDS); |
Evan Rosky | baca819 | 2019-01-29 18:44:28 -0800 | [diff] [blame] | 286 | } |
Jorim Jaggi | f75d161 | 2018-02-27 15:05:21 +0100 | [diff] [blame] | 287 | proto.end(token); |
| 288 | } |
| 289 | |
Jeff Sharkey | 9e8f83d | 2019-02-28 12:06:45 -0700 | [diff] [blame] | 290 | public static final @android.annotation.NonNull Creator<RemoteAnimationTarget> CREATOR |
Jorim Jaggi | 33a701a | 2017-12-01 14:58:18 +0100 | [diff] [blame] | 291 | = new Creator<RemoteAnimationTarget>() { |
| 292 | public RemoteAnimationTarget createFromParcel(Parcel in) { |
| 293 | return new RemoteAnimationTarget(in); |
| 294 | } |
| 295 | |
| 296 | public RemoteAnimationTarget[] newArray(int size) { |
| 297 | return new RemoteAnimationTarget[size]; |
| 298 | } |
| 299 | }; |
| 300 | } |