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