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 syntax = "proto2"; 18 19 import "frameworks/base/core/proto/android/graphics/point.proto"; 20 import "frameworks/base/core/proto/android/view/remote_animation_target.proto"; 21 import "frameworks/base/core/proto/android/privacy.proto"; 22 23 package com.android.server.wm; 24 option java_multiple_files = true; 25 26 message 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 */ 34 message RemoteAnimationAdapterWrapperProto { 35 option (.android.msg_privacy).dest = DEST_AUTOMATIC; 36 37 optional .android.view.RemoteAnimationTargetProto target = 1; 38 } 39 40 /* represents LocalAnimationAdapter */ 41 message LocalAnimationAdapterProto { 42 option (.android.msg_privacy).dest = DEST_AUTOMATIC; 43 44 optional AnimationSpecProto animation_spec = 1; 45 } 46 47 message 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 */ 56 message WindowAnimationSpecProto { 57 option (.android.msg_privacy).dest = DEST_AUTOMATIC; 58 59 optional string animation = 1; 60 } 61 62 /* represents MoveAnimationSpec*/ 63 message 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_ms = 3; 69 } 70 71 /* represents AlphaAnimationSpec */ 72 message AlphaAnimationSpecProto { 73 option (.android.msg_privacy).dest = DEST_AUTOMATIC; 74 75 optional float from = 1; 76 optional float to = 2; 77 optional int64 duration_ms = 3; 78 } 79