xref: /aosp_15_r20/external/perfetto/protos/perfetto/trace/android/server/animationadapter.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/graphics/point.proto";
20import "protos/perfetto/trace/android/view/remote_animation_target.proto";
21
22package perfetto.protos;
23
24message AnimationAdapterProto {
25  optional LocalAnimationAdapterProto local = 1;
26  optional RemoteAnimationAdapterWrapperProto remote = 2;
27}
28
29// represents RemoteAnimationAdapterWrapper
30message RemoteAnimationAdapterWrapperProto {
31  optional RemoteAnimationTargetProto target = 1;
32}
33
34// represents LocalAnimationAdapter
35message LocalAnimationAdapterProto {
36  optional AnimationSpecProto animation_spec = 1;
37}
38
39message AnimationSpecProto {
40  optional WindowAnimationSpecProto window = 1;
41  optional MoveAnimationSpecProto move = 2;
42  optional AlphaAnimationSpecProto alpha = 3;
43  optional RotationAnimationSpecProto rotate = 4;
44}
45
46// represents WindowAnimationSpec
47message WindowAnimationSpecProto {
48  optional string animation = 1;
49}
50
51// represents MoveAnimationSpec
52message MoveAnimationSpecProto {
53  optional PointProto from = 1;
54  optional PointProto to = 2;
55  optional int64 duration_ms = 3;
56}
57
58// represents AlphaAnimationSpec
59message AlphaAnimationSpecProto {
60  optional float from = 1;
61  optional float to = 2;
62  optional int64 duration_ms = 3;
63}
64
65// represents RotationAnimationSpec
66message RotationAnimationSpecProto {
67  optional float start_luma = 1;
68  optional float end_luma = 2;
69  optional int64 duration_ms = 3;
70}
71