xref: /aosp_15_r20/external/perfetto/protos/perfetto/trace/android/view/remote_animation_target.proto (revision 6dbdd20afdafa5e3ca9b8809fa73465d530080dc)
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
17syntax = "proto2";
18
19import "protos/perfetto/trace/android/app/window_configuration.proto";
20import "protos/perfetto/trace/android/graphics/point.proto";
21import "protos/perfetto/trace/android/graphics/rect.proto";
22import "protos/perfetto/trace/android/view/surfacecontrol.proto";
23
24package perfetto.protos;
25
26// Proto representation for android.view.RemoteAnimationTarget.java class
27message RemoteAnimationTargetProto {
28  optional int32 task_id = 1;
29  optional int32 mode = 2;
30  optional SurfaceControlProto leash = 3;
31  optional bool is_translucent = 4;
32  optional RectProto clip_rect = 5;
33  optional RectProto content_insets = 6;
34  optional int32 prefix_order_index = 7;
35  // The source position of the app, in screen spaces coordinates. If the
36  // position of the leash is modified from the controlling app, any animation
37  // transform needs to be offset by this amount.
38  optional PointProto position = 8;
39  optional RectProto source_container_bounds = 9;
40  optional WindowConfigurationProto window_configuration = 10;
41  optional SurfaceControlProto start_leash = 11;
42  optional RectProto start_bounds = 12;
43  optional RectProto local_bounds = 13;
44  optional RectProto screen_space_bounds = 14;
45}
46