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