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