IAppWidgetService.aidl revision c39a6e0c51e182338deb8b63d07933b585134929
1/* 2 * Copyright (C) 2008 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 17package com.android.internal.appwidget; 18 19import android.content.ComponentName; 20import android.appwidget.AppWidgetProviderInfo; 21import com.android.internal.appwidget.IAppWidgetHost; 22import android.widget.RemoteViews; 23 24/** {@hide} */ 25interface IAppWidgetService { 26 27 // 28 // for AppWidgetHost 29 // 30 int[] startListening(IAppWidgetHost host, String packageName, int hostId, 31 out List<RemoteViews> updatedViews); 32 void stopListening(int hostId); 33 int allocateAppWidgetId(String packageName, int hostId); 34 void deleteAppWidgetId(int appWidgetId); 35 void deleteHost(int hostId); 36 void deleteAllHosts(); 37 RemoteViews getAppWidgetViews(int appWidgetId); 38 39 // 40 // for AppWidgetManager 41 // 42 void updateAppWidgetIds(in int[] appWidgetIds, in RemoteViews views); 43 void updateAppWidgetProvider(in ComponentName provider, in RemoteViews views); 44 List<AppWidgetProviderInfo> getInstalledProviders(); 45 AppWidgetProviderInfo getAppWidgetInfo(int appWidgetId); 46 void bindAppWidgetId(int appWidgetId, in ComponentName provider); 47 int[] getAppWidgetIds(in ComponentName provider); 48 49} 50 51