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

HdmiMhlControllerStub

public final class HdmiMhlControllerStub extends Object
A handler class for MHL control command. It converts user's command into MHL command and pass it to MHL HAL layer.

It can be created only by {@link HdmiMhlControllerStub#create}.

Fields Summary
private static final android.util.SparseArray
mLocalDevices
private static final android.hardware.hdmi.HdmiPortInfo[]
EMPTY_PORT_INFO
private static final int
INVALID_MHL_VERSION
private static final int
NO_SUPPORTED_FEATURES
private static final int
INVALID_DEVICE_ROLES
Constructors Summary
private HdmiMhlControllerStub(HdmiControlService service)


    // Private constructor. Use HdmiMhlControllerStub.create().
       
    
Methods Summary
HdmiMhlLocalDeviceStubaddLocalDevice(HdmiMhlLocalDeviceStub device)
Add a new {@link HdmiMhlLocalDeviceStub}.

return
old {@link HdmiMhlLocalDeviceStub} having same port id

        return null;
    
voidclearAllLocalDevices()

    
static com.android.server.hdmi.HdmiMhlControllerStubcreate(HdmiControlService service)

        return new HdmiMhlControllerStub(service);
    
voiddump(com.android.internal.util.IndentingPrintWriter pw)

    
android.util.SparseArraygetAllLocalDevices()

        return mLocalDevices;
    
intgetEcbusDeviceRoles(int portId)
Get the bit flags describing the roles which ECBUS device can play. Refer to the ECBUS_DEV_ROLES Register info MHL3.0 specification

        return INVALID_DEVICE_ROLES;
    
HdmiMhlLocalDeviceStubgetLocalDevice(int portId)
Return {@link HdmiMhlLocalDeviceStub} matched with the given port id.

return
null if has no matched port id

        return null;
    
HdmiMhlLocalDeviceStubgetLocalDeviceById(int deviceId)
Return {@link HdmiMhlLocalDeviceStub} matched with the given device id.

return
null if has no matched id

        return null;
    
intgetMhlVersion(int portId)
Get the MHL version supported by underlying hardware port of the given {@code portId}. MHL specification version 2.0 returns 0x20, 3.0 will return 0x30 respectively. The return value is stored in 'version'. Return INVALID_VERSION if MHL hardware layer is not ready.

        return INVALID_MHL_VERSION;
    
intgetPeerMhlVersion(int portId)
Get MHL version of a device which is connected to a port of the given {@code portId}. MHL specification version 2.0 returns 0x20, 3.0 will return 0x30 respectively. The return value is stored in 'version'.

        return INVALID_MHL_VERSION;
    
android.hardware.hdmi.HdmiPortInfo[]getPortInfos()

        return EMPTY_PORT_INFO;
    
intgetSupportedFeatures(int portId)
Get the bit flags describing the features supported by the system. Refer to feature support flag register info in MHL specification.

        return NO_SUPPORTED_FEATURES;
    
booleanisReady()

        return false;
    
HdmiMhlLocalDeviceStubremoveLocalDevice(int portId)
Remove a {@link HdmiMhlLocalDeviceStub} matched with the given port id.

return
removed {@link HdmiMhlLocalDeviceStub}. Return null if no matched port id.

        return null;
    
voidsendVendorCommand(int portId, int offset, int length, byte[] data)

    
voidsetOption(int flag, int value)