1 /* 2 * Copyright (C) 2023 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 package android.car.app; 17 18 import android.app.ActivityManager.RunningTaskInfo; 19 import android.app.PendingIntent; 20 import android.car.app.ICarTaskViewClient; 21 import android.graphics.Rect; 22 import android.os.Bundle; 23 import android.view.SurfaceControl; 24 25 26 /** 27 * Binder API for server side of RemoteCarTaskView i.e. CarTaskViewServerImpl. 28 * See {@link CarTaskViewHost} for details. 29 * @hide 30 */ 31 oneway interface ICarTaskViewHost { release()32 void release(); startActivity(in PendingIntent pendingIntent, in Intent intent, in Bundle options, in Rect launchBounds)33 void startActivity(in PendingIntent pendingIntent, in Intent intent, in Bundle options, in Rect launchBounds); createRootTask(int displayId)34 void createRootTask(int displayId); createLaunchRootTask(int displayId, boolean embedHomeTask, boolean embedRecentsTask, boolean embedAssistantTask)35 void createLaunchRootTask(int displayId, boolean embedHomeTask, boolean embedRecentsTask, 36 boolean embedAssistantTask); notifySurfaceCreated(in SurfaceControl control)37 void notifySurfaceCreated(in SurfaceControl control); setWindowBounds(in Rect bounds)38 void setWindowBounds(in Rect bounds); notifySurfaceDestroyed()39 void notifySurfaceDestroyed(); showEmbeddedTask()40 void showEmbeddedTask(); addInsets(int index, int type, in Rect frame)41 void addInsets(int index, int type, in Rect frame); removeInsets(int index, int type)42 void removeInsets(int index, int type); 43 } 44