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 import android.app.RemoteAction; 20 import android.content.ComponentName; 21 import android.content.pm.ParceledListSlice; 22 import android.graphics.Rect; 23 import android.view.DisplayInfo; 24 25 /** 26 * Listener for changes to the pinned task made by the WindowManager. 27 * 28 * @hide 29 */ 30 oneway interface IPinnedTaskListener { 31 32 /** 33 * Called when the window manager has detected a change that would cause the movement bounds 34 * to be changed (ie. after configuration change, aspect ratio change, etc). 35 */ onMovementBoundsChanged(boolean fromImeAdjustment)36 void onMovementBoundsChanged(boolean fromImeAdjustment); 37 38 /** 39 * Called when window manager decides to adjust the pinned stack bounds because of the IME, or 40 * when the listener is first registered to allow the listener to synchronized its state with 41 * the controller. This call will always be followed by a onMovementBoundsChanged() call 42 * with fromImeAdjustement set to {@code true}. 43 */ onImeVisibilityChanged(boolean imeVisible, int imeHeight)44 void onImeVisibilityChanged(boolean imeVisible, int imeHeight); 45 46 /** 47 * Called by the window manager to notify the listener that Activity (was or is in pinned mode) 48 * is hidden (either stopped or removed). This is generally used as a signal to reset saved 49 * reentry fraction and size. 50 * {@param componentName} represents the application component of PiP window. 51 */ onActivityHidden(in ComponentName componentName)52 void onActivityHidden(in ComponentName componentName); 53 } 54