blob: 58d8d8fd600ada72605675c04b9cdcd6585db7de [file] [log] [blame]
Winson190fe3bf2015-10-20 14:57:24 -07001/*
2 * Copyright (C) 2015 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
17package com.android.systemui.recents;
18
Jorim Jaggi899327f2016-02-25 20:44:18 -050019import android.graphics.Rect;
20
Winson190fe3bf2015-10-20 14:57:24 -070021/**
22 * Due to the fact that RecentsActivity is per-user, we need to establish an
23 * interface (this) for the non-system user to register itself for callbacks and to
24 * callback to the system user to update internal state.
25 */
26oneway interface IRecentsSystemUserCallbacks {
27 void registerNonSystemUserCallbacks(IBinder nonSystemUserCallbacks, int userId);
28
29 void updateRecentsVisibility(boolean visible);
Andrii Kulian0f051f52016-04-14 00:41:51 -070030 void startScreenPinning(int taskId);
Jorim Jaggi11cc01d2016-01-22 19:39:23 -080031 void sendRecentsDrawnEvent();
Jorim Jaggi899327f2016-02-25 20:44:18 -050032 void sendDockingTopTaskEvent(int dragMode, in Rect initialRect);
Jorim Jaggicdb06ca2016-01-25 19:15:12 -080033 void sendLaunchRecentsEvent();
Matthew Ng534e8542017-10-16 14:34:52 -070034 void sendDockedFirstAnimationFrameEvent();
Matthew Ng912c7f72017-08-02 22:12:04 +000035 void setWaitingForTransitionStartEvent(boolean waitingForTransitionStart);
Winson190fe3bf2015-10-20 14:57:24 -070036}