DeviceState: Address AIDL API feedback
Flag: EXEMPT bugfix
Bug: 362601542
Test: atest VtsHalDeviceStateServiceTargetTest
Change-Id: I1104be0119f26fdb3be00ca3a5269a55ae671b81
diff --git a/devicestate/aidl/aidl_api/android.frameworks.devicestate/current/android/frameworks/devicestate/ErrorCode.aidl b/devicestate/aidl/aidl_api/android.frameworks.devicestate/current/android/frameworks/devicestate/ErrorCode.aidl
index 2a1cbb1..21df404 100644
--- a/devicestate/aidl/aidl_api/android.frameworks.devicestate/current/android/frameworks/devicestate/ErrorCode.aidl
+++ b/devicestate/aidl/aidl_api/android.frameworks.devicestate/current/android/frameworks/devicestate/ErrorCode.aidl
@@ -34,7 +34,7 @@
package android.frameworks.devicestate;
@Backing(type="int") @VintfStability
enum ErrorCode {
- OK = 0,
- BAD_INPUT = 1,
- ALREADY_EXISTS = 1,
+ OK,
+ BAD_INPUT,
+ ALREADY_EXISTS,
}
diff --git a/devicestate/aidl/android/frameworks/devicestate/ErrorCode.aidl b/devicestate/aidl/android/frameworks/devicestate/ErrorCode.aidl
index c410d35..1a91b9c 100644
--- a/devicestate/aidl/android/frameworks/devicestate/ErrorCode.aidl
+++ b/devicestate/aidl/android/frameworks/devicestate/ErrorCode.aidl
@@ -19,18 +19,18 @@
@VintfStability
@Backing(type="int")
enum ErrorCode {
- /**
+ /**
* Successful call
*/
- OK = 0,
+ OK,
/**
* Invalid argument
*/
- BAD_INPUT = 1,
+ BAD_INPUT,
/**
* Trying to register a second listener from the same process
*/
- ALREADY_EXISTS = 1,
+ ALREADY_EXISTS,
}
diff --git a/devicestate/aidl/android/frameworks/devicestate/IDeviceStateService.aidl b/devicestate/aidl/android/frameworks/devicestate/IDeviceStateService.aidl
index 9717af1..662c1e8 100644
--- a/devicestate/aidl/android/frameworks/devicestate/IDeviceStateService.aidl
+++ b/devicestate/aidl/android/frameworks/devicestate/IDeviceStateService.aidl
@@ -20,7 +20,7 @@
@VintfStability
interface IDeviceStateService {
- /**
+ /**
* Registers a listener to receive notifications from the device state manager.
* <p>Note that only one callback can be registered per-process.</p>
*