• 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 com.android.systemui.shared.recents.ISystemUiProxy;
24 
25 oneway interface IOverviewProxy {
26 
27     void onActiveNavBarRegionChanges(in Region activeRegion) = 11;
28 
29     void onInitialize(in Bundle params) = 12;
30 
31     /**
32      * Sent when overview button is pressed to toggle show/hide of overview.
33      */
onOverviewToggle()34     void onOverviewToggle() = 6;
35 
36     /**
37      * Sent when overview is to be shown.
38      */
onOverviewShown(boolean triggeredFromAltTab)39     void onOverviewShown(boolean triggeredFromAltTab) = 7;
40 
41     /**
42      * Sent when overview is to be hidden.
43      */
onOverviewHidden(boolean triggeredFromAltTab, boolean triggeredFromHomeKey)44     void onOverviewHidden(boolean triggeredFromAltTab, boolean triggeredFromHomeKey) = 8;
45 
46     /**
47      * Sent when there was an action on one of the onboarding tips view.
48      * TODO: Move this implementation to SystemUI completely
49      */
onTip(int actionType, int viewType)50     void onTip(int actionType, int viewType) = 10;
51 
52     /**
53      * Sent when device assistant changes its default assistant whether it is available or not.
54      */
onAssistantAvailable(boolean available)55     void onAssistantAvailable(boolean available) = 13;
56 
57     /**
58      * Sent when the assistant changes how visible it is to the user.
59      */
onAssistantVisibilityChanged(float visibility)60     void onAssistantVisibilityChanged(float visibility) = 14;
61 
62     /**
63      * Sent when back is triggered.
64      * TODO: Move this implementation to SystemUI completely
65      */
onBackAction(boolean completed, int downX, int downY, boolean isButton, boolean gestureSwipeLeft)66     void onBackAction(boolean completed, int downX, int downY, boolean isButton,
67             boolean gestureSwipeLeft) = 15;
68 
69     /**
70      * Sent when some system ui state changes.
71      */
onSystemUiStateChanged(int stateFlags)72     void onSystemUiStateChanged(int stateFlags) = 16;
73 
74     /**
75      * Sent when the split screen is resized
76      */
onSplitScreenSecondaryBoundsChanged(in Rect bounds, in Rect insets)77     void onSplitScreenSecondaryBoundsChanged(in Rect bounds, in Rect insets) = 17;
78 
79     /**
80      * Sent IME status changes
81      */
onImeWindowStatusChanged(int displayId, IBinder token, int vis, int backDisposition, boolean showImeSwitcher)82     void onImeWindowStatusChanged(int displayId, IBinder token, int vis, int backDisposition,
83                          boolean showImeSwitcher) = 18;
84 }
85