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 
17 package android.car.app;
18 
19 import android.annotation.NonNull;
20 import android.annotation.SystemApi;
21 
22 /**
23  * A blueprint for the system ui proxy which is meant to host all the system ui interaction that is
24  * required by other apps.
25  * @hide
26  */
27 @SystemApi
28 public interface CarSystemUIProxy {
29     /**
30      * Creates the host side of the task view and links the provided {@code carTaskViewClient}
31      * to the same.
32      * This method will be deprecated in Android 15. Please use
33      * {@link CarSystemUIProxy#createCarTaskView(CarTaskViewClient)} instead.
34      * @return a handle to the host side of task view.
35      */
36     @NonNull
createControlledCarTaskView(@onNull CarTaskViewClient carTaskViewClient)37     CarTaskViewHost createControlledCarTaskView(@NonNull CarTaskViewClient carTaskViewClient);
38 
39     /**
40      * Creates the host side of the task view and links the provided {@code
41      * carTaskViewClient} to the same.
42      * @return a handle to the host side of task view.
43      *
44      * @hide
45      */
46     @NonNull
createCarTaskView(@onNull CarTaskViewClient carTaskViewClient)47     CarTaskViewHost createCarTaskView(@NonNull CarTaskViewClient carTaskViewClient);
48 }
49