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.launcher3.tracing; 20 21option java_multiple_files = true; 22 23message LauncherTraceProto { 24 25 optional TouchInteractionServiceProto touch_interaction_service = 1; 26} 27 28message TouchInteractionServiceProto { 29 30 optional bool service_connected = 1; 31 optional OverviewComponentObserverProto overview_component_obvserver = 2; 32 optional InputConsumerProto input_consumer = 3; 33} 34 35message OverviewComponentObserverProto { 36 37 optional bool overview_activity_started = 1; 38 optional bool overview_activity_resumed = 2; 39} 40 41message InputConsumerProto { 42 43 optional string name = 1; 44 optional SwipeHandlerProto swipe_handler = 2; 45} 46 47message SwipeHandlerProto { 48 49 optional GestureStateProto gesture_state = 1; 50 optional bool is_recents_attached_to_app_window = 2; 51 optional int32 scroll_offset = 3; 52 // Swipe up progress from 0 (app) to 1 (overview); can be > 1 if swiping past overview. 53 optional float app_to_overview_progress = 4; 54} 55 56message GestureStateProto { 57 58 optional GestureEndTarget endTarget = 1 [default = UNSET]; 59 60 enum GestureEndTarget { 61 UNSET = 0; 62 HOME = 1; 63 RECENTS = 2; 64 NEW_TASK = 3; 65 LAST_TASK = 4; 66 } 67} 68