diff options
| author | 2020-04-08 20:24:25 +0900 | |
|---|---|---|
| committer | 2020-04-08 20:24:25 +0900 | |
| commit | ab6f4c3e67360001bccba272cd128f666cea7515 (patch) | |
| tree | 8a6afb0ec85b2fa9a109a698357db7165be5a4a3 | |
| parent | 9fd000bfece7d78113f9bcf5707c32e3d69bb29a (diff) | |
Add getInterface(Version|Hash) in ILights stub for test
If it is frozen, interface has to implement getInterface(Version|Hash)
Bug: 153501202
Test: m FrameworksServicesTests
Change-Id: Ia9423a7fe524ff225435344b527728ec2646adfc
| -rw-r--r-- | services/tests/servicestests/src/com/android/server/lights/LightsServiceTest.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/services/tests/servicestests/src/com/android/server/lights/LightsServiceTest.java b/services/tests/servicestests/src/com/android/server/lights/LightsServiceTest.java index b0def605db79..21db5f8905da 100644 --- a/services/tests/servicestests/src/com/android/server/lights/LightsServiceTest.java +++ b/services/tests/servicestests/src/com/android/server/lights/LightsServiceTest.java @@ -58,6 +58,16 @@ public class LightsServiceTest { fakeHwLight(105, LightsManager.LIGHT_TYPE_MICROPHONE, 2) }; } + + @Override + public int getInterfaceVersion() { + return this.VERSION; + } + + @Override + public String getInterfaceHash() { + return this.HASH; + } }; private static HwLight fakeHwLight(int id, int type, int ordinal) { |