blob: f4e0a95a1ecce202cc9de8ff6fa359b0b42b9808 [file] [log] [blame]
Vitalii Tomkiv280b5722016-03-17 16:17:21 -07001package android.car {
2
Keun-young Park4cf69112016-10-04 10:02:59 -07003 public final class Car {
Vitalii Tomkiv280b5722016-03-17 16:17:21 -07004 method public void connect() throws java.lang.IllegalStateException;
Jason Tholstrup3ee334d2016-08-26 14:30:20 -07005 method public static android.car.Car createCar(android.content.Context, android.content.ServiceConnection, android.os.Handler);
Vitalii Tomkiv280b5722016-03-17 16:17:21 -07006 method public static android.car.Car createCar(android.content.Context, android.content.ServiceConnection);
7 method public void disconnect();
8 method public int getCarConnectionType();
Vitalii Tomkiv235f8ac2016-04-04 11:26:49 -07009 method public java.lang.Object getCarManager(java.lang.String) throws android.car.CarNotConnectedException;
Vitalii Tomkiv280b5722016-03-17 16:17:21 -070010 method public boolean isConnected();
11 method public boolean isConnecting();
Vitalii Tomkiv46371472016-05-23 16:55:22 -070012 field public static final java.lang.String APP_FOCUS_SERVICE = "app_focus";
Vitalii Tomkiv280b5722016-03-17 16:17:21 -070013 field public static final java.lang.String AUDIO_SERVICE = "audio";
Steve Paik43c04a72016-07-08 19:12:09 -070014 field public static final java.lang.String CABIN_SERVICE = "cabin";
Vitalii Tomkiv280b5722016-03-17 16:17:21 -070015 field public static final java.lang.String CAMERA_SERVICE = "camera";
16 field public static final int CONNECTION_TYPE_EMBEDDED = 5; // 0x5
Enrico Granata5c56d2a2017-02-07 15:38:12 -080017 field public static final java.lang.String DIAGNOSTIC_SERVICE = "diagnostic";
Vitalii Tomkiv280b5722016-03-17 16:17:21 -070018 field public static final java.lang.String HVAC_SERVICE = "hvac";
19 field public static final java.lang.String INFO_SERVICE = "info";
20 field public static final java.lang.String PACKAGE_SERVICE = "package";
Steve Paik43c04a72016-07-08 19:12:09 -070021 field public static final java.lang.String PERMISSION_CAR_CABIN = "android.car.permission.CAR_CABIN";
Vitalii Tomkiv280b5722016-03-17 16:17:21 -070022 field public static final java.lang.String PERMISSION_CAR_CAMERA = "android.car.permission.CAR_CAMERA";
Yao Chenc4d442f2016-04-08 11:33:47 -070023 field public static final java.lang.String PERMISSION_CAR_CONTROL_AUDIO_VOLUME = "android.car.permission.CAR_CONTROL_AUDIO_VOLUME";
Vitalii Tomkiv280b5722016-03-17 16:17:21 -070024 field public static final java.lang.String PERMISSION_CAR_HVAC = "android.car.permission.CAR_HVAC";
25 field public static final java.lang.String PERMISSION_CAR_PROJECTION = "android.car.permission.CAR_PROJECTION";
26 field public static final java.lang.String PERMISSION_CAR_RADIO = "android.car.permission.CAR_RADIO";
Pavel Maltsev0d07c762016-11-03 16:40:15 -070027 field public static final java.lang.String PERMISSION_CAR_TEST_SERVICE = "android.car.permission.CAR_TEST_SERVICE";
Vitalii Tomkiv280b5722016-03-17 16:17:21 -070028 field public static final java.lang.String PERMISSION_CONTROL_APP_BLOCKING = "android.car.permission.CONTROL_APP_BLOCKING";
29 field public static final java.lang.String PERMISSION_FUEL = "android.car.permission.CAR_FUEL";
30 field public static final java.lang.String PERMISSION_MILEAGE = "android.car.permission.CAR_MILEAGE";
Pavel Maltsev0d07c762016-11-03 16:40:15 -070031 field public static final deprecated java.lang.String PERMISSION_MOCK_VEHICLE_HAL = "android.car.permission.CAR_MOCK_VEHICLE_HAL";
Vitalii Tomkiv280b5722016-03-17 16:17:21 -070032 field public static final java.lang.String PERMISSION_SPEED = "android.car.permission.CAR_SPEED";
33 field public static final java.lang.String PERMISSION_VENDOR_EXTENSION = "android.car.permission.CAR_VENDOR_EXTENSION";
Antonio Cortese4619c72017-02-02 07:53:27 -080034 field public static final java.lang.String PERMISSION_VMS_SUBSCRIBER = "android.car.permission.VMS_SUBSCRIBER";
Vitalii Tomkiv280b5722016-03-17 16:17:21 -070035 field public static final java.lang.String PROJECTION_SERVICE = "projection";
36 field public static final java.lang.String RADIO_SERVICE = "radio";
37 field public static final java.lang.String SENSOR_SERVICE = "sensor";
38 field public static final java.lang.String TEST_SERVICE = "car-service-test";
Pavel Maltsev634e1ff2016-07-14 15:41:26 -070039 field public static final java.lang.String VENDOR_EXTENSION_SERVICE = "vendor_extension";
Keun-young Parkf521fd72016-07-08 14:51:43 -070040 field public static final int VERSION = 1; // 0x1
Antonio Cortese4619c72017-02-02 07:53:27 -080041 field public static final java.lang.String VMS_SUBSCRIBER_SERVICE = "vehicle_map_subscriber_service";
Vitalii Tomkiv280b5722016-03-17 16:17:21 -070042 }
43
Vitalii Tomkiv46371472016-05-23 16:55:22 -070044 public final class CarAppFocusManager {
Keun-young Park150d8de2016-10-07 15:48:11 -070045 method public void abandonAppFocus(android.car.CarAppFocusManager.OnAppFocusOwnershipCallback, int);
46 method public void abandonAppFocus(android.car.CarAppFocusManager.OnAppFocusOwnershipCallback);
Jason Tholstrupd72b5352016-09-22 16:32:14 -070047 method public void addFocusListener(android.car.CarAppFocusManager.OnAppFocusChangedListener, int) throws android.car.CarNotConnectedException;
Vitalii Tomkivd15d8872016-10-04 14:08:56 -070048 method public boolean isOwningFocus(android.car.CarAppFocusManager.OnAppFocusOwnershipCallback, int) throws android.car.CarNotConnectedException;
Keun-young Park150d8de2016-10-07 15:48:11 -070049 method public void removeFocusListener(android.car.CarAppFocusManager.OnAppFocusChangedListener, int);
50 method public void removeFocusListener(android.car.CarAppFocusManager.OnAppFocusChangedListener);
Vitalii Tomkivd15d8872016-10-04 14:08:56 -070051 method public int requestAppFocus(int, android.car.CarAppFocusManager.OnAppFocusOwnershipCallback) throws android.car.CarNotConnectedException, java.lang.SecurityException;
Vitalii Tomkiv46371472016-05-23 16:55:22 -070052 field public static final int APP_FOCUS_REQUEST_FAILED = 0; // 0x0
Vitalii Tomkivd15d8872016-10-04 14:08:56 -070053 field public static final int APP_FOCUS_REQUEST_SUCCEEDED = 1; // 0x1
Vitalii Tomkiv46371472016-05-23 16:55:22 -070054 field public static final int APP_FOCUS_TYPE_NAVIGATION = 1; // 0x1
55 field public static final int APP_FOCUS_TYPE_VOICE_COMMAND = 2; // 0x2
56 }
57
Jason Tholstrupd72b5352016-09-22 16:32:14 -070058 public static abstract interface CarAppFocusManager.OnAppFocusChangedListener {
59 method public abstract void onAppFocusChanged(int, boolean);
Vitalii Tomkiv46371472016-05-23 16:55:22 -070060 }
61
Vitalii Tomkivd15d8872016-10-04 14:08:56 -070062 public static abstract interface CarAppFocusManager.OnAppFocusOwnershipCallback {
63 method public abstract void onAppFocusOwnershipGranted(int);
Jason Tholstrupd72b5352016-09-22 16:32:14 -070064 method public abstract void onAppFocusOwnershipLost(int);
Vitalii Tomkiv46371472016-05-23 16:55:22 -070065 }
66
Keun-young Park67456352016-10-03 13:45:19 -070067 public final class CarInfoManager {
Keun-young Park07ddbbd2016-10-06 14:13:02 -070068 method public java.lang.String getManufacturer() throws android.car.CarNotConnectedException;
69 method public java.lang.String getModel() throws android.car.CarNotConnectedException;
70 method public java.lang.String getModelYear() throws android.car.CarNotConnectedException;
71 method public java.lang.String getVehicleId() throws android.car.CarNotConnectedException;
Vitalii Tomkiv280b5722016-03-17 16:17:21 -070072 }
73
74 public class CarNotConnectedException extends java.lang.Exception {
75 ctor public CarNotConnectedException();
76 ctor public CarNotConnectedException(java.lang.String);
77 ctor public CarNotConnectedException(java.lang.String, java.lang.Throwable);
78 ctor public CarNotConnectedException(java.lang.Exception);
79 }
80
Keun-young Park4cf69112016-10-04 10:02:59 -070081 public final class CarProjectionManager {
Vitalii Tomkiv280b5722016-03-17 16:17:21 -070082 method public void onCarDisconnected();
Vitalii Tomkiv235f8ac2016-04-04 11:26:49 -070083 method public void registerProjectionRunner(android.content.Intent) throws android.car.CarNotConnectedException;
84 method public void regsiterProjectionListener(android.car.CarProjectionManager.CarProjectionListener, int) throws android.car.CarNotConnectedException;
Keun-young Park150d8de2016-10-07 15:48:11 -070085 method public void unregisterProjectionRunner(android.content.Intent);
86 method public void unregsiterProjectionListener();
Vitalii Tomkiv280b5722016-03-17 16:17:21 -070087 field public static final int PROJECTION_LONG_PRESS_VOICE_SEARCH = 2; // 0x2
88 field public static final int PROJECTION_VOICE_SEARCH = 1; // 0x1
89 }
90
91 public static abstract interface CarProjectionManager.CarProjectionListener {
92 method public abstract void onVoiceAssistantRequest(boolean);
93 }
94
Keun-young Parkcd68cc72016-09-14 11:06:56 -070095 public final class VehicleAreaType {
Steve Paikfb5f6232016-03-28 10:31:25 -070096 field public static final int VEHICLE_AREA_TYPE_DOOR = 4; // 0x4
Vitalii Tomkiv5f537ee2016-10-11 14:26:44 -070097 field public static final int VEHICLE_AREA_TYPE_MIRROR = 5; // 0x5
Steve Paikfb5f6232016-03-28 10:31:25 -070098 field public static final int VEHICLE_AREA_TYPE_NONE = 0; // 0x0
99 field public static final int VEHICLE_AREA_TYPE_SEAT = 3; // 0x3
100 field public static final int VEHICLE_AREA_TYPE_WINDOW = 2; // 0x2
101 field public static final int VEHICLE_AREA_TYPE_ZONE = 1; // 0x1
102 }
103
Keun-young Parkcd68cc72016-09-14 11:06:56 -0700104 public final class VehicleDoor {
Vitalii Tomkiv280b5722016-03-17 16:17:21 -0700105 field public static final int DOOR_HOOD = 268435456; // 0x10000000
106 field public static final int DOOR_REAR = 536870912; // 0x20000000
107 field public static final int DOOR_ROW_1_LEFT = 1; // 0x1
108 field public static final int DOOR_ROW_1_RIGHT = 4; // 0x4
109 field public static final int DOOR_ROW_2_LEFT = 16; // 0x10
110 field public static final int DOOR_ROW_2_RIGHT = 64; // 0x40
111 field public static final int DOOR_ROW_3_LEFT = 256; // 0x100
112 field public static final int DOOR_ROW_3_RIGHT = 1024; // 0x400
113 }
114
Keun-young Parkcd68cc72016-09-14 11:06:56 -0700115 public final class VehicleMirror {
Steve Paik43c04a72016-07-08 19:12:09 -0700116 field public static final int MIRROR_DRIVER_CENTER = 4; // 0x4
117 field public static final int MIRROR_DRIVER_LEFT = 1; // 0x1
118 field public static final int MIRROR_DRIVER_RIGHT = 2; // 0x2
119 }
120
Keun-young Parkcd68cc72016-09-14 11:06:56 -0700121 public final class VehicleSeat {
Steve Paik8968e1d2016-10-06 20:29:37 -0700122 field public static final int SEAT_ROW_1_CENTER = 2; // 0x2
123 field public static final int SEAT_ROW_1_LEFT = 1; // 0x1
124 field public static final int SEAT_ROW_1_RIGHT = 4; // 0x4
125 field public static final int SEAT_ROW_2_CENTER = 32; // 0x20
126 field public static final int SEAT_ROW_2_LEFT = 16; // 0x10
127 field public static final int SEAT_ROW_2_RIGHT = 64; // 0x40
128 field public static final int SEAT_ROW_3_CENTER = 512; // 0x200
129 field public static final int SEAT_ROW_3_LEFT = 256; // 0x100
130 field public static final int SEAT_ROW_3_RIGHT = 1024; // 0x400
Vitalii Tomkiv280b5722016-03-17 16:17:21 -0700131 }
132
Keun-young Parkcd68cc72016-09-14 11:06:56 -0700133 public final class VehicleWindow {
Vitalii Tomkiv280b5722016-03-17 16:17:21 -0700134 field public static final int WINDOW_FRONT_WINDSHIELD = 1; // 0x1
135 field public static final int WINDOW_REAR_WINDSHIELD = 2; // 0x2
136 field public static final int WINDOW_ROOF_TOP = 4; // 0x4
137 field public static final int WINDOW_ROW_1_LEFT = 16; // 0x10
138 field public static final int WINDOW_ROW_1_RIGHT = 32; // 0x20
139 field public static final int WINDOW_ROW_2_LEFT = 256; // 0x100
140 field public static final int WINDOW_ROW_2_RIGHT = 512; // 0x200
141 field public static final int WINDOW_ROW_3_LEFT = 4096; // 0x1000
142 field public static final int WINDOW_ROW_3_RIGHT = 8192; // 0x2000
143 }
144
Keun-young Parkcd68cc72016-09-14 11:06:56 -0700145 public final class VehicleZone {
Vitalii Tomkiv280b5722016-03-17 16:17:21 -0700146 field public static final int ZONE_ALL = -2147483648; // 0x80000000
147 field public static final int ZONE_ROW_1_ALL = 8; // 0x8
148 field public static final int ZONE_ROW_1_CENTER = 2; // 0x2
149 field public static final int ZONE_ROW_1_LEFT = 1; // 0x1
150 field public static final int ZONE_ROW_1_RIGHT = 4; // 0x4
151 field public static final int ZONE_ROW_2_ALL = 128; // 0x80
152 field public static final int ZONE_ROW_2_CENTER = 32; // 0x20
153 field public static final int ZONE_ROW_2_LEFT = 16; // 0x10
154 field public static final int ZONE_ROW_2_RIGHT = 64; // 0x40
155 field public static final int ZONE_ROW_3_ALL = 2048; // 0x800
156 field public static final int ZONE_ROW_3_CENTER = 512; // 0x200
157 field public static final int ZONE_ROW_3_LEFT = 256; // 0x100
158 field public static final int ZONE_ROW_3_RIGHT = 1024; // 0x400
159 field public static final int ZONE_ROW_4_ALL = 32768; // 0x8000
160 field public static final int ZONE_ROW_4_CENTER = 8192; // 0x2000
161 field public static final int ZONE_ROW_4_LEFT = 4096; // 0x1000
162 field public static final int ZONE_ROW_4_RIGHT = 16384; // 0x4000
163 }
164
Keun-young Parkcd68cc72016-09-14 11:06:56 -0700165 public final class VehicleZoneUtil {
Vitalii Tomkiv280b5722016-03-17 16:17:21 -0700166 method public static int getFirstZone(int);
Keun-young Parkcc487492016-03-17 10:14:23 -0700167 method public static int getNextZone(int, int) throws java.lang.IllegalArgumentException;
168 method public static int getNumberOfZones(int);
Vitalii Tomkiv280b5722016-03-17 16:17:21 -0700169 method public static int[] listAllZones(int);
Keun-young Parkcc487492016-03-17 10:14:23 -0700170 method public static int zoneToIndex(int, int) throws java.lang.IllegalArgumentException;
Vitalii Tomkiv280b5722016-03-17 16:17:21 -0700171 }
172
173}
174
Vitalii Tomkiv280b5722016-03-17 16:17:21 -0700175package android.car.app.menu {
176
177 public abstract class CarMenuCallbacks {
178 ctor public CarMenuCallbacks();
179 method public abstract android.car.app.menu.RootMenu getRootMenu(android.os.Bundle);
180 method public abstract void onCarMenuClosed();
181 method public abstract void onCarMenuClosing();
182 method public abstract void onCarMenuOpened();
183 method public abstract void onCarMenuOpening();
184 method public abstract void onItemClicked(java.lang.String);
185 method public abstract boolean onItemLongClicked(java.lang.String);
186 method public abstract boolean onMenuClicked();
187 method public abstract void subscribe(java.lang.String, android.car.app.menu.SubscriptionCallbacks);
188 method public abstract void unsubscribe(java.lang.String, android.car.app.menu.SubscriptionCallbacks);
189 }
190
191 public class CarMenuConstants {
192 ctor public CarMenuConstants();
193 }
194
195 public static class CarMenuConstants.MenuItemConstants {
196 ctor public CarMenuConstants.MenuItemConstants();
197 field public static final int FLAG_BROWSABLE = 1; // 0x1
198 field public static final int FLAG_FIRSTITEM = 2; // 0x2
199 field public static final java.lang.String KEY_EMPTY_PLACEHOLDER = "android.car.app.menu.empty_placeholder";
200 field public static final java.lang.String KEY_FLAGS = "android.car.app.menu.flags";
201 field public static final java.lang.String KEY_ID = "android.car.app.menu.id";
202 field public static final java.lang.String KEY_LEFTICON = "android.car.app.menu.leftIcon";
203 field public static final java.lang.String KEY_REMOTEVIEWS = "android.car.app.menu.remoteViews";
204 field public static final java.lang.String KEY_RIGHTICON = "android.car.app.menu.rightIcon";
205 field public static final java.lang.String KEY_RIGHTTEXT = "android.car.app.menu.rightText";
206 field public static final java.lang.String KEY_TEXT = "android.car.app.menu.text";
207 field public static final java.lang.String KEY_TITLE = "android.car.app.menu.title";
208 field public static final java.lang.String KEY_WIDGET = "android.car.app.menu.widget";
209 field public static final java.lang.String KEY_WIDGET_STATE = "android.car.app.menu.widget_state";
210 field public static final int WIDGET_CHECKBOX = 1; // 0x1
211 field public static final int WIDGET_TEXT_VIEW = 2; // 0x2
212 }
213
214 public static abstract class CarMenuConstants.MenuItemConstants.MenuItemFlags implements java.lang.annotation.Annotation {
215 }
216
217 public static abstract class CarMenuConstants.MenuItemConstants.WidgetTypes implements java.lang.annotation.Annotation {
218 }
219
220 public abstract class CarUiEntry {
221 ctor public CarUiEntry(android.content.Context, android.content.Context);
222 method public abstract void closeDrawer();
223 method public abstract android.view.View getContentView();
224 method public abstract int getFragmentContainerId();
225 method public abstract java.lang.CharSequence getSearchBoxText();
226 method public abstract void hideMenuButton();
227 method public abstract void hideTitle();
228 method public abstract void onPause();
229 method public abstract void onRestoreInstanceState(android.os.Bundle);
230 method public abstract void onResume();
231 method public abstract void onSaveInstanceState(android.os.Bundle);
232 method public abstract void onStart();
233 method public abstract void onStop();
234 method public abstract void openDrawer();
235 method public abstract void restoreMenuDrawable();
236 method public abstract void setAutoLightDarkMode();
237 method public abstract void setBackground(android.graphics.Bitmap);
Vitalii Tomkiv280b5722016-03-17 16:17:21 -0700238 method public abstract void setCarMenuCallbacks(android.car.app.menu.CarMenuCallbacks);
239 method public abstract void setDarkMode();
240 method public abstract void setLightMode();
241 method public abstract void setMenuButtonBitmap(android.graphics.Bitmap);
242 method public abstract void setMenuButtonColor(int);
243 method public abstract void setScrimColor(int);
244 method public abstract void setSearchBoxColors(int, int, int, int);
245 method public abstract void setSearchBoxEditListener(android.car.app.menu.SearchBoxEditListener);
246 method public abstract void setSearchBoxEndView(android.view.View);
247 method public abstract void setTitle(java.lang.CharSequence);
248 method public abstract void showMenu(java.lang.String, java.lang.String);
249 method public abstract void showSearchBox(android.view.View.OnClickListener);
250 method public abstract void showTitle();
251 method public abstract void showToast(java.lang.String, long);
252 method public abstract android.widget.EditText startInput(java.lang.String, android.view.View.OnClickListener);
253 method public abstract void stopInput();
254 field protected final android.content.Context mAppContext;
255 field protected final android.content.Context mUiLibContext;
256 }
257
258 public class RootMenu {
259 ctor public RootMenu(java.lang.String);
260 ctor public RootMenu(java.lang.String, android.os.Bundle);
261 method public android.os.Bundle getBundle();
262 method public java.lang.String getId();
263 }
264
265 public abstract class SearchBoxEditListener {
266 ctor public SearchBoxEditListener();
267 method public abstract void onEdit(java.lang.String);
268 method public abstract void onSearch(java.lang.String);
269 }
270
271 public abstract class SubscriptionCallbacks {
272 ctor public SubscriptionCallbacks();
273 method public abstract void onChildChanged(java.lang.String, android.os.Bundle);
274 method public abstract void onChildrenLoaded(java.lang.String, java.util.List<android.os.Bundle>);
275 method public abstract void onError(java.lang.String);
276 }
277
278}
279
280package android.car.cluster.renderer {
281
282 public class DisplayConfiguration implements android.os.Parcelable {
283 ctor public DisplayConfiguration(android.os.Parcel);
284 ctor public DisplayConfiguration(android.graphics.Rect);
285 ctor public DisplayConfiguration(android.graphics.Rect, android.graphics.Rect);
286 method public int describeContents();
287 method public android.graphics.Rect getPrimaryRegion();
288 method public android.graphics.Rect getSecondaryRegion();
289 method public boolean hasSecondaryRegion();
290 method public void writeToParcel(android.os.Parcel, int);
291 field public static final android.os.Parcelable.Creator<android.car.cluster.renderer.DisplayConfiguration> CREATOR;
292 }
293
294 public abstract class InstrumentClusterRenderer {
295 ctor public InstrumentClusterRenderer();
296 method protected abstract android.car.cluster.renderer.NavigationRenderer createNavigationRenderer();
Vitalii Tomkiv280b5722016-03-17 16:17:21 -0700297 method public synchronized android.car.cluster.renderer.NavigationRenderer getNavigationRenderer();
298 method public final synchronized void initialize();
299 method public abstract void onCreate(android.content.Context);
Vitalii Tomkiv280b5722016-03-17 16:17:21 -0700300 method public abstract void onStart();
301 method public abstract void onStop();
302 }
303
Pavel Maltsev0477e292016-05-27 12:22:36 -0700304 public abstract class InstrumentClusterRenderingService extends android.app.Service {
305 ctor public InstrumentClusterRenderingService();
306 method protected abstract android.car.cluster.renderer.NavigationRenderer getNavigationRenderer();
307 method public android.os.IBinder onBind(android.content.Intent);
Pavel Maltsev03cf60c2016-06-27 15:11:51 -0700308 method protected void onKeyEvent(android.view.KeyEvent);
Pavel Maltsev0477e292016-05-27 12:22:36 -0700309 }
310
Vitalii Tomkiv280b5722016-03-17 16:17:21 -0700311 public abstract class NavigationRenderer {
312 ctor public NavigationRenderer();
Pavel Maltsev8cf86912016-04-01 18:01:51 -0700313 method public abstract android.car.navigation.CarNavigationInstrumentCluster getNavigationProperties();
Keun-young Park3388e782016-10-05 16:28:32 -0700314 method public abstract void onNextTurnChanged(int, java.lang.CharSequence, int, int, android.graphics.Bitmap, int);
Pavel Maltseva928f132016-08-01 16:46:10 -0700315 method public abstract void onNextTurnDistanceChanged(int, int, int, int);
Vitalii Tomkiv280b5722016-03-17 16:17:21 -0700316 method public abstract void onStartNavigation();
317 method public abstract void onStopNavigation();
318 }
319
320}
321
322package android.car.content.pm {
323
324 public class AppBlockingPackageInfo implements android.os.Parcelable {
325 ctor public AppBlockingPackageInfo(java.lang.String, int, int, int, android.content.pm.Signature[], java.lang.String[]);
326 ctor public AppBlockingPackageInfo(android.os.Parcel);
327 method public int describeContents();
328 method public void writeToParcel(android.os.Parcel, int);
329 field public static final android.os.Parcelable.Creator<android.car.content.pm.AppBlockingPackageInfo> CREATOR;
330 field public static final int FLAG_SYSTEM_APP = 1; // 0x1
331 field public static final int FLAG_WHOLE_ACTIVITY = 2; // 0x2
332 field public final java.lang.String[] activities;
333 field public final int flags;
334 field public final int maxRevisionCode;
335 field public final int minRevisionCode;
336 field public final java.lang.String packageName;
337 field public final android.content.pm.Signature[] signatures;
338 }
339
340 public class CarAppBlockingPolicy implements android.os.Parcelable {
341 ctor public CarAppBlockingPolicy(android.car.content.pm.AppBlockingPackageInfo[], android.car.content.pm.AppBlockingPackageInfo[]);
342 ctor public CarAppBlockingPolicy(android.os.Parcel);
343 method public int describeContents();
344 method public void writeToParcel(android.os.Parcel, int);
345 field public static final android.os.Parcelable.Creator<android.car.content.pm.CarAppBlockingPolicy> CREATOR;
346 field public final android.car.content.pm.AppBlockingPackageInfo[] blacklists;
347 field public final android.car.content.pm.AppBlockingPackageInfo[] whitelists;
348 }
349
350 public abstract class CarAppBlockingPolicyService extends android.app.Service {
351 ctor public CarAppBlockingPolicyService();
352 method protected abstract android.car.content.pm.CarAppBlockingPolicy getAppBlockingPolicy();
353 method public android.os.IBinder onBind(android.content.Intent);
354 field public static final java.lang.String SERVICE_INTERFACE = "android.car.content.pm.CarAppBlockingPolicyService";
355 }
356
Keun-young Park4cf69112016-10-04 10:02:59 -0700357 public final class CarPackageManager {
Vitalii Tomkiv280b5722016-03-17 16:17:21 -0700358 method public boolean isActivityAllowedWhileDriving(java.lang.String, java.lang.String) throws android.car.CarNotConnectedException;
Keun-young Park4727da32016-05-31 10:00:51 -0700359 method public boolean isActivityBackedBySafeActivity(android.content.ComponentName) throws android.car.CarNotConnectedException;
Vitalii Tomkiv280b5722016-03-17 16:17:21 -0700360 method public boolean isServiceAllowedWhileDriving(java.lang.String, java.lang.String) throws android.car.CarNotConnectedException;
361 method public void setAppBlockingPolicy(java.lang.String, android.car.content.pm.CarAppBlockingPolicy, int) throws android.car.CarNotConnectedException, java.lang.IllegalArgumentException, java.lang.SecurityException;
362 field public static final int FLAG_SET_POLICY_ADD = 2; // 0x2
363 field public static final int FLAG_SET_POLICY_REMOVE = 4; // 0x4
364 field public static final int FLAG_SET_POLICY_WAIT_FOR_CHANGE = 1; // 0x1
365 }
366
367}
368
369package android.car.hardware {
370
Keun-young Park60891562016-09-28 11:16:02 -0700371 public class CarPropertyConfig<T> implements android.os.Parcelable {
Steve Paikfb5f6232016-03-28 10:31:25 -0700372 method public int describeContents();
373 method public int getAreaCount();
374 method public int[] getAreaIds();
375 method public int getAreaType();
376 method public int getFirstAndOnlyAreaId();
377 method public T getMaxValue(int);
378 method public T getMaxValue();
379 method public T getMinValue(int);
380 method public T getMinValue();
381 method public int getPropertyId();
382 method public java.lang.Class<T> getPropertyType();
383 method public boolean hasArea(int);
384 method public boolean isGlobalProperty();
Keun-young Park60891562016-09-28 11:16:02 -0700385 method public static <T> android.car.hardware.CarPropertyConfig.Builder<T> newBuilder(java.lang.Class<T>, int, int, int);
386 method public static <T> android.car.hardware.CarPropertyConfig.Builder<T> newBuilder(java.lang.Class<T>, int, int);
Steve Paikfb5f6232016-03-28 10:31:25 -0700387 method public void writeToParcel(android.os.Parcel, int);
388 field public static final android.os.Parcelable.Creator<android.car.hardware.CarPropertyConfig> CREATOR;
389 }
390
Keun-young Park60891562016-09-28 11:16:02 -0700391 public static class CarPropertyConfig.AreaConfig<T> implements android.os.Parcelable {
Steve Paikfb5f6232016-03-28 10:31:25 -0700392 method public int describeContents();
393 method public T getMaxValue();
394 method public T getMinValue();
395 method public void writeToParcel(android.os.Parcel, int);
396 field public static final android.os.Parcelable.Creator<android.car.hardware.CarPropertyConfig.AreaConfig<java.lang.Object>> CREATOR;
397 }
398
Keun-young Park60891562016-09-28 11:16:02 -0700399 public static class CarPropertyConfig.Builder<T> {
Steve Paikfb5f6232016-03-28 10:31:25 -0700400 method public android.car.hardware.CarPropertyConfig.Builder<T> addArea(int);
401 method public android.car.hardware.CarPropertyConfig.Builder<T> addAreaConfig(int, T, T);
402 method public android.car.hardware.CarPropertyConfig.Builder<T> addAreas(int[]);
403 method public android.car.hardware.CarPropertyConfig<T> build();
404 }
405
Keun-young Park60891562016-09-28 11:16:02 -0700406 public class CarPropertyValue<T> implements android.os.Parcelable {
Steve Paikfb5f6232016-03-28 10:31:25 -0700407 ctor public CarPropertyValue(int, T);
408 ctor public CarPropertyValue(int, int, T);
409 ctor public CarPropertyValue(android.os.Parcel);
410 method public int describeContents();
411 method public int getAreaId();
412 method public int getPropertyId();
413 method public T getValue();
414 method public void writeToParcel(android.os.Parcel, int);
415 field public static final android.os.Parcelable.Creator<android.car.hardware.CarPropertyValue> CREATOR;
416 }
417
Vitalii Tomkiv280b5722016-03-17 16:17:21 -0700418 public class CarSensorEvent implements android.os.Parcelable {
Vitalii Tomkiv280b5722016-03-17 16:17:21 -0700419 method public int describeContents();
Vitalii Tomkiv280b5722016-03-17 16:17:21 -0700420 method public void writeToParcel(android.os.Parcel, int);
421 field public static final android.os.Parcelable.Creator<android.car.hardware.CarSensorEvent> CREATOR;
422 field public static final int DRIVE_STATUS_FULLY_RESTRICTED = 31; // 0x1f
423 field public static final int DRIVE_STATUS_LIMIT_MESSAGE_LEN = 16; // 0x10
424 field public static final int DRIVE_STATUS_NO_CONFIG = 8; // 0x8
425 field public static final int DRIVE_STATUS_NO_KEYBOARD_INPUT = 2; // 0x2
426 field public static final int DRIVE_STATUS_NO_VIDEO = 1; // 0x1
427 field public static final int DRIVE_STATUS_NO_VOICE_INPUT = 4; // 0x4
428 field public static final int DRIVE_STATUS_UNRESTRICTED = 0; // 0x0
429 field public static final int GEAR_DRIVE = 100; // 0x64
430 field public static final int GEAR_EIGHTH = 8; // 0x8
431 field public static final int GEAR_FIFTH = 5; // 0x5
432 field public static final int GEAR_FIRST = 1; // 0x1
433 field public static final int GEAR_FOURTH = 4; // 0x4
434 field public static final int GEAR_NEUTRAL = 0; // 0x0
435 field public static final int GEAR_NINTH = 9; // 0x9
436 field public static final int GEAR_PARK = 101; // 0x65
437 field public static final int GEAR_REVERSE = 102; // 0x66
438 field public static final int GEAR_SECOND = 2; // 0x2
439 field public static final int GEAR_SEVENTH = 7; // 0x7
440 field public static final int GEAR_SIXTH = 6; // 0x6
441 field public static final int GEAR_TENTH = 10; // 0xa
442 field public static final int GEAR_THIRD = 3; // 0x3
Pavel Maltsev1e5a88b2016-12-15 17:51:29 -0800443 field public static final int IGNITION_STATE_ACC = 3; // 0x3
444 field public static final int IGNITION_STATE_LOCK = 1; // 0x1
445 field public static final int IGNITION_STATE_OFF = 2; // 0x2
446 field public static final int IGNITION_STATE_ON = 4; // 0x4
447 field public static final int IGNITION_STATE_START = 5; // 0x5
448 field public static final int IGNITION_STATE_UNDEFINED = 0; // 0x0
Vitalii Tomkiv280b5722016-03-17 16:17:21 -0700449 field public static final int INDEX_ENVIRONMENT_PRESSURE = 1; // 0x1
450 field public static final int INDEX_ENVIRONMENT_TEMPERATURE = 0; // 0x0
451 field public static final int INDEX_FUEL_LEVEL_IN_DISTANCE = 1; // 0x1
452 field public static final int INDEX_FUEL_LEVEL_IN_PERCENTILE = 0; // 0x0
453 field public static final int INDEX_FUEL_LOW_WARNING = 0; // 0x0
454 field public final float[] floatValues;
455 field public final int[] intValues;
456 field public int sensorType;
Jason Tholstrupd72b5352016-09-22 16:32:14 -0700457 field public long timestamp;
Vitalii Tomkiv280b5722016-03-17 16:17:21 -0700458 }
459
460 public static class CarSensorEvent.EnvironmentData {
Vitalii Tomkiv280b5722016-03-17 16:17:21 -0700461 field public float pressure;
462 field public float temperature;
Jason Tholstrupd72b5352016-09-22 16:32:14 -0700463 field public long timestamp;
Vitalii Tomkiv280b5722016-03-17 16:17:21 -0700464 }
465
Keun-young Park4cf69112016-10-04 10:02:59 -0700466 public final class CarSensorManager {
Vitalii Tomkiv280b5722016-03-17 16:17:21 -0700467 method public android.car.hardware.CarSensorEvent getLatestSensorEvent(int) throws android.car.CarNotConnectedException;
468 method public int[] getSupportedSensors() throws android.car.CarNotConnectedException;
469 method public boolean isSensorSupported(int) throws android.car.CarNotConnectedException;
470 method public static boolean isSensorSupported(int[], int);
Jason Tholstrupd72b5352016-09-22 16:32:14 -0700471 method public boolean registerListener(android.car.hardware.CarSensorManager.OnSensorChangedListener, int, int) throws android.car.CarNotConnectedException, java.lang.IllegalArgumentException;
Keun-young Park150d8de2016-10-07 15:48:11 -0700472 method public void unregisterListener(android.car.hardware.CarSensorManager.OnSensorChangedListener);
473 method public void unregisterListener(android.car.hardware.CarSensorManager.OnSensorChangedListener, int);
Vitalii Tomkiv280b5722016-03-17 16:17:21 -0700474 field public static final int SENSOR_RATE_FAST = 1; // 0x1
475 field public static final int SENSOR_RATE_FASTEST = 0; // 0x0
476 field public static final int SENSOR_RATE_NORMAL = 3; // 0x3
477 field public static final int SENSOR_RATE_UI = 2; // 0x2
478 field public static final int SENSOR_TYPE_CAR_SPEED = 2; // 0x2
Jason Tholstrup9eae32f2016-05-10 14:39:05 -0700479 field public static final int SENSOR_TYPE_DRIVING_STATUS = 11; // 0xb
480 field public static final int SENSOR_TYPE_ENVIRONMENT = 12; // 0xc
Vitalii Tomkiv280b5722016-03-17 16:17:21 -0700481 field public static final int SENSOR_TYPE_FUEL_LEVEL = 5; // 0x5
482 field public static final int SENSOR_TYPE_GEAR = 7; // 0x7
Pavel Maltsev1e5a88b2016-12-15 17:51:29 -0800483 field public static final int SENSOR_TYPE_IGNITION_STATE = 22; // 0x16
Jason Tholstrup9eae32f2016-05-10 14:39:05 -0700484 field public static final int SENSOR_TYPE_NIGHT = 9; // 0x9
Vitalii Tomkiv280b5722016-03-17 16:17:21 -0700485 field public static final int SENSOR_TYPE_ODOMETER = 4; // 0x4
486 field public static final int SENSOR_TYPE_PARKING_BRAKE = 6; // 0x6
487 field public static final int SENSOR_TYPE_RPM = 3; // 0x3
488 field public static final int SENSOR_TYPE_VENDOR_EXTENSION_END = 1879048191; // 0x6fffffff
489 }
490
Jason Tholstrupd72b5352016-09-22 16:32:14 -0700491 public static abstract interface CarSensorManager.OnSensorChangedListener {
Vitalii Tomkiv280b5722016-03-17 16:17:21 -0700492 method public abstract void onSensorChanged(android.car.hardware.CarSensorEvent);
493 }
494
Keun-young Park4cf69112016-10-04 10:02:59 -0700495 public final class CarVendorExtensionManager {
Keun-young Park60891562016-09-28 11:16:02 -0700496 method public <E> E getGlobalProperty(java.lang.Class<E>, int) throws android.car.CarNotConnectedException;
Pavel Maltsev634e1ff2016-07-14 15:41:26 -0700497 method public java.util.List<android.car.hardware.CarPropertyConfig> getProperties() throws android.car.CarNotConnectedException;
Keun-young Park60891562016-09-28 11:16:02 -0700498 method public <E> E getProperty(java.lang.Class<E>, int, int) throws android.car.CarNotConnectedException;
Keun-young Parkaf2cc992016-10-07 11:46:45 -0700499 method public void registerCallback(android.car.hardware.CarVendorExtensionManager.CarVendorExtensionCallback) throws android.car.CarNotConnectedException;
Keun-young Park60891562016-09-28 11:16:02 -0700500 method public <E> void setGlobalProperty(java.lang.Class<E>, int, E) throws android.car.CarNotConnectedException;
501 method public <E> void setProperty(java.lang.Class<E>, int, int, E) throws android.car.CarNotConnectedException;
Keun-young Park150d8de2016-10-07 15:48:11 -0700502 method public void unregisterCallback(android.car.hardware.CarVendorExtensionManager.CarVendorExtensionCallback);
Pavel Maltsev634e1ff2016-07-14 15:41:26 -0700503 }
504
Keun-young Parkaf2cc992016-10-07 11:46:45 -0700505 public static abstract interface CarVendorExtensionManager.CarVendorExtensionCallback {
Pavel Maltsev634e1ff2016-07-14 15:41:26 -0700506 method public abstract void onChangeEvent(android.car.hardware.CarPropertyValue);
507 method public abstract void onErrorEvent(int, int);
508 }
509
Vitalii Tomkiv280b5722016-03-17 16:17:21 -0700510}
511
Steve Paik43c04a72016-07-08 19:12:09 -0700512package android.car.hardware.cabin {
513
Keun-young Park4cf69112016-10-04 10:02:59 -0700514 public final class CarCabinManager {
Steve Paik43c04a72016-07-08 19:12:09 -0700515 method public boolean getBooleanProperty(int, int) throws android.car.CarNotConnectedException;
516 method public float getFloatProperty(int, int) throws android.car.CarNotConnectedException;
517 method public int getIntProperty(int, int) throws android.car.CarNotConnectedException;
518 method public java.util.List<android.car.hardware.CarPropertyConfig> getPropertyList() throws android.car.CarNotConnectedException;
519 method public static boolean isZonedProperty(int);
Keun-young Parkaf2cc992016-10-07 11:46:45 -0700520 method public synchronized void registerCallback(android.car.hardware.cabin.CarCabinManager.CarCabinEventCallback) throws android.car.CarNotConnectedException;
Steve Paik43c04a72016-07-08 19:12:09 -0700521 method public void setBooleanProperty(int, int, boolean) throws android.car.CarNotConnectedException;
522 method public void setFloatProperty(int, int, float) throws android.car.CarNotConnectedException;
523 method public void setIntProperty(int, int, int) throws android.car.CarNotConnectedException;
Keun-young Park150d8de2016-10-07 15:48:11 -0700524 method public synchronized void unregisterCallback(android.car.hardware.cabin.CarCabinManager.CarCabinEventCallback);
Keun-young Parkaf2cc992016-10-07 11:46:45 -0700525 field public static final int ID_DOOR_LOCK = 3; // 0x3
526 field public static final int ID_DOOR_MOVE = 2; // 0x2
527 field public static final int ID_DOOR_POS = 1; // 0x1
528 field public static final int ID_MIRROR_FOLD = 4102; // 0x1006
529 field public static final int ID_MIRROR_LOCK = 4101; // 0x1005
530 field public static final int ID_MIRROR_Y_MOVE = 4100; // 0x1004
531 field public static final int ID_MIRROR_Y_POS = 4099; // 0x1003
532 field public static final int ID_MIRROR_Z_MOVE = 4098; // 0x1002
533 field public static final int ID_MIRROR_Z_POS = 4097; // 0x1001
534 field public static final int ID_SEAT_BACKREST_ANGLE_1_MOVE = 8201; // 0x2009
535 field public static final int ID_SEAT_BACKREST_ANGLE_1_POS = 8200; // 0x2008
536 field public static final int ID_SEAT_BACKREST_ANGLE_2_MOVE = 8203; // 0x200b
537 field public static final int ID_SEAT_BACKREST_ANGLE_2_POS = 8202; // 0x200a
538 field public static final int ID_SEAT_BELT_BUCKLED = 8195; // 0x2003
539 field public static final int ID_SEAT_BELT_HEIGHT_MOVE = 8197; // 0x2005
540 field public static final int ID_SEAT_BELT_HEIGHT_POS = 8196; // 0x2004
541 field public static final int ID_SEAT_DEPTH_MOVE = 8207; // 0x200f
542 field public static final int ID_SEAT_DEPTH_POS = 8206; // 0x200e
543 field public static final int ID_SEAT_FORE_AFT_MOVE = 8199; // 0x2007
544 field public static final int ID_SEAT_FORE_AFT_POS = 8198; // 0x2006
545 field public static final int ID_SEAT_HEADREST_ANGLE_MOVE = 8217; // 0x2019
546 field public static final int ID_SEAT_HEADREST_ANGLE_POS = 8216; // 0x2018
547 field public static final int ID_SEAT_HEADREST_FORE_AFT_MOVE = 8219; // 0x201b
548 field public static final int ID_SEAT_HEADREST_FORE_AFT_POS = 8218; // 0x201a
549 field public static final int ID_SEAT_HEADREST_HEIGHT_MOVE = 8215; // 0x2017
550 field public static final int ID_SEAT_HEADREST_HEIGHT_POS = 8214; // 0x2016
551 field public static final int ID_SEAT_HEIGHT_MOVE = 8205; // 0x200d
552 field public static final int ID_SEAT_HEIGHT_POS = 8204; // 0x200c
553 field public static final int ID_SEAT_LUMBAR_FORE_AFT_MOVE = 8211; // 0x2013
554 field public static final int ID_SEAT_LUMBAR_FORE_AFT_POS = 8210; // 0x2012
555 field public static final int ID_SEAT_LUMBAR_SIDE_SUPPORT_MOVE = 8213; // 0x2015
556 field public static final int ID_SEAT_LUMBAR_SIDE_SUPPORT_POS = 8212; // 0x2014
557 field public static final int ID_SEAT_MEMORY_SELECT = 8193; // 0x2001
558 field public static final int ID_SEAT_MEMORY_SET = 8194; // 0x2002
559 field public static final int ID_SEAT_TILT_MOVE = 8209; // 0x2011
560 field public static final int ID_SEAT_TILT_POS = 8208; // 0x2010
561 field public static final int ID_WINDOW_LOCK = 12293; // 0x3005
562 field public static final int ID_WINDOW_MOVE = 12290; // 0x3002
563 field public static final int ID_WINDOW_POS = 12289; // 0x3001
564 field public static final int ID_WINDOW_VENT_MOVE = 12292; // 0x3004
565 field public static final int ID_WINDOW_VENT_POS = 12291; // 0x3003
Steve Paik43c04a72016-07-08 19:12:09 -0700566 }
567
Keun-young Parkaf2cc992016-10-07 11:46:45 -0700568 public static abstract interface CarCabinManager.CarCabinEventCallback {
Steve Paik43c04a72016-07-08 19:12:09 -0700569 method public abstract void onChangeEvent(android.car.hardware.CarPropertyValue);
570 method public abstract void onErrorEvent(int, int);
571 }
572
Vitalii Tomkiv280b5722016-03-17 16:17:21 -0700573}
574
575package android.car.hardware.camera {
576
577 public class CarCamera {
578 ctor public CarCamera(android.car.hardware.camera.ICarCamera, int);
Vitalii Tomkiv235f8ac2016-04-04 11:26:49 -0700579 method public android.graphics.Rect getCameraCrop() throws android.car.CarNotConnectedException;
580 method public android.graphics.Rect getCameraPosition() throws android.car.CarNotConnectedException;
581 method public android.car.hardware.camera.CarCameraState getCameraState() throws android.car.CarNotConnectedException;
582 method public int getCapabilities() throws android.car.CarNotConnectedException;
583 method public void setCameraCrop(android.graphics.Rect) throws android.car.CarNotConnectedException;
584 method public void setCameraPosition(android.graphics.Rect) throws android.car.CarNotConnectedException;
585 method public void setCameraState(android.car.hardware.camera.CarCameraState) throws android.car.CarNotConnectedException;
Vitalii Tomkiv280b5722016-03-17 16:17:21 -0700586 field public static final java.lang.String TAG;
587 field public final int mCameraType;
588 }
589
Keun-young Park4cf69112016-10-04 10:02:59 -0700590 public final class CarCameraManager {
Vitalii Tomkiv280b5722016-03-17 16:17:21 -0700591 method public void closeCamera(android.car.hardware.camera.CarCamera);
Vitalii Tomkiv235f8ac2016-04-04 11:26:49 -0700592 method public int getCameraCapabilities(int) throws android.car.CarNotConnectedException;
Keun-young Park150d8de2016-10-07 15:48:11 -0700593 method public int[] getCameraList() throws android.car.CarNotConnectedException;
594 method public android.car.hardware.camera.CarCamera openCamera(int) throws android.car.CarNotConnectedException;
Vitalii Tomkiv280b5722016-03-17 16:17:21 -0700595 field public static final int ANDROID_OVERLAY_SUPPORT_FLAG = 1; // 0x1
596 field public static final int CAMERA_CROP_SUPPORT_FLAG = 2; // 0x2
597 field public static final int CAMERA_POSITIONING_SUPPORT_FLAG = 4; // 0x4
598 field public static final int CAR_CAMERA_TYPE_NONE = 0; // 0x0
599 field public static final int CAR_CAMERA_TYPE_RVC = 1; // 0x1
Vitalii Tomkiv280b5722016-03-17 16:17:21 -0700600 }
601
602 public class CarCameraState implements android.os.Parcelable {
603 ctor public CarCameraState(android.car.hardware.camera.CarCameraState);
604 ctor public CarCameraState(boolean, boolean);
605 method public int describeContents();
606 method public boolean getCameraIsOn();
607 method public boolean getOverlayIsOn();
608 method public void setCameraIsOn(boolean);
609 method public void setOverlayIsOn(boolean);
610 method public void writeToParcel(android.os.Parcel, int);
611 field public static final android.os.Parcelable.Creator<android.car.hardware.camera.CarCameraState> CREATOR;
612 }
613
614 public abstract interface ICarCamera implements android.os.IInterface {
615 method public abstract android.graphics.Rect getCameraCrop(int) throws android.os.RemoteException;
616 method public abstract int[] getCameraList() throws android.os.RemoteException;
617 method public abstract android.graphics.Rect getCameraPosition(int) throws android.os.RemoteException;
618 method public abstract android.car.hardware.camera.CarCameraState getCameraState(int) throws android.os.RemoteException;
619 method public abstract int getCapabilities(int) throws android.os.RemoteException;
620 method public abstract void setCameraCrop(int, android.graphics.Rect) throws android.os.RemoteException;
621 method public abstract void setCameraPosition(int, android.graphics.Rect) throws android.os.RemoteException;
622 method public abstract void setCameraState(int, android.car.hardware.camera.CarCameraState) throws android.os.RemoteException;
623 }
624
625}
626
627package android.car.hardware.hvac {
628
Keun-young Park4cf69112016-10-04 10:02:59 -0700629 public final class CarHvacManager {
Vitalii Tomkiv235f8ac2016-04-04 11:26:49 -0700630 method public boolean getBooleanProperty(int, int) throws android.car.CarNotConnectedException;
631 method public float getFloatProperty(int, int) throws android.car.CarNotConnectedException;
632 method public int getIntProperty(int, int) throws android.car.CarNotConnectedException;
Steve Paikfb5f6232016-03-28 10:31:25 -0700633 method public java.util.List<android.car.hardware.CarPropertyConfig> getPropertyList() throws android.car.CarNotConnectedException;
Vitalii Tomkiv280b5722016-03-17 16:17:21 -0700634 method public static boolean isZonedProperty(int);
Keun-young Parkaf2cc992016-10-07 11:46:45 -0700635 method public synchronized void registerCallback(android.car.hardware.hvac.CarHvacManager.CarHvacEventCallback) throws android.car.CarNotConnectedException;
Vitalii Tomkiv235f8ac2016-04-04 11:26:49 -0700636 method public void setBooleanProperty(int, int, boolean) throws android.car.CarNotConnectedException;
637 method public void setFloatProperty(int, int, float) throws android.car.CarNotConnectedException;
638 method public void setIntProperty(int, int, int) throws android.car.CarNotConnectedException;
Keun-young Park150d8de2016-10-07 15:48:11 -0700639 method public synchronized void unregisterCallback(android.car.hardware.hvac.CarHvacManager.CarHvacEventCallback);
Pavel Maltsev5e9202e2017-01-10 14:34:22 -0800640 field public static final int FAN_POSITION_DEFROST = 4; // 0x4
641 field public static final int FAN_POSITION_DEFROST_AND_FLOOR = 5; // 0x5
642 field public static final int FAN_POSITION_FACE = 1; // 0x1
643 field public static final int FAN_POSITION_FACE_AND_FLOOR = 3; // 0x3
644 field public static final int FAN_POSITION_FLOOR = 2; // 0x2
Keun-young Parkaf2cc992016-10-07 11:46:45 -0700645 field public static final int ID_MIRROR_DEFROSTER_ON = 1; // 0x1
646 field public static final int ID_OUTSIDE_AIR_TEMP = 3; // 0x3
647 field public static final int ID_STEERING_WHEEL_TEMP = 2; // 0x2
648 field public static final int ID_TEMPERATURE_UNITS = 4; // 0x4
649 field public static final int ID_WINDOW_DEFROSTER_ON = 20481; // 0x5001
650 field public static final int ID_ZONED_AC_ON = 16393; // 0x4009
651 field public static final int ID_ZONED_AIR_RECIRCULATION_ON = 16395; // 0x400b
652 field public static final int ID_ZONED_AUTOMATIC_MODE_ON = 16394; // 0x400a
653 field public static final int ID_ZONED_DUAL_ZONE_ON = 16397; // 0x400d
654 field public static final int ID_ZONED_FAN_POSITION = 16391; // 0x4007
655 field public static final int ID_ZONED_FAN_POSITION_AVAILABLE = 16390; // 0x4006
656 field public static final int ID_ZONED_FAN_SPEED_RPM = 16389; // 0x4005
657 field public static final int ID_ZONED_FAN_SPEED_SETPOINT = 16388; // 0x4004
658 field public static final int ID_ZONED_HVAC_POWER_ON = 16387; // 0x4003
659 field public static final int ID_ZONED_MAX_AC_ON = 16396; // 0x400c
660 field public static final int ID_ZONED_MAX_DEFROST_ON = 16398; // 0x400e
661 field public static final int ID_ZONED_SEAT_TEMP = 16392; // 0x4008
662 field public static final int ID_ZONED_TEMP_ACTUAL = 16386; // 0x4002
663 field public static final int ID_ZONED_TEMP_SETPOINT = 16385; // 0x4001
Vitalii Tomkiv280b5722016-03-17 16:17:21 -0700664 }
665
Keun-young Parkaf2cc992016-10-07 11:46:45 -0700666 public static abstract interface CarHvacManager.CarHvacEventCallback {
Steve Paikfb5f6232016-03-28 10:31:25 -0700667 method public abstract void onChangeEvent(android.car.hardware.CarPropertyValue);
Vitalii Tomkiv280b5722016-03-17 16:17:21 -0700668 method public abstract void onErrorEvent(int, int);
669 }
670
Vitalii Tomkiv280b5722016-03-17 16:17:21 -0700671}
672
673package android.car.hardware.radio {
674
675 public class CarRadioEvent implements android.os.Parcelable {
676 ctor public CarRadioEvent(int, android.car.hardware.radio.CarRadioPreset);
677 method public int describeContents();
678 method public int getEventType();
679 method public android.car.hardware.radio.CarRadioPreset getPreset();
680 method public void writeToParcel(android.os.Parcel, int);
681 field public static final android.os.Parcelable.Creator<android.car.hardware.radio.CarRadioEvent> CREATOR;
682 field public static final int RADIO_PRESET = 0; // 0x0
683 }
684
Keun-young Park4cf69112016-10-04 10:02:59 -0700685 public final class CarRadioManager {
Vitalii Tomkiv235f8ac2016-04-04 11:26:49 -0700686 method public android.car.hardware.radio.CarRadioPreset getPreset(int) throws android.car.CarNotConnectedException;
Keun-young Park150d8de2016-10-07 15:48:11 -0700687 method public int getPresetCount() throws android.car.CarNotConnectedException;
Vitalii Tomkiv280b5722016-03-17 16:17:21 -0700688 method public synchronized void registerListener(android.car.hardware.radio.CarRadioManager.CarRadioEventListener) throws android.car.CarNotConnectedException;
Vitalii Tomkiv235f8ac2016-04-04 11:26:49 -0700689 method public boolean setPreset(android.car.hardware.radio.CarRadioPreset) throws android.car.CarNotConnectedException, java.lang.IllegalArgumentException;
Keun-young Park150d8de2016-10-07 15:48:11 -0700690 method public synchronized void unregisterListener();
Vitalii Tomkiv280b5722016-03-17 16:17:21 -0700691 }
692
693 public static abstract interface CarRadioManager.CarRadioEventListener {
694 method public abstract void onEvent(android.car.hardware.radio.CarRadioEvent);
695 }
696
697 public class CarRadioPreset implements android.os.Parcelable {
698 ctor public CarRadioPreset(int, int, int, int);
699 method public int describeContents();
700 method public int getBand();
701 method public int getChannel();
702 method public int getPresetNumber();
703 method public int getSubChannel();
704 method public void writeToParcel(android.os.Parcel, int);
705 field public static final android.os.Parcelable.Creator<android.car.hardware.radio.CarRadioPreset> CREATOR;
706 }
707
708}
709
Vitalii Tomkiv2bd06922016-07-26 11:07:48 -0700710package android.car.input {
711
712 public abstract class CarInputHandlingService extends android.app.Service {
713 ctor protected CarInputHandlingService(android.car.input.CarInputHandlingService.InputFilter[]);
714 method public android.os.IBinder onBind(android.content.Intent);
715 method protected abstract void onKeyEvent(android.view.KeyEvent, int);
716 field public static final int INPUT_CALLBACK_BINDER_CODE = 1; // 0x1
717 field public static final java.lang.String INPUT_CALLBACK_BINDER_KEY = "callback_binder";
718 }
719
720 public static class CarInputHandlingService.InputFilter implements android.os.Parcelable {
721 ctor public CarInputHandlingService.InputFilter(int, int);
722 method public int describeContents();
723 method public void writeToParcel(android.os.Parcel, int);
724 field public static final android.os.Parcelable.Creator CREATOR;
725 field public final int mKeyCode;
726 field public final int mTargetDisplay;
727 }
728
729}
730
Vitalii Tomkiv280b5722016-03-17 16:17:21 -0700731package android.car.media {
732
Keun-young Park4cf69112016-10-04 10:02:59 -0700733 public final class CarAudioManager {
Keun-young Park150d8de2016-10-07 15:48:11 -0700734 method public void abandonAudioFocus(android.media.AudioManager.OnAudioFocusChangeListener, android.media.AudioAttributes);
735 method public android.media.AudioAttributes getAudioAttributesForCarUsage(int) throws android.car.CarNotConnectedException;
Yao Chenc4d442f2016-04-08 11:33:47 -0700736 method public int getStreamMaxVolume(int) throws android.car.CarNotConnectedException;
737 method public int getStreamMinVolume(int) throws android.car.CarNotConnectedException;
738 method public int getStreamVolume(int) throws android.car.CarNotConnectedException;
Keun-young Park3cb89102016-05-05 13:16:03 -0700739 method public boolean isMediaMuted() throws android.car.CarNotConnectedException;
Keun-young Park150d8de2016-10-07 15:48:11 -0700740 method public int requestAudioFocus(android.media.AudioManager.OnAudioFocusChangeListener, android.media.AudioAttributes, int, int) throws android.car.CarNotConnectedException, java.lang.IllegalArgumentException;
Keun-young Park3cb89102016-05-05 13:16:03 -0700741 method public boolean setMediaMute(boolean) throws android.car.CarNotConnectedException;
Yao Chenc4d442f2016-04-08 11:33:47 -0700742 method public void setStreamVolume(int, int, int) throws android.car.CarNotConnectedException;
743 method public void setVolumeController(android.media.IVolumeController) throws android.car.CarNotConnectedException;
Vitalii Tomkiv280b5722016-03-17 16:17:21 -0700744 field public static final int CAR_AUDIO_USAGE_ALARM = 6; // 0x6
745 field public static final int CAR_AUDIO_USAGE_DEFAULT = 0; // 0x0
746 field public static final int CAR_AUDIO_USAGE_MUSIC = 1; // 0x1
747 field public static final int CAR_AUDIO_USAGE_NAVIGATION_GUIDANCE = 3; // 0x3
748 field public static final int CAR_AUDIO_USAGE_NOTIFICATION = 7; // 0x7
749 field public static final int CAR_AUDIO_USAGE_RADIO = 2; // 0x2
750 field public static final int CAR_AUDIO_USAGE_SYSTEM_SAFETY_ALERT = 9; // 0x9
751 field public static final int CAR_AUDIO_USAGE_SYSTEM_SOUND = 8; // 0x8
752 field public static final int CAR_AUDIO_USAGE_VOICE_CALL = 4; // 0x4
753 field public static final int CAR_AUDIO_USAGE_VOICE_COMMAND = 5; // 0x5
754 }
755
756}
757
758package android.car.navigation {
759
760 public class CarNavigationInstrumentCluster implements android.os.Parcelable {
761 ctor public CarNavigationInstrumentCluster(android.car.navigation.CarNavigationInstrumentCluster);
762 method public static android.car.navigation.CarNavigationInstrumentCluster createCluster(int);
763 method public static android.car.navigation.CarNavigationInstrumentCluster createCustomImageCluster(int, int, int, int);
764 method public int describeContents();
765 method public int getImageColorDepthBits();
766 method public int getImageHeight();
767 method public int getImageWidth();
Keun-young Park3388e782016-10-05 16:28:32 -0700768 method public int getMinIntervalMillis();
Vitalii Tomkiv280b5722016-03-17 16:17:21 -0700769 method public int getType();
770 method public boolean supportsCustomImages();
771 method public void writeToParcel(android.os.Parcel, int);
Keun-young Park3388e782016-10-05 16:28:32 -0700772 field public static final int CLUSTER_TYPE_CUSTOM_IMAGES_SUPPORTED = 1; // 0x1
773 field public static final int CLUSTER_TYPE_IMAGE_CODES_ONLY = 2; // 0x2
Vitalii Tomkiv280b5722016-03-17 16:17:21 -0700774 field public static final android.os.Parcelable.Creator<android.car.navigation.CarNavigationInstrumentCluster> CREATOR;
775 }
776
Vitalii Tomkiv280b5722016-03-17 16:17:21 -0700777}
778
Yao Chen94d47662016-07-28 14:03:28 -0700779package android.car.settings {
780
781 public class CarSettings {
782 ctor public CarSettings();
783 }
784
785 public static final class CarSettings.Global {
786 ctor public CarSettings.Global();
787 field public static final java.lang.String KEY_GARAGE_MODE_ENABLED = "android.car.GARAGE_MODE_ENABLED";
788 field public static final java.lang.String KEY_GARAGE_MODE_MAINTENANCE_WINDOW = "android.car.GARAGE_MODE_MAINTENANCE_WINDOW";
789 field public static final java.lang.String KEY_GARAGE_MODE_WAKE_UP_TIME = "android.car.GARAGE_MODE_WAKE_UP_TIME";
790 }
791
792}
793
Vitalii Tomkiv280b5722016-03-17 16:17:21 -0700794package android.car.test {
795
796 public class CarTestManagerBinderWrapper {
797 ctor public CarTestManagerBinderWrapper(android.os.IBinder);
798 method public void onCarDisconnected();
799 field public final android.os.IBinder binder;
800 }
801
802}
803
Antonio Cortesa7d8ed12017-02-02 11:50:01 -0800804package android.car.vms {
805
806 public class VmsProperty implements android.os.Parcelable {
807 ctor public VmsProperty(java.lang.String);
808 ctor public VmsProperty(android.os.Parcel);
809 method public int describeContents();
810 method public java.lang.String getValue();
811 method public void writeToParcel(android.os.Parcel, int);
812 field public static final android.os.Parcelable.Creator<android.car.vms.VmsProperty> CREATOR;
813 }
814
815 public final class VmsSubscriberManager {
816 ctor public VmsSubscriberManager(android.os.IBinder, android.os.Handler);
817 method public void clearListener();
818 method public void setListener(android.car.vms.VmsSubscriberManager.OnVmsMessageReceivedListener);
819 method public void subscribe(int, int, boolean) throws android.car.CarNotConnectedException;
820 method public void unsubscribe(int, int);
821 }
822
823 public static abstract interface VmsSubscriberManager.OnVmsMessageReceivedListener {
824 method public abstract void onVmsMessageReceived(android.car.vms.VmsProperty);
825 }
826
827}
828