• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
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 
17 package android.car;
18 
19 import android.car.ICarResultReceiver;
20 
21 import com.android.car.internal.ICarServiceHelper;
22 
23 /** @hide */
24 interface ICar {
25     /**
26      * Helper binder is for ICarServiceHelper. It is for the communication from CarService ->
27      * CarServiceHelperService.
28      * Receiver binder would set ICarSystemServerClient binder for CarServiceHelperService.
29      */
setSystemServerConnections(in ICarServiceHelper helper, in ICarResultReceiver receiver)30     oneway void setSystemServerConnections(in ICarServiceHelper helper,
31         in ICarResultReceiver receiver) = 0;
32 
33     // Rest of the calls are used for Apps to CarService communication
34     @nullable IBinder getCarService(in String serviceName) = 11;
getCarConnectionType()35     int getCarConnectionType() = 12;
36     boolean isFeatureEnabled(in String featureName) = 13;
37     int enableFeature(in String featureName) = 14;
38     int disableFeature(in String featureName) = 15;
getAllEnabledFeatures()39     List<String> getAllEnabledFeatures() = 16;
getAllPendingDisabledFeatures()40     List<String> getAllPendingDisabledFeatures() = 17;
getAllPendingEnabledFeatures()41     List<String> getAllPendingEnabledFeatures() = 18;
42     /**
43      * Get class name for experimental feature. Class should have constructor taking (Car, IBinder)
44      * and should inherit CarManagerBase.
45      */
46     @nullable String getCarManagerClassForFeature(in String featureName) = 19;
47 }
48