IWallpaperManager.aidl revision 4c62fc0e1e5ea9c69a12a7d1cf8b3ec8b2d114a3
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 android.app; 18 19import android.os.ParcelFileDescriptor; 20import android.app.IWallpaperManagerCallback; 21import android.content.ComponentName; 22 23/** @hide */ 24interface IWallpaperManager { 25 26 /** 27 * Set the wallpaper. 28 */ 29 ParcelFileDescriptor setWallpaper(String name); 30 31 /** 32 * Set the live wallpaper. 33 */ 34 void setWallpaperComponent(in ComponentName name); 35 36 /** 37 * Get the wallpaper. 38 */ 39 ParcelFileDescriptor getWallpaper(IWallpaperManagerCallback cb); 40 41 /** 42 * Clear the wallpaper. 43 */ 44 void clearWallpaper(); 45 46 /** 47 * Sets the dimension hint for the wallpaper. These hints indicate the desired 48 * minimum width and height for the wallpaper. 49 */ 50 void setDimensionHints(in int width, in int height); 51 52 /** 53 * Returns the desired minimum width for the wallpaper. 54 */ 55 int getWidthHint(); 56 57 /** 58 * Returns the desired minimum height for the wallpaper. 59 */ 60 int getHeightHint(); 61} 62