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

Commit dff14f39 authored by Lei Ju's avatar Lei Ju
Browse files

Implement IContextHubCallback.getName() for context hub service

Bug: 315039707
Test: manual test
Change-Id: I800146b82098c0006ee8f6e0dbc99c0182638852
parent 1dfd11dd
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -424,6 +424,7 @@ public abstract class IContextHubWrapper {
            // 9a17008d-6bf1-445a-9011-6d21bd985b6c
            private static final byte[] UUID = {-102, 23, 0, -115, 107, -15, 68, 90,
                                                -112, 17, 109, 33, -67, -104, 91, 108};
            private static final String NAME = "ContextHubService";

            ContextHubAidlCallback(int contextHubId, ICallback callback) {
                mContextHubId = contextHubId;
@@ -466,10 +467,14 @@ public abstract class IContextHubWrapper {
                // TODO(271471342): Implement
            }

            public byte[] getUuid() throws RemoteException {
            public byte[] getUuid() {
                return UUID;
            }

            public String getName() {
                return NAME;
            }

            @Override
            public String getInterfaceHash() {
                return android.hardware.contexthub.IContextHubCallback.HASH;