Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a45aa573 authored by Jeongik Cha's avatar Jeongik Cha
Browse files

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
Merged-In: Ia9423a7fe524ff225435344b527728ec2646adfc
parent 5c082c99
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -63,6 +63,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) {