1 /* 2 * Copyright (C) 2017 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 com.android.systemui.shared.recents; 18 19 import android.graphics.Rect; 20 import android.graphics.Region; 21 import android.os.Bundle; 22 import android.view.MotionEvent; 23 import com.android.systemui.shared.recents.ISystemUiProxy; 24 25 // Next ID: 29 26 oneway interface IOverviewProxy { 27 28 void onActiveNavBarRegionChanges(in Region activeRegion) = 11; 29 30 void onInitialize(in Bundle params) = 12; 31 32 /** 33 * Sent when overview button is pressed to toggle show/hide of overview. 34 */ onOverviewToggle()35 void onOverviewToggle() = 6; 36 37 /** 38 * Sent when overview is to be shown. 39 */ onOverviewShown(boolean triggeredFromAltTab)40 void onOverviewShown(boolean triggeredFromAltTab) = 7; 41 42 /** 43 * Sent when overview is to be hidden. 44 */ onOverviewHidden(boolean triggeredFromAltTab, boolean triggeredFromHomeKey)45 void onOverviewHidden(boolean triggeredFromAltTab, boolean triggeredFromHomeKey) = 8; 46 47 /** 48 * Sent when device assistant changes its default assistant whether it is available or not. 49 * @param longPressHomeEnabled if 3-button nav assistant can be invoked or not 50 */ onAssistantAvailable(boolean available, boolean longPressHomeEnabled)51 void onAssistantAvailable(boolean available, boolean longPressHomeEnabled) = 13; 52 53 /** 54 * Sent when the assistant changes how visible it is to the user. 55 */ onAssistantVisibilityChanged(float visibility)56 void onAssistantVisibilityChanged(float visibility) = 14; 57 58 /** 59 * Sent when the assistant has been invoked with the given type (defined in AssistManager) and 60 * should be shown. This method should be used if SystemUiProxy#setAssistantOverridesRequested 61 * was previously called including this invocation type. 62 */ onAssistantOverrideInvoked(int invocationType)63 void onAssistantOverrideInvoked(int invocationType) = 28; 64 65 /** 66 * Sent when some system ui state changes. 67 */ onSystemUiStateChanged(long stateFlags)68 void onSystemUiStateChanged(long stateFlags) = 16; 69 70 /** 71 * Sent when suggested rotation button could be shown 72 */ onRotationProposal(int rotation, boolean isValid)73 void onRotationProposal(int rotation, boolean isValid) = 18; 74 75 /** 76 * Sent when disable flags change 77 */ disable(int displayId, int state1, int state2, boolean animate)78 void disable(int displayId, int state1, int state2, boolean animate) = 19; 79 80 /** 81 * Sent when behavior changes. See WindowInsetsController#@Behavior 82 */ onSystemBarAttributesChanged(int displayId, int behavior)83 void onSystemBarAttributesChanged(int displayId, int behavior) = 20; 84 85 /** 86 * Sent when the desired dark intensity of the nav buttons has changed 87 */ onNavButtonsDarkIntensityChanged(float darkIntensity)88 void onNavButtonsDarkIntensityChanged(float darkIntensity) = 22; 89 90 /** 91 * Sent when when navigation bar luma sampling is enabled or disabled. 92 */ onNavigationBarLumaSamplingEnabled(int displayId, boolean enable)93 void onNavigationBarLumaSamplingEnabled(int displayId, boolean enable) = 23; 94 95 /** 96 * Sent when split keyboard shortcut is triggered to enter stage split. 97 */ enterStageSplitFromRunningApp(boolean leftOrTop)98 void enterStageSplitFromRunningApp(boolean leftOrTop) = 25; 99 100 /** 101 * Sent when the task bar stash state is toggled. 102 */ onTaskbarToggled()103 void onTaskbarToggled() = 27; 104 } 105