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 17 package launcher_backup; 18 19 option java_package = "com.android.launcher3.backup"; 20 option java_outer_classname = "BackupProtos"; 21 22 message Key { 23 enum Type { 24 FAVORITE = 1; 25 SCREEN = 2; 26 ICON = 3; 27 WIDGET = 4; 28 } 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 35 message CheckedMessage { 36 required bytes payload = 1; 37 required int64 checksum = 2; 38 } 39 40 message 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 48 message 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 69 message Screen { 70 required int64 id = 1; 71 optional int32 rank = 2; 72 } 73 74 message Resource { 75 required int32 dpi = 1; 76 required bytes data = 2; 77 } 78 79 message 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; 85 } 86