blob: e60a90d34aa65f665689a58cc606e6e50817a490 [file] [log] [blame]
Jon Miranda16ea1b12017-12-12 14:52:48 -08001/*
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 */
16package com.android.wallpaper.module;
17
18import android.content.Context;
19import android.support.annotation.IntDef;
20
21/**
22 * Checks what component is responsible for presenting the rotating wallpaper image under the
23 * device's launcher or keyguard for current and future rotations.
24 */
25public interface RotatingWallpaperComponentChecker {
26
27 int ROTATING_WALLPAPER_COMPONENT_LIVE = 1;
28 int ROTATING_WALLPAPER_COMPONENT_STATIC = 2;
29
30 int ROTATING_WALLPAPER_SUPPORT_NOT_SUPPORTED = 0;
31 int ROTATING_WALLPAPER_SUPPORT_SUPPORTED = 1;
32
33 /**
34 * Returns the rotating wallpaper component for the current wallpaper rotation.
35 */
36 @RotatingWallpaperComponent
37 int getCurrentRotatingWallpaperComponent(Context context);
38
39 /**
40 * Returns the rotating wallpaper component for future wallpaper rotations.
41 */
42 @RotatingWallpaperComponent
43 int getNextRotatingWallpaperComponent(Context context);
44
45 /**
46 * Returns the support level for rotating wallpaper.
47 */
48 @RotatingWallpaperSupport
49 int getRotatingWallpaperSupport(Context context);
50
51 /**
52 * Possible components for presenting the rotating wallpaper image.
53 */
54 @IntDef({
55 ROTATING_WALLPAPER_COMPONENT_LIVE,
56 ROTATING_WALLPAPER_COMPONENT_STATIC})
57 @interface RotatingWallpaperComponent {
58 }
59
60 /**
61 * Possible support levels for rotating wallpaper.
62 */
63 @IntDef({
64 ROTATING_WALLPAPER_SUPPORT_NOT_SUPPORTED,
65 ROTATING_WALLPAPER_SUPPORT_SUPPORTED})
66 @interface RotatingWallpaperSupport {
67 }
68}