Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 1 | package android.car { |
| 2 | |
Keun-young Park | 4cf6911 | 2016-10-04 10:02:59 -0700 | [diff] [blame] | 3 | public final class Car { |
Steve Paik | 43c04a7 | 2016-07-08 19:12:09 -0700 | [diff] [blame] | 4 | field public static final java.lang.String CABIN_SERVICE = "cabin"; |
Ram Periathiruvadi | 25c16f1 | 2017-11-17 16:48:37 -0800 | [diff] [blame] | 5 | field public static final java.lang.String CAR_DRIVING_STATE_SERVICE = "drivingstate"; |
Enrico Granata | ae25b92 | 2017-07-07 11:28:15 -0700 | [diff] [blame] | 6 | field public static final java.lang.String DIAGNOSTIC_SERVICE = "diagnostic"; |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 7 | field public static final java.lang.String HVAC_SERVICE = "hvac"; |
Steve Paik | 43c04a7 | 2016-07-08 19:12:09 -0700 | [diff] [blame] | 8 | field public static final java.lang.String PERMISSION_CAR_CABIN = "android.car.permission.CAR_CABIN"; |
Enrico Granata | ae25b92 | 2017-07-07 11:28:15 -0700 | [diff] [blame] | 9 | field public static final java.lang.String PERMISSION_CAR_DIAGNOSTIC_CLEAR = "android.car.permission.DIAGNOSTIC_CLEAR"; |
| 10 | field public static final java.lang.String PERMISSION_CAR_DIAGNOSTIC_READ_ALL = "android.car.permission.DIAGNOSTIC_READ_ALL"; |
Ram Periathiruvadi | 25c16f1 | 2017-11-17 16:48:37 -0800 | [diff] [blame] | 11 | field public static final java.lang.String PERMISSION_CAR_DRIVING_STATE = "android.car.permission.CAR_DRIVING_STATE"; |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 12 | field public static final java.lang.String PERMISSION_CAR_HVAC = "android.car.permission.CAR_HVAC"; |
| 13 | field public static final java.lang.String PERMISSION_CAR_PROJECTION = "android.car.permission.CAR_PROJECTION"; |
Tomasz Wasilczyk | bca2c0d | 2018-01-13 09:58:28 -0800 | [diff] [blame] | 14 | field public static final deprecated java.lang.String PERMISSION_CAR_RADIO = "android.car.permission.CAR_RADIO"; |
Pavel Maltsev | 0d07c76 | 2016-11-03 16:40:15 -0700 | [diff] [blame] | 15 | field public static final java.lang.String PERMISSION_CAR_TEST_SERVICE = "android.car.permission.CAR_TEST_SERVICE"; |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 16 | field public static final java.lang.String PERMISSION_CONTROL_APP_BLOCKING = "android.car.permission.CONTROL_APP_BLOCKING"; |
Pavel Maltsev | 0d07c76 | 2016-11-03 16:40:15 -0700 | [diff] [blame] | 17 | field public static final deprecated java.lang.String PERMISSION_MOCK_VEHICLE_HAL = "android.car.permission.CAR_MOCK_VEHICLE_HAL"; |
Enrico Granata | 1172f88 | 2017-09-21 14:51:30 -0700 | [diff] [blame] | 18 | field public static final java.lang.String PERMISSION_STORAGE_MONITORING = "android.car.permission.STORAGE_MONITORING"; |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 19 | field public static final java.lang.String PERMISSION_VENDOR_EXTENSION = "android.car.permission.CAR_VENDOR_EXTENSION"; |
| 20 | field public static final java.lang.String PROJECTION_SERVICE = "projection"; |
Tomasz Wasilczyk | bca2c0d | 2018-01-13 09:58:28 -0800 | [diff] [blame] | 21 | field public static final deprecated java.lang.String RADIO_SERVICE = "radio"; |
Enrico Granata | 9a916d7 | 2017-09-19 14:33:08 -0700 | [diff] [blame] | 22 | field public static final java.lang.String STORAGE_MONITORING_SERVICE = "storage_monitoring"; |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 23 | field public static final java.lang.String TEST_SERVICE = "car-service-test"; |
Pavel Maltsev | 634e1ff | 2016-07-14 15:41:26 -0700 | [diff] [blame] | 24 | field public static final java.lang.String VENDOR_EXTENSION_SERVICE = "vendor_extension"; |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 25 | } |
| 26 | |
Keun-young Park | 4cf6911 | 2016-10-04 10:02:59 -0700 | [diff] [blame] | 27 | public final class CarProjectionManager { |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 28 | method public void onCarDisconnected(); |
Gene Karshenboym | beab135 | 2017-06-22 15:58:31 -0700 | [diff] [blame] | 29 | method public void registerProjectionListener(android.car.CarProjectionManager.CarProjectionListener, int) throws android.car.CarNotConnectedException; |
Enrico Granata | ae25b92 | 2017-07-07 11:28:15 -0700 | [diff] [blame] | 30 | method public void registerProjectionRunner(android.content.Intent) throws android.car.CarNotConnectedException; |
Gene Karshenboym | beab135 | 2017-06-22 15:58:31 -0700 | [diff] [blame] | 31 | method public void unregisterProjectionListener(); |
Enrico Granata | ae25b92 | 2017-07-07 11:28:15 -0700 | [diff] [blame] | 32 | method public void unregisterProjectionRunner(android.content.Intent); |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 33 | field public static final int PROJECTION_LONG_PRESS_VOICE_SEARCH = 2; // 0x2 |
| 34 | field public static final int PROJECTION_VOICE_SEARCH = 1; // 0x1 |
| 35 | } |
| 36 | |
| 37 | public static abstract interface CarProjectionManager.CarProjectionListener { |
| 38 | method public abstract void onVoiceAssistantRequest(boolean); |
| 39 | } |
| 40 | |
Keun-young Park | cd68cc7 | 2016-09-14 11:06:56 -0700 | [diff] [blame] | 41 | public final class VehicleAreaType { |
Steve Paik | fb5f623 | 2016-03-28 10:31:25 -0700 | [diff] [blame] | 42 | field public static final int VEHICLE_AREA_TYPE_DOOR = 4; // 0x4 |
Vitalii Tomkiv | 5f537ee | 2016-10-11 14:26:44 -0700 | [diff] [blame] | 43 | field public static final int VEHICLE_AREA_TYPE_MIRROR = 5; // 0x5 |
Steve Paik | fb5f623 | 2016-03-28 10:31:25 -0700 | [diff] [blame] | 44 | field public static final int VEHICLE_AREA_TYPE_NONE = 0; // 0x0 |
| 45 | field public static final int VEHICLE_AREA_TYPE_SEAT = 3; // 0x3 |
| 46 | field public static final int VEHICLE_AREA_TYPE_WINDOW = 2; // 0x2 |
| 47 | field public static final int VEHICLE_AREA_TYPE_ZONE = 1; // 0x1 |
| 48 | } |
| 49 | |
Keun-young Park | cd68cc7 | 2016-09-14 11:06:56 -0700 | [diff] [blame] | 50 | public final class VehicleDoor { |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 51 | field public static final int DOOR_HOOD = 268435456; // 0x10000000 |
| 52 | field public static final int DOOR_REAR = 536870912; // 0x20000000 |
| 53 | field public static final int DOOR_ROW_1_LEFT = 1; // 0x1 |
| 54 | field public static final int DOOR_ROW_1_RIGHT = 4; // 0x4 |
| 55 | field public static final int DOOR_ROW_2_LEFT = 16; // 0x10 |
| 56 | field public static final int DOOR_ROW_2_RIGHT = 64; // 0x40 |
| 57 | field public static final int DOOR_ROW_3_LEFT = 256; // 0x100 |
| 58 | field public static final int DOOR_ROW_3_RIGHT = 1024; // 0x400 |
| 59 | } |
| 60 | |
Keun-young Park | cd68cc7 | 2016-09-14 11:06:56 -0700 | [diff] [blame] | 61 | public final class VehicleMirror { |
Steve Paik | 43c04a7 | 2016-07-08 19:12:09 -0700 | [diff] [blame] | 62 | field public static final int MIRROR_DRIVER_CENTER = 4; // 0x4 |
| 63 | field public static final int MIRROR_DRIVER_LEFT = 1; // 0x1 |
| 64 | field public static final int MIRROR_DRIVER_RIGHT = 2; // 0x2 |
| 65 | } |
| 66 | |
Keun-young Park | cd68cc7 | 2016-09-14 11:06:56 -0700 | [diff] [blame] | 67 | public final class VehicleSeat { |
Steve Paik | 8968e1d | 2016-10-06 20:29:37 -0700 | [diff] [blame] | 68 | field public static final int SEAT_ROW_1_CENTER = 2; // 0x2 |
| 69 | field public static final int SEAT_ROW_1_LEFT = 1; // 0x1 |
| 70 | field public static final int SEAT_ROW_1_RIGHT = 4; // 0x4 |
| 71 | field public static final int SEAT_ROW_2_CENTER = 32; // 0x20 |
| 72 | field public static final int SEAT_ROW_2_LEFT = 16; // 0x10 |
| 73 | field public static final int SEAT_ROW_2_RIGHT = 64; // 0x40 |
| 74 | field public static final int SEAT_ROW_3_CENTER = 512; // 0x200 |
| 75 | field public static final int SEAT_ROW_3_LEFT = 256; // 0x100 |
| 76 | field public static final int SEAT_ROW_3_RIGHT = 1024; // 0x400 |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 77 | } |
| 78 | |
Keun-young Park | cd68cc7 | 2016-09-14 11:06:56 -0700 | [diff] [blame] | 79 | public final class VehicleWindow { |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 80 | field public static final int WINDOW_FRONT_WINDSHIELD = 1; // 0x1 |
| 81 | field public static final int WINDOW_REAR_WINDSHIELD = 2; // 0x2 |
| 82 | field public static final int WINDOW_ROOF_TOP = 4; // 0x4 |
| 83 | field public static final int WINDOW_ROW_1_LEFT = 16; // 0x10 |
| 84 | field public static final int WINDOW_ROW_1_RIGHT = 32; // 0x20 |
| 85 | field public static final int WINDOW_ROW_2_LEFT = 256; // 0x100 |
| 86 | field public static final int WINDOW_ROW_2_RIGHT = 512; // 0x200 |
| 87 | field public static final int WINDOW_ROW_3_LEFT = 4096; // 0x1000 |
| 88 | field public static final int WINDOW_ROW_3_RIGHT = 8192; // 0x2000 |
| 89 | } |
| 90 | |
Keun-young Park | cd68cc7 | 2016-09-14 11:06:56 -0700 | [diff] [blame] | 91 | public final class VehicleZone { |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 92 | field public static final int ZONE_ALL = -2147483648; // 0x80000000 |
| 93 | field public static final int ZONE_ROW_1_ALL = 8; // 0x8 |
| 94 | field public static final int ZONE_ROW_1_CENTER = 2; // 0x2 |
| 95 | field public static final int ZONE_ROW_1_LEFT = 1; // 0x1 |
| 96 | field public static final int ZONE_ROW_1_RIGHT = 4; // 0x4 |
| 97 | field public static final int ZONE_ROW_2_ALL = 128; // 0x80 |
| 98 | field public static final int ZONE_ROW_2_CENTER = 32; // 0x20 |
| 99 | field public static final int ZONE_ROW_2_LEFT = 16; // 0x10 |
| 100 | field public static final int ZONE_ROW_2_RIGHT = 64; // 0x40 |
| 101 | field public static final int ZONE_ROW_3_ALL = 2048; // 0x800 |
| 102 | field public static final int ZONE_ROW_3_CENTER = 512; // 0x200 |
| 103 | field public static final int ZONE_ROW_3_LEFT = 256; // 0x100 |
| 104 | field public static final int ZONE_ROW_3_RIGHT = 1024; // 0x400 |
| 105 | field public static final int ZONE_ROW_4_ALL = 32768; // 0x8000 |
| 106 | field public static final int ZONE_ROW_4_CENTER = 8192; // 0x2000 |
| 107 | field public static final int ZONE_ROW_4_LEFT = 4096; // 0x1000 |
| 108 | field public static final int ZONE_ROW_4_RIGHT = 16384; // 0x4000 |
| 109 | } |
| 110 | |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 111 | } |
| 112 | |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 113 | package android.car.cluster.renderer { |
| 114 | |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 115 | public abstract class InstrumentClusterRenderer { |
| 116 | ctor public InstrumentClusterRenderer(); |
| 117 | method protected abstract android.car.cluster.renderer.NavigationRenderer createNavigationRenderer(); |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 118 | method public synchronized android.car.cluster.renderer.NavigationRenderer getNavigationRenderer(); |
| 119 | method public final synchronized void initialize(); |
| 120 | method public abstract void onCreate(android.content.Context); |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 121 | method public abstract void onStart(); |
| 122 | method public abstract void onStop(); |
| 123 | } |
| 124 | |
Pavel Maltsev | 0477e29 | 2016-05-27 12:22:36 -0700 | [diff] [blame] | 125 | public abstract class InstrumentClusterRenderingService extends android.app.Service { |
| 126 | ctor public InstrumentClusterRenderingService(); |
| 127 | method protected abstract android.car.cluster.renderer.NavigationRenderer getNavigationRenderer(); |
| 128 | method public android.os.IBinder onBind(android.content.Intent); |
Pavel Maltsev | 03cf60c | 2016-06-27 15:11:51 -0700 | [diff] [blame] | 129 | method protected void onKeyEvent(android.view.KeyEvent); |
Pavel Maltsev | 0477e29 | 2016-05-27 12:22:36 -0700 | [diff] [blame] | 130 | } |
| 131 | |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 132 | public abstract class NavigationRenderer { |
| 133 | ctor public NavigationRenderer(); |
Pavel Maltsev | 8cf8691 | 2016-04-01 18:01:51 -0700 | [diff] [blame] | 134 | method public abstract android.car.navigation.CarNavigationInstrumentCluster getNavigationProperties(); |
Keun-young Park | 3388e78 | 2016-10-05 16:28:32 -0700 | [diff] [blame] | 135 | method public abstract void onNextTurnChanged(int, java.lang.CharSequence, int, int, android.graphics.Bitmap, int); |
Pavel Maltsev | a928f13 | 2016-08-01 16:46:10 -0700 | [diff] [blame] | 136 | method public abstract void onNextTurnDistanceChanged(int, int, int, int); |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 137 | method public abstract void onStartNavigation(); |
| 138 | method public abstract void onStopNavigation(); |
| 139 | } |
| 140 | |
| 141 | } |
| 142 | |
| 143 | package android.car.content.pm { |
| 144 | |
| 145 | public class AppBlockingPackageInfo implements android.os.Parcelable { |
| 146 | ctor public AppBlockingPackageInfo(java.lang.String, int, int, int, android.content.pm.Signature[], java.lang.String[]); |
| 147 | ctor public AppBlockingPackageInfo(android.os.Parcel); |
| 148 | method public int describeContents(); |
| 149 | method public void writeToParcel(android.os.Parcel, int); |
| 150 | field public static final android.os.Parcelable.Creator<android.car.content.pm.AppBlockingPackageInfo> CREATOR; |
| 151 | field public static final int FLAG_SYSTEM_APP = 1; // 0x1 |
| 152 | field public static final int FLAG_WHOLE_ACTIVITY = 2; // 0x2 |
| 153 | field public final java.lang.String[] activities; |
| 154 | field public final int flags; |
| 155 | field public final int maxRevisionCode; |
| 156 | field public final int minRevisionCode; |
| 157 | field public final java.lang.String packageName; |
| 158 | field public final android.content.pm.Signature[] signatures; |
| 159 | } |
| 160 | |
| 161 | public class CarAppBlockingPolicy implements android.os.Parcelable { |
| 162 | ctor public CarAppBlockingPolicy(android.car.content.pm.AppBlockingPackageInfo[], android.car.content.pm.AppBlockingPackageInfo[]); |
| 163 | ctor public CarAppBlockingPolicy(android.os.Parcel); |
| 164 | method public int describeContents(); |
| 165 | method public void writeToParcel(android.os.Parcel, int); |
| 166 | field public static final android.os.Parcelable.Creator<android.car.content.pm.CarAppBlockingPolicy> CREATOR; |
| 167 | field public final android.car.content.pm.AppBlockingPackageInfo[] blacklists; |
| 168 | field public final android.car.content.pm.AppBlockingPackageInfo[] whitelists; |
| 169 | } |
| 170 | |
| 171 | public abstract class CarAppBlockingPolicyService extends android.app.Service { |
| 172 | ctor public CarAppBlockingPolicyService(); |
| 173 | method protected abstract android.car.content.pm.CarAppBlockingPolicy getAppBlockingPolicy(); |
| 174 | method public android.os.IBinder onBind(android.content.Intent); |
| 175 | field public static final java.lang.String SERVICE_INTERFACE = "android.car.content.pm.CarAppBlockingPolicyService"; |
| 176 | } |
| 177 | |
Keun-young Park | 4cf6911 | 2016-10-04 10:02:59 -0700 | [diff] [blame] | 178 | public final class CarPackageManager { |
Keun-young Park | 4727da3 | 2016-05-31 10:00:51 -0700 | [diff] [blame] | 179 | method public boolean isActivityBackedBySafeActivity(android.content.ComponentName) throws android.car.CarNotConnectedException; |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 180 | method public void setAppBlockingPolicy(java.lang.String, android.car.content.pm.CarAppBlockingPolicy, int) throws android.car.CarNotConnectedException, java.lang.IllegalArgumentException, java.lang.SecurityException; |
| 181 | field public static final int FLAG_SET_POLICY_ADD = 2; // 0x2 |
| 182 | field public static final int FLAG_SET_POLICY_REMOVE = 4; // 0x4 |
| 183 | field public static final int FLAG_SET_POLICY_WAIT_FOR_CHANGE = 1; // 0x1 |
| 184 | } |
| 185 | |
| 186 | } |
| 187 | |
Enrico Granata | 25e8946 | 2017-08-02 11:41:31 -0700 | [diff] [blame] | 188 | package android.car.diagnostic { |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 189 | |
Enrico Granata | ae25b92 | 2017-07-07 11:28:15 -0700 | [diff] [blame] | 190 | public class CarDiagnosticEvent implements android.os.Parcelable { |
| 191 | ctor public CarDiagnosticEvent(android.os.Parcel); |
| 192 | method public int describeContents(); |
| 193 | method public java.lang.Integer getFuelSystemStatus(); |
| 194 | method public java.lang.Integer getFuelType(); |
Enrico Granata | 25e8946 | 2017-08-02 11:41:31 -0700 | [diff] [blame] | 195 | method public android.car.diagnostic.CarDiagnosticEvent.CommonIgnitionMonitors getIgnitionMonitors(); |
Enrico Granata | ae25b92 | 2017-07-07 11:28:15 -0700 | [diff] [blame] | 196 | method public java.lang.Integer getSecondaryAirStatus(); |
| 197 | method public float getSystemFloatSensor(int, float); |
| 198 | method public java.lang.Float getSystemFloatSensor(int); |
| 199 | method public int getSystemIntegerSensor(int, int); |
| 200 | method public java.lang.Integer getSystemIntegerSensor(int); |
| 201 | method public float getVendorFloatSensor(int, float); |
| 202 | method public java.lang.Float getVendorFloatSensor(int); |
| 203 | method public int getVendorIntegerSensor(int, int); |
| 204 | method public java.lang.Integer getVendorIntegerSensor(int); |
Enrico Granata | ae25b92 | 2017-07-07 11:28:15 -0700 | [diff] [blame] | 205 | method public boolean isFreezeFrame(); |
| 206 | method public boolean isLiveFrame(); |
| 207 | method public void writeToJson(android.util.JsonWriter) throws java.io.IOException; |
| 208 | method public void writeToParcel(android.os.Parcel, int); |
Enrico Granata | 25e8946 | 2017-08-02 11:41:31 -0700 | [diff] [blame] | 209 | field public static final android.os.Parcelable.Creator<android.car.diagnostic.CarDiagnosticEvent> CREATOR; |
Enrico Granata | ae25b92 | 2017-07-07 11:28:15 -0700 | [diff] [blame] | 210 | field public final java.lang.String dtc; |
| 211 | field public final int frameType; |
| 212 | field public final long timestamp; |
| 213 | } |
| 214 | |
| 215 | public static class CarDiagnosticEvent.Builder { |
Enrico Granata | 25e8946 | 2017-08-02 11:41:31 -0700 | [diff] [blame] | 216 | method public android.car.diagnostic.CarDiagnosticEvent.Builder atTimestamp(long); |
| 217 | method public android.car.diagnostic.CarDiagnosticEvent build(); |
| 218 | method public static android.car.diagnostic.CarDiagnosticEvent.Builder newFreezeFrameBuilder(); |
| 219 | method public static android.car.diagnostic.CarDiagnosticEvent.Builder newLiveFrameBuilder(); |
| 220 | method public android.car.diagnostic.CarDiagnosticEvent.Builder withDtc(java.lang.String); |
| 221 | method public android.car.diagnostic.CarDiagnosticEvent.Builder withFloatValue(int, float); |
| 222 | method public android.car.diagnostic.CarDiagnosticEvent.Builder withIntValue(int, int); |
Enrico Granata | ae25b92 | 2017-07-07 11:28:15 -0700 | [diff] [blame] | 223 | } |
| 224 | |
Enrico Granata | f874771 | 2017-07-28 15:25:27 -0700 | [diff] [blame] | 225 | public static class CarDiagnosticEvent.CommonIgnitionMonitors { |
Enrico Granata | 25e8946 | 2017-08-02 11:41:31 -0700 | [diff] [blame] | 226 | method public android.car.diagnostic.CarDiagnosticEvent.CompressionIgnitionMonitors asCompressionIgnitionMonitors(); |
| 227 | method public android.car.diagnostic.CarDiagnosticEvent.SparkIgnitionMonitors asSparkIgnitionMonitors(); |
| 228 | field public final android.car.diagnostic.CarDiagnosticEvent.IgnitionMonitor components; |
| 229 | field public final android.car.diagnostic.CarDiagnosticEvent.IgnitionMonitor fuelSystem; |
| 230 | field public final android.car.diagnostic.CarDiagnosticEvent.IgnitionMonitor misfire; |
Enrico Granata | f874771 | 2017-07-28 15:25:27 -0700 | [diff] [blame] | 231 | } |
| 232 | |
Enrico Granata | 25e8946 | 2017-08-02 11:41:31 -0700 | [diff] [blame] | 233 | public static final class CarDiagnosticEvent.CompressionIgnitionMonitors extends android.car.diagnostic.CarDiagnosticEvent.CommonIgnitionMonitors { |
| 234 | field public final android.car.diagnostic.CarDiagnosticEvent.IgnitionMonitor EGROrVVT; |
| 235 | field public final android.car.diagnostic.CarDiagnosticEvent.IgnitionMonitor NMHCCatalyst; |
| 236 | field public final android.car.diagnostic.CarDiagnosticEvent.IgnitionMonitor NOxSCR; |
| 237 | field public final android.car.diagnostic.CarDiagnosticEvent.IgnitionMonitor PMFilter; |
| 238 | field public final android.car.diagnostic.CarDiagnosticEvent.IgnitionMonitor boostPressure; |
| 239 | field public final android.car.diagnostic.CarDiagnosticEvent.IgnitionMonitor exhaustGasSensor; |
Enrico Granata | f874771 | 2017-07-28 15:25:27 -0700 | [diff] [blame] | 240 | } |
| 241 | |
Enrico Granata | ae25b92 | 2017-07-07 11:28:15 -0700 | [diff] [blame] | 242 | public static final class CarDiagnosticEvent.FuelSystemStatus { |
| 243 | field public static final int CLOSED_LOOP = 2; // 0x2 |
| 244 | field public static final int CLOSED_LOOP_BUT_FEEDBACK_FAULT = 16; // 0x10 |
| 245 | field public static final int OPEN_ENGINE_LOAD_OR_DECELERATION = 4; // 0x4 |
| 246 | field public static final int OPEN_INSUFFICIENT_ENGINE_TEMPERATURE = 1; // 0x1 |
| 247 | field public static final int OPEN_SYSTEM_FAILURE = 8; // 0x8 |
| 248 | } |
| 249 | |
| 250 | public static abstract class CarDiagnosticEvent.FuelSystemStatus.Status implements java.lang.annotation.Annotation { |
| 251 | } |
| 252 | |
| 253 | public static final class CarDiagnosticEvent.FuelType { |
| 254 | field public static final int BIFUEL_RUNNING_CNG = 13; // 0xd |
| 255 | field public static final int BIFUEL_RUNNING_DIESEL = 23; // 0x17 |
| 256 | field public static final int BIFUEL_RUNNING_ELECTRIC = 15; // 0xf |
| 257 | field public static final int BIFUEL_RUNNING_ELECTRIC_AND_COMBUSTION = 16; // 0x10 |
| 258 | field public static final int BIFUEL_RUNNING_ETHANOL = 11; // 0xb |
| 259 | field public static final int BIFUEL_RUNNING_GASOLINE = 9; // 0x9 |
| 260 | field public static final int BIFUEL_RUNNING_LPG = 12; // 0xc |
| 261 | field public static final int BIFUEL_RUNNING_METHANOL = 10; // 0xa |
| 262 | field public static final int BIFUEL_RUNNING_PROPANE = 14; // 0xe |
| 263 | field public static final int CNG = 6; // 0x6 |
| 264 | field public static final int DIESEL = 4; // 0x4 |
| 265 | field public static final int ELECTRIC = 8; // 0x8 |
| 266 | field public static final int ETHANOL = 3; // 0x3 |
| 267 | field public static final int GASOLINE = 1; // 0x1 |
| 268 | field public static final int HYBRID_DIESEL = 19; // 0x13 |
| 269 | field public static final int HYBRID_ELECTRIC = 20; // 0x14 |
| 270 | field public static final int HYBRID_ETHANOL = 18; // 0x12 |
| 271 | field public static final int HYBRID_GASOLINE = 17; // 0x11 |
| 272 | field public static final int HYBRID_REGENERATIVE = 22; // 0x16 |
| 273 | field public static final int HYBRID_RUNNING_ELECTRIC_AND_COMBUSTION = 21; // 0x15 |
| 274 | field public static final int LPG = 5; // 0x5 |
| 275 | field public static final int METHANOL = 2; // 0x2 |
| 276 | field public static final int NOT_AVAILABLE = 0; // 0x0 |
| 277 | field public static final int PROPANE = 7; // 0x7 |
| 278 | } |
| 279 | |
| 280 | public static abstract class CarDiagnosticEvent.FuelType.Type implements java.lang.annotation.Annotation { |
| 281 | } |
| 282 | |
Enrico Granata | f874771 | 2017-07-28 15:25:27 -0700 | [diff] [blame] | 283 | public static final class CarDiagnosticEvent.IgnitionMonitor { |
Enrico Granata | ae25b92 | 2017-07-07 11:28:15 -0700 | [diff] [blame] | 284 | field public final boolean available; |
| 285 | field public final boolean incomplete; |
| 286 | } |
| 287 | |
Enrico Granata | ae25b92 | 2017-07-07 11:28:15 -0700 | [diff] [blame] | 288 | public static final class CarDiagnosticEvent.SecondaryAirStatus { |
| 289 | field public static final int DOWNSTREAM_OF_CATALYCIC_CONVERTER = 2; // 0x2 |
| 290 | field public static final int FROM_OUTSIDE_OR_OFF = 4; // 0x4 |
| 291 | field public static final int PUMP_ON_FOR_DIAGNOSTICS = 8; // 0x8 |
| 292 | field public static final int UPSTREAM = 1; // 0x1 |
| 293 | } |
| 294 | |
| 295 | public static abstract class CarDiagnosticEvent.SecondaryAirStatus.Status implements java.lang.annotation.Annotation { |
| 296 | } |
| 297 | |
Enrico Granata | 25e8946 | 2017-08-02 11:41:31 -0700 | [diff] [blame] | 298 | public static final class CarDiagnosticEvent.SparkIgnitionMonitors extends android.car.diagnostic.CarDiagnosticEvent.CommonIgnitionMonitors { |
| 299 | field public final android.car.diagnostic.CarDiagnosticEvent.IgnitionMonitor ACRefrigerant; |
| 300 | field public final android.car.diagnostic.CarDiagnosticEvent.IgnitionMonitor EGR; |
| 301 | field public final android.car.diagnostic.CarDiagnosticEvent.IgnitionMonitor catalyst; |
| 302 | field public final android.car.diagnostic.CarDiagnosticEvent.IgnitionMonitor evaporativeSystem; |
| 303 | field public final android.car.diagnostic.CarDiagnosticEvent.IgnitionMonitor heatedCatalyst; |
| 304 | field public final android.car.diagnostic.CarDiagnosticEvent.IgnitionMonitor oxygenSensor; |
| 305 | field public final android.car.diagnostic.CarDiagnosticEvent.IgnitionMonitor oxygenSensorHeater; |
| 306 | field public final android.car.diagnostic.CarDiagnosticEvent.IgnitionMonitor secondaryAirSystem; |
Enrico Granata | f874771 | 2017-07-28 15:25:27 -0700 | [diff] [blame] | 307 | } |
| 308 | |
Enrico Granata | ae25b92 | 2017-07-07 11:28:15 -0700 | [diff] [blame] | 309 | public final class CarDiagnosticManager { |
Enrico Granata | ae25b92 | 2017-07-07 11:28:15 -0700 | [diff] [blame] | 310 | method public boolean clearFreezeFrames(long...) throws android.car.CarNotConnectedException; |
Enrico Granata | 25e8946 | 2017-08-02 11:41:31 -0700 | [diff] [blame] | 311 | method public android.car.diagnostic.CarDiagnosticEvent getFreezeFrame(long) throws android.car.CarNotConnectedException; |
Enrico Granata | ae25b92 | 2017-07-07 11:28:15 -0700 | [diff] [blame] | 312 | method public long[] getFreezeFrameTimestamps() throws android.car.CarNotConnectedException; |
Enrico Granata | 25e8946 | 2017-08-02 11:41:31 -0700 | [diff] [blame] | 313 | method public android.car.diagnostic.CarDiagnosticEvent getLatestLiveFrame() throws android.car.CarNotConnectedException; |
Enrico Granata | 2e3b49a | 2017-07-27 14:51:52 -0700 | [diff] [blame] | 314 | method public boolean isClearFreezeFramesSupported() throws android.car.CarNotConnectedException; |
| 315 | method public boolean isFreezeFrameNotificationSupported() throws android.car.CarNotConnectedException; |
| 316 | method public boolean isGetFreezeFrameSupported() throws android.car.CarNotConnectedException; |
Enrico Granata | ae25b92 | 2017-07-07 11:28:15 -0700 | [diff] [blame] | 317 | method public boolean isLiveFrameSupported() throws android.car.CarNotConnectedException; |
Enrico Granata | 57ec270 | 2017-08-11 11:06:35 -0700 | [diff] [blame] | 318 | method public boolean isSelectiveClearFreezeFramesSupported() throws android.car.CarNotConnectedException; |
Enrico Granata | ae25b92 | 2017-07-07 11:28:15 -0700 | [diff] [blame] | 319 | method public void onCarDisconnected(); |
Enrico Granata | 25e8946 | 2017-08-02 11:41:31 -0700 | [diff] [blame] | 320 | method public boolean registerListener(android.car.diagnostic.CarDiagnosticManager.OnDiagnosticEventListener, int, int) throws android.car.CarNotConnectedException, java.lang.IllegalArgumentException; |
| 321 | method public void unregisterListener(android.car.diagnostic.CarDiagnosticManager.OnDiagnosticEventListener); |
Enrico Granata | ae25b92 | 2017-07-07 11:28:15 -0700 | [diff] [blame] | 322 | field public static final int FRAME_TYPE_FREEZE = 1; // 0x1 |
| 323 | field public static final int FRAME_TYPE_LIVE = 0; // 0x0 |
| 324 | } |
| 325 | |
| 326 | public static abstract class CarDiagnosticManager.FrameType implements java.lang.annotation.Annotation { |
| 327 | } |
| 328 | |
| 329 | public static abstract interface CarDiagnosticManager.OnDiagnosticEventListener { |
Enrico Granata | 25e8946 | 2017-08-02 11:41:31 -0700 | [diff] [blame] | 330 | method public abstract void onDiagnosticEvent(android.car.diagnostic.CarDiagnosticEvent); |
Enrico Granata | ae25b92 | 2017-07-07 11:28:15 -0700 | [diff] [blame] | 331 | } |
| 332 | |
Enrico Granata | 25e8946 | 2017-08-02 11:41:31 -0700 | [diff] [blame] | 333 | public final class FloatSensorIndex { |
| 334 | field public static final int ABSOLUTE_EVAPORATION_SYSTEM_VAPOR_PRESSURE = 58; // 0x3a |
| 335 | field public static final int ABSOLUTE_LOAD_VALUE = 48; // 0x30 |
| 336 | field public static final int ABSOLUTE_THROTTLE_POSITION_B = 51; // 0x33 |
| 337 | field public static final int ABSOLUTE_THROTTLE_POSITION_C = 52; // 0x34 |
| 338 | field public static final int ACCELERATOR_PEDAL_POSITION_D = 53; // 0x35 |
| 339 | field public static final int ACCELERATOR_PEDAL_POSITION_E = 54; // 0x36 |
| 340 | field public static final int ACCELERATOR_PEDAL_POSITION_F = 55; // 0x37 |
| 341 | field public static final int CALCULATED_ENGINE_LOAD = 0; // 0x0 |
| 342 | field public static final int CATALYST_TEMPERATURE_BANK1_SENSOR1 = 44; // 0x2c |
| 343 | field public static final int CATALYST_TEMPERATURE_BANK1_SENSOR2 = 46; // 0x2e |
| 344 | field public static final int CATALYST_TEMPERATURE_BANK2_SENSOR1 = 45; // 0x2d |
| 345 | field public static final int CATALYST_TEMPERATURE_BANK2_SENSOR2 = 47; // 0x2f |
| 346 | field public static final int COMMANDED_EVAPORATIVE_PURGE = 41; // 0x29 |
| 347 | field public static final int COMMANDED_EXHAUST_GAS_RECIRCULATION = 39; // 0x27 |
| 348 | field public static final int COMMANDED_THROTTLE_ACTUATOR = 56; // 0x38 |
| 349 | field public static final int ENGINE_COOLANT_TEMPERATURE = 1; // 0x1 |
| 350 | field public static final int ENGINE_FUEL_RATE = 70; // 0x46 |
| 351 | field public static final int ENGINE_RPM = 8; // 0x8 |
| 352 | field public static final int ETHANOL_FUEL_PERCENTAGE = 57; // 0x39 |
| 353 | field public static final int EVAPORATION_SYSTEM_VAPOR_PRESSURE = 43; // 0x2b |
| 354 | field public static final int EXHAUST_GAS_RECIRCULATION_ERROR = 40; // 0x28 |
| 355 | field public static final int FUEL_AIR_COMMANDED_EQUIVALENCE_RATIO = 49; // 0x31 |
| 356 | field public static final int FUEL_INJECTION_TIMING = 69; // 0x45 |
| 357 | field public static final int FUEL_PRESSURE = 6; // 0x6 |
| 358 | field public static final int FUEL_RAIL_GAUGE_PRESSURE = 38; // 0x26 |
| 359 | field public static final int FUEL_RAIL_PRESSURE = 37; // 0x25 |
| 360 | field public static final int FUEL_TANK_LEVEL_INPUT = 42; // 0x2a |
| 361 | field public static final int HYBRID_BATTERY_PACK_REMAINING_LIFE = 68; // 0x44 |
| 362 | field public static final int INTAKE_MANIFOLD_ABSOLUTE_PRESSURE = 7; // 0x7 |
| 363 | field public static final int LAST_SYSTEM = 70; // 0x46 |
| 364 | field public static final int LONG_TERM_FUEL_TRIM_BANK1 = 3; // 0x3 |
| 365 | field public static final int LONG_TERM_FUEL_TRIM_BANK2 = 5; // 0x5 |
| 366 | field public static final int LONG_TERM_SECONDARY_OXYGEN_SENSOR_TRIM_BANK1 = 63; // 0x3f |
| 367 | field public static final int LONG_TERM_SECONDARY_OXYGEN_SENSOR_TRIM_BANK2 = 64; // 0x40 |
| 368 | field public static final int LONG_TERM_SECONDARY_OXYGEN_SENSOR_TRIM_BANK3 = 65; // 0x41 |
| 369 | field public static final int LONG_TERM_SECONDARY_OXYGEN_SENSOR_TRIM_BANK4 = 66; // 0x42 |
| 370 | field public static final int MAF_AIR_FLOW_RATE = 11; // 0xb |
| 371 | field public static final int OXYGEN_SENSOR1_FUEL_AIR_EQUIVALENCE_RATIO = 15; // 0xf |
| 372 | field public static final int OXYGEN_SENSOR1_SHORT_TERM_FUEL_TRIM = 14; // 0xe |
| 373 | field public static final int OXYGEN_SENSOR1_VOLTAGE = 13; // 0xd |
| 374 | field public static final int OXYGEN_SENSOR2_FUEL_AIR_EQUIVALENCE_RATIO = 18; // 0x12 |
| 375 | field public static final int OXYGEN_SENSOR2_SHORT_TERM_FUEL_TRIM = 17; // 0x11 |
| 376 | field public static final int OXYGEN_SENSOR2_VOLTAGE = 16; // 0x10 |
| 377 | field public static final int OXYGEN_SENSOR3_FUEL_AIR_EQUIVALENCE_RATIO = 21; // 0x15 |
| 378 | field public static final int OXYGEN_SENSOR3_SHORT_TERM_FUEL_TRIM = 20; // 0x14 |
| 379 | field public static final int OXYGEN_SENSOR3_VOLTAGE = 19; // 0x13 |
| 380 | field public static final int OXYGEN_SENSOR4_FUEL_AIR_EQUIVALENCE_RATIO = 24; // 0x18 |
| 381 | field public static final int OXYGEN_SENSOR4_SHORT_TERM_FUEL_TRIM = 23; // 0x17 |
| 382 | field public static final int OXYGEN_SENSOR4_VOLTAGE = 22; // 0x16 |
| 383 | field public static final int OXYGEN_SENSOR5_FUEL_AIR_EQUIVALENCE_RATIO = 27; // 0x1b |
| 384 | field public static final int OXYGEN_SENSOR5_SHORT_TERM_FUEL_TRIM = 26; // 0x1a |
| 385 | field public static final int OXYGEN_SENSOR5_VOLTAGE = 25; // 0x19 |
| 386 | field public static final int OXYGEN_SENSOR6_FUEL_AIR_EQUIVALENCE_RATIO = 30; // 0x1e |
| 387 | field public static final int OXYGEN_SENSOR6_SHORT_TERM_FUEL_TRIM = 29; // 0x1d |
| 388 | field public static final int OXYGEN_SENSOR6_VOLTAGE = 28; // 0x1c |
| 389 | field public static final int OXYGEN_SENSOR7_FUEL_AIR_EQUIVALENCE_RATIO = 33; // 0x21 |
| 390 | field public static final int OXYGEN_SENSOR7_SHORT_TERM_FUEL_TRIM = 32; // 0x20 |
| 391 | field public static final int OXYGEN_SENSOR7_VOLTAGE = 31; // 0x1f |
| 392 | field public static final int OXYGEN_SENSOR8_FUEL_AIR_EQUIVALENCE_RATIO = 36; // 0x24 |
| 393 | field public static final int OXYGEN_SENSOR8_SHORT_TERM_FUEL_TRIM = 35; // 0x23 |
| 394 | field public static final int OXYGEN_SENSOR8_VOLTAGE = 34; // 0x22 |
| 395 | field public static final int RELATIVE_ACCELERATOR_PEDAL_POSITION = 67; // 0x43 |
| 396 | field public static final int RELATIVE_THROTTLE_POSITION = 50; // 0x32 |
| 397 | field public static final int SHORT_TERM_FUEL_TRIM_BANK1 = 2; // 0x2 |
| 398 | field public static final int SHORT_TERM_FUEL_TRIM_BANK2 = 4; // 0x4 |
| 399 | field public static final int SHORT_TERM_SECONDARY_OXYGEN_SENSOR_TRIM_BANK1 = 59; // 0x3b |
| 400 | field public static final int SHORT_TERM_SECONDARY_OXYGEN_SENSOR_TRIM_BANK2 = 60; // 0x3c |
| 401 | field public static final int SHORT_TERM_SECONDARY_OXYGEN_SENSOR_TRIM_BANK3 = 61; // 0x3d |
| 402 | field public static final int SHORT_TERM_SECONDARY_OXYGEN_SENSOR_TRIM_BANK4 = 62; // 0x3e |
| 403 | field public static final int THROTTLE_POSITION = 12; // 0xc |
| 404 | field public static final int TIMING_ADVANCE = 10; // 0xa |
| 405 | field public static final int VEHICLE_SPEED = 9; // 0x9 |
| 406 | field public static final int VENDOR_START = 71; // 0x47 |
| 407 | } |
| 408 | |
| 409 | public final class IntegerSensorIndex { |
| 410 | field public static final int ABSOLUTE_BAROMETRIC_PRESSURE = 11; // 0xb |
| 411 | field public static final int AMBIENT_AIR_TEMPERATURE = 13; // 0xd |
| 412 | field public static final int COMMANDED_SECONDARY_AIR_STATUS = 5; // 0x5 |
| 413 | field public static final int CONTROL_MODULE_VOLTAGE = 12; // 0xc |
| 414 | field public static final int DISTANCE_TRAVELED_SINCE_CODES_CLEARED = 10; // 0xa |
| 415 | field public static final int DISTANCE_TRAVELED_WITH_MALFUNCTION_INDICATOR_LIGHT_ON = 8; // 0x8 |
| 416 | field public static final int DRIVER_DEMAND_PERCENT_TORQUE = 24; // 0x18 |
| 417 | field public static final int ENGINE_ACTUAL_PERCENT_TORQUE = 25; // 0x19 |
| 418 | field public static final int ENGINE_OIL_TEMPERATURE = 23; // 0x17 |
| 419 | field public static final int ENGINE_PERCENT_TORQUE_DATA_IDLE = 27; // 0x1b |
| 420 | field public static final int ENGINE_PERCENT_TORQUE_DATA_POINT1 = 28; // 0x1c |
| 421 | field public static final int ENGINE_PERCENT_TORQUE_DATA_POINT2 = 29; // 0x1d |
| 422 | field public static final int ENGINE_PERCENT_TORQUE_DATA_POINT3 = 30; // 0x1e |
| 423 | field public static final int ENGINE_PERCENT_TORQUE_DATA_POINT4 = 31; // 0x1f |
| 424 | field public static final int ENGINE_REFERENCE_PERCENT_TORQUE = 26; // 0x1a |
| 425 | field public static final int FUEL_RAIL_ABSOLUTE_PRESSURE = 22; // 0x16 |
| 426 | field public static final int FUEL_SYSTEM_STATUS = 0; // 0x0 |
| 427 | field public static final int FUEL_TYPE = 21; // 0x15 |
| 428 | field public static final int IGNITION_MONITORS_SUPPORTED = 2; // 0x2 |
| 429 | field public static final int IGNITION_SPECIFIC_MONITORS = 3; // 0x3 |
| 430 | field public static final int INTAKE_AIR_TEMPERATURE = 4; // 0x4 |
| 431 | field public static final int LAST_SYSTEM = 31; // 0x1f |
| 432 | field public static final int MALFUNCTION_INDICATOR_LIGHT_ON = 1; // 0x1 |
| 433 | field public static final int MAX_AIR_FLOW_RATE_FROM_MASS_AIR_FLOW_SENSOR = 20; // 0x14 |
| 434 | field public static final int MAX_FUEL_AIR_EQUIVALENCE_RATIO = 16; // 0x10 |
| 435 | field public static final int MAX_INTAKE_MANIFOLD_ABSOLUTE_PRESSURE = 19; // 0x13 |
| 436 | field public static final int MAX_OXYGEN_SENSOR_CURRENT = 18; // 0x12 |
| 437 | field public static final int MAX_OXYGEN_SENSOR_VOLTAGE = 17; // 0x11 |
| 438 | field public static final int NUM_OXYGEN_SENSORS_PRESENT = 6; // 0x6 |
| 439 | field public static final int RUNTIME_SINCE_ENGINE_START = 7; // 0x7 |
| 440 | field public static final int TIME_SINCE_TROUBLE_CODES_CLEARED = 15; // 0xf |
| 441 | field public static final int TIME_WITH_MALFUNCTION_LIGHT_ON = 14; // 0xe |
| 442 | field public static final int VENDOR_START = 32; // 0x20 |
| 443 | field public static final int WARMUPS_SINCE_CODES_CLEARED = 9; // 0x9 |
| 444 | } |
| 445 | |
| 446 | } |
| 447 | |
Ram Periathiruvadi | 25c16f1 | 2017-11-17 16:48:37 -0800 | [diff] [blame] | 448 | package android.car.drivingstate { |
| 449 | |
| 450 | public class CarDrivingStateEvent implements android.os.Parcelable { |
| 451 | ctor public CarDrivingStateEvent(int, long); |
| 452 | method public int describeContents(); |
| 453 | method public void writeToParcel(android.os.Parcel, int); |
| 454 | field public static final android.os.Parcelable.Creator<android.car.drivingstate.CarDrivingStateEvent> CREATOR; |
| 455 | field public static final int DRIVING_STATE_IDLING = 1; // 0x1 |
| 456 | field public static final int DRIVING_STATE_MOVING = 2; // 0x2 |
| 457 | field public static final int DRIVING_STATE_PARKED = 0; // 0x0 |
| 458 | field public static final int DRIVING_STATE_UNKNOWN = -1; // 0xffffffff |
| 459 | field public final int eventValue; |
| 460 | field public final long timeStamp; |
| 461 | } |
| 462 | |
| 463 | public final class CarDrivingStateManager { |
| 464 | method public android.car.drivingstate.CarDrivingStateEvent getCurrentCarDrivingState() throws android.car.CarNotConnectedException; |
| 465 | method public synchronized void registerListener(android.car.drivingstate.CarDrivingStateManager.CarDrivingStateEventListener) throws android.car.CarNotConnectedException, java.lang.IllegalArgumentException; |
| 466 | method public synchronized void unregisterListener() throws android.car.CarNotConnectedException; |
| 467 | } |
| 468 | |
| 469 | public static abstract interface CarDrivingStateManager.CarDrivingStateEventListener { |
| 470 | method public abstract void onDrivingStateChanged(android.car.drivingstate.CarDrivingStateEvent); |
| 471 | } |
| 472 | |
| 473 | } |
| 474 | |
Enrico Granata | 25e8946 | 2017-08-02 11:41:31 -0700 | [diff] [blame] | 475 | package android.car.hardware { |
| 476 | |
Keun-young Park | 6089156 | 2016-09-28 11:16:02 -0700 | [diff] [blame] | 477 | public class CarPropertyConfig<T> implements android.os.Parcelable { |
Steve Paik | fb5f623 | 2016-03-28 10:31:25 -0700 | [diff] [blame] | 478 | method public int describeContents(); |
| 479 | method public int getAreaCount(); |
| 480 | method public int[] getAreaIds(); |
| 481 | method public int getAreaType(); |
| 482 | method public int getFirstAndOnlyAreaId(); |
| 483 | method public T getMaxValue(int); |
| 484 | method public T getMaxValue(); |
| 485 | method public T getMinValue(int); |
| 486 | method public T getMinValue(); |
| 487 | method public int getPropertyId(); |
| 488 | method public java.lang.Class<T> getPropertyType(); |
| 489 | method public boolean hasArea(int); |
| 490 | method public boolean isGlobalProperty(); |
Keun-young Park | 6089156 | 2016-09-28 11:16:02 -0700 | [diff] [blame] | 491 | method public static <T> android.car.hardware.CarPropertyConfig.Builder<T> newBuilder(java.lang.Class<T>, int, int, int); |
| 492 | method public static <T> android.car.hardware.CarPropertyConfig.Builder<T> newBuilder(java.lang.Class<T>, int, int); |
Steve Paik | fb5f623 | 2016-03-28 10:31:25 -0700 | [diff] [blame] | 493 | method public void writeToParcel(android.os.Parcel, int); |
| 494 | field public static final android.os.Parcelable.Creator<android.car.hardware.CarPropertyConfig> CREATOR; |
| 495 | } |
| 496 | |
Keun-young Park | 6089156 | 2016-09-28 11:16:02 -0700 | [diff] [blame] | 497 | public static class CarPropertyConfig.AreaConfig<T> implements android.os.Parcelable { |
Steve Paik | fb5f623 | 2016-03-28 10:31:25 -0700 | [diff] [blame] | 498 | method public int describeContents(); |
| 499 | method public T getMaxValue(); |
| 500 | method public T getMinValue(); |
| 501 | method public void writeToParcel(android.os.Parcel, int); |
| 502 | field public static final android.os.Parcelable.Creator<android.car.hardware.CarPropertyConfig.AreaConfig<java.lang.Object>> CREATOR; |
| 503 | } |
| 504 | |
Keun-young Park | 6089156 | 2016-09-28 11:16:02 -0700 | [diff] [blame] | 505 | public static class CarPropertyConfig.Builder<T> { |
Steve Paik | fb5f623 | 2016-03-28 10:31:25 -0700 | [diff] [blame] | 506 | method public android.car.hardware.CarPropertyConfig.Builder<T> addArea(int); |
| 507 | method public android.car.hardware.CarPropertyConfig.Builder<T> addAreaConfig(int, T, T); |
| 508 | method public android.car.hardware.CarPropertyConfig.Builder<T> addAreas(int[]); |
| 509 | method public android.car.hardware.CarPropertyConfig<T> build(); |
| 510 | } |
| 511 | |
Keun-young Park | 6089156 | 2016-09-28 11:16:02 -0700 | [diff] [blame] | 512 | public class CarPropertyValue<T> implements android.os.Parcelable { |
Steve Paik | fb5f623 | 2016-03-28 10:31:25 -0700 | [diff] [blame] | 513 | ctor public CarPropertyValue(int, int, T); |
Steve Paik | 382ceee | 2018-01-22 19:21:44 -0800 | [diff] [blame] | 514 | ctor public CarPropertyValue(int, int, int, long, T); |
Steve Paik | fb5f623 | 2016-03-28 10:31:25 -0700 | [diff] [blame] | 515 | ctor public CarPropertyValue(android.os.Parcel); |
| 516 | method public int describeContents(); |
| 517 | method public int getAreaId(); |
| 518 | method public int getPropertyId(); |
Steve Paik | 382ceee | 2018-01-22 19:21:44 -0800 | [diff] [blame] | 519 | method public int getStatus(); |
| 520 | method public long getTimestamp(); |
Steve Paik | fb5f623 | 2016-03-28 10:31:25 -0700 | [diff] [blame] | 521 | method public T getValue(); |
| 522 | method public void writeToParcel(android.os.Parcel, int); |
| 523 | field public static final android.os.Parcelable.Creator<android.car.hardware.CarPropertyValue> CREATOR; |
| 524 | } |
| 525 | |
Keun-young Park | 4cf6911 | 2016-10-04 10:02:59 -0700 | [diff] [blame] | 526 | public final class CarVendorExtensionManager { |
Keun-young Park | 6089156 | 2016-09-28 11:16:02 -0700 | [diff] [blame] | 527 | method public <E> E getGlobalProperty(java.lang.Class<E>, int) throws android.car.CarNotConnectedException; |
Pavel Maltsev | 634e1ff | 2016-07-14 15:41:26 -0700 | [diff] [blame] | 528 | method public java.util.List<android.car.hardware.CarPropertyConfig> getProperties() throws android.car.CarNotConnectedException; |
Keun-young Park | 6089156 | 2016-09-28 11:16:02 -0700 | [diff] [blame] | 529 | method public <E> E getProperty(java.lang.Class<E>, int, int) throws android.car.CarNotConnectedException; |
Keun-young Park | af2cc99 | 2016-10-07 11:46:45 -0700 | [diff] [blame] | 530 | method public void registerCallback(android.car.hardware.CarVendorExtensionManager.CarVendorExtensionCallback) throws android.car.CarNotConnectedException; |
Keun-young Park | 6089156 | 2016-09-28 11:16:02 -0700 | [diff] [blame] | 531 | method public <E> void setGlobalProperty(java.lang.Class<E>, int, E) throws android.car.CarNotConnectedException; |
| 532 | method public <E> void setProperty(java.lang.Class<E>, int, int, E) throws android.car.CarNotConnectedException; |
Keun-young Park | 150d8de | 2016-10-07 15:48:11 -0700 | [diff] [blame] | 533 | method public void unregisterCallback(android.car.hardware.CarVendorExtensionManager.CarVendorExtensionCallback); |
Pavel Maltsev | 634e1ff | 2016-07-14 15:41:26 -0700 | [diff] [blame] | 534 | } |
| 535 | |
Keun-young Park | af2cc99 | 2016-10-07 11:46:45 -0700 | [diff] [blame] | 536 | public static abstract interface CarVendorExtensionManager.CarVendorExtensionCallback { |
Pavel Maltsev | 634e1ff | 2016-07-14 15:41:26 -0700 | [diff] [blame] | 537 | method public abstract void onChangeEvent(android.car.hardware.CarPropertyValue); |
| 538 | method public abstract void onErrorEvent(int, int); |
| 539 | } |
| 540 | |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 541 | } |
| 542 | |
Steve Paik | 43c04a7 | 2016-07-08 19:12:09 -0700 | [diff] [blame] | 543 | package android.car.hardware.cabin { |
| 544 | |
Keun-young Park | 4cf6911 | 2016-10-04 10:02:59 -0700 | [diff] [blame] | 545 | public final class CarCabinManager { |
Steve Paik | 43c04a7 | 2016-07-08 19:12:09 -0700 | [diff] [blame] | 546 | method public boolean getBooleanProperty(int, int) throws android.car.CarNotConnectedException; |
| 547 | method public float getFloatProperty(int, int) throws android.car.CarNotConnectedException; |
| 548 | method public int getIntProperty(int, int) throws android.car.CarNotConnectedException; |
| 549 | method public java.util.List<android.car.hardware.CarPropertyConfig> getPropertyList() throws android.car.CarNotConnectedException; |
| 550 | method public static boolean isZonedProperty(int); |
Keun-young Park | af2cc99 | 2016-10-07 11:46:45 -0700 | [diff] [blame] | 551 | method public synchronized void registerCallback(android.car.hardware.cabin.CarCabinManager.CarCabinEventCallback) throws android.car.CarNotConnectedException; |
Steve Paik | 43c04a7 | 2016-07-08 19:12:09 -0700 | [diff] [blame] | 552 | method public void setBooleanProperty(int, int, boolean) throws android.car.CarNotConnectedException; |
| 553 | method public void setFloatProperty(int, int, float) throws android.car.CarNotConnectedException; |
| 554 | method public void setIntProperty(int, int, int) throws android.car.CarNotConnectedException; |
Keun-young Park | 150d8de | 2016-10-07 15:48:11 -0700 | [diff] [blame] | 555 | method public synchronized void unregisterCallback(android.car.hardware.cabin.CarCabinManager.CarCabinEventCallback); |
Keun-young Park | af2cc99 | 2016-10-07 11:46:45 -0700 | [diff] [blame] | 556 | field public static final int ID_DOOR_LOCK = 3; // 0x3 |
| 557 | field public static final int ID_DOOR_MOVE = 2; // 0x2 |
| 558 | field public static final int ID_DOOR_POS = 1; // 0x1 |
| 559 | field public static final int ID_MIRROR_FOLD = 4102; // 0x1006 |
| 560 | field public static final int ID_MIRROR_LOCK = 4101; // 0x1005 |
| 561 | field public static final int ID_MIRROR_Y_MOVE = 4100; // 0x1004 |
| 562 | field public static final int ID_MIRROR_Y_POS = 4099; // 0x1003 |
| 563 | field public static final int ID_MIRROR_Z_MOVE = 4098; // 0x1002 |
| 564 | field public static final int ID_MIRROR_Z_POS = 4097; // 0x1001 |
| 565 | field public static final int ID_SEAT_BACKREST_ANGLE_1_MOVE = 8201; // 0x2009 |
| 566 | field public static final int ID_SEAT_BACKREST_ANGLE_1_POS = 8200; // 0x2008 |
| 567 | field public static final int ID_SEAT_BACKREST_ANGLE_2_MOVE = 8203; // 0x200b |
| 568 | field public static final int ID_SEAT_BACKREST_ANGLE_2_POS = 8202; // 0x200a |
| 569 | field public static final int ID_SEAT_BELT_BUCKLED = 8195; // 0x2003 |
| 570 | field public static final int ID_SEAT_BELT_HEIGHT_MOVE = 8197; // 0x2005 |
| 571 | field public static final int ID_SEAT_BELT_HEIGHT_POS = 8196; // 0x2004 |
| 572 | field public static final int ID_SEAT_DEPTH_MOVE = 8207; // 0x200f |
| 573 | field public static final int ID_SEAT_DEPTH_POS = 8206; // 0x200e |
| 574 | field public static final int ID_SEAT_FORE_AFT_MOVE = 8199; // 0x2007 |
| 575 | field public static final int ID_SEAT_FORE_AFT_POS = 8198; // 0x2006 |
| 576 | field public static final int ID_SEAT_HEADREST_ANGLE_MOVE = 8217; // 0x2019 |
| 577 | field public static final int ID_SEAT_HEADREST_ANGLE_POS = 8216; // 0x2018 |
| 578 | field public static final int ID_SEAT_HEADREST_FORE_AFT_MOVE = 8219; // 0x201b |
| 579 | field public static final int ID_SEAT_HEADREST_FORE_AFT_POS = 8218; // 0x201a |
| 580 | field public static final int ID_SEAT_HEADREST_HEIGHT_MOVE = 8215; // 0x2017 |
| 581 | field public static final int ID_SEAT_HEADREST_HEIGHT_POS = 8214; // 0x2016 |
| 582 | field public static final int ID_SEAT_HEIGHT_MOVE = 8205; // 0x200d |
| 583 | field public static final int ID_SEAT_HEIGHT_POS = 8204; // 0x200c |
| 584 | field public static final int ID_SEAT_LUMBAR_FORE_AFT_MOVE = 8211; // 0x2013 |
| 585 | field public static final int ID_SEAT_LUMBAR_FORE_AFT_POS = 8210; // 0x2012 |
| 586 | field public static final int ID_SEAT_LUMBAR_SIDE_SUPPORT_MOVE = 8213; // 0x2015 |
| 587 | field public static final int ID_SEAT_LUMBAR_SIDE_SUPPORT_POS = 8212; // 0x2014 |
| 588 | field public static final int ID_SEAT_MEMORY_SELECT = 8193; // 0x2001 |
| 589 | field public static final int ID_SEAT_MEMORY_SET = 8194; // 0x2002 |
| 590 | field public static final int ID_SEAT_TILT_MOVE = 8209; // 0x2011 |
| 591 | field public static final int ID_SEAT_TILT_POS = 8208; // 0x2010 |
| 592 | field public static final int ID_WINDOW_LOCK = 12293; // 0x3005 |
| 593 | field public static final int ID_WINDOW_MOVE = 12290; // 0x3002 |
| 594 | field public static final int ID_WINDOW_POS = 12289; // 0x3001 |
| 595 | field public static final int ID_WINDOW_VENT_MOVE = 12292; // 0x3004 |
| 596 | field public static final int ID_WINDOW_VENT_POS = 12291; // 0x3003 |
Steve Paik | 43c04a7 | 2016-07-08 19:12:09 -0700 | [diff] [blame] | 597 | } |
| 598 | |
Keun-young Park | af2cc99 | 2016-10-07 11:46:45 -0700 | [diff] [blame] | 599 | public static abstract interface CarCabinManager.CarCabinEventCallback { |
Steve Paik | 43c04a7 | 2016-07-08 19:12:09 -0700 | [diff] [blame] | 600 | method public abstract void onChangeEvent(android.car.hardware.CarPropertyValue); |
| 601 | method public abstract void onErrorEvent(int, int); |
| 602 | } |
| 603 | |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 604 | } |
| 605 | |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 606 | package android.car.hardware.hvac { |
| 607 | |
Keun-young Park | 4cf6911 | 2016-10-04 10:02:59 -0700 | [diff] [blame] | 608 | public final class CarHvacManager { |
Vitalii Tomkiv | 235f8ac | 2016-04-04 11:26:49 -0700 | [diff] [blame] | 609 | method public boolean getBooleanProperty(int, int) throws android.car.CarNotConnectedException; |
| 610 | method public float getFloatProperty(int, int) throws android.car.CarNotConnectedException; |
| 611 | method public int getIntProperty(int, int) throws android.car.CarNotConnectedException; |
Steve Paik | fb5f623 | 2016-03-28 10:31:25 -0700 | [diff] [blame] | 612 | method public java.util.List<android.car.hardware.CarPropertyConfig> getPropertyList() throws android.car.CarNotConnectedException; |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 613 | method public static boolean isZonedProperty(int); |
Keun-young Park | af2cc99 | 2016-10-07 11:46:45 -0700 | [diff] [blame] | 614 | method public synchronized void registerCallback(android.car.hardware.hvac.CarHvacManager.CarHvacEventCallback) throws android.car.CarNotConnectedException; |
Vitalii Tomkiv | 235f8ac | 2016-04-04 11:26:49 -0700 | [diff] [blame] | 615 | method public void setBooleanProperty(int, int, boolean) throws android.car.CarNotConnectedException; |
| 616 | method public void setFloatProperty(int, int, float) throws android.car.CarNotConnectedException; |
| 617 | method public void setIntProperty(int, int, int) throws android.car.CarNotConnectedException; |
Keun-young Park | 150d8de | 2016-10-07 15:48:11 -0700 | [diff] [blame] | 618 | method public synchronized void unregisterCallback(android.car.hardware.hvac.CarHvacManager.CarHvacEventCallback); |
Pavel Maltsev | 5e9202e | 2017-01-10 14:34:22 -0800 | [diff] [blame] | 619 | field public static final int FAN_POSITION_DEFROST = 4; // 0x4 |
| 620 | field public static final int FAN_POSITION_DEFROST_AND_FLOOR = 5; // 0x5 |
| 621 | field public static final int FAN_POSITION_FACE = 1; // 0x1 |
| 622 | field public static final int FAN_POSITION_FACE_AND_FLOOR = 3; // 0x3 |
| 623 | field public static final int FAN_POSITION_FLOOR = 2; // 0x2 |
Keun-young Park | af2cc99 | 2016-10-07 11:46:45 -0700 | [diff] [blame] | 624 | field public static final int ID_MIRROR_DEFROSTER_ON = 1; // 0x1 |
| 625 | field public static final int ID_OUTSIDE_AIR_TEMP = 3; // 0x3 |
| 626 | field public static final int ID_STEERING_WHEEL_TEMP = 2; // 0x2 |
| 627 | field public static final int ID_TEMPERATURE_UNITS = 4; // 0x4 |
| 628 | field public static final int ID_WINDOW_DEFROSTER_ON = 20481; // 0x5001 |
| 629 | field public static final int ID_ZONED_AC_ON = 16393; // 0x4009 |
| 630 | field public static final int ID_ZONED_AIR_RECIRCULATION_ON = 16395; // 0x400b |
| 631 | field public static final int ID_ZONED_AUTOMATIC_MODE_ON = 16394; // 0x400a |
| 632 | field public static final int ID_ZONED_DUAL_ZONE_ON = 16397; // 0x400d |
| 633 | field public static final int ID_ZONED_FAN_POSITION = 16391; // 0x4007 |
| 634 | field public static final int ID_ZONED_FAN_POSITION_AVAILABLE = 16390; // 0x4006 |
| 635 | field public static final int ID_ZONED_FAN_SPEED_RPM = 16389; // 0x4005 |
| 636 | field public static final int ID_ZONED_FAN_SPEED_SETPOINT = 16388; // 0x4004 |
Steve Paik | 595fc67 | 2017-06-28 15:49:58 -0700 | [diff] [blame] | 637 | field public static final int ID_ZONED_HVAC_AUTO_RECIRC_ON = 16399; // 0x400f |
Keun-young Park | af2cc99 | 2016-10-07 11:46:45 -0700 | [diff] [blame] | 638 | field public static final int ID_ZONED_HVAC_POWER_ON = 16387; // 0x4003 |
| 639 | field public static final int ID_ZONED_MAX_AC_ON = 16396; // 0x400c |
| 640 | field public static final int ID_ZONED_MAX_DEFROST_ON = 16398; // 0x400e |
| 641 | field public static final int ID_ZONED_SEAT_TEMP = 16392; // 0x4008 |
| 642 | field public static final int ID_ZONED_TEMP_ACTUAL = 16386; // 0x4002 |
| 643 | field public static final int ID_ZONED_TEMP_SETPOINT = 16385; // 0x4001 |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 644 | } |
| 645 | |
Keun-young Park | af2cc99 | 2016-10-07 11:46:45 -0700 | [diff] [blame] | 646 | public static abstract interface CarHvacManager.CarHvacEventCallback { |
Steve Paik | fb5f623 | 2016-03-28 10:31:25 -0700 | [diff] [blame] | 647 | method public abstract void onChangeEvent(android.car.hardware.CarPropertyValue); |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 648 | method public abstract void onErrorEvent(int, int); |
| 649 | } |
| 650 | |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 651 | } |
| 652 | |
| 653 | package android.car.hardware.radio { |
| 654 | |
Tomasz Wasilczyk | bca2c0d | 2018-01-13 09:58:28 -0800 | [diff] [blame] | 655 | public deprecated class CarRadioEvent implements android.os.Parcelable { |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 656 | ctor public CarRadioEvent(int, android.car.hardware.radio.CarRadioPreset); |
| 657 | method public int describeContents(); |
| 658 | method public int getEventType(); |
| 659 | method public android.car.hardware.radio.CarRadioPreset getPreset(); |
| 660 | method public void writeToParcel(android.os.Parcel, int); |
| 661 | field public static final android.os.Parcelable.Creator<android.car.hardware.radio.CarRadioEvent> CREATOR; |
| 662 | field public static final int RADIO_PRESET = 0; // 0x0 |
| 663 | } |
| 664 | |
Tomasz Wasilczyk | bca2c0d | 2018-01-13 09:58:28 -0800 | [diff] [blame] | 665 | public final deprecated class CarRadioManager { |
Vitalii Tomkiv | 235f8ac | 2016-04-04 11:26:49 -0700 | [diff] [blame] | 666 | method public android.car.hardware.radio.CarRadioPreset getPreset(int) throws android.car.CarNotConnectedException; |
Keun-young Park | 150d8de | 2016-10-07 15:48:11 -0700 | [diff] [blame] | 667 | method public int getPresetCount() throws android.car.CarNotConnectedException; |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 668 | method public synchronized void registerListener(android.car.hardware.radio.CarRadioManager.CarRadioEventListener) throws android.car.CarNotConnectedException; |
Vitalii Tomkiv | 235f8ac | 2016-04-04 11:26:49 -0700 | [diff] [blame] | 669 | method public boolean setPreset(android.car.hardware.radio.CarRadioPreset) throws android.car.CarNotConnectedException, java.lang.IllegalArgumentException; |
Keun-young Park | 150d8de | 2016-10-07 15:48:11 -0700 | [diff] [blame] | 670 | method public synchronized void unregisterListener(); |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 671 | } |
| 672 | |
Tomasz Wasilczyk | bca2c0d | 2018-01-13 09:58:28 -0800 | [diff] [blame] | 673 | public static abstract deprecated interface CarRadioManager.CarRadioEventListener { |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 674 | method public abstract void onEvent(android.car.hardware.radio.CarRadioEvent); |
| 675 | } |
| 676 | |
Tomasz Wasilczyk | bca2c0d | 2018-01-13 09:58:28 -0800 | [diff] [blame] | 677 | public deprecated class CarRadioPreset implements android.os.Parcelable { |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 678 | ctor public CarRadioPreset(int, int, int, int); |
| 679 | method public int describeContents(); |
| 680 | method public int getBand(); |
| 681 | method public int getChannel(); |
| 682 | method public int getPresetNumber(); |
| 683 | method public int getSubChannel(); |
| 684 | method public void writeToParcel(android.os.Parcel, int); |
| 685 | field public static final android.os.Parcelable.Creator<android.car.hardware.radio.CarRadioPreset> CREATOR; |
| 686 | } |
| 687 | |
| 688 | } |
| 689 | |
Vitalii Tomkiv | 2bd0692 | 2016-07-26 11:07:48 -0700 | [diff] [blame] | 690 | package android.car.input { |
| 691 | |
| 692 | public abstract class CarInputHandlingService extends android.app.Service { |
| 693 | ctor protected CarInputHandlingService(android.car.input.CarInputHandlingService.InputFilter[]); |
| 694 | method public android.os.IBinder onBind(android.content.Intent); |
| 695 | method protected abstract void onKeyEvent(android.view.KeyEvent, int); |
| 696 | field public static final int INPUT_CALLBACK_BINDER_CODE = 1; // 0x1 |
| 697 | field public static final java.lang.String INPUT_CALLBACK_BINDER_KEY = "callback_binder"; |
| 698 | } |
| 699 | |
| 700 | public static class CarInputHandlingService.InputFilter implements android.os.Parcelable { |
| 701 | ctor public CarInputHandlingService.InputFilter(int, int); |
| 702 | method public int describeContents(); |
| 703 | method public void writeToParcel(android.os.Parcel, int); |
| 704 | field public static final android.os.Parcelable.Creator CREATOR; |
| 705 | field public final int mKeyCode; |
| 706 | field public final int mTargetDisplay; |
| 707 | } |
| 708 | |
| 709 | } |
| 710 | |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 711 | package android.car.media { |
| 712 | |
Keun-young Park | 4cf6911 | 2016-10-04 10:02:59 -0700 | [diff] [blame] | 713 | public final class CarAudioManager { |
Scott Randolph | fa50f42 | 2018-01-05 11:53:02 -0800 | [diff] [blame] | 714 | method public android.car.media.CarAudioPatchHandle createAudioPatch(java.lang.String, int, int) throws android.car.CarNotConnectedException; |
| 715 | method public java.lang.String[] getExternalSources() throws android.car.CarNotConnectedException; |
Hongwei Wang | 06b7491 | 2017-11-28 10:48:13 -0800 | [diff] [blame] | 716 | method public int getUsageMaxVolume(int) throws android.car.CarNotConnectedException; |
| 717 | method public int getUsageMinVolume(int) throws android.car.CarNotConnectedException; |
| 718 | method public int getUsageVolume(int) throws android.car.CarNotConnectedException; |
Scott Randolph | fa50f42 | 2018-01-05 11:53:02 -0800 | [diff] [blame] | 719 | method public void releaseAudioPatch(android.car.media.CarAudioPatchHandle) throws android.car.CarNotConnectedException; |
| 720 | method public void setBalanceTowardRight(float) throws android.car.CarNotConnectedException; |
| 721 | method public void setFadeTowardFront(float) throws android.car.CarNotConnectedException; |
Hongwei Wang | 06b7491 | 2017-11-28 10:48:13 -0800 | [diff] [blame] | 722 | method public void setUsageVolume(int, int, int) throws android.car.CarNotConnectedException; |
Yao Chen | c4d442f | 2016-04-08 11:33:47 -0700 | [diff] [blame] | 723 | method public void setVolumeController(android.media.IVolumeController) throws android.car.CarNotConnectedException; |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 724 | } |
| 725 | |
| 726 | } |
| 727 | |
| 728 | package android.car.navigation { |
| 729 | |
| 730 | public class CarNavigationInstrumentCluster implements android.os.Parcelable { |
| 731 | ctor public CarNavigationInstrumentCluster(android.car.navigation.CarNavigationInstrumentCluster); |
| 732 | method public static android.car.navigation.CarNavigationInstrumentCluster createCluster(int); |
| 733 | method public static android.car.navigation.CarNavigationInstrumentCluster createCustomImageCluster(int, int, int, int); |
| 734 | method public int describeContents(); |
| 735 | method public int getImageColorDepthBits(); |
| 736 | method public int getImageHeight(); |
| 737 | method public int getImageWidth(); |
Keun-young Park | 3388e78 | 2016-10-05 16:28:32 -0700 | [diff] [blame] | 738 | method public int getMinIntervalMillis(); |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 739 | method public int getType(); |
| 740 | method public boolean supportsCustomImages(); |
| 741 | method public void writeToParcel(android.os.Parcel, int); |
Keun-young Park | 3388e78 | 2016-10-05 16:28:32 -0700 | [diff] [blame] | 742 | field public static final int CLUSTER_TYPE_CUSTOM_IMAGES_SUPPORTED = 1; // 0x1 |
| 743 | field public static final int CLUSTER_TYPE_IMAGE_CODES_ONLY = 2; // 0x2 |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 744 | field public static final android.os.Parcelable.Creator<android.car.navigation.CarNavigationInstrumentCluster> CREATOR; |
| 745 | } |
| 746 | |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 747 | } |
| 748 | |
Enrico Granata | 9a916d7 | 2017-09-19 14:33:08 -0700 | [diff] [blame] | 749 | package android.car.storagemonitoring { |
| 750 | |
| 751 | public final class CarStorageMonitoringManager { |
Enrico Granata | dbda56f | 2017-12-18 11:53:22 -0800 | [diff] [blame] | 752 | method public java.util.List<android.car.storagemonitoring.IoStatsEntry> getAggregateIoStats() throws android.car.CarNotConnectedException; |
| 753 | method public java.util.List<android.car.storagemonitoring.IoStatsEntry> getBootIoStats() throws android.car.CarNotConnectedException; |
| 754 | method public java.util.List<android.car.storagemonitoring.IoStats> getIoStatsDeltas() throws android.car.CarNotConnectedException; |
Enrico Granata | 9a916d7 | 2017-09-19 14:33:08 -0700 | [diff] [blame] | 755 | method public int getPreEolIndicatorStatus() throws android.car.CarNotConnectedException; |
Enrico Granata | 1172f88 | 2017-09-21 14:51:30 -0700 | [diff] [blame] | 756 | method public android.car.storagemonitoring.WearEstimate getWearEstimate() throws android.car.CarNotConnectedException; |
Enrico Granata | 286cd8e | 2017-09-25 14:46:49 -0700 | [diff] [blame] | 757 | method public java.util.List<android.car.storagemonitoring.WearEstimateChange> getWearEstimateHistory() throws android.car.CarNotConnectedException; |
Enrico Granata | dbda56f | 2017-12-18 11:53:22 -0800 | [diff] [blame] | 758 | method public void registerListener(android.car.storagemonitoring.CarStorageMonitoringManager.IoStatsListener) throws android.car.CarNotConnectedException; |
| 759 | method public void unregisterListener(android.car.storagemonitoring.CarStorageMonitoringManager.IoStatsListener) throws android.car.CarNotConnectedException; |
Enrico Granata | 43024de | 2017-11-16 17:09:37 -0800 | [diff] [blame] | 760 | field public static final java.lang.String INTENT_EXCESSIVE_IO = "android.car.storagemonitoring.EXCESSIVE_IO"; |
Enrico Granata | 9a916d7 | 2017-09-19 14:33:08 -0700 | [diff] [blame] | 761 | field public static final int PRE_EOL_INFO_NORMAL = 1; // 0x1 |
| 762 | field public static final int PRE_EOL_INFO_UNKNOWN = 0; // 0x0 |
| 763 | field public static final int PRE_EOL_INFO_URGENT = 3; // 0x3 |
| 764 | field public static final int PRE_EOL_INFO_WARNING = 2; // 0x2 |
| 765 | } |
| 766 | |
Enrico Granata | dbda56f | 2017-12-18 11:53:22 -0800 | [diff] [blame] | 767 | public static abstract interface CarStorageMonitoringManager.IoStatsListener { |
| 768 | method public abstract void onSnapshot(android.car.storagemonitoring.IoStats); |
| 769 | } |
| 770 | |
| 771 | public class IoStats implements android.os.Parcelable { |
| 772 | ctor public IoStats(java.util.List<android.car.storagemonitoring.IoStatsEntry>, long); |
| 773 | ctor public IoStats(android.os.Parcel); |
| 774 | ctor public IoStats(org.json.JSONObject) throws org.json.JSONException; |
| 775 | method public int describeContents(); |
| 776 | method public android.car.storagemonitoring.IoStatsEntry.Metrics getBackgroundTotals(); |
| 777 | method public android.car.storagemonitoring.IoStatsEntry.Metrics getForegroundTotals(); |
| 778 | method public java.util.List<android.car.storagemonitoring.IoStatsEntry> getStats(); |
| 779 | method public long getTimestamp(); |
| 780 | method public android.car.storagemonitoring.IoStatsEntry.Metrics getTotals(); |
| 781 | method public android.car.storagemonitoring.IoStatsEntry getUserIdStats(int); |
| 782 | method public void writeToJson(android.util.JsonWriter) throws java.io.IOException; |
| 783 | method public void writeToParcel(android.os.Parcel, int); |
| 784 | field public static final android.os.Parcelable.Creator<android.car.storagemonitoring.IoStats> CREATOR; |
| 785 | } |
| 786 | |
| 787 | public final class IoStatsEntry implements android.os.Parcelable { |
| 788 | ctor public IoStatsEntry(int, long, android.car.storagemonitoring.IoStatsEntry.Metrics, android.car.storagemonitoring.IoStatsEntry.Metrics); |
| 789 | ctor public IoStatsEntry(android.os.Parcel); |
| 790 | ctor public IoStatsEntry(android.car.storagemonitoring.UidIoRecord, long); |
| 791 | ctor public IoStatsEntry(org.json.JSONObject) throws org.json.JSONException; |
| 792 | method public int describeContents(); |
| 793 | method public void writeToJson(android.util.JsonWriter) throws java.io.IOException; |
| 794 | method public void writeToParcel(android.os.Parcel, int); |
| 795 | field public static final android.os.Parcelable.Creator<android.car.storagemonitoring.IoStatsEntry> CREATOR; |
| 796 | field public final android.car.storagemonitoring.IoStatsEntry.Metrics background; |
| 797 | field public final android.car.storagemonitoring.IoStatsEntry.Metrics foreground; |
| 798 | field public final long runtimeMillis; |
| 799 | field public final int uid; |
| 800 | } |
| 801 | |
| 802 | public static final class IoStatsEntry.Metrics implements android.os.Parcelable { |
| 803 | ctor public IoStatsEntry.Metrics(long, long, long, long, long); |
| 804 | ctor public IoStatsEntry.Metrics(android.os.Parcel); |
| 805 | ctor public IoStatsEntry.Metrics(org.json.JSONObject) throws org.json.JSONException; |
| 806 | method public int describeContents(); |
| 807 | method public void writeToJson(android.util.JsonWriter) throws java.io.IOException; |
| 808 | method public void writeToParcel(android.os.Parcel, int); |
| 809 | field public static final android.os.Parcelable.Creator<android.car.storagemonitoring.IoStatsEntry.Metrics> CREATOR; |
| 810 | field public final long bytesRead; |
| 811 | field public final long bytesReadFromStorage; |
| 812 | field public final long bytesWritten; |
| 813 | field public final long bytesWrittenToStorage; |
| 814 | field public final long fsyncCalls; |
Enrico Granata | 7dce379 | 2017-11-09 14:13:28 -0800 | [diff] [blame] | 815 | } |
| 816 | |
Enrico Granata | 7e0150d | 2017-11-06 17:20:17 -0800 | [diff] [blame] | 817 | public final class UidIoRecord { |
| 818 | ctor public UidIoRecord(int, long, long, long, long, long, long, long, long, long, long); |
Enrico Granata | a97fce2 | 2017-10-27 14:57:34 -0700 | [diff] [blame] | 819 | field public final long background_fsync; |
| 820 | field public final long background_rchar; |
| 821 | field public final long background_read_bytes; |
| 822 | field public final long background_wchar; |
| 823 | field public final long background_write_bytes; |
| 824 | field public final long foreground_fsync; |
| 825 | field public final long foreground_rchar; |
| 826 | field public final long foreground_read_bytes; |
| 827 | field public final long foreground_wchar; |
| 828 | field public final long foreground_write_bytes; |
| 829 | field public final int uid; |
| 830 | } |
| 831 | |
Enrico Granata | 671e68d | 2017-09-20 10:16:22 -0700 | [diff] [blame] | 832 | public class WearEstimate implements android.os.Parcelable { |
| 833 | ctor public WearEstimate(int, int); |
| 834 | ctor public WearEstimate(android.os.Parcel); |
| 835 | ctor public WearEstimate(android.util.JsonReader) throws java.io.IOException; |
| 836 | method public int describeContents(); |
| 837 | method public void writeToJson(android.util.JsonWriter) throws java.io.IOException; |
| 838 | method public void writeToParcel(android.os.Parcel, int); |
| 839 | field public static final android.os.Parcelable.Creator<android.car.storagemonitoring.WearEstimate> CREATOR; |
| 840 | field public static final int UNKNOWN = -1; // 0xffffffff |
| 841 | field public final int typeA; |
| 842 | field public final int typeB; |
| 843 | } |
| 844 | |
| 845 | public class WearEstimateChange implements android.os.Parcelable { |
Enrico Granata | 8621775 | 2017-10-31 13:42:55 -0700 | [diff] [blame] | 846 | ctor public WearEstimateChange(android.car.storagemonitoring.WearEstimate, android.car.storagemonitoring.WearEstimate, long, java.time.Instant, boolean); |
Enrico Granata | 671e68d | 2017-09-20 10:16:22 -0700 | [diff] [blame] | 847 | ctor public WearEstimateChange(android.os.Parcel); |
| 848 | method public int describeContents(); |
| 849 | method public void writeToParcel(android.os.Parcel, int); |
| 850 | field public static final android.os.Parcelable.Creator<android.car.storagemonitoring.WearEstimateChange> CREATOR; |
Enrico Granata | 8621775 | 2017-10-31 13:42:55 -0700 | [diff] [blame] | 851 | field public final java.time.Instant dateAtChange; |
Enrico Granata | 671e68d | 2017-09-20 10:16:22 -0700 | [diff] [blame] | 852 | field public final boolean isAcceptableDegradation; |
| 853 | field public final android.car.storagemonitoring.WearEstimate newEstimate; |
| 854 | field public final android.car.storagemonitoring.WearEstimate oldEstimate; |
| 855 | field public final long uptimeAtChange; |
| 856 | } |
| 857 | |
Enrico Granata | 9a916d7 | 2017-09-19 14:33:08 -0700 | [diff] [blame] | 858 | } |
| 859 | |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 860 | package android.car.test { |
| 861 | |
| 862 | public class CarTestManagerBinderWrapper { |
| 863 | ctor public CarTestManagerBinderWrapper(android.os.IBinder); |
| 864 | method public void onCarDisconnected(); |
| 865 | field public final android.os.IBinder binder; |
| 866 | } |
| 867 | |
| 868 | } |
| 869 | |
Asaf Rosenfeld | 39e4f03 | 2017-09-16 11:33:50 -0700 | [diff] [blame] | 870 | package android.car.vms { |
| 871 | |
Asaf Rosenfeld | 908811e | 2018-01-22 09:13:47 -0800 | [diff] [blame] | 872 | public final class VmsAvailableLayers implements android.os.Parcelable { |
| 873 | ctor public VmsAvailableLayers(java.util.Set<android.car.vms.VmsAssociatedLayer>, int); |
| 874 | method public int describeContents(); |
| 875 | method public java.util.Set<android.car.vms.VmsAssociatedLayer> getAssociatedLayers(); |
| 876 | method public int getSequence(); |
| 877 | method public void writeToParcel(android.os.Parcel, int); |
| 878 | field public static final android.os.Parcelable.Creator<android.car.vms.VmsAvailableLayers> CREATOR; |
| 879 | } |
| 880 | |
Asaf Rosenfeld | 39e4f03 | 2017-09-16 11:33:50 -0700 | [diff] [blame] | 881 | public final class VmsLayer implements android.os.Parcelable { |
| 882 | ctor public VmsLayer(int, int, int); |
| 883 | method public int describeContents(); |
| 884 | method public int getSubtype(); |
| 885 | method public int getType(); |
| 886 | method public int getVersion(); |
| 887 | method public void writeToParcel(android.os.Parcel, int); |
| 888 | field public static final android.os.Parcelable.Creator<android.car.vms.VmsLayer> CREATOR; |
| 889 | } |
| 890 | |
| 891 | public final class VmsLayerDependency implements android.os.Parcelable { |
| 892 | ctor public VmsLayerDependency(android.car.vms.VmsLayer, java.util.Set<android.car.vms.VmsLayer>); |
| 893 | ctor public VmsLayerDependency(android.car.vms.VmsLayer); |
| 894 | method public int describeContents(); |
| 895 | method public java.util.Set<android.car.vms.VmsLayer> getDependencies(); |
| 896 | method public android.car.vms.VmsLayer getLayer(); |
| 897 | method public void writeToParcel(android.os.Parcel, int); |
| 898 | field public static final android.os.Parcelable.Creator<android.car.vms.VmsLayerDependency> CREATOR; |
| 899 | } |
| 900 | |
| 901 | public final class VmsLayersOffering implements android.os.Parcelable { |
| 902 | ctor public VmsLayersOffering(java.util.Set<android.car.vms.VmsLayerDependency>, int); |
| 903 | method public int describeContents(); |
| 904 | method public java.util.Set<android.car.vms.VmsLayerDependency> getDependencies(); |
| 905 | method public int getPublisherId(); |
| 906 | method public void writeToParcel(android.os.Parcel, int); |
| 907 | field public static final android.os.Parcelable.Creator<android.car.vms.VmsLayersOffering> CREATOR; |
| 908 | } |
| 909 | |
| 910 | public final class VmsOperationRecorder { |
| 911 | ctor public VmsOperationRecorder(android.car.vms.VmsOperationRecorder.Writer); |
| 912 | method public void addHalSubscription(int, android.car.vms.VmsLayer); |
| 913 | method public void addPromiscuousSubscription(int); |
| 914 | method public void addSubscription(int, android.car.vms.VmsLayer); |
| 915 | method public static android.car.vms.VmsOperationRecorder get(); |
| 916 | method public void getPublisherId(int); |
| 917 | method public void removeHalSubscription(int, android.car.vms.VmsLayer); |
| 918 | method public void removePromiscuousSubscription(int); |
| 919 | method public void removeSubscription(int, android.car.vms.VmsLayer); |
| 920 | method public void setHalPublisherLayersOffering(android.car.vms.VmsLayersOffering); |
| 921 | method public void setLayersOffering(android.car.vms.VmsLayersOffering); |
| 922 | method public void setPublisherLayersOffering(android.car.vms.VmsLayersOffering); |
| 923 | method public void startMonitoring(); |
| 924 | method public void stopMonitoring(); |
| 925 | method public void subscribe(android.car.vms.VmsLayer); |
| 926 | method public void subscribe(android.car.vms.VmsLayer, int); |
| 927 | method public void unsubscribe(android.car.vms.VmsLayer); |
| 928 | method public void unsubscribe(android.car.vms.VmsLayer, int); |
| 929 | } |
| 930 | |
Asaf Rosenfeld | 39e4f03 | 2017-09-16 11:33:50 -0700 | [diff] [blame] | 931 | public abstract class VmsPublisherClientService extends android.app.Service { |
| 932 | ctor public VmsPublisherClientService(); |
| 933 | method public final int getPublisherId(byte[]); |
| 934 | method public final android.car.vms.VmsSubscriptionState getSubscriptions(); |
Asaf Rosenfeld | c2faf15 | 2018-01-31 13:59:06 -0800 | [diff] [blame^] | 935 | method public android.os.IBinder onBind(android.content.Intent); |
Asaf Rosenfeld | 39e4f03 | 2017-09-16 11:33:50 -0700 | [diff] [blame] | 936 | method protected abstract void onVmsPublisherServiceReady(); |
| 937 | method public abstract void onVmsSubscriptionChange(android.car.vms.VmsSubscriptionState); |
| 938 | method public final void publish(android.car.vms.VmsLayer, int, byte[]); |
| 939 | method public final void setLayersOffering(android.car.vms.VmsLayersOffering); |
| 940 | } |
| 941 | |
| 942 | public final class VmsSubscriberManager { |
| 943 | ctor public VmsSubscriberManager(android.os.IBinder, android.os.Handler); |
Asaf Rosenfeld | 908811e | 2018-01-22 09:13:47 -0800 | [diff] [blame] | 944 | method public android.car.vms.VmsAvailableLayers getAvailableLayers() throws android.car.CarNotConnectedException, java.lang.IllegalStateException; |
Asaf Rosenfeld | 39e4f03 | 2017-09-16 11:33:50 -0700 | [diff] [blame] | 945 | method public byte[] getPublisherInfo(int) throws android.car.CarNotConnectedException, java.lang.IllegalStateException; |
| 946 | method public void registerClientCallback(android.car.vms.VmsSubscriberManager.VmsSubscriberClientCallback) throws android.car.CarNotConnectedException; |
| 947 | method public void startMonitoring() throws android.car.CarNotConnectedException; |
| 948 | method public void stopMonitoring(); |
| 949 | method public void subscribe(android.car.vms.VmsLayer) throws android.car.CarNotConnectedException; |
| 950 | method public void subscribe(android.car.vms.VmsLayer, int) throws android.car.CarNotConnectedException; |
| 951 | method public void unregisterClientCallback() throws android.car.CarNotConnectedException; |
| 952 | method public void unsubscribe(android.car.vms.VmsLayer); |
| 953 | method public void unsubscribe(android.car.vms.VmsLayer, int); |
| 954 | } |
| 955 | |
| 956 | public static abstract interface VmsSubscriberManager.VmsSubscriberClientCallback { |
Asaf Rosenfeld | 908811e | 2018-01-22 09:13:47 -0800 | [diff] [blame] | 957 | method public abstract void onLayersAvailabilityChanged(android.car.vms.VmsAvailableLayers); |
Asaf Rosenfeld | 39e4f03 | 2017-09-16 11:33:50 -0700 | [diff] [blame] | 958 | method public abstract void onVmsMessageReceived(android.car.vms.VmsLayer, byte[]); |
| 959 | } |
| 960 | |
Asaf Rosenfeld | 39e4f03 | 2017-09-16 11:33:50 -0700 | [diff] [blame] | 961 | } |
| 962 | |