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

Commit bdd1ce98 authored by Yan Han's avatar Yan Han Committed by Android (Google) Code Review
Browse files

Merge "Prevent SecurityException during AVB unit tests"

parents 898b926d 7a988c49
Loading
Loading
Loading
Loading
+14 −0
Original line number Diff line number Diff line
@@ -137,6 +137,20 @@ public abstract class BaseAbsoluteVolumeBehaviorTest {
                    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
                    }
                };

        mLooper = mTestLooper.getLooper();