Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 1 | package android.car { |
| 2 | |
| 3 | public class Car { |
| 4 | method public void connect() throws java.lang.IllegalStateException; |
| 5 | method public static android.car.Car createCar(android.content.Context, android.content.ServiceConnection, android.os.Looper); |
| 6 | method public static android.car.Car createCar(android.content.Context, android.content.ServiceConnection); |
| 7 | method public void disconnect(); |
| 8 | method public int getCarConnectionType(); |
Vitalii Tomkiv | 235f8ac | 2016-04-04 11:26:49 -0700 | [diff] [blame] | 9 | method public java.lang.Object getCarManager(java.lang.String) throws android.car.CarNotConnectedException; |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 10 | method public boolean isConnected(); |
| 11 | method public boolean isConnecting(); |
Vitalii Tomkiv | 4637147 | 2016-05-23 16:55:22 -0700 | [diff] [blame] | 12 | field public static final java.lang.String APP_FOCUS_SERVICE = "app_focus"; |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 13 | field public static final java.lang.String AUDIO_SERVICE = "audio"; |
Steve Paik | 43c04a7 | 2016-07-08 19:12:09 -0700 | [diff] [blame] | 14 | field public static final java.lang.String CABIN_SERVICE = "cabin"; |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 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"; |
Steve Paik | 43c04a7 | 2016-07-08 19:12:09 -0700 | [diff] [blame] | 20 | field public static final java.lang.String PERMISSION_CAR_CABIN = "android.car.permission.CAR_CABIN"; |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 21 | field public static final java.lang.String PERMISSION_CAR_CAMERA = "android.car.permission.CAR_CAMERA"; |
Yao Chen | c4d442f | 2016-04-08 11:33:47 -0700 | [diff] [blame] | 22 | field public static final java.lang.String PERMISSION_CAR_CONTROL_AUDIO_VOLUME = "android.car.permission.CAR_CONTROL_AUDIO_VOLUME"; |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 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"; |
Pavel Maltsev | 634e1ff | 2016-07-14 15:41:26 -0700 | [diff] [blame^] | 36 | field public static final java.lang.String VENDOR_EXTENSION_SERVICE = "vendor_extension"; |
Keun-young Park | f521fd7 | 2016-07-08 14:51:43 -0700 | [diff] [blame] | 37 | field public static final int VERSION = 1; // 0x1 |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 38 | } |
| 39 | |
Vitalii Tomkiv | 4637147 | 2016-05-23 16:55:22 -0700 | [diff] [blame] | 40 | public final class CarAppFocusManager { |
| 41 | method public void abandonAppFocus(android.car.CarAppFocusManager.AppFocusOwnershipChangeListener, int) throws android.car.CarNotConnectedException; |
| 42 | method public void abandonAppFocus(android.car.CarAppFocusManager.AppFocusOwnershipChangeListener) throws android.car.CarNotConnectedException; |
Vitalii Tomkiv | 4637147 | 2016-05-23 16:55:22 -0700 | [diff] [blame] | 43 | method public boolean isOwningFocus(android.car.CarAppFocusManager.AppFocusOwnershipChangeListener, int) throws android.car.CarNotConnectedException; |
| 44 | method public void registerFocusListener(android.car.CarAppFocusManager.AppFocusChangeListener, int) throws android.car.CarNotConnectedException; |
| 45 | method public int requestAppFocus(android.car.CarAppFocusManager.AppFocusOwnershipChangeListener, int) throws android.car.CarNotConnectedException, java.lang.SecurityException; |
| 46 | method public void unregisterFocusListener(android.car.CarAppFocusManager.AppFocusChangeListener, int) throws android.car.CarNotConnectedException; |
| 47 | method public void unregisterFocusListener(android.car.CarAppFocusManager.AppFocusChangeListener) throws android.car.CarNotConnectedException; |
| 48 | field public static final int APP_FOCUS_REQUEST_FAILED = 0; // 0x0 |
| 49 | field public static final int APP_FOCUS_REQUEST_GRANTED = 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.AppFocusChangeListener { |
| 55 | method public abstract void onAppFocusChange(int, boolean); |
| 56 | } |
| 57 | |
| 58 | public static abstract interface CarAppFocusManager.AppFocusOwnershipChangeListener { |
| 59 | method public abstract void onAppFocusOwnershipLoss(int); |
| 60 | } |
| 61 | |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 62 | public class CarInfoManager { |
| 63 | method public java.lang.Float getFloat(java.lang.String) throws android.car.CarNotConnectedException, java.lang.IllegalArgumentException; |
| 64 | method public java.lang.Integer getInt(java.lang.String) throws android.car.CarNotConnectedException, java.lang.IllegalArgumentException; |
| 65 | method public java.lang.Long getLong(java.lang.String) throws android.car.CarNotConnectedException, java.lang.IllegalArgumentException; |
| 66 | method public java.lang.String getString(java.lang.String) throws android.car.CarNotConnectedException, java.lang.IllegalArgumentException; |
| 67 | field public static final java.lang.String KEY_MANUFACTURER = "manufacturer"; |
| 68 | field public static final java.lang.String KEY_MODEL = "model"; |
| 69 | field public static final java.lang.String KEY_MODEL_YEAR = "model-year"; |
| 70 | field public static final java.lang.String KEY_VEHICLE_ID = "vehicle-id"; |
| 71 | } |
| 72 | |
| 73 | public class CarNotConnectedException extends java.lang.Exception { |
| 74 | ctor public CarNotConnectedException(); |
| 75 | ctor public CarNotConnectedException(java.lang.String); |
| 76 | ctor public CarNotConnectedException(java.lang.String, java.lang.Throwable); |
| 77 | ctor public CarNotConnectedException(java.lang.Exception); |
| 78 | } |
| 79 | |
| 80 | public class CarNotSupportedException extends java.lang.Exception { |
| 81 | ctor public CarNotSupportedException(); |
| 82 | ctor public CarNotSupportedException(java.lang.String); |
| 83 | ctor public CarNotSupportedException(java.lang.String, java.lang.Throwable); |
| 84 | ctor public CarNotSupportedException(java.lang.Exception); |
| 85 | } |
| 86 | |
| 87 | public class CarProjectionManager { |
| 88 | method public void onCarDisconnected(); |
Vitalii Tomkiv | 235f8ac | 2016-04-04 11:26:49 -0700 | [diff] [blame] | 89 | method public void registerProjectionRunner(android.content.Intent) throws android.car.CarNotConnectedException; |
| 90 | method public void regsiterProjectionListener(android.car.CarProjectionManager.CarProjectionListener, int) throws android.car.CarNotConnectedException; |
| 91 | method public void unregisterProjectionRunner(android.content.Intent) throws android.car.CarNotConnectedException; |
| 92 | method public void unregsiterProjectionListener() throws android.car.CarNotConnectedException; |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 93 | field public static final int PROJECTION_LONG_PRESS_VOICE_SEARCH = 2; // 0x2 |
| 94 | field public static final int PROJECTION_VOICE_SEARCH = 1; // 0x1 |
| 95 | } |
| 96 | |
| 97 | public static abstract interface CarProjectionManager.CarProjectionListener { |
| 98 | method public abstract void onVoiceAssistantRequest(boolean); |
| 99 | } |
| 100 | |
Steve Paik | fb5f623 | 2016-03-28 10:31:25 -0700 | [diff] [blame] | 101 | public class VehicleAreaType { |
| 102 | ctor public VehicleAreaType(); |
| 103 | field public static final int VEHICLE_AREA_TYPE_DOOR = 4; // 0x4 |
| 104 | field public static final int VEHICLE_AREA_TYPE_NONE = 0; // 0x0 |
| 105 | field public static final int VEHICLE_AREA_TYPE_SEAT = 3; // 0x3 |
| 106 | field public static final int VEHICLE_AREA_TYPE_WINDOW = 2; // 0x2 |
| 107 | field public static final int VEHICLE_AREA_TYPE_ZONE = 1; // 0x1 |
| 108 | } |
| 109 | |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 110 | public class VehicleDoor { |
| 111 | ctor public VehicleDoor(); |
| 112 | field public static final int DOOR_HOOD = 268435456; // 0x10000000 |
| 113 | field public static final int DOOR_REAR = 536870912; // 0x20000000 |
| 114 | field public static final int DOOR_ROW_1_LEFT = 1; // 0x1 |
| 115 | field public static final int DOOR_ROW_1_RIGHT = 4; // 0x4 |
| 116 | field public static final int DOOR_ROW_2_LEFT = 16; // 0x10 |
| 117 | field public static final int DOOR_ROW_2_RIGHT = 64; // 0x40 |
| 118 | field public static final int DOOR_ROW_3_LEFT = 256; // 0x100 |
| 119 | field public static final int DOOR_ROW_3_RIGHT = 1024; // 0x400 |
| 120 | } |
| 121 | |
Steve Paik | 43c04a7 | 2016-07-08 19:12:09 -0700 | [diff] [blame] | 122 | public class VehicleMirror { |
| 123 | ctor public VehicleMirror(); |
| 124 | field public static final int MIRROR_DRIVER_CENTER = 4; // 0x4 |
| 125 | field public static final int MIRROR_DRIVER_LEFT = 1; // 0x1 |
| 126 | field public static final int MIRROR_DRIVER_RIGHT = 2; // 0x2 |
| 127 | } |
| 128 | |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 129 | public class VehicleSeat { |
| 130 | ctor public VehicleSeat(); |
| 131 | field public static final int SEAT_DRIVER_LHD = 1; // 0x1 |
| 132 | field public static final int SEAT_DRIVER_RHD = 2; // 0x2 |
| 133 | field public static final int SEAT_ROW_1_PASSENGER_CENTER = 32; // 0x20 |
| 134 | field public static final int SEAT_ROW_1_PASSENGER_LEFT = 16; // 0x10 |
| 135 | field public static final int SEAT_ROW_1_PASSENGER_RIGHT = 64; // 0x40 |
| 136 | field public static final int SEAT_ROW_2_PASSENGER_CENTER = 512; // 0x200 |
| 137 | field public static final int SEAT_ROW_2_PASSENGER_LEFT = 256; // 0x100 |
| 138 | field public static final int SEAT_ROW_2_PASSENGER_RIGHT = 1024; // 0x400 |
| 139 | field public static final int SEAT_ROW_3_PASSENGER_CENTER = 8192; // 0x2000 |
| 140 | field public static final int SEAT_ROW_3_PASSENGER_LEFT = 4096; // 0x1000 |
| 141 | field public static final int SEAT_ROW_3_PASSENGER_RIGHT = 16384; // 0x4000 |
| 142 | } |
| 143 | |
| 144 | public class VehicleWindow { |
| 145 | ctor public VehicleWindow(); |
| 146 | field public static final int WINDOW_FRONT_WINDSHIELD = 1; // 0x1 |
| 147 | field public static final int WINDOW_REAR_WINDSHIELD = 2; // 0x2 |
| 148 | field public static final int WINDOW_ROOF_TOP = 4; // 0x4 |
| 149 | field public static final int WINDOW_ROW_1_LEFT = 16; // 0x10 |
| 150 | field public static final int WINDOW_ROW_1_RIGHT = 32; // 0x20 |
| 151 | field public static final int WINDOW_ROW_2_LEFT = 256; // 0x100 |
| 152 | field public static final int WINDOW_ROW_2_RIGHT = 512; // 0x200 |
| 153 | field public static final int WINDOW_ROW_3_LEFT = 4096; // 0x1000 |
| 154 | field public static final int WINDOW_ROW_3_RIGHT = 8192; // 0x2000 |
| 155 | } |
| 156 | |
| 157 | public class VehicleZone { |
| 158 | ctor public VehicleZone(); |
| 159 | field public static final int ZONE_ALL = -2147483648; // 0x80000000 |
| 160 | field public static final int ZONE_ROW_1_ALL = 8; // 0x8 |
| 161 | field public static final int ZONE_ROW_1_CENTER = 2; // 0x2 |
| 162 | field public static final int ZONE_ROW_1_LEFT = 1; // 0x1 |
| 163 | field public static final int ZONE_ROW_1_RIGHT = 4; // 0x4 |
| 164 | field public static final int ZONE_ROW_2_ALL = 128; // 0x80 |
| 165 | field public static final int ZONE_ROW_2_CENTER = 32; // 0x20 |
| 166 | field public static final int ZONE_ROW_2_LEFT = 16; // 0x10 |
| 167 | field public static final int ZONE_ROW_2_RIGHT = 64; // 0x40 |
| 168 | field public static final int ZONE_ROW_3_ALL = 2048; // 0x800 |
| 169 | field public static final int ZONE_ROW_3_CENTER = 512; // 0x200 |
| 170 | field public static final int ZONE_ROW_3_LEFT = 256; // 0x100 |
| 171 | field public static final int ZONE_ROW_3_RIGHT = 1024; // 0x400 |
| 172 | field public static final int ZONE_ROW_4_ALL = 32768; // 0x8000 |
| 173 | field public static final int ZONE_ROW_4_CENTER = 8192; // 0x2000 |
| 174 | field public static final int ZONE_ROW_4_LEFT = 4096; // 0x1000 |
| 175 | field public static final int ZONE_ROW_4_RIGHT = 16384; // 0x4000 |
| 176 | } |
| 177 | |
| 178 | public class VehicleZoneUtil { |
| 179 | ctor public VehicleZoneUtil(); |
| 180 | method public static int getFirstZone(int); |
Keun-young Park | cc48749 | 2016-03-17 10:14:23 -0700 | [diff] [blame] | 181 | method public static int getNextZone(int, int) throws java.lang.IllegalArgumentException; |
| 182 | method public static int getNumberOfZones(int); |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 183 | method public static int[] listAllZones(int); |
Keun-young Park | cc48749 | 2016-03-17 10:14:23 -0700 | [diff] [blame] | 184 | method public static int zoneToIndex(int, int) throws java.lang.IllegalArgumentException; |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 185 | } |
| 186 | |
| 187 | } |
| 188 | |
| 189 | package android.car.annotation { |
| 190 | |
| 191 | public abstract class ValueTypeDef implements java.lang.annotation.Annotation { |
| 192 | } |
| 193 | |
| 194 | } |
| 195 | |
| 196 | package android.car.app.menu { |
| 197 | |
| 198 | public abstract class CarMenuCallbacks { |
| 199 | ctor public CarMenuCallbacks(); |
| 200 | method public abstract android.car.app.menu.RootMenu getRootMenu(android.os.Bundle); |
| 201 | method public abstract void onCarMenuClosed(); |
| 202 | method public abstract void onCarMenuClosing(); |
| 203 | method public abstract void onCarMenuOpened(); |
| 204 | method public abstract void onCarMenuOpening(); |
| 205 | method public abstract void onItemClicked(java.lang.String); |
| 206 | method public abstract boolean onItemLongClicked(java.lang.String); |
| 207 | method public abstract boolean onMenuClicked(); |
| 208 | method public abstract void subscribe(java.lang.String, android.car.app.menu.SubscriptionCallbacks); |
| 209 | method public abstract void unsubscribe(java.lang.String, android.car.app.menu.SubscriptionCallbacks); |
| 210 | } |
| 211 | |
| 212 | public class CarMenuConstants { |
| 213 | ctor public CarMenuConstants(); |
| 214 | } |
| 215 | |
| 216 | public static class CarMenuConstants.MenuItemConstants { |
| 217 | ctor public CarMenuConstants.MenuItemConstants(); |
| 218 | field public static final int FLAG_BROWSABLE = 1; // 0x1 |
| 219 | field public static final int FLAG_FIRSTITEM = 2; // 0x2 |
| 220 | field public static final java.lang.String KEY_EMPTY_PLACEHOLDER = "android.car.app.menu.empty_placeholder"; |
| 221 | field public static final java.lang.String KEY_FLAGS = "android.car.app.menu.flags"; |
| 222 | field public static final java.lang.String KEY_ID = "android.car.app.menu.id"; |
| 223 | field public static final java.lang.String KEY_LEFTICON = "android.car.app.menu.leftIcon"; |
| 224 | field public static final java.lang.String KEY_REMOTEVIEWS = "android.car.app.menu.remoteViews"; |
| 225 | field public static final java.lang.String KEY_RIGHTICON = "android.car.app.menu.rightIcon"; |
| 226 | field public static final java.lang.String KEY_RIGHTTEXT = "android.car.app.menu.rightText"; |
| 227 | field public static final java.lang.String KEY_TEXT = "android.car.app.menu.text"; |
| 228 | field public static final java.lang.String KEY_TITLE = "android.car.app.menu.title"; |
| 229 | field public static final java.lang.String KEY_WIDGET = "android.car.app.menu.widget"; |
| 230 | field public static final java.lang.String KEY_WIDGET_STATE = "android.car.app.menu.widget_state"; |
| 231 | field public static final int WIDGET_CHECKBOX = 1; // 0x1 |
| 232 | field public static final int WIDGET_TEXT_VIEW = 2; // 0x2 |
| 233 | } |
| 234 | |
| 235 | public static abstract class CarMenuConstants.MenuItemConstants.MenuItemFlags implements java.lang.annotation.Annotation { |
| 236 | } |
| 237 | |
| 238 | public static abstract class CarMenuConstants.MenuItemConstants.WidgetTypes implements java.lang.annotation.Annotation { |
| 239 | } |
| 240 | |
| 241 | public abstract class CarUiEntry { |
| 242 | ctor public CarUiEntry(android.content.Context, android.content.Context); |
| 243 | method public abstract void closeDrawer(); |
| 244 | method public abstract android.view.View getContentView(); |
| 245 | method public abstract int getFragmentContainerId(); |
| 246 | method public abstract java.lang.CharSequence getSearchBoxText(); |
| 247 | method public abstract void hideMenuButton(); |
| 248 | method public abstract void hideTitle(); |
| 249 | method public abstract void onPause(); |
| 250 | method public abstract void onRestoreInstanceState(android.os.Bundle); |
| 251 | method public abstract void onResume(); |
| 252 | method public abstract void onSaveInstanceState(android.os.Bundle); |
| 253 | method public abstract void onStart(); |
| 254 | method public abstract void onStop(); |
| 255 | method public abstract void openDrawer(); |
| 256 | method public abstract void restoreMenuDrawable(); |
| 257 | method public abstract void setAutoLightDarkMode(); |
| 258 | method public abstract void setBackground(android.graphics.Bitmap); |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 259 | method public abstract void setCarMenuCallbacks(android.car.app.menu.CarMenuCallbacks); |
| 260 | method public abstract void setDarkMode(); |
| 261 | method public abstract void setLightMode(); |
| 262 | method public abstract void setMenuButtonBitmap(android.graphics.Bitmap); |
| 263 | method public abstract void setMenuButtonColor(int); |
| 264 | method public abstract void setScrimColor(int); |
| 265 | method public abstract void setSearchBoxColors(int, int, int, int); |
| 266 | method public abstract void setSearchBoxEditListener(android.car.app.menu.SearchBoxEditListener); |
| 267 | method public abstract void setSearchBoxEndView(android.view.View); |
| 268 | method public abstract void setTitle(java.lang.CharSequence); |
| 269 | method public abstract void showMenu(java.lang.String, java.lang.String); |
| 270 | method public abstract void showSearchBox(android.view.View.OnClickListener); |
| 271 | method public abstract void showTitle(); |
| 272 | method public abstract void showToast(java.lang.String, long); |
| 273 | method public abstract android.widget.EditText startInput(java.lang.String, android.view.View.OnClickListener); |
| 274 | method public abstract void stopInput(); |
| 275 | field protected final android.content.Context mAppContext; |
| 276 | field protected final android.content.Context mUiLibContext; |
| 277 | } |
| 278 | |
| 279 | public class RootMenu { |
| 280 | ctor public RootMenu(java.lang.String); |
| 281 | ctor public RootMenu(java.lang.String, android.os.Bundle); |
| 282 | method public android.os.Bundle getBundle(); |
| 283 | method public java.lang.String getId(); |
| 284 | } |
| 285 | |
| 286 | public abstract class SearchBoxEditListener { |
| 287 | ctor public SearchBoxEditListener(); |
| 288 | method public abstract void onEdit(java.lang.String); |
| 289 | method public abstract void onSearch(java.lang.String); |
| 290 | } |
| 291 | |
| 292 | public abstract class SubscriptionCallbacks { |
| 293 | ctor public SubscriptionCallbacks(); |
| 294 | method public abstract void onChildChanged(java.lang.String, android.os.Bundle); |
| 295 | method public abstract void onChildrenLoaded(java.lang.String, java.util.List<android.os.Bundle>); |
| 296 | method public abstract void onError(java.lang.String); |
| 297 | } |
| 298 | |
| 299 | } |
| 300 | |
| 301 | package android.car.cluster.renderer { |
| 302 | |
| 303 | public class DisplayConfiguration implements android.os.Parcelable { |
| 304 | ctor public DisplayConfiguration(android.os.Parcel); |
| 305 | ctor public DisplayConfiguration(android.graphics.Rect); |
| 306 | ctor public DisplayConfiguration(android.graphics.Rect, android.graphics.Rect); |
| 307 | method public int describeContents(); |
| 308 | method public android.graphics.Rect getPrimaryRegion(); |
| 309 | method public android.graphics.Rect getSecondaryRegion(); |
| 310 | method public boolean hasSecondaryRegion(); |
| 311 | method public void writeToParcel(android.os.Parcel, int); |
| 312 | field public static final android.os.Parcelable.Creator<android.car.cluster.renderer.DisplayConfiguration> CREATOR; |
| 313 | } |
| 314 | |
| 315 | public abstract class InstrumentClusterRenderer { |
| 316 | ctor public InstrumentClusterRenderer(); |
| 317 | method protected abstract android.car.cluster.renderer.NavigationRenderer createNavigationRenderer(); |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 318 | method public synchronized android.car.cluster.renderer.NavigationRenderer getNavigationRenderer(); |
| 319 | method public final synchronized void initialize(); |
| 320 | method public abstract void onCreate(android.content.Context); |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 321 | method public abstract void onStart(); |
| 322 | method public abstract void onStop(); |
| 323 | } |
| 324 | |
Pavel Maltsev | 0477e29 | 2016-05-27 12:22:36 -0700 | [diff] [blame] | 325 | public abstract class InstrumentClusterRenderingService extends android.app.Service { |
| 326 | ctor public InstrumentClusterRenderingService(); |
| 327 | method protected abstract android.car.cluster.renderer.NavigationRenderer getNavigationRenderer(); |
| 328 | method public android.os.IBinder onBind(android.content.Intent); |
Pavel Maltsev | 03cf60c | 2016-06-27 15:11:51 -0700 | [diff] [blame] | 329 | method protected void onKeyEvent(android.view.KeyEvent); |
Pavel Maltsev | 0477e29 | 2016-05-27 12:22:36 -0700 | [diff] [blame] | 330 | } |
| 331 | |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 332 | public abstract class NavigationRenderer { |
| 333 | ctor public NavigationRenderer(); |
Pavel Maltsev | 8cf8691 | 2016-04-01 18:01:51 -0700 | [diff] [blame] | 334 | method public abstract android.car.navigation.CarNavigationInstrumentCluster getNavigationProperties(); |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 335 | method public abstract void onNextTurnChanged(int, java.lang.String, int, int, android.graphics.Bitmap, int); |
| 336 | method public abstract void onNextTurnDistanceChanged(int, int); |
| 337 | method public abstract void onStartNavigation(); |
| 338 | method public abstract void onStopNavigation(); |
| 339 | } |
| 340 | |
| 341 | } |
| 342 | |
| 343 | package android.car.content.pm { |
| 344 | |
| 345 | public class AppBlockingPackageInfo implements android.os.Parcelable { |
| 346 | ctor public AppBlockingPackageInfo(java.lang.String, int, int, int, android.content.pm.Signature[], java.lang.String[]); |
| 347 | ctor public AppBlockingPackageInfo(android.os.Parcel); |
| 348 | method public int describeContents(); |
| 349 | method public void writeToParcel(android.os.Parcel, int); |
| 350 | field public static final android.os.Parcelable.Creator<android.car.content.pm.AppBlockingPackageInfo> CREATOR; |
| 351 | field public static final int FLAG_SYSTEM_APP = 1; // 0x1 |
| 352 | field public static final int FLAG_WHOLE_ACTIVITY = 2; // 0x2 |
| 353 | field public final java.lang.String[] activities; |
| 354 | field public final int flags; |
| 355 | field public final int maxRevisionCode; |
| 356 | field public final int minRevisionCode; |
| 357 | field public final java.lang.String packageName; |
| 358 | field public final android.content.pm.Signature[] signatures; |
| 359 | } |
| 360 | |
| 361 | public class CarAppBlockingPolicy implements android.os.Parcelable { |
| 362 | ctor public CarAppBlockingPolicy(android.car.content.pm.AppBlockingPackageInfo[], android.car.content.pm.AppBlockingPackageInfo[]); |
| 363 | ctor public CarAppBlockingPolicy(android.os.Parcel); |
| 364 | method public int describeContents(); |
| 365 | method public void writeToParcel(android.os.Parcel, int); |
| 366 | field public static final android.os.Parcelable.Creator<android.car.content.pm.CarAppBlockingPolicy> CREATOR; |
| 367 | field public final android.car.content.pm.AppBlockingPackageInfo[] blacklists; |
| 368 | field public final android.car.content.pm.AppBlockingPackageInfo[] whitelists; |
| 369 | } |
| 370 | |
| 371 | public abstract class CarAppBlockingPolicyService extends android.app.Service { |
| 372 | ctor public CarAppBlockingPolicyService(); |
| 373 | method protected abstract android.car.content.pm.CarAppBlockingPolicy getAppBlockingPolicy(); |
| 374 | method public android.os.IBinder onBind(android.content.Intent); |
| 375 | field public static final java.lang.String SERVICE_INTERFACE = "android.car.content.pm.CarAppBlockingPolicyService"; |
| 376 | } |
| 377 | |
| 378 | public class CarPackageManager { |
| 379 | method public boolean isActivityAllowedWhileDriving(java.lang.String, java.lang.String) throws android.car.CarNotConnectedException; |
Keun-young Park | 4727da3 | 2016-05-31 10:00:51 -0700 | [diff] [blame] | 380 | method public boolean isActivityBackedBySafeActivity(android.content.ComponentName) throws android.car.CarNotConnectedException; |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 381 | method public boolean isServiceAllowedWhileDriving(java.lang.String, java.lang.String) throws android.car.CarNotConnectedException; |
| 382 | method public void setAppBlockingPolicy(java.lang.String, android.car.content.pm.CarAppBlockingPolicy, int) throws android.car.CarNotConnectedException, java.lang.IllegalArgumentException, java.lang.SecurityException; |
| 383 | field public static final int FLAG_SET_POLICY_ADD = 2; // 0x2 |
| 384 | field public static final int FLAG_SET_POLICY_REMOVE = 4; // 0x4 |
| 385 | field public static final int FLAG_SET_POLICY_WAIT_FOR_CHANGE = 1; // 0x1 |
| 386 | } |
| 387 | |
| 388 | } |
| 389 | |
| 390 | package android.car.hardware { |
| 391 | |
Steve Paik | fb5f623 | 2016-03-28 10:31:25 -0700 | [diff] [blame] | 392 | public class CarPropertyConfig implements android.os.Parcelable { |
| 393 | method public int describeContents(); |
| 394 | method public int getAreaCount(); |
| 395 | method public int[] getAreaIds(); |
| 396 | method public int getAreaType(); |
| 397 | method public int getFirstAndOnlyAreaId(); |
| 398 | method public T getMaxValue(int); |
| 399 | method public T getMaxValue(); |
| 400 | method public T getMinValue(int); |
| 401 | method public T getMinValue(); |
| 402 | method public int getPropertyId(); |
| 403 | method public java.lang.Class<T> getPropertyType(); |
| 404 | method public boolean hasArea(int); |
| 405 | method public boolean isGlobalProperty(); |
| 406 | method public static android.car.hardware.CarPropertyConfig.Builder<T> newBuilder(java.lang.Class<T>, int, int, int); |
| 407 | method public static android.car.hardware.CarPropertyConfig.Builder<T> newBuilder(java.lang.Class<T>, int, int); |
| 408 | method public void writeToParcel(android.os.Parcel, int); |
| 409 | field public static final android.os.Parcelable.Creator<android.car.hardware.CarPropertyConfig> CREATOR; |
| 410 | } |
| 411 | |
| 412 | public static class CarPropertyConfig.AreaConfig implements android.os.Parcelable { |
| 413 | method public int describeContents(); |
| 414 | method public T getMaxValue(); |
| 415 | method public T getMinValue(); |
| 416 | method public void writeToParcel(android.os.Parcel, int); |
| 417 | field public static final android.os.Parcelable.Creator<android.car.hardware.CarPropertyConfig.AreaConfig<java.lang.Object>> CREATOR; |
| 418 | } |
| 419 | |
| 420 | public static class CarPropertyConfig.Builder { |
| 421 | method public android.car.hardware.CarPropertyConfig.Builder<T> addArea(int); |
| 422 | method public android.car.hardware.CarPropertyConfig.Builder<T> addAreaConfig(int, T, T); |
| 423 | method public android.car.hardware.CarPropertyConfig.Builder<T> addAreas(int[]); |
| 424 | method public android.car.hardware.CarPropertyConfig<T> build(); |
| 425 | } |
| 426 | |
| 427 | public class CarPropertyValue implements android.os.Parcelable { |
| 428 | ctor public CarPropertyValue(int, T); |
| 429 | ctor public CarPropertyValue(int, int, T); |
| 430 | ctor public CarPropertyValue(android.os.Parcel); |
| 431 | method public int describeContents(); |
| 432 | method public int getAreaId(); |
| 433 | method public int getPropertyId(); |
| 434 | method public T getValue(); |
| 435 | method public void writeToParcel(android.os.Parcel, int); |
| 436 | field public static final android.os.Parcelable.Creator<android.car.hardware.CarPropertyValue> CREATOR; |
| 437 | } |
| 438 | |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 439 | public class CarSensorEvent implements android.os.Parcelable { |
| 440 | ctor public CarSensorEvent(android.os.Parcel); |
| 441 | ctor public CarSensorEvent(int, long, int, int); |
| 442 | method public int describeContents(); |
| 443 | method public android.car.hardware.CarSensorEvent.CarSpeedData getCarSpeedData(android.car.hardware.CarSensorEvent.CarSpeedData); |
| 444 | method public android.car.hardware.CarSensorEvent.DrivingStatusData getDrivingStatusData(android.car.hardware.CarSensorEvent.DrivingStatusData); |
| 445 | method public android.car.hardware.CarSensorEvent.EnvironmentData getEnvironmentData(android.car.hardware.CarSensorEvent.EnvironmentData); |
| 446 | method public android.car.hardware.CarSensorEvent.FuelLevelData getFuelLevelData(android.car.hardware.CarSensorEvent.FuelLevelData); |
| 447 | method public android.car.hardware.CarSensorEvent.GearData getGearData(android.car.hardware.CarSensorEvent.GearData); |
| 448 | method public android.car.hardware.CarSensorEvent.NightData getNightData(android.car.hardware.CarSensorEvent.NightData); |
| 449 | method public android.car.hardware.CarSensorEvent.OdometerData getOdometerData(android.car.hardware.CarSensorEvent.OdometerData); |
| 450 | method public android.car.hardware.CarSensorEvent.ParkingBrakeData getParkingBrakeData(android.car.hardware.CarSensorEvent.ParkingBrakeData); |
| 451 | method public android.car.hardware.CarSensorEvent.RpmData getRpmData(android.car.hardware.CarSensorEvent.RpmData); |
| 452 | method public void writeToParcel(android.os.Parcel, int); |
| 453 | field public static final android.os.Parcelable.Creator<android.car.hardware.CarSensorEvent> CREATOR; |
| 454 | field public static final int DRIVE_STATUS_FULLY_RESTRICTED = 31; // 0x1f |
| 455 | field public static final int DRIVE_STATUS_LIMIT_MESSAGE_LEN = 16; // 0x10 |
| 456 | field public static final int DRIVE_STATUS_NO_CONFIG = 8; // 0x8 |
| 457 | field public static final int DRIVE_STATUS_NO_KEYBOARD_INPUT = 2; // 0x2 |
| 458 | field public static final int DRIVE_STATUS_NO_VIDEO = 1; // 0x1 |
| 459 | field public static final int DRIVE_STATUS_NO_VOICE_INPUT = 4; // 0x4 |
| 460 | field public static final int DRIVE_STATUS_UNRESTRICTED = 0; // 0x0 |
| 461 | field public static final int GEAR_DRIVE = 100; // 0x64 |
| 462 | field public static final int GEAR_EIGHTH = 8; // 0x8 |
| 463 | field public static final int GEAR_FIFTH = 5; // 0x5 |
| 464 | field public static final int GEAR_FIRST = 1; // 0x1 |
| 465 | field public static final int GEAR_FOURTH = 4; // 0x4 |
| 466 | field public static final int GEAR_NEUTRAL = 0; // 0x0 |
| 467 | field public static final int GEAR_NINTH = 9; // 0x9 |
| 468 | field public static final int GEAR_PARK = 101; // 0x65 |
| 469 | field public static final int GEAR_REVERSE = 102; // 0x66 |
| 470 | field public static final int GEAR_SECOND = 2; // 0x2 |
| 471 | field public static final int GEAR_SEVENTH = 7; // 0x7 |
| 472 | field public static final int GEAR_SIXTH = 6; // 0x6 |
| 473 | field public static final int GEAR_TENTH = 10; // 0xa |
| 474 | field public static final int GEAR_THIRD = 3; // 0x3 |
| 475 | field public static final int INDEX_ENVIRONMENT_PRESSURE = 1; // 0x1 |
| 476 | field public static final int INDEX_ENVIRONMENT_TEMPERATURE = 0; // 0x0 |
| 477 | field public static final int INDEX_FUEL_LEVEL_IN_DISTANCE = 1; // 0x1 |
| 478 | field public static final int INDEX_FUEL_LEVEL_IN_PERCENTILE = 0; // 0x0 |
| 479 | field public static final int INDEX_FUEL_LOW_WARNING = 0; // 0x0 |
| 480 | field public final float[] floatValues; |
| 481 | field public final int[] intValues; |
| 482 | field public int sensorType; |
| 483 | field public long timeStampNs; |
| 484 | } |
| 485 | |
| 486 | public static class CarSensorEvent.CarSpeedData { |
| 487 | ctor public CarSensorEvent.CarSpeedData(); |
| 488 | field public float carSpeed; |
| 489 | field public long timeStampNs; |
| 490 | } |
| 491 | |
| 492 | public static class CarSensorEvent.DrivingStatusData { |
| 493 | ctor public CarSensorEvent.DrivingStatusData(); |
| 494 | field public int status; |
| 495 | field public long timeStampNs; |
| 496 | } |
| 497 | |
| 498 | public static class CarSensorEvent.EnvironmentData { |
| 499 | ctor public CarSensorEvent.EnvironmentData(); |
| 500 | field public float pressure; |
| 501 | field public float temperature; |
| 502 | field public long timeStampNs; |
| 503 | } |
| 504 | |
| 505 | public static class CarSensorEvent.FuelLevelData { |
| 506 | ctor public CarSensorEvent.FuelLevelData(); |
| 507 | field public int level; |
| 508 | field public boolean lowFuelWarning; |
| 509 | field public float range; |
| 510 | field public long timeStampNs; |
| 511 | } |
| 512 | |
| 513 | public static class CarSensorEvent.GearData { |
| 514 | ctor public CarSensorEvent.GearData(); |
| 515 | field public int gear; |
| 516 | field public long timeStampNs; |
| 517 | } |
| 518 | |
| 519 | public static class CarSensorEvent.NightData { |
| 520 | ctor public CarSensorEvent.NightData(); |
| 521 | field public boolean isNightMode; |
| 522 | field public long timeStampNs; |
| 523 | } |
| 524 | |
| 525 | public static class CarSensorEvent.OdometerData { |
| 526 | ctor public CarSensorEvent.OdometerData(); |
| 527 | field public float kms; |
| 528 | field public long timeStampNs; |
| 529 | } |
| 530 | |
| 531 | public static class CarSensorEvent.ParkingBrakeData { |
| 532 | ctor public CarSensorEvent.ParkingBrakeData(); |
| 533 | field public boolean isEngaged; |
| 534 | field public long timeStampNs; |
| 535 | } |
| 536 | |
| 537 | public static class CarSensorEvent.RpmData { |
| 538 | ctor public CarSensorEvent.RpmData(); |
| 539 | field public float rpm; |
| 540 | field public long timeStampNs; |
| 541 | } |
| 542 | |
| 543 | public class CarSensorManager { |
| 544 | method public android.car.hardware.CarSensorEvent getLatestSensorEvent(int) throws android.car.CarNotConnectedException; |
| 545 | method public int[] getSupportedSensors() throws android.car.CarNotConnectedException; |
| 546 | method public boolean isSensorSupported(int) throws android.car.CarNotConnectedException; |
| 547 | method public static boolean isSensorSupported(int[], int); |
| 548 | method public boolean registerListener(android.car.hardware.CarSensorManager.CarSensorEventListener, int, int) throws android.car.CarNotConnectedException, java.lang.IllegalArgumentException; |
Vitalii Tomkiv | 235f8ac | 2016-04-04 11:26:49 -0700 | [diff] [blame] | 549 | method public void unregisterListener(android.car.hardware.CarSensorManager.CarSensorEventListener) throws android.car.CarNotConnectedException; |
| 550 | method public void unregisterListener(android.car.hardware.CarSensorManager.CarSensorEventListener, int) throws android.car.CarNotConnectedException; |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 551 | field public static final int SENSOR_RATE_FAST = 1; // 0x1 |
| 552 | field public static final int SENSOR_RATE_FASTEST = 0; // 0x0 |
| 553 | field public static final int SENSOR_RATE_NORMAL = 3; // 0x3 |
| 554 | field public static final int SENSOR_RATE_UI = 2; // 0x2 |
| 555 | field public static final int SENSOR_TYPE_CAR_SPEED = 2; // 0x2 |
Jason Tholstrup | 9eae32f | 2016-05-10 14:39:05 -0700 | [diff] [blame] | 556 | field public static final int SENSOR_TYPE_DRIVING_STATUS = 11; // 0xb |
| 557 | field public static final int SENSOR_TYPE_ENVIRONMENT = 12; // 0xc |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 558 | field public static final int SENSOR_TYPE_FUEL_LEVEL = 5; // 0x5 |
| 559 | field public static final int SENSOR_TYPE_GEAR = 7; // 0x7 |
Jason Tholstrup | 9eae32f | 2016-05-10 14:39:05 -0700 | [diff] [blame] | 560 | field public static final int SENSOR_TYPE_NIGHT = 9; // 0x9 |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 561 | field public static final int SENSOR_TYPE_ODOMETER = 4; // 0x4 |
| 562 | field public static final int SENSOR_TYPE_PARKING_BRAKE = 6; // 0x6 |
| 563 | field public static final int SENSOR_TYPE_RPM = 3; // 0x3 |
| 564 | field public static final int SENSOR_TYPE_VENDOR_EXTENSION_END = 1879048191; // 0x6fffffff |
| 565 | } |
| 566 | |
| 567 | public static abstract interface CarSensorManager.CarSensorEventListener { |
| 568 | method public abstract void onSensorChanged(android.car.hardware.CarSensorEvent); |
| 569 | } |
| 570 | |
Pavel Maltsev | 634e1ff | 2016-07-14 15:41:26 -0700 | [diff] [blame^] | 571 | public class CarVendorExtensionManager { |
| 572 | method public E getGlobalProperty(java.lang.Class<E>, int) throws android.car.CarNotConnectedException; |
| 573 | method public java.util.List<android.car.hardware.CarPropertyConfig> getProperties() throws android.car.CarNotConnectedException; |
| 574 | method public E getProperty(java.lang.Class<E>, int, int) throws android.car.CarNotConnectedException; |
| 575 | method public void registerListener(android.car.hardware.CarVendorExtensionManager.CarVendorExtensionListener) throws android.car.CarNotConnectedException; |
| 576 | method public void setGlobalProperty(java.lang.Class<E>, int, E) throws android.car.CarNotConnectedException; |
| 577 | method public void setProperty(java.lang.Class<E>, int, int, E) throws android.car.CarNotConnectedException; |
| 578 | method public void unregisterListener(android.car.hardware.CarVendorExtensionManager.CarVendorExtensionListener) throws android.car.CarNotConnectedException; |
| 579 | } |
| 580 | |
| 581 | public static abstract interface CarVendorExtensionManager.CarVendorExtensionListener { |
| 582 | method public abstract void onChangeEvent(android.car.hardware.CarPropertyValue); |
| 583 | method public abstract void onErrorEvent(int, int); |
| 584 | } |
| 585 | |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 586 | } |
| 587 | |
Steve Paik | 43c04a7 | 2016-07-08 19:12:09 -0700 | [diff] [blame] | 588 | package android.car.hardware.cabin { |
| 589 | |
| 590 | public class CarCabinManager { |
| 591 | method public boolean getBooleanProperty(int, int) throws android.car.CarNotConnectedException; |
| 592 | method public float getFloatProperty(int, int) throws android.car.CarNotConnectedException; |
| 593 | method public int getIntProperty(int, int) throws android.car.CarNotConnectedException; |
| 594 | method public java.util.List<android.car.hardware.CarPropertyConfig> getPropertyList() throws android.car.CarNotConnectedException; |
| 595 | method public static boolean isZonedProperty(int); |
| 596 | method public synchronized void registerListener(android.car.hardware.cabin.CarCabinManager.CarCabinEventListener) throws android.car.CarNotConnectedException; |
| 597 | method public void setBooleanProperty(int, int, boolean) throws android.car.CarNotConnectedException; |
| 598 | method public void setFloatProperty(int, int, float) throws android.car.CarNotConnectedException; |
| 599 | method public void setIntProperty(int, int, int) throws android.car.CarNotConnectedException; |
| 600 | method public synchronized void unregisterListener(android.car.hardware.cabin.CarCabinManager.CarCabinEventListener) throws android.car.CarNotConnectedException; |
| 601 | } |
| 602 | |
| 603 | public static abstract class CarCabinManager.CabinPropertyId implements java.lang.annotation.Annotation { |
| 604 | field public static final int DOOR_LOCK = 3; // 0x3 |
| 605 | field public static final int DOOR_MOVE = 2; // 0x2 |
| 606 | field public static final int DOOR_POS = 1; // 0x1 |
| 607 | field public static final int MIRROR_FOLD = 4102; // 0x1006 |
| 608 | field public static final int MIRROR_LOCK = 4101; // 0x1005 |
| 609 | field public static final int MIRROR_Y_MOVE = 4100; // 0x1004 |
| 610 | field public static final int MIRROR_Y_POS = 4099; // 0x1003 |
| 611 | field public static final int MIRROR_Z_MOVE = 4098; // 0x1002 |
| 612 | field public static final int MIRROR_Z_POS = 4097; // 0x1001 |
| 613 | field public static final int SEAT_BACKREST_ANGLE_1_MOVE = 8201; // 0x2009 |
| 614 | field public static final int SEAT_BACKREST_ANGLE_1_POS = 8200; // 0x2008 |
| 615 | field public static final int SEAT_BACKREST_ANGLE_2_MOVE = 8203; // 0x200b |
| 616 | field public static final int SEAT_BACKREST_ANGLE_2_POS = 8202; // 0x200a |
| 617 | field public static final int SEAT_BELT_BUCKLED = 8195; // 0x2003 |
| 618 | field public static final int SEAT_BELT_HEIGHT_MOVE = 8197; // 0x2005 |
| 619 | field public static final int SEAT_BELT_HEIGHT_POS = 8196; // 0x2004 |
| 620 | field public static final int SEAT_DEPTH_MOVE = 8207; // 0x200f |
| 621 | field public static final int SEAT_DEPTH_POS = 8206; // 0x200e |
| 622 | field public static final int SEAT_FORE_AFT_MOVE = 8199; // 0x2007 |
| 623 | field public static final int SEAT_FORE_AFT_POS = 8198; // 0x2006 |
| 624 | field public static final int SEAT_HEADREST_ANGLE_MOVE = 8217; // 0x2019 |
| 625 | field public static final int SEAT_HEADREST_ANGLE_POS = 8216; // 0x2018 |
| 626 | field public static final int SEAT_HEADREST_FORE_AFT_MOVE = 8219; // 0x201b |
| 627 | field public static final int SEAT_HEADREST_FORE_AFT_POS = 8218; // 0x201a |
| 628 | field public static final int SEAT_HEADREST_HEIGHT_MOVE = 8215; // 0x2017 |
| 629 | field public static final int SEAT_HEADREST_HEIGHT_POS = 8214; // 0x2016 |
| 630 | field public static final int SEAT_HEIGHT_MOVE = 8205; // 0x200d |
| 631 | field public static final int SEAT_HEIGHT_POS = 8204; // 0x200c |
| 632 | field public static final int SEAT_LUMBAR_FORE_AFT_MOVE = 8211; // 0x2013 |
| 633 | field public static final int SEAT_LUMBAR_FORE_AFT_POS = 8210; // 0x2012 |
| 634 | field public static final int SEAT_LUMBAR_SIDE_SUPPORT_MOVE = 8213; // 0x2015 |
| 635 | field public static final int SEAT_LUMBAR_SIDE_SUPPORT_POS = 8212; // 0x2014 |
| 636 | field public static final int SEAT_MEMORY_SELECT = 8193; // 0x2001 |
| 637 | field public static final int SEAT_MEMORY_SET = 8194; // 0x2002 |
| 638 | field public static final int SEAT_TILT_MOVE = 8209; // 0x2011 |
| 639 | field public static final int SEAT_TILT_POS = 8208; // 0x2010 |
| 640 | field public static final int WINDOW_LOCK = 12293; // 0x3005 |
| 641 | field public static final int WINDOW_MOVE = 12290; // 0x3002 |
| 642 | field public static final int WINDOW_POS = 12289; // 0x3001 |
| 643 | field public static final int WINDOW_VENT_MOVE = 12292; // 0x3004 |
| 644 | field public static final int WINDOW_VENT_POS = 12291; // 0x3003 |
| 645 | } |
| 646 | |
| 647 | public static abstract interface CarCabinManager.CarCabinEventListener { |
| 648 | method public abstract void onChangeEvent(android.car.hardware.CarPropertyValue); |
| 649 | method public abstract void onErrorEvent(int, int); |
| 650 | } |
| 651 | |
| 652 | } |
| 653 | |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 654 | package android.car.hardware.camera { |
| 655 | |
| 656 | public class CarCamera { |
| 657 | ctor public CarCamera(android.car.hardware.camera.ICarCamera, int); |
Vitalii Tomkiv | 235f8ac | 2016-04-04 11:26:49 -0700 | [diff] [blame] | 658 | method public android.graphics.Rect getCameraCrop() throws android.car.CarNotConnectedException; |
| 659 | method public android.graphics.Rect getCameraPosition() throws android.car.CarNotConnectedException; |
| 660 | method public android.car.hardware.camera.CarCameraState getCameraState() throws android.car.CarNotConnectedException; |
| 661 | method public int getCapabilities() throws android.car.CarNotConnectedException; |
| 662 | method public void setCameraCrop(android.graphics.Rect) throws android.car.CarNotConnectedException; |
| 663 | method public void setCameraPosition(android.graphics.Rect) throws android.car.CarNotConnectedException; |
| 664 | method public void setCameraState(android.car.hardware.camera.CarCameraState) throws android.car.CarNotConnectedException; |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 665 | field public static final java.lang.String TAG; |
| 666 | field public final int mCameraType; |
| 667 | } |
| 668 | |
| 669 | public class CarCameraManager { |
| 670 | method public void closeCamera(android.car.hardware.camera.CarCamera); |
Vitalii Tomkiv | 235f8ac | 2016-04-04 11:26:49 -0700 | [diff] [blame] | 671 | method public int getCameraCapabilities(int) throws android.car.CarNotConnectedException; |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 672 | method public int[] getCameraList(); |
| 673 | method public android.car.hardware.camera.CarCamera openCamera(int); |
| 674 | field public static final int ANDROID_OVERLAY_SUPPORT_FLAG = 1; // 0x1 |
| 675 | field public static final int CAMERA_CROP_SUPPORT_FLAG = 2; // 0x2 |
| 676 | field public static final int CAMERA_POSITIONING_SUPPORT_FLAG = 4; // 0x4 |
| 677 | field public static final int CAR_CAMERA_TYPE_NONE = 0; // 0x0 |
| 678 | field public static final int CAR_CAMERA_TYPE_RVC = 1; // 0x1 |
| 679 | field public static final boolean DBG = true; |
| 680 | field public static final java.lang.String TAG; |
| 681 | } |
| 682 | |
| 683 | public class CarCameraState implements android.os.Parcelable { |
| 684 | ctor public CarCameraState(android.car.hardware.camera.CarCameraState); |
| 685 | ctor public CarCameraState(boolean, boolean); |
| 686 | method public int describeContents(); |
| 687 | method public boolean getCameraIsOn(); |
| 688 | method public boolean getOverlayIsOn(); |
| 689 | method public void setCameraIsOn(boolean); |
| 690 | method public void setOverlayIsOn(boolean); |
| 691 | method public void writeToParcel(android.os.Parcel, int); |
| 692 | field public static final android.os.Parcelable.Creator<android.car.hardware.camera.CarCameraState> CREATOR; |
| 693 | } |
| 694 | |
| 695 | public abstract interface ICarCamera implements android.os.IInterface { |
| 696 | method public abstract android.graphics.Rect getCameraCrop(int) throws android.os.RemoteException; |
| 697 | method public abstract int[] getCameraList() throws android.os.RemoteException; |
| 698 | method public abstract android.graphics.Rect getCameraPosition(int) throws android.os.RemoteException; |
| 699 | method public abstract android.car.hardware.camera.CarCameraState getCameraState(int) throws android.os.RemoteException; |
| 700 | method public abstract int getCapabilities(int) throws android.os.RemoteException; |
| 701 | method public abstract void setCameraCrop(int, android.graphics.Rect) throws android.os.RemoteException; |
| 702 | method public abstract void setCameraPosition(int, android.graphics.Rect) throws android.os.RemoteException; |
| 703 | method public abstract void setCameraState(int, android.car.hardware.camera.CarCameraState) throws android.os.RemoteException; |
| 704 | } |
| 705 | |
| 706 | } |
| 707 | |
| 708 | package android.car.hardware.hvac { |
| 709 | |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 710 | public class CarHvacManager { |
Vitalii Tomkiv | 235f8ac | 2016-04-04 11:26:49 -0700 | [diff] [blame] | 711 | method public boolean getBooleanProperty(int, int) throws android.car.CarNotConnectedException; |
| 712 | method public float getFloatProperty(int, int) throws android.car.CarNotConnectedException; |
| 713 | method public int getIntProperty(int, int) throws android.car.CarNotConnectedException; |
Steve Paik | fb5f623 | 2016-03-28 10:31:25 -0700 | [diff] [blame] | 714 | method public java.util.List<android.car.hardware.CarPropertyConfig> getPropertyList() throws android.car.CarNotConnectedException; |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 715 | method public static boolean isZonedProperty(int); |
| 716 | method public synchronized void registerListener(android.car.hardware.hvac.CarHvacManager.CarHvacEventListener) throws android.car.CarNotConnectedException; |
Vitalii Tomkiv | 235f8ac | 2016-04-04 11:26:49 -0700 | [diff] [blame] | 717 | method public void setBooleanProperty(int, int, boolean) throws android.car.CarNotConnectedException; |
| 718 | method public void setFloatProperty(int, int, float) throws android.car.CarNotConnectedException; |
| 719 | method public void setIntProperty(int, int, int) throws android.car.CarNotConnectedException; |
Steve Paik | fb5f623 | 2016-03-28 10:31:25 -0700 | [diff] [blame] | 720 | method public synchronized void unregisterListener(android.car.hardware.hvac.CarHvacManager.CarHvacEventListener) throws android.car.CarNotConnectedException; |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 721 | } |
| 722 | |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 723 | public static abstract interface CarHvacManager.CarHvacEventListener { |
Steve Paik | fb5f623 | 2016-03-28 10:31:25 -0700 | [diff] [blame] | 724 | method public abstract void onChangeEvent(android.car.hardware.CarPropertyValue); |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 725 | method public abstract void onErrorEvent(int, int); |
| 726 | } |
| 727 | |
Steve Paik | fb5f623 | 2016-03-28 10:31:25 -0700 | [diff] [blame] | 728 | public static abstract class CarHvacManager.HvacPropertyId implements java.lang.annotation.Annotation { |
Steve Paik | fb5f623 | 2016-03-28 10:31:25 -0700 | [diff] [blame] | 729 | field public static final int MAX_GLOBAL_PROPERTY_ID = 16383; // 0x3fff |
| 730 | field public static final int MIRROR_DEFROSTER_ON = 1; // 0x1 |
Steve Paik | c960e01 | 2016-05-04 15:09:23 -0700 | [diff] [blame] | 731 | field public static final int OUTSIDE_AIR_TEMP = 3; // 0x3 |
Keun-young Park | 4fff3d5 | 2016-04-22 16:39:24 -0700 | [diff] [blame] | 732 | field public static final int STEERING_WHEEL_TEMP = 2; // 0x2 |
Steve Paik | b224b85 | 2016-07-08 16:11:43 -0700 | [diff] [blame] | 733 | field public static final int TEMPERATURE_UNITS = 4; // 0x4 |
Steve Paik | fb5f623 | 2016-03-28 10:31:25 -0700 | [diff] [blame] | 734 | field public static final int WINDOW_DEFROSTER_ON = 20481; // 0x5001 |
| 735 | field public static final int ZONED_AC_ON = 16393; // 0x4009 |
Keun-young Park | 4fff3d5 | 2016-04-22 16:39:24 -0700 | [diff] [blame] | 736 | field public static final int ZONED_AIR_RECIRCULATION_ON = 16395; // 0x400b |
| 737 | field public static final int ZONED_AUTOMATIC_MODE_ON = 16394; // 0x400a |
Steve Paik | 3412beb | 2016-04-29 16:34:41 -0700 | [diff] [blame] | 738 | field public static final int ZONED_DUAL_ZONE_ON = 16397; // 0x400d |
Steve Paik | fb5f623 | 2016-03-28 10:31:25 -0700 | [diff] [blame] | 739 | field public static final int ZONED_FAN_POSITION = 16391; // 0x4007 |
| 740 | field public static final int ZONED_FAN_POSITION_AVAILABLE = 16390; // 0x4006 |
| 741 | field public static final int ZONED_FAN_SPEED_RPM = 16389; // 0x4005 |
| 742 | field public static final int ZONED_FAN_SPEED_SETPOINT = 16388; // 0x4004 |
Steve Paik | b224b85 | 2016-07-08 16:11:43 -0700 | [diff] [blame] | 743 | field public static final int ZONED_HVAC_POWER_ON = 16387; // 0x4003 |
Steve Paik | 3412beb | 2016-04-29 16:34:41 -0700 | [diff] [blame] | 744 | field public static final int ZONED_MAX_AC_ON = 16396; // 0x400c |
Steve Paik | c960e01 | 2016-05-04 15:09:23 -0700 | [diff] [blame] | 745 | field public static final int ZONED_MAX_DEFROST_ON = 16398; // 0x400e |
Steve Paik | fb5f623 | 2016-03-28 10:31:25 -0700 | [diff] [blame] | 746 | field public static final int ZONED_SEAT_TEMP = 16392; // 0x4008 |
| 747 | field public static final int ZONED_TEMP_ACTUAL = 16386; // 0x4002 |
Steve Paik | fb5f623 | 2016-03-28 10:31:25 -0700 | [diff] [blame] | 748 | field public static final int ZONED_TEMP_SETPOINT = 16385; // 0x4001 |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 749 | } |
| 750 | |
| 751 | } |
| 752 | |
| 753 | package android.car.hardware.radio { |
| 754 | |
| 755 | public class CarRadioEvent implements android.os.Parcelable { |
| 756 | ctor public CarRadioEvent(int, android.car.hardware.radio.CarRadioPreset); |
| 757 | method public int describeContents(); |
| 758 | method public int getEventType(); |
| 759 | method public android.car.hardware.radio.CarRadioPreset getPreset(); |
| 760 | method public void writeToParcel(android.os.Parcel, int); |
| 761 | field public static final android.os.Parcelable.Creator<android.car.hardware.radio.CarRadioEvent> CREATOR; |
| 762 | field public static final int RADIO_PRESET = 0; // 0x0 |
| 763 | } |
| 764 | |
| 765 | public class CarRadioManager { |
Vitalii Tomkiv | 235f8ac | 2016-04-04 11:26:49 -0700 | [diff] [blame] | 766 | method public android.car.hardware.radio.CarRadioPreset getPreset(int) throws android.car.CarNotConnectedException; |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 767 | method public int getPresetCount(); |
| 768 | method public synchronized void registerListener(android.car.hardware.radio.CarRadioManager.CarRadioEventListener) throws android.car.CarNotConnectedException; |
Vitalii Tomkiv | 235f8ac | 2016-04-04 11:26:49 -0700 | [diff] [blame] | 769 | method public boolean setPreset(android.car.hardware.radio.CarRadioPreset) throws android.car.CarNotConnectedException, java.lang.IllegalArgumentException; |
| 770 | method public synchronized void unregisterListener() throws android.car.CarNotConnectedException; |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 771 | field public static final boolean DBG = true; |
| 772 | field public static final java.lang.String TAG = "CarRadioManager"; |
| 773 | } |
| 774 | |
| 775 | public static abstract interface CarRadioManager.CarRadioEventListener { |
| 776 | method public abstract void onEvent(android.car.hardware.radio.CarRadioEvent); |
| 777 | } |
| 778 | |
| 779 | public class CarRadioPreset implements android.os.Parcelable { |
| 780 | ctor public CarRadioPreset(int, int, int, int); |
| 781 | method public int describeContents(); |
| 782 | method public int getBand(); |
| 783 | method public int getChannel(); |
| 784 | method public int getPresetNumber(); |
| 785 | method public int getSubChannel(); |
| 786 | method public void writeToParcel(android.os.Parcel, int); |
| 787 | field public static final android.os.Parcelable.Creator<android.car.hardware.radio.CarRadioPreset> CREATOR; |
| 788 | } |
| 789 | |
| 790 | } |
| 791 | |
| 792 | package android.car.media { |
| 793 | |
| 794 | public class CarAudioManager { |
| 795 | method public int abandonAudioFocus(android.media.AudioManager.OnAudioFocusChangeListener, android.media.AudioAttributes); |
| 796 | method public android.media.AudioAttributes getAudioAttributesForCarUsage(int); |
Yao Chen | c4d442f | 2016-04-08 11:33:47 -0700 | [diff] [blame] | 797 | method public int getStreamMaxVolume(int) throws android.car.CarNotConnectedException; |
| 798 | method public int getStreamMinVolume(int) throws android.car.CarNotConnectedException; |
| 799 | method public int getStreamVolume(int) throws android.car.CarNotConnectedException; |
Keun-young Park | 3cb8910 | 2016-05-05 13:16:03 -0700 | [diff] [blame] | 800 | method public boolean isMediaMuted() throws android.car.CarNotConnectedException; |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 801 | method public void onCarDisconnected(); |
| 802 | method public int requestAudioFocus(android.media.AudioManager.OnAudioFocusChangeListener, android.media.AudioAttributes, int, int) throws java.lang.IllegalArgumentException; |
Keun-young Park | 3cb8910 | 2016-05-05 13:16:03 -0700 | [diff] [blame] | 803 | method public boolean setMediaMute(boolean) throws android.car.CarNotConnectedException; |
Yao Chen | c4d442f | 2016-04-08 11:33:47 -0700 | [diff] [blame] | 804 | method public void setStreamVolume(int, int, int) throws android.car.CarNotConnectedException; |
| 805 | method public void setVolumeController(android.media.IVolumeController) throws android.car.CarNotConnectedException; |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 806 | field public static final int CAR_AUDIO_USAGE_ALARM = 6; // 0x6 |
| 807 | field public static final int CAR_AUDIO_USAGE_DEFAULT = 0; // 0x0 |
| 808 | field public static final int CAR_AUDIO_USAGE_MUSIC = 1; // 0x1 |
| 809 | field public static final int CAR_AUDIO_USAGE_NAVIGATION_GUIDANCE = 3; // 0x3 |
| 810 | field public static final int CAR_AUDIO_USAGE_NOTIFICATION = 7; // 0x7 |
| 811 | field public static final int CAR_AUDIO_USAGE_RADIO = 2; // 0x2 |
| 812 | field public static final int CAR_AUDIO_USAGE_SYSTEM_SAFETY_ALERT = 9; // 0x9 |
| 813 | field public static final int CAR_AUDIO_USAGE_SYSTEM_SOUND = 8; // 0x8 |
| 814 | field public static final int CAR_AUDIO_USAGE_VOICE_CALL = 4; // 0x4 |
| 815 | field public static final int CAR_AUDIO_USAGE_VOICE_COMMAND = 5; // 0x5 |
| 816 | } |
| 817 | |
| 818 | } |
| 819 | |
| 820 | package android.car.navigation { |
| 821 | |
| 822 | public class CarNavigationInstrumentCluster implements android.os.Parcelable { |
| 823 | ctor public CarNavigationInstrumentCluster(android.car.navigation.CarNavigationInstrumentCluster); |
| 824 | method public static android.car.navigation.CarNavigationInstrumentCluster createCluster(int); |
| 825 | method public static android.car.navigation.CarNavigationInstrumentCluster createCustomImageCluster(int, int, int, int); |
| 826 | method public int describeContents(); |
| 827 | method public int getImageColorDepthBits(); |
| 828 | method public int getImageHeight(); |
| 829 | method public int getImageWidth(); |
| 830 | method public int getMinIntervalMs(); |
| 831 | method public int getType(); |
| 832 | method public boolean supportsCustomImages(); |
| 833 | method public void writeToParcel(android.os.Parcel, int); |
| 834 | field public static final android.os.Parcelable.Creator<android.car.navigation.CarNavigationInstrumentCluster> CREATOR; |
| 835 | } |
| 836 | |
| 837 | public static abstract class CarNavigationInstrumentCluster.ClusterType implements java.lang.annotation.Annotation { |
| 838 | field public static final int CUSTOM_IMAGES_SUPPORTED = 1; // 0x1 |
| 839 | field public static final int IMAGE_CODES_ONLY = 2; // 0x2 |
| 840 | } |
| 841 | |
| 842 | } |
| 843 | |
| 844 | package android.car.test { |
| 845 | |
| 846 | public class CarTestManagerBinderWrapper { |
| 847 | ctor public CarTestManagerBinderWrapper(android.os.IBinder); |
| 848 | method public void onCarDisconnected(); |
| 849 | field public final android.os.IBinder binder; |
| 850 | } |
| 851 | |
| 852 | } |
| 853 | |