Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 1 | package android.car { |
| 2 | |
Keun-young Park | 4cf6911 | 2016-10-04 10:02:59 -0700 | [diff] [blame] | 3 | public final class Car { |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 4 | method public void connect() throws java.lang.IllegalStateException; |
Jason Tholstrup | 3ee334d | 2016-08-26 14:30:20 -0700 | [diff] [blame] | 5 | method public static android.car.Car createCar(android.content.Context, android.content.ServiceConnection, android.os.Handler); |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 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"; |
Yao Chen | 35189a3 | 2017-08-17 09:52:40 -0700 | [diff] [blame] | 15 | field public static final java.lang.String CAR_EXTRA_MEDIA_PACKAGE = "android.car.intent.extra.MEDIA_PACKAGE"; |
| 16 | field public static final java.lang.String CAR_INTENT_ACTION_MEDIA_TEMPLATE = "android.car.intent.action.MEDIA_TEMPLATE"; |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 17 | field public static final int CONNECTION_TYPE_EMBEDDED = 5; // 0x5 |
Enrico Granata | ae25b92 | 2017-07-07 11:28:15 -0700 | [diff] [blame] | 18 | field public static final java.lang.String DIAGNOSTIC_SERVICE = "diagnostic"; |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 19 | field public static final java.lang.String HVAC_SERVICE = "hvac"; |
| 20 | field public static final java.lang.String INFO_SERVICE = "info"; |
| 21 | field public static final java.lang.String PACKAGE_SERVICE = "package"; |
Steve Paik | 43c04a7 | 2016-07-08 19:12:09 -0700 | [diff] [blame] | 22 | field public static final java.lang.String PERMISSION_CAR_CABIN = "android.car.permission.CAR_CABIN"; |
Yao Chen | c4d442f | 2016-04-08 11:33:47 -0700 | [diff] [blame] | 23 | field public static final java.lang.String PERMISSION_CAR_CONTROL_AUDIO_VOLUME = "android.car.permission.CAR_CONTROL_AUDIO_VOLUME"; |
Enrico Granata | ae25b92 | 2017-07-07 11:28:15 -0700 | [diff] [blame] | 24 | field public static final java.lang.String PERMISSION_CAR_DIAGNOSTIC_CLEAR = "android.car.permission.DIAGNOSTIC_CLEAR"; |
| 25 | field public static final java.lang.String PERMISSION_CAR_DIAGNOSTIC_READ_ALL = "android.car.permission.DIAGNOSTIC_READ_ALL"; |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 26 | field public static final java.lang.String PERMISSION_CAR_HVAC = "android.car.permission.CAR_HVAC"; |
| 27 | field public static final java.lang.String PERMISSION_CAR_PROJECTION = "android.car.permission.CAR_PROJECTION"; |
| 28 | field public static final java.lang.String PERMISSION_CAR_RADIO = "android.car.permission.CAR_RADIO"; |
Pavel Maltsev | 0d07c76 | 2016-11-03 16:40:15 -0700 | [diff] [blame] | 29 | field public static final java.lang.String PERMISSION_CAR_TEST_SERVICE = "android.car.permission.CAR_TEST_SERVICE"; |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 30 | field public static final java.lang.String PERMISSION_CONTROL_APP_BLOCKING = "android.car.permission.CONTROL_APP_BLOCKING"; |
| 31 | field public static final java.lang.String PERMISSION_FUEL = "android.car.permission.CAR_FUEL"; |
| 32 | field public static final java.lang.String PERMISSION_MILEAGE = "android.car.permission.CAR_MILEAGE"; |
Pavel Maltsev | 0d07c76 | 2016-11-03 16:40:15 -0700 | [diff] [blame] | 33 | field public static final deprecated java.lang.String PERMISSION_MOCK_VEHICLE_HAL = "android.car.permission.CAR_MOCK_VEHICLE_HAL"; |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 34 | field public static final java.lang.String PERMISSION_SPEED = "android.car.permission.CAR_SPEED"; |
Steve Paik | 289ab99 | 2017-07-11 22:40:57 -0700 | [diff] [blame] | 35 | field public static final java.lang.String PERMISSION_VEHICLE_DYNAMICS_STATE = "android.car.permission.VEHICLE_DYNAMICS_STATE"; |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 36 | field public static final java.lang.String PERMISSION_VENDOR_EXTENSION = "android.car.permission.CAR_VENDOR_EXTENSION"; |
| 37 | field public static final java.lang.String PROJECTION_SERVICE = "projection"; |
| 38 | field public static final java.lang.String RADIO_SERVICE = "radio"; |
| 39 | field public static final java.lang.String SENSOR_SERVICE = "sensor"; |
Enrico Granata | 9a916d7 | 2017-09-19 14:33:08 -0700 | [diff] [blame] | 40 | field public static final java.lang.String STORAGE_MONITORING_SERVICE = "storage_monitoring"; |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 41 | field public static final java.lang.String TEST_SERVICE = "car-service-test"; |
Pavel Maltsev | 634e1ff | 2016-07-14 15:41:26 -0700 | [diff] [blame] | 42 | field public static final java.lang.String VENDOR_EXTENSION_SERVICE = "vendor_extension"; |
Keun-young Park | 909546f | 2017-07-19 14:59:51 -0700 | [diff] [blame] | 43 | field public static final int VERSION = 3; // 0x3 |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 44 | } |
| 45 | |
Vitalii Tomkiv | 4637147 | 2016-05-23 16:55:22 -0700 | [diff] [blame] | 46 | public final class CarAppFocusManager { |
Keun-young Park | 150d8de | 2016-10-07 15:48:11 -0700 | [diff] [blame] | 47 | method public void abandonAppFocus(android.car.CarAppFocusManager.OnAppFocusOwnershipCallback, int); |
| 48 | method public void abandonAppFocus(android.car.CarAppFocusManager.OnAppFocusOwnershipCallback); |
Jason Tholstrup | d72b535 | 2016-09-22 16:32:14 -0700 | [diff] [blame] | 49 | method public void addFocusListener(android.car.CarAppFocusManager.OnAppFocusChangedListener, int) throws android.car.CarNotConnectedException; |
Vitalii Tomkiv | d15d887 | 2016-10-04 14:08:56 -0700 | [diff] [blame] | 50 | method public boolean isOwningFocus(android.car.CarAppFocusManager.OnAppFocusOwnershipCallback, int) throws android.car.CarNotConnectedException; |
Keun-young Park | 150d8de | 2016-10-07 15:48:11 -0700 | [diff] [blame] | 51 | method public void removeFocusListener(android.car.CarAppFocusManager.OnAppFocusChangedListener, int); |
| 52 | method public void removeFocusListener(android.car.CarAppFocusManager.OnAppFocusChangedListener); |
Vitalii Tomkiv | d15d887 | 2016-10-04 14:08:56 -0700 | [diff] [blame] | 53 | method public int requestAppFocus(int, android.car.CarAppFocusManager.OnAppFocusOwnershipCallback) throws android.car.CarNotConnectedException, java.lang.SecurityException; |
Vitalii Tomkiv | 4637147 | 2016-05-23 16:55:22 -0700 | [diff] [blame] | 54 | field public static final int APP_FOCUS_REQUEST_FAILED = 0; // 0x0 |
Vitalii Tomkiv | d15d887 | 2016-10-04 14:08:56 -0700 | [diff] [blame] | 55 | field public static final int APP_FOCUS_REQUEST_SUCCEEDED = 1; // 0x1 |
Vitalii Tomkiv | 4637147 | 2016-05-23 16:55:22 -0700 | [diff] [blame] | 56 | field public static final int APP_FOCUS_TYPE_NAVIGATION = 1; // 0x1 |
| 57 | field public static final int APP_FOCUS_TYPE_VOICE_COMMAND = 2; // 0x2 |
| 58 | } |
| 59 | |
Jason Tholstrup | d72b535 | 2016-09-22 16:32:14 -0700 | [diff] [blame] | 60 | public static abstract interface CarAppFocusManager.OnAppFocusChangedListener { |
| 61 | method public abstract void onAppFocusChanged(int, boolean); |
Vitalii Tomkiv | 4637147 | 2016-05-23 16:55:22 -0700 | [diff] [blame] | 62 | } |
| 63 | |
Vitalii Tomkiv | d15d887 | 2016-10-04 14:08:56 -0700 | [diff] [blame] | 64 | public static abstract interface CarAppFocusManager.OnAppFocusOwnershipCallback { |
| 65 | method public abstract void onAppFocusOwnershipGranted(int); |
Jason Tholstrup | d72b535 | 2016-09-22 16:32:14 -0700 | [diff] [blame] | 66 | method public abstract void onAppFocusOwnershipLost(int); |
Vitalii Tomkiv | 4637147 | 2016-05-23 16:55:22 -0700 | [diff] [blame] | 67 | } |
| 68 | |
Keun-young Park | 6745635 | 2016-10-03 13:45:19 -0700 | [diff] [blame] | 69 | public final class CarInfoManager { |
Keun-young Park | 07ddbbd | 2016-10-06 14:13:02 -0700 | [diff] [blame] | 70 | method public java.lang.String getManufacturer() throws android.car.CarNotConnectedException; |
| 71 | method public java.lang.String getModel() throws android.car.CarNotConnectedException; |
| 72 | method public java.lang.String getModelYear() throws android.car.CarNotConnectedException; |
| 73 | method public java.lang.String getVehicleId() throws android.car.CarNotConnectedException; |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 74 | } |
| 75 | |
| 76 | public class CarNotConnectedException extends java.lang.Exception { |
| 77 | ctor public CarNotConnectedException(); |
| 78 | ctor public CarNotConnectedException(java.lang.String); |
| 79 | ctor public CarNotConnectedException(java.lang.String, java.lang.Throwable); |
| 80 | ctor public CarNotConnectedException(java.lang.Exception); |
| 81 | } |
| 82 | |
Keun-young Park | 4cf6911 | 2016-10-04 10:02:59 -0700 | [diff] [blame] | 83 | public final class CarProjectionManager { |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 84 | method public void onCarDisconnected(); |
Gene Karshenboym | beab135 | 2017-06-22 15:58:31 -0700 | [diff] [blame] | 85 | method public void registerProjectionListener(android.car.CarProjectionManager.CarProjectionListener, int) throws android.car.CarNotConnectedException; |
Enrico Granata | ae25b92 | 2017-07-07 11:28:15 -0700 | [diff] [blame] | 86 | method public void registerProjectionRunner(android.content.Intent) throws android.car.CarNotConnectedException; |
Gene Karshenboym | beab135 | 2017-06-22 15:58:31 -0700 | [diff] [blame] | 87 | method public void unregisterProjectionListener(); |
Enrico Granata | ae25b92 | 2017-07-07 11:28:15 -0700 | [diff] [blame] | 88 | method public void unregisterProjectionRunner(android.content.Intent); |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 89 | field public static final int PROJECTION_LONG_PRESS_VOICE_SEARCH = 2; // 0x2 |
| 90 | field public static final int PROJECTION_VOICE_SEARCH = 1; // 0x1 |
| 91 | } |
| 92 | |
| 93 | public static abstract interface CarProjectionManager.CarProjectionListener { |
| 94 | method public abstract void onVoiceAssistantRequest(boolean); |
| 95 | } |
| 96 | |
Keun-young Park | cd68cc7 | 2016-09-14 11:06:56 -0700 | [diff] [blame] | 97 | public final class VehicleAreaType { |
Steve Paik | fb5f623 | 2016-03-28 10:31:25 -0700 | [diff] [blame] | 98 | field public static final int VEHICLE_AREA_TYPE_DOOR = 4; // 0x4 |
Vitalii Tomkiv | 5f537ee | 2016-10-11 14:26:44 -0700 | [diff] [blame] | 99 | field public static final int VEHICLE_AREA_TYPE_MIRROR = 5; // 0x5 |
Steve Paik | fb5f623 | 2016-03-28 10:31:25 -0700 | [diff] [blame] | 100 | field public static final int VEHICLE_AREA_TYPE_NONE = 0; // 0x0 |
| 101 | field public static final int VEHICLE_AREA_TYPE_SEAT = 3; // 0x3 |
| 102 | field public static final int VEHICLE_AREA_TYPE_WINDOW = 2; // 0x2 |
| 103 | field public static final int VEHICLE_AREA_TYPE_ZONE = 1; // 0x1 |
| 104 | } |
| 105 | |
Keun-young Park | cd68cc7 | 2016-09-14 11:06:56 -0700 | [diff] [blame] | 106 | public final class VehicleDoor { |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 107 | field public static final int DOOR_HOOD = 268435456; // 0x10000000 |
| 108 | field public static final int DOOR_REAR = 536870912; // 0x20000000 |
| 109 | field public static final int DOOR_ROW_1_LEFT = 1; // 0x1 |
| 110 | field public static final int DOOR_ROW_1_RIGHT = 4; // 0x4 |
| 111 | field public static final int DOOR_ROW_2_LEFT = 16; // 0x10 |
| 112 | field public static final int DOOR_ROW_2_RIGHT = 64; // 0x40 |
| 113 | field public static final int DOOR_ROW_3_LEFT = 256; // 0x100 |
| 114 | field public static final int DOOR_ROW_3_RIGHT = 1024; // 0x400 |
| 115 | } |
| 116 | |
Keun-young Park | cd68cc7 | 2016-09-14 11:06:56 -0700 | [diff] [blame] | 117 | public final class VehicleMirror { |
Steve Paik | 43c04a7 | 2016-07-08 19:12:09 -0700 | [diff] [blame] | 118 | field public static final int MIRROR_DRIVER_CENTER = 4; // 0x4 |
| 119 | field public static final int MIRROR_DRIVER_LEFT = 1; // 0x1 |
| 120 | field public static final int MIRROR_DRIVER_RIGHT = 2; // 0x2 |
| 121 | } |
| 122 | |
Keun-young Park | cd68cc7 | 2016-09-14 11:06:56 -0700 | [diff] [blame] | 123 | public final class VehicleSeat { |
Steve Paik | 8968e1d | 2016-10-06 20:29:37 -0700 | [diff] [blame] | 124 | field public static final int SEAT_ROW_1_CENTER = 2; // 0x2 |
| 125 | field public static final int SEAT_ROW_1_LEFT = 1; // 0x1 |
| 126 | field public static final int SEAT_ROW_1_RIGHT = 4; // 0x4 |
| 127 | field public static final int SEAT_ROW_2_CENTER = 32; // 0x20 |
| 128 | field public static final int SEAT_ROW_2_LEFT = 16; // 0x10 |
| 129 | field public static final int SEAT_ROW_2_RIGHT = 64; // 0x40 |
| 130 | field public static final int SEAT_ROW_3_CENTER = 512; // 0x200 |
| 131 | field public static final int SEAT_ROW_3_LEFT = 256; // 0x100 |
| 132 | field public static final int SEAT_ROW_3_RIGHT = 1024; // 0x400 |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 133 | } |
| 134 | |
Keun-young Park | cd68cc7 | 2016-09-14 11:06:56 -0700 | [diff] [blame] | 135 | public final class VehicleWindow { |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 136 | field public static final int WINDOW_FRONT_WINDSHIELD = 1; // 0x1 |
| 137 | field public static final int WINDOW_REAR_WINDSHIELD = 2; // 0x2 |
| 138 | field public static final int WINDOW_ROOF_TOP = 4; // 0x4 |
| 139 | field public static final int WINDOW_ROW_1_LEFT = 16; // 0x10 |
| 140 | field public static final int WINDOW_ROW_1_RIGHT = 32; // 0x20 |
| 141 | field public static final int WINDOW_ROW_2_LEFT = 256; // 0x100 |
| 142 | field public static final int WINDOW_ROW_2_RIGHT = 512; // 0x200 |
| 143 | field public static final int WINDOW_ROW_3_LEFT = 4096; // 0x1000 |
| 144 | field public static final int WINDOW_ROW_3_RIGHT = 8192; // 0x2000 |
| 145 | } |
| 146 | |
Keun-young Park | cd68cc7 | 2016-09-14 11:06:56 -0700 | [diff] [blame] | 147 | public final class VehicleZone { |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 148 | field public static final int ZONE_ALL = -2147483648; // 0x80000000 |
| 149 | field public static final int ZONE_ROW_1_ALL = 8; // 0x8 |
| 150 | field public static final int ZONE_ROW_1_CENTER = 2; // 0x2 |
| 151 | field public static final int ZONE_ROW_1_LEFT = 1; // 0x1 |
| 152 | field public static final int ZONE_ROW_1_RIGHT = 4; // 0x4 |
| 153 | field public static final int ZONE_ROW_2_ALL = 128; // 0x80 |
| 154 | field public static final int ZONE_ROW_2_CENTER = 32; // 0x20 |
| 155 | field public static final int ZONE_ROW_2_LEFT = 16; // 0x10 |
| 156 | field public static final int ZONE_ROW_2_RIGHT = 64; // 0x40 |
| 157 | field public static final int ZONE_ROW_3_ALL = 2048; // 0x800 |
| 158 | field public static final int ZONE_ROW_3_CENTER = 512; // 0x200 |
| 159 | field public static final int ZONE_ROW_3_LEFT = 256; // 0x100 |
| 160 | field public static final int ZONE_ROW_3_RIGHT = 1024; // 0x400 |
| 161 | field public static final int ZONE_ROW_4_ALL = 32768; // 0x8000 |
| 162 | field public static final int ZONE_ROW_4_CENTER = 8192; // 0x2000 |
| 163 | field public static final int ZONE_ROW_4_LEFT = 4096; // 0x1000 |
| 164 | field public static final int ZONE_ROW_4_RIGHT = 16384; // 0x4000 |
| 165 | } |
| 166 | |
Keun-young Park | cd68cc7 | 2016-09-14 11:06:56 -0700 | [diff] [blame] | 167 | public final class VehicleZoneUtil { |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 168 | method public static int getFirstZone(int); |
Keun-young Park | cc48749 | 2016-03-17 10:14:23 -0700 | [diff] [blame] | 169 | method public static int getNextZone(int, int) throws java.lang.IllegalArgumentException; |
| 170 | method public static int getNumberOfZones(int); |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 171 | method public static int[] listAllZones(int); |
Keun-young Park | cc48749 | 2016-03-17 10:14:23 -0700 | [diff] [blame] | 172 | method public static int zoneToIndex(int, int) throws java.lang.IllegalArgumentException; |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 173 | } |
| 174 | |
| 175 | } |
| 176 | |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 177 | package android.car.app.menu { |
| 178 | |
| 179 | public abstract class CarMenuCallbacks { |
| 180 | ctor public CarMenuCallbacks(); |
| 181 | method public abstract android.car.app.menu.RootMenu getRootMenu(android.os.Bundle); |
| 182 | method public abstract void onCarMenuClosed(); |
| 183 | method public abstract void onCarMenuClosing(); |
| 184 | method public abstract void onCarMenuOpened(); |
| 185 | method public abstract void onCarMenuOpening(); |
| 186 | method public abstract void onItemClicked(java.lang.String); |
| 187 | method public abstract boolean onItemLongClicked(java.lang.String); |
| 188 | method public abstract boolean onMenuClicked(); |
| 189 | method public abstract void subscribe(java.lang.String, android.car.app.menu.SubscriptionCallbacks); |
| 190 | method public abstract void unsubscribe(java.lang.String, android.car.app.menu.SubscriptionCallbacks); |
| 191 | } |
| 192 | |
| 193 | public class CarMenuConstants { |
| 194 | ctor public CarMenuConstants(); |
| 195 | } |
| 196 | |
| 197 | public static class CarMenuConstants.MenuItemConstants { |
| 198 | ctor public CarMenuConstants.MenuItemConstants(); |
| 199 | field public static final int FLAG_BROWSABLE = 1; // 0x1 |
| 200 | field public static final int FLAG_FIRSTITEM = 2; // 0x2 |
| 201 | field public static final java.lang.String KEY_EMPTY_PLACEHOLDER = "android.car.app.menu.empty_placeholder"; |
| 202 | field public static final java.lang.String KEY_FLAGS = "android.car.app.menu.flags"; |
| 203 | field public static final java.lang.String KEY_ID = "android.car.app.menu.id"; |
| 204 | field public static final java.lang.String KEY_LEFTICON = "android.car.app.menu.leftIcon"; |
| 205 | field public static final java.lang.String KEY_REMOTEVIEWS = "android.car.app.menu.remoteViews"; |
| 206 | field public static final java.lang.String KEY_RIGHTICON = "android.car.app.menu.rightIcon"; |
| 207 | field public static final java.lang.String KEY_RIGHTTEXT = "android.car.app.menu.rightText"; |
| 208 | field public static final java.lang.String KEY_TEXT = "android.car.app.menu.text"; |
| 209 | field public static final java.lang.String KEY_TITLE = "android.car.app.menu.title"; |
| 210 | field public static final java.lang.String KEY_WIDGET = "android.car.app.menu.widget"; |
| 211 | field public static final java.lang.String KEY_WIDGET_STATE = "android.car.app.menu.widget_state"; |
| 212 | field public static final int WIDGET_CHECKBOX = 1; // 0x1 |
| 213 | field public static final int WIDGET_TEXT_VIEW = 2; // 0x2 |
| 214 | } |
| 215 | |
| 216 | public static abstract class CarMenuConstants.MenuItemConstants.MenuItemFlags implements java.lang.annotation.Annotation { |
| 217 | } |
| 218 | |
| 219 | public static abstract class CarMenuConstants.MenuItemConstants.WidgetTypes implements java.lang.annotation.Annotation { |
| 220 | } |
| 221 | |
| 222 | public abstract class CarUiEntry { |
| 223 | ctor public CarUiEntry(android.content.Context, android.content.Context); |
| 224 | method public abstract void closeDrawer(); |
| 225 | method public abstract android.view.View getContentView(); |
| 226 | method public abstract int getFragmentContainerId(); |
| 227 | method public abstract java.lang.CharSequence getSearchBoxText(); |
| 228 | method public abstract void hideMenuButton(); |
| 229 | method public abstract void hideTitle(); |
| 230 | method public abstract void onPause(); |
| 231 | method public abstract void onRestoreInstanceState(android.os.Bundle); |
| 232 | method public abstract void onResume(); |
| 233 | method public abstract void onSaveInstanceState(android.os.Bundle); |
| 234 | method public abstract void onStart(); |
| 235 | method public abstract void onStop(); |
| 236 | method public abstract void openDrawer(); |
| 237 | method public abstract void restoreMenuDrawable(); |
| 238 | method public abstract void setAutoLightDarkMode(); |
| 239 | method public abstract void setBackground(android.graphics.Bitmap); |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 240 | method public abstract void setCarMenuCallbacks(android.car.app.menu.CarMenuCallbacks); |
| 241 | method public abstract void setDarkMode(); |
| 242 | method public abstract void setLightMode(); |
| 243 | method public abstract void setMenuButtonBitmap(android.graphics.Bitmap); |
| 244 | method public abstract void setMenuButtonColor(int); |
| 245 | method public abstract void setScrimColor(int); |
| 246 | method public abstract void setSearchBoxColors(int, int, int, int); |
| 247 | method public abstract void setSearchBoxEditListener(android.car.app.menu.SearchBoxEditListener); |
| 248 | method public abstract void setSearchBoxEndView(android.view.View); |
| 249 | method public abstract void setTitle(java.lang.CharSequence); |
| 250 | method public abstract void showMenu(java.lang.String, java.lang.String); |
| 251 | method public abstract void showSearchBox(android.view.View.OnClickListener); |
| 252 | method public abstract void showTitle(); |
| 253 | method public abstract void showToast(java.lang.String, long); |
| 254 | method public abstract android.widget.EditText startInput(java.lang.String, android.view.View.OnClickListener); |
| 255 | method public abstract void stopInput(); |
| 256 | field protected final android.content.Context mAppContext; |
| 257 | field protected final android.content.Context mUiLibContext; |
| 258 | } |
| 259 | |
| 260 | public class RootMenu { |
| 261 | ctor public RootMenu(java.lang.String); |
| 262 | ctor public RootMenu(java.lang.String, android.os.Bundle); |
| 263 | method public android.os.Bundle getBundle(); |
| 264 | method public java.lang.String getId(); |
| 265 | } |
| 266 | |
| 267 | public abstract class SearchBoxEditListener { |
| 268 | ctor public SearchBoxEditListener(); |
| 269 | method public abstract void onEdit(java.lang.String); |
| 270 | method public abstract void onSearch(java.lang.String); |
| 271 | } |
| 272 | |
| 273 | public abstract class SubscriptionCallbacks { |
| 274 | ctor public SubscriptionCallbacks(); |
| 275 | method public abstract void onChildChanged(java.lang.String, android.os.Bundle); |
| 276 | method public abstract void onChildrenLoaded(java.lang.String, java.util.List<android.os.Bundle>); |
| 277 | method public abstract void onError(java.lang.String); |
| 278 | } |
| 279 | |
| 280 | } |
| 281 | |
| 282 | package android.car.cluster.renderer { |
| 283 | |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 284 | public abstract class InstrumentClusterRenderer { |
| 285 | ctor public InstrumentClusterRenderer(); |
| 286 | method protected abstract android.car.cluster.renderer.NavigationRenderer createNavigationRenderer(); |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 287 | method public synchronized android.car.cluster.renderer.NavigationRenderer getNavigationRenderer(); |
| 288 | method public final synchronized void initialize(); |
| 289 | method public abstract void onCreate(android.content.Context); |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 290 | method public abstract void onStart(); |
| 291 | method public abstract void onStop(); |
| 292 | } |
| 293 | |
Pavel Maltsev | 0477e29 | 2016-05-27 12:22:36 -0700 | [diff] [blame] | 294 | public abstract class InstrumentClusterRenderingService extends android.app.Service { |
| 295 | ctor public InstrumentClusterRenderingService(); |
| 296 | method protected abstract android.car.cluster.renderer.NavigationRenderer getNavigationRenderer(); |
| 297 | method public android.os.IBinder onBind(android.content.Intent); |
Pavel Maltsev | 03cf60c | 2016-06-27 15:11:51 -0700 | [diff] [blame] | 298 | method protected void onKeyEvent(android.view.KeyEvent); |
Pavel Maltsev | 0477e29 | 2016-05-27 12:22:36 -0700 | [diff] [blame] | 299 | } |
| 300 | |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 301 | public abstract class NavigationRenderer { |
| 302 | ctor public NavigationRenderer(); |
Pavel Maltsev | 8cf8691 | 2016-04-01 18:01:51 -0700 | [diff] [blame] | 303 | method public abstract android.car.navigation.CarNavigationInstrumentCluster getNavigationProperties(); |
Keun-young Park | 3388e78 | 2016-10-05 16:28:32 -0700 | [diff] [blame] | 304 | method public abstract void onNextTurnChanged(int, java.lang.CharSequence, int, int, android.graphics.Bitmap, int); |
Pavel Maltsev | a928f13 | 2016-08-01 16:46:10 -0700 | [diff] [blame] | 305 | method public abstract void onNextTurnDistanceChanged(int, int, int, int); |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 306 | method public abstract void onStartNavigation(); |
| 307 | method public abstract void onStopNavigation(); |
| 308 | } |
| 309 | |
| 310 | } |
| 311 | |
| 312 | package android.car.content.pm { |
| 313 | |
| 314 | public class AppBlockingPackageInfo implements android.os.Parcelable { |
| 315 | ctor public AppBlockingPackageInfo(java.lang.String, int, int, int, android.content.pm.Signature[], java.lang.String[]); |
| 316 | ctor public AppBlockingPackageInfo(android.os.Parcel); |
| 317 | method public int describeContents(); |
| 318 | method public void writeToParcel(android.os.Parcel, int); |
| 319 | field public static final android.os.Parcelable.Creator<android.car.content.pm.AppBlockingPackageInfo> CREATOR; |
| 320 | field public static final int FLAG_SYSTEM_APP = 1; // 0x1 |
| 321 | field public static final int FLAG_WHOLE_ACTIVITY = 2; // 0x2 |
| 322 | field public final java.lang.String[] activities; |
| 323 | field public final int flags; |
| 324 | field public final int maxRevisionCode; |
| 325 | field public final int minRevisionCode; |
| 326 | field public final java.lang.String packageName; |
| 327 | field public final android.content.pm.Signature[] signatures; |
| 328 | } |
| 329 | |
| 330 | public class CarAppBlockingPolicy implements android.os.Parcelable { |
| 331 | ctor public CarAppBlockingPolicy(android.car.content.pm.AppBlockingPackageInfo[], android.car.content.pm.AppBlockingPackageInfo[]); |
| 332 | ctor public CarAppBlockingPolicy(android.os.Parcel); |
| 333 | method public int describeContents(); |
| 334 | method public void writeToParcel(android.os.Parcel, int); |
| 335 | field public static final android.os.Parcelable.Creator<android.car.content.pm.CarAppBlockingPolicy> CREATOR; |
| 336 | field public final android.car.content.pm.AppBlockingPackageInfo[] blacklists; |
| 337 | field public final android.car.content.pm.AppBlockingPackageInfo[] whitelists; |
| 338 | } |
| 339 | |
| 340 | public abstract class CarAppBlockingPolicyService extends android.app.Service { |
| 341 | ctor public CarAppBlockingPolicyService(); |
| 342 | method protected abstract android.car.content.pm.CarAppBlockingPolicy getAppBlockingPolicy(); |
| 343 | method public android.os.IBinder onBind(android.content.Intent); |
| 344 | field public static final java.lang.String SERVICE_INTERFACE = "android.car.content.pm.CarAppBlockingPolicyService"; |
| 345 | } |
| 346 | |
Keun-young Park | 4cf6911 | 2016-10-04 10:02:59 -0700 | [diff] [blame] | 347 | public final class CarPackageManager { |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 348 | 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] | 349 | method public boolean isActivityBackedBySafeActivity(android.content.ComponentName) throws android.car.CarNotConnectedException; |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 350 | method public boolean isServiceAllowedWhileDriving(java.lang.String, java.lang.String) throws android.car.CarNotConnectedException; |
| 351 | method public void setAppBlockingPolicy(java.lang.String, android.car.content.pm.CarAppBlockingPolicy, int) throws android.car.CarNotConnectedException, java.lang.IllegalArgumentException, java.lang.SecurityException; |
| 352 | field public static final int FLAG_SET_POLICY_ADD = 2; // 0x2 |
| 353 | field public static final int FLAG_SET_POLICY_REMOVE = 4; // 0x4 |
| 354 | field public static final int FLAG_SET_POLICY_WAIT_FOR_CHANGE = 1; // 0x1 |
| 355 | } |
| 356 | |
| 357 | } |
| 358 | |
Enrico Granata | 25e8946 | 2017-08-02 11:41:31 -0700 | [diff] [blame] | 359 | package android.car.diagnostic { |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 360 | |
Enrico Granata | ae25b92 | 2017-07-07 11:28:15 -0700 | [diff] [blame] | 361 | public class CarDiagnosticEvent implements android.os.Parcelable { |
| 362 | ctor public CarDiagnosticEvent(android.os.Parcel); |
| 363 | method public int describeContents(); |
| 364 | method public java.lang.Integer getFuelSystemStatus(); |
| 365 | method public java.lang.Integer getFuelType(); |
Enrico Granata | 25e8946 | 2017-08-02 11:41:31 -0700 | [diff] [blame] | 366 | method public android.car.diagnostic.CarDiagnosticEvent.CommonIgnitionMonitors getIgnitionMonitors(); |
Enrico Granata | ae25b92 | 2017-07-07 11:28:15 -0700 | [diff] [blame] | 367 | method public java.lang.Integer getSecondaryAirStatus(); |
| 368 | method public float getSystemFloatSensor(int, float); |
| 369 | method public java.lang.Float getSystemFloatSensor(int); |
| 370 | method public int getSystemIntegerSensor(int, int); |
| 371 | method public java.lang.Integer getSystemIntegerSensor(int); |
| 372 | method public float getVendorFloatSensor(int, float); |
| 373 | method public java.lang.Float getVendorFloatSensor(int); |
| 374 | method public int getVendorIntegerSensor(int, int); |
| 375 | method public java.lang.Integer getVendorIntegerSensor(int); |
Enrico Granata | ae25b92 | 2017-07-07 11:28:15 -0700 | [diff] [blame] | 376 | method public boolean isFreezeFrame(); |
| 377 | method public boolean isLiveFrame(); |
| 378 | method public void writeToJson(android.util.JsonWriter) throws java.io.IOException; |
| 379 | method public void writeToParcel(android.os.Parcel, int); |
Enrico Granata | 25e8946 | 2017-08-02 11:41:31 -0700 | [diff] [blame] | 380 | field public static final android.os.Parcelable.Creator<android.car.diagnostic.CarDiagnosticEvent> CREATOR; |
Enrico Granata | ae25b92 | 2017-07-07 11:28:15 -0700 | [diff] [blame] | 381 | field public final java.lang.String dtc; |
| 382 | field public final int frameType; |
| 383 | field public final long timestamp; |
| 384 | } |
| 385 | |
| 386 | public static class CarDiagnosticEvent.Builder { |
Enrico Granata | 25e8946 | 2017-08-02 11:41:31 -0700 | [diff] [blame] | 387 | method public android.car.diagnostic.CarDiagnosticEvent.Builder atTimestamp(long); |
| 388 | method public android.car.diagnostic.CarDiagnosticEvent build(); |
| 389 | method public static android.car.diagnostic.CarDiagnosticEvent.Builder newFreezeFrameBuilder(); |
| 390 | method public static android.car.diagnostic.CarDiagnosticEvent.Builder newLiveFrameBuilder(); |
| 391 | method public android.car.diagnostic.CarDiagnosticEvent.Builder withDtc(java.lang.String); |
| 392 | method public android.car.diagnostic.CarDiagnosticEvent.Builder withFloatValue(int, float); |
| 393 | method public android.car.diagnostic.CarDiagnosticEvent.Builder withIntValue(int, int); |
Enrico Granata | ae25b92 | 2017-07-07 11:28:15 -0700 | [diff] [blame] | 394 | } |
| 395 | |
Enrico Granata | f874771 | 2017-07-28 15:25:27 -0700 | [diff] [blame] | 396 | public static class CarDiagnosticEvent.CommonIgnitionMonitors { |
Enrico Granata | 25e8946 | 2017-08-02 11:41:31 -0700 | [diff] [blame] | 397 | method public android.car.diagnostic.CarDiagnosticEvent.CompressionIgnitionMonitors asCompressionIgnitionMonitors(); |
| 398 | method public android.car.diagnostic.CarDiagnosticEvent.SparkIgnitionMonitors asSparkIgnitionMonitors(); |
| 399 | field public final android.car.diagnostic.CarDiagnosticEvent.IgnitionMonitor components; |
| 400 | field public final android.car.diagnostic.CarDiagnosticEvent.IgnitionMonitor fuelSystem; |
| 401 | field public final android.car.diagnostic.CarDiagnosticEvent.IgnitionMonitor misfire; |
Enrico Granata | f874771 | 2017-07-28 15:25:27 -0700 | [diff] [blame] | 402 | } |
| 403 | |
Enrico Granata | 25e8946 | 2017-08-02 11:41:31 -0700 | [diff] [blame] | 404 | public static final class CarDiagnosticEvent.CompressionIgnitionMonitors extends android.car.diagnostic.CarDiagnosticEvent.CommonIgnitionMonitors { |
| 405 | field public final android.car.diagnostic.CarDiagnosticEvent.IgnitionMonitor EGROrVVT; |
| 406 | field public final android.car.diagnostic.CarDiagnosticEvent.IgnitionMonitor NMHCCatalyst; |
| 407 | field public final android.car.diagnostic.CarDiagnosticEvent.IgnitionMonitor NOxSCR; |
| 408 | field public final android.car.diagnostic.CarDiagnosticEvent.IgnitionMonitor PMFilter; |
| 409 | field public final android.car.diagnostic.CarDiagnosticEvent.IgnitionMonitor boostPressure; |
| 410 | field public final android.car.diagnostic.CarDiagnosticEvent.IgnitionMonitor exhaustGasSensor; |
Enrico Granata | f874771 | 2017-07-28 15:25:27 -0700 | [diff] [blame] | 411 | } |
| 412 | |
Enrico Granata | ae25b92 | 2017-07-07 11:28:15 -0700 | [diff] [blame] | 413 | public static final class CarDiagnosticEvent.FuelSystemStatus { |
| 414 | field public static final int CLOSED_LOOP = 2; // 0x2 |
| 415 | field public static final int CLOSED_LOOP_BUT_FEEDBACK_FAULT = 16; // 0x10 |
| 416 | field public static final int OPEN_ENGINE_LOAD_OR_DECELERATION = 4; // 0x4 |
| 417 | field public static final int OPEN_INSUFFICIENT_ENGINE_TEMPERATURE = 1; // 0x1 |
| 418 | field public static final int OPEN_SYSTEM_FAILURE = 8; // 0x8 |
| 419 | } |
| 420 | |
| 421 | public static abstract class CarDiagnosticEvent.FuelSystemStatus.Status implements java.lang.annotation.Annotation { |
| 422 | } |
| 423 | |
| 424 | public static final class CarDiagnosticEvent.FuelType { |
| 425 | field public static final int BIFUEL_RUNNING_CNG = 13; // 0xd |
| 426 | field public static final int BIFUEL_RUNNING_DIESEL = 23; // 0x17 |
| 427 | field public static final int BIFUEL_RUNNING_ELECTRIC = 15; // 0xf |
| 428 | field public static final int BIFUEL_RUNNING_ELECTRIC_AND_COMBUSTION = 16; // 0x10 |
| 429 | field public static final int BIFUEL_RUNNING_ETHANOL = 11; // 0xb |
| 430 | field public static final int BIFUEL_RUNNING_GASOLINE = 9; // 0x9 |
| 431 | field public static final int BIFUEL_RUNNING_LPG = 12; // 0xc |
| 432 | field public static final int BIFUEL_RUNNING_METHANOL = 10; // 0xa |
| 433 | field public static final int BIFUEL_RUNNING_PROPANE = 14; // 0xe |
| 434 | field public static final int CNG = 6; // 0x6 |
| 435 | field public static final int DIESEL = 4; // 0x4 |
| 436 | field public static final int ELECTRIC = 8; // 0x8 |
| 437 | field public static final int ETHANOL = 3; // 0x3 |
| 438 | field public static final int GASOLINE = 1; // 0x1 |
| 439 | field public static final int HYBRID_DIESEL = 19; // 0x13 |
| 440 | field public static final int HYBRID_ELECTRIC = 20; // 0x14 |
| 441 | field public static final int HYBRID_ETHANOL = 18; // 0x12 |
| 442 | field public static final int HYBRID_GASOLINE = 17; // 0x11 |
| 443 | field public static final int HYBRID_REGENERATIVE = 22; // 0x16 |
| 444 | field public static final int HYBRID_RUNNING_ELECTRIC_AND_COMBUSTION = 21; // 0x15 |
| 445 | field public static final int LPG = 5; // 0x5 |
| 446 | field public static final int METHANOL = 2; // 0x2 |
| 447 | field public static final int NOT_AVAILABLE = 0; // 0x0 |
| 448 | field public static final int PROPANE = 7; // 0x7 |
| 449 | } |
| 450 | |
| 451 | public static abstract class CarDiagnosticEvent.FuelType.Type implements java.lang.annotation.Annotation { |
| 452 | } |
| 453 | |
Enrico Granata | f874771 | 2017-07-28 15:25:27 -0700 | [diff] [blame] | 454 | public static final class CarDiagnosticEvent.IgnitionMonitor { |
Enrico Granata | ae25b92 | 2017-07-07 11:28:15 -0700 | [diff] [blame] | 455 | field public final boolean available; |
| 456 | field public final boolean incomplete; |
| 457 | } |
| 458 | |
Enrico Granata | ae25b92 | 2017-07-07 11:28:15 -0700 | [diff] [blame] | 459 | public static final class CarDiagnosticEvent.SecondaryAirStatus { |
| 460 | field public static final int DOWNSTREAM_OF_CATALYCIC_CONVERTER = 2; // 0x2 |
| 461 | field public static final int FROM_OUTSIDE_OR_OFF = 4; // 0x4 |
| 462 | field public static final int PUMP_ON_FOR_DIAGNOSTICS = 8; // 0x8 |
| 463 | field public static final int UPSTREAM = 1; // 0x1 |
| 464 | } |
| 465 | |
| 466 | public static abstract class CarDiagnosticEvent.SecondaryAirStatus.Status implements java.lang.annotation.Annotation { |
| 467 | } |
| 468 | |
Enrico Granata | 25e8946 | 2017-08-02 11:41:31 -0700 | [diff] [blame] | 469 | public static final class CarDiagnosticEvent.SparkIgnitionMonitors extends android.car.diagnostic.CarDiagnosticEvent.CommonIgnitionMonitors { |
| 470 | field public final android.car.diagnostic.CarDiagnosticEvent.IgnitionMonitor ACRefrigerant; |
| 471 | field public final android.car.diagnostic.CarDiagnosticEvent.IgnitionMonitor EGR; |
| 472 | field public final android.car.diagnostic.CarDiagnosticEvent.IgnitionMonitor catalyst; |
| 473 | field public final android.car.diagnostic.CarDiagnosticEvent.IgnitionMonitor evaporativeSystem; |
| 474 | field public final android.car.diagnostic.CarDiagnosticEvent.IgnitionMonitor heatedCatalyst; |
| 475 | field public final android.car.diagnostic.CarDiagnosticEvent.IgnitionMonitor oxygenSensor; |
| 476 | field public final android.car.diagnostic.CarDiagnosticEvent.IgnitionMonitor oxygenSensorHeater; |
| 477 | field public final android.car.diagnostic.CarDiagnosticEvent.IgnitionMonitor secondaryAirSystem; |
Enrico Granata | f874771 | 2017-07-28 15:25:27 -0700 | [diff] [blame] | 478 | } |
| 479 | |
Enrico Granata | ae25b92 | 2017-07-07 11:28:15 -0700 | [diff] [blame] | 480 | public final class CarDiagnosticManager { |
Enrico Granata | ae25b92 | 2017-07-07 11:28:15 -0700 | [diff] [blame] | 481 | method public boolean clearFreezeFrames(long...) throws android.car.CarNotConnectedException; |
Enrico Granata | 25e8946 | 2017-08-02 11:41:31 -0700 | [diff] [blame] | 482 | method public android.car.diagnostic.CarDiagnosticEvent getFreezeFrame(long) throws android.car.CarNotConnectedException; |
Enrico Granata | ae25b92 | 2017-07-07 11:28:15 -0700 | [diff] [blame] | 483 | method public long[] getFreezeFrameTimestamps() throws android.car.CarNotConnectedException; |
Enrico Granata | 25e8946 | 2017-08-02 11:41:31 -0700 | [diff] [blame] | 484 | method public android.car.diagnostic.CarDiagnosticEvent getLatestLiveFrame() throws android.car.CarNotConnectedException; |
Enrico Granata | 2e3b49a | 2017-07-27 14:51:52 -0700 | [diff] [blame] | 485 | method public boolean isClearFreezeFramesSupported() throws android.car.CarNotConnectedException; |
| 486 | method public boolean isFreezeFrameNotificationSupported() throws android.car.CarNotConnectedException; |
| 487 | method public boolean isGetFreezeFrameSupported() throws android.car.CarNotConnectedException; |
Enrico Granata | ae25b92 | 2017-07-07 11:28:15 -0700 | [diff] [blame] | 488 | method public boolean isLiveFrameSupported() throws android.car.CarNotConnectedException; |
Enrico Granata | 57ec270 | 2017-08-11 11:06:35 -0700 | [diff] [blame] | 489 | method public boolean isSelectiveClearFreezeFramesSupported() throws android.car.CarNotConnectedException; |
Enrico Granata | ae25b92 | 2017-07-07 11:28:15 -0700 | [diff] [blame] | 490 | method public void onCarDisconnected(); |
Enrico Granata | 25e8946 | 2017-08-02 11:41:31 -0700 | [diff] [blame] | 491 | method public boolean registerListener(android.car.diagnostic.CarDiagnosticManager.OnDiagnosticEventListener, int, int) throws android.car.CarNotConnectedException, java.lang.IllegalArgumentException; |
| 492 | method public void unregisterListener(android.car.diagnostic.CarDiagnosticManager.OnDiagnosticEventListener); |
Enrico Granata | ae25b92 | 2017-07-07 11:28:15 -0700 | [diff] [blame] | 493 | field public static final int FRAME_TYPE_FREEZE = 1; // 0x1 |
| 494 | field public static final int FRAME_TYPE_LIVE = 0; // 0x0 |
| 495 | } |
| 496 | |
| 497 | public static abstract class CarDiagnosticManager.FrameType implements java.lang.annotation.Annotation { |
| 498 | } |
| 499 | |
| 500 | public static abstract interface CarDiagnosticManager.OnDiagnosticEventListener { |
Enrico Granata | 25e8946 | 2017-08-02 11:41:31 -0700 | [diff] [blame] | 501 | method public abstract void onDiagnosticEvent(android.car.diagnostic.CarDiagnosticEvent); |
Enrico Granata | ae25b92 | 2017-07-07 11:28:15 -0700 | [diff] [blame] | 502 | } |
| 503 | |
Enrico Granata | 25e8946 | 2017-08-02 11:41:31 -0700 | [diff] [blame] | 504 | public final class FloatSensorIndex { |
| 505 | field public static final int ABSOLUTE_EVAPORATION_SYSTEM_VAPOR_PRESSURE = 58; // 0x3a |
| 506 | field public static final int ABSOLUTE_LOAD_VALUE = 48; // 0x30 |
| 507 | field public static final int ABSOLUTE_THROTTLE_POSITION_B = 51; // 0x33 |
| 508 | field public static final int ABSOLUTE_THROTTLE_POSITION_C = 52; // 0x34 |
| 509 | field public static final int ACCELERATOR_PEDAL_POSITION_D = 53; // 0x35 |
| 510 | field public static final int ACCELERATOR_PEDAL_POSITION_E = 54; // 0x36 |
| 511 | field public static final int ACCELERATOR_PEDAL_POSITION_F = 55; // 0x37 |
| 512 | field public static final int CALCULATED_ENGINE_LOAD = 0; // 0x0 |
| 513 | field public static final int CATALYST_TEMPERATURE_BANK1_SENSOR1 = 44; // 0x2c |
| 514 | field public static final int CATALYST_TEMPERATURE_BANK1_SENSOR2 = 46; // 0x2e |
| 515 | field public static final int CATALYST_TEMPERATURE_BANK2_SENSOR1 = 45; // 0x2d |
| 516 | field public static final int CATALYST_TEMPERATURE_BANK2_SENSOR2 = 47; // 0x2f |
| 517 | field public static final int COMMANDED_EVAPORATIVE_PURGE = 41; // 0x29 |
| 518 | field public static final int COMMANDED_EXHAUST_GAS_RECIRCULATION = 39; // 0x27 |
| 519 | field public static final int COMMANDED_THROTTLE_ACTUATOR = 56; // 0x38 |
| 520 | field public static final int ENGINE_COOLANT_TEMPERATURE = 1; // 0x1 |
| 521 | field public static final int ENGINE_FUEL_RATE = 70; // 0x46 |
| 522 | field public static final int ENGINE_RPM = 8; // 0x8 |
| 523 | field public static final int ETHANOL_FUEL_PERCENTAGE = 57; // 0x39 |
| 524 | field public static final int EVAPORATION_SYSTEM_VAPOR_PRESSURE = 43; // 0x2b |
| 525 | field public static final int EXHAUST_GAS_RECIRCULATION_ERROR = 40; // 0x28 |
| 526 | field public static final int FUEL_AIR_COMMANDED_EQUIVALENCE_RATIO = 49; // 0x31 |
| 527 | field public static final int FUEL_INJECTION_TIMING = 69; // 0x45 |
| 528 | field public static final int FUEL_PRESSURE = 6; // 0x6 |
| 529 | field public static final int FUEL_RAIL_GAUGE_PRESSURE = 38; // 0x26 |
| 530 | field public static final int FUEL_RAIL_PRESSURE = 37; // 0x25 |
| 531 | field public static final int FUEL_TANK_LEVEL_INPUT = 42; // 0x2a |
| 532 | field public static final int HYBRID_BATTERY_PACK_REMAINING_LIFE = 68; // 0x44 |
| 533 | field public static final int INTAKE_MANIFOLD_ABSOLUTE_PRESSURE = 7; // 0x7 |
| 534 | field public static final int LAST_SYSTEM = 70; // 0x46 |
| 535 | field public static final int LONG_TERM_FUEL_TRIM_BANK1 = 3; // 0x3 |
| 536 | field public static final int LONG_TERM_FUEL_TRIM_BANK2 = 5; // 0x5 |
| 537 | field public static final int LONG_TERM_SECONDARY_OXYGEN_SENSOR_TRIM_BANK1 = 63; // 0x3f |
| 538 | field public static final int LONG_TERM_SECONDARY_OXYGEN_SENSOR_TRIM_BANK2 = 64; // 0x40 |
| 539 | field public static final int LONG_TERM_SECONDARY_OXYGEN_SENSOR_TRIM_BANK3 = 65; // 0x41 |
| 540 | field public static final int LONG_TERM_SECONDARY_OXYGEN_SENSOR_TRIM_BANK4 = 66; // 0x42 |
| 541 | field public static final int MAF_AIR_FLOW_RATE = 11; // 0xb |
| 542 | field public static final int OXYGEN_SENSOR1_FUEL_AIR_EQUIVALENCE_RATIO = 15; // 0xf |
| 543 | field public static final int OXYGEN_SENSOR1_SHORT_TERM_FUEL_TRIM = 14; // 0xe |
| 544 | field public static final int OXYGEN_SENSOR1_VOLTAGE = 13; // 0xd |
| 545 | field public static final int OXYGEN_SENSOR2_FUEL_AIR_EQUIVALENCE_RATIO = 18; // 0x12 |
| 546 | field public static final int OXYGEN_SENSOR2_SHORT_TERM_FUEL_TRIM = 17; // 0x11 |
| 547 | field public static final int OXYGEN_SENSOR2_VOLTAGE = 16; // 0x10 |
| 548 | field public static final int OXYGEN_SENSOR3_FUEL_AIR_EQUIVALENCE_RATIO = 21; // 0x15 |
| 549 | field public static final int OXYGEN_SENSOR3_SHORT_TERM_FUEL_TRIM = 20; // 0x14 |
| 550 | field public static final int OXYGEN_SENSOR3_VOLTAGE = 19; // 0x13 |
| 551 | field public static final int OXYGEN_SENSOR4_FUEL_AIR_EQUIVALENCE_RATIO = 24; // 0x18 |
| 552 | field public static final int OXYGEN_SENSOR4_SHORT_TERM_FUEL_TRIM = 23; // 0x17 |
| 553 | field public static final int OXYGEN_SENSOR4_VOLTAGE = 22; // 0x16 |
| 554 | field public static final int OXYGEN_SENSOR5_FUEL_AIR_EQUIVALENCE_RATIO = 27; // 0x1b |
| 555 | field public static final int OXYGEN_SENSOR5_SHORT_TERM_FUEL_TRIM = 26; // 0x1a |
| 556 | field public static final int OXYGEN_SENSOR5_VOLTAGE = 25; // 0x19 |
| 557 | field public static final int OXYGEN_SENSOR6_FUEL_AIR_EQUIVALENCE_RATIO = 30; // 0x1e |
| 558 | field public static final int OXYGEN_SENSOR6_SHORT_TERM_FUEL_TRIM = 29; // 0x1d |
| 559 | field public static final int OXYGEN_SENSOR6_VOLTAGE = 28; // 0x1c |
| 560 | field public static final int OXYGEN_SENSOR7_FUEL_AIR_EQUIVALENCE_RATIO = 33; // 0x21 |
| 561 | field public static final int OXYGEN_SENSOR7_SHORT_TERM_FUEL_TRIM = 32; // 0x20 |
| 562 | field public static final int OXYGEN_SENSOR7_VOLTAGE = 31; // 0x1f |
| 563 | field public static final int OXYGEN_SENSOR8_FUEL_AIR_EQUIVALENCE_RATIO = 36; // 0x24 |
| 564 | field public static final int OXYGEN_SENSOR8_SHORT_TERM_FUEL_TRIM = 35; // 0x23 |
| 565 | field public static final int OXYGEN_SENSOR8_VOLTAGE = 34; // 0x22 |
| 566 | field public static final int RELATIVE_ACCELERATOR_PEDAL_POSITION = 67; // 0x43 |
| 567 | field public static final int RELATIVE_THROTTLE_POSITION = 50; // 0x32 |
| 568 | field public static final int SHORT_TERM_FUEL_TRIM_BANK1 = 2; // 0x2 |
| 569 | field public static final int SHORT_TERM_FUEL_TRIM_BANK2 = 4; // 0x4 |
| 570 | field public static final int SHORT_TERM_SECONDARY_OXYGEN_SENSOR_TRIM_BANK1 = 59; // 0x3b |
| 571 | field public static final int SHORT_TERM_SECONDARY_OXYGEN_SENSOR_TRIM_BANK2 = 60; // 0x3c |
| 572 | field public static final int SHORT_TERM_SECONDARY_OXYGEN_SENSOR_TRIM_BANK3 = 61; // 0x3d |
| 573 | field public static final int SHORT_TERM_SECONDARY_OXYGEN_SENSOR_TRIM_BANK4 = 62; // 0x3e |
| 574 | field public static final int THROTTLE_POSITION = 12; // 0xc |
| 575 | field public static final int TIMING_ADVANCE = 10; // 0xa |
| 576 | field public static final int VEHICLE_SPEED = 9; // 0x9 |
| 577 | field public static final int VENDOR_START = 71; // 0x47 |
| 578 | } |
| 579 | |
| 580 | public final class IntegerSensorIndex { |
| 581 | field public static final int ABSOLUTE_BAROMETRIC_PRESSURE = 11; // 0xb |
| 582 | field public static final int AMBIENT_AIR_TEMPERATURE = 13; // 0xd |
| 583 | field public static final int COMMANDED_SECONDARY_AIR_STATUS = 5; // 0x5 |
| 584 | field public static final int CONTROL_MODULE_VOLTAGE = 12; // 0xc |
| 585 | field public static final int DISTANCE_TRAVELED_SINCE_CODES_CLEARED = 10; // 0xa |
| 586 | field public static final int DISTANCE_TRAVELED_WITH_MALFUNCTION_INDICATOR_LIGHT_ON = 8; // 0x8 |
| 587 | field public static final int DRIVER_DEMAND_PERCENT_TORQUE = 24; // 0x18 |
| 588 | field public static final int ENGINE_ACTUAL_PERCENT_TORQUE = 25; // 0x19 |
| 589 | field public static final int ENGINE_OIL_TEMPERATURE = 23; // 0x17 |
| 590 | field public static final int ENGINE_PERCENT_TORQUE_DATA_IDLE = 27; // 0x1b |
| 591 | field public static final int ENGINE_PERCENT_TORQUE_DATA_POINT1 = 28; // 0x1c |
| 592 | field public static final int ENGINE_PERCENT_TORQUE_DATA_POINT2 = 29; // 0x1d |
| 593 | field public static final int ENGINE_PERCENT_TORQUE_DATA_POINT3 = 30; // 0x1e |
| 594 | field public static final int ENGINE_PERCENT_TORQUE_DATA_POINT4 = 31; // 0x1f |
| 595 | field public static final int ENGINE_REFERENCE_PERCENT_TORQUE = 26; // 0x1a |
| 596 | field public static final int FUEL_RAIL_ABSOLUTE_PRESSURE = 22; // 0x16 |
| 597 | field public static final int FUEL_SYSTEM_STATUS = 0; // 0x0 |
| 598 | field public static final int FUEL_TYPE = 21; // 0x15 |
| 599 | field public static final int IGNITION_MONITORS_SUPPORTED = 2; // 0x2 |
| 600 | field public static final int IGNITION_SPECIFIC_MONITORS = 3; // 0x3 |
| 601 | field public static final int INTAKE_AIR_TEMPERATURE = 4; // 0x4 |
| 602 | field public static final int LAST_SYSTEM = 31; // 0x1f |
| 603 | field public static final int MALFUNCTION_INDICATOR_LIGHT_ON = 1; // 0x1 |
| 604 | field public static final int MAX_AIR_FLOW_RATE_FROM_MASS_AIR_FLOW_SENSOR = 20; // 0x14 |
| 605 | field public static final int MAX_FUEL_AIR_EQUIVALENCE_RATIO = 16; // 0x10 |
| 606 | field public static final int MAX_INTAKE_MANIFOLD_ABSOLUTE_PRESSURE = 19; // 0x13 |
| 607 | field public static final int MAX_OXYGEN_SENSOR_CURRENT = 18; // 0x12 |
| 608 | field public static final int MAX_OXYGEN_SENSOR_VOLTAGE = 17; // 0x11 |
| 609 | field public static final int NUM_OXYGEN_SENSORS_PRESENT = 6; // 0x6 |
| 610 | field public static final int RUNTIME_SINCE_ENGINE_START = 7; // 0x7 |
| 611 | field public static final int TIME_SINCE_TROUBLE_CODES_CLEARED = 15; // 0xf |
| 612 | field public static final int TIME_WITH_MALFUNCTION_LIGHT_ON = 14; // 0xe |
| 613 | field public static final int VENDOR_START = 32; // 0x20 |
| 614 | field public static final int WARMUPS_SINCE_CODES_CLEARED = 9; // 0x9 |
| 615 | } |
| 616 | |
| 617 | } |
| 618 | |
| 619 | package android.car.hardware { |
| 620 | |
Keun-young Park | 6089156 | 2016-09-28 11:16:02 -0700 | [diff] [blame] | 621 | public class CarPropertyConfig<T> implements android.os.Parcelable { |
Steve Paik | fb5f623 | 2016-03-28 10:31:25 -0700 | [diff] [blame] | 622 | method public int describeContents(); |
| 623 | method public int getAreaCount(); |
| 624 | method public int[] getAreaIds(); |
| 625 | method public int getAreaType(); |
| 626 | method public int getFirstAndOnlyAreaId(); |
| 627 | method public T getMaxValue(int); |
| 628 | method public T getMaxValue(); |
| 629 | method public T getMinValue(int); |
| 630 | method public T getMinValue(); |
| 631 | method public int getPropertyId(); |
| 632 | method public java.lang.Class<T> getPropertyType(); |
| 633 | method public boolean hasArea(int); |
| 634 | method public boolean isGlobalProperty(); |
Keun-young Park | 6089156 | 2016-09-28 11:16:02 -0700 | [diff] [blame] | 635 | method public static <T> android.car.hardware.CarPropertyConfig.Builder<T> newBuilder(java.lang.Class<T>, int, int, int); |
| 636 | method public static <T> android.car.hardware.CarPropertyConfig.Builder<T> newBuilder(java.lang.Class<T>, int, int); |
Steve Paik | fb5f623 | 2016-03-28 10:31:25 -0700 | [diff] [blame] | 637 | method public void writeToParcel(android.os.Parcel, int); |
| 638 | field public static final android.os.Parcelable.Creator<android.car.hardware.CarPropertyConfig> CREATOR; |
| 639 | } |
| 640 | |
Keun-young Park | 6089156 | 2016-09-28 11:16:02 -0700 | [diff] [blame] | 641 | public static class CarPropertyConfig.AreaConfig<T> implements android.os.Parcelable { |
Steve Paik | fb5f623 | 2016-03-28 10:31:25 -0700 | [diff] [blame] | 642 | method public int describeContents(); |
| 643 | method public T getMaxValue(); |
| 644 | method public T getMinValue(); |
| 645 | method public void writeToParcel(android.os.Parcel, int); |
| 646 | field public static final android.os.Parcelable.Creator<android.car.hardware.CarPropertyConfig.AreaConfig<java.lang.Object>> CREATOR; |
| 647 | } |
| 648 | |
Keun-young Park | 6089156 | 2016-09-28 11:16:02 -0700 | [diff] [blame] | 649 | public static class CarPropertyConfig.Builder<T> { |
Steve Paik | fb5f623 | 2016-03-28 10:31:25 -0700 | [diff] [blame] | 650 | method public android.car.hardware.CarPropertyConfig.Builder<T> addArea(int); |
| 651 | method public android.car.hardware.CarPropertyConfig.Builder<T> addAreaConfig(int, T, T); |
| 652 | method public android.car.hardware.CarPropertyConfig.Builder<T> addAreas(int[]); |
| 653 | method public android.car.hardware.CarPropertyConfig<T> build(); |
| 654 | } |
| 655 | |
Keun-young Park | 6089156 | 2016-09-28 11:16:02 -0700 | [diff] [blame] | 656 | public class CarPropertyValue<T> implements android.os.Parcelable { |
Steve Paik | fb5f623 | 2016-03-28 10:31:25 -0700 | [diff] [blame] | 657 | ctor public CarPropertyValue(int, T); |
| 658 | ctor public CarPropertyValue(int, int, T); |
| 659 | ctor public CarPropertyValue(android.os.Parcel); |
| 660 | method public int describeContents(); |
| 661 | method public int getAreaId(); |
| 662 | method public int getPropertyId(); |
| 663 | method public T getValue(); |
| 664 | method public void writeToParcel(android.os.Parcel, int); |
| 665 | field public static final android.os.Parcelable.Creator<android.car.hardware.CarPropertyValue> CREATOR; |
| 666 | } |
| 667 | |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 668 | public class CarSensorEvent implements android.os.Parcelable { |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 669 | method public int describeContents(); |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 670 | method public void writeToParcel(android.os.Parcel, int); |
| 671 | field public static final android.os.Parcelable.Creator<android.car.hardware.CarSensorEvent> CREATOR; |
| 672 | field public static final int DRIVE_STATUS_FULLY_RESTRICTED = 31; // 0x1f |
| 673 | field public static final int DRIVE_STATUS_LIMIT_MESSAGE_LEN = 16; // 0x10 |
| 674 | field public static final int DRIVE_STATUS_NO_CONFIG = 8; // 0x8 |
| 675 | field public static final int DRIVE_STATUS_NO_KEYBOARD_INPUT = 2; // 0x2 |
| 676 | field public static final int DRIVE_STATUS_NO_VIDEO = 1; // 0x1 |
| 677 | field public static final int DRIVE_STATUS_NO_VOICE_INPUT = 4; // 0x4 |
| 678 | field public static final int DRIVE_STATUS_UNRESTRICTED = 0; // 0x0 |
| 679 | field public static final int GEAR_DRIVE = 100; // 0x64 |
| 680 | field public static final int GEAR_EIGHTH = 8; // 0x8 |
| 681 | field public static final int GEAR_FIFTH = 5; // 0x5 |
| 682 | field public static final int GEAR_FIRST = 1; // 0x1 |
| 683 | field public static final int GEAR_FOURTH = 4; // 0x4 |
| 684 | field public static final int GEAR_NEUTRAL = 0; // 0x0 |
| 685 | field public static final int GEAR_NINTH = 9; // 0x9 |
| 686 | field public static final int GEAR_PARK = 101; // 0x65 |
| 687 | field public static final int GEAR_REVERSE = 102; // 0x66 |
| 688 | field public static final int GEAR_SECOND = 2; // 0x2 |
| 689 | field public static final int GEAR_SEVENTH = 7; // 0x7 |
| 690 | field public static final int GEAR_SIXTH = 6; // 0x6 |
| 691 | field public static final int GEAR_TENTH = 10; // 0xa |
| 692 | field public static final int GEAR_THIRD = 3; // 0x3 |
Pavel Maltsev | 1e5a88b | 2016-12-15 17:51:29 -0800 | [diff] [blame] | 693 | field public static final int IGNITION_STATE_ACC = 3; // 0x3 |
| 694 | field public static final int IGNITION_STATE_LOCK = 1; // 0x1 |
| 695 | field public static final int IGNITION_STATE_OFF = 2; // 0x2 |
| 696 | field public static final int IGNITION_STATE_ON = 4; // 0x4 |
| 697 | field public static final int IGNITION_STATE_START = 5; // 0x5 |
| 698 | field public static final int IGNITION_STATE_UNDEFINED = 0; // 0x0 |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 699 | field public static final int INDEX_ENVIRONMENT_PRESSURE = 1; // 0x1 |
| 700 | field public static final int INDEX_ENVIRONMENT_TEMPERATURE = 0; // 0x0 |
| 701 | field public static final int INDEX_FUEL_LEVEL_IN_DISTANCE = 1; // 0x1 |
| 702 | field public static final int INDEX_FUEL_LEVEL_IN_PERCENTILE = 0; // 0x0 |
| 703 | field public static final int INDEX_FUEL_LOW_WARNING = 0; // 0x0 |
Steve Paik | 289ab99 | 2017-07-11 22:40:57 -0700 | [diff] [blame] | 704 | field public static final int INDEX_WHEEL_DISTANCE_FRONT_LEFT = 1; // 0x1 |
| 705 | field public static final int INDEX_WHEEL_DISTANCE_FRONT_RIGHT = 2; // 0x2 |
| 706 | field public static final int INDEX_WHEEL_DISTANCE_REAR_LEFT = 4; // 0x4 |
| 707 | field public static final int INDEX_WHEEL_DISTANCE_REAR_RIGHT = 3; // 0x3 |
| 708 | field public static final int INDEX_WHEEL_DISTANCE_RESET_COUNT = 0; // 0x0 |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 709 | field public final float[] floatValues; |
| 710 | field public final int[] intValues; |
Steve Paik | 289ab99 | 2017-07-11 22:40:57 -0700 | [diff] [blame] | 711 | field public final long[] longValues; |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 712 | field public int sensorType; |
Jason Tholstrup | d72b535 | 2016-09-22 16:32:14 -0700 | [diff] [blame] | 713 | field public long timestamp; |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 714 | } |
| 715 | |
| 716 | public static class CarSensorEvent.EnvironmentData { |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 717 | field public float pressure; |
| 718 | field public float temperature; |
Jason Tholstrup | d72b535 | 2016-09-22 16:32:14 -0700 | [diff] [blame] | 719 | field public long timestamp; |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 720 | } |
| 721 | |
Keun-young Park | 4cf6911 | 2016-10-04 10:02:59 -0700 | [diff] [blame] | 722 | public final class CarSensorManager { |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 723 | method public android.car.hardware.CarSensorEvent getLatestSensorEvent(int) throws android.car.CarNotConnectedException; |
| 724 | method public int[] getSupportedSensors() throws android.car.CarNotConnectedException; |
| 725 | method public boolean isSensorSupported(int) throws android.car.CarNotConnectedException; |
| 726 | method public static boolean isSensorSupported(int[], int); |
Jason Tholstrup | d72b535 | 2016-09-22 16:32:14 -0700 | [diff] [blame] | 727 | method public boolean registerListener(android.car.hardware.CarSensorManager.OnSensorChangedListener, int, int) throws android.car.CarNotConnectedException, java.lang.IllegalArgumentException; |
Keun-young Park | 150d8de | 2016-10-07 15:48:11 -0700 | [diff] [blame] | 728 | method public void unregisterListener(android.car.hardware.CarSensorManager.OnSensorChangedListener); |
| 729 | method public void unregisterListener(android.car.hardware.CarSensorManager.OnSensorChangedListener, int); |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 730 | field public static final int SENSOR_RATE_FAST = 1; // 0x1 |
| 731 | field public static final int SENSOR_RATE_FASTEST = 0; // 0x0 |
| 732 | field public static final int SENSOR_RATE_NORMAL = 3; // 0x3 |
| 733 | field public static final int SENSOR_RATE_UI = 2; // 0x2 |
Steve Paik | 289ab99 | 2017-07-11 22:40:57 -0700 | [diff] [blame] | 734 | field public static final int SENSOR_TYPE_ABS_ACTIVE = 24; // 0x18 |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 735 | field public static final int SENSOR_TYPE_CAR_SPEED = 2; // 0x2 |
Jason Tholstrup | 9eae32f | 2016-05-10 14:39:05 -0700 | [diff] [blame] | 736 | field public static final int SENSOR_TYPE_DRIVING_STATUS = 11; // 0xb |
| 737 | field public static final int SENSOR_TYPE_ENVIRONMENT = 12; // 0xc |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 738 | field public static final int SENSOR_TYPE_FUEL_LEVEL = 5; // 0x5 |
| 739 | field public static final int SENSOR_TYPE_GEAR = 7; // 0x7 |
Pavel Maltsev | 1e5a88b | 2016-12-15 17:51:29 -0800 | [diff] [blame] | 740 | field public static final int SENSOR_TYPE_IGNITION_STATE = 22; // 0x16 |
Jason Tholstrup | 9eae32f | 2016-05-10 14:39:05 -0700 | [diff] [blame] | 741 | field public static final int SENSOR_TYPE_NIGHT = 9; // 0x9 |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 742 | field public static final int SENSOR_TYPE_ODOMETER = 4; // 0x4 |
| 743 | field public static final int SENSOR_TYPE_PARKING_BRAKE = 6; // 0x6 |
| 744 | field public static final int SENSOR_TYPE_RPM = 3; // 0x3 |
Steve Paik | 289ab99 | 2017-07-11 22:40:57 -0700 | [diff] [blame] | 745 | field public static final int SENSOR_TYPE_TRACTION_CONTROL_ACTIVE = 25; // 0x19 |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 746 | field public static final int SENSOR_TYPE_VENDOR_EXTENSION_END = 1879048191; // 0x6fffffff |
Steve Paik | 289ab99 | 2017-07-11 22:40:57 -0700 | [diff] [blame] | 747 | field public static final int SENSOR_TYPE_WHEEL_TICK_DISTANCE = 23; // 0x17 |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 748 | } |
| 749 | |
Jason Tholstrup | d72b535 | 2016-09-22 16:32:14 -0700 | [diff] [blame] | 750 | public static abstract interface CarSensorManager.OnSensorChangedListener { |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 751 | method public abstract void onSensorChanged(android.car.hardware.CarSensorEvent); |
| 752 | } |
| 753 | |
Keun-young Park | 4cf6911 | 2016-10-04 10:02:59 -0700 | [diff] [blame] | 754 | public final class CarVendorExtensionManager { |
Keun-young Park | 6089156 | 2016-09-28 11:16:02 -0700 | [diff] [blame] | 755 | method public <E> E getGlobalProperty(java.lang.Class<E>, int) throws android.car.CarNotConnectedException; |
Pavel Maltsev | 634e1ff | 2016-07-14 15:41:26 -0700 | [diff] [blame] | 756 | method public java.util.List<android.car.hardware.CarPropertyConfig> getProperties() throws android.car.CarNotConnectedException; |
Keun-young Park | 6089156 | 2016-09-28 11:16:02 -0700 | [diff] [blame] | 757 | method public <E> E getProperty(java.lang.Class<E>, int, int) throws android.car.CarNotConnectedException; |
Keun-young Park | af2cc99 | 2016-10-07 11:46:45 -0700 | [diff] [blame] | 758 | method public void registerCallback(android.car.hardware.CarVendorExtensionManager.CarVendorExtensionCallback) throws android.car.CarNotConnectedException; |
Keun-young Park | 6089156 | 2016-09-28 11:16:02 -0700 | [diff] [blame] | 759 | method public <E> void setGlobalProperty(java.lang.Class<E>, int, E) throws android.car.CarNotConnectedException; |
| 760 | method public <E> void setProperty(java.lang.Class<E>, int, int, E) throws android.car.CarNotConnectedException; |
Keun-young Park | 150d8de | 2016-10-07 15:48:11 -0700 | [diff] [blame] | 761 | method public void unregisterCallback(android.car.hardware.CarVendorExtensionManager.CarVendorExtensionCallback); |
Pavel Maltsev | 634e1ff | 2016-07-14 15:41:26 -0700 | [diff] [blame] | 762 | } |
| 763 | |
Keun-young Park | af2cc99 | 2016-10-07 11:46:45 -0700 | [diff] [blame] | 764 | public static abstract interface CarVendorExtensionManager.CarVendorExtensionCallback { |
Pavel Maltsev | 634e1ff | 2016-07-14 15:41:26 -0700 | [diff] [blame] | 765 | method public abstract void onChangeEvent(android.car.hardware.CarPropertyValue); |
| 766 | method public abstract void onErrorEvent(int, int); |
| 767 | } |
| 768 | |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 769 | } |
| 770 | |
Steve Paik | 43c04a7 | 2016-07-08 19:12:09 -0700 | [diff] [blame] | 771 | package android.car.hardware.cabin { |
| 772 | |
Keun-young Park | 4cf6911 | 2016-10-04 10:02:59 -0700 | [diff] [blame] | 773 | public final class CarCabinManager { |
Steve Paik | 43c04a7 | 2016-07-08 19:12:09 -0700 | [diff] [blame] | 774 | method public boolean getBooleanProperty(int, int) throws android.car.CarNotConnectedException; |
| 775 | method public float getFloatProperty(int, int) throws android.car.CarNotConnectedException; |
| 776 | method public int getIntProperty(int, int) throws android.car.CarNotConnectedException; |
| 777 | method public java.util.List<android.car.hardware.CarPropertyConfig> getPropertyList() throws android.car.CarNotConnectedException; |
| 778 | method public static boolean isZonedProperty(int); |
Keun-young Park | af2cc99 | 2016-10-07 11:46:45 -0700 | [diff] [blame] | 779 | method public synchronized void registerCallback(android.car.hardware.cabin.CarCabinManager.CarCabinEventCallback) throws android.car.CarNotConnectedException; |
Steve Paik | 43c04a7 | 2016-07-08 19:12:09 -0700 | [diff] [blame] | 780 | method public void setBooleanProperty(int, int, boolean) throws android.car.CarNotConnectedException; |
| 781 | method public void setFloatProperty(int, int, float) throws android.car.CarNotConnectedException; |
| 782 | method public void setIntProperty(int, int, int) throws android.car.CarNotConnectedException; |
Keun-young Park | 150d8de | 2016-10-07 15:48:11 -0700 | [diff] [blame] | 783 | method public synchronized void unregisterCallback(android.car.hardware.cabin.CarCabinManager.CarCabinEventCallback); |
Keun-young Park | af2cc99 | 2016-10-07 11:46:45 -0700 | [diff] [blame] | 784 | field public static final int ID_DOOR_LOCK = 3; // 0x3 |
| 785 | field public static final int ID_DOOR_MOVE = 2; // 0x2 |
| 786 | field public static final int ID_DOOR_POS = 1; // 0x1 |
| 787 | field public static final int ID_MIRROR_FOLD = 4102; // 0x1006 |
| 788 | field public static final int ID_MIRROR_LOCK = 4101; // 0x1005 |
| 789 | field public static final int ID_MIRROR_Y_MOVE = 4100; // 0x1004 |
| 790 | field public static final int ID_MIRROR_Y_POS = 4099; // 0x1003 |
| 791 | field public static final int ID_MIRROR_Z_MOVE = 4098; // 0x1002 |
| 792 | field public static final int ID_MIRROR_Z_POS = 4097; // 0x1001 |
| 793 | field public static final int ID_SEAT_BACKREST_ANGLE_1_MOVE = 8201; // 0x2009 |
| 794 | field public static final int ID_SEAT_BACKREST_ANGLE_1_POS = 8200; // 0x2008 |
| 795 | field public static final int ID_SEAT_BACKREST_ANGLE_2_MOVE = 8203; // 0x200b |
| 796 | field public static final int ID_SEAT_BACKREST_ANGLE_2_POS = 8202; // 0x200a |
| 797 | field public static final int ID_SEAT_BELT_BUCKLED = 8195; // 0x2003 |
| 798 | field public static final int ID_SEAT_BELT_HEIGHT_MOVE = 8197; // 0x2005 |
| 799 | field public static final int ID_SEAT_BELT_HEIGHT_POS = 8196; // 0x2004 |
| 800 | field public static final int ID_SEAT_DEPTH_MOVE = 8207; // 0x200f |
| 801 | field public static final int ID_SEAT_DEPTH_POS = 8206; // 0x200e |
| 802 | field public static final int ID_SEAT_FORE_AFT_MOVE = 8199; // 0x2007 |
| 803 | field public static final int ID_SEAT_FORE_AFT_POS = 8198; // 0x2006 |
| 804 | field public static final int ID_SEAT_HEADREST_ANGLE_MOVE = 8217; // 0x2019 |
| 805 | field public static final int ID_SEAT_HEADREST_ANGLE_POS = 8216; // 0x2018 |
| 806 | field public static final int ID_SEAT_HEADREST_FORE_AFT_MOVE = 8219; // 0x201b |
| 807 | field public static final int ID_SEAT_HEADREST_FORE_AFT_POS = 8218; // 0x201a |
| 808 | field public static final int ID_SEAT_HEADREST_HEIGHT_MOVE = 8215; // 0x2017 |
| 809 | field public static final int ID_SEAT_HEADREST_HEIGHT_POS = 8214; // 0x2016 |
| 810 | field public static final int ID_SEAT_HEIGHT_MOVE = 8205; // 0x200d |
| 811 | field public static final int ID_SEAT_HEIGHT_POS = 8204; // 0x200c |
| 812 | field public static final int ID_SEAT_LUMBAR_FORE_AFT_MOVE = 8211; // 0x2013 |
| 813 | field public static final int ID_SEAT_LUMBAR_FORE_AFT_POS = 8210; // 0x2012 |
| 814 | field public static final int ID_SEAT_LUMBAR_SIDE_SUPPORT_MOVE = 8213; // 0x2015 |
| 815 | field public static final int ID_SEAT_LUMBAR_SIDE_SUPPORT_POS = 8212; // 0x2014 |
| 816 | field public static final int ID_SEAT_MEMORY_SELECT = 8193; // 0x2001 |
| 817 | field public static final int ID_SEAT_MEMORY_SET = 8194; // 0x2002 |
| 818 | field public static final int ID_SEAT_TILT_MOVE = 8209; // 0x2011 |
| 819 | field public static final int ID_SEAT_TILT_POS = 8208; // 0x2010 |
| 820 | field public static final int ID_WINDOW_LOCK = 12293; // 0x3005 |
| 821 | field public static final int ID_WINDOW_MOVE = 12290; // 0x3002 |
| 822 | field public static final int ID_WINDOW_POS = 12289; // 0x3001 |
| 823 | field public static final int ID_WINDOW_VENT_MOVE = 12292; // 0x3004 |
| 824 | field public static final int ID_WINDOW_VENT_POS = 12291; // 0x3003 |
Steve Paik | 43c04a7 | 2016-07-08 19:12:09 -0700 | [diff] [blame] | 825 | } |
| 826 | |
Keun-young Park | af2cc99 | 2016-10-07 11:46:45 -0700 | [diff] [blame] | 827 | public static abstract interface CarCabinManager.CarCabinEventCallback { |
Steve Paik | 43c04a7 | 2016-07-08 19:12:09 -0700 | [diff] [blame] | 828 | method public abstract void onChangeEvent(android.car.hardware.CarPropertyValue); |
| 829 | method public abstract void onErrorEvent(int, int); |
| 830 | } |
| 831 | |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 832 | } |
| 833 | |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 834 | package android.car.hardware.hvac { |
| 835 | |
Keun-young Park | 4cf6911 | 2016-10-04 10:02:59 -0700 | [diff] [blame] | 836 | public final class CarHvacManager { |
Vitalii Tomkiv | 235f8ac | 2016-04-04 11:26:49 -0700 | [diff] [blame] | 837 | method public boolean getBooleanProperty(int, int) throws android.car.CarNotConnectedException; |
| 838 | method public float getFloatProperty(int, int) throws android.car.CarNotConnectedException; |
| 839 | method public int getIntProperty(int, int) throws android.car.CarNotConnectedException; |
Steve Paik | fb5f623 | 2016-03-28 10:31:25 -0700 | [diff] [blame] | 840 | 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] | 841 | method public static boolean isZonedProperty(int); |
Keun-young Park | af2cc99 | 2016-10-07 11:46:45 -0700 | [diff] [blame] | 842 | method public synchronized void registerCallback(android.car.hardware.hvac.CarHvacManager.CarHvacEventCallback) throws android.car.CarNotConnectedException; |
Vitalii Tomkiv | 235f8ac | 2016-04-04 11:26:49 -0700 | [diff] [blame] | 843 | method public void setBooleanProperty(int, int, boolean) throws android.car.CarNotConnectedException; |
| 844 | method public void setFloatProperty(int, int, float) throws android.car.CarNotConnectedException; |
| 845 | method public void setIntProperty(int, int, int) throws android.car.CarNotConnectedException; |
Keun-young Park | 150d8de | 2016-10-07 15:48:11 -0700 | [diff] [blame] | 846 | method public synchronized void unregisterCallback(android.car.hardware.hvac.CarHvacManager.CarHvacEventCallback); |
Pavel Maltsev | 5e9202e | 2017-01-10 14:34:22 -0800 | [diff] [blame] | 847 | field public static final int FAN_POSITION_DEFROST = 4; // 0x4 |
| 848 | field public static final int FAN_POSITION_DEFROST_AND_FLOOR = 5; // 0x5 |
| 849 | field public static final int FAN_POSITION_FACE = 1; // 0x1 |
| 850 | field public static final int FAN_POSITION_FACE_AND_FLOOR = 3; // 0x3 |
| 851 | field public static final int FAN_POSITION_FLOOR = 2; // 0x2 |
Keun-young Park | af2cc99 | 2016-10-07 11:46:45 -0700 | [diff] [blame] | 852 | field public static final int ID_MIRROR_DEFROSTER_ON = 1; // 0x1 |
| 853 | field public static final int ID_OUTSIDE_AIR_TEMP = 3; // 0x3 |
| 854 | field public static final int ID_STEERING_WHEEL_TEMP = 2; // 0x2 |
| 855 | field public static final int ID_TEMPERATURE_UNITS = 4; // 0x4 |
| 856 | field public static final int ID_WINDOW_DEFROSTER_ON = 20481; // 0x5001 |
| 857 | field public static final int ID_ZONED_AC_ON = 16393; // 0x4009 |
| 858 | field public static final int ID_ZONED_AIR_RECIRCULATION_ON = 16395; // 0x400b |
| 859 | field public static final int ID_ZONED_AUTOMATIC_MODE_ON = 16394; // 0x400a |
| 860 | field public static final int ID_ZONED_DUAL_ZONE_ON = 16397; // 0x400d |
| 861 | field public static final int ID_ZONED_FAN_POSITION = 16391; // 0x4007 |
| 862 | field public static final int ID_ZONED_FAN_POSITION_AVAILABLE = 16390; // 0x4006 |
| 863 | field public static final int ID_ZONED_FAN_SPEED_RPM = 16389; // 0x4005 |
| 864 | field public static final int ID_ZONED_FAN_SPEED_SETPOINT = 16388; // 0x4004 |
Steve Paik | 595fc67 | 2017-06-28 15:49:58 -0700 | [diff] [blame] | 865 | field public static final int ID_ZONED_HVAC_AUTO_RECIRC_ON = 16399; // 0x400f |
Keun-young Park | af2cc99 | 2016-10-07 11:46:45 -0700 | [diff] [blame] | 866 | field public static final int ID_ZONED_HVAC_POWER_ON = 16387; // 0x4003 |
| 867 | field public static final int ID_ZONED_MAX_AC_ON = 16396; // 0x400c |
| 868 | field public static final int ID_ZONED_MAX_DEFROST_ON = 16398; // 0x400e |
| 869 | field public static final int ID_ZONED_SEAT_TEMP = 16392; // 0x4008 |
| 870 | field public static final int ID_ZONED_TEMP_ACTUAL = 16386; // 0x4002 |
| 871 | field public static final int ID_ZONED_TEMP_SETPOINT = 16385; // 0x4001 |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 872 | } |
| 873 | |
Keun-young Park | af2cc99 | 2016-10-07 11:46:45 -0700 | [diff] [blame] | 874 | public static abstract interface CarHvacManager.CarHvacEventCallback { |
Steve Paik | fb5f623 | 2016-03-28 10:31:25 -0700 | [diff] [blame] | 875 | method public abstract void onChangeEvent(android.car.hardware.CarPropertyValue); |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 876 | method public abstract void onErrorEvent(int, int); |
| 877 | } |
| 878 | |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 879 | } |
| 880 | |
| 881 | package android.car.hardware.radio { |
| 882 | |
| 883 | public class CarRadioEvent implements android.os.Parcelable { |
| 884 | ctor public CarRadioEvent(int, android.car.hardware.radio.CarRadioPreset); |
| 885 | method public int describeContents(); |
| 886 | method public int getEventType(); |
| 887 | method public android.car.hardware.radio.CarRadioPreset getPreset(); |
| 888 | method public void writeToParcel(android.os.Parcel, int); |
| 889 | field public static final android.os.Parcelable.Creator<android.car.hardware.radio.CarRadioEvent> CREATOR; |
| 890 | field public static final int RADIO_PRESET = 0; // 0x0 |
| 891 | } |
| 892 | |
Keun-young Park | 4cf6911 | 2016-10-04 10:02:59 -0700 | [diff] [blame] | 893 | public final class CarRadioManager { |
Vitalii Tomkiv | 235f8ac | 2016-04-04 11:26:49 -0700 | [diff] [blame] | 894 | method public android.car.hardware.radio.CarRadioPreset getPreset(int) throws android.car.CarNotConnectedException; |
Keun-young Park | 150d8de | 2016-10-07 15:48:11 -0700 | [diff] [blame] | 895 | method public int getPresetCount() throws android.car.CarNotConnectedException; |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 896 | 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] | 897 | method public boolean setPreset(android.car.hardware.radio.CarRadioPreset) throws android.car.CarNotConnectedException, java.lang.IllegalArgumentException; |
Keun-young Park | 150d8de | 2016-10-07 15:48:11 -0700 | [diff] [blame] | 898 | method public synchronized void unregisterListener(); |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 899 | } |
| 900 | |
| 901 | public static abstract interface CarRadioManager.CarRadioEventListener { |
| 902 | method public abstract void onEvent(android.car.hardware.radio.CarRadioEvent); |
| 903 | } |
| 904 | |
| 905 | public class CarRadioPreset implements android.os.Parcelable { |
| 906 | ctor public CarRadioPreset(int, int, int, int); |
| 907 | method public int describeContents(); |
| 908 | method public int getBand(); |
| 909 | method public int getChannel(); |
| 910 | method public int getPresetNumber(); |
| 911 | method public int getSubChannel(); |
| 912 | method public void writeToParcel(android.os.Parcel, int); |
| 913 | field public static final android.os.Parcelable.Creator<android.car.hardware.radio.CarRadioPreset> CREATOR; |
| 914 | } |
| 915 | |
| 916 | } |
| 917 | |
Vitalii Tomkiv | 2bd0692 | 2016-07-26 11:07:48 -0700 | [diff] [blame] | 918 | package android.car.input { |
| 919 | |
| 920 | public abstract class CarInputHandlingService extends android.app.Service { |
| 921 | ctor protected CarInputHandlingService(android.car.input.CarInputHandlingService.InputFilter[]); |
| 922 | method public android.os.IBinder onBind(android.content.Intent); |
| 923 | method protected abstract void onKeyEvent(android.view.KeyEvent, int); |
| 924 | field public static final int INPUT_CALLBACK_BINDER_CODE = 1; // 0x1 |
| 925 | field public static final java.lang.String INPUT_CALLBACK_BINDER_KEY = "callback_binder"; |
| 926 | } |
| 927 | |
| 928 | public static class CarInputHandlingService.InputFilter implements android.os.Parcelable { |
| 929 | ctor public CarInputHandlingService.InputFilter(int, int); |
| 930 | method public int describeContents(); |
| 931 | method public void writeToParcel(android.os.Parcel, int); |
| 932 | field public static final android.os.Parcelable.Creator CREATOR; |
| 933 | field public final int mKeyCode; |
| 934 | field public final int mTargetDisplay; |
| 935 | } |
| 936 | |
| 937 | } |
| 938 | |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 939 | package android.car.media { |
| 940 | |
Keun-young Park | 4cf6911 | 2016-10-04 10:02:59 -0700 | [diff] [blame] | 941 | public final class CarAudioManager { |
Keun-young Park | 150d8de | 2016-10-07 15:48:11 -0700 | [diff] [blame] | 942 | method public void abandonAudioFocus(android.media.AudioManager.OnAudioFocusChangeListener, android.media.AudioAttributes); |
| 943 | method public android.media.AudioAttributes getAudioAttributesForCarUsage(int) throws android.car.CarNotConnectedException; |
Yao Chen | c4d442f | 2016-04-08 11:33:47 -0700 | [diff] [blame] | 944 | method public int getStreamMaxVolume(int) throws android.car.CarNotConnectedException; |
| 945 | method public int getStreamMinVolume(int) throws android.car.CarNotConnectedException; |
| 946 | method public int getStreamVolume(int) throws android.car.CarNotConnectedException; |
Keun-young Park | 3cb8910 | 2016-05-05 13:16:03 -0700 | [diff] [blame] | 947 | method public boolean isMediaMuted() throws android.car.CarNotConnectedException; |
Keun-young Park | 150d8de | 2016-10-07 15:48:11 -0700 | [diff] [blame] | 948 | method public int requestAudioFocus(android.media.AudioManager.OnAudioFocusChangeListener, android.media.AudioAttributes, int, int) throws android.car.CarNotConnectedException, java.lang.IllegalArgumentException; |
Keun-young Park | 3cb8910 | 2016-05-05 13:16:03 -0700 | [diff] [blame] | 949 | method public boolean setMediaMute(boolean) throws android.car.CarNotConnectedException; |
Yao Chen | c4d442f | 2016-04-08 11:33:47 -0700 | [diff] [blame] | 950 | method public void setStreamVolume(int, int, int) throws android.car.CarNotConnectedException; |
| 951 | method public void setVolumeController(android.media.IVolumeController) throws android.car.CarNotConnectedException; |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 952 | field public static final int CAR_AUDIO_USAGE_ALARM = 6; // 0x6 |
| 953 | field public static final int CAR_AUDIO_USAGE_DEFAULT = 0; // 0x0 |
| 954 | field public static final int CAR_AUDIO_USAGE_MUSIC = 1; // 0x1 |
| 955 | field public static final int CAR_AUDIO_USAGE_NAVIGATION_GUIDANCE = 3; // 0x3 |
| 956 | field public static final int CAR_AUDIO_USAGE_NOTIFICATION = 7; // 0x7 |
| 957 | field public static final int CAR_AUDIO_USAGE_RADIO = 2; // 0x2 |
Scott Randolph | 962ba77 | 2017-08-03 20:15:10 -0700 | [diff] [blame] | 958 | field public static final int CAR_AUDIO_USAGE_RINGTONE = 10; // 0xa |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 959 | field public static final int CAR_AUDIO_USAGE_SYSTEM_SAFETY_ALERT = 9; // 0x9 |
| 960 | field public static final int CAR_AUDIO_USAGE_SYSTEM_SOUND = 8; // 0x8 |
| 961 | field public static final int CAR_AUDIO_USAGE_VOICE_CALL = 4; // 0x4 |
| 962 | field public static final int CAR_AUDIO_USAGE_VOICE_COMMAND = 5; // 0x5 |
| 963 | } |
| 964 | |
| 965 | } |
| 966 | |
| 967 | package android.car.navigation { |
| 968 | |
| 969 | public class CarNavigationInstrumentCluster implements android.os.Parcelable { |
| 970 | ctor public CarNavigationInstrumentCluster(android.car.navigation.CarNavigationInstrumentCluster); |
| 971 | method public static android.car.navigation.CarNavigationInstrumentCluster createCluster(int); |
| 972 | method public static android.car.navigation.CarNavigationInstrumentCluster createCustomImageCluster(int, int, int, int); |
| 973 | method public int describeContents(); |
| 974 | method public int getImageColorDepthBits(); |
| 975 | method public int getImageHeight(); |
| 976 | method public int getImageWidth(); |
Keun-young Park | 3388e78 | 2016-10-05 16:28:32 -0700 | [diff] [blame] | 977 | method public int getMinIntervalMillis(); |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 978 | method public int getType(); |
| 979 | method public boolean supportsCustomImages(); |
| 980 | method public void writeToParcel(android.os.Parcel, int); |
Keun-young Park | 3388e78 | 2016-10-05 16:28:32 -0700 | [diff] [blame] | 981 | field public static final int CLUSTER_TYPE_CUSTOM_IMAGES_SUPPORTED = 1; // 0x1 |
| 982 | field public static final int CLUSTER_TYPE_IMAGE_CODES_ONLY = 2; // 0x2 |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 983 | field public static final android.os.Parcelable.Creator<android.car.navigation.CarNavigationInstrumentCluster> CREATOR; |
| 984 | } |
| 985 | |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 986 | } |
| 987 | |
Yao Chen | 94d4766 | 2016-07-28 14:03:28 -0700 | [diff] [blame] | 988 | package android.car.settings { |
| 989 | |
| 990 | public class CarSettings { |
| 991 | ctor public CarSettings(); |
| 992 | } |
| 993 | |
| 994 | public static final class CarSettings.Global { |
| 995 | ctor public CarSettings.Global(); |
| 996 | field public static final java.lang.String KEY_GARAGE_MODE_ENABLED = "android.car.GARAGE_MODE_ENABLED"; |
| 997 | field public static final java.lang.String KEY_GARAGE_MODE_MAINTENANCE_WINDOW = "android.car.GARAGE_MODE_MAINTENANCE_WINDOW"; |
| 998 | field public static final java.lang.String KEY_GARAGE_MODE_WAKE_UP_TIME = "android.car.GARAGE_MODE_WAKE_UP_TIME"; |
| 999 | } |
| 1000 | |
| 1001 | } |
| 1002 | |
Enrico Granata | 9a916d7 | 2017-09-19 14:33:08 -0700 | [diff] [blame] | 1003 | package android.car.storagemonitoring { |
| 1004 | |
| 1005 | public final class CarStorageMonitoringManager { |
| 1006 | method public int getPreEolIndicatorStatus() throws android.car.CarNotConnectedException; |
| 1007 | field public static final int PRE_EOL_INFO_NORMAL = 1; // 0x1 |
| 1008 | field public static final int PRE_EOL_INFO_UNKNOWN = 0; // 0x0 |
| 1009 | field public static final int PRE_EOL_INFO_URGENT = 3; // 0x3 |
| 1010 | field public static final int PRE_EOL_INFO_WARNING = 2; // 0x2 |
| 1011 | } |
| 1012 | |
Enrico Granata | 671e68d | 2017-09-20 10:16:22 -0700 | [diff] [blame^] | 1013 | public class WearEstimate implements android.os.Parcelable { |
| 1014 | ctor public WearEstimate(int, int); |
| 1015 | ctor public WearEstimate(android.os.Parcel); |
| 1016 | ctor public WearEstimate(android.util.JsonReader) throws java.io.IOException; |
| 1017 | method public int describeContents(); |
| 1018 | method public void writeToJson(android.util.JsonWriter) throws java.io.IOException; |
| 1019 | method public void writeToParcel(android.os.Parcel, int); |
| 1020 | field public static final android.os.Parcelable.Creator<android.car.storagemonitoring.WearEstimate> CREATOR; |
| 1021 | field public static final int UNKNOWN = -1; // 0xffffffff |
| 1022 | field public final int typeA; |
| 1023 | field public final int typeB; |
| 1024 | } |
| 1025 | |
| 1026 | public class WearEstimateChange implements android.os.Parcelable { |
| 1027 | ctor public WearEstimateChange(android.car.storagemonitoring.WearEstimate, android.car.storagemonitoring.WearEstimate, long, Instant, boolean); |
| 1028 | ctor public WearEstimateChange(android.os.Parcel); |
| 1029 | method public int describeContents(); |
| 1030 | method public void writeToParcel(android.os.Parcel, int); |
| 1031 | field public static final android.os.Parcelable.Creator<android.car.storagemonitoring.WearEstimateChange> CREATOR; |
| 1032 | field public final Instant dateAtChange; |
| 1033 | field public final boolean isAcceptableDegradation; |
| 1034 | field public final android.car.storagemonitoring.WearEstimate newEstimate; |
| 1035 | field public final android.car.storagemonitoring.WearEstimate oldEstimate; |
| 1036 | field public final long uptimeAtChange; |
| 1037 | } |
| 1038 | |
Enrico Granata | 9a916d7 | 2017-09-19 14:33:08 -0700 | [diff] [blame] | 1039 | } |
| 1040 | |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 1041 | package android.car.test { |
| 1042 | |
| 1043 | public class CarTestManagerBinderWrapper { |
| 1044 | ctor public CarTestManagerBinderWrapper(android.os.IBinder); |
| 1045 | method public void onCarDisconnected(); |
| 1046 | field public final android.os.IBinder binder; |
| 1047 | } |
| 1048 | |
| 1049 | } |
| 1050 | |
Asaf Rosenfeld | 39e4f03 | 2017-09-16 11:33:50 -0700 | [diff] [blame] | 1051 | package android.car.vms { |
| 1052 | |
| 1053 | public final class VmsAssociatedLayer implements android.os.Parcelable { |
| 1054 | ctor public VmsAssociatedLayer(android.car.vms.VmsLayer, java.util.Set<java.lang.Integer>); |
| 1055 | method public int describeContents(); |
| 1056 | method public java.util.Set<java.lang.Integer> getPublisherIds(); |
| 1057 | method public android.car.vms.VmsLayer getVmsLayer(); |
| 1058 | method public void writeToParcel(android.os.Parcel, int); |
| 1059 | field public static final android.os.Parcelable.Creator<android.car.vms.VmsAssociatedLayer> CREATOR; |
| 1060 | } |
| 1061 | |
| 1062 | public final class VmsLayer implements android.os.Parcelable { |
| 1063 | ctor public VmsLayer(int, int, int); |
| 1064 | method public int describeContents(); |
| 1065 | method public int getSubtype(); |
| 1066 | method public int getType(); |
| 1067 | method public int getVersion(); |
| 1068 | method public void writeToParcel(android.os.Parcel, int); |
| 1069 | field public static final android.os.Parcelable.Creator<android.car.vms.VmsLayer> CREATOR; |
| 1070 | } |
| 1071 | |
| 1072 | public final class VmsLayerDependency implements android.os.Parcelable { |
| 1073 | ctor public VmsLayerDependency(android.car.vms.VmsLayer, java.util.Set<android.car.vms.VmsLayer>); |
| 1074 | ctor public VmsLayerDependency(android.car.vms.VmsLayer); |
| 1075 | method public int describeContents(); |
| 1076 | method public java.util.Set<android.car.vms.VmsLayer> getDependencies(); |
| 1077 | method public android.car.vms.VmsLayer getLayer(); |
| 1078 | method public void writeToParcel(android.os.Parcel, int); |
| 1079 | field public static final android.os.Parcelable.Creator<android.car.vms.VmsLayerDependency> CREATOR; |
| 1080 | } |
| 1081 | |
| 1082 | public final class VmsLayersOffering implements android.os.Parcelable { |
| 1083 | ctor public VmsLayersOffering(java.util.Set<android.car.vms.VmsLayerDependency>, int); |
| 1084 | method public int describeContents(); |
| 1085 | method public java.util.Set<android.car.vms.VmsLayerDependency> getDependencies(); |
| 1086 | method public int getPublisherId(); |
| 1087 | method public void writeToParcel(android.os.Parcel, int); |
| 1088 | field public static final android.os.Parcelable.Creator<android.car.vms.VmsLayersOffering> CREATOR; |
| 1089 | } |
| 1090 | |
| 1091 | public final class VmsOperationRecorder { |
| 1092 | ctor public VmsOperationRecorder(android.car.vms.VmsOperationRecorder.Writer); |
| 1093 | method public void addHalSubscription(int, android.car.vms.VmsLayer); |
| 1094 | method public void addPromiscuousSubscription(int); |
| 1095 | method public void addSubscription(int, android.car.vms.VmsLayer); |
| 1096 | method public static android.car.vms.VmsOperationRecorder get(); |
| 1097 | method public void getPublisherId(int); |
| 1098 | method public void removeHalSubscription(int, android.car.vms.VmsLayer); |
| 1099 | method public void removePromiscuousSubscription(int); |
| 1100 | method public void removeSubscription(int, android.car.vms.VmsLayer); |
| 1101 | method public void setHalPublisherLayersOffering(android.car.vms.VmsLayersOffering); |
| 1102 | method public void setLayersOffering(android.car.vms.VmsLayersOffering); |
| 1103 | method public void setPublisherLayersOffering(android.car.vms.VmsLayersOffering); |
| 1104 | method public void startMonitoring(); |
| 1105 | method public void stopMonitoring(); |
| 1106 | method public void subscribe(android.car.vms.VmsLayer); |
| 1107 | method public void subscribe(android.car.vms.VmsLayer, int); |
| 1108 | method public void unsubscribe(android.car.vms.VmsLayer); |
| 1109 | method public void unsubscribe(android.car.vms.VmsLayer, int); |
| 1110 | } |
| 1111 | |
| 1112 | public static class VmsOperationRecorder.Writer { |
| 1113 | ctor public VmsOperationRecorder.Writer(); |
| 1114 | method public boolean isEnabled(); |
| 1115 | method public void write(java.lang.String); |
| 1116 | } |
| 1117 | |
| 1118 | public abstract class VmsPublisherClientService extends android.app.Service { |
| 1119 | ctor public VmsPublisherClientService(); |
| 1120 | method public final int getPublisherId(byte[]); |
| 1121 | method public final android.car.vms.VmsSubscriptionState getSubscriptions(); |
| 1122 | method public final android.os.IBinder onBind(android.content.Intent); |
| 1123 | method public final boolean onUnbind(android.content.Intent); |
| 1124 | method protected abstract void onVmsPublisherServiceReady(); |
| 1125 | method public abstract void onVmsSubscriptionChange(android.car.vms.VmsSubscriptionState); |
| 1126 | method public final void publish(android.car.vms.VmsLayer, int, byte[]); |
| 1127 | method public final void setLayersOffering(android.car.vms.VmsLayersOffering); |
| 1128 | } |
| 1129 | |
| 1130 | public final class VmsSubscriberManager { |
| 1131 | ctor public VmsSubscriberManager(android.os.IBinder, android.os.Handler); |
| 1132 | method public byte[] getPublisherInfo(int) throws android.car.CarNotConnectedException, java.lang.IllegalStateException; |
| 1133 | method public void registerClientCallback(android.car.vms.VmsSubscriberManager.VmsSubscriberClientCallback) throws android.car.CarNotConnectedException; |
| 1134 | method public void startMonitoring() throws android.car.CarNotConnectedException; |
| 1135 | method public void stopMonitoring(); |
| 1136 | method public void subscribe(android.car.vms.VmsLayer) throws android.car.CarNotConnectedException; |
| 1137 | method public void subscribe(android.car.vms.VmsLayer, int) throws android.car.CarNotConnectedException; |
| 1138 | method public void unregisterClientCallback() throws android.car.CarNotConnectedException; |
| 1139 | method public void unsubscribe(android.car.vms.VmsLayer); |
| 1140 | method public void unsubscribe(android.car.vms.VmsLayer, int); |
| 1141 | } |
| 1142 | |
| 1143 | public static abstract interface VmsSubscriberManager.VmsSubscriberClientCallback { |
| 1144 | method public abstract void onLayersAvailabilityChanged(java.util.List<android.car.vms.VmsLayer>); |
| 1145 | method public abstract void onVmsMessageReceived(android.car.vms.VmsLayer, byte[]); |
| 1146 | } |
| 1147 | |
| 1148 | public final class VmsSubscriptionState implements android.os.Parcelable { |
| 1149 | ctor public VmsSubscriptionState(int, java.util.Set<android.car.vms.VmsLayer>, java.util.Set<android.car.vms.VmsAssociatedLayer>); |
| 1150 | method public int describeContents(); |
| 1151 | method public java.util.Set<android.car.vms.VmsAssociatedLayer> getAssociatedLayers(); |
| 1152 | method public java.util.Set<android.car.vms.VmsLayer> getLayers(); |
| 1153 | method public int getSequenceNumber(); |
| 1154 | method public void writeToParcel(android.os.Parcel, int); |
| 1155 | field public static final android.os.Parcelable.Creator<android.car.vms.VmsSubscriptionState> CREATOR; |
| 1156 | } |
| 1157 | |
| 1158 | } |
| 1159 | |