backup.proto 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. /*
  2. * Copyright (C) 2013 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. package launcher_backup;
  17. option java_package = "com.android.launcher3.backup";
  18. option java_outer_classname = "BackupProtos";
  19. message Key {
  20. enum Type {
  21. FAVORITE = 1;
  22. SCREEN = 2;
  23. ICON = 3;
  24. WIDGET = 4;
  25. }
  26. required Type type = 1;
  27. optional string name = 2; // keep this short
  28. optional int64 id = 3;
  29. optional int64 checksum = 4;
  30. }
  31. message CheckedMessage {
  32. required bytes payload = 1;
  33. required int64 checksum = 2;
  34. }
  35. message Journal {
  36. required int32 app_version = 1;
  37. required int64 t = 2;
  38. optional int64 bytes = 3;
  39. optional int32 rows = 4;
  40. repeated Key key = 5;
  41. }
  42. message Favorite {
  43. required int64 id = 1;
  44. required int32 itemType = 2;
  45. optional string title = 3;
  46. optional int32 container = 4;
  47. optional int32 screen = 5;
  48. optional int32 cellX = 6;
  49. optional int32 cellY = 7;
  50. optional int32 spanX = 8;
  51. optional int32 spanY = 9;
  52. optional int32 displayMode = 10;
  53. optional int32 appWidgetId = 11;
  54. optional string appWidgetProvider = 12;
  55. optional string intent = 13;
  56. optional string uri = 14;
  57. optional int32 iconType = 15;
  58. optional string iconPackage = 16;
  59. optional string iconResource = 17;
  60. optional bytes icon = 18;
  61. }
  62. message Screen {
  63. required int64 id = 1;
  64. optional int32 rank = 2;
  65. }
  66. message Resource {
  67. required int32 dpi = 1;
  68. required bytes data = 2;
  69. }
  70. message Widget {
  71. required string provider = 1;
  72. optional string label = 2;
  73. optional bool configure = 3;
  74. optional Resource icon = 4;
  75. optional Resource preview = 5;
  76. }