ISystemUiProxy.aidl revision 05c1f854ad2ff045cf70bc0e394f4f8d498c107b
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 17package com.android.systemui.shared.recents; 18 19import android.graphics.Rect; 20import com.android.systemui.shared.system.GraphicBufferCompat; 21 22/** 23 * Temporary callbacks into SystemUI. 24 */ 25interface ISystemUiProxy { 26 27 /** 28 * Proxies SurfaceControl.screenshotToBuffer(). 29 */ 30 GraphicBufferCompat screenshot(in Rect sourceCrop, int width, int height, int minLayer, 31 int maxLayer, boolean useIdentityTransform, int rotation); 32 33 /** 34 * Begins screen pinning on the provided {@param taskId}. 35 */ 36 void startScreenPinning(int taskId); 37 38 /** 39 * Called when the overview service has started the recents animation. 40 */ 41 void onRecentsAnimationStarted(); 42 43 /** 44 * Specifies the text to be shown for onboarding the new swipe-up gesture to access recents. 45 */ 46 void setRecentsOnboardingText(CharSequence text); 47} 48