• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 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 some system ui state changes.
60      */
onSystemUiStateChanged(int stateFlags)61     void onSystemUiStateChanged(int stateFlags) = 16;
62 
63     /**
64      * Sent when suggested rotation button could be shown
65      */
onRotationProposal(int rotation, boolean isValid)66     void onRotationProposal(int rotation, boolean isValid) = 18;
67 
68     /**
69      * Sent when disable flags change
70      */
disable(int displayId, int state1, int state2, boolean animate)71     void disable(int displayId, int state1, int state2, boolean animate) = 19;
72 
73     /**
74      * Sent when behavior changes. See WindowInsetsController#@Behavior
75      */
onSystemBarAttributesChanged(int displayId, int behavior)76     void onSystemBarAttributesChanged(int displayId, int behavior) = 20;
77 
78     /**
79      * Sent when screen turned on and ready to use (blocker scrim is hidden)
80      */
onScreenTurnedOn()81     void onScreenTurnedOn() = 21;
82 
83     /**
84      * Sent when the desired dark intensity of the nav buttons has changed
85      */
onNavButtonsDarkIntensityChanged(float darkIntensity)86     void onNavButtonsDarkIntensityChanged(float darkIntensity) = 22;
87 
88      /**
89       * Sent when screen started turning on.
90       */
onScreenTurningOn()91      void onScreenTurningOn() = 23;
92 
93      /**
94       * Sent when screen started turning off.
95       */
onScreenTurningOff()96      void onScreenTurningOff() = 24;
97 
98      /**
99       * Sent when split keyboard shortcut is triggered to enter stage split.
100       */
enterStageSplitFromRunningApp(boolean leftOrTop)101      void enterStageSplitFromRunningApp(boolean leftOrTop) = 25;
102 
103      /**
104       * Sent when the surface for navigation bar is created or changed
105       */
106      void onNavigationBarSurface(in SurfaceControl surface) = 26;
107 }
108