| // Signature format: 2.0 |
| package android.car { |
| |
| public final class Car { |
| method @Deprecated public void connect() throws java.lang.IllegalStateException; |
| method @Deprecated public static android.car.Car createCar(android.content.Context, android.content.ServiceConnection, @Nullable android.os.Handler); |
| method @Deprecated public static android.car.Car createCar(android.content.Context, android.content.ServiceConnection); |
| method @Nullable public static android.car.Car createCar(android.content.Context); |
| method @Nullable public static android.car.Car createCar(android.content.Context, @Nullable android.os.Handler); |
| method public void disconnect(); |
| method public int getCarConnectionType(); |
| method @Nullable public Object getCarManager(String) throws android.car.CarNotConnectedException; |
| method public boolean isConnected(); |
| method public boolean isConnecting(); |
| field public static final String APP_FOCUS_SERVICE = "app_focus"; |
| field public static final String AUDIO_SERVICE = "audio"; |
| field public static final String CAR_CONFIGURATION_SERVICE = "configuration"; |
| field public static final String CAR_EXTRA_MEDIA_PACKAGE = "android.car.intent.extra.MEDIA_PACKAGE"; |
| field public static final String CAR_INTENT_ACTION_MEDIA_TEMPLATE = "android.car.intent.action.MEDIA_TEMPLATE"; |
| field public static final String CAR_NAVIGATION_SERVICE = "car_navigation_service"; |
| field public static final String CAR_UX_RESTRICTION_SERVICE = "uxrestriction"; |
| field public static final int CONNECTION_TYPE_EMBEDDED = 5; // 0x5 |
| field public static final String INFO_SERVICE = "info"; |
| field public static final String PACKAGE_SERVICE = "package"; |
| field public static final String PERMISSION_CAR_CONTROL_AUDIO_VOLUME = "android.car.permission.CAR_CONTROL_AUDIO_VOLUME"; |
| field public static final String PERMISSION_CAR_INFO = "android.car.permission.CAR_INFO"; |
| field public static final String PERMISSION_CAR_NAVIGATION_MANAGER = "android.car.permission.CAR_NAVIGATION_MANAGER"; |
| field public static final String PERMISSION_ENERGY = "android.car.permission.CAR_ENERGY"; |
| field public static final String PERMISSION_ENERGY_PORTS = "android.car.permission.CAR_ENERGY_PORTS"; |
| field public static final String PERMISSION_EXTERIOR_ENVIRONMENT = "android.car.permission.CAR_EXTERIOR_ENVIRONMENT"; |
| field public static final String PERMISSION_IDENTIFICATION = "android.car.permission.CAR_IDENTIFICATION"; |
| field public static final String PERMISSION_POWERTRAIN = "android.car.permission.CAR_POWERTRAIN"; |
| field public static final String PERMISSION_SPEED = "android.car.permission.CAR_SPEED"; |
| field public static final String SENSOR_SERVICE = "sensor"; |
| field public static final int VERSION = 3; // 0x3 |
| } |
| |
| public final class CarAppFocusManager { |
| method public void abandonAppFocus(android.car.CarAppFocusManager.OnAppFocusOwnershipCallback, int); |
| method public void abandonAppFocus(android.car.CarAppFocusManager.OnAppFocusOwnershipCallback); |
| method public void addFocusListener(android.car.CarAppFocusManager.OnAppFocusChangedListener, int) throws android.car.CarNotConnectedException; |
| method public boolean isOwningFocus(android.car.CarAppFocusManager.OnAppFocusOwnershipCallback, int) throws android.car.CarNotConnectedException; |
| method public void removeFocusListener(android.car.CarAppFocusManager.OnAppFocusChangedListener, int); |
| method public void removeFocusListener(android.car.CarAppFocusManager.OnAppFocusChangedListener); |
| method public int requestAppFocus(int, android.car.CarAppFocusManager.OnAppFocusOwnershipCallback) throws android.car.CarNotConnectedException, java.lang.SecurityException; |
| field public static final int APP_FOCUS_REQUEST_FAILED = 0; // 0x0 |
| field public static final int APP_FOCUS_REQUEST_SUCCEEDED = 1; // 0x1 |
| field public static final int APP_FOCUS_TYPE_NAVIGATION = 1; // 0x1 |
| field public static final int APP_FOCUS_TYPE_VOICE_COMMAND = 2; // 0x2 |
| } |
| |
| public static interface CarAppFocusManager.OnAppFocusChangedListener { |
| method public void onAppFocusChanged(int, boolean); |
| } |
| |
| public static interface CarAppFocusManager.OnAppFocusOwnershipCallback { |
| method public void onAppFocusOwnershipGranted(int); |
| method public void onAppFocusOwnershipLost(int); |
| } |
| |
| public final class CarInfoManager { |
| method public float getEvBatteryCapacity() throws android.car.CarNotConnectedException; |
| method public int[] getEvConnectorTypes() throws android.car.CarNotConnectedException; |
| method public float getFuelCapacity() throws android.car.CarNotConnectedException; |
| method public int[] getFuelTypes() throws android.car.CarNotConnectedException; |
| method @Nullable public String getManufacturer() throws android.car.CarNotConnectedException; |
| method @Nullable public String getModel() throws android.car.CarNotConnectedException; |
| method @Nullable public String getModelYear() throws android.car.CarNotConnectedException; |
| method public String getVehicleId() throws android.car.CarNotConnectedException; |
| } |
| |
| public class CarNotConnectedException extends java.lang.Exception { |
| ctor public CarNotConnectedException(); |
| ctor public CarNotConnectedException(String); |
| ctor public CarNotConnectedException(String, Throwable); |
| ctor public CarNotConnectedException(Exception); |
| } |
| |
| public final class VehiclePropertyIds { |
| ctor public VehiclePropertyIds(); |
| method public static String toString(int); |
| field public static final int ABS_ACTIVE = 287310858; // 0x1120040a |
| field public static final int AP_POWER_BOOTUP_REASON = 289409538; // 0x11400a02 |
| field public static final int AP_POWER_STATE_REPORT = 289475073; // 0x11410a01 |
| field public static final int AP_POWER_STATE_REQ = 289475072; // 0x11410a00 |
| field public static final int CURRENT_GEAR = 289408001; // 0x11400401 |
| field public static final int DISPLAY_BRIGHTNESS = 289409539; // 0x11400a03 |
| field public static final int DOOR_LOCK = 371198722; // 0x16200b02 |
| field public static final int DOOR_MOVE = 373295873; // 0x16400b01 |
| field public static final int DOOR_POS = 373295872; // 0x16400b00 |
| field public static final int ENGINE_COOLANT_TEMP = 291504897; // 0x11600301 |
| field public static final int ENGINE_OIL_LEVEL = 289407747; // 0x11400303 |
| field public static final int ENGINE_OIL_TEMP = 291504900; // 0x11600304 |
| field public static final int ENGINE_RPM = 291504901; // 0x11600305 |
| field public static final int ENV_OUTSIDE_TEMPERATURE = 291505923; // 0x11600703 |
| field public static final int EV_BATTERY_INSTANTANEOUS_CHARGE_RATE = 291504908; // 0x1160030c |
| field public static final int EV_BATTERY_LEVEL = 291504905; // 0x11600309 |
| field public static final int EV_CHARGE_PORT_CONNECTED = 287310603; // 0x1120030b |
| field public static final int EV_CHARGE_PORT_OPEN = 287310602; // 0x1120030a |
| field public static final int FOG_LIGHTS_STATE = 289410562; // 0x11400e02 |
| field public static final int FOG_LIGHTS_SWITCH = 289410578; // 0x11400e12 |
| field public static final int FUEL_DOOR_OPEN = 287310600; // 0x11200308 |
| field public static final int FUEL_LEVEL = 291504903; // 0x11600307 |
| field public static final int FUEL_LEVEL_LOW = 287310853; // 0x11200405 |
| field public static final int GEAR_SELECTION = 289408000; // 0x11400400 |
| field public static final int HAZARD_LIGHTS_STATE = 289410563; // 0x11400e03 |
| field public static final int HAZARD_LIGHTS_SWITCH = 289410579; // 0x11400e13 |
| field public static final int HEADLIGHTS_STATE = 289410560; // 0x11400e00 |
| field public static final int HEADLIGHTS_SWITCH = 289410576; // 0x11400e10 |
| field public static final int HIGH_BEAM_LIGHTS_STATE = 289410561; // 0x11400e01 |
| field public static final int HIGH_BEAM_LIGHTS_SWITCH = 289410577; // 0x11400e11 |
| field public static final int HVAC_ACTUAL_FAN_SPEED_RPM = 356517135; // 0x1540050f |
| field public static final int HVAC_AC_ON = 354419973; // 0x15200505 |
| field public static final int HVAC_AUTO_ON = 354419978; // 0x1520050a |
| field public static final int HVAC_AUTO_RECIRC_ON = 354419986; // 0x15200512 |
| field public static final int HVAC_DEFROSTER = 320865540; // 0x13200504 |
| field public static final int HVAC_DUAL_ON = 354419977; // 0x15200509 |
| field public static final int HVAC_FAN_DIRECTION = 356517121; // 0x15400501 |
| field public static final int HVAC_FAN_DIRECTION_AVAILABLE = 356582673; // 0x15410511 |
| field public static final int HVAC_FAN_SPEED = 356517120; // 0x15400500 |
| field public static final int HVAC_MAX_AC_ON = 354419974; // 0x15200506 |
| field public static final int HVAC_MAX_DEFROST_ON = 354419975; // 0x15200507 |
| field public static final int HVAC_POWER_ON = 354419984; // 0x15200510 |
| field public static final int HVAC_RECIRC_ON = 354419976; // 0x15200508 |
| field public static final int HVAC_SEAT_TEMPERATURE = 356517131; // 0x1540050b |
| field public static final int HVAC_SEAT_VENTILATION = 356517139; // 0x15400513 |
| field public static final int HVAC_SIDE_MIRROR_HEAT = 339739916; // 0x1440050c |
| field public static final int HVAC_STEERING_WHEEL_HEAT = 289408269; // 0x1140050d |
| field public static final int HVAC_TEMPERATURE_CURRENT = 358614274; // 0x15600502 |
| field public static final int HVAC_TEMPERATURE_DISPLAY_UNITS = 289408270; // 0x1140050e |
| field public static final int HVAC_TEMPERATURE_SET = 358614275; // 0x15600503 |
| field public static final int HW_KEY_INPUT = 289475088; // 0x11410a10 |
| field public static final int IGNITION_STATE = 289408009; // 0x11400409 |
| field public static final int INFO_DRIVER_SEAT = 356516106; // 0x1540010a |
| field public static final int INFO_EV_BATTERY_CAPACITY = 291504390; // 0x11600106 |
| field public static final int INFO_EV_CONNECTOR_TYPE = 289472775; // 0x11410107 |
| field public static final int INFO_EV_PORT_LOCATION = 289407241; // 0x11400109 |
| field public static final int INFO_FUEL_CAPACITY = 291504388; // 0x11600104 |
| field public static final int INFO_FUEL_DOOR_LOCATION = 289407240; // 0x11400108 |
| field public static final int INFO_FUEL_TYPE = 289472773; // 0x11410105 |
| field public static final int INFO_MAKE = 286261505; // 0x11100101 |
| field public static final int INFO_MODEL = 286261506; // 0x11100102 |
| field public static final int INFO_MODEL_YEAR = 289407235; // 0x11400103 |
| field public static final int INFO_VIN = 286261504; // 0x11100100 |
| field public static final int INVALID = 0; // 0x0 |
| field public static final int MIRROR_FOLD = 287312709; // 0x11200b45 |
| field public static final int MIRROR_LOCK = 287312708; // 0x11200b44 |
| field public static final int MIRROR_Y_MOVE = 339741507; // 0x14400b43 |
| field public static final int MIRROR_Y_POS = 339741506; // 0x14400b42 |
| field public static final int MIRROR_Z_MOVE = 339741505; // 0x14400b41 |
| field public static final int MIRROR_Z_POS = 339741504; // 0x14400b40 |
| field public static final int NIGHT_MODE = 287310855; // 0x11200407 |
| field public static final int OBD2_FREEZE_FRAME = 299896065; // 0x11e00d01 |
| field public static final int OBD2_FREEZE_FRAME_CLEAR = 299896067; // 0x11e00d03 |
| field public static final int OBD2_FREEZE_FRAME_INFO = 299896066; // 0x11e00d02 |
| field public static final int OBD2_LIVE_FRAME = 299896064; // 0x11e00d00 |
| field public static final int PARKING_BRAKE_AUTO_APPLY = 287310851; // 0x11200403 |
| field public static final int PARKING_BRAKE_ON = 287310850; // 0x11200402 |
| field public static final int PERF_ODOMETER = 291504644; // 0x11600204 |
| field public static final int PERF_VEHICLE_SPEED = 291504647; // 0x11600207 |
| field public static final int RANGE_REMAINING = 291504904; // 0x11600308 |
| field public static final int SEAT_BACKREST_ANGLE_1_MOVE = 356518792; // 0x15400b88 |
| field public static final int SEAT_BACKREST_ANGLE_1_POS = 356518791; // 0x15400b87 |
| field public static final int SEAT_BACKREST_ANGLE_2_MOVE = 356518794; // 0x15400b8a |
| field public static final int SEAT_BACKREST_ANGLE_2_POS = 356518793; // 0x15400b89 |
| field public static final int SEAT_BELT_BUCKLED = 354421634; // 0x15200b82 |
| field public static final int SEAT_BELT_HEIGHT_MOVE = 356518788; // 0x15400b84 |
| field public static final int SEAT_BELT_HEIGHT_POS = 356518787; // 0x15400b83 |
| field public static final int SEAT_DEPTH_MOVE = 356518798; // 0x15400b8e |
| field public static final int SEAT_DEPTH_POS = 356518797; // 0x15400b8d |
| field public static final int SEAT_FORE_AFT_MOVE = 356518790; // 0x15400b86 |
| field public static final int SEAT_FORE_AFT_POS = 356518789; // 0x15400b85 |
| field public static final int SEAT_HEADREST_ANGLE_MOVE = 356518808; // 0x15400b98 |
| field public static final int SEAT_HEADREST_ANGLE_POS = 356518807; // 0x15400b97 |
| field public static final int SEAT_HEADREST_FORE_AFT_MOVE = 356518810; // 0x15400b9a |
| field public static final int SEAT_HEADREST_FORE_AFT_POS = 356518809; // 0x15400b99 |
| field public static final int SEAT_HEADREST_HEIGHT_MOVE = 356518806; // 0x15400b96 |
| field public static final int SEAT_HEADREST_HEIGHT_POS = 289409941; // 0x11400b95 |
| field public static final int SEAT_HEIGHT_MOVE = 356518796; // 0x15400b8c |
| field public static final int SEAT_HEIGHT_POS = 356518795; // 0x15400b8b |
| field public static final int SEAT_LUMBAR_FORE_AFT_MOVE = 356518802; // 0x15400b92 |
| field public static final int SEAT_LUMBAR_FORE_AFT_POS = 356518801; // 0x15400b91 |
| field public static final int SEAT_LUMBAR_SIDE_SUPPORT_MOVE = 356518804; // 0x15400b94 |
| field public static final int SEAT_LUMBAR_SIDE_SUPPORT_POS = 356518803; // 0x15400b93 |
| field public static final int SEAT_MEMORY_SELECT = 356518784; // 0x15400b80 |
| field public static final int SEAT_MEMORY_SET = 356518785; // 0x15400b81 |
| field public static final int SEAT_TILT_MOVE = 356518800; // 0x15400b90 |
| field public static final int SEAT_TILT_POS = 356518799; // 0x15400b8f |
| field public static final int TIRE_PRESSURE = 392168201; // 0x17600309 |
| field public static final int TRACTION_CONTROL_ACTIVE = 287310859; // 0x1120040b |
| field public static final int TURN_SIGNAL_STATE = 289408008; // 0x11400408 |
| field public static final int VEHICLE_MAP_SERVICE = 299895808; // 0x11e00c00 |
| field public static final int WHEEL_TICK = 290521862; // 0x11510306 |
| field public static final int WINDOW_LOCK = 320867268; // 0x13200bc4 |
| field public static final int WINDOW_MOVE = 322964417; // 0x13400bc1 |
| field public static final int WINDOW_POS = 322964416; // 0x13400bc0 |
| } |
| |
| } |
| |
| package android.car.app.menu { |
| |
| public abstract class CarMenuCallbacks { |
| ctor public CarMenuCallbacks(); |
| method public abstract android.car.app.menu.RootMenu getRootMenu(android.os.Bundle); |
| method public abstract void onCarMenuClosed(); |
| method public abstract void onCarMenuClosing(); |
| method public abstract void onCarMenuOpened(); |
| method public abstract void onCarMenuOpening(); |
| method public abstract void onItemClicked(String); |
| method public abstract boolean onItemLongClicked(String); |
| method public abstract boolean onMenuClicked(); |
| method public abstract void subscribe(String, android.car.app.menu.SubscriptionCallbacks); |
| method public abstract void unsubscribe(String, android.car.app.menu.SubscriptionCallbacks); |
| } |
| |
| public class CarMenuConstants { |
| ctor public CarMenuConstants(); |
| } |
| |
| public static class CarMenuConstants.MenuItemConstants { |
| ctor public CarMenuConstants.MenuItemConstants(); |
| field public static final int FLAG_BROWSABLE = 1; // 0x1 |
| field public static final int FLAG_FIRSTITEM = 2; // 0x2 |
| field public static final String KEY_EMPTY_PLACEHOLDER = "android.car.app.menu.empty_placeholder"; |
| field public static final String KEY_FLAGS = "android.car.app.menu.flags"; |
| field public static final String KEY_ID = "android.car.app.menu.id"; |
| field public static final String KEY_LEFTICON = "android.car.app.menu.leftIcon"; |
| field public static final String KEY_REMOTEVIEWS = "android.car.app.menu.remoteViews"; |
| field public static final String KEY_RIGHTICON = "android.car.app.menu.rightIcon"; |
| field public static final String KEY_RIGHTTEXT = "android.car.app.menu.rightText"; |
| field public static final String KEY_TEXT = "android.car.app.menu.text"; |
| field public static final String KEY_TITLE = "android.car.app.menu.title"; |
| field public static final String KEY_WIDGET = "android.car.app.menu.widget"; |
| field public static final String KEY_WIDGET_STATE = "android.car.app.menu.widget_state"; |
| field public static final int WIDGET_CHECKBOX = 1; // 0x1 |
| field public static final int WIDGET_TEXT_VIEW = 2; // 0x2 |
| } |
| |
| @java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy.SOURCE) @IntDef(flag=true, value={android.car.app.menu.CarMenuConstants.MenuItemConstants.FLAG_BROWSABLE, android.car.app.menu.CarMenuConstants.MenuItemConstants.FLAG_FIRSTITEM}) public static @interface CarMenuConstants.MenuItemConstants.MenuItemFlags { |
| } |
| |
| @java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy.SOURCE) @IntDef({android.car.app.menu.CarMenuConstants.MenuItemConstants.WIDGET_CHECKBOX, android.car.app.menu.CarMenuConstants.MenuItemConstants.WIDGET_TEXT_VIEW}) public static @interface CarMenuConstants.MenuItemConstants.WidgetTypes { |
| } |
| |
| public abstract class CarUiEntry { |
| ctor public CarUiEntry(android.content.Context, android.content.Context); |
| method public abstract void closeDrawer(); |
| method public abstract android.view.View getContentView(); |
| method public abstract int getFragmentContainerId(); |
| method public abstract CharSequence getSearchBoxText(); |
| method public abstract void hideMenuButton(); |
| method public abstract void hideTitle(); |
| method public abstract void onPause(); |
| method public abstract void onRestoreInstanceState(android.os.Bundle); |
| method public abstract void onResume(); |
| method public abstract void onSaveInstanceState(android.os.Bundle); |
| method public abstract void onStart(); |
| method public abstract void onStop(); |
| method public abstract void openDrawer(); |
| method public abstract void restoreMenuDrawable(); |
| method public abstract void setAutoLightDarkMode(); |
| method public abstract void setBackground(android.graphics.Bitmap); |
| method public abstract void setCarMenuCallbacks(android.car.app.menu.CarMenuCallbacks); |
| method public abstract void setDarkMode(); |
| method public abstract void setLightMode(); |
| method public abstract void setMenuButtonBitmap(android.graphics.Bitmap); |
| method public abstract void setMenuButtonColor(int); |
| method public abstract void setScrimColor(int); |
| method public abstract void setSearchBoxColors(int, int, int, int); |
| method public abstract void setSearchBoxEditListener(android.car.app.menu.SearchBoxEditListener); |
| method public abstract void setSearchBoxEndView(android.view.View); |
| method public abstract void setTitle(CharSequence); |
| method public abstract void showMenu(String, String); |
| method public abstract void showSearchBox(android.view.View.OnClickListener); |
| method public abstract void showTitle(); |
| method public abstract void showToast(String, long); |
| method public abstract android.widget.EditText startInput(String, android.view.View.OnClickListener); |
| method public abstract void stopInput(); |
| field protected final android.content.Context mAppContext; |
| field protected final android.content.Context mUiLibContext; |
| } |
| |
| public class RootMenu { |
| ctor public RootMenu(String); |
| ctor public RootMenu(String, android.os.Bundle); |
| method public android.os.Bundle getBundle(); |
| method public String getId(); |
| } |
| |
| public abstract class SearchBoxEditListener { |
| ctor public SearchBoxEditListener(); |
| method public abstract void onEdit(String); |
| method public abstract void onSearch(String); |
| } |
| |
| public abstract class SubscriptionCallbacks { |
| ctor public SubscriptionCallbacks(); |
| method public abstract void onChildChanged(String, android.os.Bundle); |
| method public abstract void onChildrenLoaded(String, java.util.List<android.os.Bundle>); |
| method public abstract void onError(String); |
| } |
| |
| } |
| |
| package android.car.content.pm { |
| |
| public final class CarPackageManager { |
| method public boolean isActivityDistractionOptimized(String, String) throws android.car.CarNotConnectedException; |
| method public boolean isServiceDistractionOptimized(String, String) throws android.car.CarNotConnectedException; |
| } |
| |
| } |
| |
| package android.car.drivingstate { |
| |
| public class CarUxRestrictions implements android.os.Parcelable { |
| ctor public CarUxRestrictions(android.car.drivingstate.CarUxRestrictions); |
| method public int describeContents(); |
| method @android.car.drivingstate.CarUxRestrictions.CarUxRestrictionsInfo public int getActiveRestrictions(); |
| method public int getMaxContentDepth(); |
| method public int getMaxCumulativeContentItems(); |
| method public int getMaxRestrictedStringLength(); |
| method public long getTimeStamp(); |
| method public boolean isRequiresDistractionOptimization(); |
| method public boolean isSameRestrictions(android.car.drivingstate.CarUxRestrictions); |
| method public void writeToParcel(android.os.Parcel, int); |
| field public static final android.os.Parcelable.Creator<android.car.drivingstate.CarUxRestrictions> CREATOR; |
| field public static final int UX_RESTRICTIONS_BASELINE = 0; // 0x0 |
| field public static final int UX_RESTRICTIONS_FULLY_RESTRICTED = 511; // 0x1ff |
| field public static final int UX_RESTRICTIONS_LIMIT_CONTENT = 32; // 0x20 |
| field public static final int UX_RESTRICTIONS_LIMIT_STRING_LENGTH = 4; // 0x4 |
| field public static final int UX_RESTRICTIONS_NO_DIALPAD = 1; // 0x1 |
| field public static final int UX_RESTRICTIONS_NO_FILTERING = 2; // 0x2 |
| field public static final int UX_RESTRICTIONS_NO_KEYBOARD = 8; // 0x8 |
| field public static final int UX_RESTRICTIONS_NO_SETUP = 64; // 0x40 |
| field public static final int UX_RESTRICTIONS_NO_TEXT_MESSAGE = 128; // 0x80 |
| field public static final int UX_RESTRICTIONS_NO_VIDEO = 16; // 0x10 |
| field public static final int UX_RESTRICTIONS_NO_VOICE_TRANSCRIPTION = 256; // 0x100 |
| } |
| |
| public static class CarUxRestrictions.Builder { |
| ctor public CarUxRestrictions.Builder(boolean, @android.car.drivingstate.CarUxRestrictions.CarUxRestrictionsInfo int, long); |
| method public android.car.drivingstate.CarUxRestrictions build(); |
| method public android.car.drivingstate.CarUxRestrictions.Builder setMaxContentDepth(int); |
| method public android.car.drivingstate.CarUxRestrictions.Builder setMaxCumulativeContentItems(int); |
| method public android.car.drivingstate.CarUxRestrictions.Builder setMaxStringLength(int); |
| } |
| |
| @IntDef(flag=true, prefix={"UX_RESTRICTIONS_"}, value={android.car.drivingstate.CarUxRestrictions.UX_RESTRICTIONS_BASELINE, android.car.drivingstate.CarUxRestrictions.UX_RESTRICTIONS_NO_DIALPAD, android.car.drivingstate.CarUxRestrictions.UX_RESTRICTIONS_NO_FILTERING, android.car.drivingstate.CarUxRestrictions.UX_RESTRICTIONS_LIMIT_STRING_LENGTH, android.car.drivingstate.CarUxRestrictions.UX_RESTRICTIONS_NO_KEYBOARD, android.car.drivingstate.CarUxRestrictions.UX_RESTRICTIONS_NO_VIDEO, android.car.drivingstate.CarUxRestrictions.UX_RESTRICTIONS_LIMIT_CONTENT, android.car.drivingstate.CarUxRestrictions.UX_RESTRICTIONS_NO_SETUP, android.car.drivingstate.CarUxRestrictions.UX_RESTRICTIONS_NO_TEXT_MESSAGE, android.car.drivingstate.CarUxRestrictions.UX_RESTRICTIONS_NO_VOICE_TRANSCRIPTION}) @java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy.SOURCE) public static @interface CarUxRestrictions.CarUxRestrictionsInfo { |
| } |
| |
| public final class CarUxRestrictionsManager { |
| method @Nullable public android.car.drivingstate.CarUxRestrictions getCurrentCarUxRestrictions() throws android.car.CarNotConnectedException; |
| method public void registerListener(@NonNull android.car.drivingstate.CarUxRestrictionsManager.OnUxRestrictionsChangedListener) throws android.car.CarNotConnectedException, java.lang.IllegalArgumentException; |
| method public void unregisterListener() throws android.car.CarNotConnectedException; |
| } |
| |
| public static interface CarUxRestrictionsManager.OnUxRestrictionsChangedListener { |
| method public void onUxRestrictionsChanged(android.car.drivingstate.CarUxRestrictions); |
| } |
| |
| } |
| |
| package android.car.hardware { |
| |
| public class CarSensorEvent implements android.os.Parcelable { |
| method public int describeContents(); |
| method public void writeToParcel(android.os.Parcel, int); |
| field public static final android.os.Parcelable.Creator<android.car.hardware.CarSensorEvent> CREATOR; |
| field public static final int GEAR_DRIVE = 8; // 0x8 |
| field public static final int GEAR_EIGHTH = 2048; // 0x800 |
| field public static final int GEAR_FIFTH = 256; // 0x100 |
| field public static final int GEAR_FIRST = 16; // 0x10 |
| field public static final int GEAR_FOURTH = 128; // 0x80 |
| field public static final int GEAR_NEUTRAL = 1; // 0x1 |
| field public static final int GEAR_NINTH = 4096; // 0x1000 |
| field public static final int GEAR_PARK = 4; // 0x4 |
| field public static final int GEAR_REVERSE = 2; // 0x2 |
| field public static final int GEAR_SECOND = 32; // 0x20 |
| field public static final int GEAR_SEVENTH = 1024; // 0x400 |
| field public static final int GEAR_SIXTH = 512; // 0x200 |
| field public static final int GEAR_TENTH = 8192; // 0x2000 |
| field public static final int GEAR_THIRD = 64; // 0x40 |
| field public static final int IGNITION_STATE_ACC = 3; // 0x3 |
| field public static final int IGNITION_STATE_LOCK = 1; // 0x1 |
| field public static final int IGNITION_STATE_OFF = 2; // 0x2 |
| field public static final int IGNITION_STATE_ON = 4; // 0x4 |
| field public static final int IGNITION_STATE_START = 5; // 0x5 |
| field public static final int IGNITION_STATE_UNDEFINED = 0; // 0x0 |
| field public static final int INDEX_ENVIRONMENT_TEMPERATURE = 0; // 0x0 |
| field public static final int INDEX_WHEEL_DISTANCE_FRONT_LEFT = 1; // 0x1 |
| field public static final int INDEX_WHEEL_DISTANCE_FRONT_RIGHT = 2; // 0x2 |
| field public static final int INDEX_WHEEL_DISTANCE_REAR_LEFT = 4; // 0x4 |
| field public static final int INDEX_WHEEL_DISTANCE_REAR_RIGHT = 3; // 0x3 |
| field public static final int INDEX_WHEEL_DISTANCE_RESET_COUNT = 0; // 0x0 |
| field public final float[] floatValues; |
| field public final int[] intValues; |
| field public final long[] longValues; |
| field public int sensorType; |
| field public long timestamp; |
| } |
| |
| public static class CarSensorEvent.EnvironmentData { |
| field public float temperature; |
| field public long timestamp; |
| } |
| |
| public final class CarSensorManager { |
| method public android.car.hardware.CarSensorEvent getLatestSensorEvent(int) throws android.car.CarNotConnectedException; |
| method public java.util.List<android.car.hardware.CarPropertyConfig> getPropertyList() throws android.car.CarNotConnectedException; |
| method public int[] getSupportedSensors() throws android.car.CarNotConnectedException; |
| method public boolean isSensorSupported(int) throws android.car.CarNotConnectedException; |
| method public static boolean isSensorSupported(int[], int); |
| method @RequiresPermission(anyOf={android.car.Car.PERMISSION_SPEED, "android.car.permission.CAR_ENGINE_DETAILED", "android.car.permission.CAR_MILEAGE", android.car.Car.PERMISSION_ENERGY, android.car.Car.PERMISSION_POWERTRAIN, android.car.Car.PERMISSION_EXTERIOR_ENVIRONMENT, "android.car.permission.CAR_DYNAMICS_STATE", android.car.Car.PERMISSION_ENERGY_PORTS}, conditional=true) public boolean registerListener(android.car.hardware.CarSensorManager.OnSensorChangedListener, int, int) throws android.car.CarNotConnectedException, java.lang.IllegalArgumentException; |
| method public void unregisterListener(android.car.hardware.CarSensorManager.OnSensorChangedListener); |
| method public void unregisterListener(android.car.hardware.CarSensorManager.OnSensorChangedListener, int); |
| field public static final int SENSOR_RATE_FAST = 10; // 0xa |
| field public static final int SENSOR_RATE_FASTEST = 100; // 0x64 |
| field public static final int SENSOR_RATE_NORMAL = 1; // 0x1 |
| field public static final int SENSOR_RATE_UI = 5; // 0x5 |
| field public static final int SENSOR_TYPE_ABS_ACTIVE = 287310858; // 0x1120040a |
| field public static final int SENSOR_TYPE_CAR_SPEED = 291504647; // 0x11600207 |
| field public static final int SENSOR_TYPE_ENV_OUTSIDE_TEMPERATURE = 291505923; // 0x11600703 |
| field public static final int SENSOR_TYPE_EV_BATTERY_CHARGE_RATE = 291504908; // 0x1160030c |
| field public static final int SENSOR_TYPE_EV_BATTERY_LEVEL = 291504905; // 0x11600309 |
| field public static final int SENSOR_TYPE_EV_CHARGE_PORT_CONNECTED = 287310603; // 0x1120030b |
| field public static final int SENSOR_TYPE_EV_CHARGE_PORT_OPEN = 287310602; // 0x1120030a |
| field public static final int SENSOR_TYPE_FUEL_DOOR_OPEN = 287310600; // 0x11200308 |
| field public static final int SENSOR_TYPE_FUEL_LEVEL = 291504903; // 0x11600307 |
| field public static final int SENSOR_TYPE_GEAR = 289408000; // 0x11400400 |
| field public static final int SENSOR_TYPE_IGNITION_STATE = 289408009; // 0x11400409 |
| field public static final int SENSOR_TYPE_NIGHT = 287310855; // 0x11200407 |
| field public static final int SENSOR_TYPE_ODOMETER = 291504644; // 0x11600204 |
| field public static final int SENSOR_TYPE_PARKING_BRAKE = 287310850; // 0x11200402 |
| field public static final int SENSOR_TYPE_RPM = 291504901; // 0x11600305 |
| field public static final int SENSOR_TYPE_TRACTION_CONTROL_ACTIVE = 287310859; // 0x1120040b |
| field public static final int SENSOR_TYPE_WHEEL_TICK_DISTANCE = 290521862; // 0x11510306 |
| } |
| |
| public static interface CarSensorManager.OnSensorChangedListener { |
| method public void onSensorChanged(android.car.hardware.CarSensorEvent); |
| } |
| |
| } |
| |
| package android.car.media { |
| |
| public final class CarAudioManager { |
| method public android.car.media.CarAudioPatchHandle createAudioPatch(String, int, int) throws android.car.CarNotConnectedException; |
| method @NonNull public String[] getExternalSources() throws android.car.CarNotConnectedException; |
| method public int getGroupMaxVolume(int) throws android.car.CarNotConnectedException; |
| method public int getGroupMaxVolume(int, int) throws android.car.CarNotConnectedException; |
| method public int getGroupMinVolume(int) throws android.car.CarNotConnectedException; |
| method public int getGroupMinVolume(int, int) throws android.car.CarNotConnectedException; |
| method public int getGroupVolume(int) throws android.car.CarNotConnectedException; |
| method public int getGroupVolume(int, int) throws android.car.CarNotConnectedException; |
| method @NonNull public int[] getUsagesForVolumeGroupId(int) throws android.car.CarNotConnectedException; |
| method @NonNull public int[] getUsagesForVolumeGroupId(int, int) throws android.car.CarNotConnectedException; |
| method public int getVolumeGroupCount() throws android.car.CarNotConnectedException; |
| method public int getVolumeGroupCount(int) throws android.car.CarNotConnectedException; |
| method public int getVolumeGroupIdForUsage(int) throws android.car.CarNotConnectedException; |
| method public int getVolumeGroupIdForUsage(int, int) throws android.car.CarNotConnectedException; |
| method public void registerCarVolumeCallback(@NonNull android.car.media.CarAudioManager.CarVolumeCallback); |
| method public void releaseAudioPatch(android.car.media.CarAudioPatchHandle) throws android.car.CarNotConnectedException; |
| method public void setBalanceTowardRight(float) throws android.car.CarNotConnectedException; |
| method public void setFadeTowardFront(float) throws android.car.CarNotConnectedException; |
| method public void setGroupVolume(int, int, int) throws android.car.CarNotConnectedException; |
| method public void setGroupVolume(int, int, int, int) throws android.car.CarNotConnectedException; |
| method public void unregisterCarVolumeCallback(@NonNull android.car.media.CarAudioManager.CarVolumeCallback); |
| field public static final int PRIMARY_AUDIO_ZONE = 0; // 0x0 |
| } |
| |
| public abstract static class CarAudioManager.CarVolumeCallback { |
| ctor public CarAudioManager.CarVolumeCallback(); |
| method public void onGroupVolumeChanged(int, int, int); |
| method public void onMasterMuteChanged(int, int); |
| } |
| |
| public final class CarAudioPatchHandle implements android.os.Parcelable { |
| ctor public CarAudioPatchHandle(android.media.AudioPatch); |
| method public int describeContents(); |
| method public void writeToParcel(android.os.Parcel, int); |
| field public static final android.os.Parcelable.Creator<android.car.media.CarAudioPatchHandle> CREATOR; |
| } |
| |
| } |
| |
| package android.car.navigation { |
| |
| public final class CarNavigationStatusManager { |
| method public android.car.navigation.CarNavigationInstrumentCluster getInstrumentClusterInfo() throws android.car.CarNotConnectedException; |
| method public void sendEvent(int, android.os.Bundle) throws android.car.CarNotConnectedException; |
| } |
| |
| } |
| |
| package android.car.settings { |
| |
| public class CarConfigurationManager { |
| method public android.car.settings.SpeedBumpConfiguration getSpeedBumpConfiguration() throws android.car.CarNotConnectedException; |
| } |
| |
| public class CarSettings { |
| ctor public CarSettings(); |
| } |
| |
| public static final class CarSettings.Global { |
| ctor public CarSettings.Global(); |
| field @Deprecated public static final String KEY_GARAGE_MODE_ENABLED = "android.car.GARAGE_MODE_ENABLED"; |
| field @Deprecated public static final String KEY_GARAGE_MODE_MAINTENANCE_WINDOW = "android.car.GARAGE_MODE_MAINTENANCE_WINDOW"; |
| field @Deprecated public static final String KEY_GARAGE_MODE_WAKE_UP_TIME = "android.car.GARAGE_MODE_WAKE_UP_TIME"; |
| } |
| |
| public final class SpeedBumpConfiguration implements android.os.Parcelable { |
| ctor public SpeedBumpConfiguration(double, double, long); |
| method public int describeContents(); |
| method public double getAcquiredPermitsPerSecond(); |
| method public double getMaxPermitPool(); |
| method public long getPermitFillDelay(); |
| method public void writeToParcel(android.os.Parcel, int); |
| field public static final android.os.Parcelable.Creator<android.car.settings.SpeedBumpConfiguration> CREATOR; |
| } |
| |
| } |
| |