1/* 2 * Copyright (C) 2019 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.systemui.tracing; 20 21option java_multiple_files = true; 22 23message SystemUiTraceProto { 24 25 optional EdgeBackGestureHandlerProto edge_back_gesture_handler = 1; 26} 27 28message EdgeBackGestureHandlerProto { 29 30 optional bool allow_gesture = 1; 31} 32 33/* represents a file full of system ui trace entries. 34 Encoded, it should start with 0x9 0x53 0x59 0x53 0x55 0x49 0x54 0x52 0x43 (.SYSUITRC), such 35 that they can be easily identified. */ 36message SystemUiTraceFileProto { 37 38 /* constant; MAGIC_NUMBER = (long) MAGIC_NUMBER_H << 32 | MagicNumber.MAGIC_NUMBER_L 39 (this is needed because enums have to be 32 bits and there's no nice way to put 64bit 40 constants into .proto files. */ 41 enum MagicNumber { 42 INVALID = 0; 43 MAGIC_NUMBER_L = 0x55535953; /* SYSU (little-endian ASCII) */ 44 MAGIC_NUMBER_H = 0x43525449; /* ITRC (little-endian ASCII) */ 45 } 46 47 optional fixed64 magic_number = 1; /* Must be the first field, set to value in MagicNumber */ 48 repeated SystemUiTraceEntryProto entry = 2; 49} 50 51/* one system ui trace entry. */ 52message SystemUiTraceEntryProto { 53 /* required: elapsed realtime in nanos since boot of when this entry was logged */ 54 optional fixed64 elapsed_realtime_nanos = 1; 55 56 optional SystemUiTraceProto system_ui = 3; 57} 58