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

Commit 6cf15457 authored by Gopi Sakshihally Bhuthaiah's avatar Gopi Sakshihally Bhuthaiah
Browse files

Modified HidHostTest as per new hid rpc call

Introduced new RPC call to support run time HID and
HOGP service configuration. Modified the HidHostTest
accordingly

Bug: 368045103
Test: atest -v HidHostTest
Change-Id: I44002eea46e91e1c0fee9985ed5d7e9fc9ba6009
parent 54347749
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -44,8 +44,10 @@ import org.junit.Test;
import org.junit.runner.RunWith;

import pandora.HIDGrpc;
import pandora.HidProto.HidServiceType;
import pandora.HidProto.ProtocolModeEvent;
import pandora.HidProto.ReportEvent;
import pandora.HidProto.ServiceRequest;

import java.time.Duration;
import java.util.Iterator;
@@ -233,6 +235,10 @@ public class HidHostTest {
        mAdapter.getProfileProxy(
                mContext, mBluetoothProfileServiceListener, BluetoothProfile.HEADSET);
        mHidBlockingStub = mBumble.hidBlocking();
        mHidBlockingStub.registerService(
                ServiceRequest.newBuilder()
                        .setServiceType(HidServiceType.SERVICE_TYPE_HID)
                        .build());
        mFutureConnectionIntent = SettableFuture.create();

        mDevice = mBumble.getRemoteDevice();