Home | History | Annotate | Download | only in api
      1 package android.car {
      2 
      3   public class Car {
      4     method public void connect() throws java.lang.IllegalStateException;
      5     method public static android.car.Car createCar(android.content.Context, android.content.ServiceConnection, android.os.Looper);
      6     method public static android.car.Car createCar(android.content.Context, android.content.ServiceConnection);
      7     method public void disconnect();
      8     method public int getCarConnectionType();
      9     method public java.lang.Object getCarManager(java.lang.String) throws android.car.CarNotConnectedException;
     10     method public boolean isConnected();
     11     method public boolean isConnecting();
     12     field public static final java.lang.String APP_CONTEXT_SERVICE = "app_context";
     13     field public static final java.lang.String AUDIO_SERVICE = "audio";
     14     field public static final int CONNECTION_TYPE_EMBEDDED = 5; // 0x5
     15     field public static final java.lang.String INFO_SERVICE = "info";
     16     field public static final java.lang.String PACKAGE_SERVICE = "package";
     17     field public static final java.lang.String PERMISSION_FUEL = "android.car.permission.CAR_FUEL";
     18     field public static final java.lang.String PERMISSION_MILEAGE = "android.car.permission.CAR_MILEAGE";
     19     field public static final java.lang.String PERMISSION_SPEED = "android.car.permission.CAR_SPEED";
     20     field public static final java.lang.String SENSOR_SERVICE = "sensor";
     21   }
     22 
     23   public class CarInfoManager {
     24     method public java.lang.Float getFloat(java.lang.String) throws android.car.CarNotConnectedException, java.lang.IllegalArgumentException;
     25     method public java.lang.Integer getInt(java.lang.String) throws android.car.CarNotConnectedException, java.lang.IllegalArgumentException;
     26     method public java.lang.Long getLong(java.lang.String) throws android.car.CarNotConnectedException, java.lang.IllegalArgumentException;
     27     method public java.lang.String getString(java.lang.String) throws android.car.CarNotConnectedException, java.lang.IllegalArgumentException;
     28     field public static final java.lang.String KEY_MANUFACTURER = "manufacturer";
     29     field public static final java.lang.String KEY_MODEL = "model";
     30     field public static final java.lang.String KEY_MODEL_YEAR = "model-year";
     31     field public static final java.lang.String KEY_VEHICLE_ID = "vehicle-id";
     32   }
     33 
     34   public class CarNotConnectedException extends java.lang.Exception {
     35     ctor public CarNotConnectedException();
     36     ctor public CarNotConnectedException(java.lang.String);
     37     ctor public CarNotConnectedException(java.lang.String, java.lang.Throwable);
     38     ctor public CarNotConnectedException(java.lang.Exception);
     39   }
     40 
     41   public class CarNotSupportedException extends java.lang.Exception {
     42     ctor public CarNotSupportedException();
     43     ctor public CarNotSupportedException(java.lang.String);
     44     ctor public CarNotSupportedException(java.lang.String, java.lang.Throwable);
     45     ctor public CarNotSupportedException(java.lang.Exception);
     46   }
     47 
     48 }
     49 
     50 package android.car.annotation {
     51 
     52   public abstract class ValueTypeDef implements java.lang.annotation.Annotation {
     53   }
     54 
     55 }
     56 
     57 package android.car.app.menu {
     58 
     59   public abstract class CarMenuCallbacks {
     60     ctor public CarMenuCallbacks();
     61     method public abstract android.car.app.menu.RootMenu getRootMenu(android.os.Bundle);
     62     method public abstract void onCarMenuClosed();
     63     method public abstract void onCarMenuClosing();
     64     method public abstract void onCarMenuOpened();
     65     method public abstract void onCarMenuOpening();
     66     method public abstract void onItemClicked(java.lang.String);
     67     method public abstract boolean onItemLongClicked(java.lang.String);
     68     method public abstract boolean onMenuClicked();
     69     method public abstract void subscribe(java.lang.String, android.car.app.menu.SubscriptionCallbacks);
     70     method public abstract void unsubscribe(java.lang.String, android.car.app.menu.SubscriptionCallbacks);
     71   }
     72 
     73   public class CarMenuConstants {
     74     ctor public CarMenuConstants();
     75   }
     76 
     77   public static class CarMenuConstants.MenuItemConstants {
     78     ctor public CarMenuConstants.MenuItemConstants();
     79     field public static final int FLAG_BROWSABLE = 1; // 0x1
     80     field public static final int FLAG_FIRSTITEM = 2; // 0x2
     81     field public static final java.lang.String KEY_EMPTY_PLACEHOLDER = "android.car.app.menu.empty_placeholder";
     82     field public static final java.lang.String KEY_FLAGS = "android.car.app.menu.flags";
     83     field public static final java.lang.String KEY_ID = "android.car.app.menu.id";
     84     field public static final java.lang.String KEY_LEFTICON = "android.car.app.menu.leftIcon";
     85     field public static final java.lang.String KEY_REMOTEVIEWS = "android.car.app.menu.remoteViews";
     86     field public static final java.lang.String KEY_RIGHTICON = "android.car.app.menu.rightIcon";
     87     field public static final java.lang.String KEY_RIGHTTEXT = "android.car.app.menu.rightText";
     88     field public static final java.lang.String KEY_TEXT = "android.car.app.menu.text";
     89     field public static final java.lang.String KEY_TITLE = "android.car.app.menu.title";
     90     field public static final java.lang.String KEY_WIDGET = "android.car.app.menu.widget";
     91     field public static final java.lang.String KEY_WIDGET_STATE = "android.car.app.menu.widget_state";
     92     field public static final int WIDGET_CHECKBOX = 1; // 0x1
     93     field public static final int WIDGET_TEXT_VIEW = 2; // 0x2
     94   }
     95 
     96   public static abstract class CarMenuConstants.MenuItemConstants.MenuItemFlags implements java.lang.annotation.Annotation {
     97   }
     98 
     99   public static abstract class CarMenuConstants.MenuItemConstants.WidgetTypes implements java.lang.annotation.Annotation {
    100   }
    101 
    102   public abstract class CarUiEntry {
    103     ctor public CarUiEntry(android.content.Context, android.content.Context);
    104     method public abstract void closeDrawer();
    105     method public abstract android.view.View getContentView();
    106     method public abstract int getFragmentContainerId();
    107     method public abstract java.lang.CharSequence getSearchBoxText();
    108     method public abstract void hideMenuButton();
    109     method public abstract void hideTitle();
    110     method public abstract void onPause();
    111     method public abstract void onRestoreInstanceState(android.os.Bundle);
    112     method public abstract void onResume();
    113     method public abstract void onSaveInstanceState(android.os.Bundle);
    114     method public abstract void onStart();
    115     method public abstract void onStop();
    116     method public abstract void openDrawer();
    117     method public abstract void restoreMenuDrawable();
    118     method public abstract void setAutoLightDarkMode();
    119     method public abstract void setBackground(android.graphics.Bitmap);
    120     method public abstract void setCarMenuCallbacks(android.car.app.menu.CarMenuCallbacks);
    121     method public abstract void setDarkMode();
    122     method public abstract void setLightMode();
    123     method public abstract void setMenuButtonBitmap(android.graphics.Bitmap);
    124     method public abstract void setMenuButtonColor(int);
    125     method public abstract void setScrimColor(int);
    126     method public abstract void setSearchBoxColors(int, int, int, int);
    127     method public abstract void setSearchBoxEditListener(android.car.app.menu.SearchBoxEditListener);
    128     method public abstract void setSearchBoxEndView(android.view.View);
    129     method public abstract void setTitle(java.lang.CharSequence);
    130     method public abstract void showMenu(java.lang.String, java.lang.String);
    131     method public abstract void showSearchBox(android.view.View.OnClickListener);
    132     method public abstract void showTitle();
    133     method public abstract void showToast(java.lang.String, long);
    134     method public abstract android.widget.EditText startInput(java.lang.String, android.view.View.OnClickListener);
    135     method public abstract void stopInput();
    136     field protected final android.content.Context mAppContext;
    137     field protected final android.content.Context mUiLibContext;
    138   }
    139 
    140   public class RootMenu {
    141     ctor public RootMenu(java.lang.String);
    142     ctor public RootMenu(java.lang.String, android.os.Bundle);
    143     method public android.os.Bundle getBundle();
    144     method public java.lang.String getId();
    145   }
    146 
    147   public abstract class SearchBoxEditListener {
    148     ctor public SearchBoxEditListener();
    149     method public abstract void onEdit(java.lang.String);
    150     method public abstract void onSearch(java.lang.String);
    151   }
    152 
    153   public abstract class SubscriptionCallbacks {
    154     ctor public SubscriptionCallbacks();
    155     method public abstract void onChildChanged(java.lang.String, android.os.Bundle);
    156     method public abstract void onChildrenLoaded(java.lang.String, java.util.List<android.os.Bundle>);
    157     method public abstract void onError(java.lang.String);
    158   }
    159 
    160 }
    161 
    162 package android.car.content.pm {
    163 
    164   public class CarPackageManager {
    165     method public boolean isActivityAllowedWhileDriving(java.lang.String, java.lang.String) throws android.car.CarNotConnectedException;
    166     method public boolean isServiceAllowedWhileDriving(java.lang.String, java.lang.String) throws android.car.CarNotConnectedException;
    167   }
    168 
    169 }
    170 
    171 package android.car.hardware {
    172 
    173   public class CarSensorEvent implements android.os.Parcelable {
    174     ctor public CarSensorEvent(android.os.Parcel);
    175     ctor public CarSensorEvent(int, long, int, int);
    176     method public int describeContents();
    177     method public android.car.hardware.CarSensorEvent.CarSpeedData getCarSpeedData(android.car.hardware.CarSensorEvent.CarSpeedData);
    178     method public android.car.hardware.CarSensorEvent.DrivingStatusData getDrivingStatusData(android.car.hardware.CarSensorEvent.DrivingStatusData);
    179     method public android.car.hardware.CarSensorEvent.EnvironmentData getEnvironmentData(android.car.hardware.CarSensorEvent.EnvironmentData);
    180     method public android.car.hardware.CarSensorEvent.FuelLevelData getFuelLevelData(android.car.hardware.CarSensorEvent.FuelLevelData);
    181     method public android.car.hardware.CarSensorEvent.GearData getGearData(android.car.hardware.CarSensorEvent.GearData);
    182     method public android.car.hardware.CarSensorEvent.NightData getNightData(android.car.hardware.CarSensorEvent.NightData);
    183     method public android.car.hardware.CarSensorEvent.OdometerData getOdometerData(android.car.hardware.CarSensorEvent.OdometerData);
    184     method public android.car.hardware.CarSensorEvent.ParkingBrakeData getParkingBrakeData(android.car.hardware.CarSensorEvent.ParkingBrakeData);
    185     method public android.car.hardware.CarSensorEvent.RpmData getRpmData(android.car.hardware.CarSensorEvent.RpmData);
    186     method public void writeToParcel(android.os.Parcel, int);
    187     field public static final android.os.Parcelable.Creator<android.car.hardware.CarSensorEvent> CREATOR;
    188     field public static final int DRIVE_STATUS_FULLY_RESTRICTED = 31; // 0x1f
    189     field public static final int DRIVE_STATUS_LIMIT_MESSAGE_LEN = 16; // 0x10
    190     field public static final int DRIVE_STATUS_NO_CONFIG = 8; // 0x8
    191     field public static final int DRIVE_STATUS_NO_KEYBOARD_INPUT = 2; // 0x2
    192     field public static final int DRIVE_STATUS_NO_VIDEO = 1; // 0x1
    193     field public static final int DRIVE_STATUS_NO_VOICE_INPUT = 4; // 0x4
    194     field public static final int DRIVE_STATUS_UNRESTRICTED = 0; // 0x0
    195     field public static final int GEAR_DRIVE = 100; // 0x64
    196     field public static final int GEAR_EIGHTH = 8; // 0x8
    197     field public static final int GEAR_FIFTH = 5; // 0x5
    198     field public static final int GEAR_FIRST = 1; // 0x1
    199     field public static final int GEAR_FOURTH = 4; // 0x4
    200     field public static final int GEAR_NEUTRAL = 0; // 0x0
    201     field public static final int GEAR_NINTH = 9; // 0x9
    202     field public static final int GEAR_PARK = 101; // 0x65
    203     field public static final int GEAR_REVERSE = 102; // 0x66
    204     field public static final int GEAR_SECOND = 2; // 0x2
    205     field public static final int GEAR_SEVENTH = 7; // 0x7
    206     field public static final int GEAR_SIXTH = 6; // 0x6
    207     field public static final int GEAR_TENTH = 10; // 0xa
    208     field public static final int GEAR_THIRD = 3; // 0x3
    209     field public static final int INDEX_ENVIRONMENT_PRESSURE = 1; // 0x1
    210     field public static final int INDEX_ENVIRONMENT_TEMPERATURE = 0; // 0x0
    211     field public static final int INDEX_FUEL_LEVEL_IN_DISTANCE = 1; // 0x1
    212     field public static final int INDEX_FUEL_LEVEL_IN_PERCENTILE = 0; // 0x0
    213     field public static final int INDEX_FUEL_LOW_WARNING = 0; // 0x0
    214     field public final float[] floatValues;
    215     field public final int[] intValues;
    216     field public int sensorType;
    217     field public long timeStampNs;
    218   }
    219 
    220   public static class CarSensorEvent.CarSpeedData {
    221     ctor public CarSensorEvent.CarSpeedData();
    222     field public float carSpeed;
    223     field public long timeStampNs;
    224   }
    225 
    226   public static class CarSensorEvent.DrivingStatusData {
    227     ctor public CarSensorEvent.DrivingStatusData();
    228     field public int status;
    229     field public long timeStampNs;
    230   }
    231 
    232   public static class CarSensorEvent.EnvironmentData {
    233     ctor public CarSensorEvent.EnvironmentData();
    234     field public float pressure;
    235     field public float temperature;
    236     field public long timeStampNs;
    237   }
    238 
    239   public static class CarSensorEvent.FuelLevelData {
    240     ctor public CarSensorEvent.FuelLevelData();
    241     field public int level;
    242     field public boolean lowFuelWarning;
    243     field public float range;
    244     field public long timeStampNs;
    245   }
    246 
    247   public static class CarSensorEvent.GearData {
    248     ctor public CarSensorEvent.GearData();
    249     field public int gear;
    250     field public long timeStampNs;
    251   }
    252 
    253   public static class CarSensorEvent.NightData {
    254     ctor public CarSensorEvent.NightData();
    255     field public boolean isNightMode;
    256     field public long timeStampNs;
    257   }
    258 
    259   public static class CarSensorEvent.OdometerData {
    260     ctor public CarSensorEvent.OdometerData();
    261     field public float kms;
    262     field public long timeStampNs;
    263   }
    264 
    265   public static class CarSensorEvent.ParkingBrakeData {
    266     ctor public CarSensorEvent.ParkingBrakeData();
    267     field public boolean isEngaged;
    268     field public long timeStampNs;
    269   }
    270 
    271   public static class CarSensorEvent.RpmData {
    272     ctor public CarSensorEvent.RpmData();
    273     field public float rpm;
    274     field public long timeStampNs;
    275   }
    276 
    277   public class CarSensorManager {
    278     method public android.car.hardware.CarSensorEvent getLatestSensorEvent(int) throws android.car.CarNotConnectedException;
    279     method public int[] getSupportedSensors() throws android.car.CarNotConnectedException;
    280     method public boolean isSensorSupported(int) throws android.car.CarNotConnectedException;
    281     method public static boolean isSensorSupported(int[], int);
    282     method public boolean registerListener(android.car.hardware.CarSensorManager.CarSensorEventListener, int, int) throws android.car.CarNotConnectedException, java.lang.IllegalArgumentException;
    283     method public void unregisterListener(android.car.hardware.CarSensorManager.CarSensorEventListener) throws android.car.CarNotConnectedException;
    284     method public void unregisterListener(android.car.hardware.CarSensorManager.CarSensorEventListener, int) throws android.car.CarNotConnectedException;
    285     field public static final int SENSOR_RATE_FAST = 1; // 0x1
    286     field public static final int SENSOR_RATE_FASTEST = 0; // 0x0
    287     field public static final int SENSOR_RATE_NORMAL = 3; // 0x3
    288     field public static final int SENSOR_RATE_UI = 2; // 0x2
    289     field public static final int SENSOR_TYPE_CAR_SPEED = 2; // 0x2
    290     field public static final int SENSOR_TYPE_DRIVING_STATUS = 11; // 0xb
    291     field public static final int SENSOR_TYPE_ENVIRONMENT = 12; // 0xc
    292     field public static final int SENSOR_TYPE_FUEL_LEVEL = 5; // 0x5
    293     field public static final int SENSOR_TYPE_GEAR = 7; // 0x7
    294     field public static final int SENSOR_TYPE_NIGHT = 9; // 0x9
    295     field public static final int SENSOR_TYPE_ODOMETER = 4; // 0x4
    296     field public static final int SENSOR_TYPE_PARKING_BRAKE = 6; // 0x6
    297     field public static final int SENSOR_TYPE_RPM = 3; // 0x3
    298     field public static final int SENSOR_TYPE_VENDOR_EXTENSION_END = 1879048191; // 0x6fffffff
    299   }
    300 
    301   public static abstract interface CarSensorManager.CarSensorEventListener {
    302     method public abstract void onSensorChanged(android.car.hardware.CarSensorEvent);
    303   }
    304 
    305 }
    306 
    307 package android.car.media {
    308 
    309   public class CarAudioManager {
    310     method public int abandonAudioFocus(android.media.AudioManager.OnAudioFocusChangeListener, android.media.AudioAttributes);
    311     method public android.media.AudioAttributes getAudioAttributesForCarUsage(int);
    312     method public void onCarDisconnected();
    313     method public int requestAudioFocus(android.media.AudioManager.OnAudioFocusChangeListener, android.media.AudioAttributes, int, int) throws java.lang.IllegalArgumentException;
    314     field public static final int CAR_AUDIO_USAGE_ALARM = 6; // 0x6
    315     field public static final int CAR_AUDIO_USAGE_DEFAULT = 0; // 0x0
    316     field public static final int CAR_AUDIO_USAGE_MUSIC = 1; // 0x1
    317     field public static final int CAR_AUDIO_USAGE_NAVIGATION_GUIDANCE = 3; // 0x3
    318     field public static final int CAR_AUDIO_USAGE_NOTIFICATION = 7; // 0x7
    319     field public static final int CAR_AUDIO_USAGE_RADIO = 2; // 0x2
    320     field public static final int CAR_AUDIO_USAGE_SYSTEM_SAFETY_ALERT = 9; // 0x9
    321     field public static final int CAR_AUDIO_USAGE_SYSTEM_SOUND = 8; // 0x8
    322     field public static final int CAR_AUDIO_USAGE_VOICE_CALL = 4; // 0x4
    323     field public static final int CAR_AUDIO_USAGE_VOICE_COMMAND = 5; // 0x5
    324   }
    325 
    326 }
    327 
    328