Add isPropertyAvailable() APIs to check the status of a Vehicle HAL property
This is a convenience helper, as one should be able to get the property value and
read its status directly
Bug: 74805437
Test: manual
Change-Id: Id4817ac11d9820b380e900646d63e20f5e8b3620
Merged-In: Id4817ac11d9820b380e900646d63e20f5e8b3620
diff --git a/car-lib/api/system-current.txt b/car-lib/api/system-current.txt
index 419613b..35a0cb2 100644
--- a/car-lib/api/system-current.txt
+++ b/car-lib/api/system-current.txt
@@ -613,6 +613,7 @@
method public float getFloatProperty(int, int) throws android.car.CarNotConnectedException;
method public int getIntProperty(int, int) throws android.car.CarNotConnectedException;
method public java.util.List<android.car.hardware.CarPropertyConfig> getPropertyList() throws android.car.CarNotConnectedException;
+ method public boolean isPropertyAvailable(int, int) throws android.car.CarNotConnectedException;
method public static boolean isZonedProperty(int);
method public synchronized void registerCallback(android.car.hardware.hvac.CarHvacManager.CarHvacEventCallback) throws android.car.CarNotConnectedException;
method public void setBooleanProperty(int, int, boolean) throws android.car.CarNotConnectedException;