2 * Copyright (C) 2017 The Android Open Source Project
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
18 option java_package = "com.android.launcher3.model";
19 option java_outer_classname = "LauncherDumpProto";
30 optional Type type = 1;
31 optional int32 page_id = 2;
32 optional int32 grid_x = 3;
33 optional int32 grid_y = 4;
35 // For container types only
36 optional ContainerType container_type = 5;
38 // For item types only
39 optional ItemType item_type = 6;
41 optional string package_name = 7; // All ItemTypes except UNKNOWN type
42 optional string component = 8; // All ItemTypes except UNKNOWN type
43 optional string item_id = 9; // For Pinned Shortcuts and appWidgetId
45 optional int32 span_x = 10 [default = 1];// Used for ItemType.WIDGET
46 optional int32 span_y = 11 [default = 1];// Used for ItemType.WIDGET
47 optional UserType user_type = 12;
50 // Used to define what type of item a Target would represent.
52 UNKNOWN_ITEMTYPE = 0; // Launcher specific items
53 APP_ICON = 1; // Regular app icons
54 WIDGET = 2; // Elements from AppWidgetManager
55 SHORTCUT = 3; // ShortcutManager
58 // Used to define what type of container a Target would represent.
60 UNKNOWN_CONTAINERTYPE = 0;
66 // Used to define what type of control a Target would represent.
73 message LauncherImpression {
74 repeated DumpTarget targets = 1;