Dianne Hackborn | 4c62fc0 | 2009-08-08 20:40:27 -0700 | [diff] [blame] | 1 | /* |
| 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 | |
| 17 | package android.service.wallpaper; |
| 18 | |
Dianne Hackborn | 067e5f6 | 2014-09-07 23:14:30 -0700 | [diff] [blame] | 19 | import android.graphics.Rect; |
Dianne Hackborn | 6adba24 | 2009-11-10 11:10:09 -0800 | [diff] [blame] | 20 | import android.view.MotionEvent; |
Jeff Brown | 9f3bdfe | 2010-10-13 06:01:27 -0700 | [diff] [blame] | 21 | import android.os.Bundle; |
Dianne Hackborn | 6adba24 | 2009-11-10 11:10:09 -0800 | [diff] [blame] | 22 | |
Dianne Hackborn | 4c62fc0 | 2009-08-08 20:40:27 -0700 | [diff] [blame] | 23 | /** |
| 24 | * @hide |
| 25 | */ |
| 26 | oneway interface IWallpaperEngine { |
Dianne Hackborn | 284ac93 | 2009-08-28 10:34:25 -0700 | [diff] [blame] | 27 | void setDesiredSize(int width, int height); |
Dianne Hackborn | 067e5f6 | 2014-09-07 23:14:30 -0700 | [diff] [blame] | 28 | void setDisplayPadding(in Rect padding); |
Andrei Onea | ffeefd3 | 2019-02-28 13:44:21 +0000 | [diff] [blame^] | 29 | @UnsupportedAppUsage |
Dianne Hackborn | 284ac93 | 2009-08-28 10:34:25 -0700 | [diff] [blame] | 30 | void setVisibility(boolean visible); |
Lucas Dupin | 660d573 | 2017-12-19 10:05:19 -0800 | [diff] [blame] | 31 | void setInAmbientMode(boolean inAmbientDisplay, boolean animated); |
Andrei Onea | ffeefd3 | 2019-02-28 13:44:21 +0000 | [diff] [blame^] | 32 | @UnsupportedAppUsage |
Dianne Hackborn | 6adba24 | 2009-11-10 11:10:09 -0800 | [diff] [blame] | 33 | void dispatchPointer(in MotionEvent event); |
Andrei Onea | ffeefd3 | 2019-02-28 13:44:21 +0000 | [diff] [blame^] | 34 | @UnsupportedAppUsage |
Jeff Brown | 9f3bdfe | 2010-10-13 06:01:27 -0700 | [diff] [blame] | 35 | void dispatchWallpaperCommand(String action, int x, int y, |
| 36 | int z, in Bundle extras); |
Lucas Dupin | 50ba991 | 2017-07-14 11:55:05 -0700 | [diff] [blame] | 37 | void requestWallpaperColors(); |
Andrei Onea | ffeefd3 | 2019-02-28 13:44:21 +0000 | [diff] [blame^] | 38 | @UnsupportedAppUsage |
Lucas Dupin | ea1fb1e | 2017-04-05 17:39:44 -0700 | [diff] [blame] | 39 | void destroy(); |
Dianne Hackborn | 4c62fc0 | 2009-08-08 20:40:27 -0700 | [diff] [blame] | 40 | } |