Expand Minimize Picture-in-picture Power Device Status Voice Recognition Skip Back Skip Forward Minus Plus Play Search
Documentation
Sidebar

Class MultiplexBaseTransport

Hierarchy

java.lang.Object

Package
com.smartdevicelink.transport
All Known Subclasses
com.smartdevicelink.transport.MultiplexBluetoothTransport, com.smartdevicelink.transport.MultiplexTcpTransport, com.smartdevicelink.transport.MultiplexUsbTransport

Fields

STATE_NONE

public static final int STATE_NONE

STATE_LISTEN

public static final int STATE_LISTEN
Constant Value
1

STATE_CONNECTING

public static final int STATE_CONNECTING
Constant Value
2

STATE_CONNECTED

public static final int STATE_CONNECTED
Constant Value
3

STATE_ERROR

public static final int STATE_ERROR
Constant Value
4

LOG

public static final java.lang.String LOG
Constant Value
"log"

DEVICE_NAME

public static final java.lang.String DEVICE_NAME
Constant Value
"device_name"

DEVICE_ADDRESS

public static final java.lang.String DEVICE_ADDRESS
Constant Value
"device_address"

mState

protected int mState

handler

protected final android.os.Handler handler

transportType

protected final com.smartdevicelink.transport.enums.TransportType transportType

transportRecord

protected com.smartdevicelink.transport.utl.TransportRecord transportRecord

currentlyConnectedDevice

public static java.lang.String currentlyConnectedDevice

connectedDeviceName

protected java.lang.String connectedDeviceName

connectedDeviceAddress

public java.lang.String connectedDeviceAddress

Constructors

MultiplexBaseTransport( Handler handler, TransportType transportType )

protected MultiplexBaseTransport(Handler handler,TransportType transportType)

Parameters

handler
transportType

Methods

setState( int state )

protected synchronized void setState(int state)

Parameters

state

getAddress()

public java.lang.String getAddress()

getDeviceName()

public java.lang.String getDeviceName()

getTransportRecord()

Should only be called after a connection has been established

public com.smartdevicelink.transport.utl.TransportRecord getTransportRecord()

getState()

Return the current connection state.

public synchronized int getState()

isConnected()

public boolean isConnected()

stop()

public synchronized void stop()

stop( int state )

protected abstract void stop(int state)

Parameters

state

write( byte[] out, int offset, int count )

public abstract void write(byte[] out,int offset,int count)

Parameters

out
offset
count

Inherited Methods

From Class Methods
java.lang.Object getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize
View on GitHub.com
Previous Section Next Section