blob: f363f368207b5455a0636db8059566fd654ad78e [file] [log] [blame]
Sunny Goyal25972b12022-07-06 15:39:50 -07001/*
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
17syntax = "proto2";
18
19package com.android.launcher3.view;
20
21option java_outer_classname = "ViewCaptureData";
22
23message ExportedData {
24
25 repeated FrameData frameData = 1;
Sunny Goyalc9c81ef2022-08-17 10:02:27 -070026 repeated string classname = 2;
Sunny Goyal25972b12022-07-06 15:39:50 -070027}
28
29message FrameData {
30 optional int64 timestamp = 1;
31 optional ViewNode node = 2;
32}
33
34message ViewNode {
Sunny Goyalc9c81ef2022-08-17 10:02:27 -070035 optional int32 classname_index = 1;
36 optional int32 hashcode = 2;
Sunny Goyal25972b12022-07-06 15:39:50 -070037
Sunny Goyalc9c81ef2022-08-17 10:02:27 -070038 repeated ViewNode children = 3;
Sunny Goyal25972b12022-07-06 15:39:50 -070039
Sunny Goyalc9c81ef2022-08-17 10:02:27 -070040 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 Goyal25972b12022-07-06 15:39:50 -070047
Sunny Goyalc9c81ef2022-08-17 10:02:27 -070048 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 Andonian608cd692022-08-15 22:12:47 +000053
Sunny Goyalc9c81ef2022-08-17 10:02:27 -070054 optional bool willNotDraw = 16;
55 optional bool clipChildren = 17;
56 optional int32 visibility = 18;
57
58 optional float elevation = 19;
Sunny Goyal25972b12022-07-06 15:39:50 -070059}