• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
17syntax = "proto2";
18
19package com.android.app.viewcapture.data;
20
21option java_multiple_files = true;
22
23message ExportedData {
24
25  repeated FrameData frameData = 1;
26  repeated string classname = 2;
27}
28
29message FrameData {
30  optional int64 timestamp = 1; // choreographer timestamp in nanoseconds
31  optional ViewNode node = 2;
32}
33
34message ViewNode {
35  optional int32 classname_index = 1;
36  optional int32 hashcode = 2;
37
38  repeated ViewNode children = 3;
39
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;
47
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];
53
54  optional bool willNotDraw = 16;
55  optional bool clipChildren = 17;
56  optional int32 visibility = 18;
57
58  optional float elevation = 19;
59}
60