• 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.os.IRemoteCallback;
23 import android.view.MotionEvent;
24 import com.android.systemui.shared.recents.ISystemUiProxy;
25 
26 // Next ID: 39
27 oneway interface ILauncherProxy {
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(long stateFlags, int displayId)69     void onSystemUiStateChanged(long stateFlags, int displayId) = 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 {@link TaskbarDelegate#onTransitionModeUpdated} is called.
88      */
onTransitionModeUpdated(int barMode, boolean checkBarModes)89     void onTransitionModeUpdated(int barMode, boolean checkBarModes) = 21;
90 
91     /**
92      * Sent when the desired dark intensity of the nav buttons has changed
93      */
onNavButtonsDarkIntensityChanged(float darkIntensity)94     void onNavButtonsDarkIntensityChanged(float darkIntensity) = 22;
95 
96     /**
97      * Sent when when navigation bar luma sampling is enabled or disabled.
98      */
onNavigationBarLumaSamplingEnabled(int displayId, boolean enable)99     void onNavigationBarLumaSamplingEnabled(int displayId, boolean enable) = 23;
100 
101     /**
102      * Sent when split keyboard shortcut is triggered to enter stage split.
103      */
enterStageSplitFromRunningApp(boolean leftOrTop)104     void enterStageSplitFromRunningApp(boolean leftOrTop) = 25;
105 
106     /**
107      * Sent when the task bar stash state is toggled.
108      */
onTaskbarToggled()109     void onTaskbarToggled() = 27;
110 
111     /**
112      * Sent when the wallpaper visibility is updated.
113      */
updateWallpaperVisibility(int displayId, boolean visible)114     void updateWallpaperVisibility(int displayId, boolean visible) = 29;
115 
116     /**
117      * Sent when {@link TaskbarDelegate#checkNavBarModes} is called.
118      */
checkNavBarModes(int displayId)119     void checkNavBarModes(int displayId) = 30;
120 
121     /**
122      * Sent when {@link TaskbarDelegate#finishBarAnimations} is called.
123      */
finishBarAnimations(int displayId)124     void finishBarAnimations(int displayId) = 31;
125 
126     /**
127      * Sent when {@link TaskbarDelegate#touchAutoDim} is called. {@param reset} is true, when auto
128      * dim is reset after a timeout.
129      */
touchAutoDim(int displayid, boolean reset)130     void touchAutoDim(int displayid, boolean reset) = 32;
131 
132     /**
133      * Sent when {@link TaskbarDelegate#transitionTo} is called.
134      */
transitionTo(int displayId, int barMode, boolean animate)135     void transitionTo(int displayId, int barMode, boolean animate) = 33;
136 
137     /**
138      * Sent when {@link TaskbarDelegate#appTransitionPending} is called.
139      */
appTransitionPending(boolean pending)140     void appTransitionPending(boolean pending) = 34;
141 
142     /**
143      * Sent right after LauncherProxyService calls unbindService() on the TouchInteractionService.
144      * TouchInteractionService is expected to send the reply once it has finished cleaning up.
145      */
146     void onUnbind(IRemoteCallback reply) = 35;
147 
148     /**
149      * Sent when {@link TaskbarDelegate#onDisplayAddSystemDecorations} is called.
150      */
onDisplayAddSystemDecorations(int displayId)151     void onDisplayAddSystemDecorations(int displayId) = 36;
152 
153     /**
154      * Sent when {@link TaskbarDelegate#onDisplayRemoved} is called.
155      */
onDisplayRemoved(int displayId)156     void onDisplayRemoved(int displayId) = 37;
157 
158     /**
159      * Sent when {@link TaskbarDelegate#onDisplayRemoveSystemDecorations} is called.
160      */
onDisplayRemoveSystemDecorations(int displayId)161     void onDisplayRemoveSystemDecorations(int displayId) = 38;
162 }
163