blob: d8f37e6cbb946b13d058c49bfd5cfe686cace55d [file] [log] [blame]
Tor Norbye5e9618a2019-01-04 21:33:09 -08001// Signature format: 2.0
Vitalii Tomkiv280b5722016-03-17 16:17:21 -07002package android.car {
3
Keun-young Park4cf69112016-10-04 10:02:59 -07004 public final class Car {
Tor Norbye5e9618a2019-01-04 21:33:09 -08005 field public static final String CABIN_SERVICE = "cabin";
6 field public static final String CAR_DRIVING_STATE_SERVICE = "drivingstate";
Roberto Perez7b494e32018-12-19 18:19:28 -08007 field public static final String CAR_EXTRA_CLUSTER_ACTIVITY_STATE = "android.car.cluster.ClusterActivityState";
Tor Norbye5e9618a2019-01-04 21:33:09 -08008 field public static final String CAR_TRUST_AGENT_ENROLLMENT_SERVICE = "trust_enroll";
9 field public static final String DIAGNOSTIC_SERVICE = "diagnostic";
10 field public static final String HVAC_SERVICE = "hvac";
11 field public static final String PERMISSION_CAR_DIAGNOSTIC_CLEAR = "android.car.permission.CLEAR_CAR_DIAGNOSTICS";
12 field public static final String PERMISSION_CAR_DIAGNOSTIC_READ_ALL = "android.car.permission.CAR_DIAGNOSTICS";
13 field public static final String PERMISSION_CAR_DRIVING_STATE = "android.car.permission.CAR_DRIVING_STATE";
14 field public static final String PERMISSION_CAR_DYNAMICS_STATE = "android.car.permission.CAR_DYNAMICS_STATE";
15 field public static final String PERMISSION_CAR_ENGINE_DETAILED = "android.car.permission.CAR_ENGINE_DETAILED";
16 field public static final String PERMISSION_CAR_ENROLL_TRUST = "android.car.permission.CAR_ENROLL_TRUST";
17 field public static final String PERMISSION_CAR_INSTRUMENT_CLUSTER_CONTROL = "android.car.permission.CAR_INSTRUMENT_CLUSTER_CONTROL";
18 field public static final String PERMISSION_CAR_POWER = "android.car.permission.CAR_POWER";
19 field public static final String PERMISSION_CAR_PROJECTION = "android.car.permission.CAR_PROJECTION";
20 field public static final String PERMISSION_CAR_TEST_SERVICE = "android.car.permission.CAR_TEST_SERVICE";
21 field public static final String PERMISSION_CONTROL_APP_BLOCKING = "android.car.permission.CONTROL_APP_BLOCKING";
22 field public static final String PERMISSION_CONTROL_CAR_CLIMATE = "android.car.permission.CONTROL_CAR_CLIMATE";
23 field public static final String PERMISSION_CONTROL_CAR_DOORS = "android.car.permission.CONTROL_CAR_DOORS";
24 field public static final String PERMISSION_CONTROL_CAR_MIRRORS = "android.car.permission.CONTROL_CAR_MIRRORS";
25 field public static final String PERMISSION_CONTROL_CAR_SEATS = "android.car.permission.CONTROL_CAR_SEATS";
26 field public static final String PERMISSION_CONTROL_CAR_WINDOWS = "android.car.permission.CONTROL_CAR_WINDOWS";
27 field public static final String PERMISSION_CONTROL_EXTERIOR_LIGHTS = "android.car.permission.CONTROL_CAR_EXTERIOR_LIGHTS";
28 field public static final String PERMISSION_EXTERIOR_LIGHTS = "android.car.permission.CAR_EXTERIOR_LIGHTS";
29 field public static final String PERMISSION_MILEAGE = "android.car.permission.CAR_MILEAGE";
30 field @Deprecated public static final String PERMISSION_MOCK_VEHICLE_HAL = "android.car.permission.CAR_MOCK_VEHICLE_HAL";
31 field public static final String PERMISSION_STORAGE_MONITORING = "android.car.permission.STORAGE_MONITORING";
32 field public static final String PERMISSION_TIRES = "android.car.permission.CAR_TIRES";
33 field public static final String PERMISSION_VENDOR_EXTENSION = "android.car.permission.CAR_VENDOR_EXTENSION";
34 field public static final String PERMISSION_VMS_PUBLISHER = "android.car.permission.VMS_PUBLISHER";
35 field public static final String PERMISSION_VMS_SUBSCRIBER = "android.car.permission.VMS_SUBSCRIBER";
36 field public static final String POWER_SERVICE = "power";
37 field public static final String PROJECTION_SERVICE = "projection";
38 field public static final String PROPERTY_SERVICE = "property";
39 field public static final String STORAGE_MONITORING_SERVICE = "storage_monitoring";
40 field public static final String TEST_SERVICE = "car-service-test";
41 field public static final String VENDOR_EXTENSION_SERVICE = "vendor_extension";
42 field public static final String VMS_SUBSCRIBER_SERVICE = "vehicle_map_subscriber_service";
Vitalii Tomkiv280b5722016-03-17 16:17:21 -070043 }
44
Keun-young Park4cf69112016-10-04 10:02:59 -070045 public final class CarProjectionManager {
Vitalii Tomkiv280b5722016-03-17 16:17:21 -070046 method public void onCarDisconnected();
Justin Pauporeccc75a32019-02-12 18:20:48 -080047 method public void registerProjectionListener(android.car.CarProjectionManager.CarProjectionListener, int);
48 method public void registerProjectionRunner(android.content.Intent);
Justin Paupore44985ba2019-01-30 18:53:41 -080049 method public boolean releaseBluetoothProfileInhibit(android.bluetooth.BluetoothDevice, int, android.os.IBinder);
50 method public boolean requestBluetoothProfileInhibit(android.bluetooth.BluetoothDevice, int, android.os.IBinder);
Pavel Maltseva1ac7fc2018-09-14 14:19:34 -070051 method public void startProjectionAccessPoint(android.car.CarProjectionManager.ProjectionAccessPointCallback);
52 method public void stopProjectionAccessPoint();
Gene Karshenboymbeab1352017-06-22 15:58:31 -070053 method public void unregisterProjectionListener();
Enrico Granataae25b922017-07-07 11:28:15 -070054 method public void unregisterProjectionRunner(android.content.Intent);
Vitalii Tomkiv280b5722016-03-17 16:17:21 -070055 field public static final int PROJECTION_LONG_PRESS_VOICE_SEARCH = 2; // 0x2
56 field public static final int PROJECTION_VOICE_SEARCH = 1; // 0x1
57 }
58
Tor Norbye5e9618a2019-01-04 21:33:09 -080059 public static interface CarProjectionManager.CarProjectionListener {
60 method public void onVoiceAssistantRequest(boolean);
Vitalii Tomkiv280b5722016-03-17 16:17:21 -070061 }
62
Tor Norbye5e9618a2019-01-04 21:33:09 -080063 public abstract static class CarProjectionManager.ProjectionAccessPointCallback {
Pavel Maltseva1ac7fc2018-09-14 14:19:34 -070064 ctor public CarProjectionManager.ProjectionAccessPointCallback();
65 method public void onFailed(int);
66 method public void onStarted(android.net.wifi.WifiConfiguration);
67 method public void onStopped();
68 field public static final int ERROR_GENERIC = 2; // 0x2
69 field public static final int ERROR_INCOMPATIBLE_MODE = 3; // 0x3
70 field public static final int ERROR_NO_CHANNEL = 1; // 0x1
71 field public static final int ERROR_TETHERING_DISALLOWED = 4; // 0x4
72 }
73
Kai92c8d882018-04-06 12:35:31 -070074 public final class VehicleAreaDoor {
Vitalii Tomkiv280b5722016-03-17 16:17:21 -070075 field public static final int DOOR_HOOD = 268435456; // 0x10000000
76 field public static final int DOOR_REAR = 536870912; // 0x20000000
77 field public static final int DOOR_ROW_1_LEFT = 1; // 0x1
78 field public static final int DOOR_ROW_1_RIGHT = 4; // 0x4
79 field public static final int DOOR_ROW_2_LEFT = 16; // 0x10
80 field public static final int DOOR_ROW_2_RIGHT = 64; // 0x40
81 field public static final int DOOR_ROW_3_LEFT = 256; // 0x100
82 field public static final int DOOR_ROW_3_RIGHT = 1024; // 0x400
83 }
84
Kai92c8d882018-04-06 12:35:31 -070085 public final class VehicleAreaMirror {
Steve Paik43c04a72016-07-08 19:12:09 -070086 field public static final int MIRROR_DRIVER_CENTER = 4; // 0x4
87 field public static final int MIRROR_DRIVER_LEFT = 1; // 0x1
88 field public static final int MIRROR_DRIVER_RIGHT = 2; // 0x2
89 }
90
Kai92c8d882018-04-06 12:35:31 -070091 public final class VehicleAreaSeat {
Steve Paik8968e1d2016-10-06 20:29:37 -070092 field public static final int SEAT_ROW_1_CENTER = 2; // 0x2
93 field public static final int SEAT_ROW_1_LEFT = 1; // 0x1
94 field public static final int SEAT_ROW_1_RIGHT = 4; // 0x4
95 field public static final int SEAT_ROW_2_CENTER = 32; // 0x20
96 field public static final int SEAT_ROW_2_LEFT = 16; // 0x10
97 field public static final int SEAT_ROW_2_RIGHT = 64; // 0x40
98 field public static final int SEAT_ROW_3_CENTER = 512; // 0x200
99 field public static final int SEAT_ROW_3_LEFT = 256; // 0x100
100 field public static final int SEAT_ROW_3_RIGHT = 1024; // 0x400
Vitalii Tomkiv280b5722016-03-17 16:17:21 -0700101 }
102
Kai92c8d882018-04-06 12:35:31 -0700103 public final class VehicleAreaType {
104 field public static final int VEHICLE_AREA_TYPE_DOOR = 4; // 0x4
Steve Paik419f5ef2018-06-04 14:53:47 -0700105 field public static final int VEHICLE_AREA_TYPE_GLOBAL = 0; // 0x0
Kai92c8d882018-04-06 12:35:31 -0700106 field public static final int VEHICLE_AREA_TYPE_MIRROR = 5; // 0x5
Kai92c8d882018-04-06 12:35:31 -0700107 field public static final int VEHICLE_AREA_TYPE_SEAT = 3; // 0x3
108 field public static final int VEHICLE_AREA_TYPE_WHEEL = 6; // 0x6
109 field public static final int VEHICLE_AREA_TYPE_WINDOW = 2; // 0x2
110 }
111
Scott Randolph5af24b52018-05-03 14:55:19 -0700112 public final class VehicleAreaWheel {
113 field public static final int WHEEL_LEFT_FRONT = 1; // 0x1
114 field public static final int WHEEL_LEFT_REAR = 4; // 0x4
115 field public static final int WHEEL_RIGHT_FRONT = 2; // 0x2
116 field public static final int WHEEL_RIGHT_REAR = 8; // 0x8
117 field public static final int WHEEL_UNKNOWN = 0; // 0x0
118 }
119
Kai92c8d882018-04-06 12:35:31 -0700120 public final class VehicleAreaWindow {
Vitalii Tomkiv280b5722016-03-17 16:17:21 -0700121 field public static final int WINDOW_FRONT_WINDSHIELD = 1; // 0x1
122 field public static final int WINDOW_REAR_WINDSHIELD = 2; // 0x2
Steve Paik20526252018-03-29 23:14:08 -0700123 field public static final int WINDOW_ROOF_TOP_1 = 65536; // 0x10000
124 field public static final int WINDOW_ROOF_TOP_2 = 131072; // 0x20000
Vitalii Tomkiv280b5722016-03-17 16:17:21 -0700125 field public static final int WINDOW_ROW_1_LEFT = 16; // 0x10
Steve Paik20526252018-03-29 23:14:08 -0700126 field public static final int WINDOW_ROW_1_RIGHT = 64; // 0x40
Vitalii Tomkiv280b5722016-03-17 16:17:21 -0700127 field public static final int WINDOW_ROW_2_LEFT = 256; // 0x100
Steve Paik20526252018-03-29 23:14:08 -0700128 field public static final int WINDOW_ROW_2_RIGHT = 1024; // 0x400
Vitalii Tomkiv280b5722016-03-17 16:17:21 -0700129 field public static final int WINDOW_ROW_3_LEFT = 4096; // 0x1000
Steve Paik20526252018-03-29 23:14:08 -0700130 field public static final int WINDOW_ROW_3_RIGHT = 16384; // 0x4000
Vitalii Tomkiv280b5722016-03-17 16:17:21 -0700131 }
132
Kai075297b2018-07-13 15:07:53 -0700133 public final class VehiclePropertyAccess {
134 field public static final int NONE = 0; // 0x0
135 field public static final int READ = 1; // 0x1
136 field public static final int READ_WRITE = 3; // 0x3
137 field public static final int WRITE = 2; // 0x2
138 }
139
Vitalii Tomkiv280b5722016-03-17 16:17:21 -0700140}
141
Pavel Maltsevced11312018-04-03 17:30:02 -0700142package android.car.cluster {
143
Roberto Perez7b494e32018-12-19 18:19:28 -0800144 @Deprecated public class CarInstrumentClusterManager {
Justin Pauporeccc75a32019-02-12 18:20:48 -0800145 method @Deprecated public void registerCallback(String, android.car.cluster.CarInstrumentClusterManager.Callback);
146 method @Deprecated public void startActivity(android.content.Intent);
147 method @Deprecated public void unregisterCallback(android.car.cluster.CarInstrumentClusterManager.Callback);
Roberto Perez7b494e32018-12-19 18:19:28 -0800148 field @Deprecated public static final String CATEGORY_NAVIGATION = "android.car.cluster.NAVIGATION";
149 field @Deprecated public static final String KEY_EXTRA_ACTIVITY_STATE = "android.car.cluster.ClusterActivityState";
Pavel Maltsevced11312018-04-03 17:30:02 -0700150 }
151
Roberto Perez7b494e32018-12-19 18:19:28 -0800152 @Deprecated public static interface CarInstrumentClusterManager.Callback {
153 method @Deprecated public void onClusterActivityStateChanged(String, android.os.Bundle);
Pavel Maltsevced11312018-04-03 17:30:02 -0700154 }
155
156}
157
Vitalii Tomkiv280b5722016-03-17 16:17:21 -0700158package android.car.cluster.renderer {
159
Roberto Perez7b494e32018-12-19 18:19:28 -0800160 @Deprecated public abstract class InstrumentClusterRenderer {
161 ctor @Deprecated public InstrumentClusterRenderer();
162 method @Deprecated protected abstract android.car.cluster.renderer.NavigationRenderer createNavigationRenderer();
163 method @Deprecated @Nullable public android.car.cluster.renderer.NavigationRenderer getNavigationRenderer();
164 method @Deprecated @UiThread public final void initialize();
165 method @Deprecated public abstract void onCreate(android.content.Context);
166 method @Deprecated public abstract void onStart();
167 method @Deprecated public abstract void onStop();
Vitalii Tomkiv280b5722016-03-17 16:17:21 -0700168 }
169
Pavel Maltsev0477e292016-05-27 12:22:36 -0700170 public abstract class InstrumentClusterRenderingService extends android.app.Service {
171 ctor public InstrumentClusterRenderingService();
Roberto Pereze9144892019-02-25 17:06:46 -0800172 method @Nullable public android.graphics.Bitmap getBitmap(android.net.Uri);
Roberto Perez7b494e32018-12-19 18:19:28 -0800173 method @MainThread @Nullable public abstract android.car.cluster.renderer.NavigationRenderer getNavigationRenderer();
Tor Norbye5e9618a2019-01-04 21:33:09 -0800174 method @CallSuper public android.os.IBinder onBind(android.content.Intent);
Roberto Perez7b494e32018-12-19 18:19:28 -0800175 method @MainThread public void onKeyEvent(@NonNull android.view.KeyEvent);
176 method @MainThread public void onNavigationComponentLaunched();
177 method @MainThread public void onNavigationComponentReleased();
178 method protected boolean startNavigationActivity(@NonNull android.content.ComponentName);
Pavel Maltsev0477e292016-05-27 12:22:36 -0700179 }
180
Tor Norbye5e9618a2019-01-04 21:33:09 -0800181 @UiThread public abstract class NavigationRenderer {
Vitalii Tomkiv280b5722016-03-17 16:17:21 -0700182 ctor public NavigationRenderer();
Pavel Maltsev8cf86912016-04-01 18:01:51 -0700183 method public abstract android.car.navigation.CarNavigationInstrumentCluster getNavigationProperties();
Dean Harding8099f2f2018-02-07 15:00:21 -0800184 method public abstract void onEvent(int, android.os.Bundle);
Vitalii Tomkiv280b5722016-03-17 16:17:21 -0700185 }
186
187}
188
189package android.car.content.pm {
190
191 public class AppBlockingPackageInfo implements android.os.Parcelable {
Tor Norbye5e9618a2019-01-04 21:33:09 -0800192 ctor public AppBlockingPackageInfo(String, int, int, int, @Nullable android.content.pm.Signature[], @Nullable String[]);
Vitalii Tomkiv280b5722016-03-17 16:17:21 -0700193 ctor public AppBlockingPackageInfo(android.os.Parcel);
194 method public int describeContents();
195 method public void writeToParcel(android.os.Parcel, int);
196 field public static final android.os.Parcelable.Creator<android.car.content.pm.AppBlockingPackageInfo> CREATOR;
197 field public static final int FLAG_SYSTEM_APP = 1; // 0x1
198 field public static final int FLAG_WHOLE_ACTIVITY = 2; // 0x2
Tor Norbye5e9618a2019-01-04 21:33:09 -0800199 field public final String[] activities;
Vitalii Tomkiv280b5722016-03-17 16:17:21 -0700200 field public final int flags;
201 field public final int maxRevisionCode;
202 field public final int minRevisionCode;
Tor Norbye5e9618a2019-01-04 21:33:09 -0800203 field public final String packageName;
Vitalii Tomkiv280b5722016-03-17 16:17:21 -0700204 field public final android.content.pm.Signature[] signatures;
205 }
206
207 public class CarAppBlockingPolicy implements android.os.Parcelable {
208 ctor public CarAppBlockingPolicy(android.car.content.pm.AppBlockingPackageInfo[], android.car.content.pm.AppBlockingPackageInfo[]);
209 ctor public CarAppBlockingPolicy(android.os.Parcel);
210 method public int describeContents();
211 method public void writeToParcel(android.os.Parcel, int);
212 field public static final android.os.Parcelable.Creator<android.car.content.pm.CarAppBlockingPolicy> CREATOR;
213 field public final android.car.content.pm.AppBlockingPackageInfo[] blacklists;
214 field public final android.car.content.pm.AppBlockingPackageInfo[] whitelists;
215 }
216
217 public abstract class CarAppBlockingPolicyService extends android.app.Service {
218 ctor public CarAppBlockingPolicyService();
219 method protected abstract android.car.content.pm.CarAppBlockingPolicy getAppBlockingPolicy();
220 method public android.os.IBinder onBind(android.content.Intent);
Tor Norbye5e9618a2019-01-04 21:33:09 -0800221 field public static final String SERVICE_INTERFACE = "android.car.content.pm.CarAppBlockingPolicyService";
Vitalii Tomkiv280b5722016-03-17 16:17:21 -0700222 }
223
Keun-young Park4cf69112016-10-04 10:02:59 -0700224 public final class CarPackageManager {
Justin Pauporeccc75a32019-02-12 18:20:48 -0800225 method public boolean isActivityBackedBySafeActivity(android.content.ComponentName);
226 method public void setAppBlockingPolicy(String, android.car.content.pm.CarAppBlockingPolicy, int);
Vitalii Tomkiv280b5722016-03-17 16:17:21 -0700227 field public static final int FLAG_SET_POLICY_ADD = 2; // 0x2
228 field public static final int FLAG_SET_POLICY_REMOVE = 4; // 0x4
229 field public static final int FLAG_SET_POLICY_WAIT_FOR_CHANGE = 1; // 0x1
230 }
231
232}
233
Enrico Granata25e89462017-08-02 11:41:31 -0700234package android.car.diagnostic {
Vitalii Tomkiv280b5722016-03-17 16:17:21 -0700235
Enrico Granataae25b922017-07-07 11:28:15 -0700236 public class CarDiagnosticEvent implements android.os.Parcelable {
237 ctor public CarDiagnosticEvent(android.os.Parcel);
238 method public int describeContents();
Tor Norbye5e9618a2019-01-04 21:33:09 -0800239 method @Nullable @android.car.diagnostic.CarDiagnosticEvent.FuelSystemStatus.Status public Integer getFuelSystemStatus();
240 method @Nullable @android.car.diagnostic.CarDiagnosticEvent.FuelType.Type public Integer getFuelType();
241 method @Nullable public android.car.diagnostic.CarDiagnosticEvent.CommonIgnitionMonitors getIgnitionMonitors();
242 method @Nullable @android.car.diagnostic.CarDiagnosticEvent.SecondaryAirStatus.Status public Integer getSecondaryAirStatus();
Enrico Granataae25b922017-07-07 11:28:15 -0700243 method public float getSystemFloatSensor(int, float);
Tor Norbye5e9618a2019-01-04 21:33:09 -0800244 method @Nullable public Float getSystemFloatSensor(int);
Enrico Granataae25b922017-07-07 11:28:15 -0700245 method public int getSystemIntegerSensor(int, int);
Tor Norbye5e9618a2019-01-04 21:33:09 -0800246 method @Nullable public Integer getSystemIntegerSensor(int);
Enrico Granataae25b922017-07-07 11:28:15 -0700247 method public float getVendorFloatSensor(int, float);
Tor Norbye5e9618a2019-01-04 21:33:09 -0800248 method @Nullable public Float getVendorFloatSensor(int);
Enrico Granataae25b922017-07-07 11:28:15 -0700249 method public int getVendorIntegerSensor(int, int);
Tor Norbye5e9618a2019-01-04 21:33:09 -0800250 method @Nullable public Integer getVendorIntegerSensor(int);
Enrico Granataae25b922017-07-07 11:28:15 -0700251 method public boolean isFreezeFrame();
252 method public boolean isLiveFrame();
253 method public void writeToJson(android.util.JsonWriter) throws java.io.IOException;
254 method public void writeToParcel(android.os.Parcel, int);
Enrico Granata25e89462017-08-02 11:41:31 -0700255 field public static final android.os.Parcelable.Creator<android.car.diagnostic.CarDiagnosticEvent> CREATOR;
Tor Norbye5e9618a2019-01-04 21:33:09 -0800256 field public final String dtc;
Enrico Granataae25b922017-07-07 11:28:15 -0700257 field public final int frameType;
258 field public final long timestamp;
259 }
260
261 public static class CarDiagnosticEvent.Builder {
Enrico Granata25e89462017-08-02 11:41:31 -0700262 method public android.car.diagnostic.CarDiagnosticEvent.Builder atTimestamp(long);
263 method public android.car.diagnostic.CarDiagnosticEvent build();
264 method public static android.car.diagnostic.CarDiagnosticEvent.Builder newFreezeFrameBuilder();
265 method public static android.car.diagnostic.CarDiagnosticEvent.Builder newLiveFrameBuilder();
Tor Norbye5e9618a2019-01-04 21:33:09 -0800266 method public android.car.diagnostic.CarDiagnosticEvent.Builder withDtc(String);
Enrico Granata25e89462017-08-02 11:41:31 -0700267 method public android.car.diagnostic.CarDiagnosticEvent.Builder withFloatValue(int, float);
268 method public android.car.diagnostic.CarDiagnosticEvent.Builder withIntValue(int, int);
Enrico Granataae25b922017-07-07 11:28:15 -0700269 }
270
Enrico Granataf8747712017-07-28 15:25:27 -0700271 public static class CarDiagnosticEvent.CommonIgnitionMonitors {
Tor Norbye5e9618a2019-01-04 21:33:09 -0800272 method @Nullable public android.car.diagnostic.CarDiagnosticEvent.CompressionIgnitionMonitors asCompressionIgnitionMonitors();
273 method @Nullable public android.car.diagnostic.CarDiagnosticEvent.SparkIgnitionMonitors asSparkIgnitionMonitors();
Enrico Granata25e89462017-08-02 11:41:31 -0700274 field public final android.car.diagnostic.CarDiagnosticEvent.IgnitionMonitor components;
275 field public final android.car.diagnostic.CarDiagnosticEvent.IgnitionMonitor fuelSystem;
276 field public final android.car.diagnostic.CarDiagnosticEvent.IgnitionMonitor misfire;
Enrico Granataf8747712017-07-28 15:25:27 -0700277 }
278
Enrico Granata25e89462017-08-02 11:41:31 -0700279 public static final class CarDiagnosticEvent.CompressionIgnitionMonitors extends android.car.diagnostic.CarDiagnosticEvent.CommonIgnitionMonitors {
280 field public final android.car.diagnostic.CarDiagnosticEvent.IgnitionMonitor EGROrVVT;
281 field public final android.car.diagnostic.CarDiagnosticEvent.IgnitionMonitor NMHCCatalyst;
282 field public final android.car.diagnostic.CarDiagnosticEvent.IgnitionMonitor NOxSCR;
283 field public final android.car.diagnostic.CarDiagnosticEvent.IgnitionMonitor PMFilter;
284 field public final android.car.diagnostic.CarDiagnosticEvent.IgnitionMonitor boostPressure;
285 field public final android.car.diagnostic.CarDiagnosticEvent.IgnitionMonitor exhaustGasSensor;
Enrico Granataf8747712017-07-28 15:25:27 -0700286 }
287
Enrico Granataae25b922017-07-07 11:28:15 -0700288 public static final class CarDiagnosticEvent.FuelSystemStatus {
289 field public static final int CLOSED_LOOP = 2; // 0x2
290 field public static final int CLOSED_LOOP_BUT_FEEDBACK_FAULT = 16; // 0x10
291 field public static final int OPEN_ENGINE_LOAD_OR_DECELERATION = 4; // 0x4
292 field public static final int OPEN_INSUFFICIENT_ENGINE_TEMPERATURE = 1; // 0x1
293 field public static final int OPEN_SYSTEM_FAILURE = 8; // 0x8
294 }
295
Tor Norbye5e9618a2019-01-04 21:33:09 -0800296 @java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy.SOURCE) @IntDef({android.car.diagnostic.CarDiagnosticEvent.FuelSystemStatus.OPEN_INSUFFICIENT_ENGINE_TEMPERATURE, android.car.diagnostic.CarDiagnosticEvent.FuelSystemStatus.CLOSED_LOOP, android.car.diagnostic.CarDiagnosticEvent.FuelSystemStatus.OPEN_ENGINE_LOAD_OR_DECELERATION, android.car.diagnostic.CarDiagnosticEvent.FuelSystemStatus.OPEN_SYSTEM_FAILURE, android.car.diagnostic.CarDiagnosticEvent.FuelSystemStatus.CLOSED_LOOP_BUT_FEEDBACK_FAULT}) public static @interface CarDiagnosticEvent.FuelSystemStatus.Status {
Enrico Granataae25b922017-07-07 11:28:15 -0700297 }
298
299 public static final class CarDiagnosticEvent.FuelType {
300 field public static final int BIFUEL_RUNNING_CNG = 13; // 0xd
301 field public static final int BIFUEL_RUNNING_DIESEL = 23; // 0x17
302 field public static final int BIFUEL_RUNNING_ELECTRIC = 15; // 0xf
303 field public static final int BIFUEL_RUNNING_ELECTRIC_AND_COMBUSTION = 16; // 0x10
304 field public static final int BIFUEL_RUNNING_ETHANOL = 11; // 0xb
305 field public static final int BIFUEL_RUNNING_GASOLINE = 9; // 0x9
306 field public static final int BIFUEL_RUNNING_LPG = 12; // 0xc
307 field public static final int BIFUEL_RUNNING_METHANOL = 10; // 0xa
308 field public static final int BIFUEL_RUNNING_PROPANE = 14; // 0xe
309 field public static final int CNG = 6; // 0x6
310 field public static final int DIESEL = 4; // 0x4
311 field public static final int ELECTRIC = 8; // 0x8
312 field public static final int ETHANOL = 3; // 0x3
313 field public static final int GASOLINE = 1; // 0x1
314 field public static final int HYBRID_DIESEL = 19; // 0x13
315 field public static final int HYBRID_ELECTRIC = 20; // 0x14
316 field public static final int HYBRID_ETHANOL = 18; // 0x12
317 field public static final int HYBRID_GASOLINE = 17; // 0x11
318 field public static final int HYBRID_REGENERATIVE = 22; // 0x16
319 field public static final int HYBRID_RUNNING_ELECTRIC_AND_COMBUSTION = 21; // 0x15
320 field public static final int LPG = 5; // 0x5
321 field public static final int METHANOL = 2; // 0x2
322 field public static final int NOT_AVAILABLE = 0; // 0x0
323 field public static final int PROPANE = 7; // 0x7
324 }
325
Tor Norbye5e9618a2019-01-04 21:33:09 -0800326 @java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy.SOURCE) @IntDef({android.car.diagnostic.CarDiagnosticEvent.FuelType.NOT_AVAILABLE, android.car.diagnostic.CarDiagnosticEvent.FuelType.GASOLINE, android.car.diagnostic.CarDiagnosticEvent.FuelType.METHANOL, android.car.diagnostic.CarDiagnosticEvent.FuelType.ETHANOL, android.car.diagnostic.CarDiagnosticEvent.FuelType.DIESEL, android.car.diagnostic.CarDiagnosticEvent.FuelType.LPG, android.car.diagnostic.CarDiagnosticEvent.FuelType.CNG, android.car.diagnostic.CarDiagnosticEvent.FuelType.PROPANE, android.car.diagnostic.CarDiagnosticEvent.FuelType.ELECTRIC, android.car.diagnostic.CarDiagnosticEvent.FuelType.BIFUEL_RUNNING_GASOLINE, android.car.diagnostic.CarDiagnosticEvent.FuelType.BIFUEL_RUNNING_METHANOL, android.car.diagnostic.CarDiagnosticEvent.FuelType.BIFUEL_RUNNING_ETHANOL, android.car.diagnostic.CarDiagnosticEvent.FuelType.BIFUEL_RUNNING_LPG, android.car.diagnostic.CarDiagnosticEvent.FuelType.BIFUEL_RUNNING_CNG, android.car.diagnostic.CarDiagnosticEvent.FuelType.BIFUEL_RUNNING_PROPANE, android.car.diagnostic.CarDiagnosticEvent.FuelType.BIFUEL_RUNNING_ELECTRIC, android.car.diagnostic.CarDiagnosticEvent.FuelType.BIFUEL_RUNNING_ELECTRIC_AND_COMBUSTION, android.car.diagnostic.CarDiagnosticEvent.FuelType.HYBRID_GASOLINE, android.car.diagnostic.CarDiagnosticEvent.FuelType.HYBRID_ETHANOL, android.car.diagnostic.CarDiagnosticEvent.FuelType.HYBRID_DIESEL, android.car.diagnostic.CarDiagnosticEvent.FuelType.HYBRID_ELECTRIC, android.car.diagnostic.CarDiagnosticEvent.FuelType.HYBRID_RUNNING_ELECTRIC_AND_COMBUSTION, android.car.diagnostic.CarDiagnosticEvent.FuelType.HYBRID_REGENERATIVE, android.car.diagnostic.CarDiagnosticEvent.FuelType.BIFUEL_RUNNING_DIESEL}) public static @interface CarDiagnosticEvent.FuelType.Type {
Enrico Granataae25b922017-07-07 11:28:15 -0700327 }
328
Enrico Granataf8747712017-07-28 15:25:27 -0700329 public static final class CarDiagnosticEvent.IgnitionMonitor {
Enrico Granataae25b922017-07-07 11:28:15 -0700330 field public final boolean available;
331 field public final boolean incomplete;
332 }
333
Enrico Granataae25b922017-07-07 11:28:15 -0700334 public static final class CarDiagnosticEvent.SecondaryAirStatus {
335 field public static final int DOWNSTREAM_OF_CATALYCIC_CONVERTER = 2; // 0x2
336 field public static final int FROM_OUTSIDE_OR_OFF = 4; // 0x4
337 field public static final int PUMP_ON_FOR_DIAGNOSTICS = 8; // 0x8
338 field public static final int UPSTREAM = 1; // 0x1
339 }
340
Tor Norbye5e9618a2019-01-04 21:33:09 -0800341 @java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy.SOURCE) @IntDef({android.car.diagnostic.CarDiagnosticEvent.SecondaryAirStatus.UPSTREAM, android.car.diagnostic.CarDiagnosticEvent.SecondaryAirStatus.DOWNSTREAM_OF_CATALYCIC_CONVERTER, android.car.diagnostic.CarDiagnosticEvent.SecondaryAirStatus.FROM_OUTSIDE_OR_OFF, android.car.diagnostic.CarDiagnosticEvent.SecondaryAirStatus.PUMP_ON_FOR_DIAGNOSTICS}) public static @interface CarDiagnosticEvent.SecondaryAirStatus.Status {
Enrico Granataae25b922017-07-07 11:28:15 -0700342 }
343
Enrico Granata25e89462017-08-02 11:41:31 -0700344 public static final class CarDiagnosticEvent.SparkIgnitionMonitors extends android.car.diagnostic.CarDiagnosticEvent.CommonIgnitionMonitors {
345 field public final android.car.diagnostic.CarDiagnosticEvent.IgnitionMonitor ACRefrigerant;
346 field public final android.car.diagnostic.CarDiagnosticEvent.IgnitionMonitor EGR;
347 field public final android.car.diagnostic.CarDiagnosticEvent.IgnitionMonitor catalyst;
348 field public final android.car.diagnostic.CarDiagnosticEvent.IgnitionMonitor evaporativeSystem;
349 field public final android.car.diagnostic.CarDiagnosticEvent.IgnitionMonitor heatedCatalyst;
350 field public final android.car.diagnostic.CarDiagnosticEvent.IgnitionMonitor oxygenSensor;
351 field public final android.car.diagnostic.CarDiagnosticEvent.IgnitionMonitor oxygenSensorHeater;
352 field public final android.car.diagnostic.CarDiagnosticEvent.IgnitionMonitor secondaryAirSystem;
Enrico Granataf8747712017-07-28 15:25:27 -0700353 }
354
Enrico Granataae25b922017-07-07 11:28:15 -0700355 public final class CarDiagnosticManager {
Justin Pauporeccc75a32019-02-12 18:20:48 -0800356 method public boolean clearFreezeFrames(long...);
357 method @Nullable public android.car.diagnostic.CarDiagnosticEvent getFreezeFrame(long);
358 method public long[] getFreezeFrameTimestamps();
359 method @Nullable public android.car.diagnostic.CarDiagnosticEvent getLatestLiveFrame();
360 method public boolean isClearFreezeFramesSupported();
361 method public boolean isFreezeFrameNotificationSupported();
362 method public boolean isGetFreezeFrameSupported();
363 method public boolean isLiveFrameSupported();
364 method public boolean isSelectiveClearFreezeFramesSupported();
Enrico Granataae25b922017-07-07 11:28:15 -0700365 method public void onCarDisconnected();
Justin Pauporeccc75a32019-02-12 18:20:48 -0800366 method public boolean registerListener(android.car.diagnostic.CarDiagnosticManager.OnDiagnosticEventListener, @android.car.diagnostic.CarDiagnosticManager.FrameType int, int);
Enrico Granata25e89462017-08-02 11:41:31 -0700367 method public void unregisterListener(android.car.diagnostic.CarDiagnosticManager.OnDiagnosticEventListener);
Enrico Granataae25b922017-07-07 11:28:15 -0700368 field public static final int FRAME_TYPE_FREEZE = 1; // 0x1
369 field public static final int FRAME_TYPE_LIVE = 0; // 0x0
370 }
371
Tor Norbye5e9618a2019-01-04 21:33:09 -0800372 @java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy.SOURCE) @IntDef({android.car.diagnostic.CarDiagnosticManager.FRAME_TYPE_LIVE, android.car.diagnostic.CarDiagnosticManager.FRAME_TYPE_FREEZE}) public static @interface CarDiagnosticManager.FrameType {
Enrico Granataae25b922017-07-07 11:28:15 -0700373 }
374
Tor Norbye5e9618a2019-01-04 21:33:09 -0800375 public static interface CarDiagnosticManager.OnDiagnosticEventListener {
376 method public void onDiagnosticEvent(android.car.diagnostic.CarDiagnosticEvent);
Enrico Granataae25b922017-07-07 11:28:15 -0700377 }
378
Enrico Granata25e89462017-08-02 11:41:31 -0700379 public final class FloatSensorIndex {
380 field public static final int ABSOLUTE_EVAPORATION_SYSTEM_VAPOR_PRESSURE = 58; // 0x3a
381 field public static final int ABSOLUTE_LOAD_VALUE = 48; // 0x30
382 field public static final int ABSOLUTE_THROTTLE_POSITION_B = 51; // 0x33
383 field public static final int ABSOLUTE_THROTTLE_POSITION_C = 52; // 0x34
384 field public static final int ACCELERATOR_PEDAL_POSITION_D = 53; // 0x35
385 field public static final int ACCELERATOR_PEDAL_POSITION_E = 54; // 0x36
386 field public static final int ACCELERATOR_PEDAL_POSITION_F = 55; // 0x37
387 field public static final int CALCULATED_ENGINE_LOAD = 0; // 0x0
388 field public static final int CATALYST_TEMPERATURE_BANK1_SENSOR1 = 44; // 0x2c
389 field public static final int CATALYST_TEMPERATURE_BANK1_SENSOR2 = 46; // 0x2e
390 field public static final int CATALYST_TEMPERATURE_BANK2_SENSOR1 = 45; // 0x2d
391 field public static final int CATALYST_TEMPERATURE_BANK2_SENSOR2 = 47; // 0x2f
392 field public static final int COMMANDED_EVAPORATIVE_PURGE = 41; // 0x29
393 field public static final int COMMANDED_EXHAUST_GAS_RECIRCULATION = 39; // 0x27
394 field public static final int COMMANDED_THROTTLE_ACTUATOR = 56; // 0x38
395 field public static final int ENGINE_COOLANT_TEMPERATURE = 1; // 0x1
396 field public static final int ENGINE_FUEL_RATE = 70; // 0x46
397 field public static final int ENGINE_RPM = 8; // 0x8
398 field public static final int ETHANOL_FUEL_PERCENTAGE = 57; // 0x39
399 field public static final int EVAPORATION_SYSTEM_VAPOR_PRESSURE = 43; // 0x2b
400 field public static final int EXHAUST_GAS_RECIRCULATION_ERROR = 40; // 0x28
401 field public static final int FUEL_AIR_COMMANDED_EQUIVALENCE_RATIO = 49; // 0x31
402 field public static final int FUEL_INJECTION_TIMING = 69; // 0x45
403 field public static final int FUEL_PRESSURE = 6; // 0x6
404 field public static final int FUEL_RAIL_GAUGE_PRESSURE = 38; // 0x26
405 field public static final int FUEL_RAIL_PRESSURE = 37; // 0x25
406 field public static final int FUEL_TANK_LEVEL_INPUT = 42; // 0x2a
407 field public static final int HYBRID_BATTERY_PACK_REMAINING_LIFE = 68; // 0x44
408 field public static final int INTAKE_MANIFOLD_ABSOLUTE_PRESSURE = 7; // 0x7
409 field public static final int LAST_SYSTEM = 70; // 0x46
410 field public static final int LONG_TERM_FUEL_TRIM_BANK1 = 3; // 0x3
411 field public static final int LONG_TERM_FUEL_TRIM_BANK2 = 5; // 0x5
412 field public static final int LONG_TERM_SECONDARY_OXYGEN_SENSOR_TRIM_BANK1 = 63; // 0x3f
413 field public static final int LONG_TERM_SECONDARY_OXYGEN_SENSOR_TRIM_BANK2 = 64; // 0x40
414 field public static final int LONG_TERM_SECONDARY_OXYGEN_SENSOR_TRIM_BANK3 = 65; // 0x41
415 field public static final int LONG_TERM_SECONDARY_OXYGEN_SENSOR_TRIM_BANK4 = 66; // 0x42
416 field public static final int MAF_AIR_FLOW_RATE = 11; // 0xb
417 field public static final int OXYGEN_SENSOR1_FUEL_AIR_EQUIVALENCE_RATIO = 15; // 0xf
418 field public static final int OXYGEN_SENSOR1_SHORT_TERM_FUEL_TRIM = 14; // 0xe
419 field public static final int OXYGEN_SENSOR1_VOLTAGE = 13; // 0xd
420 field public static final int OXYGEN_SENSOR2_FUEL_AIR_EQUIVALENCE_RATIO = 18; // 0x12
421 field public static final int OXYGEN_SENSOR2_SHORT_TERM_FUEL_TRIM = 17; // 0x11
422 field public static final int OXYGEN_SENSOR2_VOLTAGE = 16; // 0x10
423 field public static final int OXYGEN_SENSOR3_FUEL_AIR_EQUIVALENCE_RATIO = 21; // 0x15
424 field public static final int OXYGEN_SENSOR3_SHORT_TERM_FUEL_TRIM = 20; // 0x14
425 field public static final int OXYGEN_SENSOR3_VOLTAGE = 19; // 0x13
426 field public static final int OXYGEN_SENSOR4_FUEL_AIR_EQUIVALENCE_RATIO = 24; // 0x18
427 field public static final int OXYGEN_SENSOR4_SHORT_TERM_FUEL_TRIM = 23; // 0x17
428 field public static final int OXYGEN_SENSOR4_VOLTAGE = 22; // 0x16
429 field public static final int OXYGEN_SENSOR5_FUEL_AIR_EQUIVALENCE_RATIO = 27; // 0x1b
430 field public static final int OXYGEN_SENSOR5_SHORT_TERM_FUEL_TRIM = 26; // 0x1a
431 field public static final int OXYGEN_SENSOR5_VOLTAGE = 25; // 0x19
432 field public static final int OXYGEN_SENSOR6_FUEL_AIR_EQUIVALENCE_RATIO = 30; // 0x1e
433 field public static final int OXYGEN_SENSOR6_SHORT_TERM_FUEL_TRIM = 29; // 0x1d
434 field public static final int OXYGEN_SENSOR6_VOLTAGE = 28; // 0x1c
435 field public static final int OXYGEN_SENSOR7_FUEL_AIR_EQUIVALENCE_RATIO = 33; // 0x21
436 field public static final int OXYGEN_SENSOR7_SHORT_TERM_FUEL_TRIM = 32; // 0x20
437 field public static final int OXYGEN_SENSOR7_VOLTAGE = 31; // 0x1f
438 field public static final int OXYGEN_SENSOR8_FUEL_AIR_EQUIVALENCE_RATIO = 36; // 0x24
439 field public static final int OXYGEN_SENSOR8_SHORT_TERM_FUEL_TRIM = 35; // 0x23
440 field public static final int OXYGEN_SENSOR8_VOLTAGE = 34; // 0x22
441 field public static final int RELATIVE_ACCELERATOR_PEDAL_POSITION = 67; // 0x43
442 field public static final int RELATIVE_THROTTLE_POSITION = 50; // 0x32
443 field public static final int SHORT_TERM_FUEL_TRIM_BANK1 = 2; // 0x2
444 field public static final int SHORT_TERM_FUEL_TRIM_BANK2 = 4; // 0x4
445 field public static final int SHORT_TERM_SECONDARY_OXYGEN_SENSOR_TRIM_BANK1 = 59; // 0x3b
446 field public static final int SHORT_TERM_SECONDARY_OXYGEN_SENSOR_TRIM_BANK2 = 60; // 0x3c
447 field public static final int SHORT_TERM_SECONDARY_OXYGEN_SENSOR_TRIM_BANK3 = 61; // 0x3d
448 field public static final int SHORT_TERM_SECONDARY_OXYGEN_SENSOR_TRIM_BANK4 = 62; // 0x3e
449 field public static final int THROTTLE_POSITION = 12; // 0xc
450 field public static final int TIMING_ADVANCE = 10; // 0xa
451 field public static final int VEHICLE_SPEED = 9; // 0x9
452 field public static final int VENDOR_START = 71; // 0x47
453 }
454
455 public final class IntegerSensorIndex {
456 field public static final int ABSOLUTE_BAROMETRIC_PRESSURE = 11; // 0xb
457 field public static final int AMBIENT_AIR_TEMPERATURE = 13; // 0xd
458 field public static final int COMMANDED_SECONDARY_AIR_STATUS = 5; // 0x5
459 field public static final int CONTROL_MODULE_VOLTAGE = 12; // 0xc
460 field public static final int DISTANCE_TRAVELED_SINCE_CODES_CLEARED = 10; // 0xa
461 field public static final int DISTANCE_TRAVELED_WITH_MALFUNCTION_INDICATOR_LIGHT_ON = 8; // 0x8
462 field public static final int DRIVER_DEMAND_PERCENT_TORQUE = 24; // 0x18
463 field public static final int ENGINE_ACTUAL_PERCENT_TORQUE = 25; // 0x19
464 field public static final int ENGINE_OIL_TEMPERATURE = 23; // 0x17
465 field public static final int ENGINE_PERCENT_TORQUE_DATA_IDLE = 27; // 0x1b
466 field public static final int ENGINE_PERCENT_TORQUE_DATA_POINT1 = 28; // 0x1c
467 field public static final int ENGINE_PERCENT_TORQUE_DATA_POINT2 = 29; // 0x1d
468 field public static final int ENGINE_PERCENT_TORQUE_DATA_POINT3 = 30; // 0x1e
469 field public static final int ENGINE_PERCENT_TORQUE_DATA_POINT4 = 31; // 0x1f
470 field public static final int ENGINE_REFERENCE_PERCENT_TORQUE = 26; // 0x1a
471 field public static final int FUEL_RAIL_ABSOLUTE_PRESSURE = 22; // 0x16
472 field public static final int FUEL_SYSTEM_STATUS = 0; // 0x0
473 field public static final int FUEL_TYPE = 21; // 0x15
474 field public static final int IGNITION_MONITORS_SUPPORTED = 2; // 0x2
475 field public static final int IGNITION_SPECIFIC_MONITORS = 3; // 0x3
476 field public static final int INTAKE_AIR_TEMPERATURE = 4; // 0x4
477 field public static final int LAST_SYSTEM = 31; // 0x1f
478 field public static final int MALFUNCTION_INDICATOR_LIGHT_ON = 1; // 0x1
479 field public static final int MAX_AIR_FLOW_RATE_FROM_MASS_AIR_FLOW_SENSOR = 20; // 0x14
480 field public static final int MAX_FUEL_AIR_EQUIVALENCE_RATIO = 16; // 0x10
481 field public static final int MAX_INTAKE_MANIFOLD_ABSOLUTE_PRESSURE = 19; // 0x13
482 field public static final int MAX_OXYGEN_SENSOR_CURRENT = 18; // 0x12
483 field public static final int MAX_OXYGEN_SENSOR_VOLTAGE = 17; // 0x11
484 field public static final int NUM_OXYGEN_SENSORS_PRESENT = 6; // 0x6
485 field public static final int RUNTIME_SINCE_ENGINE_START = 7; // 0x7
486 field public static final int TIME_SINCE_TROUBLE_CODES_CLEARED = 15; // 0xf
487 field public static final int TIME_WITH_MALFUNCTION_LIGHT_ON = 14; // 0xe
488 field public static final int VENDOR_START = 32; // 0x20
489 field public static final int WARMUPS_SINCE_CODES_CLEARED = 9; // 0x9
490 }
491
492}
493
Ram Periathiruvadi25c16f12017-11-17 16:48:37 -0800494package android.car.drivingstate {
495
496 public class CarDrivingStateEvent implements android.os.Parcelable {
497 ctor public CarDrivingStateEvent(int, long);
498 method public int describeContents();
499 method public void writeToParcel(android.os.Parcel, int);
500 field public static final android.os.Parcelable.Creator<android.car.drivingstate.CarDrivingStateEvent> CREATOR;
501 field public static final int DRIVING_STATE_IDLING = 1; // 0x1
502 field public static final int DRIVING_STATE_MOVING = 2; // 0x2
503 field public static final int DRIVING_STATE_PARKED = 0; // 0x0
504 field public static final int DRIVING_STATE_UNKNOWN = -1; // 0xffffffff
505 field public final int eventValue;
506 field public final long timeStamp;
507 }
508
509 public final class CarDrivingStateManager {
Justin Pauporeccc75a32019-02-12 18:20:48 -0800510 method @Nullable public android.car.drivingstate.CarDrivingStateEvent getCurrentCarDrivingState();
511 method public void registerListener(@NonNull android.car.drivingstate.CarDrivingStateManager.CarDrivingStateEventListener);
512 method public void unregisterListener();
Ram Periathiruvadi25c16f12017-11-17 16:48:37 -0800513 }
514
Tor Norbye5e9618a2019-01-04 21:33:09 -0800515 public static interface CarDrivingStateManager.CarDrivingStateEventListener {
516 method public void onDrivingStateChanged(android.car.drivingstate.CarDrivingStateEvent);
Ram Periathiruvadi25c16f12017-11-17 16:48:37 -0800517 }
518
519}
520
Enrico Granata25e89462017-08-02 11:41:31 -0700521package android.car.hardware {
522
Keun-young Park60891562016-09-28 11:16:02 -0700523 public class CarPropertyConfig<T> implements android.os.Parcelable {
Steve Paikfb5f6232016-03-28 10:31:25 -0700524 method public int describeContents();
Steve Paik5bb392c2018-04-23 18:40:57 -0700525 method public int getAccess();
Steve Paikfb5f6232016-03-28 10:31:25 -0700526 method public int getAreaCount();
527 method public int[] getAreaIds();
528 method public int getAreaType();
Steve Paik5bb392c2018-04-23 18:40:57 -0700529 method public int getChangeMode();
530 method public java.util.List<java.lang.Integer> getConfigArray();
Tor Norbye5e9618a2019-01-04 21:33:09 -0800531 method public String getConfigString();
Steve Paikfb5f6232016-03-28 10:31:25 -0700532 method public int getFirstAndOnlyAreaId();
Steve Paik5bb392c2018-04-23 18:40:57 -0700533 method public float getMaxSampleRate();
Tor Norbye5e9618a2019-01-04 21:33:09 -0800534 method @Nullable public T getMaxValue(int);
535 method @Nullable public T getMaxValue();
Steve Paik5bb392c2018-04-23 18:40:57 -0700536 method public float getMinSampleRate();
Tor Norbye5e9618a2019-01-04 21:33:09 -0800537 method @Nullable public T getMinValue(int);
538 method @Nullable public T getMinValue();
Steve Paikfb5f6232016-03-28 10:31:25 -0700539 method public int getPropertyId();
Tor Norbye5e9618a2019-01-04 21:33:09 -0800540 method public Class<T> getPropertyType();
Steve Paikfb5f6232016-03-28 10:31:25 -0700541 method public boolean hasArea(int);
542 method public boolean isGlobalProperty();
Tor Norbye5e9618a2019-01-04 21:33:09 -0800543 method public static <T> android.car.hardware.CarPropertyConfig.Builder<T> newBuilder(Class<T>, int, int, int);
544 method public static <T> android.car.hardware.CarPropertyConfig.Builder<T> newBuilder(Class<T>, int, int);
Steve Paikfb5f6232016-03-28 10:31:25 -0700545 method public void writeToParcel(android.os.Parcel, int);
546 field public static final android.os.Parcelable.Creator<android.car.hardware.CarPropertyConfig> CREATOR;
547 }
548
Keun-young Park60891562016-09-28 11:16:02 -0700549 public static class CarPropertyConfig.AreaConfig<T> implements android.os.Parcelable {
Steve Paikfb5f6232016-03-28 10:31:25 -0700550 method public int describeContents();
Tor Norbye5e9618a2019-01-04 21:33:09 -0800551 method @Nullable public T getMaxValue();
552 method @Nullable public T getMinValue();
Steve Paikfb5f6232016-03-28 10:31:25 -0700553 method public void writeToParcel(android.os.Parcel, int);
554 field public static final android.os.Parcelable.Creator<android.car.hardware.CarPropertyConfig.AreaConfig<java.lang.Object>> CREATOR;
555 }
556
Keun-young Park60891562016-09-28 11:16:02 -0700557 public static class CarPropertyConfig.Builder<T> {
Steve Paikfb5f6232016-03-28 10:31:25 -0700558 method public android.car.hardware.CarPropertyConfig.Builder<T> addArea(int);
559 method public android.car.hardware.CarPropertyConfig.Builder<T> addAreaConfig(int, T, T);
560 method public android.car.hardware.CarPropertyConfig.Builder<T> addAreas(int[]);
561 method public android.car.hardware.CarPropertyConfig<T> build();
Steve Paik5bb392c2018-04-23 18:40:57 -0700562 method public android.car.hardware.CarPropertyConfig.Builder<T> setAccess(int);
563 method public android.car.hardware.CarPropertyConfig.Builder<T> setChangeMode(int);
564 method public android.car.hardware.CarPropertyConfig.Builder<T> setConfigArray(java.util.ArrayList<java.lang.Integer>);
Tor Norbye5e9618a2019-01-04 21:33:09 -0800565 method public android.car.hardware.CarPropertyConfig.Builder<T> setConfigString(String);
Steve Paik5bb392c2018-04-23 18:40:57 -0700566 method public android.car.hardware.CarPropertyConfig.Builder<T> setMaxSampleRate(float);
567 method public android.car.hardware.CarPropertyConfig.Builder<T> setMinSampleRate(float);
Steve Paikfb5f6232016-03-28 10:31:25 -0700568 }
569
Keun-young Park60891562016-09-28 11:16:02 -0700570 public class CarPropertyValue<T> implements android.os.Parcelable {
Steve Paikfb5f6232016-03-28 10:31:25 -0700571 ctor public CarPropertyValue(int, int, T);
Steve Paik382ceee2018-01-22 19:21:44 -0800572 ctor public CarPropertyValue(int, int, int, long, T);
Steve Paikfb5f6232016-03-28 10:31:25 -0700573 ctor public CarPropertyValue(android.os.Parcel);
574 method public int describeContents();
575 method public int getAreaId();
576 method public int getPropertyId();
Steve Paik382ceee2018-01-22 19:21:44 -0800577 method public int getStatus();
578 method public long getTimestamp();
Steve Paikfb5f6232016-03-28 10:31:25 -0700579 method public T getValue();
580 method public void writeToParcel(android.os.Parcel, int);
581 field public static final android.os.Parcelable.Creator<android.car.hardware.CarPropertyValue> CREATOR;
582 }
583
Keun-young Park4cf69112016-10-04 10:02:59 -0700584 public final class CarVendorExtensionManager {
Justin Pauporeccc75a32019-02-12 18:20:48 -0800585 method public <E> E getGlobalProperty(Class<E>, int);
586 method public java.util.List<android.car.hardware.CarPropertyConfig> getProperties();
587 method public <E> E getProperty(Class<E>, int, int);
588 method public boolean isPropertyAvailable(int, int);
589 method public void registerCallback(android.car.hardware.CarVendorExtensionManager.CarVendorExtensionCallback);
590 method public <E> void setGlobalProperty(Class<E>, int, E);
591 method public <E> void setProperty(Class<E>, int, int, E);
592 method public void unregisterCallback(android.car.hardware.CarVendorExtensionManager.CarVendorExtensionCallback);
Pavel Maltsev634e1ff2016-07-14 15:41:26 -0700593 }
594
Tor Norbye5e9618a2019-01-04 21:33:09 -0800595 public static interface CarVendorExtensionManager.CarVendorExtensionCallback {
596 method public void onChangeEvent(android.car.hardware.CarPropertyValue);
597 method public void onErrorEvent(int, int);
Pavel Maltsev634e1ff2016-07-14 15:41:26 -0700598 }
599
Vitalii Tomkiv280b5722016-03-17 16:17:21 -0700600}
601
Steve Paik43c04a72016-07-08 19:12:09 -0700602package android.car.hardware.cabin {
603
Keun-young Park4cf69112016-10-04 10:02:59 -0700604 public final class CarCabinManager {
Justin Pauporeccc75a32019-02-12 18:20:48 -0800605 method public boolean getBooleanProperty(int, int);
606 method public float getFloatProperty(int, int);
607 method public int getIntProperty(int, int);
608 method public java.util.List<android.car.hardware.CarPropertyConfig> getPropertyList();
Steve Paik43c04a72016-07-08 19:12:09 -0700609 method public static boolean isZonedProperty(int);
Justin Pauporeccc75a32019-02-12 18:20:48 -0800610 method public void registerCallback(android.car.hardware.cabin.CarCabinManager.CarCabinEventCallback);
611 method public void setBooleanProperty(int, int, boolean);
612 method public void setFloatProperty(int, int, float);
613 method public void setIntProperty(int, int, int);
614 method public void unregisterCallback(android.car.hardware.cabin.CarCabinManager.CarCabinEventCallback);
Steve Paik4d257022018-04-27 13:28:31 -0700615 field public static final int ID_DOOR_LOCK = 371198722; // 0x16200b02
616 field public static final int ID_DOOR_MOVE = 373295873; // 0x16400b01
617 field public static final int ID_DOOR_POS = 373295872; // 0x16400b00
618 field public static final int ID_MIRROR_FOLD = 287312709; // 0x11200b45
619 field public static final int ID_MIRROR_LOCK = 287312708; // 0x11200b44
620 field public static final int ID_MIRROR_Y_MOVE = 339741507; // 0x14400b43
621 field public static final int ID_MIRROR_Y_POS = 339741506; // 0x14400b42
622 field public static final int ID_MIRROR_Z_MOVE = 339741505; // 0x14400b41
623 field public static final int ID_MIRROR_Z_POS = 339741504; // 0x14400b40
624 field public static final int ID_SEAT_BACKREST_ANGLE_1_MOVE = 356518792; // 0x15400b88
625 field public static final int ID_SEAT_BACKREST_ANGLE_1_POS = 356518791; // 0x15400b87
626 field public static final int ID_SEAT_BACKREST_ANGLE_2_MOVE = 356518794; // 0x15400b8a
627 field public static final int ID_SEAT_BACKREST_ANGLE_2_POS = 356518793; // 0x15400b89
628 field public static final int ID_SEAT_BELT_BUCKLED = 354421634; // 0x15200b82
629 field public static final int ID_SEAT_BELT_HEIGHT_MOVE = 356518788; // 0x15400b84
630 field public static final int ID_SEAT_BELT_HEIGHT_POS = 356518787; // 0x15400b83
631 field public static final int ID_SEAT_DEPTH_MOVE = 356518798; // 0x15400b8e
632 field public static final int ID_SEAT_DEPTH_POS = 356518797; // 0x15400b8d
633 field public static final int ID_SEAT_FORE_AFT_MOVE = 356518790; // 0x15400b86
634 field public static final int ID_SEAT_FORE_AFT_POS = 356518789; // 0x15400b85
635 field public static final int ID_SEAT_HEADREST_ANGLE_MOVE = 356518808; // 0x15400b98
636 field public static final int ID_SEAT_HEADREST_ANGLE_POS = 356518807; // 0x15400b97
637 field public static final int ID_SEAT_HEADREST_FORE_AFT_MOVE = 356518810; // 0x15400b9a
638 field public static final int ID_SEAT_HEADREST_FORE_AFT_POS = 356518809; // 0x15400b99
639 field public static final int ID_SEAT_HEADREST_HEIGHT_MOVE = 356518806; // 0x15400b96
640 field public static final int ID_SEAT_HEADREST_HEIGHT_POS = 356518805; // 0x15400b95
641 field public static final int ID_SEAT_HEIGHT_MOVE = 356518796; // 0x15400b8c
642 field public static final int ID_SEAT_HEIGHT_POS = 356518795; // 0x15400b8b
643 field public static final int ID_SEAT_LUMBAR_FORE_AFT_MOVE = 356518802; // 0x15400b92
644 field public static final int ID_SEAT_LUMBAR_FORE_AFT_POS = 356518801; // 0x15400b91
645 field public static final int ID_SEAT_LUMBAR_SIDE_SUPPORT_MOVE = 356518804; // 0x15400b94
646 field public static final int ID_SEAT_LUMBAR_SIDE_SUPPORT_POS = 356518803; // 0x15400b93
647 field public static final int ID_SEAT_MEMORY_SELECT = 356518784; // 0x15400b80
648 field public static final int ID_SEAT_MEMORY_SET = 356518785; // 0x15400b81
649 field public static final int ID_SEAT_TILT_MOVE = 356518800; // 0x15400b90
650 field public static final int ID_SEAT_TILT_POS = 356518799; // 0x15400b8f
651 field public static final int ID_WINDOW_LOCK = 322964420; // 0x13400bc4
652 field public static final int ID_WINDOW_MOVE = 322964417; // 0x13400bc1
653 field public static final int ID_WINDOW_POS = 322964416; // 0x13400bc0
Steve Paik43c04a72016-07-08 19:12:09 -0700654 }
655
Tor Norbye5e9618a2019-01-04 21:33:09 -0800656 public static interface CarCabinManager.CarCabinEventCallback {
657 method public void onChangeEvent(android.car.hardware.CarPropertyValue);
658 method public void onErrorEvent(int, int);
Steve Paik43c04a72016-07-08 19:12:09 -0700659 }
660
Vitalii Tomkiv280b5722016-03-17 16:17:21 -0700661}
662
Vitalii Tomkiv280b5722016-03-17 16:17:21 -0700663package android.car.hardware.hvac {
664
Keun-young Park4cf69112016-10-04 10:02:59 -0700665 public final class CarHvacManager {
Justin Pauporeccc75a32019-02-12 18:20:48 -0800666 method public boolean getBooleanProperty(int, int);
667 method public float getFloatProperty(int, int);
668 method public int getIntProperty(int, int);
669 method public java.util.List<android.car.hardware.CarPropertyConfig> getPropertyList();
670 method public boolean isPropertyAvailable(int, int);
671 method public void registerCallback(android.car.hardware.hvac.CarHvacManager.CarHvacEventCallback);
672 method public void setBooleanProperty(int, int, boolean);
673 method public void setFloatProperty(int, int, float);
674 method public void setIntProperty(int, int, int);
Tor Norbye5e9618a2019-01-04 21:33:09 -0800675 method public void unregisterCallback(android.car.hardware.hvac.CarHvacManager.CarHvacEventCallback);
Steve Paik8976fb22018-01-29 16:56:17 -0800676 field public static final int FAN_DIRECTION_DEFROST = 4; // 0x4
677 field public static final int FAN_DIRECTION_FACE = 1; // 0x1
678 field public static final int FAN_DIRECTION_FLOOR = 2; // 0x2
Steve Paik4d257022018-04-27 13:28:31 -0700679 field public static final int ID_MIRROR_DEFROSTER_ON = 339739916; // 0x1440050c
680 field public static final int ID_OUTSIDE_AIR_TEMP = 291505923; // 0x11600703
681 field public static final int ID_STEERING_WHEEL_HEAT = 289408269; // 0x1140050d
682 field public static final int ID_TEMPERATURE_DISPLAY_UNITS = 289408270; // 0x1140050e
683 field public static final int ID_WINDOW_DEFROSTER_ON = 320865540; // 0x13200504
684 field public static final int ID_ZONED_AC_ON = 354419973; // 0x15200505
685 field public static final int ID_ZONED_AIR_RECIRCULATION_ON = 354419976; // 0x15200508
686 field public static final int ID_ZONED_AUTOMATIC_MODE_ON = 354419978; // 0x1520050a
687 field public static final int ID_ZONED_DUAL_ZONE_ON = 354419977; // 0x15200509
688 field public static final int ID_ZONED_FAN_DIRECTION = 356517121; // 0x15400501
689 field public static final int ID_ZONED_FAN_DIRECTION_AVAILABLE = 356582673; // 0x15410511
690 field public static final int ID_ZONED_FAN_SPEED_RPM = 356517135; // 0x1540050f
691 field public static final int ID_ZONED_FAN_SPEED_SETPOINT = 356517120; // 0x15400500
692 field public static final int ID_ZONED_HVAC_AUTO_RECIRC_ON = 354419986; // 0x15200512
693 field public static final int ID_ZONED_HVAC_POWER_ON = 354419984; // 0x15200510
694 field public static final int ID_ZONED_MAX_AC_ON = 354419974; // 0x15200506
695 field public static final int ID_ZONED_MAX_DEFROST_ON = 354419975; // 0x15200507
696 field public static final int ID_ZONED_SEAT_TEMP = 356517131; // 0x1540050b
697 field public static final int ID_ZONED_TEMP_ACTUAL = 358614274; // 0x15600502
698 field public static final int ID_ZONED_TEMP_SETPOINT = 358614275; // 0x15600503
Vitalii Tomkiv280b5722016-03-17 16:17:21 -0700699 }
700
Tor Norbye5e9618a2019-01-04 21:33:09 -0800701 public static interface CarHvacManager.CarHvacEventCallback {
702 method public void onChangeEvent(android.car.hardware.CarPropertyValue);
703 method public void onErrorEvent(int, int);
Vitalii Tomkiv280b5722016-03-17 16:17:21 -0700704 }
705
Vitalii Tomkiv280b5722016-03-17 16:17:21 -0700706}
707
Steve Paik388d7772018-02-12 10:54:51 -0800708package android.car.hardware.power {
709
710 public class CarPowerManager {
Steve Paik388d7772018-02-12 10:54:51 -0800711 }
712
Tor Norbye5e9618a2019-01-04 21:33:09 -0800713 public static interface CarPowerManager.CarPowerStateListener {
Steve Paik388d7772018-02-12 10:54:51 -0800714 }
715
716}
717
Vitalii Tomkiv2bd06922016-07-26 11:07:48 -0700718package android.car.input {
719
720 public abstract class CarInputHandlingService extends android.app.Service {
721 ctor protected CarInputHandlingService(android.car.input.CarInputHandlingService.InputFilter[]);
Tor Norbye5e9618a2019-01-04 21:33:09 -0800722 method @CallSuper public android.os.IBinder onBind(android.content.Intent);
723 method @MainThread protected abstract void onKeyEvent(android.view.KeyEvent, int);
Vitalii Tomkiv2bd06922016-07-26 11:07:48 -0700724 field public static final int INPUT_CALLBACK_BINDER_CODE = 1; // 0x1
Tor Norbye5e9618a2019-01-04 21:33:09 -0800725 field public static final String INPUT_CALLBACK_BINDER_KEY = "callback_binder";
Vitalii Tomkiv2bd06922016-07-26 11:07:48 -0700726 }
727
728 public static class CarInputHandlingService.InputFilter implements android.os.Parcelable {
729 ctor public CarInputHandlingService.InputFilter(int, int);
730 method public int describeContents();
731 method public void writeToParcel(android.os.Parcel, int);
732 field public static final android.os.Parcelable.Creator CREATOR;
733 field public final int mKeyCode;
734 field public final int mTargetDisplay;
735 }
736
737}
738
Vitalii Tomkiv280b5722016-03-17 16:17:21 -0700739package android.car.navigation {
740
741 public class CarNavigationInstrumentCluster implements android.os.Parcelable {
742 ctor public CarNavigationInstrumentCluster(android.car.navigation.CarNavigationInstrumentCluster);
743 method public static android.car.navigation.CarNavigationInstrumentCluster createCluster(int);
744 method public static android.car.navigation.CarNavigationInstrumentCluster createCustomImageCluster(int, int, int, int);
745 method public int describeContents();
746 method public int getImageColorDepthBits();
747 method public int getImageHeight();
748 method public int getImageWidth();
Keun-young Park3388e782016-10-05 16:28:32 -0700749 method public int getMinIntervalMillis();
Vitalii Tomkiv280b5722016-03-17 16:17:21 -0700750 method public int getType();
751 method public boolean supportsCustomImages();
752 method public void writeToParcel(android.os.Parcel, int);
Keun-young Park3388e782016-10-05 16:28:32 -0700753 field public static final int CLUSTER_TYPE_CUSTOM_IMAGES_SUPPORTED = 1; // 0x1
754 field public static final int CLUSTER_TYPE_IMAGE_CODES_ONLY = 2; // 0x2
Vitalii Tomkiv280b5722016-03-17 16:17:21 -0700755 field public static final android.os.Parcelable.Creator<android.car.navigation.CarNavigationInstrumentCluster> CREATOR;
756 }
757
Vitalii Tomkiv280b5722016-03-17 16:17:21 -0700758}
759
Enrico Granata9a916d72017-09-19 14:33:08 -0700760package android.car.storagemonitoring {
761
762 public final class CarStorageMonitoringManager {
Justin Pauporeccc75a32019-02-12 18:20:48 -0800763 method @RequiresPermission(android.car.Car.PERMISSION_STORAGE_MONITORING) public java.util.List<android.car.storagemonitoring.IoStatsEntry> getAggregateIoStats();
764 method @RequiresPermission(android.car.Car.PERMISSION_STORAGE_MONITORING) public java.util.List<android.car.storagemonitoring.IoStatsEntry> getBootIoStats();
765 method @RequiresPermission(android.car.Car.PERMISSION_STORAGE_MONITORING) public java.util.List<android.car.storagemonitoring.IoStats> getIoStatsDeltas();
766 method @RequiresPermission(android.car.Car.PERMISSION_STORAGE_MONITORING) public int getPreEolIndicatorStatus();
767 method @RequiresPermission(android.car.Car.PERMISSION_STORAGE_MONITORING) public long getShutdownDiskWriteAmount();
768 method @RequiresPermission(android.car.Car.PERMISSION_STORAGE_MONITORING) public android.car.storagemonitoring.WearEstimate getWearEstimate();
769 method @RequiresPermission(android.car.Car.PERMISSION_STORAGE_MONITORING) public java.util.List<android.car.storagemonitoring.WearEstimateChange> getWearEstimateHistory();
770 method @RequiresPermission(android.car.Car.PERMISSION_STORAGE_MONITORING) public void registerListener(android.car.storagemonitoring.CarStorageMonitoringManager.IoStatsListener);
771 method @RequiresPermission(android.car.Car.PERMISSION_STORAGE_MONITORING) public void unregisterListener(android.car.storagemonitoring.CarStorageMonitoringManager.IoStatsListener);
Tor Norbye5e9618a2019-01-04 21:33:09 -0800772 field public static final String INTENT_EXCESSIVE_IO = "android.car.storagemonitoring.EXCESSIVE_IO";
Enrico Granata9a916d72017-09-19 14:33:08 -0700773 field public static final int PRE_EOL_INFO_NORMAL = 1; // 0x1
774 field public static final int PRE_EOL_INFO_UNKNOWN = 0; // 0x0
775 field public static final int PRE_EOL_INFO_URGENT = 3; // 0x3
776 field public static final int PRE_EOL_INFO_WARNING = 2; // 0x2
Enrico Granata1690a622018-01-22 17:34:46 -0800777 field public static final long SHUTDOWN_COST_INFO_MISSING = -1L; // 0xffffffffffffffffL
Enrico Granata9a916d72017-09-19 14:33:08 -0700778 }
779
Tor Norbye5e9618a2019-01-04 21:33:09 -0800780 public static interface CarStorageMonitoringManager.IoStatsListener {
781 method public void onSnapshot(android.car.storagemonitoring.IoStats);
Enrico Granatadbda56f2017-12-18 11:53:22 -0800782 }
783
784 public class IoStats implements android.os.Parcelable {
785 ctor public IoStats(java.util.List<android.car.storagemonitoring.IoStatsEntry>, long);
786 ctor public IoStats(android.os.Parcel);
787 ctor public IoStats(org.json.JSONObject) throws org.json.JSONException;
788 method public int describeContents();
789 method public android.car.storagemonitoring.IoStatsEntry.Metrics getBackgroundTotals();
790 method public android.car.storagemonitoring.IoStatsEntry.Metrics getForegroundTotals();
791 method public java.util.List<android.car.storagemonitoring.IoStatsEntry> getStats();
792 method public long getTimestamp();
793 method public android.car.storagemonitoring.IoStatsEntry.Metrics getTotals();
794 method public android.car.storagemonitoring.IoStatsEntry getUserIdStats(int);
795 method public void writeToJson(android.util.JsonWriter) throws java.io.IOException;
796 method public void writeToParcel(android.os.Parcel, int);
797 field public static final android.os.Parcelable.Creator<android.car.storagemonitoring.IoStats> CREATOR;
798 }
799
800 public final class IoStatsEntry implements android.os.Parcelable {
801 ctor public IoStatsEntry(int, long, android.car.storagemonitoring.IoStatsEntry.Metrics, android.car.storagemonitoring.IoStatsEntry.Metrics);
802 ctor public IoStatsEntry(android.os.Parcel);
803 ctor public IoStatsEntry(android.car.storagemonitoring.UidIoRecord, long);
804 ctor public IoStatsEntry(org.json.JSONObject) throws org.json.JSONException;
805 method public int describeContents();
806 method public void writeToJson(android.util.JsonWriter) throws java.io.IOException;
807 method public void writeToParcel(android.os.Parcel, int);
808 field public static final android.os.Parcelable.Creator<android.car.storagemonitoring.IoStatsEntry> CREATOR;
809 field public final android.car.storagemonitoring.IoStatsEntry.Metrics background;
810 field public final android.car.storagemonitoring.IoStatsEntry.Metrics foreground;
811 field public final long runtimeMillis;
812 field public final int uid;
813 }
814
815 public static final class IoStatsEntry.Metrics implements android.os.Parcelable {
816 ctor public IoStatsEntry.Metrics(long, long, long, long, long);
817 ctor public IoStatsEntry.Metrics(android.os.Parcel);
818 ctor public IoStatsEntry.Metrics(org.json.JSONObject) throws org.json.JSONException;
819 method public int describeContents();
820 method public void writeToJson(android.util.JsonWriter) throws java.io.IOException;
821 method public void writeToParcel(android.os.Parcel, int);
822 field public static final android.os.Parcelable.Creator<android.car.storagemonitoring.IoStatsEntry.Metrics> CREATOR;
823 field public final long bytesRead;
824 field public final long bytesReadFromStorage;
825 field public final long bytesWritten;
826 field public final long bytesWrittenToStorage;
827 field public final long fsyncCalls;
Enrico Granata7dce3792017-11-09 14:13:28 -0800828 }
829
Enrico Granata1690a622018-01-22 17:34:46 -0800830 public class LifetimeWriteInfo implements android.os.Parcelable {
Tor Norbye5e9618a2019-01-04 21:33:09 -0800831 ctor public LifetimeWriteInfo(String, String, long);
Enrico Granata1690a622018-01-22 17:34:46 -0800832 ctor public LifetimeWriteInfo(android.os.Parcel);
833 ctor public LifetimeWriteInfo(org.json.JSONObject) throws org.json.JSONException;
834 method public int describeContents();
835 method public void writeToJson(android.util.JsonWriter) throws java.io.IOException;
836 method public void writeToParcel(android.os.Parcel, int);
837 field public static final android.os.Parcelable.Creator<android.car.storagemonitoring.IoStats> CREATOR;
Tor Norbye5e9618a2019-01-04 21:33:09 -0800838 field public final String fstype;
839 field public final String partition;
Enrico Granata1690a622018-01-22 17:34:46 -0800840 field public final long writtenBytes;
841 }
842
Enrico Granata7e0150d2017-11-06 17:20:17 -0800843 public final class UidIoRecord {
844 ctor public UidIoRecord(int, long, long, long, long, long, long, long, long, long, long);
Enrico Granataa97fce22017-10-27 14:57:34 -0700845 field public final long background_fsync;
846 field public final long background_rchar;
847 field public final long background_read_bytes;
848 field public final long background_wchar;
849 field public final long background_write_bytes;
850 field public final long foreground_fsync;
851 field public final long foreground_rchar;
852 field public final long foreground_read_bytes;
853 field public final long foreground_wchar;
854 field public final long foreground_write_bytes;
855 field public final int uid;
856 }
857
Enrico Granata671e68d2017-09-20 10:16:22 -0700858 public class WearEstimate implements android.os.Parcelable {
859 ctor public WearEstimate(int, int);
860 ctor public WearEstimate(android.os.Parcel);
861 ctor public WearEstimate(android.util.JsonReader) throws java.io.IOException;
862 method public int describeContents();
863 method public void writeToJson(android.util.JsonWriter) throws java.io.IOException;
864 method public void writeToParcel(android.os.Parcel, int);
865 field public static final android.os.Parcelable.Creator<android.car.storagemonitoring.WearEstimate> CREATOR;
866 field public static final int UNKNOWN = -1; // 0xffffffff
Tor Norbye5e9618a2019-01-04 21:33:09 -0800867 field @IntRange(from=0xffffffff, to=100) public final int typeA;
868 field @IntRange(from=0xffffffff, to=100) public final int typeB;
Enrico Granata671e68d2017-09-20 10:16:22 -0700869 }
870
871 public class WearEstimateChange implements android.os.Parcelable {
Enrico Granata86217752017-10-31 13:42:55 -0700872 ctor public WearEstimateChange(android.car.storagemonitoring.WearEstimate, android.car.storagemonitoring.WearEstimate, long, java.time.Instant, boolean);
Enrico Granata671e68d2017-09-20 10:16:22 -0700873 ctor public WearEstimateChange(android.os.Parcel);
874 method public int describeContents();
875 method public void writeToParcel(android.os.Parcel, int);
876 field public static final android.os.Parcelable.Creator<android.car.storagemonitoring.WearEstimateChange> CREATOR;
Tor Norbye5e9618a2019-01-04 21:33:09 -0800877 field @NonNull public final java.time.Instant dateAtChange;
Enrico Granata671e68d2017-09-20 10:16:22 -0700878 field public final boolean isAcceptableDegradation;
Tor Norbye5e9618a2019-01-04 21:33:09 -0800879 field @NonNull public final android.car.storagemonitoring.WearEstimate newEstimate;
880 field @NonNull public final android.car.storagemonitoring.WearEstimate oldEstimate;
Enrico Granata671e68d2017-09-20 10:16:22 -0700881 field public final long uptimeAtChange;
882 }
883
Enrico Granata9a916d72017-09-19 14:33:08 -0700884}
885
Vitalii Tomkiv280b5722016-03-17 16:17:21 -0700886package android.car.test {
887
888 public class CarTestManagerBinderWrapper {
889 ctor public CarTestManagerBinderWrapper(android.os.IBinder);
890 method public void onCarDisconnected();
891 field public final android.os.IBinder binder;
892 }
893
894}
895
Ram Periathiruvadi18789a82019-01-08 14:46:51 -0800896package android.car.trust {
897
898 public final class CarTrustAgentEnrollmentManager {
Justin Pauporeccc75a32019-02-12 18:20:48 -0800899 method @RequiresPermission(android.car.Car.PERMISSION_CAR_ENROLL_TRUST) public void enrollmentHandshakeAccepted();
Ram Periathiruvadia30d5022019-03-14 13:16:03 -0700900 method @RequiresPermission(android.car.Car.PERMISSION_CAR_ENROLL_TRUST) @NonNull public java.util.List<java.lang.Long> getEnrollmentHandlesForUser(int);
Justin Pauporeccc75a32019-02-12 18:20:48 -0800901 method @RequiresPermission(android.car.Car.PERMISSION_CAR_ENROLL_TRUST) public void initiateEnrollmentHandshake(android.bluetooth.BluetoothDevice);
Ram Periathiruvadia30d5022019-03-14 13:16:03 -0700902 method @RequiresPermission(android.car.Car.PERMISSION_CAR_ENROLL_TRUST) public boolean isEscrowTokenActive(long, int);
Wenting Zhai93eec732019-03-21 14:01:51 -0700903 method @RequiresPermission(android.car.Car.PERMISSION_CAR_ENROLL_TRUST) public void removeEscrowToken(long, int);
Justin Pauporeccc75a32019-02-12 18:20:48 -0800904 method @RequiresPermission(android.car.Car.PERMISSION_CAR_ENROLL_TRUST) public void setBleCallback(@Nullable android.car.trust.CarTrustAgentEnrollmentManager.CarTrustAgentBleCallback);
905 method @RequiresPermission(android.car.Car.PERMISSION_CAR_ENROLL_TRUST) public void setEnrollmentCallback(@Nullable android.car.trust.CarTrustAgentEnrollmentManager.CarTrustAgentEnrollmentCallback);
906 method @RequiresPermission(android.car.Car.PERMISSION_CAR_ENROLL_TRUST) public void startEnrollmentAdvertising();
907 method @RequiresPermission(android.car.Car.PERMISSION_CAR_ENROLL_TRUST) public void stopEnrollmentAdvertising();
908 method @RequiresPermission(android.car.Car.PERMISSION_CAR_ENROLL_TRUST) public void terminateEnrollmentHandshake();
Ram Periathiruvadi18789a82019-01-08 14:46:51 -0800909 }
910
Tor Norbye5e9618a2019-01-04 21:33:09 -0800911 public static interface CarTrustAgentEnrollmentManager.CarTrustAgentBleCallback {
912 method public void onBleEnrollmentDeviceConnected(android.bluetooth.BluetoothDevice);
913 method public void onBleEnrollmentDeviceDisconnected(android.bluetooth.BluetoothDevice);
914 method public void onEnrollmentAdvertisingFailed(int);
915 method public void onEnrollmentAdvertisingStarted();
Ram Periathiruvadi18789a82019-01-08 14:46:51 -0800916 }
917
Tor Norbye5e9618a2019-01-04 21:33:09 -0800918 public static interface CarTrustAgentEnrollmentManager.CarTrustAgentEnrollmentCallback {
919 method public void onAuthStringAvailable(android.bluetooth.BluetoothDevice, String);
920 method public void onEnrollmentHandshakeFailure(android.bluetooth.BluetoothDevice, int);
921 method public void onEscrowTokenActiveStateChanged(long, boolean);
922 method public void onEscrowTokenAdded(long);
Wenting Zhai93eec732019-03-21 14:01:51 -0700923 method public void onEscrowTokenRemoved(long);
Ram Periathiruvadi18789a82019-01-08 14:46:51 -0800924 }
925
926}
927
Asaf Rosenfeld39e4f032017-09-16 11:33:50 -0700928package android.car.vms {
929
Asaf Rosenfeld908811e2018-01-22 09:13:47 -0800930 public final class VmsAvailableLayers implements android.os.Parcelable {
931 ctor public VmsAvailableLayers(java.util.Set<android.car.vms.VmsAssociatedLayer>, int);
932 method public int describeContents();
933 method public java.util.Set<android.car.vms.VmsAssociatedLayer> getAssociatedLayers();
934 method public int getSequence();
935 method public void writeToParcel(android.os.Parcel, int);
936 field public static final android.os.Parcelable.Creator<android.car.vms.VmsAvailableLayers> CREATOR;
937 }
938
Asaf Rosenfeld39e4f032017-09-16 11:33:50 -0700939 public final class VmsLayer implements android.os.Parcelable {
940 ctor public VmsLayer(int, int, int);
941 method public int describeContents();
942 method public int getSubtype();
943 method public int getType();
944 method public int getVersion();
945 method public void writeToParcel(android.os.Parcel, int);
946 field public static final android.os.Parcelable.Creator<android.car.vms.VmsLayer> CREATOR;
947 }
948
949 public final class VmsLayerDependency implements android.os.Parcelable {
950 ctor public VmsLayerDependency(android.car.vms.VmsLayer, java.util.Set<android.car.vms.VmsLayer>);
951 ctor public VmsLayerDependency(android.car.vms.VmsLayer);
952 method public int describeContents();
953 method public java.util.Set<android.car.vms.VmsLayer> getDependencies();
954 method public android.car.vms.VmsLayer getLayer();
955 method public void writeToParcel(android.os.Parcel, int);
956 field public static final android.os.Parcelable.Creator<android.car.vms.VmsLayerDependency> CREATOR;
957 }
958
959 public final class VmsLayersOffering implements android.os.Parcelable {
960 ctor public VmsLayersOffering(java.util.Set<android.car.vms.VmsLayerDependency>, int);
961 method public int describeContents();
962 method public java.util.Set<android.car.vms.VmsLayerDependency> getDependencies();
963 method public int getPublisherId();
964 method public void writeToParcel(android.os.Parcel, int);
965 field public static final android.os.Parcelable.Creator<android.car.vms.VmsLayersOffering> CREATOR;
966 }
967
968 public final class VmsOperationRecorder {
969 ctor public VmsOperationRecorder(android.car.vms.VmsOperationRecorder.Writer);
970 method public void addHalSubscription(int, android.car.vms.VmsLayer);
971 method public void addPromiscuousSubscription(int);
972 method public void addSubscription(int, android.car.vms.VmsLayer);
973 method public static android.car.vms.VmsOperationRecorder get();
974 method public void getPublisherId(int);
975 method public void removeHalSubscription(int, android.car.vms.VmsLayer);
976 method public void removePromiscuousSubscription(int);
977 method public void removeSubscription(int, android.car.vms.VmsLayer);
978 method public void setHalPublisherLayersOffering(android.car.vms.VmsLayersOffering);
979 method public void setLayersOffering(android.car.vms.VmsLayersOffering);
980 method public void setPublisherLayersOffering(android.car.vms.VmsLayersOffering);
981 method public void startMonitoring();
982 method public void stopMonitoring();
983 method public void subscribe(android.car.vms.VmsLayer);
984 method public void subscribe(android.car.vms.VmsLayer, int);
985 method public void unsubscribe(android.car.vms.VmsLayer);
986 method public void unsubscribe(android.car.vms.VmsLayer, int);
987 }
988
Asaf Rosenfeld39e4f032017-09-16 11:33:50 -0700989 public abstract class VmsPublisherClientService extends android.app.Service {
990 ctor public VmsPublisherClientService();
991 method public final int getPublisherId(byte[]);
Tor Norbye5e9618a2019-01-04 21:33:09 -0800992 method @Nullable public final android.car.vms.VmsSubscriptionState getSubscriptions();
Asaf Rosenfeldc2faf152018-01-31 13:59:06 -0800993 method public android.os.IBinder onBind(android.content.Intent);
Asaf Rosenfeld39e4f032017-09-16 11:33:50 -0700994 method protected abstract void onVmsPublisherServiceReady();
995 method public abstract void onVmsSubscriptionChange(android.car.vms.VmsSubscriptionState);
996 method public final void publish(android.car.vms.VmsLayer, int, byte[]);
997 method public final void setLayersOffering(android.car.vms.VmsLayersOffering);
998 }
999
1000 public final class VmsSubscriberManager {
Justin Pauporeccc75a32019-02-12 18:20:48 -08001001 method public void clearVmsSubscriberClientCallback();
1002 method public android.car.vms.VmsAvailableLayers getAvailableLayers();
1003 method public byte[] getPublisherInfo(int);
1004 method public void setVmsSubscriberClientCallback(@NonNull java.util.concurrent.Executor, @NonNull android.car.vms.VmsSubscriberManager.VmsSubscriberClientCallback);
1005 method public void startMonitoring();
Asaf Rosenfeld39e4f032017-09-16 11:33:50 -07001006 method public void stopMonitoring();
Justin Pauporeccc75a32019-02-12 18:20:48 -08001007 method public void subscribe(android.car.vms.VmsLayer);
1008 method public void subscribe(android.car.vms.VmsLayer, int);
Asaf Rosenfeld39e4f032017-09-16 11:33:50 -07001009 method public void unsubscribe(android.car.vms.VmsLayer);
1010 method public void unsubscribe(android.car.vms.VmsLayer, int);
1011 }
1012
Tor Norbye5e9618a2019-01-04 21:33:09 -08001013 public static interface VmsSubscriberManager.VmsSubscriberClientCallback {
1014 method public void onLayersAvailabilityChanged(android.car.vms.VmsAvailableLayers);
1015 method public void onVmsMessageReceived(android.car.vms.VmsLayer, byte[]);
Asaf Rosenfeld39e4f032017-09-16 11:33:50 -07001016 }
1017
Asaf Rosenfeld39e4f032017-09-16 11:33:50 -07001018}
1019