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