Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 1 | package android.car { |
| 2 | |
Keun-young Park | 4cf6911 | 2016-10-04 10:02:59 -0700 | [diff] [blame] | 3 | public final class Car { |
Steve Paik | 43c04a7 | 2016-07-08 19:12:09 -0700 | [diff] [blame] | 4 | field public static final java.lang.String CABIN_SERVICE = "cabin"; |
Ram Periathiruvadi | 25c16f1 | 2017-11-17 16:48:37 -0800 | [diff] [blame] | 5 | field public static final java.lang.String CAR_DRIVING_STATE_SERVICE = "drivingstate"; |
Enrico Granata | ae25b92 | 2017-07-07 11:28:15 -0700 | [diff] [blame] | 6 | field public static final java.lang.String DIAGNOSTIC_SERVICE = "diagnostic"; |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 7 | field public static final java.lang.String HVAC_SERVICE = "hvac"; |
Kai | 25c0b85 | 2018-03-01 11:52:31 -0800 | [diff] [blame] | 8 | field public static final java.lang.String PERMISSION_ADJUST_CAR_CABIN = "android.car.permission.ADJUST_CAR_CABIN"; |
Kai | 25c0b85 | 2018-03-01 11:52:31 -0800 | [diff] [blame] | 9 | field public static final java.lang.String PERMISSION_CAR_DIAGNOSTIC_CLEAR = "android.car.permission.CLEAR_CAR_DIAGNOSTICS"; |
| 10 | field public static final java.lang.String PERMISSION_CAR_DIAGNOSTIC_READ_ALL = "android.car.permission.CAR_DIAGNOSTICS"; |
Ram Periathiruvadi | 25c16f1 | 2017-11-17 16:48:37 -0800 | [diff] [blame] | 11 | field public static final java.lang.String PERMISSION_CAR_DRIVING_STATE = "android.car.permission.CAR_DRIVING_STATE"; |
Kai | 68ee16b | 2018-03-22 11:57:37 -0700 | [diff] [blame] | 12 | field public static final java.lang.String PERMISSION_CAR_DYNAMICS_STATE = "android.car.permission.CAR_DYNAMICS_STATE"; |
Kai | 25c0b85 | 2018-03-01 11:52:31 -0800 | [diff] [blame] | 13 | field public static final java.lang.String PERMISSION_CAR_ENGINE_DETAILED = "android.car.permission.CAR_ENGINE_DETAILED"; |
Pavel Maltsev | ced1131 | 2018-04-03 17:30:02 -0700 | [diff] [blame] | 14 | field public static final java.lang.String PERMISSION_CAR_INSTRUMENT_CLUSTER_CONTROL = "android.car.permission.CAR_INSTRUMENT_CLUSTER_CONTROL"; |
Steve Paik | 388d777 | 2018-02-12 10:54:51 -0800 | [diff] [blame] | 15 | field public static final java.lang.String PERMISSION_CAR_POWER = "android.car.permission.CAR_POWER"; |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 16 | field public static final java.lang.String PERMISSION_CAR_PROJECTION = "android.car.permission.CAR_PROJECTION"; |
Pavel Maltsev | 0d07c76 | 2016-11-03 16:40:15 -0700 | [diff] [blame] | 17 | field public static final java.lang.String PERMISSION_CAR_TEST_SERVICE = "android.car.permission.CAR_TEST_SERVICE"; |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 18 | field public static final java.lang.String PERMISSION_CONTROL_APP_BLOCKING = "android.car.permission.CONTROL_APP_BLOCKING"; |
Kai | 68ee16b | 2018-03-22 11:57:37 -0700 | [diff] [blame] | 19 | field public static final java.lang.String PERMISSION_CONTROL_CAR_CLIMATE = "android.car.permission.CONTROL_CAR_CLIMATE"; |
| 20 | field public static final java.lang.String PERMISSION_CONTROL_CAR_DOORS = "android.car.permission.CONTROL_CAR_DOORS"; |
| 21 | field public static final java.lang.String PERMISSION_CONTROL_CAR_MIRRORS = "android.car.permission.CONTROL_CAR_MIRRORS"; |
| 22 | field public static final java.lang.String PERMISSION_CONTROL_CAR_SEATS = "android.car.permission.CONTROL_CAR_SEATS"; |
| 23 | field public static final java.lang.String PERMISSION_CONTROL_CAR_WINDOWS = "android.car.permission.CONTROL_CAR_WINDOWS"; |
| 24 | field public static final java.lang.String PERMISSION_CONTROL_EXTERIOR_LIGHTS = "android.car.permission.CONTROL_CAR_EXTERIOR_LIGHTS"; |
| 25 | field public static final java.lang.String PERMISSION_EXTERIOR_LIGHTS = "android.car.permission.CAR_EXTERIOR_LIGHTS"; |
| 26 | field public static final java.lang.String PERMISSION_MILEAGE = "android.car.permission.CAR_MILEAGE"; |
Pavel Maltsev | 0d07c76 | 2016-11-03 16:40:15 -0700 | [diff] [blame] | 27 | field public static final deprecated java.lang.String PERMISSION_MOCK_VEHICLE_HAL = "android.car.permission.CAR_MOCK_VEHICLE_HAL"; |
Enrico Granata | 1172f88 | 2017-09-21 14:51:30 -0700 | [diff] [blame] | 28 | field public static final java.lang.String PERMISSION_STORAGE_MONITORING = "android.car.permission.STORAGE_MONITORING"; |
Kai | 68ee16b | 2018-03-22 11:57:37 -0700 | [diff] [blame] | 29 | field public static final java.lang.String PERMISSION_TIRES = "android.car.permission.CAR_TIRES"; |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 30 | field public static final java.lang.String PERMISSION_VENDOR_EXTENSION = "android.car.permission.CAR_VENDOR_EXTENSION"; |
Aditi Nagaraj | dd60089 | 2018-02-02 13:31:57 -0800 | [diff] [blame] | 31 | field public static final java.lang.String PERMISSION_VMS_PUBLISHER = "android.car.permission.VMS_PUBLISHER"; |
| 32 | field public static final java.lang.String PERMISSION_VMS_SUBSCRIBER = "android.car.permission.VMS_SUBSCRIBER"; |
Steve Paik | 388d777 | 2018-02-12 10:54:51 -0800 | [diff] [blame] | 33 | field public static final java.lang.String POWER_SERVICE = "power"; |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 34 | field public static final java.lang.String PROJECTION_SERVICE = "projection"; |
Steve Paik | 4d25702 | 2018-04-27 13:28:31 -0700 | [diff] [blame] | 35 | field public static final java.lang.String PROPERTY_SERVICE = "property"; |
Enrico Granata | 9a916d7 | 2017-09-19 14:33:08 -0700 | [diff] [blame] | 36 | field public static final java.lang.String STORAGE_MONITORING_SERVICE = "storage_monitoring"; |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 37 | field public static final java.lang.String TEST_SERVICE = "car-service-test"; |
Pavel Maltsev | 634e1ff | 2016-07-14 15:41:26 -0700 | [diff] [blame] | 38 | field public static final java.lang.String VENDOR_EXTENSION_SERVICE = "vendor_extension"; |
Aditi Nagaraj | dd60089 | 2018-02-02 13:31:57 -0800 | [diff] [blame] | 39 | field public static final java.lang.String VMS_SUBSCRIBER_SERVICE = "vehicle_map_subscriber_service"; |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 40 | } |
| 41 | |
Keun-young Park | 4cf6911 | 2016-10-04 10:02:59 -0700 | [diff] [blame] | 42 | public final class CarProjectionManager { |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 43 | method public void onCarDisconnected(); |
Gene Karshenboym | beab135 | 2017-06-22 15:58:31 -0700 | [diff] [blame] | 44 | method public void registerProjectionListener(android.car.CarProjectionManager.CarProjectionListener, int) throws android.car.CarNotConnectedException; |
Enrico Granata | ae25b92 | 2017-07-07 11:28:15 -0700 | [diff] [blame] | 45 | method public void registerProjectionRunner(android.content.Intent) throws android.car.CarNotConnectedException; |
Gene Karshenboym | beab135 | 2017-06-22 15:58:31 -0700 | [diff] [blame] | 46 | method public void unregisterProjectionListener(); |
Enrico Granata | ae25b92 | 2017-07-07 11:28:15 -0700 | [diff] [blame] | 47 | method public void unregisterProjectionRunner(android.content.Intent); |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 48 | field public static final int PROJECTION_LONG_PRESS_VOICE_SEARCH = 2; // 0x2 |
| 49 | field public static final int PROJECTION_VOICE_SEARCH = 1; // 0x1 |
| 50 | } |
| 51 | |
| 52 | public static abstract interface CarProjectionManager.CarProjectionListener { |
| 53 | method public abstract void onVoiceAssistantRequest(boolean); |
| 54 | } |
| 55 | |
Kai | 92c8d88 | 2018-04-06 12:35:31 -0700 | [diff] [blame] | 56 | public final class VehicleAreaDoor { |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 57 | field public static final int DOOR_HOOD = 268435456; // 0x10000000 |
| 58 | field public static final int DOOR_REAR = 536870912; // 0x20000000 |
| 59 | field public static final int DOOR_ROW_1_LEFT = 1; // 0x1 |
| 60 | field public static final int DOOR_ROW_1_RIGHT = 4; // 0x4 |
| 61 | field public static final int DOOR_ROW_2_LEFT = 16; // 0x10 |
| 62 | field public static final int DOOR_ROW_2_RIGHT = 64; // 0x40 |
| 63 | field public static final int DOOR_ROW_3_LEFT = 256; // 0x100 |
| 64 | field public static final int DOOR_ROW_3_RIGHT = 1024; // 0x400 |
| 65 | } |
| 66 | |
Kai | 92c8d88 | 2018-04-06 12:35:31 -0700 | [diff] [blame] | 67 | public final class VehicleAreaMirror { |
Steve Paik | 43c04a7 | 2016-07-08 19:12:09 -0700 | [diff] [blame] | 68 | field public static final int MIRROR_DRIVER_CENTER = 4; // 0x4 |
| 69 | field public static final int MIRROR_DRIVER_LEFT = 1; // 0x1 |
| 70 | field public static final int MIRROR_DRIVER_RIGHT = 2; // 0x2 |
| 71 | } |
| 72 | |
Kai | 92c8d88 | 2018-04-06 12:35:31 -0700 | [diff] [blame] | 73 | public final class VehicleAreaSeat { |
Steve Paik | 8968e1d | 2016-10-06 20:29:37 -0700 | [diff] [blame] | 74 | field public static final int SEAT_ROW_1_CENTER = 2; // 0x2 |
| 75 | field public static final int SEAT_ROW_1_LEFT = 1; // 0x1 |
| 76 | field public static final int SEAT_ROW_1_RIGHT = 4; // 0x4 |
| 77 | field public static final int SEAT_ROW_2_CENTER = 32; // 0x20 |
| 78 | field public static final int SEAT_ROW_2_LEFT = 16; // 0x10 |
| 79 | field public static final int SEAT_ROW_2_RIGHT = 64; // 0x40 |
| 80 | field public static final int SEAT_ROW_3_CENTER = 512; // 0x200 |
| 81 | field public static final int SEAT_ROW_3_LEFT = 256; // 0x100 |
| 82 | field public static final int SEAT_ROW_3_RIGHT = 1024; // 0x400 |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 83 | } |
| 84 | |
Kai | 92c8d88 | 2018-04-06 12:35:31 -0700 | [diff] [blame] | 85 | public final class VehicleAreaType { |
| 86 | field public static final int VEHICLE_AREA_TYPE_DOOR = 4; // 0x4 |
Steve Paik | 419f5ef | 2018-06-04 14:53:47 -0700 | [diff] [blame] | 87 | field public static final int VEHICLE_AREA_TYPE_GLOBAL = 0; // 0x0 |
Kai | 92c8d88 | 2018-04-06 12:35:31 -0700 | [diff] [blame] | 88 | field public static final int VEHICLE_AREA_TYPE_MIRROR = 5; // 0x5 |
Kai | 92c8d88 | 2018-04-06 12:35:31 -0700 | [diff] [blame] | 89 | field public static final int VEHICLE_AREA_TYPE_SEAT = 3; // 0x3 |
| 90 | field public static final int VEHICLE_AREA_TYPE_WHEEL = 6; // 0x6 |
| 91 | field public static final int VEHICLE_AREA_TYPE_WINDOW = 2; // 0x2 |
| 92 | } |
| 93 | |
Scott Randolph | 5af24b5 | 2018-05-03 14:55:19 -0700 | [diff] [blame] | 94 | public final class VehicleAreaWheel { |
| 95 | field public static final int WHEEL_LEFT_FRONT = 1; // 0x1 |
| 96 | field public static final int WHEEL_LEFT_REAR = 4; // 0x4 |
| 97 | field public static final int WHEEL_RIGHT_FRONT = 2; // 0x2 |
| 98 | field public static final int WHEEL_RIGHT_REAR = 8; // 0x8 |
| 99 | field public static final int WHEEL_UNKNOWN = 0; // 0x0 |
| 100 | } |
| 101 | |
Kai | 92c8d88 | 2018-04-06 12:35:31 -0700 | [diff] [blame] | 102 | public final class VehicleAreaWindow { |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 103 | field public static final int WINDOW_FRONT_WINDSHIELD = 1; // 0x1 |
| 104 | field public static final int WINDOW_REAR_WINDSHIELD = 2; // 0x2 |
Steve Paik | 2052625 | 2018-03-29 23:14:08 -0700 | [diff] [blame] | 105 | field public static final int WINDOW_ROOF_TOP_1 = 65536; // 0x10000 |
| 106 | field public static final int WINDOW_ROOF_TOP_2 = 131072; // 0x20000 |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 107 | field public static final int WINDOW_ROW_1_LEFT = 16; // 0x10 |
Steve Paik | 2052625 | 2018-03-29 23:14:08 -0700 | [diff] [blame] | 108 | field public static final int WINDOW_ROW_1_RIGHT = 64; // 0x40 |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 109 | field public static final int WINDOW_ROW_2_LEFT = 256; // 0x100 |
Steve Paik | 2052625 | 2018-03-29 23:14:08 -0700 | [diff] [blame] | 110 | field public static final int WINDOW_ROW_2_RIGHT = 1024; // 0x400 |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 111 | field public static final int WINDOW_ROW_3_LEFT = 4096; // 0x1000 |
Steve Paik | 2052625 | 2018-03-29 23:14:08 -0700 | [diff] [blame] | 112 | field public static final int WINDOW_ROW_3_RIGHT = 16384; // 0x4000 |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 113 | } |
| 114 | |
Kai | 075297b | 2018-07-13 15:07:53 -0700 | [diff] [blame^] | 115 | public final class VehiclePropertyAccess { |
| 116 | field public static final int NONE = 0; // 0x0 |
| 117 | field public static final int READ = 1; // 0x1 |
| 118 | field public static final int READ_WRITE = 3; // 0x3 |
| 119 | field public static final int WRITE = 2; // 0x2 |
| 120 | } |
| 121 | |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 122 | } |
| 123 | |
Pavel Maltsev | ced1131 | 2018-04-03 17:30:02 -0700 | [diff] [blame] | 124 | package android.car.cluster { |
| 125 | |
| 126 | public class CarInstrumentClusterManager { |
| 127 | method public void registerCallback(java.lang.String, android.car.cluster.CarInstrumentClusterManager.Callback) throws android.car.CarNotConnectedException; |
| 128 | method public void startActivity(android.content.Intent) throws android.car.CarNotConnectedException; |
| 129 | method public void unregisterCallback(android.car.cluster.CarInstrumentClusterManager.Callback) throws android.car.CarNotConnectedException; |
| 130 | field public static final java.lang.String CATEGORY_NAVIGATION = "android.car.cluster.NAVIGATION"; |
| 131 | field public static final java.lang.String KEY_EXTRA_ACTIVITY_STATE = "android.car.cluster.ClusterActivityState"; |
| 132 | } |
| 133 | |
| 134 | public static abstract interface CarInstrumentClusterManager.Callback { |
| 135 | method public abstract void onClusterActivityStateChanged(java.lang.String, android.os.Bundle); |
| 136 | } |
| 137 | |
| 138 | } |
| 139 | |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 140 | package android.car.cluster.renderer { |
| 141 | |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 142 | public abstract class InstrumentClusterRenderer { |
| 143 | ctor public InstrumentClusterRenderer(); |
| 144 | method protected abstract android.car.cluster.renderer.NavigationRenderer createNavigationRenderer(); |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 145 | method public synchronized android.car.cluster.renderer.NavigationRenderer getNavigationRenderer(); |
| 146 | method public final synchronized void initialize(); |
| 147 | method public abstract void onCreate(android.content.Context); |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 148 | method public abstract void onStart(); |
| 149 | method public abstract void onStop(); |
| 150 | } |
| 151 | |
Pavel Maltsev | 0477e29 | 2016-05-27 12:22:36 -0700 | [diff] [blame] | 152 | public abstract class InstrumentClusterRenderingService extends android.app.Service { |
| 153 | ctor public InstrumentClusterRenderingService(); |
| 154 | method protected abstract android.car.cluster.renderer.NavigationRenderer getNavigationRenderer(); |
| 155 | method public android.os.IBinder onBind(android.content.Intent); |
Pavel Maltsev | 03cf60c | 2016-06-27 15:11:51 -0700 | [diff] [blame] | 156 | method protected void onKeyEvent(android.view.KeyEvent); |
Pavel Maltsev | 0477e29 | 2016-05-27 12:22:36 -0700 | [diff] [blame] | 157 | } |
| 158 | |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 159 | public abstract class NavigationRenderer { |
| 160 | ctor public NavigationRenderer(); |
Pavel Maltsev | 8cf8691 | 2016-04-01 18:01:51 -0700 | [diff] [blame] | 161 | method public abstract android.car.navigation.CarNavigationInstrumentCluster getNavigationProperties(); |
Dean Harding | 8099f2f | 2018-02-07 15:00:21 -0800 | [diff] [blame] | 162 | method public abstract void onEvent(int, android.os.Bundle); |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 163 | } |
| 164 | |
| 165 | } |
| 166 | |
| 167 | package android.car.content.pm { |
| 168 | |
| 169 | public class AppBlockingPackageInfo implements android.os.Parcelable { |
| 170 | ctor public AppBlockingPackageInfo(java.lang.String, int, int, int, android.content.pm.Signature[], java.lang.String[]); |
| 171 | ctor public AppBlockingPackageInfo(android.os.Parcel); |
| 172 | method public int describeContents(); |
| 173 | method public void writeToParcel(android.os.Parcel, int); |
| 174 | field public static final android.os.Parcelable.Creator<android.car.content.pm.AppBlockingPackageInfo> CREATOR; |
| 175 | field public static final int FLAG_SYSTEM_APP = 1; // 0x1 |
| 176 | field public static final int FLAG_WHOLE_ACTIVITY = 2; // 0x2 |
| 177 | field public final java.lang.String[] activities; |
| 178 | field public final int flags; |
| 179 | field public final int maxRevisionCode; |
| 180 | field public final int minRevisionCode; |
| 181 | field public final java.lang.String packageName; |
| 182 | field public final android.content.pm.Signature[] signatures; |
| 183 | } |
| 184 | |
| 185 | public class CarAppBlockingPolicy implements android.os.Parcelable { |
| 186 | ctor public CarAppBlockingPolicy(android.car.content.pm.AppBlockingPackageInfo[], android.car.content.pm.AppBlockingPackageInfo[]); |
| 187 | ctor public CarAppBlockingPolicy(android.os.Parcel); |
| 188 | method public int describeContents(); |
| 189 | method public void writeToParcel(android.os.Parcel, int); |
| 190 | field public static final android.os.Parcelable.Creator<android.car.content.pm.CarAppBlockingPolicy> CREATOR; |
| 191 | field public final android.car.content.pm.AppBlockingPackageInfo[] blacklists; |
| 192 | field public final android.car.content.pm.AppBlockingPackageInfo[] whitelists; |
| 193 | } |
| 194 | |
| 195 | public abstract class CarAppBlockingPolicyService extends android.app.Service { |
| 196 | ctor public CarAppBlockingPolicyService(); |
| 197 | method protected abstract android.car.content.pm.CarAppBlockingPolicy getAppBlockingPolicy(); |
| 198 | method public android.os.IBinder onBind(android.content.Intent); |
| 199 | field public static final java.lang.String SERVICE_INTERFACE = "android.car.content.pm.CarAppBlockingPolicyService"; |
| 200 | } |
| 201 | |
Keun-young Park | 4cf6911 | 2016-10-04 10:02:59 -0700 | [diff] [blame] | 202 | public final class CarPackageManager { |
Keun-young Park | 4727da3 | 2016-05-31 10:00:51 -0700 | [diff] [blame] | 203 | method public boolean isActivityBackedBySafeActivity(android.content.ComponentName) throws android.car.CarNotConnectedException; |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 204 | method public void setAppBlockingPolicy(java.lang.String, android.car.content.pm.CarAppBlockingPolicy, int) throws android.car.CarNotConnectedException, java.lang.IllegalArgumentException, java.lang.SecurityException; |
| 205 | field public static final int FLAG_SET_POLICY_ADD = 2; // 0x2 |
| 206 | field public static final int FLAG_SET_POLICY_REMOVE = 4; // 0x4 |
| 207 | field public static final int FLAG_SET_POLICY_WAIT_FOR_CHANGE = 1; // 0x1 |
| 208 | } |
| 209 | |
| 210 | } |
| 211 | |
Enrico Granata | 25e8946 | 2017-08-02 11:41:31 -0700 | [diff] [blame] | 212 | package android.car.diagnostic { |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 213 | |
Enrico Granata | ae25b92 | 2017-07-07 11:28:15 -0700 | [diff] [blame] | 214 | public class CarDiagnosticEvent implements android.os.Parcelable { |
| 215 | ctor public CarDiagnosticEvent(android.os.Parcel); |
| 216 | method public int describeContents(); |
| 217 | method public java.lang.Integer getFuelSystemStatus(); |
| 218 | method public java.lang.Integer getFuelType(); |
Enrico Granata | 25e8946 | 2017-08-02 11:41:31 -0700 | [diff] [blame] | 219 | method public android.car.diagnostic.CarDiagnosticEvent.CommonIgnitionMonitors getIgnitionMonitors(); |
Enrico Granata | ae25b92 | 2017-07-07 11:28:15 -0700 | [diff] [blame] | 220 | method public java.lang.Integer getSecondaryAirStatus(); |
| 221 | method public float getSystemFloatSensor(int, float); |
| 222 | method public java.lang.Float getSystemFloatSensor(int); |
| 223 | method public int getSystemIntegerSensor(int, int); |
| 224 | method public java.lang.Integer getSystemIntegerSensor(int); |
| 225 | method public float getVendorFloatSensor(int, float); |
| 226 | method public java.lang.Float getVendorFloatSensor(int); |
| 227 | method public int getVendorIntegerSensor(int, int); |
| 228 | method public java.lang.Integer getVendorIntegerSensor(int); |
Enrico Granata | ae25b92 | 2017-07-07 11:28:15 -0700 | [diff] [blame] | 229 | method public boolean isFreezeFrame(); |
| 230 | method public boolean isLiveFrame(); |
| 231 | method public void writeToJson(android.util.JsonWriter) throws java.io.IOException; |
| 232 | method public void writeToParcel(android.os.Parcel, int); |
Enrico Granata | 25e8946 | 2017-08-02 11:41:31 -0700 | [diff] [blame] | 233 | field public static final android.os.Parcelable.Creator<android.car.diagnostic.CarDiagnosticEvent> CREATOR; |
Enrico Granata | ae25b92 | 2017-07-07 11:28:15 -0700 | [diff] [blame] | 234 | field public final java.lang.String dtc; |
| 235 | field public final int frameType; |
| 236 | field public final long timestamp; |
| 237 | } |
| 238 | |
| 239 | public static class CarDiagnosticEvent.Builder { |
Enrico Granata | 25e8946 | 2017-08-02 11:41:31 -0700 | [diff] [blame] | 240 | method public android.car.diagnostic.CarDiagnosticEvent.Builder atTimestamp(long); |
| 241 | method public android.car.diagnostic.CarDiagnosticEvent build(); |
| 242 | method public static android.car.diagnostic.CarDiagnosticEvent.Builder newFreezeFrameBuilder(); |
| 243 | method public static android.car.diagnostic.CarDiagnosticEvent.Builder newLiveFrameBuilder(); |
| 244 | method public android.car.diagnostic.CarDiagnosticEvent.Builder withDtc(java.lang.String); |
| 245 | method public android.car.diagnostic.CarDiagnosticEvent.Builder withFloatValue(int, float); |
| 246 | method public android.car.diagnostic.CarDiagnosticEvent.Builder withIntValue(int, int); |
Enrico Granata | ae25b92 | 2017-07-07 11:28:15 -0700 | [diff] [blame] | 247 | } |
| 248 | |
Enrico Granata | f874771 | 2017-07-28 15:25:27 -0700 | [diff] [blame] | 249 | public static class CarDiagnosticEvent.CommonIgnitionMonitors { |
Enrico Granata | 25e8946 | 2017-08-02 11:41:31 -0700 | [diff] [blame] | 250 | method public android.car.diagnostic.CarDiagnosticEvent.CompressionIgnitionMonitors asCompressionIgnitionMonitors(); |
| 251 | method public android.car.diagnostic.CarDiagnosticEvent.SparkIgnitionMonitors asSparkIgnitionMonitors(); |
| 252 | field public final android.car.diagnostic.CarDiagnosticEvent.IgnitionMonitor components; |
| 253 | field public final android.car.diagnostic.CarDiagnosticEvent.IgnitionMonitor fuelSystem; |
| 254 | field public final android.car.diagnostic.CarDiagnosticEvent.IgnitionMonitor misfire; |
Enrico Granata | f874771 | 2017-07-28 15:25:27 -0700 | [diff] [blame] | 255 | } |
| 256 | |
Enrico Granata | 25e8946 | 2017-08-02 11:41:31 -0700 | [diff] [blame] | 257 | public static final class CarDiagnosticEvent.CompressionIgnitionMonitors extends android.car.diagnostic.CarDiagnosticEvent.CommonIgnitionMonitors { |
| 258 | field public final android.car.diagnostic.CarDiagnosticEvent.IgnitionMonitor EGROrVVT; |
| 259 | field public final android.car.diagnostic.CarDiagnosticEvent.IgnitionMonitor NMHCCatalyst; |
| 260 | field public final android.car.diagnostic.CarDiagnosticEvent.IgnitionMonitor NOxSCR; |
| 261 | field public final android.car.diagnostic.CarDiagnosticEvent.IgnitionMonitor PMFilter; |
| 262 | field public final android.car.diagnostic.CarDiagnosticEvent.IgnitionMonitor boostPressure; |
| 263 | field public final android.car.diagnostic.CarDiagnosticEvent.IgnitionMonitor exhaustGasSensor; |
Enrico Granata | f874771 | 2017-07-28 15:25:27 -0700 | [diff] [blame] | 264 | } |
| 265 | |
Enrico Granata | ae25b92 | 2017-07-07 11:28:15 -0700 | [diff] [blame] | 266 | public static final class CarDiagnosticEvent.FuelSystemStatus { |
| 267 | field public static final int CLOSED_LOOP = 2; // 0x2 |
| 268 | field public static final int CLOSED_LOOP_BUT_FEEDBACK_FAULT = 16; // 0x10 |
| 269 | field public static final int OPEN_ENGINE_LOAD_OR_DECELERATION = 4; // 0x4 |
| 270 | field public static final int OPEN_INSUFFICIENT_ENGINE_TEMPERATURE = 1; // 0x1 |
| 271 | field public static final int OPEN_SYSTEM_FAILURE = 8; // 0x8 |
| 272 | } |
| 273 | |
| 274 | public static abstract class CarDiagnosticEvent.FuelSystemStatus.Status implements java.lang.annotation.Annotation { |
| 275 | } |
| 276 | |
| 277 | public static final class CarDiagnosticEvent.FuelType { |
| 278 | field public static final int BIFUEL_RUNNING_CNG = 13; // 0xd |
| 279 | field public static final int BIFUEL_RUNNING_DIESEL = 23; // 0x17 |
| 280 | field public static final int BIFUEL_RUNNING_ELECTRIC = 15; // 0xf |
| 281 | field public static final int BIFUEL_RUNNING_ELECTRIC_AND_COMBUSTION = 16; // 0x10 |
| 282 | field public static final int BIFUEL_RUNNING_ETHANOL = 11; // 0xb |
| 283 | field public static final int BIFUEL_RUNNING_GASOLINE = 9; // 0x9 |
| 284 | field public static final int BIFUEL_RUNNING_LPG = 12; // 0xc |
| 285 | field public static final int BIFUEL_RUNNING_METHANOL = 10; // 0xa |
| 286 | field public static final int BIFUEL_RUNNING_PROPANE = 14; // 0xe |
| 287 | field public static final int CNG = 6; // 0x6 |
| 288 | field public static final int DIESEL = 4; // 0x4 |
| 289 | field public static final int ELECTRIC = 8; // 0x8 |
| 290 | field public static final int ETHANOL = 3; // 0x3 |
| 291 | field public static final int GASOLINE = 1; // 0x1 |
| 292 | field public static final int HYBRID_DIESEL = 19; // 0x13 |
| 293 | field public static final int HYBRID_ELECTRIC = 20; // 0x14 |
| 294 | field public static final int HYBRID_ETHANOL = 18; // 0x12 |
| 295 | field public static final int HYBRID_GASOLINE = 17; // 0x11 |
| 296 | field public static final int HYBRID_REGENERATIVE = 22; // 0x16 |
| 297 | field public static final int HYBRID_RUNNING_ELECTRIC_AND_COMBUSTION = 21; // 0x15 |
| 298 | field public static final int LPG = 5; // 0x5 |
| 299 | field public static final int METHANOL = 2; // 0x2 |
| 300 | field public static final int NOT_AVAILABLE = 0; // 0x0 |
| 301 | field public static final int PROPANE = 7; // 0x7 |
| 302 | } |
| 303 | |
| 304 | public static abstract class CarDiagnosticEvent.FuelType.Type implements java.lang.annotation.Annotation { |
| 305 | } |
| 306 | |
Enrico Granata | f874771 | 2017-07-28 15:25:27 -0700 | [diff] [blame] | 307 | public static final class CarDiagnosticEvent.IgnitionMonitor { |
Enrico Granata | ae25b92 | 2017-07-07 11:28:15 -0700 | [diff] [blame] | 308 | field public final boolean available; |
| 309 | field public final boolean incomplete; |
| 310 | } |
| 311 | |
Enrico Granata | ae25b92 | 2017-07-07 11:28:15 -0700 | [diff] [blame] | 312 | public static final class CarDiagnosticEvent.SecondaryAirStatus { |
| 313 | field public static final int DOWNSTREAM_OF_CATALYCIC_CONVERTER = 2; // 0x2 |
| 314 | field public static final int FROM_OUTSIDE_OR_OFF = 4; // 0x4 |
| 315 | field public static final int PUMP_ON_FOR_DIAGNOSTICS = 8; // 0x8 |
| 316 | field public static final int UPSTREAM = 1; // 0x1 |
| 317 | } |
| 318 | |
| 319 | public static abstract class CarDiagnosticEvent.SecondaryAirStatus.Status implements java.lang.annotation.Annotation { |
| 320 | } |
| 321 | |
Enrico Granata | 25e8946 | 2017-08-02 11:41:31 -0700 | [diff] [blame] | 322 | public static final class CarDiagnosticEvent.SparkIgnitionMonitors extends android.car.diagnostic.CarDiagnosticEvent.CommonIgnitionMonitors { |
| 323 | field public final android.car.diagnostic.CarDiagnosticEvent.IgnitionMonitor ACRefrigerant; |
| 324 | field public final android.car.diagnostic.CarDiagnosticEvent.IgnitionMonitor EGR; |
| 325 | field public final android.car.diagnostic.CarDiagnosticEvent.IgnitionMonitor catalyst; |
| 326 | field public final android.car.diagnostic.CarDiagnosticEvent.IgnitionMonitor evaporativeSystem; |
| 327 | field public final android.car.diagnostic.CarDiagnosticEvent.IgnitionMonitor heatedCatalyst; |
| 328 | field public final android.car.diagnostic.CarDiagnosticEvent.IgnitionMonitor oxygenSensor; |
| 329 | field public final android.car.diagnostic.CarDiagnosticEvent.IgnitionMonitor oxygenSensorHeater; |
| 330 | field public final android.car.diagnostic.CarDiagnosticEvent.IgnitionMonitor secondaryAirSystem; |
Enrico Granata | f874771 | 2017-07-28 15:25:27 -0700 | [diff] [blame] | 331 | } |
| 332 | |
Enrico Granata | ae25b92 | 2017-07-07 11:28:15 -0700 | [diff] [blame] | 333 | public final class CarDiagnosticManager { |
Enrico Granata | ae25b92 | 2017-07-07 11:28:15 -0700 | [diff] [blame] | 334 | method public boolean clearFreezeFrames(long...) throws android.car.CarNotConnectedException; |
Enrico Granata | 25e8946 | 2017-08-02 11:41:31 -0700 | [diff] [blame] | 335 | method public android.car.diagnostic.CarDiagnosticEvent getFreezeFrame(long) throws android.car.CarNotConnectedException; |
Enrico Granata | ae25b92 | 2017-07-07 11:28:15 -0700 | [diff] [blame] | 336 | method public long[] getFreezeFrameTimestamps() throws android.car.CarNotConnectedException; |
Enrico Granata | 25e8946 | 2017-08-02 11:41:31 -0700 | [diff] [blame] | 337 | method public android.car.diagnostic.CarDiagnosticEvent getLatestLiveFrame() throws android.car.CarNotConnectedException; |
Enrico Granata | 2e3b49a | 2017-07-27 14:51:52 -0700 | [diff] [blame] | 338 | method public boolean isClearFreezeFramesSupported() throws android.car.CarNotConnectedException; |
| 339 | method public boolean isFreezeFrameNotificationSupported() throws android.car.CarNotConnectedException; |
| 340 | method public boolean isGetFreezeFrameSupported() throws android.car.CarNotConnectedException; |
Enrico Granata | ae25b92 | 2017-07-07 11:28:15 -0700 | [diff] [blame] | 341 | method public boolean isLiveFrameSupported() throws android.car.CarNotConnectedException; |
Enrico Granata | 57ec270 | 2017-08-11 11:06:35 -0700 | [diff] [blame] | 342 | method public boolean isSelectiveClearFreezeFramesSupported() throws android.car.CarNotConnectedException; |
Enrico Granata | ae25b92 | 2017-07-07 11:28:15 -0700 | [diff] [blame] | 343 | method public void onCarDisconnected(); |
Enrico Granata | 25e8946 | 2017-08-02 11:41:31 -0700 | [diff] [blame] | 344 | method public boolean registerListener(android.car.diagnostic.CarDiagnosticManager.OnDiagnosticEventListener, int, int) throws android.car.CarNotConnectedException, java.lang.IllegalArgumentException; |
| 345 | method public void unregisterListener(android.car.diagnostic.CarDiagnosticManager.OnDiagnosticEventListener); |
Enrico Granata | ae25b92 | 2017-07-07 11:28:15 -0700 | [diff] [blame] | 346 | field public static final int FRAME_TYPE_FREEZE = 1; // 0x1 |
| 347 | field public static final int FRAME_TYPE_LIVE = 0; // 0x0 |
| 348 | } |
| 349 | |
| 350 | public static abstract class CarDiagnosticManager.FrameType implements java.lang.annotation.Annotation { |
| 351 | } |
| 352 | |
| 353 | public static abstract interface CarDiagnosticManager.OnDiagnosticEventListener { |
Enrico Granata | 25e8946 | 2017-08-02 11:41:31 -0700 | [diff] [blame] | 354 | method public abstract void onDiagnosticEvent(android.car.diagnostic.CarDiagnosticEvent); |
Enrico Granata | ae25b92 | 2017-07-07 11:28:15 -0700 | [diff] [blame] | 355 | } |
| 356 | |
Enrico Granata | 25e8946 | 2017-08-02 11:41:31 -0700 | [diff] [blame] | 357 | public final class FloatSensorIndex { |
| 358 | field public static final int ABSOLUTE_EVAPORATION_SYSTEM_VAPOR_PRESSURE = 58; // 0x3a |
| 359 | field public static final int ABSOLUTE_LOAD_VALUE = 48; // 0x30 |
| 360 | field public static final int ABSOLUTE_THROTTLE_POSITION_B = 51; // 0x33 |
| 361 | field public static final int ABSOLUTE_THROTTLE_POSITION_C = 52; // 0x34 |
| 362 | field public static final int ACCELERATOR_PEDAL_POSITION_D = 53; // 0x35 |
| 363 | field public static final int ACCELERATOR_PEDAL_POSITION_E = 54; // 0x36 |
| 364 | field public static final int ACCELERATOR_PEDAL_POSITION_F = 55; // 0x37 |
| 365 | field public static final int CALCULATED_ENGINE_LOAD = 0; // 0x0 |
| 366 | field public static final int CATALYST_TEMPERATURE_BANK1_SENSOR1 = 44; // 0x2c |
| 367 | field public static final int CATALYST_TEMPERATURE_BANK1_SENSOR2 = 46; // 0x2e |
| 368 | field public static final int CATALYST_TEMPERATURE_BANK2_SENSOR1 = 45; // 0x2d |
| 369 | field public static final int CATALYST_TEMPERATURE_BANK2_SENSOR2 = 47; // 0x2f |
| 370 | field public static final int COMMANDED_EVAPORATIVE_PURGE = 41; // 0x29 |
| 371 | field public static final int COMMANDED_EXHAUST_GAS_RECIRCULATION = 39; // 0x27 |
| 372 | field public static final int COMMANDED_THROTTLE_ACTUATOR = 56; // 0x38 |
| 373 | field public static final int ENGINE_COOLANT_TEMPERATURE = 1; // 0x1 |
| 374 | field public static final int ENGINE_FUEL_RATE = 70; // 0x46 |
| 375 | field public static final int ENGINE_RPM = 8; // 0x8 |
| 376 | field public static final int ETHANOL_FUEL_PERCENTAGE = 57; // 0x39 |
| 377 | field public static final int EVAPORATION_SYSTEM_VAPOR_PRESSURE = 43; // 0x2b |
| 378 | field public static final int EXHAUST_GAS_RECIRCULATION_ERROR = 40; // 0x28 |
| 379 | field public static final int FUEL_AIR_COMMANDED_EQUIVALENCE_RATIO = 49; // 0x31 |
| 380 | field public static final int FUEL_INJECTION_TIMING = 69; // 0x45 |
| 381 | field public static final int FUEL_PRESSURE = 6; // 0x6 |
| 382 | field public static final int FUEL_RAIL_GAUGE_PRESSURE = 38; // 0x26 |
| 383 | field public static final int FUEL_RAIL_PRESSURE = 37; // 0x25 |
| 384 | field public static final int FUEL_TANK_LEVEL_INPUT = 42; // 0x2a |
| 385 | field public static final int HYBRID_BATTERY_PACK_REMAINING_LIFE = 68; // 0x44 |
| 386 | field public static final int INTAKE_MANIFOLD_ABSOLUTE_PRESSURE = 7; // 0x7 |
| 387 | field public static final int LAST_SYSTEM = 70; // 0x46 |
| 388 | field public static final int LONG_TERM_FUEL_TRIM_BANK1 = 3; // 0x3 |
| 389 | field public static final int LONG_TERM_FUEL_TRIM_BANK2 = 5; // 0x5 |
| 390 | field public static final int LONG_TERM_SECONDARY_OXYGEN_SENSOR_TRIM_BANK1 = 63; // 0x3f |
| 391 | field public static final int LONG_TERM_SECONDARY_OXYGEN_SENSOR_TRIM_BANK2 = 64; // 0x40 |
| 392 | field public static final int LONG_TERM_SECONDARY_OXYGEN_SENSOR_TRIM_BANK3 = 65; // 0x41 |
| 393 | field public static final int LONG_TERM_SECONDARY_OXYGEN_SENSOR_TRIM_BANK4 = 66; // 0x42 |
| 394 | field public static final int MAF_AIR_FLOW_RATE = 11; // 0xb |
| 395 | field public static final int OXYGEN_SENSOR1_FUEL_AIR_EQUIVALENCE_RATIO = 15; // 0xf |
| 396 | field public static final int OXYGEN_SENSOR1_SHORT_TERM_FUEL_TRIM = 14; // 0xe |
| 397 | field public static final int OXYGEN_SENSOR1_VOLTAGE = 13; // 0xd |
| 398 | field public static final int OXYGEN_SENSOR2_FUEL_AIR_EQUIVALENCE_RATIO = 18; // 0x12 |
| 399 | field public static final int OXYGEN_SENSOR2_SHORT_TERM_FUEL_TRIM = 17; // 0x11 |
| 400 | field public static final int OXYGEN_SENSOR2_VOLTAGE = 16; // 0x10 |
| 401 | field public static final int OXYGEN_SENSOR3_FUEL_AIR_EQUIVALENCE_RATIO = 21; // 0x15 |
| 402 | field public static final int OXYGEN_SENSOR3_SHORT_TERM_FUEL_TRIM = 20; // 0x14 |
| 403 | field public static final int OXYGEN_SENSOR3_VOLTAGE = 19; // 0x13 |
| 404 | field public static final int OXYGEN_SENSOR4_FUEL_AIR_EQUIVALENCE_RATIO = 24; // 0x18 |
| 405 | field public static final int OXYGEN_SENSOR4_SHORT_TERM_FUEL_TRIM = 23; // 0x17 |
| 406 | field public static final int OXYGEN_SENSOR4_VOLTAGE = 22; // 0x16 |
| 407 | field public static final int OXYGEN_SENSOR5_FUEL_AIR_EQUIVALENCE_RATIO = 27; // 0x1b |
| 408 | field public static final int OXYGEN_SENSOR5_SHORT_TERM_FUEL_TRIM = 26; // 0x1a |
| 409 | field public static final int OXYGEN_SENSOR5_VOLTAGE = 25; // 0x19 |
| 410 | field public static final int OXYGEN_SENSOR6_FUEL_AIR_EQUIVALENCE_RATIO = 30; // 0x1e |
| 411 | field public static final int OXYGEN_SENSOR6_SHORT_TERM_FUEL_TRIM = 29; // 0x1d |
| 412 | field public static final int OXYGEN_SENSOR6_VOLTAGE = 28; // 0x1c |
| 413 | field public static final int OXYGEN_SENSOR7_FUEL_AIR_EQUIVALENCE_RATIO = 33; // 0x21 |
| 414 | field public static final int OXYGEN_SENSOR7_SHORT_TERM_FUEL_TRIM = 32; // 0x20 |
| 415 | field public static final int OXYGEN_SENSOR7_VOLTAGE = 31; // 0x1f |
| 416 | field public static final int OXYGEN_SENSOR8_FUEL_AIR_EQUIVALENCE_RATIO = 36; // 0x24 |
| 417 | field public static final int OXYGEN_SENSOR8_SHORT_TERM_FUEL_TRIM = 35; // 0x23 |
| 418 | field public static final int OXYGEN_SENSOR8_VOLTAGE = 34; // 0x22 |
| 419 | field public static final int RELATIVE_ACCELERATOR_PEDAL_POSITION = 67; // 0x43 |
| 420 | field public static final int RELATIVE_THROTTLE_POSITION = 50; // 0x32 |
| 421 | field public static final int SHORT_TERM_FUEL_TRIM_BANK1 = 2; // 0x2 |
| 422 | field public static final int SHORT_TERM_FUEL_TRIM_BANK2 = 4; // 0x4 |
| 423 | field public static final int SHORT_TERM_SECONDARY_OXYGEN_SENSOR_TRIM_BANK1 = 59; // 0x3b |
| 424 | field public static final int SHORT_TERM_SECONDARY_OXYGEN_SENSOR_TRIM_BANK2 = 60; // 0x3c |
| 425 | field public static final int SHORT_TERM_SECONDARY_OXYGEN_SENSOR_TRIM_BANK3 = 61; // 0x3d |
| 426 | field public static final int SHORT_TERM_SECONDARY_OXYGEN_SENSOR_TRIM_BANK4 = 62; // 0x3e |
| 427 | field public static final int THROTTLE_POSITION = 12; // 0xc |
| 428 | field public static final int TIMING_ADVANCE = 10; // 0xa |
| 429 | field public static final int VEHICLE_SPEED = 9; // 0x9 |
| 430 | field public static final int VENDOR_START = 71; // 0x47 |
| 431 | } |
| 432 | |
| 433 | public final class IntegerSensorIndex { |
| 434 | field public static final int ABSOLUTE_BAROMETRIC_PRESSURE = 11; // 0xb |
| 435 | field public static final int AMBIENT_AIR_TEMPERATURE = 13; // 0xd |
| 436 | field public static final int COMMANDED_SECONDARY_AIR_STATUS = 5; // 0x5 |
| 437 | field public static final int CONTROL_MODULE_VOLTAGE = 12; // 0xc |
| 438 | field public static final int DISTANCE_TRAVELED_SINCE_CODES_CLEARED = 10; // 0xa |
| 439 | field public static final int DISTANCE_TRAVELED_WITH_MALFUNCTION_INDICATOR_LIGHT_ON = 8; // 0x8 |
| 440 | field public static final int DRIVER_DEMAND_PERCENT_TORQUE = 24; // 0x18 |
| 441 | field public static final int ENGINE_ACTUAL_PERCENT_TORQUE = 25; // 0x19 |
| 442 | field public static final int ENGINE_OIL_TEMPERATURE = 23; // 0x17 |
| 443 | field public static final int ENGINE_PERCENT_TORQUE_DATA_IDLE = 27; // 0x1b |
| 444 | field public static final int ENGINE_PERCENT_TORQUE_DATA_POINT1 = 28; // 0x1c |
| 445 | field public static final int ENGINE_PERCENT_TORQUE_DATA_POINT2 = 29; // 0x1d |
| 446 | field public static final int ENGINE_PERCENT_TORQUE_DATA_POINT3 = 30; // 0x1e |
| 447 | field public static final int ENGINE_PERCENT_TORQUE_DATA_POINT4 = 31; // 0x1f |
| 448 | field public static final int ENGINE_REFERENCE_PERCENT_TORQUE = 26; // 0x1a |
| 449 | field public static final int FUEL_RAIL_ABSOLUTE_PRESSURE = 22; // 0x16 |
| 450 | field public static final int FUEL_SYSTEM_STATUS = 0; // 0x0 |
| 451 | field public static final int FUEL_TYPE = 21; // 0x15 |
| 452 | field public static final int IGNITION_MONITORS_SUPPORTED = 2; // 0x2 |
| 453 | field public static final int IGNITION_SPECIFIC_MONITORS = 3; // 0x3 |
| 454 | field public static final int INTAKE_AIR_TEMPERATURE = 4; // 0x4 |
| 455 | field public static final int LAST_SYSTEM = 31; // 0x1f |
| 456 | field public static final int MALFUNCTION_INDICATOR_LIGHT_ON = 1; // 0x1 |
| 457 | field public static final int MAX_AIR_FLOW_RATE_FROM_MASS_AIR_FLOW_SENSOR = 20; // 0x14 |
| 458 | field public static final int MAX_FUEL_AIR_EQUIVALENCE_RATIO = 16; // 0x10 |
| 459 | field public static final int MAX_INTAKE_MANIFOLD_ABSOLUTE_PRESSURE = 19; // 0x13 |
| 460 | field public static final int MAX_OXYGEN_SENSOR_CURRENT = 18; // 0x12 |
| 461 | field public static final int MAX_OXYGEN_SENSOR_VOLTAGE = 17; // 0x11 |
| 462 | field public static final int NUM_OXYGEN_SENSORS_PRESENT = 6; // 0x6 |
| 463 | field public static final int RUNTIME_SINCE_ENGINE_START = 7; // 0x7 |
| 464 | field public static final int TIME_SINCE_TROUBLE_CODES_CLEARED = 15; // 0xf |
| 465 | field public static final int TIME_WITH_MALFUNCTION_LIGHT_ON = 14; // 0xe |
| 466 | field public static final int VENDOR_START = 32; // 0x20 |
| 467 | field public static final int WARMUPS_SINCE_CODES_CLEARED = 9; // 0x9 |
| 468 | } |
| 469 | |
| 470 | } |
| 471 | |
Ram Periathiruvadi | 25c16f1 | 2017-11-17 16:48:37 -0800 | [diff] [blame] | 472 | package android.car.drivingstate { |
| 473 | |
| 474 | public class CarDrivingStateEvent implements android.os.Parcelable { |
| 475 | ctor public CarDrivingStateEvent(int, long); |
| 476 | method public int describeContents(); |
| 477 | method public void writeToParcel(android.os.Parcel, int); |
| 478 | field public static final android.os.Parcelable.Creator<android.car.drivingstate.CarDrivingStateEvent> CREATOR; |
| 479 | field public static final int DRIVING_STATE_IDLING = 1; // 0x1 |
| 480 | field public static final int DRIVING_STATE_MOVING = 2; // 0x2 |
| 481 | field public static final int DRIVING_STATE_PARKED = 0; // 0x0 |
| 482 | field public static final int DRIVING_STATE_UNKNOWN = -1; // 0xffffffff |
| 483 | field public final int eventValue; |
| 484 | field public final long timeStamp; |
| 485 | } |
| 486 | |
| 487 | public final class CarDrivingStateManager { |
| 488 | method public android.car.drivingstate.CarDrivingStateEvent getCurrentCarDrivingState() throws android.car.CarNotConnectedException; |
| 489 | method public synchronized void registerListener(android.car.drivingstate.CarDrivingStateManager.CarDrivingStateEventListener) throws android.car.CarNotConnectedException, java.lang.IllegalArgumentException; |
| 490 | method public synchronized void unregisterListener() throws android.car.CarNotConnectedException; |
| 491 | } |
| 492 | |
| 493 | public static abstract interface CarDrivingStateManager.CarDrivingStateEventListener { |
| 494 | method public abstract void onDrivingStateChanged(android.car.drivingstate.CarDrivingStateEvent); |
| 495 | } |
| 496 | |
| 497 | } |
| 498 | |
Enrico Granata | 25e8946 | 2017-08-02 11:41:31 -0700 | [diff] [blame] | 499 | package android.car.hardware { |
| 500 | |
Keun-young Park | 6089156 | 2016-09-28 11:16:02 -0700 | [diff] [blame] | 501 | public class CarPropertyConfig<T> implements android.os.Parcelable { |
Steve Paik | fb5f623 | 2016-03-28 10:31:25 -0700 | [diff] [blame] | 502 | method public int describeContents(); |
Steve Paik | 5bb392c | 2018-04-23 18:40:57 -0700 | [diff] [blame] | 503 | method public int getAccess(); |
Steve Paik | fb5f623 | 2016-03-28 10:31:25 -0700 | [diff] [blame] | 504 | method public int getAreaCount(); |
| 505 | method public int[] getAreaIds(); |
| 506 | method public int getAreaType(); |
Steve Paik | 5bb392c | 2018-04-23 18:40:57 -0700 | [diff] [blame] | 507 | method public int getChangeMode(); |
| 508 | method public java.util.List<java.lang.Integer> getConfigArray(); |
Steve Paik | 5bb392c | 2018-04-23 18:40:57 -0700 | [diff] [blame] | 509 | method public java.lang.String getConfigString(); |
Steve Paik | fb5f623 | 2016-03-28 10:31:25 -0700 | [diff] [blame] | 510 | method public int getFirstAndOnlyAreaId(); |
Steve Paik | 5bb392c | 2018-04-23 18:40:57 -0700 | [diff] [blame] | 511 | method public float getMaxSampleRate(); |
Steve Paik | fb5f623 | 2016-03-28 10:31:25 -0700 | [diff] [blame] | 512 | method public T getMaxValue(int); |
| 513 | method public T getMaxValue(); |
Steve Paik | 5bb392c | 2018-04-23 18:40:57 -0700 | [diff] [blame] | 514 | method public float getMinSampleRate(); |
Steve Paik | fb5f623 | 2016-03-28 10:31:25 -0700 | [diff] [blame] | 515 | method public T getMinValue(int); |
| 516 | method public T getMinValue(); |
| 517 | method public int getPropertyId(); |
| 518 | method public java.lang.Class<T> getPropertyType(); |
| 519 | method public boolean hasArea(int); |
| 520 | method public boolean isGlobalProperty(); |
Keun-young Park | 6089156 | 2016-09-28 11:16:02 -0700 | [diff] [blame] | 521 | method public static <T> android.car.hardware.CarPropertyConfig.Builder<T> newBuilder(java.lang.Class<T>, int, int, int); |
| 522 | method public static <T> android.car.hardware.CarPropertyConfig.Builder<T> newBuilder(java.lang.Class<T>, int, int); |
Steve Paik | fb5f623 | 2016-03-28 10:31:25 -0700 | [diff] [blame] | 523 | method public void writeToParcel(android.os.Parcel, int); |
| 524 | field public static final android.os.Parcelable.Creator<android.car.hardware.CarPropertyConfig> CREATOR; |
| 525 | } |
| 526 | |
Keun-young Park | 6089156 | 2016-09-28 11:16:02 -0700 | [diff] [blame] | 527 | public static class CarPropertyConfig.AreaConfig<T> implements android.os.Parcelable { |
Steve Paik | fb5f623 | 2016-03-28 10:31:25 -0700 | [diff] [blame] | 528 | method public int describeContents(); |
| 529 | method public T getMaxValue(); |
| 530 | method public T getMinValue(); |
| 531 | method public void writeToParcel(android.os.Parcel, int); |
| 532 | field public static final android.os.Parcelable.Creator<android.car.hardware.CarPropertyConfig.AreaConfig<java.lang.Object>> CREATOR; |
| 533 | } |
| 534 | |
Keun-young Park | 6089156 | 2016-09-28 11:16:02 -0700 | [diff] [blame] | 535 | public static class CarPropertyConfig.Builder<T> { |
Steve Paik | fb5f623 | 2016-03-28 10:31:25 -0700 | [diff] [blame] | 536 | method public android.car.hardware.CarPropertyConfig.Builder<T> addArea(int); |
| 537 | method public android.car.hardware.CarPropertyConfig.Builder<T> addAreaConfig(int, T, T); |
| 538 | method public android.car.hardware.CarPropertyConfig.Builder<T> addAreas(int[]); |
| 539 | method public android.car.hardware.CarPropertyConfig<T> build(); |
Steve Paik | 5bb392c | 2018-04-23 18:40:57 -0700 | [diff] [blame] | 540 | method public android.car.hardware.CarPropertyConfig.Builder<T> setAccess(int); |
| 541 | method public android.car.hardware.CarPropertyConfig.Builder<T> setChangeMode(int); |
| 542 | method public android.car.hardware.CarPropertyConfig.Builder<T> setConfigArray(java.util.ArrayList<java.lang.Integer>); |
Steve Paik | 5bb392c | 2018-04-23 18:40:57 -0700 | [diff] [blame] | 543 | method public android.car.hardware.CarPropertyConfig.Builder<T> setConfigString(java.lang.String); |
| 544 | method public android.car.hardware.CarPropertyConfig.Builder<T> setMaxSampleRate(float); |
| 545 | method public android.car.hardware.CarPropertyConfig.Builder<T> setMinSampleRate(float); |
Steve Paik | fb5f623 | 2016-03-28 10:31:25 -0700 | [diff] [blame] | 546 | } |
| 547 | |
Keun-young Park | 6089156 | 2016-09-28 11:16:02 -0700 | [diff] [blame] | 548 | public class CarPropertyValue<T> implements android.os.Parcelable { |
Steve Paik | fb5f623 | 2016-03-28 10:31:25 -0700 | [diff] [blame] | 549 | ctor public CarPropertyValue(int, int, T); |
Steve Paik | 382ceee | 2018-01-22 19:21:44 -0800 | [diff] [blame] | 550 | ctor public CarPropertyValue(int, int, int, long, T); |
Steve Paik | fb5f623 | 2016-03-28 10:31:25 -0700 | [diff] [blame] | 551 | ctor public CarPropertyValue(android.os.Parcel); |
| 552 | method public int describeContents(); |
| 553 | method public int getAreaId(); |
| 554 | method public int getPropertyId(); |
Steve Paik | 382ceee | 2018-01-22 19:21:44 -0800 | [diff] [blame] | 555 | method public int getStatus(); |
| 556 | method public long getTimestamp(); |
Steve Paik | fb5f623 | 2016-03-28 10:31:25 -0700 | [diff] [blame] | 557 | method public T getValue(); |
| 558 | method public void writeToParcel(android.os.Parcel, int); |
| 559 | field public static final android.os.Parcelable.Creator<android.car.hardware.CarPropertyValue> CREATOR; |
| 560 | } |
| 561 | |
Keun-young Park | 4cf6911 | 2016-10-04 10:02:59 -0700 | [diff] [blame] | 562 | public final class CarVendorExtensionManager { |
Keun-young Park | 6089156 | 2016-09-28 11:16:02 -0700 | [diff] [blame] | 563 | method public <E> E getGlobalProperty(java.lang.Class<E>, int) throws android.car.CarNotConnectedException; |
Pavel Maltsev | 634e1ff | 2016-07-14 15:41:26 -0700 | [diff] [blame] | 564 | method public java.util.List<android.car.hardware.CarPropertyConfig> getProperties() throws android.car.CarNotConnectedException; |
Keun-young Park | 6089156 | 2016-09-28 11:16:02 -0700 | [diff] [blame] | 565 | method public <E> E getProperty(java.lang.Class<E>, int, int) throws android.car.CarNotConnectedException; |
Kai | 396d620 | 2018-04-19 12:38:28 -0700 | [diff] [blame] | 566 | method public boolean isPropertyAvailable(int, int) throws android.car.CarNotConnectedException; |
Keun-young Park | af2cc99 | 2016-10-07 11:46:45 -0700 | [diff] [blame] | 567 | method public void registerCallback(android.car.hardware.CarVendorExtensionManager.CarVendorExtensionCallback) throws android.car.CarNotConnectedException; |
Keun-young Park | 6089156 | 2016-09-28 11:16:02 -0700 | [diff] [blame] | 568 | method public <E> void setGlobalProperty(java.lang.Class<E>, int, E) throws android.car.CarNotConnectedException; |
| 569 | method public <E> void setProperty(java.lang.Class<E>, int, int, E) throws android.car.CarNotConnectedException; |
Steve Paik | 4d25702 | 2018-04-27 13:28:31 -0700 | [diff] [blame] | 570 | method public void unregisterCallback(android.car.hardware.CarVendorExtensionManager.CarVendorExtensionCallback) throws android.car.CarNotConnectedException; |
Pavel Maltsev | 634e1ff | 2016-07-14 15:41:26 -0700 | [diff] [blame] | 571 | } |
| 572 | |
Keun-young Park | af2cc99 | 2016-10-07 11:46:45 -0700 | [diff] [blame] | 573 | public static abstract interface CarVendorExtensionManager.CarVendorExtensionCallback { |
Pavel Maltsev | 634e1ff | 2016-07-14 15:41:26 -0700 | [diff] [blame] | 574 | method public abstract void onChangeEvent(android.car.hardware.CarPropertyValue); |
| 575 | method public abstract void onErrorEvent(int, int); |
| 576 | } |
| 577 | |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 578 | } |
| 579 | |
Steve Paik | 43c04a7 | 2016-07-08 19:12:09 -0700 | [diff] [blame] | 580 | package android.car.hardware.cabin { |
| 581 | |
Keun-young Park | 4cf6911 | 2016-10-04 10:02:59 -0700 | [diff] [blame] | 582 | public final class CarCabinManager { |
Steve Paik | 43c04a7 | 2016-07-08 19:12:09 -0700 | [diff] [blame] | 583 | method public boolean getBooleanProperty(int, int) throws android.car.CarNotConnectedException; |
| 584 | method public float getFloatProperty(int, int) throws android.car.CarNotConnectedException; |
| 585 | method public int getIntProperty(int, int) throws android.car.CarNotConnectedException; |
| 586 | method public java.util.List<android.car.hardware.CarPropertyConfig> getPropertyList() throws android.car.CarNotConnectedException; |
| 587 | method public static boolean isZonedProperty(int); |
Keun-young Park | af2cc99 | 2016-10-07 11:46:45 -0700 | [diff] [blame] | 588 | method public synchronized void registerCallback(android.car.hardware.cabin.CarCabinManager.CarCabinEventCallback) throws android.car.CarNotConnectedException; |
Steve Paik | 43c04a7 | 2016-07-08 19:12:09 -0700 | [diff] [blame] | 589 | method public void setBooleanProperty(int, int, boolean) throws android.car.CarNotConnectedException; |
| 590 | method public void setFloatProperty(int, int, float) throws android.car.CarNotConnectedException; |
| 591 | method public void setIntProperty(int, int, int) throws android.car.CarNotConnectedException; |
Steve Paik | 4d25702 | 2018-04-27 13:28:31 -0700 | [diff] [blame] | 592 | method public synchronized void unregisterCallback(android.car.hardware.cabin.CarCabinManager.CarCabinEventCallback) throws android.car.CarNotConnectedException; |
| 593 | field public static final int ID_DOOR_LOCK = 371198722; // 0x16200b02 |
| 594 | field public static final int ID_DOOR_MOVE = 373295873; // 0x16400b01 |
| 595 | field public static final int ID_DOOR_POS = 373295872; // 0x16400b00 |
| 596 | field public static final int ID_MIRROR_FOLD = 287312709; // 0x11200b45 |
| 597 | field public static final int ID_MIRROR_LOCK = 287312708; // 0x11200b44 |
| 598 | field public static final int ID_MIRROR_Y_MOVE = 339741507; // 0x14400b43 |
| 599 | field public static final int ID_MIRROR_Y_POS = 339741506; // 0x14400b42 |
| 600 | field public static final int ID_MIRROR_Z_MOVE = 339741505; // 0x14400b41 |
| 601 | field public static final int ID_MIRROR_Z_POS = 339741504; // 0x14400b40 |
| 602 | field public static final int ID_SEAT_BACKREST_ANGLE_1_MOVE = 356518792; // 0x15400b88 |
| 603 | field public static final int ID_SEAT_BACKREST_ANGLE_1_POS = 356518791; // 0x15400b87 |
| 604 | field public static final int ID_SEAT_BACKREST_ANGLE_2_MOVE = 356518794; // 0x15400b8a |
| 605 | field public static final int ID_SEAT_BACKREST_ANGLE_2_POS = 356518793; // 0x15400b89 |
| 606 | field public static final int ID_SEAT_BELT_BUCKLED = 354421634; // 0x15200b82 |
| 607 | field public static final int ID_SEAT_BELT_HEIGHT_MOVE = 356518788; // 0x15400b84 |
| 608 | field public static final int ID_SEAT_BELT_HEIGHT_POS = 356518787; // 0x15400b83 |
| 609 | field public static final int ID_SEAT_DEPTH_MOVE = 356518798; // 0x15400b8e |
| 610 | field public static final int ID_SEAT_DEPTH_POS = 356518797; // 0x15400b8d |
| 611 | field public static final int ID_SEAT_FORE_AFT_MOVE = 356518790; // 0x15400b86 |
| 612 | field public static final int ID_SEAT_FORE_AFT_POS = 356518789; // 0x15400b85 |
| 613 | field public static final int ID_SEAT_HEADREST_ANGLE_MOVE = 356518808; // 0x15400b98 |
| 614 | field public static final int ID_SEAT_HEADREST_ANGLE_POS = 356518807; // 0x15400b97 |
| 615 | field public static final int ID_SEAT_HEADREST_FORE_AFT_MOVE = 356518810; // 0x15400b9a |
| 616 | field public static final int ID_SEAT_HEADREST_FORE_AFT_POS = 356518809; // 0x15400b99 |
| 617 | field public static final int ID_SEAT_HEADREST_HEIGHT_MOVE = 356518806; // 0x15400b96 |
| 618 | field public static final int ID_SEAT_HEADREST_HEIGHT_POS = 356518805; // 0x15400b95 |
| 619 | field public static final int ID_SEAT_HEIGHT_MOVE = 356518796; // 0x15400b8c |
| 620 | field public static final int ID_SEAT_HEIGHT_POS = 356518795; // 0x15400b8b |
| 621 | field public static final int ID_SEAT_LUMBAR_FORE_AFT_MOVE = 356518802; // 0x15400b92 |
| 622 | field public static final int ID_SEAT_LUMBAR_FORE_AFT_POS = 356518801; // 0x15400b91 |
| 623 | field public static final int ID_SEAT_LUMBAR_SIDE_SUPPORT_MOVE = 356518804; // 0x15400b94 |
| 624 | field public static final int ID_SEAT_LUMBAR_SIDE_SUPPORT_POS = 356518803; // 0x15400b93 |
| 625 | field public static final int ID_SEAT_MEMORY_SELECT = 356518784; // 0x15400b80 |
| 626 | field public static final int ID_SEAT_MEMORY_SET = 356518785; // 0x15400b81 |
| 627 | field public static final int ID_SEAT_TILT_MOVE = 356518800; // 0x15400b90 |
| 628 | field public static final int ID_SEAT_TILT_POS = 356518799; // 0x15400b8f |
| 629 | field public static final int ID_WINDOW_LOCK = 322964420; // 0x13400bc4 |
| 630 | field public static final int ID_WINDOW_MOVE = 322964417; // 0x13400bc1 |
| 631 | field public static final int ID_WINDOW_POS = 322964416; // 0x13400bc0 |
Steve Paik | 43c04a7 | 2016-07-08 19:12:09 -0700 | [diff] [blame] | 632 | } |
| 633 | |
Keun-young Park | af2cc99 | 2016-10-07 11:46:45 -0700 | [diff] [blame] | 634 | public static abstract interface CarCabinManager.CarCabinEventCallback { |
Steve Paik | 43c04a7 | 2016-07-08 19:12:09 -0700 | [diff] [blame] | 635 | method public abstract void onChangeEvent(android.car.hardware.CarPropertyValue); |
| 636 | method public abstract void onErrorEvent(int, int); |
| 637 | } |
| 638 | |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 639 | } |
| 640 | |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 641 | package android.car.hardware.hvac { |
| 642 | |
Keun-young Park | 4cf6911 | 2016-10-04 10:02:59 -0700 | [diff] [blame] | 643 | public final class CarHvacManager { |
Vitalii Tomkiv | 235f8ac | 2016-04-04 11:26:49 -0700 | [diff] [blame] | 644 | method public boolean getBooleanProperty(int, int) throws android.car.CarNotConnectedException; |
| 645 | method public float getFloatProperty(int, int) throws android.car.CarNotConnectedException; |
| 646 | method public int getIntProperty(int, int) throws android.car.CarNotConnectedException; |
Steve Paik | fb5f623 | 2016-03-28 10:31:25 -0700 | [diff] [blame] | 647 | method public java.util.List<android.car.hardware.CarPropertyConfig> getPropertyList() throws android.car.CarNotConnectedException; |
Enrico Granata | 5e7947b | 2018-03-15 17:18:44 -0700 | [diff] [blame] | 648 | method public boolean isPropertyAvailable(int, int) throws android.car.CarNotConnectedException; |
Keun-young Park | af2cc99 | 2016-10-07 11:46:45 -0700 | [diff] [blame] | 649 | method public synchronized void registerCallback(android.car.hardware.hvac.CarHvacManager.CarHvacEventCallback) throws android.car.CarNotConnectedException; |
Vitalii Tomkiv | 235f8ac | 2016-04-04 11:26:49 -0700 | [diff] [blame] | 650 | method public void setBooleanProperty(int, int, boolean) throws android.car.CarNotConnectedException; |
| 651 | method public void setFloatProperty(int, int, float) throws android.car.CarNotConnectedException; |
| 652 | method public void setIntProperty(int, int, int) throws android.car.CarNotConnectedException; |
Keun-young Park | 150d8de | 2016-10-07 15:48:11 -0700 | [diff] [blame] | 653 | method public synchronized void unregisterCallback(android.car.hardware.hvac.CarHvacManager.CarHvacEventCallback); |
Steve Paik | 8976fb2 | 2018-01-29 16:56:17 -0800 | [diff] [blame] | 654 | field public static final int FAN_DIRECTION_DEFROST = 4; // 0x4 |
| 655 | field public static final int FAN_DIRECTION_FACE = 1; // 0x1 |
| 656 | field public static final int FAN_DIRECTION_FLOOR = 2; // 0x2 |
Steve Paik | 4d25702 | 2018-04-27 13:28:31 -0700 | [diff] [blame] | 657 | field public static final int ID_MIRROR_DEFROSTER_ON = 339739916; // 0x1440050c |
| 658 | field public static final int ID_OUTSIDE_AIR_TEMP = 291505923; // 0x11600703 |
| 659 | field public static final int ID_STEERING_WHEEL_HEAT = 289408269; // 0x1140050d |
| 660 | field public static final int ID_TEMPERATURE_DISPLAY_UNITS = 289408270; // 0x1140050e |
| 661 | field public static final int ID_WINDOW_DEFROSTER_ON = 320865540; // 0x13200504 |
| 662 | field public static final int ID_ZONED_AC_ON = 354419973; // 0x15200505 |
| 663 | field public static final int ID_ZONED_AIR_RECIRCULATION_ON = 354419976; // 0x15200508 |
| 664 | field public static final int ID_ZONED_AUTOMATIC_MODE_ON = 354419978; // 0x1520050a |
| 665 | field public static final int ID_ZONED_DUAL_ZONE_ON = 354419977; // 0x15200509 |
| 666 | field public static final int ID_ZONED_FAN_DIRECTION = 356517121; // 0x15400501 |
| 667 | field public static final int ID_ZONED_FAN_DIRECTION_AVAILABLE = 356582673; // 0x15410511 |
| 668 | field public static final int ID_ZONED_FAN_SPEED_RPM = 356517135; // 0x1540050f |
| 669 | field public static final int ID_ZONED_FAN_SPEED_SETPOINT = 356517120; // 0x15400500 |
| 670 | field public static final int ID_ZONED_HVAC_AUTO_RECIRC_ON = 354419986; // 0x15200512 |
| 671 | field public static final int ID_ZONED_HVAC_POWER_ON = 354419984; // 0x15200510 |
| 672 | field public static final int ID_ZONED_MAX_AC_ON = 354419974; // 0x15200506 |
| 673 | field public static final int ID_ZONED_MAX_DEFROST_ON = 354419975; // 0x15200507 |
| 674 | field public static final int ID_ZONED_SEAT_TEMP = 356517131; // 0x1540050b |
| 675 | field public static final int ID_ZONED_TEMP_ACTUAL = 358614274; // 0x15600502 |
| 676 | field public static final int ID_ZONED_TEMP_SETPOINT = 358614275; // 0x15600503 |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 677 | } |
| 678 | |
Keun-young Park | af2cc99 | 2016-10-07 11:46:45 -0700 | [diff] [blame] | 679 | public static abstract interface CarHvacManager.CarHvacEventCallback { |
Steve Paik | fb5f623 | 2016-03-28 10:31:25 -0700 | [diff] [blame] | 680 | method public abstract void onChangeEvent(android.car.hardware.CarPropertyValue); |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 681 | method public abstract void onErrorEvent(int, int); |
| 682 | } |
| 683 | |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 684 | } |
| 685 | |
Steve Paik | 388d777 | 2018-02-12 10:54:51 -0800 | [diff] [blame] | 686 | package android.car.hardware.power { |
| 687 | |
| 688 | public class CarPowerManager { |
| 689 | field public static final int BOOT_REASON_DOOR_OPEN = 4; // 0x4 |
| 690 | field public static final int BOOT_REASON_DOOR_UNLOCK = 2; // 0x2 |
| 691 | field public static final int BOOT_REASON_REMOTE_START = 5; // 0x5 |
| 692 | field public static final int BOOT_REASON_TIMER = 3; // 0x3 |
| 693 | field public static final int BOOT_REASON_USER_POWER_ON = 1; // 0x1 |
| 694 | } |
| 695 | |
| 696 | public static abstract interface CarPowerManager.CarPowerStateListener { |
| 697 | method public abstract void onStateChanged(int); |
| 698 | field public static final int SHUTDOWN_CANCELLED = 0; // 0x0 |
| 699 | field public static final int SHUTDOWN_ENTER = 1; // 0x1 |
| 700 | field public static final int SUSPEND_ENTER = 2; // 0x2 |
| 701 | field public static final int SUSPEND_EXIT = 3; // 0x3 |
| 702 | } |
| 703 | |
| 704 | } |
| 705 | |
Vitalii Tomkiv | 2bd0692 | 2016-07-26 11:07:48 -0700 | [diff] [blame] | 706 | package android.car.input { |
| 707 | |
| 708 | public abstract class CarInputHandlingService extends android.app.Service { |
| 709 | ctor protected CarInputHandlingService(android.car.input.CarInputHandlingService.InputFilter[]); |
| 710 | method public android.os.IBinder onBind(android.content.Intent); |
| 711 | method protected abstract void onKeyEvent(android.view.KeyEvent, int); |
| 712 | field public static final int INPUT_CALLBACK_BINDER_CODE = 1; // 0x1 |
| 713 | field public static final java.lang.String INPUT_CALLBACK_BINDER_KEY = "callback_binder"; |
| 714 | } |
| 715 | |
| 716 | public static class CarInputHandlingService.InputFilter implements android.os.Parcelable { |
| 717 | ctor public CarInputHandlingService.InputFilter(int, int); |
| 718 | method public int describeContents(); |
| 719 | method public void writeToParcel(android.os.Parcel, int); |
| 720 | field public static final android.os.Parcelable.Creator CREATOR; |
| 721 | field public final int mKeyCode; |
| 722 | field public final int mTargetDisplay; |
| 723 | } |
| 724 | |
| 725 | } |
| 726 | |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 727 | package android.car.media { |
| 728 | |
Keun-young Park | 4cf6911 | 2016-10-04 10:02:59 -0700 | [diff] [blame] | 729 | public final class CarAudioManager { |
Scott Randolph | fa50f42 | 2018-01-05 11:53:02 -0800 | [diff] [blame] | 730 | method public android.car.media.CarAudioPatchHandle createAudioPatch(java.lang.String, int, int) throws android.car.CarNotConnectedException; |
| 731 | method public java.lang.String[] getExternalSources() throws android.car.CarNotConnectedException; |
Hongwei Wang | 33707a9 | 2018-02-12 10:29:08 -0800 | [diff] [blame] | 732 | method public int getGroupMaxVolume(int) throws android.car.CarNotConnectedException; |
| 733 | method public int getGroupMinVolume(int) throws android.car.CarNotConnectedException; |
| 734 | method public int getGroupVolume(int) throws android.car.CarNotConnectedException; |
Hongwei Wang | f830354 | 2018-02-20 14:20:21 -0800 | [diff] [blame] | 735 | method public int[] getUsagesForVolumeGroupId(int) throws android.car.CarNotConnectedException; |
Hongwei Wang | 33707a9 | 2018-02-12 10:29:08 -0800 | [diff] [blame] | 736 | method public int getVolumeGroupCount() throws android.car.CarNotConnectedException; |
| 737 | method public int getVolumeGroupIdForUsage(int) throws android.car.CarNotConnectedException; |
Hongwei Wang | bd51582 | 2018-03-01 11:35:03 -0800 | [diff] [blame] | 738 | method public void registerVolumeCallback(android.os.IBinder) throws android.car.CarNotConnectedException; |
Hongwei Wang | 7aeff99 | 2018-01-30 15:36:05 -0800 | [diff] [blame] | 739 | method public void registerVolumeChangeObserver(android.database.ContentObserver); |
Scott Randolph | fa50f42 | 2018-01-05 11:53:02 -0800 | [diff] [blame] | 740 | method public void releaseAudioPatch(android.car.media.CarAudioPatchHandle) throws android.car.CarNotConnectedException; |
| 741 | method public void setBalanceTowardRight(float) throws android.car.CarNotConnectedException; |
| 742 | method public void setFadeTowardFront(float) throws android.car.CarNotConnectedException; |
Hongwei Wang | 33707a9 | 2018-02-12 10:29:08 -0800 | [diff] [blame] | 743 | method public void setGroupVolume(int, int, int) throws android.car.CarNotConnectedException; |
Hongwei Wang | bd51582 | 2018-03-01 11:35:03 -0800 | [diff] [blame] | 744 | method public void unregisterVolumeCallback(android.os.IBinder) throws android.car.CarNotConnectedException; |
Hongwei Wang | 7aeff99 | 2018-01-30 15:36:05 -0800 | [diff] [blame] | 745 | method public void unregisterVolumeChangeObserver(android.database.ContentObserver); |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 746 | } |
| 747 | |
| 748 | } |
| 749 | |
| 750 | package android.car.navigation { |
| 751 | |
| 752 | public class CarNavigationInstrumentCluster implements android.os.Parcelable { |
| 753 | ctor public CarNavigationInstrumentCluster(android.car.navigation.CarNavigationInstrumentCluster); |
| 754 | method public static android.car.navigation.CarNavigationInstrumentCluster createCluster(int); |
| 755 | method public static android.car.navigation.CarNavigationInstrumentCluster createCustomImageCluster(int, int, int, int); |
| 756 | method public int describeContents(); |
| 757 | method public int getImageColorDepthBits(); |
| 758 | method public int getImageHeight(); |
| 759 | method public int getImageWidth(); |
Keun-young Park | 3388e78 | 2016-10-05 16:28:32 -0700 | [diff] [blame] | 760 | method public int getMinIntervalMillis(); |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 761 | method public int getType(); |
| 762 | method public boolean supportsCustomImages(); |
| 763 | method public void writeToParcel(android.os.Parcel, int); |
Keun-young Park | 3388e78 | 2016-10-05 16:28:32 -0700 | [diff] [blame] | 764 | field public static final int CLUSTER_TYPE_CUSTOM_IMAGES_SUPPORTED = 1; // 0x1 |
| 765 | field public static final int CLUSTER_TYPE_IMAGE_CODES_ONLY = 2; // 0x2 |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 766 | field public static final android.os.Parcelable.Creator<android.car.navigation.CarNavigationInstrumentCluster> CREATOR; |
| 767 | } |
| 768 | |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 769 | } |
| 770 | |
Enrico Granata | 9a916d7 | 2017-09-19 14:33:08 -0700 | [diff] [blame] | 771 | package android.car.storagemonitoring { |
| 772 | |
| 773 | public final class CarStorageMonitoringManager { |
Enrico Granata | dbda56f | 2017-12-18 11:53:22 -0800 | [diff] [blame] | 774 | method public java.util.List<android.car.storagemonitoring.IoStatsEntry> getAggregateIoStats() throws android.car.CarNotConnectedException; |
| 775 | method public java.util.List<android.car.storagemonitoring.IoStatsEntry> getBootIoStats() throws android.car.CarNotConnectedException; |
| 776 | method public java.util.List<android.car.storagemonitoring.IoStats> getIoStatsDeltas() throws android.car.CarNotConnectedException; |
Enrico Granata | 9a916d7 | 2017-09-19 14:33:08 -0700 | [diff] [blame] | 777 | method public int getPreEolIndicatorStatus() throws android.car.CarNotConnectedException; |
Enrico Granata | 1690a62 | 2018-01-22 17:34:46 -0800 | [diff] [blame] | 778 | method public long getShutdownDiskWriteAmount() throws android.car.CarNotConnectedException; |
Enrico Granata | 1172f88 | 2017-09-21 14:51:30 -0700 | [diff] [blame] | 779 | method public android.car.storagemonitoring.WearEstimate getWearEstimate() throws android.car.CarNotConnectedException; |
Enrico Granata | 286cd8e | 2017-09-25 14:46:49 -0700 | [diff] [blame] | 780 | method public java.util.List<android.car.storagemonitoring.WearEstimateChange> getWearEstimateHistory() throws android.car.CarNotConnectedException; |
Enrico Granata | dbda56f | 2017-12-18 11:53:22 -0800 | [diff] [blame] | 781 | method public void registerListener(android.car.storagemonitoring.CarStorageMonitoringManager.IoStatsListener) throws android.car.CarNotConnectedException; |
| 782 | method public void unregisterListener(android.car.storagemonitoring.CarStorageMonitoringManager.IoStatsListener) throws android.car.CarNotConnectedException; |
Enrico Granata | 43024de | 2017-11-16 17:09:37 -0800 | [diff] [blame] | 783 | field public static final java.lang.String INTENT_EXCESSIVE_IO = "android.car.storagemonitoring.EXCESSIVE_IO"; |
Enrico Granata | 9a916d7 | 2017-09-19 14:33:08 -0700 | [diff] [blame] | 784 | field public static final int PRE_EOL_INFO_NORMAL = 1; // 0x1 |
| 785 | field public static final int PRE_EOL_INFO_UNKNOWN = 0; // 0x0 |
| 786 | field public static final int PRE_EOL_INFO_URGENT = 3; // 0x3 |
| 787 | field public static final int PRE_EOL_INFO_WARNING = 2; // 0x2 |
Enrico Granata | 1690a62 | 2018-01-22 17:34:46 -0800 | [diff] [blame] | 788 | field public static final long SHUTDOWN_COST_INFO_MISSING = -1L; // 0xffffffffffffffffL |
Enrico Granata | 9a916d7 | 2017-09-19 14:33:08 -0700 | [diff] [blame] | 789 | } |
| 790 | |
Enrico Granata | dbda56f | 2017-12-18 11:53:22 -0800 | [diff] [blame] | 791 | public static abstract interface CarStorageMonitoringManager.IoStatsListener { |
| 792 | method public abstract void onSnapshot(android.car.storagemonitoring.IoStats); |
| 793 | } |
| 794 | |
| 795 | public class IoStats implements android.os.Parcelable { |
| 796 | ctor public IoStats(java.util.List<android.car.storagemonitoring.IoStatsEntry>, long); |
| 797 | ctor public IoStats(android.os.Parcel); |
| 798 | ctor public IoStats(org.json.JSONObject) throws org.json.JSONException; |
| 799 | method public int describeContents(); |
| 800 | method public android.car.storagemonitoring.IoStatsEntry.Metrics getBackgroundTotals(); |
| 801 | method public android.car.storagemonitoring.IoStatsEntry.Metrics getForegroundTotals(); |
| 802 | method public java.util.List<android.car.storagemonitoring.IoStatsEntry> getStats(); |
| 803 | method public long getTimestamp(); |
| 804 | method public android.car.storagemonitoring.IoStatsEntry.Metrics getTotals(); |
| 805 | method public android.car.storagemonitoring.IoStatsEntry getUserIdStats(int); |
| 806 | method public void writeToJson(android.util.JsonWriter) throws java.io.IOException; |
| 807 | method public void writeToParcel(android.os.Parcel, int); |
| 808 | field public static final android.os.Parcelable.Creator<android.car.storagemonitoring.IoStats> CREATOR; |
| 809 | } |
| 810 | |
| 811 | public final class IoStatsEntry implements android.os.Parcelable { |
| 812 | ctor public IoStatsEntry(int, long, android.car.storagemonitoring.IoStatsEntry.Metrics, android.car.storagemonitoring.IoStatsEntry.Metrics); |
| 813 | ctor public IoStatsEntry(android.os.Parcel); |
| 814 | ctor public IoStatsEntry(android.car.storagemonitoring.UidIoRecord, long); |
| 815 | ctor public IoStatsEntry(org.json.JSONObject) throws org.json.JSONException; |
| 816 | method public int describeContents(); |
| 817 | method public void writeToJson(android.util.JsonWriter) throws java.io.IOException; |
| 818 | method public void writeToParcel(android.os.Parcel, int); |
| 819 | field public static final android.os.Parcelable.Creator<android.car.storagemonitoring.IoStatsEntry> CREATOR; |
| 820 | field public final android.car.storagemonitoring.IoStatsEntry.Metrics background; |
| 821 | field public final android.car.storagemonitoring.IoStatsEntry.Metrics foreground; |
| 822 | field public final long runtimeMillis; |
| 823 | field public final int uid; |
| 824 | } |
| 825 | |
| 826 | public static final class IoStatsEntry.Metrics implements android.os.Parcelable { |
| 827 | ctor public IoStatsEntry.Metrics(long, long, long, long, long); |
| 828 | ctor public IoStatsEntry.Metrics(android.os.Parcel); |
| 829 | ctor public IoStatsEntry.Metrics(org.json.JSONObject) throws org.json.JSONException; |
| 830 | method public int describeContents(); |
| 831 | method public void writeToJson(android.util.JsonWriter) throws java.io.IOException; |
| 832 | method public void writeToParcel(android.os.Parcel, int); |
| 833 | field public static final android.os.Parcelable.Creator<android.car.storagemonitoring.IoStatsEntry.Metrics> CREATOR; |
| 834 | field public final long bytesRead; |
| 835 | field public final long bytesReadFromStorage; |
| 836 | field public final long bytesWritten; |
| 837 | field public final long bytesWrittenToStorage; |
| 838 | field public final long fsyncCalls; |
Enrico Granata | 7dce379 | 2017-11-09 14:13:28 -0800 | [diff] [blame] | 839 | } |
| 840 | |
Enrico Granata | 1690a62 | 2018-01-22 17:34:46 -0800 | [diff] [blame] | 841 | public class LifetimeWriteInfo implements android.os.Parcelable { |
| 842 | ctor public LifetimeWriteInfo(java.lang.String, java.lang.String, long); |
| 843 | ctor public LifetimeWriteInfo(android.os.Parcel); |
| 844 | ctor public LifetimeWriteInfo(org.json.JSONObject) throws org.json.JSONException; |
| 845 | method public int describeContents(); |
| 846 | method public void writeToJson(android.util.JsonWriter) throws java.io.IOException; |
| 847 | method public void writeToParcel(android.os.Parcel, int); |
| 848 | field public static final android.os.Parcelable.Creator<android.car.storagemonitoring.IoStats> CREATOR; |
| 849 | field public final java.lang.String fstype; |
| 850 | field public final java.lang.String partition; |
| 851 | field public final long writtenBytes; |
| 852 | } |
| 853 | |
Enrico Granata | 7e0150d | 2017-11-06 17:20:17 -0800 | [diff] [blame] | 854 | public final class UidIoRecord { |
| 855 | ctor public UidIoRecord(int, long, long, long, long, long, long, long, long, long, long); |
Enrico Granata | a97fce2 | 2017-10-27 14:57:34 -0700 | [diff] [blame] | 856 | field public final long background_fsync; |
| 857 | field public final long background_rchar; |
| 858 | field public final long background_read_bytes; |
| 859 | field public final long background_wchar; |
| 860 | field public final long background_write_bytes; |
| 861 | field public final long foreground_fsync; |
| 862 | field public final long foreground_rchar; |
| 863 | field public final long foreground_read_bytes; |
| 864 | field public final long foreground_wchar; |
| 865 | field public final long foreground_write_bytes; |
| 866 | field public final int uid; |
| 867 | } |
| 868 | |
Enrico Granata | 671e68d | 2017-09-20 10:16:22 -0700 | [diff] [blame] | 869 | public class WearEstimate implements android.os.Parcelable { |
| 870 | ctor public WearEstimate(int, int); |
| 871 | ctor public WearEstimate(android.os.Parcel); |
| 872 | ctor public WearEstimate(android.util.JsonReader) throws java.io.IOException; |
| 873 | method public int describeContents(); |
| 874 | method public void writeToJson(android.util.JsonWriter) throws java.io.IOException; |
| 875 | method public void writeToParcel(android.os.Parcel, int); |
| 876 | field public static final android.os.Parcelable.Creator<android.car.storagemonitoring.WearEstimate> CREATOR; |
| 877 | field public static final int UNKNOWN = -1; // 0xffffffff |
| 878 | field public final int typeA; |
| 879 | field public final int typeB; |
| 880 | } |
| 881 | |
| 882 | public class WearEstimateChange implements android.os.Parcelable { |
Enrico Granata | 8621775 | 2017-10-31 13:42:55 -0700 | [diff] [blame] | 883 | ctor public WearEstimateChange(android.car.storagemonitoring.WearEstimate, android.car.storagemonitoring.WearEstimate, long, java.time.Instant, boolean); |
Enrico Granata | 671e68d | 2017-09-20 10:16:22 -0700 | [diff] [blame] | 884 | ctor public WearEstimateChange(android.os.Parcel); |
| 885 | method public int describeContents(); |
| 886 | method public void writeToParcel(android.os.Parcel, int); |
| 887 | field public static final android.os.Parcelable.Creator<android.car.storagemonitoring.WearEstimateChange> CREATOR; |
Enrico Granata | 8621775 | 2017-10-31 13:42:55 -0700 | [diff] [blame] | 888 | field public final java.time.Instant dateAtChange; |
Enrico Granata | 671e68d | 2017-09-20 10:16:22 -0700 | [diff] [blame] | 889 | field public final boolean isAcceptableDegradation; |
| 890 | field public final android.car.storagemonitoring.WearEstimate newEstimate; |
| 891 | field public final android.car.storagemonitoring.WearEstimate oldEstimate; |
| 892 | field public final long uptimeAtChange; |
| 893 | } |
| 894 | |
Enrico Granata | 9a916d7 | 2017-09-19 14:33:08 -0700 | [diff] [blame] | 895 | } |
| 896 | |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 897 | package android.car.test { |
| 898 | |
| 899 | public class CarTestManagerBinderWrapper { |
| 900 | ctor public CarTestManagerBinderWrapper(android.os.IBinder); |
| 901 | method public void onCarDisconnected(); |
| 902 | field public final android.os.IBinder binder; |
| 903 | } |
| 904 | |
| 905 | } |
| 906 | |
Asaf Rosenfeld | 39e4f03 | 2017-09-16 11:33:50 -0700 | [diff] [blame] | 907 | package android.car.vms { |
| 908 | |
Asaf Rosenfeld | 908811e | 2018-01-22 09:13:47 -0800 | [diff] [blame] | 909 | public final class VmsAvailableLayers implements android.os.Parcelable { |
| 910 | ctor public VmsAvailableLayers(java.util.Set<android.car.vms.VmsAssociatedLayer>, int); |
| 911 | method public int describeContents(); |
| 912 | method public java.util.Set<android.car.vms.VmsAssociatedLayer> getAssociatedLayers(); |
| 913 | method public int getSequence(); |
| 914 | method public void writeToParcel(android.os.Parcel, int); |
| 915 | field public static final android.os.Parcelable.Creator<android.car.vms.VmsAvailableLayers> CREATOR; |
| 916 | } |
| 917 | |
Asaf Rosenfeld | 39e4f03 | 2017-09-16 11:33:50 -0700 | [diff] [blame] | 918 | public final class VmsLayer implements android.os.Parcelable { |
| 919 | ctor public VmsLayer(int, int, int); |
| 920 | method public int describeContents(); |
| 921 | method public int getSubtype(); |
| 922 | method public int getType(); |
| 923 | method public int getVersion(); |
| 924 | method public void writeToParcel(android.os.Parcel, int); |
| 925 | field public static final android.os.Parcelable.Creator<android.car.vms.VmsLayer> CREATOR; |
| 926 | } |
| 927 | |
| 928 | public final class VmsLayerDependency implements android.os.Parcelable { |
| 929 | ctor public VmsLayerDependency(android.car.vms.VmsLayer, java.util.Set<android.car.vms.VmsLayer>); |
| 930 | ctor public VmsLayerDependency(android.car.vms.VmsLayer); |
| 931 | method public int describeContents(); |
| 932 | method public java.util.Set<android.car.vms.VmsLayer> getDependencies(); |
| 933 | method public android.car.vms.VmsLayer getLayer(); |
| 934 | method public void writeToParcel(android.os.Parcel, int); |
| 935 | field public static final android.os.Parcelable.Creator<android.car.vms.VmsLayerDependency> CREATOR; |
| 936 | } |
| 937 | |
| 938 | public final class VmsLayersOffering implements android.os.Parcelable { |
| 939 | ctor public VmsLayersOffering(java.util.Set<android.car.vms.VmsLayerDependency>, int); |
| 940 | method public int describeContents(); |
| 941 | method public java.util.Set<android.car.vms.VmsLayerDependency> getDependencies(); |
| 942 | method public int getPublisherId(); |
| 943 | method public void writeToParcel(android.os.Parcel, int); |
| 944 | field public static final android.os.Parcelable.Creator<android.car.vms.VmsLayersOffering> CREATOR; |
| 945 | } |
| 946 | |
| 947 | public final class VmsOperationRecorder { |
| 948 | ctor public VmsOperationRecorder(android.car.vms.VmsOperationRecorder.Writer); |
| 949 | method public void addHalSubscription(int, android.car.vms.VmsLayer); |
| 950 | method public void addPromiscuousSubscription(int); |
| 951 | method public void addSubscription(int, android.car.vms.VmsLayer); |
| 952 | method public static android.car.vms.VmsOperationRecorder get(); |
| 953 | method public void getPublisherId(int); |
| 954 | method public void removeHalSubscription(int, android.car.vms.VmsLayer); |
| 955 | method public void removePromiscuousSubscription(int); |
| 956 | method public void removeSubscription(int, android.car.vms.VmsLayer); |
| 957 | method public void setHalPublisherLayersOffering(android.car.vms.VmsLayersOffering); |
| 958 | method public void setLayersOffering(android.car.vms.VmsLayersOffering); |
| 959 | method public void setPublisherLayersOffering(android.car.vms.VmsLayersOffering); |
| 960 | method public void startMonitoring(); |
| 961 | method public void stopMonitoring(); |
| 962 | method public void subscribe(android.car.vms.VmsLayer); |
| 963 | method public void subscribe(android.car.vms.VmsLayer, int); |
| 964 | method public void unsubscribe(android.car.vms.VmsLayer); |
| 965 | method public void unsubscribe(android.car.vms.VmsLayer, int); |
| 966 | } |
| 967 | |
Asaf Rosenfeld | 39e4f03 | 2017-09-16 11:33:50 -0700 | [diff] [blame] | 968 | public abstract class VmsPublisherClientService extends android.app.Service { |
| 969 | ctor public VmsPublisherClientService(); |
| 970 | method public final int getPublisherId(byte[]); |
| 971 | method public final android.car.vms.VmsSubscriptionState getSubscriptions(); |
Asaf Rosenfeld | c2faf15 | 2018-01-31 13:59:06 -0800 | [diff] [blame] | 972 | method public android.os.IBinder onBind(android.content.Intent); |
Asaf Rosenfeld | 39e4f03 | 2017-09-16 11:33:50 -0700 | [diff] [blame] | 973 | method protected abstract void onVmsPublisherServiceReady(); |
| 974 | method public abstract void onVmsSubscriptionChange(android.car.vms.VmsSubscriptionState); |
| 975 | method public final void publish(android.car.vms.VmsLayer, int, byte[]); |
| 976 | method public final void setLayersOffering(android.car.vms.VmsLayersOffering); |
| 977 | } |
| 978 | |
| 979 | public final class VmsSubscriberManager { |
Anna Linetsky | 40f1ded | 2018-05-07 16:37:01 -0700 | [diff] [blame] | 980 | method public void clearVmsSubscriberClientCallback() throws android.car.CarNotConnectedException; |
Asaf Rosenfeld | 908811e | 2018-01-22 09:13:47 -0800 | [diff] [blame] | 981 | method public android.car.vms.VmsAvailableLayers getAvailableLayers() throws android.car.CarNotConnectedException, java.lang.IllegalStateException; |
Asaf Rosenfeld | 39e4f03 | 2017-09-16 11:33:50 -0700 | [diff] [blame] | 982 | method public byte[] getPublisherInfo(int) throws android.car.CarNotConnectedException, java.lang.IllegalStateException; |
Anna Linetsky | 40f1ded | 2018-05-07 16:37:01 -0700 | [diff] [blame] | 983 | method public void setVmsSubscriberClientCallback(java.util.concurrent.Executor, android.car.vms.VmsSubscriberManager.VmsSubscriberClientCallback) throws android.car.CarNotConnectedException; |
Asaf Rosenfeld | 39e4f03 | 2017-09-16 11:33:50 -0700 | [diff] [blame] | 984 | method public void startMonitoring() throws android.car.CarNotConnectedException; |
| 985 | method public void stopMonitoring(); |
| 986 | method public void subscribe(android.car.vms.VmsLayer) throws android.car.CarNotConnectedException; |
| 987 | method public void subscribe(android.car.vms.VmsLayer, int) throws android.car.CarNotConnectedException; |
Asaf Rosenfeld | 39e4f03 | 2017-09-16 11:33:50 -0700 | [diff] [blame] | 988 | method public void unsubscribe(android.car.vms.VmsLayer); |
| 989 | method public void unsubscribe(android.car.vms.VmsLayer, int); |
| 990 | } |
| 991 | |
| 992 | public static abstract interface VmsSubscriberManager.VmsSubscriberClientCallback { |
Asaf Rosenfeld | 908811e | 2018-01-22 09:13:47 -0800 | [diff] [blame] | 993 | method public abstract void onLayersAvailabilityChanged(android.car.vms.VmsAvailableLayers); |
Asaf Rosenfeld | 39e4f03 | 2017-09-16 11:33:50 -0700 | [diff] [blame] | 994 | method public abstract void onVmsMessageReceived(android.car.vms.VmsLayer, byte[]); |
| 995 | } |
| 996 | |
Asaf Rosenfeld | 39e4f03 | 2017-09-16 11:33:50 -0700 | [diff] [blame] | 997 | } |
| 998 | |