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

Commit b544650d 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

parents b3ebc0f6 e7af302c
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);