• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Signature format: 2.0
2package android.car {
3
4  public final class Car {
5    method @Deprecated public void connect() throws java.lang.IllegalStateException;
6    method @Deprecated public static android.car.Car createCar(android.content.Context, android.content.ServiceConnection, @Nullable android.os.Handler);
7    method @Deprecated public static android.car.Car createCar(android.content.Context, android.content.ServiceConnection);
8    method @Nullable public static android.car.Car createCar(android.content.Context);
9    method @Nullable public static android.car.Car createCar(android.content.Context, @Nullable android.os.Handler);
10    method public void disconnect();
11    method public int getCarConnectionType();
12    method @Nullable public Object getCarManager(String);
13    method public boolean isConnected();
14    method public boolean isConnecting();
15    field public static final String APP_FOCUS_SERVICE = "app_focus";
16    field public static final String AUDIO_SERVICE = "audio";
17    field public static final String CAR_CONFIGURATION_SERVICE = "configuration";
18    field public static final String CAR_EXTRA_MEDIA_PACKAGE = "android.car.intent.extra.MEDIA_PACKAGE";
19    field public static final String CAR_INTENT_ACTION_MEDIA_TEMPLATE = "android.car.intent.action.MEDIA_TEMPLATE";
20    field public static final String CAR_NAVIGATION_SERVICE = "car_navigation_service";
21    field public static final String CAR_UX_RESTRICTION_SERVICE = "uxrestriction";
22    field public static final int CONNECTION_TYPE_EMBEDDED = 5; // 0x5
23    field public static final String INFO_SERVICE = "info";
24    field public static final String PACKAGE_SERVICE = "package";
25    field public static final String PERMISSION_CAR_CONTROL_AUDIO_SETTINGS = "android.car.permission.CAR_CONTROL_AUDIO_SETTINGS";
26    field public static final String PERMISSION_CAR_CONTROL_AUDIO_VOLUME = "android.car.permission.CAR_CONTROL_AUDIO_VOLUME";
27    field public static final String PERMISSION_CAR_INFO = "android.car.permission.CAR_INFO";
28    field public static final String PERMISSION_CAR_NAVIGATION_MANAGER = "android.car.permission.CAR_NAVIGATION_MANAGER";
29    field public static final String PERMISSION_CONTROL_DISPLAY_UNITS = "android.car.permission.CONTROL_CAR_DISPLAY_UNITS";
30    field public static final String PERMISSION_CONTROL_INTERIOR_LIGHTS = "android.car.permission.CONTROL_CAR_INTERIOR_LIGHTS";
31    field public static final String PERMISSION_ENERGY = "android.car.permission.CAR_ENERGY";
32    field public static final String PERMISSION_ENERGY_PORTS = "android.car.permission.CAR_ENERGY_PORTS";
33    field public static final String PERMISSION_EXTERIOR_ENVIRONMENT = "android.car.permission.CAR_EXTERIOR_ENVIRONMENT";
34    field public static final String PERMISSION_IDENTIFICATION = "android.car.permission.CAR_IDENTIFICATION";
35    field public static final String PERMISSION_POWERTRAIN = "android.car.permission.CAR_POWERTRAIN";
36    field public static final String PERMISSION_READ_DISPLAY_UNITS = "android.car.permission.READ_CAR_DISPLAY_UNITS";
37    field public static final String PERMISSION_READ_INTERIOR_LIGHTS = "android.car.permission.READ_CAR_INTERIOR_LIGHTS";
38    field public static final String PERMISSION_READ_STEERING_STATE = "android.car.permission.READ_CAR_STEERING";
39    field public static final String PERMISSION_SPEED = "android.car.permission.CAR_SPEED";
40    field public static final String PROPERTY_SERVICE = "property";
41    field @Deprecated public static final String SENSOR_SERVICE = "sensor";
42  }
43
44  public final class CarAppFocusManager {
45    method public void abandonAppFocus(android.car.CarAppFocusManager.OnAppFocusOwnershipCallback, int);
46    method public void abandonAppFocus(android.car.CarAppFocusManager.OnAppFocusOwnershipCallback);
47    method public void addFocusListener(android.car.CarAppFocusManager.OnAppFocusChangedListener, int);
48    method public boolean isOwningFocus(android.car.CarAppFocusManager.OnAppFocusOwnershipCallback, int);
49    method public void removeFocusListener(android.car.CarAppFocusManager.OnAppFocusChangedListener, int);
50    method public void removeFocusListener(android.car.CarAppFocusManager.OnAppFocusChangedListener);
51    method public int requestAppFocus(int, android.car.CarAppFocusManager.OnAppFocusOwnershipCallback);
52    field public static final int APP_FOCUS_REQUEST_FAILED = 0; // 0x0
53    field public static final int APP_FOCUS_REQUEST_SUCCEEDED = 1; // 0x1
54    field public static final int APP_FOCUS_TYPE_NAVIGATION = 1; // 0x1
55    field @Deprecated public static final int APP_FOCUS_TYPE_VOICE_COMMAND = 2; // 0x2
56  }
57
58  public static interface CarAppFocusManager.OnAppFocusChangedListener {
59    method public void onAppFocusChanged(int, boolean);
60  }
61
62  public static interface CarAppFocusManager.OnAppFocusOwnershipCallback {
63    method public void onAppFocusOwnershipGranted(int);
64    method public void onAppFocusOwnershipLost(int);
65  }
66
67  public final class CarInfoManager {
68    method public int getDriverSeat();
69    method public float getEvBatteryCapacity();
70    method public int[] getEvConnectorTypes();
71    method public int getEvPortLocation();
72    method public float getFuelCapacity();
73    method public int getFuelDoorLocation();
74    method public int[] getFuelTypes();
75    method @NonNull public String getManufacturer();
76    method @NonNull public String getModel();
77    method @Deprecated @NonNull public String getModelYear();
78    method public int getModelYearInInteger();
79    method @Deprecated public String getVehicleId();
80  }
81
82  @Deprecated public class CarNotConnectedException extends java.lang.RuntimeException {
83    ctor @Deprecated public CarNotConnectedException();
84    ctor @Deprecated public CarNotConnectedException(String);
85    ctor @Deprecated public CarNotConnectedException(String, Throwable);
86    ctor @Deprecated public CarNotConnectedException(Exception);
87  }
88
89  public final class EvConnectorType {
90    field public static final int CHADEMO = 3; // 0x3
91    field public static final int COMBO_1 = 4; // 0x4
92    field public static final int COMBO_2 = 5; // 0x5
93    field public static final int GBT = 9; // 0x9
94    field public static final int J1772 = 1; // 0x1
95    field public static final int MENNEKES = 2; // 0x2
96    field public static final int OTHER = 101; // 0x65
97    field public static final int TESLA_HPWC = 7; // 0x7
98    field public static final int TESLA_ROADSTER = 6; // 0x6
99    field public static final int TESLA_SUPERCHARGER = 8; // 0x8
100    field public static final int UNKNOWN = 0; // 0x0
101  }
102
103  public final class FuelType {
104    field public static final int BIODIESEL = 5; // 0x5
105    field public static final int CNG = 8; // 0x8
106    field public static final int DIESEL_1 = 3; // 0x3
107    field public static final int DIESEL_2 = 4; // 0x4
108    field public static final int E85 = 6; // 0x6
109    field public static final int ELECTRIC = 10; // 0xa
110    field public static final int HYDROGEN = 11; // 0xb
111    field public static final int LEADED = 2; // 0x2
112    field public static final int LNG = 9; // 0x9
113    field public static final int LPG = 7; // 0x7
114    field public static final int OTHER = 12; // 0xc
115    field public static final int UNKNOWN = 0; // 0x0
116    field public static final int UNLEADED = 1; // 0x1
117  }
118
119  public final class PortLocationType {
120    field public static final int FRONT = 5; // 0x5
121    field public static final int FRONT_LEFT = 1; // 0x1
122    field public static final int FRONT_RIGHT = 2; // 0x2
123    field public static final int REAR = 6; // 0x6
124    field public static final int REAR_LEFT = 4; // 0x4
125    field public static final int REAR_RIGHT = 3; // 0x3
126    field public static final int UNKNOWN = 0; // 0x0
127  }
128
129  public final class VehicleAreaSeat {
130    field public static final int SEAT_ROW_1_CENTER = 2; // 0x2
131    field public static final int SEAT_ROW_1_LEFT = 1; // 0x1
132    field public static final int SEAT_ROW_1_RIGHT = 4; // 0x4
133    field public static final int SEAT_ROW_2_CENTER = 32; // 0x20
134    field public static final int SEAT_ROW_2_LEFT = 16; // 0x10
135    field public static final int SEAT_ROW_2_RIGHT = 64; // 0x40
136    field public static final int SEAT_ROW_3_CENTER = 512; // 0x200
137    field public static final int SEAT_ROW_3_LEFT = 256; // 0x100
138    field public static final int SEAT_ROW_3_RIGHT = 1024; // 0x400
139    field public static final int SEAT_UNKNOWN = 0; // 0x0
140  }
141
142  public final class VehicleAreaType {
143    field public static final int VEHICLE_AREA_TYPE_DOOR = 4; // 0x4
144    field public static final int VEHICLE_AREA_TYPE_GLOBAL = 0; // 0x0
145    field public static final int VEHICLE_AREA_TYPE_MIRROR = 5; // 0x5
146    field public static final int VEHICLE_AREA_TYPE_SEAT = 3; // 0x3
147    field public static final int VEHICLE_AREA_TYPE_WHEEL = 6; // 0x6
148    field public static final int VEHICLE_AREA_TYPE_WINDOW = 2; // 0x2
149  }
150
151  public final class VehiclePropertyIds {
152    ctor public VehiclePropertyIds();
153    method public static String toString(int);
154    field public static final int ABS_ACTIVE = 287310858; // 0x1120040a
155    field public static final int AP_POWER_BOOTUP_REASON = 289409538; // 0x11400a02
156    field public static final int AP_POWER_STATE_REPORT = 289475073; // 0x11410a01
157    field public static final int AP_POWER_STATE_REQ = 289475072; // 0x11410a00
158    field public static final int CABIN_LIGHTS_STATE = 289410817; // 0x11400f01
159    field public static final int CABIN_LIGHTS_SWITCH = 289410818; // 0x11400f02
160    field public static final int CURRENT_GEAR = 289408001; // 0x11400401
161    field public static final int DISPLAY_BRIGHTNESS = 289409539; // 0x11400a03
162    field public static final int DISTANCE_DISPLAY_UNITS = 289408512; // 0x11400600
163    field public static final int DOOR_LOCK = 371198722; // 0x16200b02
164    field public static final int DOOR_MOVE = 373295873; // 0x16400b01
165    field public static final int DOOR_POS = 373295872; // 0x16400b00
166    field public static final int ENGINE_COOLANT_TEMP = 291504897; // 0x11600301
167    field public static final int ENGINE_OIL_LEVEL = 289407747; // 0x11400303
168    field public static final int ENGINE_OIL_TEMP = 291504900; // 0x11600304
169    field public static final int ENGINE_RPM = 291504901; // 0x11600305
170    field public static final int ENV_OUTSIDE_TEMPERATURE = 291505923; // 0x11600703
171    field public static final int EV_BATTERY_DISPLAY_UNITS = 289408515; // 0x11400603
172    field public static final int EV_BATTERY_INSTANTANEOUS_CHARGE_RATE = 291504908; // 0x1160030c
173    field public static final int EV_BATTERY_LEVEL = 291504905; // 0x11600309
174    field public static final int EV_CHARGE_PORT_CONNECTED = 287310603; // 0x1120030b
175    field public static final int EV_CHARGE_PORT_OPEN = 287310602; // 0x1120030a
176    field public static final int FOG_LIGHTS_STATE = 289410562; // 0x11400e02
177    field public static final int FOG_LIGHTS_SWITCH = 289410578; // 0x11400e12
178    field public static final int FUEL_CONSUMPTION_UNITS_DISTANCE_OVER_VOLUME = 287311364; // 0x11200604
179    field public static final int FUEL_DOOR_OPEN = 287310600; // 0x11200308
180    field public static final int FUEL_LEVEL = 291504903; // 0x11600307
181    field public static final int FUEL_LEVEL_LOW = 287310853; // 0x11200405
182    field public static final int FUEL_VOLUME_DISPLAY_UNITS = 289408513; // 0x11400601
183    field public static final int GEAR_SELECTION = 289408000; // 0x11400400
184    field public static final int HAZARD_LIGHTS_STATE = 289410563; // 0x11400e03
185    field public static final int HAZARD_LIGHTS_SWITCH = 289410579; // 0x11400e13
186    field public static final int HEADLIGHTS_STATE = 289410560; // 0x11400e00
187    field public static final int HEADLIGHTS_SWITCH = 289410576; // 0x11400e10
188    field public static final int HIGH_BEAM_LIGHTS_STATE = 289410561; // 0x11400e01
189    field public static final int HIGH_BEAM_LIGHTS_SWITCH = 289410577; // 0x11400e11
190    field public static final int HVAC_ACTUAL_FAN_SPEED_RPM = 356517135; // 0x1540050f
191    field public static final int HVAC_AC_ON = 354419973; // 0x15200505
192    field public static final int HVAC_AUTO_ON = 354419978; // 0x1520050a
193    field public static final int HVAC_AUTO_RECIRC_ON = 354419986; // 0x15200512
194    field public static final int HVAC_DEFROSTER = 320865540; // 0x13200504
195    field public static final int HVAC_DUAL_ON = 354419977; // 0x15200509
196    field public static final int HVAC_FAN_DIRECTION = 356517121; // 0x15400501
197    field public static final int HVAC_FAN_DIRECTION_AVAILABLE = 356582673; // 0x15410511
198    field public static final int HVAC_FAN_SPEED = 356517120; // 0x15400500
199    field public static final int HVAC_MAX_AC_ON = 354419974; // 0x15200506
200    field public static final int HVAC_MAX_DEFROST_ON = 354419975; // 0x15200507
201    field public static final int HVAC_POWER_ON = 354419984; // 0x15200510
202    field public static final int HVAC_RECIRC_ON = 354419976; // 0x15200508
203    field public static final int HVAC_SEAT_TEMPERATURE = 356517131; // 0x1540050b
204    field public static final int HVAC_SEAT_VENTILATION = 356517139; // 0x15400513
205    field public static final int HVAC_SIDE_MIRROR_HEAT = 339739916; // 0x1440050c
206    field public static final int HVAC_STEERING_WHEEL_HEAT = 289408269; // 0x1140050d
207    field public static final int HVAC_TEMPERATURE_CURRENT = 358614274; // 0x15600502
208    field public static final int HVAC_TEMPERATURE_DISPLAY_UNITS = 289408270; // 0x1140050e
209    field public static final int HVAC_TEMPERATURE_SET = 358614275; // 0x15600503
210    field public static final int HW_KEY_INPUT = 289475088; // 0x11410a10
211    field public static final int IGNITION_STATE = 289408009; // 0x11400409
212    field public static final int INFO_DRIVER_SEAT = 356516106; // 0x1540010a
213    field public static final int INFO_EV_BATTERY_CAPACITY = 291504390; // 0x11600106
214    field public static final int INFO_EV_CONNECTOR_TYPE = 289472775; // 0x11410107
215    field public static final int INFO_EV_PORT_LOCATION = 289407241; // 0x11400109
216    field public static final int INFO_FUEL_CAPACITY = 291504388; // 0x11600104
217    field public static final int INFO_FUEL_DOOR_LOCATION = 289407240; // 0x11400108
218    field public static final int INFO_FUEL_TYPE = 289472773; // 0x11410105
219    field public static final int INFO_MAKE = 286261505; // 0x11100101
220    field public static final int INFO_MODEL = 286261506; // 0x11100102
221    field public static final int INFO_MODEL_YEAR = 289407235; // 0x11400103
222    field public static final int INFO_VIN = 286261504; // 0x11100100
223    field public static final int INVALID = 0; // 0x0
224    field public static final int MIRROR_FOLD = 287312709; // 0x11200b45
225    field public static final int MIRROR_LOCK = 287312708; // 0x11200b44
226    field public static final int MIRROR_Y_MOVE = 339741507; // 0x14400b43
227    field public static final int MIRROR_Y_POS = 339741506; // 0x14400b42
228    field public static final int MIRROR_Z_MOVE = 339741505; // 0x14400b41
229    field public static final int MIRROR_Z_POS = 339741504; // 0x14400b40
230    field public static final int NIGHT_MODE = 287310855; // 0x11200407
231    field public static final int OBD2_FREEZE_FRAME = 299896065; // 0x11e00d01
232    field public static final int OBD2_FREEZE_FRAME_CLEAR = 299896067; // 0x11e00d03
233    field public static final int OBD2_FREEZE_FRAME_INFO = 299896066; // 0x11e00d02
234    field public static final int OBD2_LIVE_FRAME = 299896064; // 0x11e00d00
235    field public static final int PARKING_BRAKE_AUTO_APPLY = 287310851; // 0x11200403
236    field public static final int PARKING_BRAKE_ON = 287310850; // 0x11200402
237    field public static final int PERF_ODOMETER = 291504644; // 0x11600204
238    field public static final int PERF_STEERING_ANGLE = 291504649; // 0x11600209
239    field public static final int PERF_VEHICLE_SPEED = 291504647; // 0x11600207
240    field public static final int PERF_VEHICLE_SPEED_DISPLAY = 291504648; // 0x11600208
241    field public static final int RANGE_REMAINING = 291504904; // 0x11600308
242    field public static final int READING_LIGHTS_STATE = 356519683; // 0x15400f03
243    field public static final int READING_LIGHTS_SWITCH = 356519684; // 0x15400f04
244    field public static final int SEAT_BACKREST_ANGLE_1_MOVE = 356518792; // 0x15400b88
245    field public static final int SEAT_BACKREST_ANGLE_1_POS = 356518791; // 0x15400b87
246    field public static final int SEAT_BACKREST_ANGLE_2_MOVE = 356518794; // 0x15400b8a
247    field public static final int SEAT_BACKREST_ANGLE_2_POS = 356518793; // 0x15400b89
248    field public static final int SEAT_BELT_BUCKLED = 354421634; // 0x15200b82
249    field public static final int SEAT_BELT_HEIGHT_MOVE = 356518788; // 0x15400b84
250    field public static final int SEAT_BELT_HEIGHT_POS = 356518787; // 0x15400b83
251    field public static final int SEAT_DEPTH_MOVE = 356518798; // 0x15400b8e
252    field public static final int SEAT_DEPTH_POS = 356518797; // 0x15400b8d
253    field public static final int SEAT_FORE_AFT_MOVE = 356518790; // 0x15400b86
254    field public static final int SEAT_FORE_AFT_POS = 356518789; // 0x15400b85
255    field public static final int SEAT_HEADREST_ANGLE_MOVE = 356518808; // 0x15400b98
256    field public static final int SEAT_HEADREST_ANGLE_POS = 356518807; // 0x15400b97
257    field public static final int SEAT_HEADREST_FORE_AFT_MOVE = 356518810; // 0x15400b9a
258    field public static final int SEAT_HEADREST_FORE_AFT_POS = 356518809; // 0x15400b99
259    field public static final int SEAT_HEADREST_HEIGHT_MOVE = 356518806; // 0x15400b96
260    field public static final int SEAT_HEADREST_HEIGHT_POS = 289409941; // 0x11400b95
261    field public static final int SEAT_HEIGHT_MOVE = 356518796; // 0x15400b8c
262    field public static final int SEAT_HEIGHT_POS = 356518795; // 0x15400b8b
263    field public static final int SEAT_LUMBAR_FORE_AFT_MOVE = 356518802; // 0x15400b92
264    field public static final int SEAT_LUMBAR_FORE_AFT_POS = 356518801; // 0x15400b91
265    field public static final int SEAT_LUMBAR_SIDE_SUPPORT_MOVE = 356518804; // 0x15400b94
266    field public static final int SEAT_LUMBAR_SIDE_SUPPORT_POS = 356518803; // 0x15400b93
267    field public static final int SEAT_MEMORY_SELECT = 356518784; // 0x15400b80
268    field public static final int SEAT_MEMORY_SET = 356518785; // 0x15400b81
269    field public static final int SEAT_OCCUPANCY = 356518832; // 0x15400bb0
270    field public static final int SEAT_TILT_MOVE = 356518800; // 0x15400b90
271    field public static final int SEAT_TILT_POS = 356518799; // 0x15400b8f
272    field public static final int TIRE_PRESSURE = 392168201; // 0x17600309
273    field public static final int TIRE_PRESSURE_DISPLAY_UNITS = 289408514; // 0x11400602
274    field public static final int TRACTION_CONTROL_ACTIVE = 287310859; // 0x1120040b
275    field public static final int TURN_SIGNAL_STATE = 289408008; // 0x11400408
276    field public static final int VEHICLE_MAP_SERVICE = 299895808; // 0x11e00c00
277    field public static final int WHEEL_TICK = 290521862; // 0x11510306
278    field public static final int WINDOW_LOCK = 320867268; // 0x13200bc4
279    field public static final int WINDOW_MOVE = 322964417; // 0x13400bc1
280    field public static final int WINDOW_POS = 322964416; // 0x13400bc0
281  }
282
283}
284
285package android.car.content.pm {
286
287  public final class CarPackageManager {
288    method public boolean isActivityDistractionOptimized(String, String);
289    method public boolean isServiceDistractionOptimized(String, String);
290  }
291
292}
293
294package android.car.drivingstate {
295
296  public final class CarUxRestrictions implements android.os.Parcelable {
297    ctor public CarUxRestrictions(android.car.drivingstate.CarUxRestrictions);
298    method public int describeContents();
299    method @android.car.drivingstate.CarUxRestrictions.CarUxRestrictionsInfo public int getActiveRestrictions();
300    method public int getMaxContentDepth();
301    method public int getMaxCumulativeContentItems();
302    method public int getMaxRestrictedStringLength();
303    method public boolean isRequiresDistractionOptimization();
304    method public boolean isSameRestrictions(android.car.drivingstate.CarUxRestrictions);
305    method public void writeToParcel(android.os.Parcel, int);
306    field public static final android.os.Parcelable.Creator<android.car.drivingstate.CarUxRestrictions> CREATOR;
307    field public static final int UX_RESTRICTIONS_BASELINE = 0; // 0x0
308    field public static final int UX_RESTRICTIONS_FULLY_RESTRICTED = 511; // 0x1ff
309    field public static final int UX_RESTRICTIONS_LIMIT_CONTENT = 32; // 0x20
310    field public static final int UX_RESTRICTIONS_LIMIT_STRING_LENGTH = 4; // 0x4
311    field public static final int UX_RESTRICTIONS_NO_DIALPAD = 1; // 0x1
312    field public static final int UX_RESTRICTIONS_NO_FILTERING = 2; // 0x2
313    field public static final int UX_RESTRICTIONS_NO_KEYBOARD = 8; // 0x8
314    field public static final int UX_RESTRICTIONS_NO_SETUP = 64; // 0x40
315    field public static final int UX_RESTRICTIONS_NO_TEXT_MESSAGE = 128; // 0x80
316    field public static final int UX_RESTRICTIONS_NO_VIDEO = 16; // 0x10
317    field public static final int UX_RESTRICTIONS_NO_VOICE_TRANSCRIPTION = 256; // 0x100
318  }
319
320  public static class CarUxRestrictions.Builder {
321    ctor public CarUxRestrictions.Builder(boolean, @android.car.drivingstate.CarUxRestrictions.CarUxRestrictionsInfo int, long);
322    method public android.car.drivingstate.CarUxRestrictions build();
323    method public android.car.drivingstate.CarUxRestrictions.Builder setMaxContentDepth(int);
324    method public android.car.drivingstate.CarUxRestrictions.Builder setMaxCumulativeContentItems(int);
325    method public android.car.drivingstate.CarUxRestrictions.Builder setMaxStringLength(int);
326  }
327
328  @IntDef(flag=true, prefix={"UX_RESTRICTIONS_"}, value={android.car.drivingstate.CarUxRestrictions.UX_RESTRICTIONS_BASELINE, android.car.drivingstate.CarUxRestrictions.UX_RESTRICTIONS_NO_DIALPAD, android.car.drivingstate.CarUxRestrictions.UX_RESTRICTIONS_NO_FILTERING, android.car.drivingstate.CarUxRestrictions.UX_RESTRICTIONS_LIMIT_STRING_LENGTH, android.car.drivingstate.CarUxRestrictions.UX_RESTRICTIONS_NO_KEYBOARD, android.car.drivingstate.CarUxRestrictions.UX_RESTRICTIONS_NO_VIDEO, android.car.drivingstate.CarUxRestrictions.UX_RESTRICTIONS_LIMIT_CONTENT, android.car.drivingstate.CarUxRestrictions.UX_RESTRICTIONS_NO_SETUP, android.car.drivingstate.CarUxRestrictions.UX_RESTRICTIONS_NO_TEXT_MESSAGE, android.car.drivingstate.CarUxRestrictions.UX_RESTRICTIONS_NO_VOICE_TRANSCRIPTION}) @java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy.SOURCE) public static @interface CarUxRestrictions.CarUxRestrictionsInfo {
329  }
330
331  public final class CarUxRestrictionsManager {
332    method @Nullable public android.car.drivingstate.CarUxRestrictions getCurrentCarUxRestrictions();
333    method public void registerListener(@NonNull android.car.drivingstate.CarUxRestrictionsManager.OnUxRestrictionsChangedListener);
334    method public void unregisterListener();
335  }
336
337  public static interface CarUxRestrictionsManager.OnUxRestrictionsChangedListener {
338    method public void onUxRestrictionsChanged(android.car.drivingstate.CarUxRestrictions);
339  }
340
341}
342
343package android.car.hardware {
344
345  public final class CarPropertyConfig<T> implements android.os.Parcelable {
346    method public int describeContents();
347    method public int getAccess();
348    method @NonNull public int[] getAreaIds();
349    method public int getAreaType();
350    method public int getChangeMode();
351    method @NonNull public java.util.List<java.lang.Integer> getConfigArray();
352    method public float getMaxSampleRate();
353    method @Nullable public T getMaxValue(int);
354    method @Nullable public T getMaxValue();
355    method public float getMinSampleRate();
356    method @Nullable public T getMinValue(int);
357    method @Nullable public T getMinValue();
358    method public int getPropertyId();
359    method public boolean isGlobalProperty();
360    method public void writeToParcel(android.os.Parcel, int);
361    field public static final android.os.Parcelable.Creator<android.car.hardware.CarPropertyConfig> CREATOR;
362    field public static final int VEHICLE_PROPERTY_ACCESS_NONE = 0; // 0x0
363    field public static final int VEHICLE_PROPERTY_ACCESS_READ = 1; // 0x1
364    field public static final int VEHICLE_PROPERTY_ACCESS_READ_WRITE = 3; // 0x3
365    field public static final int VEHICLE_PROPERTY_ACCESS_WRITE = 2; // 0x2
366    field public static final int VEHICLE_PROPERTY_CHANGE_MODE_CONTINUOUS = 2; // 0x2
367    field public static final int VEHICLE_PROPERTY_CHANGE_MODE_ONCHANGE = 1; // 0x1
368    field public static final int VEHICLE_PROPERTY_CHANGE_MODE_STATIC = 0; // 0x0
369  }
370
371  public final class CarPropertyValue<T> implements android.os.Parcelable {
372    method public int describeContents();
373    method public int getAreaId();
374    method public int getPropertyId();
375    method @android.car.hardware.CarPropertyValue.PropertyStatus public int getStatus();
376    method public long getTimestamp();
377    method @NonNull public T getValue();
378    method public void writeToParcel(android.os.Parcel, int);
379    field public static final android.os.Parcelable.Creator<android.car.hardware.CarPropertyValue> CREATOR;
380    field public static final int STATUS_AVAILABLE = 0; // 0x0
381    field public static final int STATUS_ERROR = 2; // 0x2
382    field public static final int STATUS_UNAVAILABLE = 1; // 0x1
383  }
384
385  @IntDef({android.car.hardware.CarPropertyValue.STATUS_AVAILABLE, android.car.hardware.CarPropertyValue.STATUS_UNAVAILABLE, android.car.hardware.CarPropertyValue.STATUS_ERROR}) @java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy.SOURCE) public static @interface CarPropertyValue.PropertyStatus {
386  }
387
388  @Deprecated public class CarSensorEvent implements android.os.Parcelable {
389    method @Deprecated public int describeContents();
390    method @Deprecated public void writeToParcel(android.os.Parcel, int);
391    field @Deprecated public static final android.os.Parcelable.Creator<android.car.hardware.CarSensorEvent> CREATOR;
392    field @Deprecated public static final int GEAR_DRIVE = 8; // 0x8
393    field @Deprecated public static final int GEAR_EIGHTH = 2048; // 0x800
394    field @Deprecated public static final int GEAR_FIFTH = 256; // 0x100
395    field @Deprecated public static final int GEAR_FIRST = 16; // 0x10
396    field @Deprecated public static final int GEAR_FOURTH = 128; // 0x80
397    field @Deprecated public static final int GEAR_NEUTRAL = 1; // 0x1
398    field @Deprecated public static final int GEAR_NINTH = 4096; // 0x1000
399    field @Deprecated public static final int GEAR_PARK = 4; // 0x4
400    field @Deprecated public static final int GEAR_REVERSE = 2; // 0x2
401    field @Deprecated public static final int GEAR_SECOND = 32; // 0x20
402    field @Deprecated public static final int GEAR_SEVENTH = 1024; // 0x400
403    field @Deprecated public static final int GEAR_SIXTH = 512; // 0x200
404    field @Deprecated public static final int GEAR_TENTH = 8192; // 0x2000
405    field @Deprecated public static final int GEAR_THIRD = 64; // 0x40
406    field @Deprecated public static final int IGNITION_STATE_ACC = 3; // 0x3
407    field @Deprecated public static final int IGNITION_STATE_LOCK = 1; // 0x1
408    field @Deprecated public static final int IGNITION_STATE_OFF = 2; // 0x2
409    field @Deprecated public static final int IGNITION_STATE_ON = 4; // 0x4
410    field @Deprecated public static final int IGNITION_STATE_START = 5; // 0x5
411    field @Deprecated public static final int IGNITION_STATE_UNDEFINED = 0; // 0x0
412    field @Deprecated public static final int INDEX_ENVIRONMENT_TEMPERATURE = 0; // 0x0
413    field @Deprecated public static final int INDEX_WHEEL_DISTANCE_FRONT_LEFT = 1; // 0x1
414    field @Deprecated public static final int INDEX_WHEEL_DISTANCE_FRONT_RIGHT = 2; // 0x2
415    field @Deprecated public static final int INDEX_WHEEL_DISTANCE_REAR_LEFT = 4; // 0x4
416    field @Deprecated public static final int INDEX_WHEEL_DISTANCE_REAR_RIGHT = 3; // 0x3
417    field @Deprecated public static final int INDEX_WHEEL_DISTANCE_RESET_COUNT = 0; // 0x0
418    field @Deprecated public final float[] floatValues;
419    field @Deprecated public final int[] intValues;
420    field @Deprecated public final long[] longValues;
421    field @Deprecated public int sensorType;
422    field @Deprecated public long timestamp;
423  }
424
425  @Deprecated public static class CarSensorEvent.EnvironmentData {
426    field @Deprecated public float temperature;
427    field @Deprecated public long timestamp;
428  }
429
430  @Deprecated public final class CarSensorManager {
431    method @Deprecated @Nullable public android.car.hardware.CarSensorEvent getLatestSensorEvent(int);
432    method @Deprecated @NonNull public java.util.List<android.car.hardware.CarPropertyConfig> getPropertyList();
433    method @Deprecated @NonNull public int[] getSupportedSensors();
434    method @Deprecated public boolean isSensorSupported(int);
435    method @Deprecated @RequiresPermission(anyOf={android.car.Car.PERMISSION_SPEED, "android.car.permission.CAR_ENGINE_DETAILED", "android.car.permission.CAR_MILEAGE", android.car.Car.PERMISSION_ENERGY, android.car.Car.PERMISSION_POWERTRAIN, android.car.Car.PERMISSION_EXTERIOR_ENVIRONMENT, "android.car.permission.CAR_DYNAMICS_STATE", android.car.Car.PERMISSION_ENERGY_PORTS}, conditional=true) public boolean registerListener(@NonNull android.car.hardware.CarSensorManager.OnSensorChangedListener, int, int);
436    method @Deprecated public void unregisterListener(@NonNull android.car.hardware.CarSensorManager.OnSensorChangedListener);
437    method @Deprecated public void unregisterListener(@NonNull android.car.hardware.CarSensorManager.OnSensorChangedListener, int);
438    field @Deprecated public static final int SENSOR_RATE_FAST = 10; // 0xa
439    field @Deprecated public static final int SENSOR_RATE_FASTEST = 100; // 0x64
440    field @Deprecated public static final int SENSOR_RATE_NORMAL = 1; // 0x1
441    field @Deprecated public static final int SENSOR_RATE_ONCHANGE = 0; // 0x0
442    field @Deprecated public static final int SENSOR_RATE_UI = 5; // 0x5
443    field @Deprecated public static final int SENSOR_TYPE_ABS_ACTIVE = 287310858; // 0x1120040a
444    field @Deprecated public static final int SENSOR_TYPE_CAR_SPEED = 291504647; // 0x11600207
445    field @Deprecated public static final int SENSOR_TYPE_ENGINE_OIL_LEVEL = 289407747; // 0x11400303
446    field @Deprecated public static final int SENSOR_TYPE_ENV_OUTSIDE_TEMPERATURE = 291505923; // 0x11600703
447    field @Deprecated public static final int SENSOR_TYPE_EV_BATTERY_CHARGE_RATE = 291504908; // 0x1160030c
448    field @Deprecated public static final int SENSOR_TYPE_EV_BATTERY_LEVEL = 291504905; // 0x11600309
449    field @Deprecated public static final int SENSOR_TYPE_EV_CHARGE_PORT_CONNECTED = 287310603; // 0x1120030b
450    field @Deprecated public static final int SENSOR_TYPE_EV_CHARGE_PORT_OPEN = 287310602; // 0x1120030a
451    field @Deprecated public static final int SENSOR_TYPE_FUEL_DOOR_OPEN = 287310600; // 0x11200308
452    field @Deprecated public static final int SENSOR_TYPE_FUEL_LEVEL = 291504903; // 0x11600307
453    field @Deprecated public static final int SENSOR_TYPE_GEAR = 289408000; // 0x11400400
454    field @Deprecated public static final int SENSOR_TYPE_IGNITION_STATE = 289408009; // 0x11400409
455    field @Deprecated public static final int SENSOR_TYPE_NIGHT = 287310855; // 0x11200407
456    field @Deprecated public static final int SENSOR_TYPE_ODOMETER = 291504644; // 0x11600204
457    field @Deprecated public static final int SENSOR_TYPE_PARKING_BRAKE = 287310850; // 0x11200402
458    field @Deprecated public static final int SENSOR_TYPE_RPM = 291504901; // 0x11600305
459    field @Deprecated public static final int SENSOR_TYPE_TRACTION_CONTROL_ACTIVE = 287310859; // 0x1120040b
460    field @Deprecated public static final int SENSOR_TYPE_WHEEL_TICK_DISTANCE = 290521862; // 0x11510306
461  }
462
463  @Deprecated public static interface CarSensorManager.OnSensorChangedListener {
464    method @Deprecated public void onSensorChanged(android.car.hardware.CarSensorEvent);
465  }
466
467}
468
469package android.car.hardware.property {
470
471  public class CarPropertyManager {
472    method public boolean getBooleanProperty(int, int);
473    method public float getFloatProperty(int, int);
474    method @NonNull public int[] getIntArrayProperty(int, int);
475    method public int getIntProperty(int, int);
476    method @Nullable public <E> android.car.hardware.CarPropertyValue<E> getProperty(@NonNull Class<E>, int, int);
477    method @Nullable public <E> android.car.hardware.CarPropertyValue<E> getProperty(int, int);
478    method @NonNull public java.util.List<android.car.hardware.CarPropertyConfig> getPropertyList();
479    method @NonNull public java.util.List<android.car.hardware.CarPropertyConfig> getPropertyList(@NonNull android.util.ArraySet<java.lang.Integer>);
480    method public boolean isPropertyAvailable(int, int);
481    method public boolean registerCallback(@NonNull android.car.hardware.property.CarPropertyManager.CarPropertyEventCallback, int, @FloatRange(from=0.0, to=100.0) float);
482    method public void setBooleanProperty(int, int, boolean);
483    method public void setFloatProperty(int, int, float);
484    method public void setIntProperty(int, int, int);
485    method public <E> void setProperty(@NonNull Class<E>, int, int, @NonNull E);
486    method public void unregisterCallback(@NonNull android.car.hardware.property.CarPropertyManager.CarPropertyEventCallback);
487    method public void unregisterCallback(@NonNull android.car.hardware.property.CarPropertyManager.CarPropertyEventCallback, int);
488    field public static final float SENSOR_RATE_FAST = 10.0f;
489    field public static final float SENSOR_RATE_FASTEST = 100.0f;
490    field public static final float SENSOR_RATE_NORMAL = 1.0f;
491    field public static final float SENSOR_RATE_ONCHANGE = 0.0f;
492    field public static final float SENSOR_RATE_UI = 5.0f;
493  }
494
495  public static interface CarPropertyManager.CarPropertyEventCallback {
496    method public void onChangeEvent(android.car.hardware.CarPropertyValue);
497    method public void onErrorEvent(int, int);
498  }
499
500}
501
502package android.car.media {
503
504  public final class CarAudioManager {
505    method public void registerCarVolumeCallback(@NonNull android.car.media.CarAudioManager.CarVolumeCallback);
506    method public void unregisterCarVolumeCallback(@NonNull android.car.media.CarAudioManager.CarVolumeCallback);
507  }
508
509  public abstract static class CarAudioManager.CarVolumeCallback {
510    ctor public CarAudioManager.CarVolumeCallback();
511    method public void onGroupVolumeChanged(int, int, int);
512    method public void onMasterMuteChanged(int, int);
513  }
514
515}
516
517package android.car.settings {
518
519  public class CarConfigurationManager {
520    method public android.car.settings.SpeedBumpConfiguration getSpeedBumpConfiguration();
521  }
522
523  public class CarSettings {
524    ctor public CarSettings();
525  }
526
527  public static final class CarSettings.Global {
528    ctor public CarSettings.Global();
529    field @Deprecated public static final String KEY_GARAGE_MODE_ENABLED = "android.car.GARAGE_MODE_ENABLED";
530    field @Deprecated public static final String KEY_GARAGE_MODE_MAINTENANCE_WINDOW = "android.car.GARAGE_MODE_MAINTENANCE_WINDOW";
531    field @Deprecated public static final String KEY_GARAGE_MODE_WAKE_UP_TIME = "android.car.GARAGE_MODE_WAKE_UP_TIME";
532  }
533
534  public final class SpeedBumpConfiguration implements android.os.Parcelable {
535    ctor public SpeedBumpConfiguration(double, double, long);
536    method public int describeContents();
537    method public double getAcquiredPermitsPerSecond();
538    method public double getMaxPermitPool();
539    method public long getPermitFillDelay();
540    method public void writeToParcel(android.os.Parcel, int);
541    field public static final android.os.Parcelable.Creator<android.car.settings.SpeedBumpConfiguration> CREATOR;
542  }
543
544}
545
546