Chris Crump | 6293f37 | 2019-12-25 02:00:14 -0500 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2016 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 | |
| 18 | option java_package = "com.aosp.launcher.search"; |
| 19 | option java_outer_classname = "SearchProto"; |
| 20 | |
| 21 | package search; |
| 22 | |
| 23 | message Columns { |
| 24 | optional int32 edgeMargin = 1; |
| 25 | optional int32 innerMargin = 2; |
| 26 | optional int32 iconDistance = 3; |
| 27 | optional int32 height = 4; |
| 28 | } |
| 29 | |
| 30 | message AppIndex { |
| 31 | optional string label = 1; |
| 32 | optional string predictionRank = 2; |
| 33 | optional string iconBitmap = 3; |
| 34 | optional string searchUri = 4; |
| 35 | } |
| 36 | |
| 37 | message SearchBase { |
| 38 | optional int32 bgColor = 1; |
| 39 | optional string iconViewTemplate = 2; |
| 40 | optional string iconLongClick = 3; |
| 41 | optional Columns apps = 4; |
| 42 | optional int32 allAppsCols = 5; |
| 43 | repeated AppIndex index = 6; |
| 44 | optional Columns bounds = 7; |
| 45 | optional string searchTemplate = 8; |
| 46 | optional int32 gIcon = 9; |
| 47 | optional int32 micIcon = 10; |
| 48 | optional string view = 11; |
| 49 | optional Columns viewBounds = 12; |
| 50 | optional bool isAllApps = 13; |
| 51 | optional Columns appsView = 14; |
| 52 | optional bool isDark = 15; |
| 53 | } |
| 54 | |
| 55 | message SearchView { |
| 56 | optional SearchBase base = 1; |
| 57 | } |