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