blob: c4ffe8c477aa1fc25f3c95e7dac4cc80cc2b3b27 [file] [log] [blame]
Jorim Jaggif75d1612018-02-27 15:05:21 +01001/*
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 "frameworks/base/core/proto/android/graphics/point.proto";
20import "frameworks/base/core/proto/android/view/remote_animation_target.proto";
21import "frameworks/base/libs/incident/proto/android/privacy.proto";
22
23package com.android.server.wm.proto;
24option java_multiple_files = true;
25
26message AnimationAdapterProto {
27 option (.android.msg_privacy).dest = DEST_AUTOMATIC;
28
29 optional LocalAnimationAdapterProto local = 1;
30 optional RemoteAnimationAdapterWrapperProto remote = 2;
31}
32
33/* represents RemoteAnimationAdapterWrapper */
34message RemoteAnimationAdapterWrapperProto {
35 option (.android.msg_privacy).dest = DEST_AUTOMATIC;
36
37 optional .android.view.RemoteAnimationTargetProto target = 1;
38}
39
40/* represents LocalAnimationAdapter */
41message LocalAnimationAdapterProto {
42 option (.android.msg_privacy).dest = DEST_AUTOMATIC;
43
44 optional AnimationSpecProto animation_spec = 1;
45}
46
47message AnimationSpecProto {
48 option (.android.msg_privacy).dest = DEST_AUTOMATIC;
49
50 optional WindowAnimationSpecProto window = 1;
51 optional MoveAnimationSpecProto move = 2;
52 optional AlphaAnimationSpecProto alpha = 3;
53}
54
55/* represents WindowAnimationSpec */
56message WindowAnimationSpecProto {
57 option (.android.msg_privacy).dest = DEST_AUTOMATIC;
58
59 optional string animation = 1;
60}
61
62/* represents MoveAnimationSpec*/
63message MoveAnimationSpecProto {
64 option (.android.msg_privacy).dest = DEST_AUTOMATIC;
65
66 optional .android.graphics.PointProto from = 1;
67 optional .android.graphics.PointProto to = 2;
68 optional int64 duration = 3;
69}
70
71/* represents AlphaAnimationSpec */
72message AlphaAnimationSpecProto {
73 option (.android.msg_privacy).dest = DEST_AUTOMATIC;
74
75 optional float from = 1;
76 optional float to = 2;
77 optional int64 duration = 3;
78}