123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279 |
- /*
- * Copyright (C) 2020 The Android Open Source Project
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http:
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
- syntax = "proto2";
- option java_package = "com.android.launcher3.logger";
- option java_outer_classname = "LauncherAtom";
- message ItemInfo {
- oneof Item {
- Application application = 1;
- Task task = 2;
- Shortcut shortcut = 3;
- Widget widget = 4;
- FolderIcon folder_icon = 9;
- }
-
- optional int32 rank = 5;
-
- optional bool is_work = 6;
-
- optional ContainerInfo container_info = 7;
-
- optional Attribute attribute = 8;
- }
- message ContainerInfo {
- oneof Container {
- WorkspaceContainer workspace = 1;
- HotseatContainer hotseat = 2;
- FolderContainer folder = 3;
- AllAppsContainer all_apps_container = 4;
- WidgetsContainer widgets_container = 5;
- PredictionContainer prediction_container = 6;
- SearchResultContainer search_result_container = 7;
- ShortcutsContainer shortcuts_container = 8;
- SettingsContainer settings_container = 9;
- PredictedHotseatContainer predicted_hotseat_container = 10;
- TaskSwitcherContainer task_switcher_container = 11;
- TaskForegroundContainer task_foreground_container = 12;
- }
- }
- message AllAppsContainer {
- }
- message WidgetsContainer {
- }
- message PredictionContainer {
- }
- message SearchResultContainer {
-
- optional int32 query_length = 1;
-
- oneof ParentContainer {
- WorkspaceContainer workspace = 2;
- AllAppsContainer all_apps_container = 3;
- }
- }
- message ShortcutsContainer {
- }
- message SettingsContainer {
- }
- message TaskSwitcherContainer {}
- message TaskForegroundContainer {}
- enum Attribute {
- UNKNOWN = 0;
- DEFAULT_LAYOUT = 1;
- BACKUP_RESTORE = 2;
- PINITEM = 3;
- ALLAPPS_ATOZ = 4;
- WIDGETS = 5;
- ADD_TO_HOMESCREEN = 6;
- ALLAPPS_PREDICTION = 7;
- HOTSEAT_PREDICTION = 8;
-
- SUGGESTED_LABEL = 9;
-
-
- MANUAL_LABEL = 10;
-
-
- UNLABELED = 11;
-
-
- EMPTY_LABEL = 12;
- }
- message Application {
- optional string package_name = 1;
- optional string component_name = 2;
- }
- message Shortcut {
- optional string shortcut_name = 1;
- }
- message Widget {
- optional int32 span_x = 1 [default = 1];
- optional int32 span_y = 2 [default = 1];
- optional int32 app_widget_id = 3;
- optional string package_name = 4;
- optional string component_name = 5;
- }
- message Task {
- optional string package_name = 1;
- optional string component_name = 2;
- optional int32 index = 3;
- }
- message FolderIcon {
-
- optional int32 cardinality = 1;
-
- optional FromState from_label_state = 2;
-
- optional ToState to_label_state = 3;
-
-
- optional string label_info = 4;
- }
- message WorkspaceContainer {
- optional int32 page_index = 1 [default = -2];
- optional int32 grid_x = 2 [default = -1];
- optional int32 grid_y = 3 [default = -1];
- }
- message HotseatContainer {
- optional int32 index = 1;
- }
- message PredictedHotseatContainer {
- optional int32 index = 1;
-
- optional int32 cardinality = 2;
- }
- message FolderContainer {
- optional int32 page_index = 1 [default = -1];
- optional int32 grid_x = 2 [default = -1];
- optional int32 grid_y = 3 [default = -1];
- oneof ParentContainer {
- WorkspaceContainer workspace = 4;
- HotseatContainer hotseat = 5;
- }
- }
- enum FromState {
-
-
- FROM_STATE_UNSPECIFIED = 0;
-
-
- FROM_EMPTY = 1;
-
-
- FROM_CUSTOM = 2;
-
-
- FROM_SUGGESTED = 3;
- }
- enum ToState {
-
-
-
- TO_STATE_UNSPECIFIED = 0;
-
- UNCHANGED = 1;
-
- TO_SUGGESTION0 = 2;
-
- TO_SUGGESTION1_WITH_VALID_PRIMARY = 3;
-
- TO_SUGGESTION1_WITH_EMPTY_PRIMARY = 4;
-
- TO_SUGGESTION2_WITH_VALID_PRIMARY = 5;
-
- TO_SUGGESTION2_WITH_EMPTY_PRIMARY = 6;
-
- TO_SUGGESTION3_WITH_VALID_PRIMARY = 7;
-
- TO_SUGGESTION3_WITH_EMPTY_PRIMARY = 8;
-
- TO_EMPTY_WITH_VALID_PRIMARY = 9;
-
- TO_EMPTY_WITH_VALID_SUGGESTIONS_AND_EMPTY_PRIMARY = 10;
-
- TO_EMPTY_WITH_EMPTY_SUGGESTIONS = 11;
-
- TO_EMPTY_WITH_SUGGESTIONS_DISABLED = 12;
-
- TO_CUSTOM_WITH_VALID_PRIMARY = 13;
-
- TO_CUSTOM_WITH_VALID_SUGGESTIONS_AND_EMPTY_PRIMARY = 14;
-
- TO_CUSTOM_WITH_EMPTY_SUGGESTIONS = 15;
-
- TO_CUSTOM_WITH_SUGGESTIONS_DISABLED = 16;
- }
|