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