• 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 /** @hide */
20 interface ICar {
21     // All oneway methods are called from system server and should be placed in top positions.
22     // Do not change the order of oneway methods as system server make binder call based on this
23     // order.
24 
25     /**
26      * IBinder is ICarServiceHelper but passed as IBinder due to aidl hidden.
27      *
28      * This should be the 1st method. Do not change the order.
29      */
30     oneway void setCarServiceHelper(in IBinder helper) = 0;
31     /**
32      * Notify lock / unlock of user id to car service.
33      * unlocked: 1 if unlocked 0 otherwise.
34      *
35      * This should be the 2nd method. Do not change the order.
36      */
setUserLockStatus(in int userHandle, in int unlocked)37     oneway void setUserLockStatus(in int userHandle, in int unlocked) = 1;
38 
39     /**
40      * Notify of user switching.  This is called only for foreground users when the user is starting
41      * to boot.
42      *
43      * @param userHandle -  user handle of new user.
44      *
45      * This should be the 3rd method. Do not change the order.
46      */
onSwitchUser(in int userHandle)47     oneway void onSwitchUser(in int userHandle) = 2;
48 
49     IBinder getCarService(in String serviceName) = 3;
getCarConnectionType()50     int getCarConnectionType() = 4;
51 
52 }
53