• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1package android.car {
2
3  public final 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.Handler);
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_FOCUS_SERVICE = "app_focus";
13    field public static final java.lang.String AUDIO_SERVICE = "audio";
14    field public static final java.lang.String CABIN_SERVICE = "cabin";
15    field public static final java.lang.String CAMERA_SERVICE = "camera";
16    field public static final int CONNECTION_TYPE_EMBEDDED = 5; // 0x5
17    field public static final java.lang.String HVAC_SERVICE = "hvac";
18    field public static final java.lang.String INFO_SERVICE = "info";
19    field public static final java.lang.String PACKAGE_SERVICE = "package";
20    field public static final java.lang.String PERMISSION_CAR_CABIN = "android.car.permission.CAR_CABIN";
21    field public static final java.lang.String PERMISSION_CAR_CAMERA = "android.car.permission.CAR_CAMERA";
22    field public static final java.lang.String PERMISSION_CAR_CONTROL_AUDIO_VOLUME = "android.car.permission.CAR_CONTROL_AUDIO_VOLUME";
23    field public static final java.lang.String PERMISSION_CAR_HVAC = "android.car.permission.CAR_HVAC";
24    field public static final java.lang.String PERMISSION_CAR_PROJECTION = "android.car.permission.CAR_PROJECTION";
25    field public static final java.lang.String PERMISSION_CAR_RADIO = "android.car.permission.CAR_RADIO";
26    field public static final java.lang.String PERMISSION_CONTROL_APP_BLOCKING = "android.car.permission.CONTROL_APP_BLOCKING";
27    field public static final java.lang.String PERMISSION_FUEL = "android.car.permission.CAR_FUEL";
28    field public static final java.lang.String PERMISSION_MILEAGE = "android.car.permission.CAR_MILEAGE";
29    field public static final java.lang.String PERMISSION_MOCK_VEHICLE_HAL = "android.car.permission.CAR_MOCK_VEHICLE_HAL";
30    field public static final java.lang.String PERMISSION_SPEED = "android.car.permission.CAR_SPEED";
31    field public static final java.lang.String PERMISSION_VENDOR_EXTENSION = "android.car.permission.CAR_VENDOR_EXTENSION";
32    field public static final java.lang.String PROJECTION_SERVICE = "projection";
33    field public static final java.lang.String RADIO_SERVICE = "radio";
34    field public static final java.lang.String SENSOR_SERVICE = "sensor";
35    field public static final java.lang.String TEST_SERVICE = "car-service-test";
36    field public static final java.lang.String VENDOR_EXTENSION_SERVICE = "vendor_extension";
37    field public static final int VERSION = 1; // 0x1
38  }
39
40  public final class CarAppFocusManager {
41    method public void abandonAppFocus(android.car.CarAppFocusManager.OnAppFocusOwnershipCallback, int);
42    method public void abandonAppFocus(android.car.CarAppFocusManager.OnAppFocusOwnershipCallback);
43    method public void addFocusListener(android.car.CarAppFocusManager.OnAppFocusChangedListener, int) throws android.car.CarNotConnectedException;
44    method public boolean isOwningFocus(android.car.CarAppFocusManager.OnAppFocusOwnershipCallback, int) throws android.car.CarNotConnectedException;
45    method public void removeFocusListener(android.car.CarAppFocusManager.OnAppFocusChangedListener, int);
46    method public void removeFocusListener(android.car.CarAppFocusManager.OnAppFocusChangedListener);
47    method public int requestAppFocus(int, android.car.CarAppFocusManager.OnAppFocusOwnershipCallback) throws android.car.CarNotConnectedException, java.lang.SecurityException;
48    field public static final int APP_FOCUS_REQUEST_FAILED = 0; // 0x0
49    field public static final int APP_FOCUS_REQUEST_SUCCEEDED = 1; // 0x1
50    field public static final int APP_FOCUS_TYPE_NAVIGATION = 1; // 0x1
51    field public static final int APP_FOCUS_TYPE_VOICE_COMMAND = 2; // 0x2
52  }
53
54  public static abstract interface CarAppFocusManager.OnAppFocusChangedListener {
55    method public abstract void onAppFocusChanged(int, boolean);
56  }
57
58  public static abstract interface CarAppFocusManager.OnAppFocusOwnershipCallback {
59    method public abstract void onAppFocusOwnershipGranted(int);
60    method public abstract void onAppFocusOwnershipLost(int);
61  }
62
63  public final class CarInfoManager {
64    method public java.lang.String getManufacturer() throws android.car.CarNotConnectedException;
65    method public java.lang.String getModel() throws android.car.CarNotConnectedException;
66    method public java.lang.String getModelYear() throws android.car.CarNotConnectedException;
67    method public java.lang.String getVehicleId() throws android.car.CarNotConnectedException;
68  }
69
70  public class CarNotConnectedException extends java.lang.Exception {
71    ctor public CarNotConnectedException();
72    ctor public CarNotConnectedException(java.lang.String);
73    ctor public CarNotConnectedException(java.lang.String, java.lang.Throwable);
74    ctor public CarNotConnectedException(java.lang.Exception);
75  }
76
77  public final class CarProjectionManager {
78    method public void onCarDisconnected();
79    method public void registerProjectionRunner(android.content.Intent) throws android.car.CarNotConnectedException;
80    method public void registerProjectionListener(android.car.CarProjectionManager.CarProjectionListener, int) throws android.car.CarNotConnectedException;
81    method public void unregisterProjectionRunner(android.content.Intent);
82    method public void unregisterProjectionListener();
83    field public static final int PROJECTION_LONG_PRESS_VOICE_SEARCH = 2; // 0x2
84    field public static final int PROJECTION_VOICE_SEARCH = 1; // 0x1
85  }
86
87  public static abstract interface CarProjectionManager.CarProjectionListener {
88    method public abstract void onVoiceAssistantRequest(boolean);
89  }
90
91  public final class VehicleAreaType {
92    field public static final int VEHICLE_AREA_TYPE_DOOR = 4; // 0x4
93    field public static final int VEHICLE_AREA_TYPE_MIRROR = 5; // 0x5
94    field public static final int VEHICLE_AREA_TYPE_NONE = 0; // 0x0
95    field public static final int VEHICLE_AREA_TYPE_SEAT = 3; // 0x3
96    field public static final int VEHICLE_AREA_TYPE_WINDOW = 2; // 0x2
97    field public static final int VEHICLE_AREA_TYPE_ZONE = 1; // 0x1
98  }
99
100  public final class VehicleDoor {
101    field public static final int DOOR_HOOD = 268435456; // 0x10000000
102    field public static final int DOOR_REAR = 536870912; // 0x20000000
103    field public static final int DOOR_ROW_1_LEFT = 1; // 0x1
104    field public static final int DOOR_ROW_1_RIGHT = 4; // 0x4
105    field public static final int DOOR_ROW_2_LEFT = 16; // 0x10
106    field public static final int DOOR_ROW_2_RIGHT = 64; // 0x40
107    field public static final int DOOR_ROW_3_LEFT = 256; // 0x100
108    field public static final int DOOR_ROW_3_RIGHT = 1024; // 0x400
109  }
110
111  public final class VehicleMirror {
112    field public static final int MIRROR_DRIVER_CENTER = 4; // 0x4
113    field public static final int MIRROR_DRIVER_LEFT = 1; // 0x1
114    field public static final int MIRROR_DRIVER_RIGHT = 2; // 0x2
115  }
116
117  public final class VehicleSeat {
118    field public static final int SEAT_ROW_1_CENTER = 2; // 0x2
119    field public static final int SEAT_ROW_1_LEFT = 1; // 0x1
120    field public static final int SEAT_ROW_1_RIGHT = 4; // 0x4
121    field public static final int SEAT_ROW_2_CENTER = 32; // 0x20
122    field public static final int SEAT_ROW_2_LEFT = 16; // 0x10
123    field public static final int SEAT_ROW_2_RIGHT = 64; // 0x40
124    field public static final int SEAT_ROW_3_CENTER = 512; // 0x200
125    field public static final int SEAT_ROW_3_LEFT = 256; // 0x100
126    field public static final int SEAT_ROW_3_RIGHT = 1024; // 0x400
127  }
128
129  public final class VehicleWindow {
130    field public static final int WINDOW_FRONT_WINDSHIELD = 1; // 0x1
131    field public static final int WINDOW_REAR_WINDSHIELD = 2; // 0x2
132    field public static final int WINDOW_ROOF_TOP = 4; // 0x4
133    field public static final int WINDOW_ROW_1_LEFT = 16; // 0x10
134    field public static final int WINDOW_ROW_1_RIGHT = 32; // 0x20
135    field public static final int WINDOW_ROW_2_LEFT = 256; // 0x100
136    field public static final int WINDOW_ROW_2_RIGHT = 512; // 0x200
137    field public static final int WINDOW_ROW_3_LEFT = 4096; // 0x1000
138    field public static final int WINDOW_ROW_3_RIGHT = 8192; // 0x2000
139  }
140
141  public final class VehicleZone {
142    field public static final int ZONE_ALL = -2147483648; // 0x80000000
143    field public static final int ZONE_ROW_1_ALL = 8; // 0x8
144    field public static final int ZONE_ROW_1_CENTER = 2; // 0x2
145    field public static final int ZONE_ROW_1_LEFT = 1; // 0x1
146    field public static final int ZONE_ROW_1_RIGHT = 4; // 0x4
147    field public static final int ZONE_ROW_2_ALL = 128; // 0x80
148    field public static final int ZONE_ROW_2_CENTER = 32; // 0x20
149    field public static final int ZONE_ROW_2_LEFT = 16; // 0x10
150    field public static final int ZONE_ROW_2_RIGHT = 64; // 0x40
151    field public static final int ZONE_ROW_3_ALL = 2048; // 0x800
152    field public static final int ZONE_ROW_3_CENTER = 512; // 0x200
153    field public static final int ZONE_ROW_3_LEFT = 256; // 0x100
154    field public static final int ZONE_ROW_3_RIGHT = 1024; // 0x400
155    field public static final int ZONE_ROW_4_ALL = 32768; // 0x8000
156    field public static final int ZONE_ROW_4_CENTER = 8192; // 0x2000
157    field public static final int ZONE_ROW_4_LEFT = 4096; // 0x1000
158    field public static final int ZONE_ROW_4_RIGHT = 16384; // 0x4000
159  }
160
161  public final class VehicleZoneUtil {
162    method public static int getFirstZone(int);
163    method public static int getNextZone(int, int) throws java.lang.IllegalArgumentException;
164    method public static int getNumberOfZones(int);
165    method public static int[] listAllZones(int);
166    method public static int zoneToIndex(int, int) throws java.lang.IllegalArgumentException;
167  }
168
169}
170
171package android.car.app.menu {
172
173  public abstract class CarMenuCallbacks {
174    ctor public CarMenuCallbacks();
175    method public abstract android.car.app.menu.RootMenu getRootMenu(android.os.Bundle);
176    method public abstract void onCarMenuClosed();
177    method public abstract void onCarMenuClosing();
178    method public abstract void onCarMenuOpened();
179    method public abstract void onCarMenuOpening();
180    method public abstract void onItemClicked(java.lang.String);
181    method public abstract boolean onItemLongClicked(java.lang.String);
182    method public abstract boolean onMenuClicked();
183    method public abstract void subscribe(java.lang.String, android.car.app.menu.SubscriptionCallbacks);
184    method public abstract void unsubscribe(java.lang.String, android.car.app.menu.SubscriptionCallbacks);
185  }
186
187  public class CarMenuConstants {
188    ctor public CarMenuConstants();
189  }
190
191  public static class CarMenuConstants.MenuItemConstants {
192    ctor public CarMenuConstants.MenuItemConstants();
193    field public static final int FLAG_BROWSABLE = 1; // 0x1
194    field public static final int FLAG_FIRSTITEM = 2; // 0x2
195    field public static final java.lang.String KEY_EMPTY_PLACEHOLDER = "android.car.app.menu.empty_placeholder";
196    field public static final java.lang.String KEY_FLAGS = "android.car.app.menu.flags";
197    field public static final java.lang.String KEY_ID = "android.car.app.menu.id";
198    field public static final java.lang.String KEY_LEFTICON = "android.car.app.menu.leftIcon";
199    field public static final java.lang.String KEY_REMOTEVIEWS = "android.car.app.menu.remoteViews";
200    field public static final java.lang.String KEY_RIGHTICON = "android.car.app.menu.rightIcon";
201    field public static final java.lang.String KEY_RIGHTTEXT = "android.car.app.menu.rightText";
202    field public static final java.lang.String KEY_TEXT = "android.car.app.menu.text";
203    field public static final java.lang.String KEY_TITLE = "android.car.app.menu.title";
204    field public static final java.lang.String KEY_WIDGET = "android.car.app.menu.widget";
205    field public static final java.lang.String KEY_WIDGET_STATE = "android.car.app.menu.widget_state";
206    field public static final int WIDGET_CHECKBOX = 1; // 0x1
207    field public static final int WIDGET_TEXT_VIEW = 2; // 0x2
208  }
209
210  public static abstract class CarMenuConstants.MenuItemConstants.MenuItemFlags implements java.lang.annotation.Annotation {
211  }
212
213  public static abstract class CarMenuConstants.MenuItemConstants.WidgetTypes implements java.lang.annotation.Annotation {
214  }
215
216  public abstract class CarUiEntry {
217    ctor public CarUiEntry(android.content.Context, android.content.Context);
218    method public abstract void closeDrawer();
219    method public abstract android.view.View getContentView();
220    method public abstract int getFragmentContainerId();
221    method public abstract java.lang.CharSequence getSearchBoxText();
222    method public abstract void hideMenuButton();
223    method public abstract void hideTitle();
224    method public abstract void onPause();
225    method public abstract void onRestoreInstanceState(android.os.Bundle);
226    method public abstract void onResume();
227    method public abstract void onSaveInstanceState(android.os.Bundle);
228    method public abstract void onStart();
229    method public abstract void onStop();
230    method public abstract void openDrawer();
231    method public abstract void restoreMenuDrawable();
232    method public abstract void setAutoLightDarkMode();
233    method public abstract void setBackground(android.graphics.Bitmap);
234    method public abstract void setCarMenuCallbacks(android.car.app.menu.CarMenuCallbacks);
235    method public abstract void setDarkMode();
236    method public abstract void setLightMode();
237    method public abstract void setMenuButtonBitmap(android.graphics.Bitmap);
238    method public abstract void setMenuButtonColor(int);
239    method public abstract void setScrimColor(int);
240    method public abstract void setSearchBoxColors(int, int, int, int);
241    method public abstract void setSearchBoxEditListener(android.car.app.menu.SearchBoxEditListener);
242    method public abstract void setSearchBoxEndView(android.view.View);
243    method public abstract void setTitle(java.lang.CharSequence);
244    method public abstract void showMenu(java.lang.String, java.lang.String);
245    method public abstract void showSearchBox(android.view.View.OnClickListener);
246    method public abstract void showTitle();
247    method public abstract void showToast(java.lang.String, long);
248    method public abstract android.widget.EditText startInput(java.lang.String, android.view.View.OnClickListener);
249    method public abstract void stopInput();
250    field protected final android.content.Context mAppContext;
251    field protected final android.content.Context mUiLibContext;
252  }
253
254  public class RootMenu {
255    ctor public RootMenu(java.lang.String);
256    ctor public RootMenu(java.lang.String, android.os.Bundle);
257    method public android.os.Bundle getBundle();
258    method public java.lang.String getId();
259  }
260
261  public abstract class SearchBoxEditListener {
262    ctor public SearchBoxEditListener();
263    method public abstract void onEdit(java.lang.String);
264    method public abstract void onSearch(java.lang.String);
265  }
266
267  public abstract class SubscriptionCallbacks {
268    ctor public SubscriptionCallbacks();
269    method public abstract void onChildChanged(java.lang.String, android.os.Bundle);
270    method public abstract void onChildrenLoaded(java.lang.String, java.util.List<android.os.Bundle>);
271    method public abstract void onError(java.lang.String);
272  }
273
274}
275
276package android.car.cluster.renderer {
277
278  public class DisplayConfiguration implements android.os.Parcelable {
279    ctor public DisplayConfiguration(android.os.Parcel);
280    ctor public DisplayConfiguration(android.graphics.Rect);
281    ctor public DisplayConfiguration(android.graphics.Rect, android.graphics.Rect);
282    method public int describeContents();
283    method public android.graphics.Rect getPrimaryRegion();
284    method public android.graphics.Rect getSecondaryRegion();
285    method public boolean hasSecondaryRegion();
286    method public void writeToParcel(android.os.Parcel, int);
287    field public static final android.os.Parcelable.Creator<android.car.cluster.renderer.DisplayConfiguration> CREATOR;
288  }
289
290  public abstract class InstrumentClusterRenderer {
291    ctor public InstrumentClusterRenderer();
292    method protected abstract android.car.cluster.renderer.NavigationRenderer createNavigationRenderer();
293    method public synchronized android.car.cluster.renderer.NavigationRenderer getNavigationRenderer();
294    method public final synchronized void initialize();
295    method public abstract void onCreate(android.content.Context);
296    method public abstract void onStart();
297    method public abstract void onStop();
298  }
299
300  public abstract class InstrumentClusterRenderingService extends android.app.Service {
301    ctor public InstrumentClusterRenderingService();
302    method protected abstract android.car.cluster.renderer.NavigationRenderer getNavigationRenderer();
303    method public android.os.IBinder onBind(android.content.Intent);
304    method protected void onKeyEvent(android.view.KeyEvent);
305  }
306
307  public abstract class NavigationRenderer {
308    ctor public NavigationRenderer();
309    method public abstract android.car.navigation.CarNavigationInstrumentCluster getNavigationProperties();
310    method public abstract void onNextTurnChanged(int, java.lang.CharSequence, int, int, android.graphics.Bitmap, int);
311    method public abstract void onNextTurnDistanceChanged(int, int, int, int);
312    method public abstract void onStartNavigation();
313    method public abstract void onStopNavigation();
314  }
315
316}
317
318package android.car.content.pm {
319
320  public class AppBlockingPackageInfo implements android.os.Parcelable {
321    ctor public AppBlockingPackageInfo(java.lang.String, int, int, int, android.content.pm.Signature[], java.lang.String[]);
322    ctor public AppBlockingPackageInfo(android.os.Parcel);
323    method public int describeContents();
324    method public void writeToParcel(android.os.Parcel, int);
325    field public static final android.os.Parcelable.Creator<android.car.content.pm.AppBlockingPackageInfo> CREATOR;
326    field public static final int FLAG_SYSTEM_APP = 1; // 0x1
327    field public static final int FLAG_WHOLE_ACTIVITY = 2; // 0x2
328    field public final java.lang.String[] activities;
329    field public final int flags;
330    field public final int maxRevisionCode;
331    field public final int minRevisionCode;
332    field public final java.lang.String packageName;
333    field public final android.content.pm.Signature[] signatures;
334  }
335
336  public class CarAppBlockingPolicy implements android.os.Parcelable {
337    ctor public CarAppBlockingPolicy(android.car.content.pm.AppBlockingPackageInfo[], android.car.content.pm.AppBlockingPackageInfo[]);
338    ctor public CarAppBlockingPolicy(android.os.Parcel);
339    method public int describeContents();
340    method public void writeToParcel(android.os.Parcel, int);
341    field public static final android.os.Parcelable.Creator<android.car.content.pm.CarAppBlockingPolicy> CREATOR;
342    field public final android.car.content.pm.AppBlockingPackageInfo[] blacklists;
343    field public final android.car.content.pm.AppBlockingPackageInfo[] whitelists;
344  }
345
346  public abstract class CarAppBlockingPolicyService extends android.app.Service {
347    ctor public CarAppBlockingPolicyService();
348    method protected abstract android.car.content.pm.CarAppBlockingPolicy getAppBlockingPolicy();
349    method public android.os.IBinder onBind(android.content.Intent);
350    field public static final java.lang.String SERVICE_INTERFACE = "android.car.content.pm.CarAppBlockingPolicyService";
351  }
352
353  public final class CarPackageManager {
354    method public boolean isActivityAllowedWhileDriving(java.lang.String, java.lang.String) throws android.car.CarNotConnectedException;
355    method public boolean isActivityBackedBySafeActivity(android.content.ComponentName) throws android.car.CarNotConnectedException;
356    method public boolean isServiceAllowedWhileDriving(java.lang.String, java.lang.String) throws android.car.CarNotConnectedException;
357    method public void setAppBlockingPolicy(java.lang.String, android.car.content.pm.CarAppBlockingPolicy, int) throws android.car.CarNotConnectedException, java.lang.IllegalArgumentException, java.lang.SecurityException;
358    field public static final int FLAG_SET_POLICY_ADD = 2; // 0x2
359    field public static final int FLAG_SET_POLICY_REMOVE = 4; // 0x4
360    field public static final int FLAG_SET_POLICY_WAIT_FOR_CHANGE = 1; // 0x1
361  }
362
363}
364
365package android.car.hardware {
366
367  public class CarPropertyConfig<T> implements android.os.Parcelable {
368    method public int describeContents();
369    method public int getAreaCount();
370    method public int[] getAreaIds();
371    method public int getAreaType();
372    method public int getFirstAndOnlyAreaId();
373    method public T getMaxValue(int);
374    method public T getMaxValue();
375    method public T getMinValue(int);
376    method public T getMinValue();
377    method public int getPropertyId();
378    method public java.lang.Class<T> getPropertyType();
379    method public boolean hasArea(int);
380    method public boolean isGlobalProperty();
381    method public static <T> android.car.hardware.CarPropertyConfig.Builder<T> newBuilder(java.lang.Class<T>, int, int, int);
382    method public static <T> android.car.hardware.CarPropertyConfig.Builder<T> newBuilder(java.lang.Class<T>, int, int);
383    method public void writeToParcel(android.os.Parcel, int);
384    field public static final android.os.Parcelable.Creator<android.car.hardware.CarPropertyConfig> CREATOR;
385  }
386
387  public static class CarPropertyConfig.AreaConfig<T> implements android.os.Parcelable {
388    method public int describeContents();
389    method public T getMaxValue();
390    method public T getMinValue();
391    method public void writeToParcel(android.os.Parcel, int);
392    field public static final android.os.Parcelable.Creator<android.car.hardware.CarPropertyConfig.AreaConfig<java.lang.Object>> CREATOR;
393  }
394
395  public static class CarPropertyConfig.Builder<T> {
396    method public android.car.hardware.CarPropertyConfig.Builder<T> addArea(int);
397    method public android.car.hardware.CarPropertyConfig.Builder<T> addAreaConfig(int, T, T);
398    method public android.car.hardware.CarPropertyConfig.Builder<T> addAreas(int[]);
399    method public android.car.hardware.CarPropertyConfig<T> build();
400  }
401
402  public class CarPropertyValue<T> implements android.os.Parcelable {
403    ctor public CarPropertyValue(int, T);
404    ctor public CarPropertyValue(int, int, T);
405    ctor public CarPropertyValue(android.os.Parcel);
406    method public int describeContents();
407    method public int getAreaId();
408    method public int getPropertyId();
409    method public T getValue();
410    method public void writeToParcel(android.os.Parcel, int);
411    field public static final android.os.Parcelable.Creator<android.car.hardware.CarPropertyValue> CREATOR;
412  }
413
414  public class CarSensorEvent implements android.os.Parcelable {
415    method public int describeContents();
416    method public void writeToParcel(android.os.Parcel, int);
417    field public static final android.os.Parcelable.Creator<android.car.hardware.CarSensorEvent> CREATOR;
418    field public static final int DRIVE_STATUS_FULLY_RESTRICTED = 31; // 0x1f
419    field public static final int DRIVE_STATUS_LIMIT_MESSAGE_LEN = 16; // 0x10
420    field public static final int DRIVE_STATUS_NO_CONFIG = 8; // 0x8
421    field public static final int DRIVE_STATUS_NO_KEYBOARD_INPUT = 2; // 0x2
422    field public static final int DRIVE_STATUS_NO_VIDEO = 1; // 0x1
423    field public static final int DRIVE_STATUS_NO_VOICE_INPUT = 4; // 0x4
424    field public static final int DRIVE_STATUS_UNRESTRICTED = 0; // 0x0
425    field public static final int GEAR_DRIVE = 100; // 0x64
426    field public static final int GEAR_EIGHTH = 8; // 0x8
427    field public static final int GEAR_FIFTH = 5; // 0x5
428    field public static final int GEAR_FIRST = 1; // 0x1
429    field public static final int GEAR_FOURTH = 4; // 0x4
430    field public static final int GEAR_NEUTRAL = 0; // 0x0
431    field public static final int GEAR_NINTH = 9; // 0x9
432    field public static final int GEAR_PARK = 101; // 0x65
433    field public static final int GEAR_REVERSE = 102; // 0x66
434    field public static final int GEAR_SECOND = 2; // 0x2
435    field public static final int GEAR_SEVENTH = 7; // 0x7
436    field public static final int GEAR_SIXTH = 6; // 0x6
437    field public static final int GEAR_TENTH = 10; // 0xa
438    field public static final int GEAR_THIRD = 3; // 0x3
439    field public static final int INDEX_ENVIRONMENT_PRESSURE = 1; // 0x1
440    field public static final int INDEX_ENVIRONMENT_TEMPERATURE = 0; // 0x0
441    field public static final int INDEX_FUEL_LEVEL_IN_DISTANCE = 1; // 0x1
442    field public static final int INDEX_FUEL_LEVEL_IN_PERCENTILE = 0; // 0x0
443    field public static final int INDEX_FUEL_LOW_WARNING = 0; // 0x0
444    field public final float[] floatValues;
445    field public final int[] intValues;
446    field public int sensorType;
447    field public long timestamp;
448  }
449
450  public static class CarSensorEvent.EnvironmentData {
451    field public float pressure;
452    field public float temperature;
453    field public long timestamp;
454  }
455
456  public final class CarSensorManager {
457    method public android.car.hardware.CarSensorEvent getLatestSensorEvent(int) throws android.car.CarNotConnectedException;
458    method public int[] getSupportedSensors() throws android.car.CarNotConnectedException;
459    method public boolean isSensorSupported(int) throws android.car.CarNotConnectedException;
460    method public static boolean isSensorSupported(int[], int);
461    method public boolean registerListener(android.car.hardware.CarSensorManager.OnSensorChangedListener, int, int) throws android.car.CarNotConnectedException, java.lang.IllegalArgumentException;
462    method public void unregisterListener(android.car.hardware.CarSensorManager.OnSensorChangedListener);
463    method public void unregisterListener(android.car.hardware.CarSensorManager.OnSensorChangedListener, int);
464    field public static final int SENSOR_RATE_FAST = 1; // 0x1
465    field public static final int SENSOR_RATE_FASTEST = 0; // 0x0
466    field public static final int SENSOR_RATE_NORMAL = 3; // 0x3
467    field public static final int SENSOR_RATE_UI = 2; // 0x2
468    field public static final int SENSOR_TYPE_CAR_SPEED = 2; // 0x2
469    field public static final int SENSOR_TYPE_DRIVING_STATUS = 11; // 0xb
470    field public static final int SENSOR_TYPE_ENVIRONMENT = 12; // 0xc
471    field public static final int SENSOR_TYPE_FUEL_LEVEL = 5; // 0x5
472    field public static final int SENSOR_TYPE_GEAR = 7; // 0x7
473    field public static final int SENSOR_TYPE_NIGHT = 9; // 0x9
474    field public static final int SENSOR_TYPE_ODOMETER = 4; // 0x4
475    field public static final int SENSOR_TYPE_PARKING_BRAKE = 6; // 0x6
476    field public static final int SENSOR_TYPE_RPM = 3; // 0x3
477    field public static final int SENSOR_TYPE_VENDOR_EXTENSION_END = 1879048191; // 0x6fffffff
478  }
479
480  public static abstract interface CarSensorManager.OnSensorChangedListener {
481    method public abstract void onSensorChanged(android.car.hardware.CarSensorEvent);
482  }
483
484  public final class CarVendorExtensionManager {
485    method public <E> E getGlobalProperty(java.lang.Class<E>, int) throws android.car.CarNotConnectedException;
486    method public java.util.List<android.car.hardware.CarPropertyConfig> getProperties() throws android.car.CarNotConnectedException;
487    method public <E> E getProperty(java.lang.Class<E>, int, int) throws android.car.CarNotConnectedException;
488    method public void registerCallback(android.car.hardware.CarVendorExtensionManager.CarVendorExtensionCallback) throws android.car.CarNotConnectedException;
489    method public <E> void setGlobalProperty(java.lang.Class<E>, int, E) throws android.car.CarNotConnectedException;
490    method public <E> void setProperty(java.lang.Class<E>, int, int, E) throws android.car.CarNotConnectedException;
491    method public void unregisterCallback(android.car.hardware.CarVendorExtensionManager.CarVendorExtensionCallback);
492  }
493
494  public static abstract interface CarVendorExtensionManager.CarVendorExtensionCallback {
495    method public abstract void onChangeEvent(android.car.hardware.CarPropertyValue);
496    method public abstract void onErrorEvent(int, int);
497  }
498
499}
500
501package android.car.hardware.cabin {
502
503  public final class CarCabinManager {
504    method public boolean getBooleanProperty(int, int) throws android.car.CarNotConnectedException;
505    method public float getFloatProperty(int, int) throws android.car.CarNotConnectedException;
506    method public int getIntProperty(int, int) throws android.car.CarNotConnectedException;
507    method public java.util.List<android.car.hardware.CarPropertyConfig> getPropertyList() throws android.car.CarNotConnectedException;
508    method public static boolean isZonedProperty(int);
509    method public synchronized void registerCallback(android.car.hardware.cabin.CarCabinManager.CarCabinEventCallback) throws android.car.CarNotConnectedException;
510    method public void setBooleanProperty(int, int, boolean) throws android.car.CarNotConnectedException;
511    method public void setFloatProperty(int, int, float) throws android.car.CarNotConnectedException;
512    method public void setIntProperty(int, int, int) throws android.car.CarNotConnectedException;
513    method public synchronized void unregisterCallback(android.car.hardware.cabin.CarCabinManager.CarCabinEventCallback);
514    field public static final int ID_DOOR_LOCK = 3; // 0x3
515    field public static final int ID_DOOR_MOVE = 2; // 0x2
516    field public static final int ID_DOOR_POS = 1; // 0x1
517    field public static final int ID_MIRROR_FOLD = 4102; // 0x1006
518    field public static final int ID_MIRROR_LOCK = 4101; // 0x1005
519    field public static final int ID_MIRROR_Y_MOVE = 4100; // 0x1004
520    field public static final int ID_MIRROR_Y_POS = 4099; // 0x1003
521    field public static final int ID_MIRROR_Z_MOVE = 4098; // 0x1002
522    field public static final int ID_MIRROR_Z_POS = 4097; // 0x1001
523    field public static final int ID_SEAT_BACKREST_ANGLE_1_MOVE = 8201; // 0x2009
524    field public static final int ID_SEAT_BACKREST_ANGLE_1_POS = 8200; // 0x2008
525    field public static final int ID_SEAT_BACKREST_ANGLE_2_MOVE = 8203; // 0x200b
526    field public static final int ID_SEAT_BACKREST_ANGLE_2_POS = 8202; // 0x200a
527    field public static final int ID_SEAT_BELT_BUCKLED = 8195; // 0x2003
528    field public static final int ID_SEAT_BELT_HEIGHT_MOVE = 8197; // 0x2005
529    field public static final int ID_SEAT_BELT_HEIGHT_POS = 8196; // 0x2004
530    field public static final int ID_SEAT_DEPTH_MOVE = 8207; // 0x200f
531    field public static final int ID_SEAT_DEPTH_POS = 8206; // 0x200e
532    field public static final int ID_SEAT_FORE_AFT_MOVE = 8199; // 0x2007
533    field public static final int ID_SEAT_FORE_AFT_POS = 8198; // 0x2006
534    field public static final int ID_SEAT_HEADREST_ANGLE_MOVE = 8217; // 0x2019
535    field public static final int ID_SEAT_HEADREST_ANGLE_POS = 8216; // 0x2018
536    field public static final int ID_SEAT_HEADREST_FORE_AFT_MOVE = 8219; // 0x201b
537    field public static final int ID_SEAT_HEADREST_FORE_AFT_POS = 8218; // 0x201a
538    field public static final int ID_SEAT_HEADREST_HEIGHT_MOVE = 8215; // 0x2017
539    field public static final int ID_SEAT_HEADREST_HEIGHT_POS = 8214; // 0x2016
540    field public static final int ID_SEAT_HEIGHT_MOVE = 8205; // 0x200d
541    field public static final int ID_SEAT_HEIGHT_POS = 8204; // 0x200c
542    field public static final int ID_SEAT_LUMBAR_FORE_AFT_MOVE = 8211; // 0x2013
543    field public static final int ID_SEAT_LUMBAR_FORE_AFT_POS = 8210; // 0x2012
544    field public static final int ID_SEAT_LUMBAR_SIDE_SUPPORT_MOVE = 8213; // 0x2015
545    field public static final int ID_SEAT_LUMBAR_SIDE_SUPPORT_POS = 8212; // 0x2014
546    field public static final int ID_SEAT_MEMORY_SELECT = 8193; // 0x2001
547    field public static final int ID_SEAT_MEMORY_SET = 8194; // 0x2002
548    field public static final int ID_SEAT_TILT_MOVE = 8209; // 0x2011
549    field public static final int ID_SEAT_TILT_POS = 8208; // 0x2010
550    field public static final int ID_WINDOW_LOCK = 12293; // 0x3005
551    field public static final int ID_WINDOW_MOVE = 12290; // 0x3002
552    field public static final int ID_WINDOW_POS = 12289; // 0x3001
553    field public static final int ID_WINDOW_VENT_MOVE = 12292; // 0x3004
554    field public static final int ID_WINDOW_VENT_POS = 12291; // 0x3003
555  }
556
557  public static abstract interface CarCabinManager.CarCabinEventCallback {
558    method public abstract void onChangeEvent(android.car.hardware.CarPropertyValue);
559    method public abstract void onErrorEvent(int, int);
560  }
561
562}
563
564package android.car.hardware.camera {
565
566  public class CarCamera {
567    ctor public CarCamera(android.car.hardware.camera.ICarCamera, int);
568    method public android.graphics.Rect getCameraCrop() throws android.car.CarNotConnectedException;
569    method public android.graphics.Rect getCameraPosition() throws android.car.CarNotConnectedException;
570    method public android.car.hardware.camera.CarCameraState getCameraState() throws android.car.CarNotConnectedException;
571    method public int getCapabilities() throws android.car.CarNotConnectedException;
572    method public void setCameraCrop(android.graphics.Rect) throws android.car.CarNotConnectedException;
573    method public void setCameraPosition(android.graphics.Rect) throws android.car.CarNotConnectedException;
574    method public void setCameraState(android.car.hardware.camera.CarCameraState) throws android.car.CarNotConnectedException;
575    field public static final java.lang.String TAG;
576    field public final int mCameraType;
577  }
578
579  public final class CarCameraManager {
580    method public void closeCamera(android.car.hardware.camera.CarCamera);
581    method public int getCameraCapabilities(int) throws android.car.CarNotConnectedException;
582    method public int[] getCameraList() throws android.car.CarNotConnectedException;
583    method public android.car.hardware.camera.CarCamera openCamera(int) throws android.car.CarNotConnectedException;
584    field public static final int ANDROID_OVERLAY_SUPPORT_FLAG = 1; // 0x1
585    field public static final int CAMERA_CROP_SUPPORT_FLAG = 2; // 0x2
586    field public static final int CAMERA_POSITIONING_SUPPORT_FLAG = 4; // 0x4
587    field public static final int CAR_CAMERA_TYPE_NONE = 0; // 0x0
588    field public static final int CAR_CAMERA_TYPE_RVC = 1; // 0x1
589  }
590
591  public class CarCameraState implements android.os.Parcelable {
592    ctor public CarCameraState(android.car.hardware.camera.CarCameraState);
593    ctor public CarCameraState(boolean, boolean);
594    method public int describeContents();
595    method public boolean getCameraIsOn();
596    method public boolean getOverlayIsOn();
597    method public void setCameraIsOn(boolean);
598    method public void setOverlayIsOn(boolean);
599    method public void writeToParcel(android.os.Parcel, int);
600    field public static final android.os.Parcelable.Creator<android.car.hardware.camera.CarCameraState> CREATOR;
601  }
602
603  public abstract interface ICarCamera implements android.os.IInterface {
604    method public abstract android.graphics.Rect getCameraCrop(int) throws android.os.RemoteException;
605    method public abstract int[] getCameraList() throws android.os.RemoteException;
606    method public abstract android.graphics.Rect getCameraPosition(int) throws android.os.RemoteException;
607    method public abstract android.car.hardware.camera.CarCameraState getCameraState(int) throws android.os.RemoteException;
608    method public abstract int getCapabilities(int) throws android.os.RemoteException;
609    method public abstract void setCameraCrop(int, android.graphics.Rect) throws android.os.RemoteException;
610    method public abstract void setCameraPosition(int, android.graphics.Rect) throws android.os.RemoteException;
611    method public abstract void setCameraState(int, android.car.hardware.camera.CarCameraState) throws android.os.RemoteException;
612  }
613
614}
615
616package android.car.hardware.hvac {
617
618  public final class CarHvacManager {
619    method public boolean getBooleanProperty(int, int) throws android.car.CarNotConnectedException;
620    method public float getFloatProperty(int, int) throws android.car.CarNotConnectedException;
621    method public int getIntProperty(int, int) throws android.car.CarNotConnectedException;
622    method public java.util.List<android.car.hardware.CarPropertyConfig> getPropertyList() throws android.car.CarNotConnectedException;
623    method public static boolean isZonedProperty(int);
624    method public synchronized void registerCallback(android.car.hardware.hvac.CarHvacManager.CarHvacEventCallback) throws android.car.CarNotConnectedException;
625    method public void setBooleanProperty(int, int, boolean) throws android.car.CarNotConnectedException;
626    method public void setFloatProperty(int, int, float) throws android.car.CarNotConnectedException;
627    method public void setIntProperty(int, int, int) throws android.car.CarNotConnectedException;
628    method public synchronized void unregisterCallback(android.car.hardware.hvac.CarHvacManager.CarHvacEventCallback);
629    field public static final int ID_MIRROR_DEFROSTER_ON = 1; // 0x1
630    field public static final int ID_OUTSIDE_AIR_TEMP = 3; // 0x3
631    field public static final int ID_STEERING_WHEEL_TEMP = 2; // 0x2
632    field public static final int ID_TEMPERATURE_UNITS = 4; // 0x4
633    field public static final int ID_WINDOW_DEFROSTER_ON = 20481; // 0x5001
634    field public static final int ID_ZONED_AC_ON = 16393; // 0x4009
635    field public static final int ID_ZONED_AIR_RECIRCULATION_ON = 16395; // 0x400b
636    field public static final int ID_ZONED_AUTOMATIC_MODE_ON = 16394; // 0x400a
637    field public static final int ID_ZONED_DUAL_ZONE_ON = 16397; // 0x400d
638    field public static final int ID_ZONED_FAN_POSITION = 16391; // 0x4007
639    field public static final int ID_ZONED_FAN_POSITION_AVAILABLE = 16390; // 0x4006
640    field public static final int ID_ZONED_FAN_SPEED_RPM = 16389; // 0x4005
641    field public static final int ID_ZONED_FAN_SPEED_SETPOINT = 16388; // 0x4004
642    field public static final int ID_ZONED_HVAC_POWER_ON = 16387; // 0x4003
643    field public static final int ID_ZONED_MAX_AC_ON = 16396; // 0x400c
644    field public static final int ID_ZONED_MAX_DEFROST_ON = 16398; // 0x400e
645    field public static final int ID_ZONED_SEAT_TEMP = 16392; // 0x4008
646    field public static final int ID_ZONED_TEMP_ACTUAL = 16386; // 0x4002
647    field public static final int ID_ZONED_TEMP_SETPOINT = 16385; // 0x4001
648  }
649
650  public static abstract interface CarHvacManager.CarHvacEventCallback {
651    method public abstract void onChangeEvent(android.car.hardware.CarPropertyValue);
652    method public abstract void onErrorEvent(int, int);
653  }
654
655}
656
657package android.car.hardware.radio {
658
659  public class CarRadioEvent implements android.os.Parcelable {
660    ctor public CarRadioEvent(int, android.car.hardware.radio.CarRadioPreset);
661    method public int describeContents();
662    method public int getEventType();
663    method public android.car.hardware.radio.CarRadioPreset getPreset();
664    method public void writeToParcel(android.os.Parcel, int);
665    field public static final android.os.Parcelable.Creator<android.car.hardware.radio.CarRadioEvent> CREATOR;
666    field public static final int RADIO_PRESET = 0; // 0x0
667  }
668
669  public final class CarRadioManager {
670    method public android.car.hardware.radio.CarRadioPreset getPreset(int) throws android.car.CarNotConnectedException;
671    method public int getPresetCount() throws android.car.CarNotConnectedException;
672    method public synchronized void registerListener(android.car.hardware.radio.CarRadioManager.CarRadioEventListener) throws android.car.CarNotConnectedException;
673    method public boolean setPreset(android.car.hardware.radio.CarRadioPreset) throws android.car.CarNotConnectedException, java.lang.IllegalArgumentException;
674    method public synchronized void unregisterListener();
675  }
676
677  public static abstract interface CarRadioManager.CarRadioEventListener {
678    method public abstract void onEvent(android.car.hardware.radio.CarRadioEvent);
679  }
680
681  public class CarRadioPreset implements android.os.Parcelable {
682    ctor public CarRadioPreset(int, int, int, int);
683    method public int describeContents();
684    method public int getBand();
685    method public int getChannel();
686    method public int getPresetNumber();
687    method public int getSubChannel();
688    method public void writeToParcel(android.os.Parcel, int);
689    field public static final android.os.Parcelable.Creator<android.car.hardware.radio.CarRadioPreset> CREATOR;
690  }
691
692}
693
694package android.car.input {
695
696  public abstract class CarInputHandlingService extends android.app.Service {
697    ctor protected CarInputHandlingService(android.car.input.CarInputHandlingService.InputFilter[]);
698    method public android.os.IBinder onBind(android.content.Intent);
699    method protected abstract void onKeyEvent(android.view.KeyEvent, int);
700    field public static final int INPUT_CALLBACK_BINDER_CODE = 1; // 0x1
701    field public static final java.lang.String INPUT_CALLBACK_BINDER_KEY = "callback_binder";
702  }
703
704  public static class CarInputHandlingService.InputFilter implements android.os.Parcelable {
705    ctor public CarInputHandlingService.InputFilter(int, int);
706    method public int describeContents();
707    method public void writeToParcel(android.os.Parcel, int);
708    field public static final android.os.Parcelable.Creator CREATOR;
709    field public final int mKeyCode;
710    field public final int mTargetDisplay;
711  }
712
713}
714
715package android.car.media {
716
717  public final class CarAudioManager {
718    method public void abandonAudioFocus(android.media.AudioManager.OnAudioFocusChangeListener, android.media.AudioAttributes);
719    method public android.media.AudioAttributes getAudioAttributesForCarUsage(int) throws android.car.CarNotConnectedException;
720    method public int getStreamMaxVolume(int) throws android.car.CarNotConnectedException;
721    method public int getStreamMinVolume(int) throws android.car.CarNotConnectedException;
722    method public int getStreamVolume(int) throws android.car.CarNotConnectedException;
723    method public boolean isMediaMuted() throws android.car.CarNotConnectedException;
724    method public int requestAudioFocus(android.media.AudioManager.OnAudioFocusChangeListener, android.media.AudioAttributes, int, int) throws android.car.CarNotConnectedException, java.lang.IllegalArgumentException;
725    method public boolean setMediaMute(boolean) throws android.car.CarNotConnectedException;
726    method public void setStreamVolume(int, int, int) throws android.car.CarNotConnectedException;
727    method public void setVolumeController(android.media.IVolumeController) throws android.car.CarNotConnectedException;
728    field public static final int CAR_AUDIO_USAGE_ALARM = 6; // 0x6
729    field public static final int CAR_AUDIO_USAGE_DEFAULT = 0; // 0x0
730    field public static final int CAR_AUDIO_USAGE_MUSIC = 1; // 0x1
731    field public static final int CAR_AUDIO_USAGE_NAVIGATION_GUIDANCE = 3; // 0x3
732    field public static final int CAR_AUDIO_USAGE_NOTIFICATION = 7; // 0x7
733    field public static final int CAR_AUDIO_USAGE_RADIO = 2; // 0x2
734    field public static final int CAR_AUDIO_USAGE_SYSTEM_SAFETY_ALERT = 9; // 0x9
735    field public static final int CAR_AUDIO_USAGE_SYSTEM_SOUND = 8; // 0x8
736    field public static final int CAR_AUDIO_USAGE_VOICE_CALL = 4; // 0x4
737    field public static final int CAR_AUDIO_USAGE_VOICE_COMMAND = 5; // 0x5
738  }
739
740}
741
742package android.car.navigation {
743
744  public class CarNavigationInstrumentCluster implements android.os.Parcelable {
745    ctor public CarNavigationInstrumentCluster(android.car.navigation.CarNavigationInstrumentCluster);
746    method public static android.car.navigation.CarNavigationInstrumentCluster createCluster(int);
747    method public static android.car.navigation.CarNavigationInstrumentCluster createCustomImageCluster(int, int, int, int);
748    method public int describeContents();
749    method public int getImageColorDepthBits();
750    method public int getImageHeight();
751    method public int getImageWidth();
752    method public int getMinIntervalMillis();
753    method public int getType();
754    method public boolean supportsCustomImages();
755    method public void writeToParcel(android.os.Parcel, int);
756    field public static final int CLUSTER_TYPE_CUSTOM_IMAGES_SUPPORTED = 1; // 0x1
757    field public static final int CLUSTER_TYPE_IMAGE_CODES_ONLY = 2; // 0x2
758    field public static final android.os.Parcelable.Creator<android.car.navigation.CarNavigationInstrumentCluster> CREATOR;
759  }
760
761}
762
763package android.car.settings {
764
765  public class CarSettings {
766    ctor public CarSettings();
767  }
768
769  public static final class CarSettings.Global {
770    ctor public CarSettings.Global();
771    field public static final java.lang.String KEY_GARAGE_MODE_ENABLED = "android.car.GARAGE_MODE_ENABLED";
772    field public static final java.lang.String KEY_GARAGE_MODE_MAINTENANCE_WINDOW = "android.car.GARAGE_MODE_MAINTENANCE_WINDOW";
773    field public static final java.lang.String KEY_GARAGE_MODE_WAKE_UP_TIME = "android.car.GARAGE_MODE_WAKE_UP_TIME";
774  }
775
776}
777
778package android.car.test {
779
780  public class CarTestManagerBinderWrapper {
781    ctor public CarTestManagerBinderWrapper(android.os.IBinder);
782    method public void onCarDisconnected();
783    field public final android.os.IBinder binder;
784  }
785
786}
787
788