Merge "Prevent SecurityException during unit tests" into main

This commit is contained in:
Winni Chang
2023-07-27 03:10:24 +00:00
committed by Android (Google) Code Review

View File

@@ -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);