Sunny Goyal | 25972b1 | 2022-07-06 15:39:50 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2022 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 | package com.android.launcher3.view; |
| 20 | |
| 21 | option java_outer_classname = "ViewCaptureData"; |
| 22 | |
| 23 | message ExportedData { |
| 24 | |
| 25 | repeated FrameData frameData = 1; |
Sunny Goyal | c9c81ef | 2022-08-17 10:02:27 -0700 | [diff] [blame] | 26 | repeated string classname = 2; |
Sunny Goyal | 25972b1 | 2022-07-06 15:39:50 -0700 | [diff] [blame] | 27 | } |
| 28 | |
| 29 | message FrameData { |
| 30 | optional int64 timestamp = 1; |
| 31 | optional ViewNode node = 2; |
| 32 | } |
| 33 | |
| 34 | message ViewNode { |
Sunny Goyal | c9c81ef | 2022-08-17 10:02:27 -0700 | [diff] [blame] | 35 | optional int32 classname_index = 1; |
| 36 | optional int32 hashcode = 2; |
Sunny Goyal | 25972b1 | 2022-07-06 15:39:50 -0700 | [diff] [blame] | 37 | |
Sunny Goyal | c9c81ef | 2022-08-17 10:02:27 -0700 | [diff] [blame] | 38 | repeated ViewNode children = 3; |
Sunny Goyal | 25972b1 | 2022-07-06 15:39:50 -0700 | [diff] [blame] | 39 | |
Sunny Goyal | c9c81ef | 2022-08-17 10:02:27 -0700 | [diff] [blame] | 40 | optional string id = 4; |
| 41 | optional int32 left = 5; |
| 42 | optional int32 top = 6; |
| 43 | optional int32 width = 7; |
| 44 | optional int32 height = 8; |
| 45 | optional int32 scrollX = 9; |
| 46 | optional int32 scrollY = 10; |
Sunny Goyal | 25972b1 | 2022-07-06 15:39:50 -0700 | [diff] [blame] | 47 | |
Sunny Goyal | c9c81ef | 2022-08-17 10:02:27 -0700 | [diff] [blame] | 48 | optional float translationX = 11; |
| 49 | optional float translationY = 12; |
| 50 | optional float scaleX = 13 [default = 1]; |
| 51 | optional float scaleY = 14 [default = 1]; |
| 52 | optional float alpha = 15 [default = 1]; |
Stefan Andonian | 608cd69 | 2022-08-15 22:12:47 +0000 | [diff] [blame] | 53 | |
Sunny Goyal | c9c81ef | 2022-08-17 10:02:27 -0700 | [diff] [blame] | 54 | optional bool willNotDraw = 16; |
| 55 | optional bool clipChildren = 17; |
| 56 | optional int32 visibility = 18; |
| 57 | |
| 58 | optional float elevation = 19; |
Sunny Goyal | 25972b1 | 2022-07-06 15:39:50 -0700 | [diff] [blame] | 59 | } |