blob: 49d4bb55a65049085d27217e2ca5bb9704c4d658 [file] [log] [blame]
Tor Norbye5e9618a2019-01-04 21:33:09 -08001// Signature format: 2.0
Kaicdaf1592019-12-23 11:59:40 -08002package android.car {
3
Felipe Leme5528ff72020-02-10 19:05:14 -08004 public final class Car {
5 field public static final String CAR_USER_SERVICE = "car_user_service";
6 }
7
Keun young Park3d0b96c2020-01-10 19:15:50 -08008 public final class CarAppFocusManager {
9 method public int[] getActiveAppTypes();
10 }
11
Kaicdaf1592019-12-23 11:59:40 -080012 public class VehiclePropertyType {
13 field public static final int BOOLEAN = 2097152; // 0x200000
14 field public static final int BYTES = 7340032; // 0x700000
15 field public static final int FLOAT = 6291456; // 0x600000
16 field public static final int FLOAT_VEC = 6356992; // 0x610000
17 field public static final int INT32 = 4194304; // 0x400000
18 field public static final int INT32_VEC = 4259840; // 0x410000
19 field public static final int INT64 = 5242880; // 0x500000
20 field public static final int INT64_VEC = 5308416; // 0x510000
21 field public static final int MASK = 16711680; // 0xff0000
22 field public static final int MIXED = 14680064; // 0xe00000
23 field public static final int STRING = 1048576; // 0x100000
24 }
25
26}
27
Selim Gurune4029922018-12-12 17:18:43 -080028package android.car.content.pm {
29
30 public final class CarPackageManager {
31 method public void setEnableActivityBlocking(boolean);
32 }
33
34}
35
Yao, Yuxinge32b3f62019-05-22 12:36:24 -070036package android.car.drivingstate {
37
38 public final class CarDrivingStateManager {
39 method public void injectDrivingState(int);
40 }
41
42}
43
Hongwei Wangc34d6722018-12-10 15:07:16 -080044package android.car.media {
45
46 public final class CarAudioManager {
Justin Pauporeccc75a32019-02-12 18:20:48 -080047 method public boolean isDynamicRoutingEnabled();
Hongwei Wangc34d6722018-12-10 15:07:16 -080048 }
49
50}
51
Felipe Leme5528ff72020-02-10 19:05:14 -080052package android.car.user {
53
54 public final class CarUserManager {
Felipe Lemeffc330d2020-02-13 09:02:16 -080055 method @RequiresPermission(anyOf={android.Manifest.permission.INTERACT_ACROSS_USERS, android.Manifest.permission.INTERACT_ACROSS_USERS_FULL}) public void addListener(@NonNull java.util.concurrent.Executor, @NonNull android.car.user.CarUserManager.UserLifecycleListener);
Felipe Leme5528ff72020-02-10 19:05:14 -080056 method public static String lifecycleEventTypeToString(int);
57 method @RequiresPermission(anyOf={android.Manifest.permission.INTERACT_ACROSS_USERS, android.Manifest.permission.INTERACT_ACROSS_USERS_FULL}) public void removeListener(@NonNull android.car.user.CarUserManager.UserLifecycleListener);
Felipe Leme5528ff72020-02-10 19:05:14 -080058 field public static final int USER_LIFECYCLE_EVENT_TYPE_STARTING = 1; // 0x1
Felipe Lemee4b4a1b2020-02-19 10:22:52 -080059 field public static final int USER_LIFECYCLE_EVENT_TYPE_STOPPED = 6; // 0x6
60 field public static final int USER_LIFECYCLE_EVENT_TYPE_STOPPING = 5; // 0x5
Felipe Leme5528ff72020-02-10 19:05:14 -080061 field public static final int USER_LIFECYCLE_EVENT_TYPE_SWITCHING = 2; // 0x2
Felipe Lemee4b4a1b2020-02-19 10:22:52 -080062 field public static final int USER_LIFECYCLE_EVENT_TYPE_UNLOCKED = 4; // 0x4
63 field public static final int USER_LIFECYCLE_EVENT_TYPE_UNLOCKING = 3; // 0x3
Felipe Leme5528ff72020-02-10 19:05:14 -080064 }
65
Antonio Kantekc8114752020-03-05 21:37:39 -080066 public static final class CarUserManager.UserLifecycleEvent {
Felipe Leme5528ff72020-02-10 19:05:14 -080067 method public int getEventType();
68 method @Nullable public android.os.UserHandle getPreviousUserHandle();
69 method @NonNull public android.os.UserHandle getUserHandle();
70 }
71
72 public static interface CarUserManager.UserLifecycleListener {
73 method public void onEvent(@NonNull android.car.user.CarUserManager.UserLifecycleEvent);
74 }
75
76}
77