blob: 00e0b7c170becaf4bbc4a2dd01c912b2cb17b726 [file] [log] [blame]
Dianne Hackborn4c62fc02009-08-08 20:40:27 -07001/*
2 * Copyright (C) 2009 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.service.wallpaper;
18
Dianne Hackborn067e5f62014-09-07 23:14:30 -070019import android.graphics.Rect;
Dianne Hackborn6adba242009-11-10 11:10:09 -080020import android.view.MotionEvent;
Jeff Brown9f3bdfe2010-10-13 06:01:27 -070021import android.os.Bundle;
Dianne Hackborn6adba242009-11-10 11:10:09 -080022
Dianne Hackborn4c62fc02009-08-08 20:40:27 -070023/**
24 * @hide
25 */
26oneway interface IWallpaperEngine {
Dianne Hackborn284ac932009-08-28 10:34:25 -070027 void setDesiredSize(int width, int height);
Dianne Hackborn067e5f62014-09-07 23:14:30 -070028 void setDisplayPadding(in Rect padding);
Andrei Onea4aa2a202019-02-27 14:22:05 +000029 @UnsupportedAppUsage
Dianne Hackborn284ac932009-08-28 10:34:25 -070030 void setVisibility(boolean visible);
Lucas Dupin4c8c3272018-11-06 17:47:48 -080031 void setInAmbientMode(boolean inAmbientDisplay, long animationDuration);
Andrei Onea4aa2a202019-02-27 14:22:05 +000032 @UnsupportedAppUsage
Dianne Hackborn6adba242009-11-10 11:10:09 -080033 void dispatchPointer(in MotionEvent event);
Andrei Onea4aa2a202019-02-27 14:22:05 +000034 @UnsupportedAppUsage
Jeff Brown9f3bdfe2010-10-13 06:01:27 -070035 void dispatchWallpaperCommand(String action, int x, int y,
36 int z, in Bundle extras);
Lucas Dupin50ba9912017-07-14 11:55:05 -070037 void requestWallpaperColors();
Andrei Onea4aa2a202019-02-27 14:22:05 +000038 @UnsupportedAppUsage
Lucas Dupinea1fb1e2017-04-05 17:39:44 -070039 void destroy();
Dianne Hackborn4c62fc02009-08-08 20:40:27 -070040}