FileDocCategorySizeDatePackage
RequestArcTerminationAction.javaAPI DocAndroid 5.1 API1923Thu Mar 12 22:22:42 GMT 2015com.android.server.hdmi

RequestArcTerminationAction

public final class RequestArcTerminationAction extends RequestArcAction
Feature action to handle .

It's initiated by user's manual termination or ARC channel close from TV.

Fields Summary
private static final String
TAG
Constructors Summary
RequestArcTerminationAction(HdmiCecLocalDevice source, int avrAddress)

Constructor
see
RequestArcAction#RequestArcAction


            
        
        super(source, avrAddress);
    
Methods Summary
booleanstart()

        mState = STATE_WATING_FOR_REQUEST_ARC_REQUEST_RESPONSE;
        addTimer(mState, HdmiConfig.TIMEOUT_MS);

        HdmiCecMessage command =
                HdmiCecMessageBuilder.buildRequestArcTermination(getSourceAddress(), mAvrAddress);
        sendCommand(command, new HdmiControlService.SendMessageCallback() {
            @Override
            public void onSendCompleted(int error) {
                if (error != Constants.SEND_RESULT_SUCCESS) {
                    // If failed to send <Request ARC Termination>, start "Disabled" ARC
                    // transmission action.
                    disableArcTransmission();
                    finish();
                }
            }
        });
        return true;