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

Commit f5722131 authored by Himanshu Rawat's avatar Himanshu Rawat Committed by Automerger Merge Worker
Browse files

Merge "Added 50ms delay after onSetReport() RPC call" into main am: e7af302c am: b544650d

parents dd01eb41 b544650d
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -662,6 +662,12 @@ public class HidHostTest {
                mHidBlockingStub
                        .withDeadlineAfter(PROTO_MODE_TIMEOUT.toMillis(), TimeUnit.MILLISECONDS)
                        .onSetReport(Empty.getDefaultInstance());

        // Todo: as a workaround added 50ms delay.
        // To be removed once root cause is identified for b/382180335
        final CompletableFuture<Integer> future = new CompletableFuture<>();
        future.completeOnTimeout(null, 50, TimeUnit.MILLISECONDS).join();

        // Keyboard report
        String kbReportData = "010203040506070809";
        mHidService.setReport(mDevice, BluetoothHidHost.REPORT_TYPE_INPUT, kbReportData);