1package android.car {
2
3  public class Car {
4    method public void connect() throws java.lang.IllegalStateException;
5    method public static android.car.Car createCar(android.content.Context, android.content.ServiceConnection, android.os.Looper);
6    method public static android.car.Car createCar(android.content.Context, android.content.ServiceConnection);
7    method public void disconnect();
8    method public int getCarConnectionType();
9    method public java.lang.Object getCarManager(java.lang.String) throws android.car.CarNotConnectedException;
10    method public boolean isConnected();
11    method public boolean isConnecting();
12    field public static final java.lang.String APP_CONTEXT_SERVICE = "app_context";
13    field public static final java.lang.String AUDIO_SERVICE = "audio";
14    field public static final java.lang.String CAMERA_SERVICE = "camera";
15    field public static final int CONNECTION_TYPE_EMBEDDED = 5; // 0x5
16    field public static final java.lang.String HVAC_SERVICE = "hvac";
17    field public static final java.lang.String INFO_SERVICE = "info";
18    field public static final java.lang.String PACKAGE_SERVICE = "package";
19    field public static final java.lang.String PERMISSION_CAR_CAMERA = "android.car.permission.CAR_CAMERA";
20    field public static final java.lang.String PERMISSION_CAR_HVAC = "android.car.permission.CAR_HVAC";
21    field public static final java.lang.String PERMISSION_CAR_PROJECTION = "android.car.permission.CAR_PROJECTION";
22    field public static final java.lang.String PERMISSION_CAR_RADIO = "android.car.permission.CAR_RADIO";
23    field public static final java.lang.String PERMISSION_CONTROL_APP_BLOCKING = "android.car.permission.CONTROL_APP_BLOCKING";
24    field public static final java.lang.String PERMISSION_FUEL = "android.car.permission.CAR_FUEL";
25    field public static final java.lang.String PERMISSION_MILEAGE = "android.car.permission.CAR_MILEAGE";
26    field public static final java.lang.String PERMISSION_MOCK_VEHICLE_HAL = "android.car.permission.CAR_MOCK_VEHICLE_HAL";
27    field public static final java.lang.String PERMISSION_SPEED = "android.car.permission.CAR_SPEED";
28    field public static final java.lang.String PERMISSION_VENDOR_EXTENSION = "android.car.permission.CAR_VENDOR_EXTENSION";
29    field public static final java.lang.String PROJECTION_SERVICE = "projection";
30    field public static final java.lang.String RADIO_SERVICE = "radio";
31    field public static final java.lang.String SENSOR_SERVICE = "sensor";
32    field public static final java.lang.String TEST_SERVICE = "car-service-test";
33  }
34
35  public class CarInfoManager {
36    method public java.lang.Float getFloat(java.lang.String) throws android.car.CarNotConnectedException, java.lang.IllegalArgumentException;
37    method public java.lang.Integer getInt(java.lang.String) throws android.car.CarNotConnectedException, java.lang.IllegalArgumentException;
38    method public java.lang.Long getLong(java.lang.String) throws android.car.CarNotConnectedException, java.lang.IllegalArgumentException;
39    method public java.lang.String getString(java.lang.String) throws android.car.CarNotConnectedException, java.lang.IllegalArgumentException;
40    field public static final java.lang.String KEY_MANUFACTURER = "manufacturer";
41    field public static final java.lang.String KEY_MODEL = "model";
42    field public static final java.lang.String KEY_MODEL_YEAR = "model-year";
43    field public static final java.lang.String KEY_VEHICLE_ID = "vehicle-id";
44  }
45
46  public class CarNotConnectedException extends java.lang.Exception {
47    ctor public CarNotConnectedException();
48    ctor public CarNotConnectedException(java.lang.String);
49    ctor public CarNotConnectedException(java.lang.String, java.lang.Throwable);
50    ctor public CarNotConnectedException(java.lang.Exception);
51  }
52
53  public class CarNotSupportedException extends java.lang.Exception {
54    ctor public CarNotSupportedException();
55    ctor public CarNotSupportedException(java.lang.String);
56    ctor public CarNotSupportedException(java.lang.String, java.lang.Throwable);
57    ctor public CarNotSupportedException(java.lang.Exception);
58  }
59
60  public class CarProjectionManager {
61    method public void onCarDisconnected();
62    method public void registerProjectionRunner(android.content.Intent) throws android.car.CarNotConnectedException;
63    method public void regsiterProjectionListener(android.car.CarProjectionManager.CarProjectionListener, int) throws android.car.CarNotConnectedException;
64    method public void unregisterProjectionRunner(android.content.Intent) throws android.car.CarNotConnectedException;
65    method public void unregsiterProjectionListener() throws android.car.CarNotConnectedException;
66    field public static final int PROJECTION_LONG_PRESS_VOICE_SEARCH = 2; // 0x2
67    field public static final int PROJECTION_VOICE_SEARCH = 1; // 0x1
68  }
69
70  public static abstract interface CarProjectionManager.CarProjectionListener {
71    method public abstract void onVoiceAssistantRequest(boolean);
72  }
73
74  public class VehicleAreaType {
75    ctor public VehicleAreaType();
76    field public static final int VEHICLE_AREA_TYPE_DOOR = 4; // 0x4
77    field public static final int VEHICLE_AREA_TYPE_NONE = 0; // 0x0
78    field public static final int VEHICLE_AREA_TYPE_SEAT = 3; // 0x3
79    field public static final int VEHICLE_AREA_TYPE_WINDOW = 2; // 0x2
80    field public static final int VEHICLE_AREA_TYPE_ZONE = 1; // 0x1
81  }
82
83  public class VehicleDoor {
84    ctor public VehicleDoor();
85    field public static final int DOOR_HOOD = 268435456; // 0x10000000
86    field public static final int DOOR_REAR = 536870912; // 0x20000000
87    field public static final int DOOR_ROW_1_LEFT = 1; // 0x1
88    field public static final int DOOR_ROW_1_RIGHT = 4; // 0x4
89    field public static final int DOOR_ROW_2_LEFT = 16; // 0x10
90    field public static final int DOOR_ROW_2_RIGHT = 64; // 0x40
91    field public static final int DOOR_ROW_3_LEFT = 256; // 0x100
92    field public static final int DOOR_ROW_3_RIGHT = 1024; // 0x400
93  }
94
95  public class VehicleSeat {
96    ctor public VehicleSeat();
97    field public static final int SEAT_DRIVER_LHD = 1; // 0x1
98    field public static final int SEAT_DRIVER_RHD = 2; // 0x2
99    field public static final int SEAT_ROW_1_PASSENGER_CENTER = 32; // 0x20
100    field public static final int SEAT_ROW_1_PASSENGER_LEFT = 16; // 0x10
101    field public static final int SEAT_ROW_1_PASSENGER_RIGHT = 64; // 0x40
102    field public static final int SEAT_ROW_2_PASSENGER_CENTER = 512; // 0x200
103    field public static final int SEAT_ROW_2_PASSENGER_LEFT = 256; // 0x100
104    field public static final int SEAT_ROW_2_PASSENGER_RIGHT = 1024; // 0x400
105    field public static final int SEAT_ROW_3_PASSENGER_CENTER = 8192; // 0x2000
106    field public static final int SEAT_ROW_3_PASSENGER_LEFT = 4096; // 0x1000
107    field public static final int SEAT_ROW_3_PASSENGER_RIGHT = 16384; // 0x4000
108  }
109
110  public class VehicleWindow {
111    ctor public VehicleWindow();
112    field public static final int WINDOW_FRONT_WINDSHIELD = 1; // 0x1
113    field public static final int WINDOW_REAR_WINDSHIELD = 2; // 0x2
114    field public static final int WINDOW_ROOF_TOP = 4; // 0x4
115    field public static final int WINDOW_ROW_1_LEFT = 16; // 0x10
116    field public static final int WINDOW_ROW_1_RIGHT = 32; // 0x20
117    field public static final int WINDOW_ROW_2_LEFT = 256; // 0x100
118    field public static final int WINDOW_ROW_2_RIGHT = 512; // 0x200
119    field public static final int WINDOW_ROW_3_LEFT = 4096; // 0x1000
120    field public static final int WINDOW_ROW_3_RIGHT = 8192; // 0x2000
121  }
122
123  public class VehicleZone {
124    ctor public VehicleZone();
125    field public static final int ZONE_ALL = -2147483648; // 0x80000000
126    field public static final int ZONE_ROW_1_ALL = 8; // 0x8
127    field public static final int ZONE_ROW_1_CENTER = 2; // 0x2
128    field public static final int ZONE_ROW_1_LEFT = 1; // 0x1
129    field public static final int ZONE_ROW_1_RIGHT = 4; // 0x4
130    field public static final int ZONE_ROW_2_ALL = 128; // 0x80
131    field public static final int ZONE_ROW_2_CENTER = 32; // 0x20
132    field public static final int ZONE_ROW_2_LEFT = 16; // 0x10
133    field public static final int ZONE_ROW_2_RIGHT = 64; // 0x40
134    field public static final int ZONE_ROW_3_ALL = 2048; // 0x800
135    field public static final int ZONE_ROW_3_CENTER = 512; // 0x200
136    field public static final int ZONE_ROW_3_LEFT = 256; // 0x100
137    field public static final int ZONE_ROW_3_RIGHT = 1024; // 0x400
138    field public static final int ZONE_ROW_4_ALL = 32768; // 0x8000
139    field public static final int ZONE_ROW_4_CENTER = 8192; // 0x2000
140    field public static final int ZONE_ROW_4_LEFT = 4096; // 0x1000
141    field public static final int ZONE_ROW_4_RIGHT = 16384; // 0x4000
142  }
143
144  public class VehicleZoneUtil {
145    ctor public VehicleZoneUtil();
146    method public static int getFirstZone(int);
147    method public static int getNextZone(int, int) throws java.lang.IllegalArgumentException;
148    method public static int getNumberOfZones(int);
149    method public static int[] listAllZones(int);
150    method public static int zoneToIndex(int, int) throws java.lang.IllegalArgumentException;
151  }
152
153}
154
155package android.car.annotation {
156
157  public abstract class ValueTypeDef implements java.lang.annotation.Annotation {
158  }
159
160}
161
162package android.car.app.menu {
163
164  public abstract class CarMenuCallbacks {
165    ctor public CarMenuCallbacks();
166    method public abstract android.car.app.menu.RootMenu getRootMenu(android.os.Bundle);
167    method public abstract void onCarMenuClosed();
168    method public abstract void onCarMenuClosing();
169    method public abstract void onCarMenuOpened();
170    method public abstract void onCarMenuOpening();
171    method public abstract void onItemClicked(java.lang.String);
172    method public abstract boolean onItemLongClicked(java.lang.String);
173    method public abstract boolean onMenuClicked();
174    method public abstract void subscribe(java.lang.String, android.car.app.menu.SubscriptionCallbacks);
175    method public abstract void unsubscribe(java.lang.String, android.car.app.menu.SubscriptionCallbacks);
176  }
177
178  public class CarMenuConstants {
179    ctor public CarMenuConstants();
180  }
181
182  public static class CarMenuConstants.MenuItemConstants {
183    ctor public CarMenuConstants.MenuItemConstants();
184    field public static final int FLAG_BROWSABLE = 1; // 0x1
185    field public static final int FLAG_FIRSTITEM = 2; // 0x2
186    field public static final java.lang.String KEY_EMPTY_PLACEHOLDER = "android.car.app.menu.empty_placeholder";
187    field public static final java.lang.String KEY_FLAGS = "android.car.app.menu.flags";
188    field public static final java.lang.String KEY_ID = "android.car.app.menu.id";
189    field public static final java.lang.String KEY_LEFTICON = "android.car.app.menu.leftIcon";
190    field public static final java.lang.String KEY_REMOTEVIEWS = "android.car.app.menu.remoteViews";
191    field public static final java.lang.String KEY_RIGHTICON = "android.car.app.menu.rightIcon";
192    field public static final java.lang.String KEY_RIGHTTEXT = "android.car.app.menu.rightText";
193    field public static final java.lang.String KEY_TEXT = "android.car.app.menu.text";
194    field public static final java.lang.String KEY_TITLE = "android.car.app.menu.title";
195    field public static final java.lang.String KEY_WIDGET = "android.car.app.menu.widget";
196    field public static final java.lang.String KEY_WIDGET_STATE = "android.car.app.menu.widget_state";
197    field public static final int WIDGET_CHECKBOX = 1; // 0x1
198    field public static final int WIDGET_TEXT_VIEW = 2; // 0x2
199  }
200
201  public static abstract class CarMenuConstants.MenuItemConstants.MenuItemFlags implements java.lang.annotation.Annotation {
202  }
203
204  public static abstract class CarMenuConstants.MenuItemConstants.WidgetTypes implements java.lang.annotation.Annotation {
205  }
206
207  public abstract class CarUiEntry {
208    ctor public CarUiEntry(android.content.Context, android.content.Context);
209    method public abstract void closeDrawer();
210    method public abstract android.view.View getContentView();
211    method public abstract int getFragmentContainerId();
212    method public abstract java.lang.CharSequence getSearchBoxText();
213    method public abstract void hideMenuButton();
214    method public abstract void hideTitle();
215    method public abstract void onPause();
216    method public abstract void onRestoreInstanceState(android.os.Bundle);
217    method public abstract void onResume();
218    method public abstract void onSaveInstanceState(android.os.Bundle);
219    method public abstract void onStart();
220    method public abstract void onStop();
221    method public abstract void openDrawer();
222    method public abstract void restoreMenuDrawable();
223    method public abstract void setAutoLightDarkMode();
224    method public abstract void setBackground(android.graphics.Bitmap);
225    method public abstract void setCarMenuCallbacks(android.car.app.menu.CarMenuCallbacks);
226    method public abstract void setDarkMode();
227    method public abstract void setLightMode();
228    method public abstract void setMenuButtonBitmap(android.graphics.Bitmap);
229    method public abstract void setMenuButtonColor(int);
230    method public abstract void setScrimColor(int);
231    method public abstract void setSearchBoxColors(int, int, int, int);
232    method public abstract void setSearchBoxEditListener(android.car.app.menu.SearchBoxEditListener);
233    method public abstract void setSearchBoxEndView(android.view.View);
234    method public abstract void setTitle(java.lang.CharSequence);
235    method public abstract void showMenu(java.lang.String, java.lang.String);
236    method public abstract void showSearchBox(android.view.View.OnClickListener);
237    method public abstract void showTitle();
238    method public abstract void showToast(java.lang.String, long);
239    method public abstract android.widget.EditText startInput(java.lang.String, android.view.View.OnClickListener);
240    method public abstract void stopInput();
241    field protected final android.content.Context mAppContext;
242    field protected final android.content.Context mUiLibContext;
243  }
244
245  public class RootMenu {
246    ctor public RootMenu(java.lang.String);
247    ctor public RootMenu(java.lang.String, android.os.Bundle);
248    method public android.os.Bundle getBundle();
249    method public java.lang.String getId();
250  }
251
252  public abstract class SearchBoxEditListener {
253    ctor public SearchBoxEditListener();
254    method public abstract void onEdit(java.lang.String);
255    method public abstract void onSearch(java.lang.String);
256  }
257
258  public abstract class SubscriptionCallbacks {
259    ctor public SubscriptionCallbacks();
260    method public abstract void onChildChanged(java.lang.String, android.os.Bundle);
261    method public abstract void onChildrenLoaded(java.lang.String, java.util.List<android.os.Bundle>);
262    method public abstract void onError(java.lang.String);
263  }
264
265}
266
267package android.car.cluster.renderer {
268
269  public class DisplayConfiguration implements android.os.Parcelable {
270    ctor public DisplayConfiguration(android.os.Parcel);
271    ctor public DisplayConfiguration(android.graphics.Rect);
272    ctor public DisplayConfiguration(android.graphics.Rect, android.graphics.Rect);
273    method public int describeContents();
274    method public android.graphics.Rect getPrimaryRegion();
275    method public android.graphics.Rect getSecondaryRegion();
276    method public boolean hasSecondaryRegion();
277    method public void writeToParcel(android.os.Parcel, int);
278    field public static final android.os.Parcelable.Creator<android.car.cluster.renderer.DisplayConfiguration> CREATOR;
279  }
280
281  public abstract class InstrumentClusterRenderer {
282    ctor public InstrumentClusterRenderer();
283    method protected abstract android.car.cluster.renderer.NavigationRenderer createNavigationRenderer();
284    method public abstract android.car.navigation.CarNavigationInstrumentCluster getNavigationProperties();
285    method public synchronized android.car.cluster.renderer.NavigationRenderer getNavigationRenderer();
286    method public final synchronized void initialize();
287    method public abstract void onCreate(android.content.Context);
288    method public abstract android.view.View onCreateView(android.car.cluster.renderer.DisplayConfiguration);
289    method public abstract void onStart();
290    method public abstract void onStop();
291  }
292
293  public abstract class NavigationRenderer {
294    ctor public NavigationRenderer();
295    method public abstract void onNextTurnChanged(int, java.lang.String, int, int, android.graphics.Bitmap, int);
296    method public abstract void onNextTurnDistanceChanged(int, int);
297    method public abstract void onStartNavigation();
298    method public abstract void onStopNavigation();
299  }
300
301}
302
303package android.car.content.pm {
304
305  public class AppBlockingPackageInfo implements android.os.Parcelable {
306    ctor public AppBlockingPackageInfo(java.lang.String, int, int, int, android.content.pm.Signature[], java.lang.String[]);
307    ctor public AppBlockingPackageInfo(android.os.Parcel);
308    method public int describeContents();
309    method public void writeToParcel(android.os.Parcel, int);
310    field public static final android.os.Parcelable.Creator<android.car.content.pm.AppBlockingPackageInfo> CREATOR;
311    field public static final int FLAG_SYSTEM_APP = 1; // 0x1
312    field public static final int FLAG_WHOLE_ACTIVITY = 2; // 0x2
313    field public final java.lang.String[] activities;
314    field public final int flags;
315    field public final int maxRevisionCode;
316    field public final int minRevisionCode;
317    field public final java.lang.String packageName;
318    field public final android.content.pm.Signature[] signatures;
319  }
320
321  public class CarAppBlockingPolicy implements android.os.Parcelable {
322    ctor public CarAppBlockingPolicy(android.car.content.pm.AppBlockingPackageInfo[], android.car.content.pm.AppBlockingPackageInfo[]);
323    ctor public CarAppBlockingPolicy(android.os.Parcel);
324    method public int describeContents();
325    method public void writeToParcel(android.os.Parcel, int);
326    field public static final android.os.Parcelable.Creator<android.car.content.pm.CarAppBlockingPolicy> CREATOR;
327    field public final android.car.content.pm.AppBlockingPackageInfo[] blacklists;
328    field public final android.car.content.pm.AppBlockingPackageInfo[] whitelists;
329  }
330
331  public abstract class CarAppBlockingPolicyService extends android.app.Service {
332    ctor public CarAppBlockingPolicyService();
333    method protected abstract android.car.content.pm.CarAppBlockingPolicy getAppBlockingPolicy();
334    method public android.os.IBinder onBind(android.content.Intent);
335    field public static final java.lang.String SERVICE_INTERFACE = "android.car.content.pm.CarAppBlockingPolicyService";
336  }
337
338  public class CarPackageManager {
339    method public boolean isActivityAllowedWhileDriving(java.lang.String, java.lang.String) throws android.car.CarNotConnectedException;
340    method public boolean isServiceAllowedWhileDriving(java.lang.String, java.lang.String) throws android.car.CarNotConnectedException;
341    method public void setAppBlockingPolicy(java.lang.String, android.car.content.pm.CarAppBlockingPolicy, int) throws android.car.CarNotConnectedException, java.lang.IllegalArgumentException, java.lang.SecurityException;
342    field public static final int FLAG_SET_POLICY_ADD = 2; // 0x2
343    field public static final int FLAG_SET_POLICY_REMOVE = 4; // 0x4
344    field public static final int FLAG_SET_POLICY_WAIT_FOR_CHANGE = 1; // 0x1
345  }
346
347}
348
349package android.car.hardware {
350
351  public class CarPropertyConfig implements android.os.Parcelable {
352    method public int describeContents();
353    method public int getAreaCount();
354    method public int[] getAreaIds();
355    method public int getAreaType();
356    method public int getFirstAndOnlyAreaId();
357    method public T getMaxValue(int);
358    method public T getMaxValue();
359    method public T getMinValue(int);
360    method public T getMinValue();
361    method public int getPropertyId();
362    method public java.lang.Class<T> getPropertyType();
363    method public boolean hasArea(int);
364    method public boolean isGlobalProperty();
365    method public static android.car.hardware.CarPropertyConfig.Builder<T> newBuilder(java.lang.Class<T>, int, int, int);
366    method public static android.car.hardware.CarPropertyConfig.Builder<T> newBuilder(java.lang.Class<T>, int, int);
367    method public void writeToParcel(android.os.Parcel, int);
368    field public static final android.os.Parcelable.Creator<android.car.hardware.CarPropertyConfig> CREATOR;
369  }
370
371  public static class CarPropertyConfig.AreaConfig implements android.os.Parcelable {
372    method public int describeContents();
373    method public T getMaxValue();
374    method public T getMinValue();
375    method public void writeToParcel(android.os.Parcel, int);
376    field public static final android.os.Parcelable.Creator<android.car.hardware.CarPropertyConfig.AreaConfig<java.lang.Object>> CREATOR;
377  }
378
379  public static class CarPropertyConfig.Builder {
380    method public android.car.hardware.CarPropertyConfig.Builder<T> addArea(int);
381    method public android.car.hardware.CarPropertyConfig.Builder<T> addAreaConfig(int, T, T);
382    method public android.car.hardware.CarPropertyConfig.Builder<T> addAreas(int[]);
383    method public android.car.hardware.CarPropertyConfig<T> build();
384  }
385
386  public class CarPropertyValue implements android.os.Parcelable {
387    ctor public CarPropertyValue(int, T);
388    ctor public CarPropertyValue(int, int, T);
389    ctor public CarPropertyValue(android.os.Parcel);
390    method public int describeContents();
391    method public int getAreaId();
392    method public int getPropertyId();
393    method public T getValue();
394    method public void writeToParcel(android.os.Parcel, int);
395    field public static final android.os.Parcelable.Creator<android.car.hardware.CarPropertyValue> CREATOR;
396  }
397
398  public class CarSensorEvent implements android.os.Parcelable {
399    ctor public CarSensorEvent(android.os.Parcel);
400    ctor public CarSensorEvent(int, long, int, int);
401    method public int describeContents();
402    method public android.car.hardware.CarSensorEvent.CarSpeedData getCarSpeedData(android.car.hardware.CarSensorEvent.CarSpeedData);
403    method public android.car.hardware.CarSensorEvent.DrivingStatusData getDrivingStatusData(android.car.hardware.CarSensorEvent.DrivingStatusData);
404    method public android.car.hardware.CarSensorEvent.EnvironmentData getEnvironmentData(android.car.hardware.CarSensorEvent.EnvironmentData);
405    method public android.car.hardware.CarSensorEvent.FuelLevelData getFuelLevelData(android.car.hardware.CarSensorEvent.FuelLevelData);
406    method public android.car.hardware.CarSensorEvent.GearData getGearData(android.car.hardware.CarSensorEvent.GearData);
407    method public android.car.hardware.CarSensorEvent.NightData getNightData(android.car.hardware.CarSensorEvent.NightData);
408    method public android.car.hardware.CarSensorEvent.OdometerData getOdometerData(android.car.hardware.CarSensorEvent.OdometerData);
409    method public android.car.hardware.CarSensorEvent.ParkingBrakeData getParkingBrakeData(android.car.hardware.CarSensorEvent.ParkingBrakeData);
410    method public android.car.hardware.CarSensorEvent.RpmData getRpmData(android.car.hardware.CarSensorEvent.RpmData);
411    method public void writeToParcel(android.os.Parcel, int);
412    field public static final android.os.Parcelable.Creator<android.car.hardware.CarSensorEvent> CREATOR;
413    field public static final int DRIVE_STATUS_FULLY_RESTRICTED = 31; // 0x1f
414    field public static final int DRIVE_STATUS_LIMIT_MESSAGE_LEN = 16; // 0x10
415    field public static final int DRIVE_STATUS_NO_CONFIG = 8; // 0x8
416    field public static final int DRIVE_STATUS_NO_KEYBOARD_INPUT = 2; // 0x2
417    field public static final int DRIVE_STATUS_NO_VIDEO = 1; // 0x1
418    field public static final int DRIVE_STATUS_NO_VOICE_INPUT = 4; // 0x4
419    field public static final int DRIVE_STATUS_UNRESTRICTED = 0; // 0x0
420    field public static final int GEAR_DRIVE = 100; // 0x64
421    field public static final int GEAR_EIGHTH = 8; // 0x8
422    field public static final int GEAR_FIFTH = 5; // 0x5
423    field public static final int GEAR_FIRST = 1; // 0x1
424    field public static final int GEAR_FOURTH = 4; // 0x4
425    field public static final int GEAR_NEUTRAL = 0; // 0x0
426    field public static final int GEAR_NINTH = 9; // 0x9
427    field public static final int GEAR_PARK = 101; // 0x65
428    field public static final int GEAR_REVERSE = 102; // 0x66
429    field public static final int GEAR_SECOND = 2; // 0x2
430    field public static final int GEAR_SEVENTH = 7; // 0x7
431    field public static final int GEAR_SIXTH = 6; // 0x6
432    field public static final int GEAR_TENTH = 10; // 0xa
433    field public static final int GEAR_THIRD = 3; // 0x3
434    field public static final int INDEX_ENVIRONMENT_PRESSURE = 1; // 0x1
435    field public static final int INDEX_ENVIRONMENT_TEMPERATURE = 0; // 0x0
436    field public static final int INDEX_FUEL_LEVEL_IN_DISTANCE = 1; // 0x1
437    field public static final int INDEX_FUEL_LEVEL_IN_PERCENTILE = 0; // 0x0
438    field public static final int INDEX_FUEL_LOW_WARNING = 0; // 0x0
439    field public final float[] floatValues;
440    field public final int[] intValues;
441    field public int sensorType;
442    field public long timeStampNs;
443  }
444
445  public static class CarSensorEvent.CarSpeedData {
446    ctor public CarSensorEvent.CarSpeedData();
447    field public float carSpeed;
448    field public long timeStampNs;
449  }
450
451  public static class CarSensorEvent.DrivingStatusData {
452    ctor public CarSensorEvent.DrivingStatusData();
453    field public int status;
454    field public long timeStampNs;
455  }
456
457  public static class CarSensorEvent.EnvironmentData {
458    ctor public CarSensorEvent.EnvironmentData();
459    field public float pressure;
460    field public float temperature;
461    field public long timeStampNs;
462  }
463
464  public static class CarSensorEvent.FuelLevelData {
465    ctor public CarSensorEvent.FuelLevelData();
466    field public int level;
467    field public boolean lowFuelWarning;
468    field public float range;
469    field public long timeStampNs;
470  }
471
472  public static class CarSensorEvent.GearData {
473    ctor public CarSensorEvent.GearData();
474    field public int gear;
475    field public long timeStampNs;
476  }
477
478  public static class CarSensorEvent.NightData {
479    ctor public CarSensorEvent.NightData();
480    field public boolean isNightMode;
481    field public long timeStampNs;
482  }
483
484  public static class CarSensorEvent.OdometerData {
485    ctor public CarSensorEvent.OdometerData();
486    field public float kms;
487    field public long timeStampNs;
488  }
489
490  public static class CarSensorEvent.ParkingBrakeData {
491    ctor public CarSensorEvent.ParkingBrakeData();
492    field public boolean isEngaged;
493    field public long timeStampNs;
494  }
495
496  public static class CarSensorEvent.RpmData {
497    ctor public CarSensorEvent.RpmData();
498    field public float rpm;
499    field public long timeStampNs;
500  }
501
502  public class CarSensorManager {
503    method public android.car.hardware.CarSensorEvent getLatestSensorEvent(int) throws android.car.CarNotConnectedException;
504    method public int[] getSupportedSensors() throws android.car.CarNotConnectedException;
505    method public boolean isSensorSupported(int) throws android.car.CarNotConnectedException;
506    method public static boolean isSensorSupported(int[], int);
507    method public boolean registerListener(android.car.hardware.CarSensorManager.CarSensorEventListener, int, int) throws android.car.CarNotConnectedException, java.lang.IllegalArgumentException;
508    method public void unregisterListener(android.car.hardware.CarSensorManager.CarSensorEventListener) throws android.car.CarNotConnectedException;
509    method public void unregisterListener(android.car.hardware.CarSensorManager.CarSensorEventListener, int) throws android.car.CarNotConnectedException;
510    field public static final int SENSOR_RATE_FAST = 1; // 0x1
511    field public static final int SENSOR_RATE_FASTEST = 0; // 0x0
512    field public static final int SENSOR_RATE_NORMAL = 3; // 0x3
513    field public static final int SENSOR_RATE_UI = 2; // 0x2
514    field public static final int SENSOR_TYPE_CAR_SPEED = 2; // 0x2
515    field public static final int SENSOR_TYPE_DRIVING_STATUS = 11; // 0xb
516    field public static final int SENSOR_TYPE_ENVIRONMENT = 12; // 0xc
517    field public static final int SENSOR_TYPE_FUEL_LEVEL = 5; // 0x5
518    field public static final int SENSOR_TYPE_GEAR = 7; // 0x7
519    field public static final int SENSOR_TYPE_NIGHT = 9; // 0x9
520    field public static final int SENSOR_TYPE_ODOMETER = 4; // 0x4
521    field public static final int SENSOR_TYPE_PARKING_BRAKE = 6; // 0x6
522    field public static final int SENSOR_TYPE_RPM = 3; // 0x3
523    field public static final int SENSOR_TYPE_VENDOR_EXTENSION_END = 1879048191; // 0x6fffffff
524  }
525
526  public static abstract interface CarSensorManager.CarSensorEventListener {
527    method public abstract void onSensorChanged(android.car.hardware.CarSensorEvent);
528  }
529
530}
531
532package android.car.hardware.camera {
533
534  public class CarCamera {
535    ctor public CarCamera(android.car.hardware.camera.ICarCamera, int);
536    method public android.graphics.Rect getCameraCrop() throws android.car.CarNotConnectedException;
537    method public android.graphics.Rect getCameraPosition() throws android.car.CarNotConnectedException;
538    method public android.car.hardware.camera.CarCameraState getCameraState() throws android.car.CarNotConnectedException;
539    method public int getCapabilities() throws android.car.CarNotConnectedException;
540    method public void setCameraCrop(android.graphics.Rect) throws android.car.CarNotConnectedException;
541    method public void setCameraPosition(android.graphics.Rect) throws android.car.CarNotConnectedException;
542    method public void setCameraState(android.car.hardware.camera.CarCameraState) throws android.car.CarNotConnectedException;
543    field public static final java.lang.String TAG;
544    field public final int mCameraType;
545  }
546
547  public class CarCameraManager {
548    method public void closeCamera(android.car.hardware.camera.CarCamera);
549    method public int getCameraCapabilities(int) throws android.car.CarNotConnectedException;
550    method public int[] getCameraList();
551    method public android.car.hardware.camera.CarCamera openCamera(int);
552    field public static final int ANDROID_OVERLAY_SUPPORT_FLAG = 1; // 0x1
553    field public static final int CAMERA_CROP_SUPPORT_FLAG = 2; // 0x2
554    field public static final int CAMERA_POSITIONING_SUPPORT_FLAG = 4; // 0x4
555    field public static final int CAR_CAMERA_TYPE_NONE = 0; // 0x0
556    field public static final int CAR_CAMERA_TYPE_RVC = 1; // 0x1
557    field public static final boolean DBG = true;
558    field public static final java.lang.String TAG;
559  }
560
561  public class CarCameraState implements android.os.Parcelable {
562    ctor public CarCameraState(android.car.hardware.camera.CarCameraState);
563    ctor public CarCameraState(boolean, boolean);
564    method public int describeContents();
565    method public boolean getCameraIsOn();
566    method public boolean getOverlayIsOn();
567    method public void setCameraIsOn(boolean);
568    method public void setOverlayIsOn(boolean);
569    method public void writeToParcel(android.os.Parcel, int);
570    field public static final android.os.Parcelable.Creator<android.car.hardware.camera.CarCameraState> CREATOR;
571  }
572
573  public abstract interface ICarCamera implements android.os.IInterface {
574    method public abstract android.graphics.Rect getCameraCrop(int) throws android.os.RemoteException;
575    method public abstract int[] getCameraList() throws android.os.RemoteException;
576    method public abstract android.graphics.Rect getCameraPosition(int) throws android.os.RemoteException;
577    method public abstract android.car.hardware.camera.CarCameraState getCameraState(int) throws android.os.RemoteException;
578    method public abstract int getCapabilities(int) throws android.os.RemoteException;
579    method public abstract void setCameraCrop(int, android.graphics.Rect) throws android.os.RemoteException;
580    method public abstract void setCameraPosition(int, android.graphics.Rect) throws android.os.RemoteException;
581    method public abstract void setCameraState(int, android.car.hardware.camera.CarCameraState) throws android.os.RemoteException;
582  }
583
584}
585
586package android.car.hardware.hvac {
587
588  public class CarHvacManager {
589    method public boolean getBooleanProperty(int, int) throws android.car.CarNotConnectedException;
590    method public float getFloatProperty(int, int) throws android.car.CarNotConnectedException;
591    method public int getIntProperty(int, int) throws android.car.CarNotConnectedException;
592    method public java.util.List<android.car.hardware.CarPropertyConfig> getPropertyList() throws android.car.CarNotConnectedException;
593    method public static boolean isZonedProperty(int);
594    method public synchronized void registerListener(android.car.hardware.hvac.CarHvacManager.CarHvacEventListener) throws android.car.CarNotConnectedException;
595    method public void setBooleanProperty(int, int, boolean) throws android.car.CarNotConnectedException;
596    method public void setFloatProperty(int, int, float) throws android.car.CarNotConnectedException;
597    method public void setIntProperty(int, int, int) throws android.car.CarNotConnectedException;
598    method public synchronized void unregisterListener(android.car.hardware.hvac.CarHvacManager.CarHvacEventListener) throws android.car.CarNotConnectedException;
599    field public static final boolean DBG = true;
600    field public static final java.lang.String TAG = "CarHvacManager";
601  }
602
603  public static abstract interface CarHvacManager.CarHvacEventListener {
604    method public abstract void onChangeEvent(android.car.hardware.CarPropertyValue);
605    method public abstract void onErrorEvent(int, int);
606  }
607
608  public static abstract class CarHvacManager.HvacPropertyId implements java.lang.annotation.Annotation {
609    field public static final int MAX_GLOBAL_PROPERTY_ID = 16383; // 0x3fff
610    field public static final int MIRROR_DEFROSTER_ON = 1; // 0x1
611    field public static final int STEERING_WHEEL_TEMP = 2; // 0x2
612    field public static final int WINDOW_DEFROSTER_ON = 20481; // 0x5001
613    field public static final int ZONED_AC_ON = 16393; // 0x4009
614    field public static final int ZONED_AIR_RECIRCULATION_ON = 16395; // 0x400b
615    field public static final int ZONED_AUTOMATIC_MODE_ON = 16394; // 0x400a
616    field public static final int ZONED_FAN_POSITION = 16391; // 0x4007
617    field public static final int ZONED_FAN_POSITION_AVAILABLE = 16390; // 0x4006
618    field public static final int ZONED_FAN_SPEED_RPM = 16389; // 0x4005
619    field public static final int ZONED_FAN_SPEED_SETPOINT = 16388; // 0x4004
620    field public static final int ZONED_SEAT_TEMP = 16392; // 0x4008
621    field public static final int ZONED_TEMP_ACTUAL = 16386; // 0x4002
622    field public static final int ZONED_TEMP_IS_FAHRENHEIT = 16387; // 0x4003
623    field public static final int ZONED_TEMP_SETPOINT = 16385; // 0x4001
624  }
625
626}
627
628package android.car.hardware.radio {
629
630  public class CarRadioEvent implements android.os.Parcelable {
631    ctor public CarRadioEvent(int, android.car.hardware.radio.CarRadioPreset);
632    method public int describeContents();
633    method public int getEventType();
634    method public android.car.hardware.radio.CarRadioPreset getPreset();
635    method public void writeToParcel(android.os.Parcel, int);
636    field public static final android.os.Parcelable.Creator<android.car.hardware.radio.CarRadioEvent> CREATOR;
637    field public static final int RADIO_PRESET = 0; // 0x0
638  }
639
640  public class CarRadioManager {
641    method public android.car.hardware.radio.CarRadioPreset getPreset(int) throws android.car.CarNotConnectedException;
642    method public int getPresetCount();
643    method public synchronized void registerListener(android.car.hardware.radio.CarRadioManager.CarRadioEventListener) throws android.car.CarNotConnectedException;
644    method public boolean setPreset(android.car.hardware.radio.CarRadioPreset) throws android.car.CarNotConnectedException, java.lang.IllegalArgumentException;
645    method public synchronized void unregisterListener() throws android.car.CarNotConnectedException;
646    field public static final boolean DBG = true;
647    field public static final java.lang.String TAG = "CarRadioManager";
648  }
649
650  public static abstract interface CarRadioManager.CarRadioEventListener {
651    method public abstract void onEvent(android.car.hardware.radio.CarRadioEvent);
652  }
653
654  public class CarRadioPreset implements android.os.Parcelable {
655    ctor public CarRadioPreset(int, int, int, int);
656    method public int describeContents();
657    method public int getBand();
658    method public int getChannel();
659    method public int getPresetNumber();
660    method public int getSubChannel();
661    method public void writeToParcel(android.os.Parcel, int);
662    field public static final android.os.Parcelable.Creator<android.car.hardware.radio.CarRadioPreset> CREATOR;
663  }
664
665}
666
667package android.car.media {
668
669  public class CarAudioManager {
670    method public int abandonAudioFocus(android.media.AudioManager.OnAudioFocusChangeListener, android.media.AudioAttributes);
671    method public android.media.AudioAttributes getAudioAttributesForCarUsage(int);
672    method public void onCarDisconnected();
673    method public int requestAudioFocus(android.media.AudioManager.OnAudioFocusChangeListener, android.media.AudioAttributes, int, int) throws java.lang.IllegalArgumentException;
674    field public static final int CAR_AUDIO_USAGE_ALARM = 6; // 0x6
675    field public static final int CAR_AUDIO_USAGE_DEFAULT = 0; // 0x0
676    field public static final int CAR_AUDIO_USAGE_MUSIC = 1; // 0x1
677    field public static final int CAR_AUDIO_USAGE_NAVIGATION_GUIDANCE = 3; // 0x3
678    field public static final int CAR_AUDIO_USAGE_NOTIFICATION = 7; // 0x7
679    field public static final int CAR_AUDIO_USAGE_RADIO = 2; // 0x2
680    field public static final int CAR_AUDIO_USAGE_SYSTEM_SAFETY_ALERT = 9; // 0x9
681    field public static final int CAR_AUDIO_USAGE_SYSTEM_SOUND = 8; // 0x8
682    field public static final int CAR_AUDIO_USAGE_VOICE_CALL = 4; // 0x4
683    field public static final int CAR_AUDIO_USAGE_VOICE_COMMAND = 5; // 0x5
684  }
685
686}
687
688package android.car.navigation {
689
690  public class CarNavigationInstrumentCluster implements android.os.Parcelable {
691    ctor public CarNavigationInstrumentCluster(android.car.navigation.CarNavigationInstrumentCluster);
692    method public static android.car.navigation.CarNavigationInstrumentCluster createCluster(int);
693    method public static android.car.navigation.CarNavigationInstrumentCluster createCustomImageCluster(int, int, int, int);
694    method public int describeContents();
695    method public int getImageColorDepthBits();
696    method public int getImageHeight();
697    method public int getImageWidth();
698    method public int getMinIntervalMs();
699    method public int getType();
700    method public boolean supportsCustomImages();
701    method public void writeToParcel(android.os.Parcel, int);
702    field public static final android.os.Parcelable.Creator<android.car.navigation.CarNavigationInstrumentCluster> CREATOR;
703  }
704
705  public static abstract class CarNavigationInstrumentCluster.ClusterType implements java.lang.annotation.Annotation {
706    field public static final int CUSTOM_IMAGES_SUPPORTED = 1; // 0x1
707    field public static final int IMAGE_CODES_ONLY = 2; // 0x2
708  }
709
710}
711
712package android.car.test {
713
714  public class CarTestManagerBinderWrapper {
715    ctor public CarTestManagerBinderWrapper(android.os.IBinder);
716    method public void onCarDisconnected();
717    field public final android.os.IBinder binder;
718  }
719
720}
721
722