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