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