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