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

RequestArcInitiationAction

public final class RequestArcInitiationAction extends RequestArcAction
Feature action that handles ARC action initiated by TV devices.

This action is created by TV's hot plug event of ARC port.

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

Constructor
For more details look at {@link RequestArcAction#RequestArcAction}.


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

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

        HdmiCecMessage command = HdmiCecMessageBuilder.buildRequestArcInitiation(
                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 Initiation>, start "Disabled"
                    // ARC transmission action.
                    disableArcTransmission();
                    finish();
                }
            }
        });
        return true;