Home | History | Annotate | Download | only in view
      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 
     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     /**
     28      * Notifies the controller that the PiP is currently minimized.
     29      */
     30     oneway void setIsMinimized(boolean isMinimized);
     31 
     32     /**
     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     /**
     41      * @return what WM considers to be the current device rotation.
     42      */
     43     int getDisplayRotation();
     44 }
     45