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