1 /*
2  * Copyright (C) 2021 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.system.smartspace;
18 
19 import com.android.systemui.shared.system.smartspace.ILauncherUnlockAnimationController;
20 import com.android.systemui.shared.system.smartspace.SmartspaceState;
21 
22 // System UI unlock controller. Launcher will provide a LauncherUnlockAnimationController to this
23 // controller, which System UI will use to control the unlock animation within the Launcher window.
24 interface ISysuiUnlockAnimationController {
25     // Provides an implementation of the LauncherUnlockAnimationController to System UI, so that
26     // SysUI can use it to control the unlock animation in the launcher window.
setLauncherUnlockController(ILauncherUnlockAnimationController callback)27     oneway void setLauncherUnlockController(ILauncherUnlockAnimationController callback);
28 
29     // Called by Launcher whenever anything happens to change the state of its smartspace. System UI
30     // proactively saves this and uses it to perform the unlock animation without needing to make a
31     // blocking query to Launcher asking about the smartspace state.
onLauncherSmartspaceStateUpdated(in SmartspaceState state)32     oneway void onLauncherSmartspaceStateUpdated(in SmartspaceState state);
33 }