Tor Norbye | 5e9618a | 2019-01-04 21:33:09 -0800 | [diff] [blame] | 1 | // Signature format: 2.0 |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 2 | package android.car { |
| 3 | |
Keun-young Park | 4cf6911 | 2016-10-04 10:02:59 -0700 | [diff] [blame] | 4 | public final class Car { |
Tor Norbye | 5e9618a | 2019-01-04 21:33:09 -0800 | [diff] [blame] | 5 | field public static final String CABIN_SERVICE = "cabin"; |
| 6 | field public static final String CAR_DRIVING_STATE_SERVICE = "drivingstate"; |
Roberto Perez | 7b494e3 | 2018-12-19 18:19:28 -0800 | [diff] [blame] | 7 | field public static final String CAR_EXTRA_CLUSTER_ACTIVITY_STATE = "android.car.cluster.ClusterActivityState"; |
Tor Norbye | 5e9618a | 2019-01-04 21:33:09 -0800 | [diff] [blame] | 8 | field public static final String CAR_TRUST_AGENT_ENROLLMENT_SERVICE = "trust_enroll"; |
| 9 | field public static final String DIAGNOSTIC_SERVICE = "diagnostic"; |
| 10 | field public static final String HVAC_SERVICE = "hvac"; |
| 11 | field public static final String PERMISSION_CAR_DIAGNOSTIC_CLEAR = "android.car.permission.CLEAR_CAR_DIAGNOSTICS"; |
| 12 | field public static final String PERMISSION_CAR_DIAGNOSTIC_READ_ALL = "android.car.permission.CAR_DIAGNOSTICS"; |
| 13 | field public static final String PERMISSION_CAR_DRIVING_STATE = "android.car.permission.CAR_DRIVING_STATE"; |
| 14 | field public static final String PERMISSION_CAR_DYNAMICS_STATE = "android.car.permission.CAR_DYNAMICS_STATE"; |
| 15 | field public static final String PERMISSION_CAR_ENGINE_DETAILED = "android.car.permission.CAR_ENGINE_DETAILED"; |
| 16 | field public static final String PERMISSION_CAR_ENROLL_TRUST = "android.car.permission.CAR_ENROLL_TRUST"; |
| 17 | field public static final String PERMISSION_CAR_INSTRUMENT_CLUSTER_CONTROL = "android.car.permission.CAR_INSTRUMENT_CLUSTER_CONTROL"; |
| 18 | field public static final String PERMISSION_CAR_POWER = "android.car.permission.CAR_POWER"; |
| 19 | field public static final String PERMISSION_CAR_PROJECTION = "android.car.permission.CAR_PROJECTION"; |
Pavel Maltsev | 079873b | 2019-02-25 12:15:09 -0800 | [diff] [blame] | 20 | field public static final String PERMISSION_CAR_PROJECTION_STATUS = "android.car.permission.ACCESS_CAR_PROJECTION_STATUS"; |
Tor Norbye | 5e9618a | 2019-01-04 21:33:09 -0800 | [diff] [blame] | 21 | field public static final String PERMISSION_CAR_TEST_SERVICE = "android.car.permission.CAR_TEST_SERVICE"; |
| 22 | field public static final String PERMISSION_CONTROL_APP_BLOCKING = "android.car.permission.CONTROL_APP_BLOCKING"; |
| 23 | field public static final String PERMISSION_CONTROL_CAR_CLIMATE = "android.car.permission.CONTROL_CAR_CLIMATE"; |
| 24 | field public static final String PERMISSION_CONTROL_CAR_DOORS = "android.car.permission.CONTROL_CAR_DOORS"; |
| 25 | field public static final String PERMISSION_CONTROL_CAR_MIRRORS = "android.car.permission.CONTROL_CAR_MIRRORS"; |
| 26 | field public static final String PERMISSION_CONTROL_CAR_SEATS = "android.car.permission.CONTROL_CAR_SEATS"; |
| 27 | field public static final String PERMISSION_CONTROL_CAR_WINDOWS = "android.car.permission.CONTROL_CAR_WINDOWS"; |
| 28 | field public static final String PERMISSION_CONTROL_EXTERIOR_LIGHTS = "android.car.permission.CONTROL_CAR_EXTERIOR_LIGHTS"; |
| 29 | field public static final String PERMISSION_EXTERIOR_LIGHTS = "android.car.permission.CAR_EXTERIOR_LIGHTS"; |
| 30 | field public static final String PERMISSION_MILEAGE = "android.car.permission.CAR_MILEAGE"; |
| 31 | field @Deprecated public static final String PERMISSION_MOCK_VEHICLE_HAL = "android.car.permission.CAR_MOCK_VEHICLE_HAL"; |
| 32 | field public static final String PERMISSION_STORAGE_MONITORING = "android.car.permission.STORAGE_MONITORING"; |
| 33 | field public static final String PERMISSION_TIRES = "android.car.permission.CAR_TIRES"; |
| 34 | field public static final String PERMISSION_VENDOR_EXTENSION = "android.car.permission.CAR_VENDOR_EXTENSION"; |
| 35 | field public static final String PERMISSION_VMS_PUBLISHER = "android.car.permission.VMS_PUBLISHER"; |
| 36 | field public static final String PERMISSION_VMS_SUBSCRIBER = "android.car.permission.VMS_SUBSCRIBER"; |
| 37 | field public static final String POWER_SERVICE = "power"; |
| 38 | field public static final String PROJECTION_SERVICE = "projection"; |
| 39 | field public static final String PROPERTY_SERVICE = "property"; |
| 40 | field public static final String STORAGE_MONITORING_SERVICE = "storage_monitoring"; |
| 41 | field public static final String TEST_SERVICE = "car-service-test"; |
| 42 | field public static final String VENDOR_EXTENSION_SERVICE = "vendor_extension"; |
| 43 | field public static final String VMS_SUBSCRIBER_SERVICE = "vehicle_map_subscriber_service"; |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 44 | } |
| 45 | |
Keun-young Park | 4cf6911 | 2016-10-04 10:02:59 -0700 | [diff] [blame] | 46 | public final class CarProjectionManager { |
Pavel Maltsev | 92a39de | 2019-03-18 15:18:17 -0700 | [diff] [blame] | 47 | method @RequiresPermission(android.car.Car.PERMISSION_CAR_PROJECTION) @NonNull public java.util.List<java.lang.Integer> getAvailableWifiChannels(int); |
Pavel Maltsev | 48a3194 | 2019-03-03 22:08:28 -0800 | [diff] [blame] | 48 | method @RequiresPermission(android.car.Car.PERMISSION_CAR_PROJECTION) @NonNull public android.os.Bundle getProjectionOptions(); |
Pavel Maltsev | 079873b | 2019-02-25 12:15:09 -0800 | [diff] [blame] | 49 | method @RequiresPermission(android.car.Car.PERMISSION_CAR_PROJECTION) public void registerProjectionListener(@NonNull android.car.CarProjectionManager.CarProjectionListener, int); |
| 50 | method @RequiresPermission(android.car.Car.PERMISSION_CAR_PROJECTION) public void registerProjectionRunner(@NonNull android.content.Intent); |
| 51 | method @RequiresPermission(android.car.Car.PERMISSION_CAR_PROJECTION_STATUS) public void registerProjectionStatusListener(@NonNull android.car.CarProjectionManager.ProjectionStatusListener); |
| 52 | method @RequiresPermission(android.car.Car.PERMISSION_CAR_PROJECTION) public boolean releaseBluetoothProfileInhibit(android.bluetooth.BluetoothDevice, int, android.os.IBinder); |
| 53 | method @RequiresPermission(android.car.Car.PERMISSION_CAR_PROJECTION) public boolean requestBluetoothProfileInhibit(@NonNull android.bluetooth.BluetoothDevice, int, @NonNull android.os.IBinder); |
| 54 | method @RequiresPermission(android.car.Car.PERMISSION_CAR_PROJECTION) public void startProjectionAccessPoint(@NonNull android.car.CarProjectionManager.ProjectionAccessPointCallback); |
| 55 | method @RequiresPermission(android.car.Car.PERMISSION_CAR_PROJECTION) public void stopProjectionAccessPoint(); |
| 56 | method @RequiresPermission(android.car.Car.PERMISSION_CAR_PROJECTION) public void unregisterProjectionListener(); |
| 57 | method @RequiresPermission(android.car.Car.PERMISSION_CAR_PROJECTION) public void unregisterProjectionRunner(@NonNull android.content.Intent); |
| 58 | method @RequiresPermission(android.car.Car.PERMISSION_CAR_PROJECTION_STATUS) public void unregisterProjectionStatusListener(@NonNull android.car.CarProjectionManager.ProjectionStatusListener); |
| 59 | method @RequiresPermission(android.car.Car.PERMISSION_CAR_PROJECTION) public void updateProjectionStatus(@NonNull android.car.projection.ProjectionStatus); |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 60 | field public static final int PROJECTION_LONG_PRESS_VOICE_SEARCH = 2; // 0x2 |
| 61 | field public static final int PROJECTION_VOICE_SEARCH = 1; // 0x1 |
| 62 | } |
| 63 | |
Tor Norbye | 5e9618a | 2019-01-04 21:33:09 -0800 | [diff] [blame] | 64 | public static interface CarProjectionManager.CarProjectionListener { |
| 65 | method public void onVoiceAssistantRequest(boolean); |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 66 | } |
| 67 | |
Tor Norbye | 5e9618a | 2019-01-04 21:33:09 -0800 | [diff] [blame] | 68 | public abstract static class CarProjectionManager.ProjectionAccessPointCallback { |
Pavel Maltsev | a1ac7fc | 2018-09-14 14:19:34 -0700 | [diff] [blame] | 69 | ctor public CarProjectionManager.ProjectionAccessPointCallback(); |
| 70 | method public void onFailed(int); |
| 71 | method public void onStarted(android.net.wifi.WifiConfiguration); |
| 72 | method public void onStopped(); |
| 73 | field public static final int ERROR_GENERIC = 2; // 0x2 |
| 74 | field public static final int ERROR_INCOMPATIBLE_MODE = 3; // 0x3 |
| 75 | field public static final int ERROR_NO_CHANNEL = 1; // 0x1 |
| 76 | field public static final int ERROR_TETHERING_DISALLOWED = 4; // 0x4 |
| 77 | } |
| 78 | |
Pavel Maltsev | 079873b | 2019-02-25 12:15:09 -0800 | [diff] [blame] | 79 | public static interface CarProjectionManager.ProjectionStatusListener { |
| 80 | method public void onProjectionStatusChanged(int, @Nullable String, @NonNull java.util.List<android.car.projection.ProjectionStatus>); |
| 81 | } |
| 82 | |
Kai | 92c8d88 | 2018-04-06 12:35:31 -0700 | [diff] [blame] | 83 | public final class VehicleAreaDoor { |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 84 | field public static final int DOOR_HOOD = 268435456; // 0x10000000 |
| 85 | field public static final int DOOR_REAR = 536870912; // 0x20000000 |
| 86 | field public static final int DOOR_ROW_1_LEFT = 1; // 0x1 |
| 87 | field public static final int DOOR_ROW_1_RIGHT = 4; // 0x4 |
| 88 | field public static final int DOOR_ROW_2_LEFT = 16; // 0x10 |
| 89 | field public static final int DOOR_ROW_2_RIGHT = 64; // 0x40 |
| 90 | field public static final int DOOR_ROW_3_LEFT = 256; // 0x100 |
| 91 | field public static final int DOOR_ROW_3_RIGHT = 1024; // 0x400 |
| 92 | } |
| 93 | |
Kai | 92c8d88 | 2018-04-06 12:35:31 -0700 | [diff] [blame] | 94 | public final class VehicleAreaMirror { |
Steve Paik | 43c04a7 | 2016-07-08 19:12:09 -0700 | [diff] [blame] | 95 | field public static final int MIRROR_DRIVER_CENTER = 4; // 0x4 |
| 96 | field public static final int MIRROR_DRIVER_LEFT = 1; // 0x1 |
| 97 | field public static final int MIRROR_DRIVER_RIGHT = 2; // 0x2 |
| 98 | } |
| 99 | |
Scott Randolph | 5af24b5 | 2018-05-03 14:55:19 -0700 | [diff] [blame] | 100 | public final class VehicleAreaWheel { |
| 101 | field public static final int WHEEL_LEFT_FRONT = 1; // 0x1 |
| 102 | field public static final int WHEEL_LEFT_REAR = 4; // 0x4 |
| 103 | field public static final int WHEEL_RIGHT_FRONT = 2; // 0x2 |
| 104 | field public static final int WHEEL_RIGHT_REAR = 8; // 0x8 |
| 105 | field public static final int WHEEL_UNKNOWN = 0; // 0x0 |
| 106 | } |
| 107 | |
Kai | 92c8d88 | 2018-04-06 12:35:31 -0700 | [diff] [blame] | 108 | public final class VehicleAreaWindow { |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 109 | field public static final int WINDOW_FRONT_WINDSHIELD = 1; // 0x1 |
| 110 | field public static final int WINDOW_REAR_WINDSHIELD = 2; // 0x2 |
Steve Paik | 2052625 | 2018-03-29 23:14:08 -0700 | [diff] [blame] | 111 | field public static final int WINDOW_ROOF_TOP_1 = 65536; // 0x10000 |
| 112 | field public static final int WINDOW_ROOF_TOP_2 = 131072; // 0x20000 |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 113 | field public static final int WINDOW_ROW_1_LEFT = 16; // 0x10 |
Steve Paik | 2052625 | 2018-03-29 23:14:08 -0700 | [diff] [blame] | 114 | field public static final int WINDOW_ROW_1_RIGHT = 64; // 0x40 |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 115 | field public static final int WINDOW_ROW_2_LEFT = 256; // 0x100 |
Steve Paik | 2052625 | 2018-03-29 23:14:08 -0700 | [diff] [blame] | 116 | field public static final int WINDOW_ROW_2_RIGHT = 1024; // 0x400 |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 117 | field public static final int WINDOW_ROW_3_LEFT = 4096; // 0x1000 |
Steve Paik | 2052625 | 2018-03-29 23:14:08 -0700 | [diff] [blame] | 118 | field public static final int WINDOW_ROW_3_RIGHT = 16384; // 0x4000 |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 119 | } |
| 120 | |
Kai | 075297b | 2018-07-13 15:07:53 -0700 | [diff] [blame] | 121 | public final class VehiclePropertyAccess { |
| 122 | field public static final int NONE = 0; // 0x0 |
| 123 | field public static final int READ = 1; // 0x1 |
| 124 | field public static final int READ_WRITE = 3; // 0x3 |
| 125 | field public static final int WRITE = 2; // 0x2 |
| 126 | } |
| 127 | |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 128 | } |
| 129 | |
Pavel Maltsev | ced1131 | 2018-04-03 17:30:02 -0700 | [diff] [blame] | 130 | package android.car.cluster { |
| 131 | |
Roberto Perez | 7b494e3 | 2018-12-19 18:19:28 -0800 | [diff] [blame] | 132 | @Deprecated public class CarInstrumentClusterManager { |
Justin Paupore | ccc75a3 | 2019-02-12 18:20:48 -0800 | [diff] [blame] | 133 | method @Deprecated public void registerCallback(String, android.car.cluster.CarInstrumentClusterManager.Callback); |
| 134 | method @Deprecated public void startActivity(android.content.Intent); |
| 135 | method @Deprecated public void unregisterCallback(android.car.cluster.CarInstrumentClusterManager.Callback); |
Roberto Perez | 7b494e3 | 2018-12-19 18:19:28 -0800 | [diff] [blame] | 136 | field @Deprecated public static final String CATEGORY_NAVIGATION = "android.car.cluster.NAVIGATION"; |
| 137 | field @Deprecated public static final String KEY_EXTRA_ACTIVITY_STATE = "android.car.cluster.ClusterActivityState"; |
Pavel Maltsev | ced1131 | 2018-04-03 17:30:02 -0700 | [diff] [blame] | 138 | } |
| 139 | |
Roberto Perez | 7b494e3 | 2018-12-19 18:19:28 -0800 | [diff] [blame] | 140 | @Deprecated public static interface CarInstrumentClusterManager.Callback { |
| 141 | method @Deprecated public void onClusterActivityStateChanged(String, android.os.Bundle); |
Pavel Maltsev | ced1131 | 2018-04-03 17:30:02 -0700 | [diff] [blame] | 142 | } |
| 143 | |
| 144 | } |
| 145 | |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 146 | package android.car.cluster.renderer { |
| 147 | |
Roberto Perez | 7b494e3 | 2018-12-19 18:19:28 -0800 | [diff] [blame] | 148 | @Deprecated public abstract class InstrumentClusterRenderer { |
| 149 | ctor @Deprecated public InstrumentClusterRenderer(); |
| 150 | method @Deprecated protected abstract android.car.cluster.renderer.NavigationRenderer createNavigationRenderer(); |
| 151 | method @Deprecated @Nullable public android.car.cluster.renderer.NavigationRenderer getNavigationRenderer(); |
| 152 | method @Deprecated @UiThread public final void initialize(); |
| 153 | method @Deprecated public abstract void onCreate(android.content.Context); |
| 154 | method @Deprecated public abstract void onStart(); |
| 155 | method @Deprecated public abstract void onStop(); |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 156 | } |
| 157 | |
Pavel Maltsev | 0477e29 | 2016-05-27 12:22:36 -0700 | [diff] [blame] | 158 | public abstract class InstrumentClusterRenderingService extends android.app.Service { |
| 159 | ctor public InstrumentClusterRenderingService(); |
Roberto Perez | e914489 | 2019-02-25 17:06:46 -0800 | [diff] [blame] | 160 | method @Nullable public android.graphics.Bitmap getBitmap(android.net.Uri); |
Roberto Perez | 7b494e3 | 2018-12-19 18:19:28 -0800 | [diff] [blame] | 161 | method @MainThread @Nullable public abstract android.car.cluster.renderer.NavigationRenderer getNavigationRenderer(); |
Tor Norbye | 5e9618a | 2019-01-04 21:33:09 -0800 | [diff] [blame] | 162 | method @CallSuper public android.os.IBinder onBind(android.content.Intent); |
Roberto Perez | 7b494e3 | 2018-12-19 18:19:28 -0800 | [diff] [blame] | 163 | method @MainThread public void onKeyEvent(@NonNull android.view.KeyEvent); |
| 164 | method @MainThread public void onNavigationComponentLaunched(); |
| 165 | method @MainThread public void onNavigationComponentReleased(); |
| 166 | method protected boolean startNavigationActivity(@NonNull android.content.ComponentName); |
Pavel Maltsev | 0477e29 | 2016-05-27 12:22:36 -0700 | [diff] [blame] | 167 | } |
| 168 | |
Tor Norbye | 5e9618a | 2019-01-04 21:33:09 -0800 | [diff] [blame] | 169 | @UiThread public abstract class NavigationRenderer { |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 170 | ctor public NavigationRenderer(); |
Pavel Maltsev | 8cf8691 | 2016-04-01 18:01:51 -0700 | [diff] [blame] | 171 | method public abstract android.car.navigation.CarNavigationInstrumentCluster getNavigationProperties(); |
Dean Harding | 8099f2f | 2018-02-07 15:00:21 -0800 | [diff] [blame] | 172 | method public abstract void onEvent(int, android.os.Bundle); |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 173 | } |
| 174 | |
| 175 | } |
| 176 | |
| 177 | package android.car.content.pm { |
| 178 | |
Yao, Yuxing | 64cca8d | 2019-03-20 10:41:47 -0700 | [diff] [blame] | 179 | public final class AppBlockingPackageInfo implements android.os.Parcelable { |
Tor Norbye | 5e9618a | 2019-01-04 21:33:09 -0800 | [diff] [blame] | 180 | ctor public AppBlockingPackageInfo(String, int, int, int, @Nullable android.content.pm.Signature[], @Nullable String[]); |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 181 | ctor public AppBlockingPackageInfo(android.os.Parcel); |
| 182 | method public int describeContents(); |
| 183 | method public void writeToParcel(android.os.Parcel, int); |
| 184 | field public static final android.os.Parcelable.Creator<android.car.content.pm.AppBlockingPackageInfo> CREATOR; |
| 185 | field public static final int FLAG_SYSTEM_APP = 1; // 0x1 |
| 186 | field public static final int FLAG_WHOLE_ACTIVITY = 2; // 0x2 |
Tor Norbye | 5e9618a | 2019-01-04 21:33:09 -0800 | [diff] [blame] | 187 | field public final String[] activities; |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 188 | field public final int flags; |
| 189 | field public final int maxRevisionCode; |
| 190 | field public final int minRevisionCode; |
Tor Norbye | 5e9618a | 2019-01-04 21:33:09 -0800 | [diff] [blame] | 191 | field public final String packageName; |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 192 | field public final android.content.pm.Signature[] signatures; |
| 193 | } |
| 194 | |
Yao, Yuxing | 64cca8d | 2019-03-20 10:41:47 -0700 | [diff] [blame] | 195 | public final class CarAppBlockingPolicy implements android.os.Parcelable { |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 196 | ctor public CarAppBlockingPolicy(android.car.content.pm.AppBlockingPackageInfo[], android.car.content.pm.AppBlockingPackageInfo[]); |
| 197 | ctor public CarAppBlockingPolicy(android.os.Parcel); |
| 198 | method public int describeContents(); |
| 199 | method public void writeToParcel(android.os.Parcel, int); |
| 200 | field public static final android.os.Parcelable.Creator<android.car.content.pm.CarAppBlockingPolicy> CREATOR; |
| 201 | field public final android.car.content.pm.AppBlockingPackageInfo[] blacklists; |
| 202 | field public final android.car.content.pm.AppBlockingPackageInfo[] whitelists; |
| 203 | } |
| 204 | |
| 205 | public abstract class CarAppBlockingPolicyService extends android.app.Service { |
| 206 | ctor public CarAppBlockingPolicyService(); |
| 207 | method protected abstract android.car.content.pm.CarAppBlockingPolicy getAppBlockingPolicy(); |
| 208 | method public android.os.IBinder onBind(android.content.Intent); |
Tor Norbye | 5e9618a | 2019-01-04 21:33:09 -0800 | [diff] [blame] | 209 | field public static final String SERVICE_INTERFACE = "android.car.content.pm.CarAppBlockingPolicyService"; |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 210 | } |
| 211 | |
Keun-young Park | 4cf6911 | 2016-10-04 10:02:59 -0700 | [diff] [blame] | 212 | public final class CarPackageManager { |
Justin Paupore | ccc75a3 | 2019-02-12 18:20:48 -0800 | [diff] [blame] | 213 | method public boolean isActivityBackedBySafeActivity(android.content.ComponentName); |
| 214 | method public void setAppBlockingPolicy(String, android.car.content.pm.CarAppBlockingPolicy, int); |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 215 | field public static final int FLAG_SET_POLICY_ADD = 2; // 0x2 |
| 216 | field public static final int FLAG_SET_POLICY_REMOVE = 4; // 0x4 |
| 217 | field public static final int FLAG_SET_POLICY_WAIT_FOR_CHANGE = 1; // 0x1 |
| 218 | } |
| 219 | |
| 220 | } |
| 221 | |
Enrico Granata | 25e8946 | 2017-08-02 11:41:31 -0700 | [diff] [blame] | 222 | package android.car.diagnostic { |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 223 | |
Enrico Granata | ae25b92 | 2017-07-07 11:28:15 -0700 | [diff] [blame] | 224 | public class CarDiagnosticEvent implements android.os.Parcelable { |
| 225 | ctor public CarDiagnosticEvent(android.os.Parcel); |
| 226 | method public int describeContents(); |
Tor Norbye | 5e9618a | 2019-01-04 21:33:09 -0800 | [diff] [blame] | 227 | method @Nullable @android.car.diagnostic.CarDiagnosticEvent.FuelSystemStatus.Status public Integer getFuelSystemStatus(); |
| 228 | method @Nullable @android.car.diagnostic.CarDiagnosticEvent.FuelType.Type public Integer getFuelType(); |
| 229 | method @Nullable public android.car.diagnostic.CarDiagnosticEvent.CommonIgnitionMonitors getIgnitionMonitors(); |
| 230 | method @Nullable @android.car.diagnostic.CarDiagnosticEvent.SecondaryAirStatus.Status public Integer getSecondaryAirStatus(); |
Enrico Granata | ae25b92 | 2017-07-07 11:28:15 -0700 | [diff] [blame] | 231 | method public float getSystemFloatSensor(int, float); |
Tor Norbye | 5e9618a | 2019-01-04 21:33:09 -0800 | [diff] [blame] | 232 | method @Nullable public Float getSystemFloatSensor(int); |
Enrico Granata | ae25b92 | 2017-07-07 11:28:15 -0700 | [diff] [blame] | 233 | method public int getSystemIntegerSensor(int, int); |
Tor Norbye | 5e9618a | 2019-01-04 21:33:09 -0800 | [diff] [blame] | 234 | method @Nullable public Integer getSystemIntegerSensor(int); |
Enrico Granata | ae25b92 | 2017-07-07 11:28:15 -0700 | [diff] [blame] | 235 | method public float getVendorFloatSensor(int, float); |
Tor Norbye | 5e9618a | 2019-01-04 21:33:09 -0800 | [diff] [blame] | 236 | method @Nullable public Float getVendorFloatSensor(int); |
Enrico Granata | ae25b92 | 2017-07-07 11:28:15 -0700 | [diff] [blame] | 237 | method public int getVendorIntegerSensor(int, int); |
Tor Norbye | 5e9618a | 2019-01-04 21:33:09 -0800 | [diff] [blame] | 238 | method @Nullable public Integer getVendorIntegerSensor(int); |
Enrico Granata | ae25b92 | 2017-07-07 11:28:15 -0700 | [diff] [blame] | 239 | method public boolean isFreezeFrame(); |
| 240 | method public boolean isLiveFrame(); |
| 241 | method public void writeToJson(android.util.JsonWriter) throws java.io.IOException; |
| 242 | method public void writeToParcel(android.os.Parcel, int); |
Enrico Granata | 25e8946 | 2017-08-02 11:41:31 -0700 | [diff] [blame] | 243 | field public static final android.os.Parcelable.Creator<android.car.diagnostic.CarDiagnosticEvent> CREATOR; |
Tor Norbye | 5e9618a | 2019-01-04 21:33:09 -0800 | [diff] [blame] | 244 | field public final String dtc; |
Enrico Granata | ae25b92 | 2017-07-07 11:28:15 -0700 | [diff] [blame] | 245 | field public final int frameType; |
| 246 | field public final long timestamp; |
| 247 | } |
| 248 | |
| 249 | public static class CarDiagnosticEvent.Builder { |
Enrico Granata | 25e8946 | 2017-08-02 11:41:31 -0700 | [diff] [blame] | 250 | method public android.car.diagnostic.CarDiagnosticEvent.Builder atTimestamp(long); |
| 251 | method public android.car.diagnostic.CarDiagnosticEvent build(); |
| 252 | method public static android.car.diagnostic.CarDiagnosticEvent.Builder newFreezeFrameBuilder(); |
| 253 | method public static android.car.diagnostic.CarDiagnosticEvent.Builder newLiveFrameBuilder(); |
Tor Norbye | 5e9618a | 2019-01-04 21:33:09 -0800 | [diff] [blame] | 254 | method public android.car.diagnostic.CarDiagnosticEvent.Builder withDtc(String); |
Enrico Granata | 25e8946 | 2017-08-02 11:41:31 -0700 | [diff] [blame] | 255 | method public android.car.diagnostic.CarDiagnosticEvent.Builder withFloatValue(int, float); |
| 256 | method public android.car.diagnostic.CarDiagnosticEvent.Builder withIntValue(int, int); |
Enrico Granata | ae25b92 | 2017-07-07 11:28:15 -0700 | [diff] [blame] | 257 | } |
| 258 | |
Enrico Granata | f874771 | 2017-07-28 15:25:27 -0700 | [diff] [blame] | 259 | public static class CarDiagnosticEvent.CommonIgnitionMonitors { |
Tor Norbye | 5e9618a | 2019-01-04 21:33:09 -0800 | [diff] [blame] | 260 | method @Nullable public android.car.diagnostic.CarDiagnosticEvent.CompressionIgnitionMonitors asCompressionIgnitionMonitors(); |
| 261 | method @Nullable public android.car.diagnostic.CarDiagnosticEvent.SparkIgnitionMonitors asSparkIgnitionMonitors(); |
Enrico Granata | 25e8946 | 2017-08-02 11:41:31 -0700 | [diff] [blame] | 262 | field public final android.car.diagnostic.CarDiagnosticEvent.IgnitionMonitor components; |
| 263 | field public final android.car.diagnostic.CarDiagnosticEvent.IgnitionMonitor fuelSystem; |
| 264 | field public final android.car.diagnostic.CarDiagnosticEvent.IgnitionMonitor misfire; |
Enrico Granata | f874771 | 2017-07-28 15:25:27 -0700 | [diff] [blame] | 265 | } |
| 266 | |
Enrico Granata | 25e8946 | 2017-08-02 11:41:31 -0700 | [diff] [blame] | 267 | public static final class CarDiagnosticEvent.CompressionIgnitionMonitors extends android.car.diagnostic.CarDiagnosticEvent.CommonIgnitionMonitors { |
| 268 | field public final android.car.diagnostic.CarDiagnosticEvent.IgnitionMonitor EGROrVVT; |
| 269 | field public final android.car.diagnostic.CarDiagnosticEvent.IgnitionMonitor NMHCCatalyst; |
| 270 | field public final android.car.diagnostic.CarDiagnosticEvent.IgnitionMonitor NOxSCR; |
| 271 | field public final android.car.diagnostic.CarDiagnosticEvent.IgnitionMonitor PMFilter; |
| 272 | field public final android.car.diagnostic.CarDiagnosticEvent.IgnitionMonitor boostPressure; |
| 273 | field public final android.car.diagnostic.CarDiagnosticEvent.IgnitionMonitor exhaustGasSensor; |
Enrico Granata | f874771 | 2017-07-28 15:25:27 -0700 | [diff] [blame] | 274 | } |
| 275 | |
Enrico Granata | ae25b92 | 2017-07-07 11:28:15 -0700 | [diff] [blame] | 276 | public static final class CarDiagnosticEvent.FuelSystemStatus { |
| 277 | field public static final int CLOSED_LOOP = 2; // 0x2 |
| 278 | field public static final int CLOSED_LOOP_BUT_FEEDBACK_FAULT = 16; // 0x10 |
| 279 | field public static final int OPEN_ENGINE_LOAD_OR_DECELERATION = 4; // 0x4 |
| 280 | field public static final int OPEN_INSUFFICIENT_ENGINE_TEMPERATURE = 1; // 0x1 |
| 281 | field public static final int OPEN_SYSTEM_FAILURE = 8; // 0x8 |
| 282 | } |
| 283 | |
Tor Norbye | 5e9618a | 2019-01-04 21:33:09 -0800 | [diff] [blame] | 284 | @java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy.SOURCE) @IntDef({android.car.diagnostic.CarDiagnosticEvent.FuelSystemStatus.OPEN_INSUFFICIENT_ENGINE_TEMPERATURE, android.car.diagnostic.CarDiagnosticEvent.FuelSystemStatus.CLOSED_LOOP, android.car.diagnostic.CarDiagnosticEvent.FuelSystemStatus.OPEN_ENGINE_LOAD_OR_DECELERATION, android.car.diagnostic.CarDiagnosticEvent.FuelSystemStatus.OPEN_SYSTEM_FAILURE, android.car.diagnostic.CarDiagnosticEvent.FuelSystemStatus.CLOSED_LOOP_BUT_FEEDBACK_FAULT}) public static @interface CarDiagnosticEvent.FuelSystemStatus.Status { |
Enrico Granata | ae25b92 | 2017-07-07 11:28:15 -0700 | [diff] [blame] | 285 | } |
| 286 | |
| 287 | public static final class CarDiagnosticEvent.FuelType { |
| 288 | field public static final int BIFUEL_RUNNING_CNG = 13; // 0xd |
| 289 | field public static final int BIFUEL_RUNNING_DIESEL = 23; // 0x17 |
| 290 | field public static final int BIFUEL_RUNNING_ELECTRIC = 15; // 0xf |
| 291 | field public static final int BIFUEL_RUNNING_ELECTRIC_AND_COMBUSTION = 16; // 0x10 |
| 292 | field public static final int BIFUEL_RUNNING_ETHANOL = 11; // 0xb |
| 293 | field public static final int BIFUEL_RUNNING_GASOLINE = 9; // 0x9 |
| 294 | field public static final int BIFUEL_RUNNING_LPG = 12; // 0xc |
| 295 | field public static final int BIFUEL_RUNNING_METHANOL = 10; // 0xa |
| 296 | field public static final int BIFUEL_RUNNING_PROPANE = 14; // 0xe |
| 297 | field public static final int CNG = 6; // 0x6 |
| 298 | field public static final int DIESEL = 4; // 0x4 |
| 299 | field public static final int ELECTRIC = 8; // 0x8 |
| 300 | field public static final int ETHANOL = 3; // 0x3 |
| 301 | field public static final int GASOLINE = 1; // 0x1 |
| 302 | field public static final int HYBRID_DIESEL = 19; // 0x13 |
| 303 | field public static final int HYBRID_ELECTRIC = 20; // 0x14 |
| 304 | field public static final int HYBRID_ETHANOL = 18; // 0x12 |
| 305 | field public static final int HYBRID_GASOLINE = 17; // 0x11 |
| 306 | field public static final int HYBRID_REGENERATIVE = 22; // 0x16 |
| 307 | field public static final int HYBRID_RUNNING_ELECTRIC_AND_COMBUSTION = 21; // 0x15 |
| 308 | field public static final int LPG = 5; // 0x5 |
| 309 | field public static final int METHANOL = 2; // 0x2 |
| 310 | field public static final int NOT_AVAILABLE = 0; // 0x0 |
| 311 | field public static final int PROPANE = 7; // 0x7 |
| 312 | } |
| 313 | |
Tor Norbye | 5e9618a | 2019-01-04 21:33:09 -0800 | [diff] [blame] | 314 | @java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy.SOURCE) @IntDef({android.car.diagnostic.CarDiagnosticEvent.FuelType.NOT_AVAILABLE, android.car.diagnostic.CarDiagnosticEvent.FuelType.GASOLINE, android.car.diagnostic.CarDiagnosticEvent.FuelType.METHANOL, android.car.diagnostic.CarDiagnosticEvent.FuelType.ETHANOL, android.car.diagnostic.CarDiagnosticEvent.FuelType.DIESEL, android.car.diagnostic.CarDiagnosticEvent.FuelType.LPG, android.car.diagnostic.CarDiagnosticEvent.FuelType.CNG, android.car.diagnostic.CarDiagnosticEvent.FuelType.PROPANE, android.car.diagnostic.CarDiagnosticEvent.FuelType.ELECTRIC, android.car.diagnostic.CarDiagnosticEvent.FuelType.BIFUEL_RUNNING_GASOLINE, android.car.diagnostic.CarDiagnosticEvent.FuelType.BIFUEL_RUNNING_METHANOL, android.car.diagnostic.CarDiagnosticEvent.FuelType.BIFUEL_RUNNING_ETHANOL, android.car.diagnostic.CarDiagnosticEvent.FuelType.BIFUEL_RUNNING_LPG, android.car.diagnostic.CarDiagnosticEvent.FuelType.BIFUEL_RUNNING_CNG, android.car.diagnostic.CarDiagnosticEvent.FuelType.BIFUEL_RUNNING_PROPANE, android.car.diagnostic.CarDiagnosticEvent.FuelType.BIFUEL_RUNNING_ELECTRIC, android.car.diagnostic.CarDiagnosticEvent.FuelType.BIFUEL_RUNNING_ELECTRIC_AND_COMBUSTION, android.car.diagnostic.CarDiagnosticEvent.FuelType.HYBRID_GASOLINE, android.car.diagnostic.CarDiagnosticEvent.FuelType.HYBRID_ETHANOL, android.car.diagnostic.CarDiagnosticEvent.FuelType.HYBRID_DIESEL, android.car.diagnostic.CarDiagnosticEvent.FuelType.HYBRID_ELECTRIC, android.car.diagnostic.CarDiagnosticEvent.FuelType.HYBRID_RUNNING_ELECTRIC_AND_COMBUSTION, android.car.diagnostic.CarDiagnosticEvent.FuelType.HYBRID_REGENERATIVE, android.car.diagnostic.CarDiagnosticEvent.FuelType.BIFUEL_RUNNING_DIESEL}) public static @interface CarDiagnosticEvent.FuelType.Type { |
Enrico Granata | ae25b92 | 2017-07-07 11:28:15 -0700 | [diff] [blame] | 315 | } |
| 316 | |
Enrico Granata | f874771 | 2017-07-28 15:25:27 -0700 | [diff] [blame] | 317 | public static final class CarDiagnosticEvent.IgnitionMonitor { |
Enrico Granata | ae25b92 | 2017-07-07 11:28:15 -0700 | [diff] [blame] | 318 | field public final boolean available; |
| 319 | field public final boolean incomplete; |
| 320 | } |
| 321 | |
Enrico Granata | ae25b92 | 2017-07-07 11:28:15 -0700 | [diff] [blame] | 322 | public static final class CarDiagnosticEvent.SecondaryAirStatus { |
| 323 | field public static final int DOWNSTREAM_OF_CATALYCIC_CONVERTER = 2; // 0x2 |
| 324 | field public static final int FROM_OUTSIDE_OR_OFF = 4; // 0x4 |
| 325 | field public static final int PUMP_ON_FOR_DIAGNOSTICS = 8; // 0x8 |
| 326 | field public static final int UPSTREAM = 1; // 0x1 |
| 327 | } |
| 328 | |
Tor Norbye | 5e9618a | 2019-01-04 21:33:09 -0800 | [diff] [blame] | 329 | @java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy.SOURCE) @IntDef({android.car.diagnostic.CarDiagnosticEvent.SecondaryAirStatus.UPSTREAM, android.car.diagnostic.CarDiagnosticEvent.SecondaryAirStatus.DOWNSTREAM_OF_CATALYCIC_CONVERTER, android.car.diagnostic.CarDiagnosticEvent.SecondaryAirStatus.FROM_OUTSIDE_OR_OFF, android.car.diagnostic.CarDiagnosticEvent.SecondaryAirStatus.PUMP_ON_FOR_DIAGNOSTICS}) public static @interface CarDiagnosticEvent.SecondaryAirStatus.Status { |
Enrico Granata | ae25b92 | 2017-07-07 11:28:15 -0700 | [diff] [blame] | 330 | } |
| 331 | |
Enrico Granata | 25e8946 | 2017-08-02 11:41:31 -0700 | [diff] [blame] | 332 | public static final class CarDiagnosticEvent.SparkIgnitionMonitors extends android.car.diagnostic.CarDiagnosticEvent.CommonIgnitionMonitors { |
| 333 | field public final android.car.diagnostic.CarDiagnosticEvent.IgnitionMonitor ACRefrigerant; |
| 334 | field public final android.car.diagnostic.CarDiagnosticEvent.IgnitionMonitor EGR; |
| 335 | field public final android.car.diagnostic.CarDiagnosticEvent.IgnitionMonitor catalyst; |
| 336 | field public final android.car.diagnostic.CarDiagnosticEvent.IgnitionMonitor evaporativeSystem; |
| 337 | field public final android.car.diagnostic.CarDiagnosticEvent.IgnitionMonitor heatedCatalyst; |
| 338 | field public final android.car.diagnostic.CarDiagnosticEvent.IgnitionMonitor oxygenSensor; |
| 339 | field public final android.car.diagnostic.CarDiagnosticEvent.IgnitionMonitor oxygenSensorHeater; |
| 340 | field public final android.car.diagnostic.CarDiagnosticEvent.IgnitionMonitor secondaryAirSystem; |
Enrico Granata | f874771 | 2017-07-28 15:25:27 -0700 | [diff] [blame] | 341 | } |
| 342 | |
Enrico Granata | ae25b92 | 2017-07-07 11:28:15 -0700 | [diff] [blame] | 343 | public final class CarDiagnosticManager { |
Justin Paupore | ccc75a3 | 2019-02-12 18:20:48 -0800 | [diff] [blame] | 344 | method public boolean clearFreezeFrames(long...); |
| 345 | method @Nullable public android.car.diagnostic.CarDiagnosticEvent getFreezeFrame(long); |
| 346 | method public long[] getFreezeFrameTimestamps(); |
| 347 | method @Nullable public android.car.diagnostic.CarDiagnosticEvent getLatestLiveFrame(); |
| 348 | method public boolean isClearFreezeFramesSupported(); |
| 349 | method public boolean isFreezeFrameNotificationSupported(); |
| 350 | method public boolean isGetFreezeFrameSupported(); |
| 351 | method public boolean isLiveFrameSupported(); |
| 352 | method public boolean isSelectiveClearFreezeFramesSupported(); |
Enrico Granata | ae25b92 | 2017-07-07 11:28:15 -0700 | [diff] [blame] | 353 | method public void onCarDisconnected(); |
Justin Paupore | ccc75a3 | 2019-02-12 18:20:48 -0800 | [diff] [blame] | 354 | method public boolean registerListener(android.car.diagnostic.CarDiagnosticManager.OnDiagnosticEventListener, @android.car.diagnostic.CarDiagnosticManager.FrameType int, int); |
Enrico Granata | 25e8946 | 2017-08-02 11:41:31 -0700 | [diff] [blame] | 355 | method public void unregisterListener(android.car.diagnostic.CarDiagnosticManager.OnDiagnosticEventListener); |
Enrico Granata | ae25b92 | 2017-07-07 11:28:15 -0700 | [diff] [blame] | 356 | field public static final int FRAME_TYPE_FREEZE = 1; // 0x1 |
| 357 | field public static final int FRAME_TYPE_LIVE = 0; // 0x0 |
| 358 | } |
| 359 | |
Tor Norbye | 5e9618a | 2019-01-04 21:33:09 -0800 | [diff] [blame] | 360 | @java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy.SOURCE) @IntDef({android.car.diagnostic.CarDiagnosticManager.FRAME_TYPE_LIVE, android.car.diagnostic.CarDiagnosticManager.FRAME_TYPE_FREEZE}) public static @interface CarDiagnosticManager.FrameType { |
Enrico Granata | ae25b92 | 2017-07-07 11:28:15 -0700 | [diff] [blame] | 361 | } |
| 362 | |
Tor Norbye | 5e9618a | 2019-01-04 21:33:09 -0800 | [diff] [blame] | 363 | public static interface CarDiagnosticManager.OnDiagnosticEventListener { |
| 364 | method public void onDiagnosticEvent(android.car.diagnostic.CarDiagnosticEvent); |
Enrico Granata | ae25b92 | 2017-07-07 11:28:15 -0700 | [diff] [blame] | 365 | } |
| 366 | |
Enrico Granata | 25e8946 | 2017-08-02 11:41:31 -0700 | [diff] [blame] | 367 | public final class FloatSensorIndex { |
| 368 | field public static final int ABSOLUTE_EVAPORATION_SYSTEM_VAPOR_PRESSURE = 58; // 0x3a |
| 369 | field public static final int ABSOLUTE_LOAD_VALUE = 48; // 0x30 |
| 370 | field public static final int ABSOLUTE_THROTTLE_POSITION_B = 51; // 0x33 |
| 371 | field public static final int ABSOLUTE_THROTTLE_POSITION_C = 52; // 0x34 |
| 372 | field public static final int ACCELERATOR_PEDAL_POSITION_D = 53; // 0x35 |
| 373 | field public static final int ACCELERATOR_PEDAL_POSITION_E = 54; // 0x36 |
| 374 | field public static final int ACCELERATOR_PEDAL_POSITION_F = 55; // 0x37 |
| 375 | field public static final int CALCULATED_ENGINE_LOAD = 0; // 0x0 |
| 376 | field public static final int CATALYST_TEMPERATURE_BANK1_SENSOR1 = 44; // 0x2c |
| 377 | field public static final int CATALYST_TEMPERATURE_BANK1_SENSOR2 = 46; // 0x2e |
| 378 | field public static final int CATALYST_TEMPERATURE_BANK2_SENSOR1 = 45; // 0x2d |
| 379 | field public static final int CATALYST_TEMPERATURE_BANK2_SENSOR2 = 47; // 0x2f |
| 380 | field public static final int COMMANDED_EVAPORATIVE_PURGE = 41; // 0x29 |
| 381 | field public static final int COMMANDED_EXHAUST_GAS_RECIRCULATION = 39; // 0x27 |
| 382 | field public static final int COMMANDED_THROTTLE_ACTUATOR = 56; // 0x38 |
| 383 | field public static final int ENGINE_COOLANT_TEMPERATURE = 1; // 0x1 |
| 384 | field public static final int ENGINE_FUEL_RATE = 70; // 0x46 |
| 385 | field public static final int ENGINE_RPM = 8; // 0x8 |
| 386 | field public static final int ETHANOL_FUEL_PERCENTAGE = 57; // 0x39 |
| 387 | field public static final int EVAPORATION_SYSTEM_VAPOR_PRESSURE = 43; // 0x2b |
| 388 | field public static final int EXHAUST_GAS_RECIRCULATION_ERROR = 40; // 0x28 |
| 389 | field public static final int FUEL_AIR_COMMANDED_EQUIVALENCE_RATIO = 49; // 0x31 |
| 390 | field public static final int FUEL_INJECTION_TIMING = 69; // 0x45 |
| 391 | field public static final int FUEL_PRESSURE = 6; // 0x6 |
| 392 | field public static final int FUEL_RAIL_GAUGE_PRESSURE = 38; // 0x26 |
| 393 | field public static final int FUEL_RAIL_PRESSURE = 37; // 0x25 |
| 394 | field public static final int FUEL_TANK_LEVEL_INPUT = 42; // 0x2a |
| 395 | field public static final int HYBRID_BATTERY_PACK_REMAINING_LIFE = 68; // 0x44 |
| 396 | field public static final int INTAKE_MANIFOLD_ABSOLUTE_PRESSURE = 7; // 0x7 |
| 397 | field public static final int LAST_SYSTEM = 70; // 0x46 |
| 398 | field public static final int LONG_TERM_FUEL_TRIM_BANK1 = 3; // 0x3 |
| 399 | field public static final int LONG_TERM_FUEL_TRIM_BANK2 = 5; // 0x5 |
| 400 | field public static final int LONG_TERM_SECONDARY_OXYGEN_SENSOR_TRIM_BANK1 = 63; // 0x3f |
| 401 | field public static final int LONG_TERM_SECONDARY_OXYGEN_SENSOR_TRIM_BANK2 = 64; // 0x40 |
| 402 | field public static final int LONG_TERM_SECONDARY_OXYGEN_SENSOR_TRIM_BANK3 = 65; // 0x41 |
| 403 | field public static final int LONG_TERM_SECONDARY_OXYGEN_SENSOR_TRIM_BANK4 = 66; // 0x42 |
| 404 | field public static final int MAF_AIR_FLOW_RATE = 11; // 0xb |
| 405 | field public static final int OXYGEN_SENSOR1_FUEL_AIR_EQUIVALENCE_RATIO = 15; // 0xf |
| 406 | field public static final int OXYGEN_SENSOR1_SHORT_TERM_FUEL_TRIM = 14; // 0xe |
| 407 | field public static final int OXYGEN_SENSOR1_VOLTAGE = 13; // 0xd |
| 408 | field public static final int OXYGEN_SENSOR2_FUEL_AIR_EQUIVALENCE_RATIO = 18; // 0x12 |
| 409 | field public static final int OXYGEN_SENSOR2_SHORT_TERM_FUEL_TRIM = 17; // 0x11 |
| 410 | field public static final int OXYGEN_SENSOR2_VOLTAGE = 16; // 0x10 |
| 411 | field public static final int OXYGEN_SENSOR3_FUEL_AIR_EQUIVALENCE_RATIO = 21; // 0x15 |
| 412 | field public static final int OXYGEN_SENSOR3_SHORT_TERM_FUEL_TRIM = 20; // 0x14 |
| 413 | field public static final int OXYGEN_SENSOR3_VOLTAGE = 19; // 0x13 |
| 414 | field public static final int OXYGEN_SENSOR4_FUEL_AIR_EQUIVALENCE_RATIO = 24; // 0x18 |
| 415 | field public static final int OXYGEN_SENSOR4_SHORT_TERM_FUEL_TRIM = 23; // 0x17 |
| 416 | field public static final int OXYGEN_SENSOR4_VOLTAGE = 22; // 0x16 |
| 417 | field public static final int OXYGEN_SENSOR5_FUEL_AIR_EQUIVALENCE_RATIO = 27; // 0x1b |
| 418 | field public static final int OXYGEN_SENSOR5_SHORT_TERM_FUEL_TRIM = 26; // 0x1a |
| 419 | field public static final int OXYGEN_SENSOR5_VOLTAGE = 25; // 0x19 |
| 420 | field public static final int OXYGEN_SENSOR6_FUEL_AIR_EQUIVALENCE_RATIO = 30; // 0x1e |
| 421 | field public static final int OXYGEN_SENSOR6_SHORT_TERM_FUEL_TRIM = 29; // 0x1d |
| 422 | field public static final int OXYGEN_SENSOR6_VOLTAGE = 28; // 0x1c |
| 423 | field public static final int OXYGEN_SENSOR7_FUEL_AIR_EQUIVALENCE_RATIO = 33; // 0x21 |
| 424 | field public static final int OXYGEN_SENSOR7_SHORT_TERM_FUEL_TRIM = 32; // 0x20 |
| 425 | field public static final int OXYGEN_SENSOR7_VOLTAGE = 31; // 0x1f |
| 426 | field public static final int OXYGEN_SENSOR8_FUEL_AIR_EQUIVALENCE_RATIO = 36; // 0x24 |
| 427 | field public static final int OXYGEN_SENSOR8_SHORT_TERM_FUEL_TRIM = 35; // 0x23 |
| 428 | field public static final int OXYGEN_SENSOR8_VOLTAGE = 34; // 0x22 |
| 429 | field public static final int RELATIVE_ACCELERATOR_PEDAL_POSITION = 67; // 0x43 |
| 430 | field public static final int RELATIVE_THROTTLE_POSITION = 50; // 0x32 |
| 431 | field public static final int SHORT_TERM_FUEL_TRIM_BANK1 = 2; // 0x2 |
| 432 | field public static final int SHORT_TERM_FUEL_TRIM_BANK2 = 4; // 0x4 |
| 433 | field public static final int SHORT_TERM_SECONDARY_OXYGEN_SENSOR_TRIM_BANK1 = 59; // 0x3b |
| 434 | field public static final int SHORT_TERM_SECONDARY_OXYGEN_SENSOR_TRIM_BANK2 = 60; // 0x3c |
| 435 | field public static final int SHORT_TERM_SECONDARY_OXYGEN_SENSOR_TRIM_BANK3 = 61; // 0x3d |
| 436 | field public static final int SHORT_TERM_SECONDARY_OXYGEN_SENSOR_TRIM_BANK4 = 62; // 0x3e |
| 437 | field public static final int THROTTLE_POSITION = 12; // 0xc |
| 438 | field public static final int TIMING_ADVANCE = 10; // 0xa |
| 439 | field public static final int VEHICLE_SPEED = 9; // 0x9 |
| 440 | field public static final int VENDOR_START = 71; // 0x47 |
| 441 | } |
| 442 | |
| 443 | public final class IntegerSensorIndex { |
| 444 | field public static final int ABSOLUTE_BAROMETRIC_PRESSURE = 11; // 0xb |
| 445 | field public static final int AMBIENT_AIR_TEMPERATURE = 13; // 0xd |
| 446 | field public static final int COMMANDED_SECONDARY_AIR_STATUS = 5; // 0x5 |
| 447 | field public static final int CONTROL_MODULE_VOLTAGE = 12; // 0xc |
| 448 | field public static final int DISTANCE_TRAVELED_SINCE_CODES_CLEARED = 10; // 0xa |
| 449 | field public static final int DISTANCE_TRAVELED_WITH_MALFUNCTION_INDICATOR_LIGHT_ON = 8; // 0x8 |
| 450 | field public static final int DRIVER_DEMAND_PERCENT_TORQUE = 24; // 0x18 |
| 451 | field public static final int ENGINE_ACTUAL_PERCENT_TORQUE = 25; // 0x19 |
| 452 | field public static final int ENGINE_OIL_TEMPERATURE = 23; // 0x17 |
| 453 | field public static final int ENGINE_PERCENT_TORQUE_DATA_IDLE = 27; // 0x1b |
| 454 | field public static final int ENGINE_PERCENT_TORQUE_DATA_POINT1 = 28; // 0x1c |
| 455 | field public static final int ENGINE_PERCENT_TORQUE_DATA_POINT2 = 29; // 0x1d |
| 456 | field public static final int ENGINE_PERCENT_TORQUE_DATA_POINT3 = 30; // 0x1e |
| 457 | field public static final int ENGINE_PERCENT_TORQUE_DATA_POINT4 = 31; // 0x1f |
| 458 | field public static final int ENGINE_REFERENCE_PERCENT_TORQUE = 26; // 0x1a |
| 459 | field public static final int FUEL_RAIL_ABSOLUTE_PRESSURE = 22; // 0x16 |
| 460 | field public static final int FUEL_SYSTEM_STATUS = 0; // 0x0 |
| 461 | field public static final int FUEL_TYPE = 21; // 0x15 |
| 462 | field public static final int IGNITION_MONITORS_SUPPORTED = 2; // 0x2 |
| 463 | field public static final int IGNITION_SPECIFIC_MONITORS = 3; // 0x3 |
| 464 | field public static final int INTAKE_AIR_TEMPERATURE = 4; // 0x4 |
| 465 | field public static final int LAST_SYSTEM = 31; // 0x1f |
| 466 | field public static final int MALFUNCTION_INDICATOR_LIGHT_ON = 1; // 0x1 |
| 467 | field public static final int MAX_AIR_FLOW_RATE_FROM_MASS_AIR_FLOW_SENSOR = 20; // 0x14 |
| 468 | field public static final int MAX_FUEL_AIR_EQUIVALENCE_RATIO = 16; // 0x10 |
| 469 | field public static final int MAX_INTAKE_MANIFOLD_ABSOLUTE_PRESSURE = 19; // 0x13 |
| 470 | field public static final int MAX_OXYGEN_SENSOR_CURRENT = 18; // 0x12 |
| 471 | field public static final int MAX_OXYGEN_SENSOR_VOLTAGE = 17; // 0x11 |
| 472 | field public static final int NUM_OXYGEN_SENSORS_PRESENT = 6; // 0x6 |
| 473 | field public static final int RUNTIME_SINCE_ENGINE_START = 7; // 0x7 |
| 474 | field public static final int TIME_SINCE_TROUBLE_CODES_CLEARED = 15; // 0xf |
| 475 | field public static final int TIME_WITH_MALFUNCTION_LIGHT_ON = 14; // 0xe |
| 476 | field public static final int VENDOR_START = 32; // 0x20 |
| 477 | field public static final int WARMUPS_SINCE_CODES_CLEARED = 9; // 0x9 |
| 478 | } |
| 479 | |
| 480 | } |
| 481 | |
Ram Periathiruvadi | 25c16f1 | 2017-11-17 16:48:37 -0800 | [diff] [blame] | 482 | package android.car.drivingstate { |
| 483 | |
Yao, Yuxing | 64cca8d | 2019-03-20 10:41:47 -0700 | [diff] [blame] | 484 | public final class CarDrivingStateEvent implements android.os.Parcelable { |
Ram Periathiruvadi | 25c16f1 | 2017-11-17 16:48:37 -0800 | [diff] [blame] | 485 | ctor public CarDrivingStateEvent(int, long); |
| 486 | method public int describeContents(); |
| 487 | method public void writeToParcel(android.os.Parcel, int); |
| 488 | field public static final android.os.Parcelable.Creator<android.car.drivingstate.CarDrivingStateEvent> CREATOR; |
| 489 | field public static final int DRIVING_STATE_IDLING = 1; // 0x1 |
| 490 | field public static final int DRIVING_STATE_MOVING = 2; // 0x2 |
| 491 | field public static final int DRIVING_STATE_PARKED = 0; // 0x0 |
| 492 | field public static final int DRIVING_STATE_UNKNOWN = -1; // 0xffffffff |
| 493 | field public final int eventValue; |
| 494 | field public final long timeStamp; |
| 495 | } |
| 496 | |
| 497 | public final class CarDrivingStateManager { |
Justin Paupore | ccc75a3 | 2019-02-12 18:20:48 -0800 | [diff] [blame] | 498 | method @Nullable public android.car.drivingstate.CarDrivingStateEvent getCurrentCarDrivingState(); |
| 499 | method public void registerListener(@NonNull android.car.drivingstate.CarDrivingStateManager.CarDrivingStateEventListener); |
| 500 | method public void unregisterListener(); |
Ram Periathiruvadi | 25c16f1 | 2017-11-17 16:48:37 -0800 | [diff] [blame] | 501 | } |
| 502 | |
Tor Norbye | 5e9618a | 2019-01-04 21:33:09 -0800 | [diff] [blame] | 503 | public static interface CarDrivingStateManager.CarDrivingStateEventListener { |
| 504 | method public void onDrivingStateChanged(android.car.drivingstate.CarDrivingStateEvent); |
Ram Periathiruvadi | 25c16f1 | 2017-11-17 16:48:37 -0800 | [diff] [blame] | 505 | } |
| 506 | |
| 507 | } |
| 508 | |
Enrico Granata | 25e8946 | 2017-08-02 11:41:31 -0700 | [diff] [blame] | 509 | package android.car.hardware { |
| 510 | |
Kai | 48106a9 | 2018-12-18 13:26:19 -0800 | [diff] [blame] | 511 | public final class CarPropertyConfig<T> implements android.os.Parcelable { |
| 512 | method @NonNull public Class<T> getPropertyType(); |
Tor Norbye | 5e9618a | 2019-01-04 21:33:09 -0800 | [diff] [blame] | 513 | method public static <T> android.car.hardware.CarPropertyConfig.Builder<T> newBuilder(Class<T>, int, int, int); |
Steve Paik | fb5f623 | 2016-03-28 10:31:25 -0700 | [diff] [blame] | 514 | } |
| 515 | |
Keun-young Park | 6089156 | 2016-09-28 11:16:02 -0700 | [diff] [blame] | 516 | public static class CarPropertyConfig.Builder<T> { |
Steve Paik | fb5f623 | 2016-03-28 10:31:25 -0700 | [diff] [blame] | 517 | method public android.car.hardware.CarPropertyConfig.Builder<T> addArea(int); |
| 518 | method public android.car.hardware.CarPropertyConfig.Builder<T> addAreaConfig(int, T, T); |
| 519 | method public android.car.hardware.CarPropertyConfig.Builder<T> addAreas(int[]); |
| 520 | method public android.car.hardware.CarPropertyConfig<T> build(); |
Steve Paik | 5bb392c | 2018-04-23 18:40:57 -0700 | [diff] [blame] | 521 | method public android.car.hardware.CarPropertyConfig.Builder<T> setAccess(int); |
| 522 | method public android.car.hardware.CarPropertyConfig.Builder<T> setChangeMode(int); |
| 523 | method public android.car.hardware.CarPropertyConfig.Builder<T> setConfigArray(java.util.ArrayList<java.lang.Integer>); |
Tor Norbye | 5e9618a | 2019-01-04 21:33:09 -0800 | [diff] [blame] | 524 | method public android.car.hardware.CarPropertyConfig.Builder<T> setConfigString(String); |
Steve Paik | 5bb392c | 2018-04-23 18:40:57 -0700 | [diff] [blame] | 525 | method public android.car.hardware.CarPropertyConfig.Builder<T> setMaxSampleRate(float); |
| 526 | method public android.car.hardware.CarPropertyConfig.Builder<T> setMinSampleRate(float); |
Steve Paik | fb5f623 | 2016-03-28 10:31:25 -0700 | [diff] [blame] | 527 | } |
| 528 | |
Kai | 48106a9 | 2018-12-18 13:26:19 -0800 | [diff] [blame] | 529 | @Deprecated public final class CarVendorExtensionManager { |
| 530 | method @Deprecated public <E> E getGlobalProperty(Class<E>, int); |
| 531 | method @Deprecated public java.util.List<android.car.hardware.CarPropertyConfig> getProperties(); |
| 532 | method @Deprecated public <E> E getProperty(Class<E>, int, int); |
| 533 | method @Deprecated public boolean isPropertyAvailable(int, int); |
| 534 | method @Deprecated public void registerCallback(android.car.hardware.CarVendorExtensionManager.CarVendorExtensionCallback); |
| 535 | method @Deprecated public <E> void setGlobalProperty(Class<E>, int, E); |
| 536 | method @Deprecated public <E> void setProperty(Class<E>, int, int, E); |
| 537 | method @Deprecated public void unregisterCallback(android.car.hardware.CarVendorExtensionManager.CarVendorExtensionCallback); |
Steve Paik | fb5f623 | 2016-03-28 10:31:25 -0700 | [diff] [blame] | 538 | } |
| 539 | |
Kai | 48106a9 | 2018-12-18 13:26:19 -0800 | [diff] [blame] | 540 | @Deprecated public static interface CarVendorExtensionManager.CarVendorExtensionCallback { |
| 541 | method @Deprecated public void onChangeEvent(android.car.hardware.CarPropertyValue); |
| 542 | method @Deprecated public void onErrorEvent(int, int); |
Pavel Maltsev | 634e1ff | 2016-07-14 15:41:26 -0700 | [diff] [blame] | 543 | } |
| 544 | |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 545 | } |
| 546 | |
Steve Paik | 43c04a7 | 2016-07-08 19:12:09 -0700 | [diff] [blame] | 547 | package android.car.hardware.cabin { |
| 548 | |
Kai | 48106a9 | 2018-12-18 13:26:19 -0800 | [diff] [blame] | 549 | @Deprecated public final class CarCabinManager { |
| 550 | method @Deprecated public boolean getBooleanProperty(int, int); |
| 551 | method @Deprecated public float getFloatProperty(int, int); |
| 552 | method @Deprecated public int getIntProperty(int, int); |
| 553 | method @Deprecated public java.util.List<android.car.hardware.CarPropertyConfig> getPropertyList(); |
| 554 | method @Deprecated public static boolean isZonedProperty(int); |
| 555 | method @Deprecated public void registerCallback(android.car.hardware.cabin.CarCabinManager.CarCabinEventCallback); |
| 556 | method @Deprecated public void setBooleanProperty(int, int, boolean); |
| 557 | method @Deprecated public void setFloatProperty(int, int, float); |
| 558 | method @Deprecated public void setIntProperty(int, int, int); |
| 559 | method @Deprecated public void unregisterCallback(android.car.hardware.cabin.CarCabinManager.CarCabinEventCallback); |
| 560 | field @Deprecated public static final int ID_DOOR_LOCK = 371198722; // 0x16200b02 |
| 561 | field @Deprecated public static final int ID_DOOR_MOVE = 373295873; // 0x16400b01 |
| 562 | field @Deprecated public static final int ID_DOOR_POS = 373295872; // 0x16400b00 |
| 563 | field @Deprecated public static final int ID_MIRROR_FOLD = 287312709; // 0x11200b45 |
| 564 | field @Deprecated public static final int ID_MIRROR_LOCK = 287312708; // 0x11200b44 |
| 565 | field @Deprecated public static final int ID_MIRROR_Y_MOVE = 339741507; // 0x14400b43 |
| 566 | field @Deprecated public static final int ID_MIRROR_Y_POS = 339741506; // 0x14400b42 |
| 567 | field @Deprecated public static final int ID_MIRROR_Z_MOVE = 339741505; // 0x14400b41 |
| 568 | field @Deprecated public static final int ID_MIRROR_Z_POS = 339741504; // 0x14400b40 |
| 569 | field @Deprecated public static final int ID_SEAT_BACKREST_ANGLE_1_MOVE = 356518792; // 0x15400b88 |
| 570 | field @Deprecated public static final int ID_SEAT_BACKREST_ANGLE_1_POS = 356518791; // 0x15400b87 |
| 571 | field @Deprecated public static final int ID_SEAT_BACKREST_ANGLE_2_MOVE = 356518794; // 0x15400b8a |
| 572 | field @Deprecated public static final int ID_SEAT_BACKREST_ANGLE_2_POS = 356518793; // 0x15400b89 |
| 573 | field @Deprecated public static final int ID_SEAT_BELT_BUCKLED = 354421634; // 0x15200b82 |
| 574 | field @Deprecated public static final int ID_SEAT_BELT_HEIGHT_MOVE = 356518788; // 0x15400b84 |
| 575 | field @Deprecated public static final int ID_SEAT_BELT_HEIGHT_POS = 356518787; // 0x15400b83 |
| 576 | field @Deprecated public static final int ID_SEAT_DEPTH_MOVE = 356518798; // 0x15400b8e |
| 577 | field @Deprecated public static final int ID_SEAT_DEPTH_POS = 356518797; // 0x15400b8d |
| 578 | field @Deprecated public static final int ID_SEAT_FORE_AFT_MOVE = 356518790; // 0x15400b86 |
| 579 | field @Deprecated public static final int ID_SEAT_FORE_AFT_POS = 356518789; // 0x15400b85 |
| 580 | field @Deprecated public static final int ID_SEAT_HEADREST_ANGLE_MOVE = 356518808; // 0x15400b98 |
| 581 | field @Deprecated public static final int ID_SEAT_HEADREST_ANGLE_POS = 356518807; // 0x15400b97 |
| 582 | field @Deprecated public static final int ID_SEAT_HEADREST_FORE_AFT_MOVE = 356518810; // 0x15400b9a |
| 583 | field @Deprecated public static final int ID_SEAT_HEADREST_FORE_AFT_POS = 356518809; // 0x15400b99 |
| 584 | field @Deprecated public static final int ID_SEAT_HEADREST_HEIGHT_MOVE = 356518806; // 0x15400b96 |
| 585 | field @Deprecated public static final int ID_SEAT_HEADREST_HEIGHT_POS = 356518805; // 0x15400b95 |
| 586 | field @Deprecated public static final int ID_SEAT_HEIGHT_MOVE = 356518796; // 0x15400b8c |
| 587 | field @Deprecated public static final int ID_SEAT_HEIGHT_POS = 356518795; // 0x15400b8b |
| 588 | field @Deprecated public static final int ID_SEAT_LUMBAR_FORE_AFT_MOVE = 356518802; // 0x15400b92 |
| 589 | field @Deprecated public static final int ID_SEAT_LUMBAR_FORE_AFT_POS = 356518801; // 0x15400b91 |
| 590 | field @Deprecated public static final int ID_SEAT_LUMBAR_SIDE_SUPPORT_MOVE = 356518804; // 0x15400b94 |
| 591 | field @Deprecated public static final int ID_SEAT_LUMBAR_SIDE_SUPPORT_POS = 356518803; // 0x15400b93 |
| 592 | field @Deprecated public static final int ID_SEAT_MEMORY_SELECT = 356518784; // 0x15400b80 |
| 593 | field @Deprecated public static final int ID_SEAT_MEMORY_SET = 356518785; // 0x15400b81 |
| 594 | field @Deprecated public static final int ID_SEAT_TILT_MOVE = 356518800; // 0x15400b90 |
| 595 | field @Deprecated public static final int ID_SEAT_TILT_POS = 356518799; // 0x15400b8f |
| 596 | field @Deprecated public static final int ID_WINDOW_LOCK = 322964420; // 0x13400bc4 |
| 597 | field @Deprecated public static final int ID_WINDOW_MOVE = 322964417; // 0x13400bc1 |
| 598 | field @Deprecated public static final int ID_WINDOW_POS = 322964416; // 0x13400bc0 |
Steve Paik | 43c04a7 | 2016-07-08 19:12:09 -0700 | [diff] [blame] | 599 | } |
| 600 | |
Kai | 48106a9 | 2018-12-18 13:26:19 -0800 | [diff] [blame] | 601 | @Deprecated public static interface CarCabinManager.CarCabinEventCallback { |
| 602 | method @Deprecated public void onChangeEvent(android.car.hardware.CarPropertyValue); |
| 603 | method @Deprecated public void onErrorEvent(int, int); |
Steve Paik | 43c04a7 | 2016-07-08 19:12:09 -0700 | [diff] [blame] | 604 | } |
| 605 | |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 606 | } |
| 607 | |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 608 | package android.car.hardware.hvac { |
| 609 | |
Kai | 48106a9 | 2018-12-18 13:26:19 -0800 | [diff] [blame] | 610 | @Deprecated public final class CarHvacManager { |
| 611 | method @Deprecated public boolean getBooleanProperty(int, int); |
| 612 | method @Deprecated public float getFloatProperty(int, int); |
| 613 | method @Deprecated public int getIntProperty(int, int); |
| 614 | method @Deprecated public java.util.List<android.car.hardware.CarPropertyConfig> getPropertyList(); |
| 615 | method @Deprecated public boolean isPropertyAvailable(int, int); |
| 616 | method @Deprecated public void registerCallback(android.car.hardware.hvac.CarHvacManager.CarHvacEventCallback); |
| 617 | method @Deprecated public void setBooleanProperty(int, int, boolean); |
| 618 | method @Deprecated public void setFloatProperty(int, int, float); |
| 619 | method @Deprecated public void setIntProperty(int, int, int); |
| 620 | method @Deprecated public void unregisterCallback(android.car.hardware.hvac.CarHvacManager.CarHvacEventCallback); |
| 621 | field @Deprecated public static final int FAN_DIRECTION_DEFROST = 4; // 0x4 |
| 622 | field @Deprecated public static final int FAN_DIRECTION_FACE = 1; // 0x1 |
| 623 | field @Deprecated public static final int FAN_DIRECTION_FLOOR = 2; // 0x2 |
| 624 | field @Deprecated public static final int ID_MIRROR_DEFROSTER_ON = 339739916; // 0x1440050c |
| 625 | field @Deprecated public static final int ID_OUTSIDE_AIR_TEMP = 291505923; // 0x11600703 |
| 626 | field @Deprecated public static final int ID_STEERING_WHEEL_HEAT = 289408269; // 0x1140050d |
| 627 | field @Deprecated public static final int ID_TEMPERATURE_DISPLAY_UNITS = 289408270; // 0x1140050e |
| 628 | field @Deprecated public static final int ID_WINDOW_DEFROSTER_ON = 320865540; // 0x13200504 |
| 629 | field @Deprecated public static final int ID_ZONED_AC_ON = 354419973; // 0x15200505 |
| 630 | field @Deprecated public static final int ID_ZONED_AIR_RECIRCULATION_ON = 354419976; // 0x15200508 |
| 631 | field @Deprecated public static final int ID_ZONED_AUTOMATIC_MODE_ON = 354419978; // 0x1520050a |
| 632 | field @Deprecated public static final int ID_ZONED_DUAL_ZONE_ON = 354419977; // 0x15200509 |
| 633 | field @Deprecated public static final int ID_ZONED_FAN_DIRECTION = 356517121; // 0x15400501 |
| 634 | field @Deprecated public static final int ID_ZONED_FAN_DIRECTION_AVAILABLE = 356582673; // 0x15410511 |
| 635 | field @Deprecated public static final int ID_ZONED_FAN_SPEED_RPM = 356517135; // 0x1540050f |
| 636 | field @Deprecated public static final int ID_ZONED_FAN_SPEED_SETPOINT = 356517120; // 0x15400500 |
| 637 | field @Deprecated public static final int ID_ZONED_HVAC_AUTO_RECIRC_ON = 354419986; // 0x15200512 |
| 638 | field @Deprecated public static final int ID_ZONED_HVAC_POWER_ON = 354419984; // 0x15200510 |
| 639 | field @Deprecated public static final int ID_ZONED_MAX_AC_ON = 354419974; // 0x15200506 |
| 640 | field @Deprecated public static final int ID_ZONED_MAX_DEFROST_ON = 354419975; // 0x15200507 |
| 641 | field @Deprecated public static final int ID_ZONED_SEAT_TEMP = 356517131; // 0x1540050b |
| 642 | field @Deprecated public static final int ID_ZONED_TEMP_ACTUAL = 358614274; // 0x15600502 |
| 643 | field @Deprecated public static final int ID_ZONED_TEMP_SETPOINT = 358614275; // 0x15600503 |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 644 | } |
| 645 | |
Kai | 48106a9 | 2018-12-18 13:26:19 -0800 | [diff] [blame] | 646 | @Deprecated public static interface CarHvacManager.CarHvacEventCallback { |
| 647 | method @Deprecated public void onChangeEvent(android.car.hardware.CarPropertyValue); |
| 648 | method @Deprecated public void onErrorEvent(int, int); |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 649 | } |
| 650 | |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 651 | } |
| 652 | |
Steve Paik | 388d777 | 2018-02-12 10:54:51 -0800 | [diff] [blame] | 653 | package android.car.hardware.power { |
| 654 | |
| 655 | public class CarPowerManager { |
Steve Paik | 388d777 | 2018-02-12 10:54:51 -0800 | [diff] [blame] | 656 | } |
| 657 | |
Tor Norbye | 5e9618a | 2019-01-04 21:33:09 -0800 | [diff] [blame] | 658 | public static interface CarPowerManager.CarPowerStateListener { |
Steve Paik | 388d777 | 2018-02-12 10:54:51 -0800 | [diff] [blame] | 659 | } |
| 660 | |
| 661 | } |
| 662 | |
Vitalii Tomkiv | 2bd0692 | 2016-07-26 11:07:48 -0700 | [diff] [blame] | 663 | package android.car.input { |
| 664 | |
| 665 | public abstract class CarInputHandlingService extends android.app.Service { |
| 666 | ctor protected CarInputHandlingService(android.car.input.CarInputHandlingService.InputFilter[]); |
Tor Norbye | 5e9618a | 2019-01-04 21:33:09 -0800 | [diff] [blame] | 667 | method @CallSuper public android.os.IBinder onBind(android.content.Intent); |
| 668 | method @MainThread protected abstract void onKeyEvent(android.view.KeyEvent, int); |
Vitalii Tomkiv | 2bd0692 | 2016-07-26 11:07:48 -0700 | [diff] [blame] | 669 | field public static final int INPUT_CALLBACK_BINDER_CODE = 1; // 0x1 |
Tor Norbye | 5e9618a | 2019-01-04 21:33:09 -0800 | [diff] [blame] | 670 | field public static final String INPUT_CALLBACK_BINDER_KEY = "callback_binder"; |
Vitalii Tomkiv | 2bd0692 | 2016-07-26 11:07:48 -0700 | [diff] [blame] | 671 | } |
| 672 | |
Keun young Park | 83a3452 | 2019-03-21 08:46:04 -0700 | [diff] [blame] | 673 | public static final class CarInputHandlingService.InputFilter implements android.os.Parcelable { |
Vitalii Tomkiv | 2bd0692 | 2016-07-26 11:07:48 -0700 | [diff] [blame] | 674 | ctor public CarInputHandlingService.InputFilter(int, int); |
| 675 | method public int describeContents(); |
| 676 | method public void writeToParcel(android.os.Parcel, int); |
| 677 | field public static final android.os.Parcelable.Creator CREATOR; |
| 678 | field public final int mKeyCode; |
| 679 | field public final int mTargetDisplay; |
| 680 | } |
| 681 | |
| 682 | } |
| 683 | |
Hongwei Wang | 33692ea | 2019-03-18 12:57:59 -0700 | [diff] [blame] | 684 | package android.car.media { |
| 685 | |
| 686 | public final class CarAudioManager { |
| 687 | method @RequiresPermission(android.car.Car.PERMISSION_CAR_CONTROL_AUDIO_SETTINGS) public android.car.media.CarAudioPatchHandle createAudioPatch(String, int, int); |
| 688 | method @NonNull @RequiresPermission(android.car.Car.PERMISSION_CAR_CONTROL_AUDIO_SETTINGS) public String[] getExternalSources(); |
| 689 | method @RequiresPermission(android.car.Car.PERMISSION_CAR_CONTROL_AUDIO_VOLUME) public int getGroupMaxVolume(int); |
| 690 | method @RequiresPermission(android.car.Car.PERMISSION_CAR_CONTROL_AUDIO_VOLUME) public int getGroupMaxVolume(int, int); |
| 691 | method @RequiresPermission(android.car.Car.PERMISSION_CAR_CONTROL_AUDIO_VOLUME) public int getGroupMinVolume(int); |
| 692 | method @RequiresPermission(android.car.Car.PERMISSION_CAR_CONTROL_AUDIO_VOLUME) public int getGroupMinVolume(int, int); |
| 693 | method @RequiresPermission(android.car.Car.PERMISSION_CAR_CONTROL_AUDIO_VOLUME) public int getGroupVolume(int); |
| 694 | method @RequiresPermission(android.car.Car.PERMISSION_CAR_CONTROL_AUDIO_VOLUME) public int getGroupVolume(int, int); |
| 695 | method @NonNull @RequiresPermission(android.car.Car.PERMISSION_CAR_CONTROL_AUDIO_VOLUME) public int[] getUsagesForVolumeGroupId(int); |
| 696 | method @NonNull @RequiresPermission(android.car.Car.PERMISSION_CAR_CONTROL_AUDIO_VOLUME) public int[] getUsagesForVolumeGroupId(int, int); |
| 697 | method @RequiresPermission(android.car.Car.PERMISSION_CAR_CONTROL_AUDIO_VOLUME) public int getVolumeGroupCount(); |
| 698 | method @RequiresPermission(android.car.Car.PERMISSION_CAR_CONTROL_AUDIO_VOLUME) public int getVolumeGroupCount(int); |
| 699 | method @RequiresPermission(android.car.Car.PERMISSION_CAR_CONTROL_AUDIO_VOLUME) public int getVolumeGroupIdForUsage(int); |
| 700 | method @RequiresPermission(android.car.Car.PERMISSION_CAR_CONTROL_AUDIO_VOLUME) public int getVolumeGroupIdForUsage(int, int); |
| 701 | method @RequiresPermission(android.car.Car.PERMISSION_CAR_CONTROL_AUDIO_SETTINGS) public void releaseAudioPatch(android.car.media.CarAudioPatchHandle); |
| 702 | method @RequiresPermission(android.car.Car.PERMISSION_CAR_CONTROL_AUDIO_VOLUME) public void setBalanceTowardRight(float); |
| 703 | method @RequiresPermission(android.car.Car.PERMISSION_CAR_CONTROL_AUDIO_VOLUME) public void setFadeTowardFront(float); |
| 704 | method @RequiresPermission(android.car.Car.PERMISSION_CAR_CONTROL_AUDIO_VOLUME) public void setGroupVolume(int, int, int); |
| 705 | method @RequiresPermission(android.car.Car.PERMISSION_CAR_CONTROL_AUDIO_VOLUME) public void setGroupVolume(int, int, int, int); |
| 706 | field public static final int PRIMARY_AUDIO_ZONE = 0; // 0x0 |
| 707 | } |
| 708 | |
| 709 | public final class CarAudioPatchHandle implements android.os.Parcelable { |
| 710 | ctor public CarAudioPatchHandle(android.media.AudioPatch); |
| 711 | method public int describeContents(); |
| 712 | method public void writeToParcel(android.os.Parcel, int); |
| 713 | field public static final android.os.Parcelable.Creator<android.car.media.CarAudioPatchHandle> CREATOR; |
| 714 | } |
| 715 | |
| 716 | } |
| 717 | |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 718 | package android.car.navigation { |
| 719 | |
| 720 | public class CarNavigationInstrumentCluster implements android.os.Parcelable { |
| 721 | ctor public CarNavigationInstrumentCluster(android.car.navigation.CarNavigationInstrumentCluster); |
| 722 | method public static android.car.navigation.CarNavigationInstrumentCluster createCluster(int); |
| 723 | method public static android.car.navigation.CarNavigationInstrumentCluster createCustomImageCluster(int, int, int, int); |
| 724 | method public int describeContents(); |
| 725 | method public int getImageColorDepthBits(); |
| 726 | method public int getImageHeight(); |
| 727 | method public int getImageWidth(); |
Keun-young Park | 3388e78 | 2016-10-05 16:28:32 -0700 | [diff] [blame] | 728 | method public int getMinIntervalMillis(); |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 729 | method public int getType(); |
| 730 | method public boolean supportsCustomImages(); |
| 731 | method public void writeToParcel(android.os.Parcel, int); |
Keun-young Park | 3388e78 | 2016-10-05 16:28:32 -0700 | [diff] [blame] | 732 | field public static final int CLUSTER_TYPE_CUSTOM_IMAGES_SUPPORTED = 1; // 0x1 |
| 733 | field public static final int CLUSTER_TYPE_IMAGE_CODES_ONLY = 2; // 0x2 |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 734 | field public static final android.os.Parcelable.Creator<android.car.navigation.CarNavigationInstrumentCluster> CREATOR; |
| 735 | } |
| 736 | |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 737 | } |
| 738 | |
Pavel Maltsev | 079873b | 2019-02-25 12:15:09 -0800 | [diff] [blame] | 739 | package android.car.projection { |
| 740 | |
Pavel Maltsev | 48a3194 | 2019-03-03 22:08:28 -0800 | [diff] [blame] | 741 | public class ProjectionOptions { |
| 742 | ctor public ProjectionOptions(android.os.Bundle); |
| 743 | method @Nullable public android.app.ActivityOptions getActivityOptions(); |
| 744 | method @Nullable public android.content.ComponentName getConsentActivity(); |
| 745 | method public int getUiMode(); |
| 746 | method @NonNull public android.os.Bundle toBundle(); |
| 747 | field public static final int UI_MODE_BLENDED = 1; // 0x1 |
| 748 | field public static final int UI_MODE_FULL_SCREEN = 0; // 0x0 |
| 749 | } |
| 750 | |
Pavel Maltsev | 079873b | 2019-02-25 12:15:09 -0800 | [diff] [blame] | 751 | public final class ProjectionStatus implements android.os.Parcelable { |
| 752 | method @NonNull public static android.car.projection.ProjectionStatus.Builder builder(String, int); |
| 753 | method public int describeContents(); |
| 754 | method @NonNull public java.util.List<android.car.projection.ProjectionStatus.MobileDevice> getConnectedMobileDevices(); |
| 755 | method @NonNull public android.os.Bundle getExtras(); |
| 756 | method @NonNull public String getPackageName(); |
| 757 | method public int getState(); |
| 758 | method public int getTransport(); |
| 759 | method public boolean isActive(); |
| 760 | method public void writeToParcel(android.os.Parcel, int); |
| 761 | field public static final android.os.Parcelable.Creator<android.car.projection.ProjectionStatus> CREATOR; |
| 762 | field public static final int PROJECTION_STATE_ACTIVE_BACKGROUND = 3; // 0x3 |
| 763 | field public static final int PROJECTION_STATE_ACTIVE_FOREGROUND = 2; // 0x2 |
| 764 | field public static final int PROJECTION_STATE_INACTIVE = 0; // 0x0 |
| 765 | field public static final int PROJECTION_STATE_READY_TO_PROJECT = 1; // 0x1 |
| 766 | field public static final int PROJECTION_TRANSPORT_NONE = 0; // 0x0 |
| 767 | field public static final int PROJECTION_TRANSPORT_USB = 1; // 0x1 |
| 768 | field public static final int PROJECTION_TRANSPORT_WIFI = 2; // 0x2 |
| 769 | } |
| 770 | |
| 771 | public static final class ProjectionStatus.Builder { |
| 772 | method @NonNull public android.car.projection.ProjectionStatus.Builder addMobileDevice(android.car.projection.ProjectionStatus.MobileDevice); |
| 773 | method public android.car.projection.ProjectionStatus build(); |
| 774 | method @NonNull public android.car.projection.ProjectionStatus.Builder setExtras(android.os.Bundle); |
| 775 | method @NonNull public android.car.projection.ProjectionStatus.Builder setProjectionTransport(int); |
| 776 | } |
| 777 | |
| 778 | public static final class ProjectionStatus.MobileDevice implements android.os.Parcelable { |
| 779 | method @NonNull public static android.car.projection.ProjectionStatus.MobileDevice.Builder builder(int, String); |
| 780 | method public int describeContents(); |
| 781 | method @NonNull public java.util.List<java.lang.Integer> getAvailableTransports(); |
| 782 | method @NonNull public android.os.Bundle getExtras(); |
| 783 | method public int getId(); |
| 784 | method @NonNull public String getName(); |
| 785 | method public boolean isProjecting(); |
| 786 | method public void writeToParcel(android.os.Parcel, int); |
| 787 | field public static final android.os.Parcelable.Creator<android.car.projection.ProjectionStatus.MobileDevice> CREATOR; |
| 788 | } |
| 789 | |
| 790 | public static final class ProjectionStatus.MobileDevice.Builder { |
| 791 | method @NonNull public android.car.projection.ProjectionStatus.MobileDevice.Builder addTransport(int); |
| 792 | method @NonNull public android.car.projection.ProjectionStatus.MobileDevice build(); |
| 793 | method @NonNull public android.car.projection.ProjectionStatus.MobileDevice.Builder setExtras(android.os.Bundle); |
| 794 | method @NonNull public android.car.projection.ProjectionStatus.MobileDevice.Builder setProjecting(boolean); |
| 795 | } |
| 796 | |
| 797 | } |
| 798 | |
Enrico Granata | 9a916d7 | 2017-09-19 14:33:08 -0700 | [diff] [blame] | 799 | package android.car.storagemonitoring { |
| 800 | |
| 801 | public final class CarStorageMonitoringManager { |
Justin Paupore | ccc75a3 | 2019-02-12 18:20:48 -0800 | [diff] [blame] | 802 | method @RequiresPermission(android.car.Car.PERMISSION_STORAGE_MONITORING) public java.util.List<android.car.storagemonitoring.IoStatsEntry> getAggregateIoStats(); |
| 803 | method @RequiresPermission(android.car.Car.PERMISSION_STORAGE_MONITORING) public java.util.List<android.car.storagemonitoring.IoStatsEntry> getBootIoStats(); |
| 804 | method @RequiresPermission(android.car.Car.PERMISSION_STORAGE_MONITORING) public java.util.List<android.car.storagemonitoring.IoStats> getIoStatsDeltas(); |
| 805 | method @RequiresPermission(android.car.Car.PERMISSION_STORAGE_MONITORING) public int getPreEolIndicatorStatus(); |
| 806 | method @RequiresPermission(android.car.Car.PERMISSION_STORAGE_MONITORING) public long getShutdownDiskWriteAmount(); |
| 807 | method @RequiresPermission(android.car.Car.PERMISSION_STORAGE_MONITORING) public android.car.storagemonitoring.WearEstimate getWearEstimate(); |
| 808 | method @RequiresPermission(android.car.Car.PERMISSION_STORAGE_MONITORING) public java.util.List<android.car.storagemonitoring.WearEstimateChange> getWearEstimateHistory(); |
| 809 | method @RequiresPermission(android.car.Car.PERMISSION_STORAGE_MONITORING) public void registerListener(android.car.storagemonitoring.CarStorageMonitoringManager.IoStatsListener); |
| 810 | method @RequiresPermission(android.car.Car.PERMISSION_STORAGE_MONITORING) public void unregisterListener(android.car.storagemonitoring.CarStorageMonitoringManager.IoStatsListener); |
Tor Norbye | 5e9618a | 2019-01-04 21:33:09 -0800 | [diff] [blame] | 811 | field public static final String INTENT_EXCESSIVE_IO = "android.car.storagemonitoring.EXCESSIVE_IO"; |
Enrico Granata | 9a916d7 | 2017-09-19 14:33:08 -0700 | [diff] [blame] | 812 | field public static final int PRE_EOL_INFO_NORMAL = 1; // 0x1 |
| 813 | field public static final int PRE_EOL_INFO_UNKNOWN = 0; // 0x0 |
| 814 | field public static final int PRE_EOL_INFO_URGENT = 3; // 0x3 |
| 815 | field public static final int PRE_EOL_INFO_WARNING = 2; // 0x2 |
Enrico Granata | 1690a62 | 2018-01-22 17:34:46 -0800 | [diff] [blame] | 816 | field public static final long SHUTDOWN_COST_INFO_MISSING = -1L; // 0xffffffffffffffffL |
Enrico Granata | 9a916d7 | 2017-09-19 14:33:08 -0700 | [diff] [blame] | 817 | } |
| 818 | |
Tor Norbye | 5e9618a | 2019-01-04 21:33:09 -0800 | [diff] [blame] | 819 | public static interface CarStorageMonitoringManager.IoStatsListener { |
| 820 | method public void onSnapshot(android.car.storagemonitoring.IoStats); |
Enrico Granata | dbda56f | 2017-12-18 11:53:22 -0800 | [diff] [blame] | 821 | } |
| 822 | |
| 823 | public class IoStats implements android.os.Parcelable { |
| 824 | ctor public IoStats(java.util.List<android.car.storagemonitoring.IoStatsEntry>, long); |
| 825 | ctor public IoStats(android.os.Parcel); |
| 826 | ctor public IoStats(org.json.JSONObject) throws org.json.JSONException; |
| 827 | method public int describeContents(); |
| 828 | method public android.car.storagemonitoring.IoStatsEntry.Metrics getBackgroundTotals(); |
| 829 | method public android.car.storagemonitoring.IoStatsEntry.Metrics getForegroundTotals(); |
| 830 | method public java.util.List<android.car.storagemonitoring.IoStatsEntry> getStats(); |
| 831 | method public long getTimestamp(); |
| 832 | method public android.car.storagemonitoring.IoStatsEntry.Metrics getTotals(); |
| 833 | method public android.car.storagemonitoring.IoStatsEntry getUserIdStats(int); |
| 834 | method public void writeToJson(android.util.JsonWriter) throws java.io.IOException; |
| 835 | method public void writeToParcel(android.os.Parcel, int); |
| 836 | field public static final android.os.Parcelable.Creator<android.car.storagemonitoring.IoStats> CREATOR; |
| 837 | } |
| 838 | |
| 839 | public final class IoStatsEntry implements android.os.Parcelable { |
| 840 | ctor public IoStatsEntry(int, long, android.car.storagemonitoring.IoStatsEntry.Metrics, android.car.storagemonitoring.IoStatsEntry.Metrics); |
| 841 | ctor public IoStatsEntry(android.os.Parcel); |
| 842 | ctor public IoStatsEntry(android.car.storagemonitoring.UidIoRecord, long); |
| 843 | ctor public IoStatsEntry(org.json.JSONObject) throws org.json.JSONException; |
| 844 | method public int describeContents(); |
| 845 | method public void writeToJson(android.util.JsonWriter) throws java.io.IOException; |
| 846 | method public void writeToParcel(android.os.Parcel, int); |
| 847 | field public static final android.os.Parcelable.Creator<android.car.storagemonitoring.IoStatsEntry> CREATOR; |
| 848 | field public final android.car.storagemonitoring.IoStatsEntry.Metrics background; |
| 849 | field public final android.car.storagemonitoring.IoStatsEntry.Metrics foreground; |
| 850 | field public final long runtimeMillis; |
| 851 | field public final int uid; |
| 852 | } |
| 853 | |
| 854 | public static final class IoStatsEntry.Metrics implements android.os.Parcelable { |
| 855 | ctor public IoStatsEntry.Metrics(long, long, long, long, long); |
| 856 | ctor public IoStatsEntry.Metrics(android.os.Parcel); |
| 857 | ctor public IoStatsEntry.Metrics(org.json.JSONObject) throws org.json.JSONException; |
| 858 | method public int describeContents(); |
| 859 | method public void writeToJson(android.util.JsonWriter) throws java.io.IOException; |
| 860 | method public void writeToParcel(android.os.Parcel, int); |
| 861 | field public static final android.os.Parcelable.Creator<android.car.storagemonitoring.IoStatsEntry.Metrics> CREATOR; |
| 862 | field public final long bytesRead; |
| 863 | field public final long bytesReadFromStorage; |
| 864 | field public final long bytesWritten; |
| 865 | field public final long bytesWrittenToStorage; |
| 866 | field public final long fsyncCalls; |
Enrico Granata | 7dce379 | 2017-11-09 14:13:28 -0800 | [diff] [blame] | 867 | } |
| 868 | |
Enrico Granata | 1690a62 | 2018-01-22 17:34:46 -0800 | [diff] [blame] | 869 | public class LifetimeWriteInfo implements android.os.Parcelable { |
Tor Norbye | 5e9618a | 2019-01-04 21:33:09 -0800 | [diff] [blame] | 870 | ctor public LifetimeWriteInfo(String, String, long); |
Enrico Granata | 1690a62 | 2018-01-22 17:34:46 -0800 | [diff] [blame] | 871 | ctor public LifetimeWriteInfo(android.os.Parcel); |
| 872 | ctor public LifetimeWriteInfo(org.json.JSONObject) throws org.json.JSONException; |
| 873 | method public int describeContents(); |
| 874 | method public void writeToJson(android.util.JsonWriter) throws java.io.IOException; |
| 875 | method public void writeToParcel(android.os.Parcel, int); |
| 876 | field public static final android.os.Parcelable.Creator<android.car.storagemonitoring.IoStats> CREATOR; |
Tor Norbye | 5e9618a | 2019-01-04 21:33:09 -0800 | [diff] [blame] | 877 | field public final String fstype; |
| 878 | field public final String partition; |
Enrico Granata | 1690a62 | 2018-01-22 17:34:46 -0800 | [diff] [blame] | 879 | field public final long writtenBytes; |
| 880 | } |
| 881 | |
Enrico Granata | 7e0150d | 2017-11-06 17:20:17 -0800 | [diff] [blame] | 882 | public final class UidIoRecord { |
| 883 | 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] | 884 | field public final long background_fsync; |
| 885 | field public final long background_rchar; |
| 886 | field public final long background_read_bytes; |
| 887 | field public final long background_wchar; |
| 888 | field public final long background_write_bytes; |
| 889 | field public final long foreground_fsync; |
| 890 | field public final long foreground_rchar; |
| 891 | field public final long foreground_read_bytes; |
| 892 | field public final long foreground_wchar; |
| 893 | field public final long foreground_write_bytes; |
| 894 | field public final int uid; |
| 895 | } |
| 896 | |
Enrico Granata | 671e68d | 2017-09-20 10:16:22 -0700 | [diff] [blame] | 897 | public class WearEstimate implements android.os.Parcelable { |
| 898 | ctor public WearEstimate(int, int); |
| 899 | ctor public WearEstimate(android.os.Parcel); |
| 900 | ctor public WearEstimate(android.util.JsonReader) throws java.io.IOException; |
| 901 | method public int describeContents(); |
| 902 | method public void writeToJson(android.util.JsonWriter) throws java.io.IOException; |
| 903 | method public void writeToParcel(android.os.Parcel, int); |
| 904 | field public static final android.os.Parcelable.Creator<android.car.storagemonitoring.WearEstimate> CREATOR; |
| 905 | field public static final int UNKNOWN = -1; // 0xffffffff |
Tor Norbye | 5e9618a | 2019-01-04 21:33:09 -0800 | [diff] [blame] | 906 | field @IntRange(from=0xffffffff, to=100) public final int typeA; |
| 907 | field @IntRange(from=0xffffffff, to=100) public final int typeB; |
Enrico Granata | 671e68d | 2017-09-20 10:16:22 -0700 | [diff] [blame] | 908 | } |
| 909 | |
| 910 | public class WearEstimateChange implements android.os.Parcelable { |
Enrico Granata | 8621775 | 2017-10-31 13:42:55 -0700 | [diff] [blame] | 911 | 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] | 912 | ctor public WearEstimateChange(android.os.Parcel); |
| 913 | method public int describeContents(); |
| 914 | method public void writeToParcel(android.os.Parcel, int); |
| 915 | field public static final android.os.Parcelable.Creator<android.car.storagemonitoring.WearEstimateChange> CREATOR; |
Tor Norbye | 5e9618a | 2019-01-04 21:33:09 -0800 | [diff] [blame] | 916 | field @NonNull public final java.time.Instant dateAtChange; |
Enrico Granata | 671e68d | 2017-09-20 10:16:22 -0700 | [diff] [blame] | 917 | field public final boolean isAcceptableDegradation; |
Tor Norbye | 5e9618a | 2019-01-04 21:33:09 -0800 | [diff] [blame] | 918 | field @NonNull public final android.car.storagemonitoring.WearEstimate newEstimate; |
| 919 | field @NonNull public final android.car.storagemonitoring.WearEstimate oldEstimate; |
Enrico Granata | 671e68d | 2017-09-20 10:16:22 -0700 | [diff] [blame] | 920 | field public final long uptimeAtChange; |
| 921 | } |
| 922 | |
Enrico Granata | 9a916d7 | 2017-09-19 14:33:08 -0700 | [diff] [blame] | 923 | } |
| 924 | |
Vitalii Tomkiv | 280b572 | 2016-03-17 16:17:21 -0700 | [diff] [blame] | 925 | package android.car.test { |
| 926 | |
| 927 | public class CarTestManagerBinderWrapper { |
| 928 | ctor public CarTestManagerBinderWrapper(android.os.IBinder); |
| 929 | method public void onCarDisconnected(); |
| 930 | field public final android.os.IBinder binder; |
| 931 | } |
| 932 | |
| 933 | } |
| 934 | |
Ram Periathiruvadi | 18789a8 | 2019-01-08 14:46:51 -0800 | [diff] [blame] | 935 | package android.car.trust { |
| 936 | |
| 937 | public final class CarTrustAgentEnrollmentManager { |
Justin Paupore | ccc75a3 | 2019-02-12 18:20:48 -0800 | [diff] [blame] | 938 | method @RequiresPermission(android.car.Car.PERMISSION_CAR_ENROLL_TRUST) public void enrollmentHandshakeAccepted(); |
Ram Periathiruvadi | a30d502 | 2019-03-14 13:16:03 -0700 | [diff] [blame] | 939 | method @RequiresPermission(android.car.Car.PERMISSION_CAR_ENROLL_TRUST) @NonNull public java.util.List<java.lang.Long> getEnrollmentHandlesForUser(int); |
Justin Paupore | ccc75a3 | 2019-02-12 18:20:48 -0800 | [diff] [blame] | 940 | method @RequiresPermission(android.car.Car.PERMISSION_CAR_ENROLL_TRUST) public void initiateEnrollmentHandshake(android.bluetooth.BluetoothDevice); |
Ram Periathiruvadi | a30d502 | 2019-03-14 13:16:03 -0700 | [diff] [blame] | 941 | method @RequiresPermission(android.car.Car.PERMISSION_CAR_ENROLL_TRUST) public boolean isEscrowTokenActive(long, int); |
Wenting Zhai | 93eec73 | 2019-03-21 14:01:51 -0700 | [diff] [blame] | 942 | method @RequiresPermission(android.car.Car.PERMISSION_CAR_ENROLL_TRUST) public void removeEscrowToken(long, int); |
Justin Paupore | ccc75a3 | 2019-02-12 18:20:48 -0800 | [diff] [blame] | 943 | method @RequiresPermission(android.car.Car.PERMISSION_CAR_ENROLL_TRUST) public void setBleCallback(@Nullable android.car.trust.CarTrustAgentEnrollmentManager.CarTrustAgentBleCallback); |
| 944 | method @RequiresPermission(android.car.Car.PERMISSION_CAR_ENROLL_TRUST) public void setEnrollmentCallback(@Nullable android.car.trust.CarTrustAgentEnrollmentManager.CarTrustAgentEnrollmentCallback); |
| 945 | method @RequiresPermission(android.car.Car.PERMISSION_CAR_ENROLL_TRUST) public void startEnrollmentAdvertising(); |
| 946 | method @RequiresPermission(android.car.Car.PERMISSION_CAR_ENROLL_TRUST) public void stopEnrollmentAdvertising(); |
| 947 | method @RequiresPermission(android.car.Car.PERMISSION_CAR_ENROLL_TRUST) public void terminateEnrollmentHandshake(); |
Ram Periathiruvadi | 18789a8 | 2019-01-08 14:46:51 -0800 | [diff] [blame] | 948 | } |
| 949 | |
Tor Norbye | 5e9618a | 2019-01-04 21:33:09 -0800 | [diff] [blame] | 950 | public static interface CarTrustAgentEnrollmentManager.CarTrustAgentBleCallback { |
| 951 | method public void onBleEnrollmentDeviceConnected(android.bluetooth.BluetoothDevice); |
| 952 | method public void onBleEnrollmentDeviceDisconnected(android.bluetooth.BluetoothDevice); |
| 953 | method public void onEnrollmentAdvertisingFailed(int); |
| 954 | method public void onEnrollmentAdvertisingStarted(); |
Ram Periathiruvadi | 18789a8 | 2019-01-08 14:46:51 -0800 | [diff] [blame] | 955 | } |
| 956 | |
Tor Norbye | 5e9618a | 2019-01-04 21:33:09 -0800 | [diff] [blame] | 957 | public static interface CarTrustAgentEnrollmentManager.CarTrustAgentEnrollmentCallback { |
| 958 | method public void onAuthStringAvailable(android.bluetooth.BluetoothDevice, String); |
| 959 | method public void onEnrollmentHandshakeFailure(android.bluetooth.BluetoothDevice, int); |
| 960 | method public void onEscrowTokenActiveStateChanged(long, boolean); |
| 961 | method public void onEscrowTokenAdded(long); |
Wenting Zhai | 93eec73 | 2019-03-21 14:01:51 -0700 | [diff] [blame] | 962 | method public void onEscrowTokenRemoved(long); |
Ram Periathiruvadi | 18789a8 | 2019-01-08 14:46:51 -0800 | [diff] [blame] | 963 | } |
| 964 | |
| 965 | } |
| 966 | |
Asaf Rosenfeld | 39e4f03 | 2017-09-16 11:33:50 -0700 | [diff] [blame] | 967 | package android.car.vms { |
| 968 | |
Asaf Rosenfeld | 908811e | 2018-01-22 09:13:47 -0800 | [diff] [blame] | 969 | public final class VmsAvailableLayers implements android.os.Parcelable { |
| 970 | ctor public VmsAvailableLayers(java.util.Set<android.car.vms.VmsAssociatedLayer>, int); |
| 971 | method public int describeContents(); |
| 972 | method public java.util.Set<android.car.vms.VmsAssociatedLayer> getAssociatedLayers(); |
| 973 | method public int getSequence(); |
| 974 | method public void writeToParcel(android.os.Parcel, int); |
| 975 | field public static final android.os.Parcelable.Creator<android.car.vms.VmsAvailableLayers> CREATOR; |
| 976 | } |
| 977 | |
Asaf Rosenfeld | 39e4f03 | 2017-09-16 11:33:50 -0700 | [diff] [blame] | 978 | public final class VmsLayer implements android.os.Parcelable { |
| 979 | ctor public VmsLayer(int, int, int); |
| 980 | method public int describeContents(); |
| 981 | method public int getSubtype(); |
| 982 | method public int getType(); |
| 983 | method public int getVersion(); |
| 984 | method public void writeToParcel(android.os.Parcel, int); |
| 985 | field public static final android.os.Parcelable.Creator<android.car.vms.VmsLayer> CREATOR; |
| 986 | } |
| 987 | |
| 988 | public final class VmsLayerDependency implements android.os.Parcelable { |
| 989 | ctor public VmsLayerDependency(android.car.vms.VmsLayer, java.util.Set<android.car.vms.VmsLayer>); |
| 990 | ctor public VmsLayerDependency(android.car.vms.VmsLayer); |
| 991 | method public int describeContents(); |
| 992 | method public java.util.Set<android.car.vms.VmsLayer> getDependencies(); |
| 993 | method public android.car.vms.VmsLayer getLayer(); |
| 994 | method public void writeToParcel(android.os.Parcel, int); |
| 995 | field public static final android.os.Parcelable.Creator<android.car.vms.VmsLayerDependency> CREATOR; |
| 996 | } |
| 997 | |
| 998 | public final class VmsLayersOffering implements android.os.Parcelable { |
| 999 | ctor public VmsLayersOffering(java.util.Set<android.car.vms.VmsLayerDependency>, int); |
| 1000 | method public int describeContents(); |
| 1001 | method public java.util.Set<android.car.vms.VmsLayerDependency> getDependencies(); |
| 1002 | method public int getPublisherId(); |
| 1003 | method public void writeToParcel(android.os.Parcel, int); |
| 1004 | field public static final android.os.Parcelable.Creator<android.car.vms.VmsLayersOffering> CREATOR; |
| 1005 | } |
| 1006 | |
| 1007 | public final class VmsOperationRecorder { |
| 1008 | ctor public VmsOperationRecorder(android.car.vms.VmsOperationRecorder.Writer); |
| 1009 | method public void addHalSubscription(int, android.car.vms.VmsLayer); |
| 1010 | method public void addPromiscuousSubscription(int); |
| 1011 | method public void addSubscription(int, android.car.vms.VmsLayer); |
| 1012 | method public static android.car.vms.VmsOperationRecorder get(); |
| 1013 | method public void getPublisherId(int); |
| 1014 | method public void removeHalSubscription(int, android.car.vms.VmsLayer); |
| 1015 | method public void removePromiscuousSubscription(int); |
| 1016 | method public void removeSubscription(int, android.car.vms.VmsLayer); |
| 1017 | method public void setHalPublisherLayersOffering(android.car.vms.VmsLayersOffering); |
| 1018 | method public void setLayersOffering(android.car.vms.VmsLayersOffering); |
| 1019 | method public void setPublisherLayersOffering(android.car.vms.VmsLayersOffering); |
| 1020 | method public void startMonitoring(); |
| 1021 | method public void stopMonitoring(); |
| 1022 | method public void subscribe(android.car.vms.VmsLayer); |
| 1023 | method public void subscribe(android.car.vms.VmsLayer, int); |
| 1024 | method public void unsubscribe(android.car.vms.VmsLayer); |
| 1025 | method public void unsubscribe(android.car.vms.VmsLayer, int); |
| 1026 | } |
| 1027 | |
Asaf Rosenfeld | 39e4f03 | 2017-09-16 11:33:50 -0700 | [diff] [blame] | 1028 | public abstract class VmsPublisherClientService extends android.app.Service { |
| 1029 | ctor public VmsPublisherClientService(); |
| 1030 | method public final int getPublisherId(byte[]); |
Tor Norbye | 5e9618a | 2019-01-04 21:33:09 -0800 | [diff] [blame] | 1031 | method @Nullable public final android.car.vms.VmsSubscriptionState getSubscriptions(); |
Asaf Rosenfeld | c2faf15 | 2018-01-31 13:59:06 -0800 | [diff] [blame] | 1032 | method public android.os.IBinder onBind(android.content.Intent); |
Asaf Rosenfeld | 39e4f03 | 2017-09-16 11:33:50 -0700 | [diff] [blame] | 1033 | method protected abstract void onVmsPublisherServiceReady(); |
| 1034 | method public abstract void onVmsSubscriptionChange(android.car.vms.VmsSubscriptionState); |
| 1035 | method public final void publish(android.car.vms.VmsLayer, int, byte[]); |
| 1036 | method public final void setLayersOffering(android.car.vms.VmsLayersOffering); |
| 1037 | } |
| 1038 | |
| 1039 | public final class VmsSubscriberManager { |
Justin Paupore | ccc75a3 | 2019-02-12 18:20:48 -0800 | [diff] [blame] | 1040 | method public void clearVmsSubscriberClientCallback(); |
| 1041 | method public android.car.vms.VmsAvailableLayers getAvailableLayers(); |
| 1042 | method public byte[] getPublisherInfo(int); |
| 1043 | method public void setVmsSubscriberClientCallback(@NonNull java.util.concurrent.Executor, @NonNull android.car.vms.VmsSubscriberManager.VmsSubscriberClientCallback); |
| 1044 | method public void startMonitoring(); |
Asaf Rosenfeld | 39e4f03 | 2017-09-16 11:33:50 -0700 | [diff] [blame] | 1045 | method public void stopMonitoring(); |
Justin Paupore | ccc75a3 | 2019-02-12 18:20:48 -0800 | [diff] [blame] | 1046 | method public void subscribe(android.car.vms.VmsLayer); |
| 1047 | method public void subscribe(android.car.vms.VmsLayer, int); |
Asaf Rosenfeld | 39e4f03 | 2017-09-16 11:33:50 -0700 | [diff] [blame] | 1048 | method public void unsubscribe(android.car.vms.VmsLayer); |
| 1049 | method public void unsubscribe(android.car.vms.VmsLayer, int); |
| 1050 | } |
| 1051 | |
Tor Norbye | 5e9618a | 2019-01-04 21:33:09 -0800 | [diff] [blame] | 1052 | public static interface VmsSubscriberManager.VmsSubscriberClientCallback { |
| 1053 | method public void onLayersAvailabilityChanged(android.car.vms.VmsAvailableLayers); |
| 1054 | method public void onVmsMessageReceived(android.car.vms.VmsLayer, byte[]); |
Asaf Rosenfeld | 39e4f03 | 2017-09-16 11:33:50 -0700 | [diff] [blame] | 1055 | } |
| 1056 | |
Asaf Rosenfeld | 39e4f03 | 2017-09-16 11:33:50 -0700 | [diff] [blame] | 1057 | } |
| 1058 | |