Winson Chung | 655332c | 2016-10-31 13:14:28 -0700 | [diff] [blame] | 1 | /** |
| 2 | * Copyright (c) 2016, 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.view; |
| 18 | |
Winson Chung | 655332c | 2016-10-31 13:14:28 -0700 | [diff] [blame] | 19 | /** |
| 20 | * An interface to the PinnedStackController to update it of state changes, and to query |
| 21 | * information based on the current state. |
| 22 | * |
| 23 | * @hide |
| 24 | */ |
| 25 | interface IPinnedStackController { |
| 26 | |
| 27 | /** |
Winson Chung | 2a82fe5 | 2017-02-02 14:43:34 -0800 | [diff] [blame] | 28 | * Notifies the controller that the PiP is currently minimized. |
Winson Chung | fa705378 | 2016-11-08 15:45:10 -0800 | [diff] [blame] | 29 | */ |
| 30 | oneway void setIsMinimized(boolean isMinimized); |
Winson Chung | ef4dc81 | 2017-04-11 13:31:44 -0700 | [diff] [blame] | 31 | |
| 32 | /** |
Winson Chung | a71febe | 2017-05-22 11:14:22 -0700 | [diff] [blame] | 33 | * Notifies the controller of the current min edge size, this is needed to allow the system to |
| 34 | * properly calculate the aspect ratio of the expanded PIP. The given {@param minEdgeSize} is |
| 35 | * always bounded to be larger than the default minEdgeSize, so the caller can call this method |
| 36 | * with 0 to reset to the default size. |
| 37 | */ |
| 38 | oneway void setMinEdgeSize(int minEdgeSize); |
| 39 | |
| 40 | /** |
Winson Chung | ef4dc81 | 2017-04-11 13:31:44 -0700 | [diff] [blame] | 41 | * @return what WM considers to be the current device rotation. |
| 42 | */ |
| 43 | int getDisplayRotation(); |
Winson Chung | 655332c | 2016-10-31 13:14:28 -0700 | [diff] [blame] | 44 | } |