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

Commit 1e56b69f authored by Winni Chang's avatar Winni Chang Committed by Android (Google) Code Review
Browse files

Merge "Prevent SecurityException during unit tests" into main

parents 596c5e35 f5f287f7
Loading
Loading
Loading
Loading
+14 −0
Original line number Diff line number Diff line
@@ -174,6 +174,20 @@ public class HdmiCecLocalDeviceTvTest {
                    protected boolean earcBlocksArcConnection() {
                        return mEarcBlocksArc;
                    }

                    /**
                     * Override displayOsd to prevent it from broadcasting an intent, which
                     * can trigger a SecurityException.
                    */
                    @Override
                    void displayOsd(int messageId) {
                        // do nothing
                    }

                    @Override
                    void displayOsd(int messageId, int extra) {
                        // do nothing
                    }
                };

        mHdmiControlService.setIoLooper(mMyLooper);