Expose CarInstrumentClusterManager to system apps
Bug: 77550658
Test: m
Change-Id: I625965da7fb831a6111e41063cce8c38ef8b58cc
diff --git a/car-lib/api/system-current.txt b/car-lib/api/system-current.txt
index 4e615f3..4ed0364 100644
--- a/car-lib/api/system-current.txt
+++ b/car-lib/api/system-current.txt
@@ -11,6 +11,7 @@
field public static final java.lang.String PERMISSION_CAR_DIAGNOSTIC_READ_ALL = "android.car.permission.CAR_DIAGNOSTICS";
field public static final java.lang.String PERMISSION_CAR_DRIVING_STATE = "android.car.permission.CAR_DRIVING_STATE";
field public static final java.lang.String PERMISSION_CAR_ENGINE_DETAILED = "android.car.permission.CAR_ENGINE_DETAILED";
+ field public static final java.lang.String PERMISSION_CAR_INSTRUMENT_CLUSTER_CONTROL = "android.car.permission.CAR_INSTRUMENT_CLUSTER_CONTROL";
field public static final java.lang.String PERMISSION_CAR_POWER = "android.car.permission.CAR_POWER";
field public static final java.lang.String PERMISSION_CAR_PROJECTION = "android.car.permission.CAR_PROJECTION";
field public static final java.lang.String PERMISSION_CAR_TEST_SERVICE = "android.car.permission.CAR_TEST_SERVICE";
@@ -94,6 +95,22 @@
}
+package android.car.cluster {
+
+ public class CarInstrumentClusterManager {
+ method public void registerCallback(java.lang.String, android.car.cluster.CarInstrumentClusterManager.Callback) throws android.car.CarNotConnectedException;
+ method public void startActivity(android.content.Intent) throws android.car.CarNotConnectedException;
+ method public void unregisterCallback(android.car.cluster.CarInstrumentClusterManager.Callback) throws android.car.CarNotConnectedException;
+ field public static final java.lang.String CATEGORY_NAVIGATION = "android.car.cluster.NAVIGATION";
+ field public static final java.lang.String KEY_EXTRA_ACTIVITY_STATE = "android.car.cluster.ClusterActivityState";
+ }
+
+ public static abstract interface CarInstrumentClusterManager.Callback {
+ method public abstract void onClusterActivityStateChanged(java.lang.String, android.os.Bundle);
+ }
+
+}
+
package android.car.cluster.renderer {
public abstract class InstrumentClusterRenderer {