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

Commit cf2a5f57 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 6f7379bb 924613dc
Loading
Loading
Loading
Loading
+14 −0
Original line number Diff line number Diff line
@@ -81,6 +81,20 @@ public class SystemAudioAutoInitiationActionTest {
            protected void writeStringSystemProperty(String key, String value) {
                // do nothing
            }

	    /**
             * 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(myLooper);