SystemAudioActionFromAvrpublic final class SystemAudioActionFromAvr extends SystemAudioAction Feature action that handles System Audio initiated by AVR devices. |
Methods Summary |
---|
private void | handleSystemAudioActionFromAvr()
if (mTargetAudioStatus == tv().isSystemAudioActivated()) {
finishWithCallback(HdmiControlManager.RESULT_SUCCESS);
return;
}
if (tv().isProhibitMode()) {
sendCommand(HdmiCecMessageBuilder.buildFeatureAbortCommand(
getSourceAddress(), mAvrLogicalAddress,
Constants.MESSAGE_SET_SYSTEM_AUDIO_MODE, Constants.ABORT_REFUSED));
mTargetAudioStatus = false;
sendSystemAudioModeRequest();
return;
}
removeAction(SystemAudioAutoInitiationAction.class);
if (mTargetAudioStatus) {
setSystemAudioMode(true);
startAudioStatusAction();
} else {
setSystemAudioMode(false);
finishWithCallback(HdmiControlManager.RESULT_SUCCESS);
}
| boolean | start()
removeSystemAudioActionInProgress();
handleSystemAudioActionFromAvr();
return true;
|
|