1/* 2 * Copyright (C) 2018 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"; 18package android.stats.launcher; 19option java_multiple_files = true; 20 21enum LauncherAction { 22 DEFAULT_ACTION = 0; 23 LAUNCH_APP = 1; 24 LAUNCH_TASK = 2; 25 DISMISS_TASK = 3; 26 LONGPRESS = 4; 27 DRAGDROP = 5; 28 SWIPE_UP = 6; 29 SWIPE_DOWN = 7; 30 SWIPE_LEFT = 8; 31 SWIPE_RIGHT = 9; 32} 33 34enum LauncherState { 35 LAUNCHER_STATE_UNSPECIFIED = 0; 36 BACKGROUND = 1; 37 HOME = 2; 38 OVERVIEW = 3; 39 ALLAPPS = 4; 40 UNCHANGED = 5; 41} 42 43message LauncherTarget { 44 enum Type { 45 NONE = 0; 46 ITEM_TYPE = 1; 47 CONTROL_TYPE = 2; 48 CONTAINER_TYPE = 3; 49 } 50 enum Item { 51 DEFAULT_ITEM = 0; 52 APP_ICON = 1; 53 SHORTCUT = 2; 54 WIDGET = 3; 55 FOLDER_ICON = 4; 56 DEEPSHORTCUT = 5; 57 SEARCHBOX = 6; 58 EDITTEXT = 7; 59 NOTIFICATION = 8; 60 TASK = 9; 61 } 62 enum Container { 63 DEFAULT_CONTAINER = 0; 64 HOTSEAT = 1; 65 FOLDER = 2; 66 PREDICTION = 3; 67 SEARCHRESULT = 4; 68 } 69 enum Control { 70 DEFAULT_CONTROL = 0; 71 MENU = 1; 72 UNINSTALL = 2; 73 REMOVE = 3; 74 } 75 optional Type type = 1; 76 optional Item item = 2; 77 optional Container container = 3; 78 optional Control control = 4; 79 optional string launch_component = 5; 80 optional int32 page_id = 6; 81 optional int32 grid_x = 7; 82 optional int32 grid_y = 8; 83} 84 85message LauncherExtension { 86 repeated LauncherTarget src_target = 1; 87 repeated LauncherTarget dst_target = 2; 88} 89