1/* 2 * Copyright (C) 2020 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 */ 16syntax = "proto2"; 17 18option java_package = "com.android.launcher3.logger"; 19option java_outer_classname = "LauncherAtomExtensions"; 20 21 22// Wrapper message for containers used at the quickstep level. 23// Message name should match with launcher_atom_extension.proto message at 24// the AOSP level. 25// Next ID = 3 26message ExtendedContainers { 27 reserved 2; // Deleted fields 28 29 oneof Container{ 30 DeviceSearchResultContainer device_search_result_container = 1; 31 } 32} 33 34// Represents on-device search result container. 35// Next ID = 4 36message DeviceSearchResultContainer{ 37 optional int32 query_length = 1; 38 optional SearchAttributes search_attributes = 2; 39 // [0, m], m varies based on the display density and resolution 40 // To indicate the location of the tapped on-device search result. 41 // For application, it will be the column number in the apps row. 42 optional int32 grid_x = 3; 43 44 // LINT.IfChange 45 // Next ID = 4 46 message SearchAttributes{ 47 48 // True if results are based on spell corrected query 49 optional bool corrected_query = 1; 50 51 // True if the item's title/content is a direct match to the search query, false otherwise. 52 optional bool direct_match = 2; 53 54 // Entry point for this on-device search session 55 optional EntryState entry_state = 3; 56 57 enum EntryState{ 58 ENTRY_STATE_UNKNOWN = 0; 59 60 // User entered using swipe-up gesture from homescreen and searchbox in AllApps drawer. 61 ALL_APPS = 1; 62 63 // User entered by tapping on QSB bar on homescreen. 64 QSB = 2; 65 66 // User entered by swiping up from overview (using Rocket Gesture). 67 OVERVIEW = 3; 68 69 // User entered by tapping the search box in the Taskbar AllApps drawer. 70 TASKBAR = 4; 71 } 72 } 73 // LINT.ThenChange(//quickstep/src/com/android/quickstep/logging/StatsLogCompatManager.java) 74} 75