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