launcher.proto 2.0 KB

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