blob: 3780bc5833cbf0e2cd283c736b3c471fa86a0287 [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;
26 IMAGE = 3;
27 }
28 required Type type = 1;
29 optional string name = 2; // keep this short
30 optional int64 id = 3;
31 optional int64 checksum = 4;
32}
33
34message CheckedMessage {
35 required bytes payload = 1;
36 required int64 checksum = 2;
37}
38
39message Journal {
40 required int32 app_version = 1;
41 required int64 t = 2;
42 optional int64 bytes = 3;
43 optional int32 rows = 4;
44 repeated Key key = 5;
45}
46
47message Favorite {
48 required int64 id = 1;
49 required int32 itemType = 2;
50 optional string title = 3;
51 optional int32 container = 4;
52 optional int32 screen = 5;
53 optional int32 cellX = 6;
54 optional int32 cellY = 7;
55 optional int32 spanX = 8;
56 optional int32 spanY = 9;
57 optional int32 displayMode = 10;
58 optional int32 appWidgetId = 11;
59 optional string appWidgetProvider = 12;
60 optional string intent = 13;
61 optional string uri = 14;
62 optional int32 iconType = 15;
63 optional string iconPackage = 16;
64 optional string iconResource = 17;
65 optional bytes icon = 18;
66 }
67
68message Screen {
69 required int64 id = 1;
70 optional int32 rank = 2;
71 }
72
73message Resource {
74 required int32 dpi = 2;
75 required bytes data = 3;
76 }