Merge "Prevent SecurityException during unit tests" into main
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user