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
This commit is contained in:
Jeongik Cha
2020-04-08 20:24:25 +09:00
parent 9fd000bfec
commit ab6f4c3e67

View File

@@ -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) {