Jorim Jaggi | f75d161 | 2018-02-27 15:05:21 +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 | syntax = "proto2"; |
Jorim Jaggi | f75d161 | 2018-02-27 15:05:21 +0100 | [diff] [blame] | 18 | option java_multiple_files = true; |
| 19 | |
| 20 | package android.view; |
| 21 | |
| 22 | import "frameworks/base/core/proto/android/app/window_configuration.proto"; |
| 23 | import "frameworks/base/core/proto/android/graphics/point.proto"; |
| 24 | import "frameworks/base/core/proto/android/graphics/rect.proto"; |
| 25 | import "frameworks/base/core/proto/android/view/surfacecontrol.proto"; |
Joe Onorato | 99598ee | 2019-02-11 15:55:13 +0000 | [diff] [blame] | 26 | import "frameworks/base/core/proto/android/privacy.proto"; |
Jorim Jaggi | f75d161 | 2018-02-27 15:05:21 +0100 | [diff] [blame] | 27 | |
Kweku Adams | 87c60a0 | 2018-06-13 12:13:52 -0700 | [diff] [blame] | 28 | /** Proto representation for android.view.RemoteAnimationTarget.java class. */ |
Jorim Jaggi | f75d161 | 2018-02-27 15:05:21 +0100 | [diff] [blame] | 29 | message RemoteAnimationTargetProto { |
Kweku Adams | 21b8d26 | 2018-03-30 12:19:58 -0700 | [diff] [blame] | 30 | option (android.msg_privacy).dest = DEST_AUTOMATIC; |
Jorim Jaggi | f75d161 | 2018-02-27 15:05:21 +0100 | [diff] [blame] | 31 | |
Kweku Adams | 21b8d26 | 2018-03-30 12:19:58 -0700 | [diff] [blame] | 32 | optional int32 task_id = 1; |
| 33 | optional int32 mode = 2; |
| 34 | optional .android.view.SurfaceControlProto leash = 3; |
| 35 | optional bool is_translucent = 4; |
| 36 | optional .android.graphics.RectProto clip_rect = 5; |
Kweku Adams | 87c60a0 | 2018-06-13 12:13:52 -0700 | [diff] [blame] | 37 | optional .android.graphics.RectProto content_insets = 6; |
Kweku Adams | 21b8d26 | 2018-03-30 12:19:58 -0700 | [diff] [blame] | 38 | optional int32 prefix_order_index = 7; |
Kweku Adams | 87c60a0 | 2018-06-13 12:13:52 -0700 | [diff] [blame] | 39 | // The source position of the app, in screen spaces coordinates. If the |
| 40 | // position of the leash is modified from the controlling app, any animation |
| 41 | // transform needs to be offset by this amount. |
Kweku Adams | 21b8d26 | 2018-03-30 12:19:58 -0700 | [diff] [blame] | 42 | optional .android.graphics.PointProto position = 8; |
| 43 | optional .android.graphics.RectProto source_container_bounds = 9; |
| 44 | optional .android.app.WindowConfigurationProto window_configuration = 10; |
Evan Rosky | 2289ba1 | 2018-11-19 18:28:18 -0800 | [diff] [blame] | 45 | optional .android.view.SurfaceControlProto start_leash = 11; |
| 46 | optional .android.graphics.RectProto start_bounds = 12; |
Jorim Jaggi | f75d161 | 2018-02-27 15:05:21 +0100 | [diff] [blame] | 47 | } |