1/* 2 * Copyright (C) 2017 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 17syntax = "proto2"; 18package android.service.appwidget; 19 20option java_multiple_files = true; 21option java_outer_classname = "AppWidgetServiceProto"; 22 23import "frameworks/base/core/proto/android/widget/remoteviews.proto"; 24 25// represents the object holding the dump info of the app widget service 26message AppWidgetServiceDumpProto { 27 repeated WidgetProto widgets = 1; // the array of bound widgets 28} 29 30// represents a bound widget 31message WidgetProto { 32 optional bool isCrossProfile = 1; // true if host and provider belong to diff users 33 optional bool isHostStopped = 2; // true if host has not called startListening yet 34 optional string hostPackage = 3; 35 optional string providerPackage = 4; 36 optional string providerClass = 5; 37 optional int32 minWidth = 6; 38 optional int32 minHeight = 7; 39 optional int32 maxWidth = 8; 40 optional int32 maxHeight = 9; 41 optional bool restoreCompleted = 10; 42 optional int32 views_bitmap_memory = 11; 43} 44 45// represents a set of widget previews for a particular provider 46message GeneratedPreviewsProto { 47 repeated Preview previews = 1; 48 49 // represents a particular RemoteViews preview, which may be set for multiple categories 50 message Preview { 51 repeated int32 widget_categories = 1; 52 optional android.widget.RemoteViewsProto views = 2; 53 } 54}