blob: d2dcb568ef6cdba3b133102357d252836b271fb7 [file] [log] [blame]
Winson Chung655332c2016-10-31 13:14:28 -07001/**
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
17package android.view;
18
Winson Chung655332c2016-10-31 13:14:28 -070019/**
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 */
25interface IPinnedStackController {
26
27 /**
Winson Chung2a82fe52017-02-02 14:43:34 -080028 * Notifies the controller that the PiP is currently minimized.
Winson Chungfa7053782016-11-08 15:45:10 -080029 */
30 oneway void setIsMinimized(boolean isMinimized);
Winson Chungef4dc812017-04-11 13:31:44 -070031
32 /**
Winson Chunga71febe2017-05-22 11:14:22 -070033 * 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 Chungef4dc812017-04-11 13:31:44 -070041 * @return what WM considers to be the current device rotation.
42 */
43 int getDisplayRotation();
Winson Chung655332c2016-10-31 13:14:28 -070044}