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    BACKGROUND = 0;
36    HOME = 1;
37    OVERVIEW = 2;
38    ALLAPPS = 3;
39}
40
41message LauncherTarget {
42    enum Type {
43        NONE = 0;
44        ITEM_TYPE = 1;
45        CONTROL_TYPE = 2;
46        CONTAINER_TYPE = 3;
47    }
48    enum Item {
49        DEFAULT_ITEM = 0;
50        APP_ICON = 1;
51        SHORTCUT = 2;
52        WIDGET = 3;
53        FOLDER_ICON = 4;
54        DEEPSHORTCUT = 5;
55        SEARCHBOX = 6;
56        EDITTEXT = 7;
57        NOTIFICATION = 8;
58        TASK = 9;
59    }
60    enum Container {
61        DEFAULT_CONTAINER = 0;
62        HOTSEAT = 1;
63        FOLDER = 2;
64        PREDICTION = 3;
65        SEARCHRESULT = 4;
66    }
67    enum Control {
68        DEFAULT_CONTROL = 0;
69        MENU = 1;
70        UNINSTALL = 2;
71        REMOVE = 3;
72    }
73    optional Type type = 1;
74    optional Item item = 2;
75    optional Container container = 3;
76    optional Control control = 4;
77    optional string launch_component = 5;
78    optional int32 page_id = 6;
79    optional int32 grid_x = 7;
80    optional int32 grid_y = 8;
81}
82
83message LauncherExtension {
84    repeated LauncherTarget src_target = 1;
85    repeated LauncherTarget dst_target = 2;
86}
87