SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of...

1209
Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol Hierarchy java.lang.Object Package com.smartdevicelink.protocol All Known Subclasses com.smartdevicelink.protocol.WiProProtocol Quick Jump Constructors AbstractProtocol( IProtocolListener protocolListener )

Transcript of SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of...

Page 1: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Android/Java DocumentationDocument current as of 05/13/2019 02:50 PM.

Class AbstractProtocol

Hierarchyjava.lang.Object

Package

com.smartdevicelink.protocol

All Known Subclasses

com.smartdevicelink.protocol.WiProProtocol

Quick Jump

Constructors

• AbstractProtocol( IProtocolListener protocolListener )

Page 2: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Methods

• SendMessage(ProtocolMessage msg) • getMtu()• getMtu(SessionType type) • handlePacketReceived(SdlPacket packet) • StartProtocolSession(SessionType sessionType) • StartProtocolService(SessionType sessionType,byte

sessionID,boolean isEncrypted) • EndProtocolService(SessionType serviceType,byte sessionID)• EndProtocolSession(SessionType sessionType,byte sessionID,int

hashID) • SetHeartbeatSendInterval(int heartbeatSendInterval_ms) • SetHeartbeatReceiveInterval(int heartbeatReceiveInterval_ms) • SendHeartBeat(byte sessionID) • SendHeartBeatACK(byte sessionID) • handleProtocolFrameReceived(SdlPacket

packet,WiProProtocol.MessageFrameAssembler assembler) • handlePacketToSend(SdlPacket header) • handleProtocolMessageReceived(ProtocolMessage message) • handleProtocolSessionEndedNACK(SessionType sessionType,byte

sessionID,String correlationID) • handleProtocolSessionEnded(SessionType sessionType,byte

sessionID,String correlationID) • handleProtocolSessionStarted(SessionType sessionType,byte

sessionID,byte version,String correlationID,int hashID,booleanisEncrypted)

• handleProtocolSessionNACKed(SessionType sessionType,bytesessionID,byte version,StringcorrelationID,java.util.List<java.lang.String> rejectedParams)

• handleProtocolError(String string,Exception ex) • handleProtocolHeartbeat(SessionType sessionType,byte sessionID)• handleProtocolHeartbeatACK(SessionType sessionType,byte

sessionID) • handleProtocolServiceDataACK(SessionType sessionType,int

dataSize,byte sessionID) • onResetIncomingHeartbeat(SessionType sessionType,byte

sessionID)

Constructors

Page 3: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

AbstractProtocol(IProtocolListener protocolListener)

Parameters

protocolListener

Methods

SendMessage( ProtocolMessagemsg )

public AbstractProtocol(IProtocolListener protocolListener)

public abstract void SendMessage(ProtocolMessage msg)

Page 4: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

msg

getMtu()

getMtu( SessionType type )

Parameters

type

public abstract int getMtu()

public abstract long getMtu(SessionType type)

Page 5: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

handlePacketReceived(SdlPacket packet )

Parameters

packet

StartProtocolSession(SessionType sessionType )

public abstract void handlePacketReceived(SdlPacket packet)

public abstract void StartProtocolSession(SessionType sessionType)

Page 6: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

sessionType

StartProtocolService(SessionType sessionType, bytesessionID, boolean isEncrypted )

Parameters

sessionType

sessionID

isEncrypted

public abstract void StartProtocolService(SessionType sessionType,byte sessionID,boolean isEncrypted)

Page 7: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

EndProtocolService( SessionTypeserviceType, byte sessionID )

Parameters

serviceType

sessionID

EndProtocolSession(SessionType sessionType, bytesessionID, int hashID )

public abstract void EndProtocolService(SessionType serviceType,byte sessionID)

public abstract void EndProtocolSession(SessionType sessionType,byte sessionID,int hashID)

Page 8: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

sessionType

sessionID

hashID

SetHeartbeatSendInterval( intheartbeatSendInterval_ms )

Parameters

heartbeatSendInterval_ms

public abstract void SetHeartbeatSendInterval(int heartbeatSendInterval_ms)

Page 9: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

SetHeartbeatReceiveInterval( intheartbeatReceiveInterval_ms )

Parameters

heartbeatReceiveInterval_ms

SendHeartBeat( byte sessionID )

Parameters

sessionID

public abstract void SetHeartbeatReceiveInterval(int heartbeatReceiveInterval_ms)

public abstract void SendHeartBeat(byte sessionID)

Page 10: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

SendHeartBeatACK( bytesessionID )

Parameters

sessionID

handleProtocolFrameReceived(SdlPacket packet,WiProProtocol.MessageFrameAssemblerassembler )

public abstract void SendHeartBeatACK(byte sessionID)

protected void handleProtocolFrameReceived(SdlPacket packet,WiProProtocol.MessageFrameAssembler assembler)

Page 11: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

packet

assembler

handlePacketToSend( SdlPacketheader )

SdlPacket should have included payload at this point.

Parameters

header

protected void handlePacketToSend(SdlPacket header)

Page 12: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

handleProtocolMessageReceived(ProtocolMessage message )

Parameters

message

handleProtocolSessionEndedNACK( SessionType sessionType, bytesessionID, String correlationID )

protected void handleProtocolMessageReceived(ProtocolMessage message)

protected void handleProtocolSessionEndedNACK(SessionType sessionType,byte sessionID,String correlationID)

Page 13: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

sessionType

sessionID

correlationID

handleProtocolSessionEnded(SessionType sessionType, bytesessionID, String correlationID )

Parameters

sessionType

protected void handleProtocolSessionEnded(SessionType sessionType,byte sessionID,String correlationID)

Page 14: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

sessionID

correlationID

handleProtocolSessionStarted(SessionType sessionType, bytesessionID, byte version, StringcorrelationID, int hashID,boolean isEncrypted )

Parameters

sessionType

sessionID

protected void handleProtocolSessionStarted(SessionType sessionType,byte sessionID,byte version,String correlationID,int hashID,boolean isEncrypted)

Page 15: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

version

correlationID

hashID

isEncrypted

handleProtocolSessionNACKed(SessionType sessionType, bytesessionID, byte version, StringcorrelationID,java.util.List<java.lang.String>rejectedParams )

protected void handleProtocolSessionNACKed(SessionType sessionType,byte sessionID,byte version,String correlationID,java.util.List<java.lang.String> rejectedParams)

Page 16: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

sessionType

sessionID

version

correlationID

rejectedParams

handleProtocolError( Stringstring, Exception ex )

protected void handleProtocolError(String string,Exception ex)

Page 17: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

string

ex

handleProtocolHeartbeat(SessionType sessionType, bytesessionID )

Parameters

sessionType

sessionID

protected void handleProtocolHeartbeat(SessionType sessionType,byte sessionID)

Page 18: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

handleProtocolHeartbeatACK(SessionType sessionType, bytesessionID )

Parameters

sessionType

sessionID

handleProtocolServiceDataACK(SessionType sessionType, intdataSize, byte sessionID )

protected void handleProtocolHeartbeatACK(SessionType sessionType,byte sessionID)

Page 19: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

sessionType

dataSize

sessionID

onResetIncomingHeartbeat(SessionType sessionType, bytesessionID )

protected void handleProtocolServiceDataACK(SessionType sessionType,int dataSize,byte sessionID)

protected void onResetIncomingHeartbeat(SessionType sessionType,byte sessionID)

Page 20: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

sessionType

sessionID

Inherited Methods

From Class Methods

Class AndroidTools

Hierarchyjava.lang.Object

Package

com.smartdevicelink.util

java.lang.Object

getClass, hashCode, equals, clone,

toString, notify, notifyAll, wait, wait, wait,

finalize

Page 21: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Quick Jump

Constructors

• AndroidTools()

Methods

• isServiceExported(Context context,ComponentName name) • getSdlEnabledApps(Context context,String myPackageName) • querySdlAppInfo(Context

context,java.util.Comparator<com.smartdevicelink.util.SdlAppInfo>comparator)

• sendExplicitBroadcast(Context context,Intentintent,java.util.List<android.content.pm.ResolveInfo> apps)

• isUSBCableConnected(Context context) • downloadImage(String urlStr)

Constructors

AndroidTools()

Methods

public AndroidTools()

Page 22: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

isServiceExported( Contextcontext, ComponentName name)

Check to see if a component is exported

Parameters

context

object used to retrieve the package manager

name

of the component in question

public static boolean isServiceExported(Context context,ComponentName name)

Page 23: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

getSdlEnabledApps( Contextcontext, String myPackageName)

Get all SDL enabled apps. If the package name is null, it will return all apps.

However, if the package name is included, the resulting hash map will not

include the app with that package name.

Parameters

context

a context object used to get an instance of the package manager

myPackageName

the package of the requesting app. This should only be included if theapp wants to exclude itself from the map

public static java.util.HashMap getSdlEnabledApps(Context context,String myPackageName)

Page 24: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

querySdlAppInfo( Contextcontext,java.util.Comparator<com.smartdevicelink.util.SdlAppInfo>comparator )

Finds all SDL apps via their SdlRouterService manifest entry. It will return the

metadata associated with that router service.

Parameters

context

a context instance to obtain the package manager

comparator

the Comparator to sort the resulting list. If null is supplied, they will bereturned as they are from the system

public static java.util.List querySdlAppInfo(Context context,java.util.Comparator<com.smartdevicelink.util.SdlAppInfo> comparator)

Page 25: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

sendExplicitBroadcast( Contextcontext, Intent intent,java.util.List<android.content.pm.ResolveInfo>apps )

Sends the provided intent to the specified destinations making it an explicit

intent, rather than an implicit intent. A direct replacement of sendBroadcast

(Intent). As of Android 8.0 (API 26+) implicit broadcasts are no longer sent to

broadcast receivers that are declared via the AndroidManifest. If no apps are

found to receive the intent, this method will send the broadcast implicitly if no

list of apps is provided.

Parameters

context

intent

- the intent to send explicitly

apps

public static void sendExplicitBroadcast(Context context,Intent intent,java.util.List<android.content.pm.ResolveInfo> apps)

Page 26: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

- the list of apps that this broadcast will be sent to. If null is passed inthe intent will be sent to all apps that match the provided intent via aquery to the package manager; it will also be sent implicitly to mimicsendBroadcast()'s original functionality.

isUSBCableConnected( Contextcontext )

Checks if the usb cable is physically connected or not Note: the intent here is a

sticky intent so registerReceiver is actually a synchronous call and doesn't

register a receiver on each call

Parameters

context

a context instance

downloadImage( String urlStr )

public static boolean isUSBCableConnected(Context context)

public static android.graphics.Bitmap downloadImage(String urlStr) throws java.io.IOException

Page 27: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

urlStr

Throws

• java.io.IOException

Inherited Methods

From Class Methods

Class AudioDecoder

Hierarchyjava.lang.Object

com.smartdevicelink.managers.audio.BaseAudioDecoder

java.lang.Object

getClass, hashCode, equals, clone,

toString, notify, notifyAll, wait, wait, wait,

finalize

Page 28: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Package

com.smartdevicelink.managers.audio

Overview

The audio decoder to decode a single audio file to PCM.

Quick Jump

Methods

• start()

Fields

Inherited Fields

From Class Fields

Methods

com.smartdevicelink.managers.audio.Ba

seAudioDecoder

targetSampleRate, targetSampleType, ex

tractor, decoder, audioSource, contextWe

akReference, listener

Page 29: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

start()

Starts the audio decoding asynchronously.

Inherited Methods

From Class Methods

Class AudioDecoderCompat

Hierarchyjava.lang.Object

com.smartdevicelink.managers.audio.BaseAudioDecoder

public void start()

com.smartdevicelink.managers.audio.Ba

seAudioDecoder

initMediaComponents, onInputBufferAvail

able, onOutputBufferAvailable, onOutput

FormatChanged, onMediaCodecError, sta

rt, stop

java.lang.Object

getClass, hashCode, equals, clone,

toString, notify, notifyAll, wait, wait, wait,

finalize

Page 30: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Package

com.smartdevicelink.managers.audio

Overview

The audio decoder to decode a single audio file to PCM. This decoder supports

phones with api < 21 but uses methods deprecated with api 21.

Quick Jump

Methods

• start()

Fields

Inherited Fields

From Class Fields

com.smartdevicelink.managers.audio.Ba

seAudioDecoder

targetSampleRate, targetSampleType, ex

tractor, decoder, audioSource, contextWe

akReference, listener

Page 31: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Methods

start()

Starts the audio decoding asynchronously.

Inherited Methods

From Class Methods

public void start()

com.smartdevicelink.managers.audio.Ba

seAudioDecoder

initMediaComponents, onInputBufferAvail

able, onOutputBufferAvailable, onOutput

FormatChanged, onMediaCodecError, sta

rt, stop

java.lang.Object

getClass, hashCode, equals, clone,

toString, notify, notifyAll, wait, wait, wait,

finalize

Page 32: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

InterfaceAudioDecoderListener

Package

com.smartdevicelink.managers.audio

Overview

An interface for the audio decoder classes. The caller using the audio decoder

will be notified when the decoding is finished or if an error occurred. During

decoding the caller receives sample buffers with decoded audio data.

Quick Jump

Methods

• onAudioDataAvailable(SampleBuffer sampleBuffer) • onDecoderFinish(boolean success) • onDecoderError(Exception e)

Methods

Page 33: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

onAudioDataAvailable(SampleBuffer sampleBuffer )

Notifies that decoded audio data is available.

Parameters

sampleBuffer

The sample buffer holding the decoded audio data.

onDecoderFinish( booleansuccess )

Notifies that the audio decoding is finished.

public void onAudioDataAvailable(SampleBuffer sampleBuffer)

public void onDecoderFinish(boolean success)

Page 34: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

success

Indicates whether audio decoding was successful or if an erroroccurred.

onDecoderError( Exception e )

Notifies the caller that an error/exception occurred during audio decoding.

Parameters

e

The exception storing information about the error.

public void onDecoderError(Exception e)

Page 35: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Class AudioStreamManager

Hierarchyjava.lang.Object

BaseAudioStreamManager

Package

com.smartdevicelink.managers.audio

Overview

The AudioStreamManager class provides methods to start and stop an audio

stream to the connected device. Audio files can be pushed to the manager in

order to play them on the connected device. The manager uses the Android

built-in MediaCodec.

Quick Jump

Constructors

• AudioStreamManager( ISdl internalInterface, Context context )

Methods

• start(CompletionListener listener) • dispose()

Page 36: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

• startAudioStream(boolean encrypted,CompletionListenercompletionListener)

• stopAudioStream(CompletionListener completionListener) • pushResource(int resourceId,CompletionListener

completionListener) • pushAudioSource(Uri audioSource,CompletionListener

completionListener) • onTransportUpdate(java.util.List<TransportRecord>

connectedTransports,boolean audioStreamTransportAvail,booleanvideoStreamTransportAvail)

Constructors

AudioStreamManager( ISdlinternalInterface, Contextcontext )

Creates a new object of AudioStreamManager

Parameters

internalInterface

The internal interface to the connected device.

public AudioStreamManager(ISdl internalInterface,Context context)

Page 37: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

context

Methods

start( CompletionListenerlistener )

Parameters

listener

dispose()

public void start(CompletionListener listener)

public void dispose()

Page 38: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

startAudioStream( booleanencrypted, CompletionListenercompletionListener )

Starts the audio service and audio stream to the connected device. The method

is non-blocking.

Parameters

encrypted

Specify whether or not the audio stream should be encrypted.

completionListener

public void startAudioStream(boolean encrypted,CompletionListener completionListener)

Page 39: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

stopAudioStream(CompletionListenercompletionListener )

Stops the audio service and audio stream to the connected device. The method

is non-blocking.

Parameters

completionListener

pushResource( int resourceId,CompletionListenercompletionListener )

Pushes the specified resource file to the playback queue. The audio file will be

played immediately. If another audio file is currently playing the specified file

will stay queued and automatically played when ready.

public void stopAudioStream(CompletionListener completionListener)

Page 40: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

resourceId

The specified resource file to be played.

completionListener

A completion listener that informs when the audio file is played.

pushAudioSource( UriaudioSource, CompletionListenercompletionListener )

Pushes the specified audio file to the playback queue. The audio file will be

played immediately. If another audio file is currently playing the specified file

will stay queued and automatically played when ready.

public void pushResource(int resourceId,CompletionListener completionListener)

public void pushAudioSource(Uri audioSource,CompletionListener completionListener)

Page 41: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

audioSource

The specified audio file to be played.

completionListener

A completion listener that informs when the audio file is played.

onTransportUpdate(java.util.List<TransportRecord>connectedTransports, booleanaudioStreamTransportAvail,booleanvideoStreamTransportAvail )

protected void onTransportUpdate(java.util.List<TransportRecord> connectedTransports,boolean audioStreamTransportAvail,boolean videoStreamTransportAvail)

Page 42: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

connectedTransports

audioStreamTransportAvail

videoStreamTransportAvail

Inherited Methods

From Class Methods

AudioStreamManager.SampleType

java.lang.Object

getClass, hashCode, equals, clone,

toString, notify, notifyAll, wait, wait, wait,

finalize

Page 43: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Quick Jump

Class BTTransport

Hierarchyjava.lang.Object

com.smartdevicelink.transport.SdlTransport

Package

com.smartdevicelink.transport

Overview

Bluetooth Transport Implementation. This transport advertises its existence to

SDL by publishing an SDP record and waiting for an incoming connection from

SDL. Connection is verified by checking for the SDL UUID. For more detailed

information please refer to the Bluetooth Transport Guide.

Page 44: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Quick Jump

Constructors

• BTTransport( ITransportListener transportListener )• BTTransport( ITransportListener transportListener, boolean

bKeepSocket )

Methods

• getBTSocket(BluetoothServerSocket bsSocket) Deprecated• getChannel(BluetoothSocket bsSocket) Deprecated• openConnection() • disconnect() • sendBytesOverTransport(SdlPacket packet) • getTransportType() • getBroadcastComment() • handleTransportDisconnected(String info) • handleTransportError(String message,Exception ex)

Constructors

BTTransport( ITransportListenertransportListener )

public BTTransport(ITransportListener transportListener)

Page 45: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

transportListener

BTTransport( ITransportListenertransportListener, booleanbKeepSocket )

Parameters

transportListener

bKeepSocket

public BTTransport(ITransportListener transportListener,boolean bKeepSocket)

Page 46: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Methods

getBTSocket(BluetoothServerSocket bsSocket)

Deprecated

Parameters

bsSocket

getChannel( BluetoothSocketbsSocket )

Deprecated

public android.bluetooth.BluetoothSocket getBTSocket(BluetoothServerSocket bsSocket)

Page 47: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

bsSocket

openConnection()

Throws

• SdlException

disconnect()

public int getChannel(BluetoothSocket bsSocket)

public void openConnection() throws SdlException

public void disconnect()

Page 48: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

sendBytesOverTransport(SdlPacket packet )

Sends data over the transport. Takes a byte array and transmits data provided

starting at the offset and of the provided length to fragment transmission.

Parameters

packet

getTransportType()

Overridden abstract method which returns specific type of this transport.

public boolean sendBytesOverTransport(SdlPacket packet)

public TransportType getTransportType()

Page 49: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

getBroadcastComment()

handleTransportDisconnected(String info )

Parameters

info

handleTransportError( Stringmessage, Exception ex )

public java.lang.String getBroadcastComment()

protected void handleTransportDisconnected(String info)

Page 50: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

message

ex

Inherited Methods

From Class Methods

protected void handleTransportError(String message,Exception ex)

com.smartdevicelink.transport.SdlTransp

ort

getIsConnected, handleReceivedPacket, s

endBytesOverTransport, sendBytes, hand

leTransportConnected, handleTransportDi

sconnected, handleTransportError, openC

onnection, disconnect, getTransportType,

getBroadcastComment

java.lang.Object

getClass, hashCode, equals, clone,

toString, notify, notifyAll, wait, wait, wait,

finalize

Page 51: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Class BTTransportConfig

Hierarchyjava.lang.Object

BaseTransportConfig

Package

com.smartdevicelink.transport

Overview

Container of Bluetooth transport specific configuration.

Quick Jump

Constructors

• BTTransportConfig()• BTTransportConfig( boolean shareConnection )

Methods

• getTransportType() • setKeepSocketActive(boolean bValue) • getKeepSocketActive()

Page 52: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Constructors

BTTransportConfig()

BTTransportConfig( booleanshareConnection )

Parameters

shareConnection

Methods

public BTTransportConfig()

public BTTransportConfig(boolean shareConnection)

Page 53: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

getTransportType()

Overridden abstract method which returns specific type of this transport

configuration.

setKeepSocketActive( booleanbValue )

Parameters

bValue

getKeepSocketActive()

public TransportType getTransportType()

public void setKeepSocketActive(boolean bValue)

Page 54: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Inherited Methods

From Class Methods

Class BaseAudioDecoder

Hierarchyjava.lang.Object

Package

com.smartdevicelink.managers.audio

All Known Subclasses

com.smartdevicelink.managers.audio.AudioDecoder, com.smartdevicelink.managers.audio.AudioDecoderCompat

public boolean getKeepSocketActive()

java.lang.Object

getClass, hashCode, equals, clone,

toString, notify, notifyAll, wait, wait, wait,

finalize

Page 55: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Quick Jump

Fields

• targetSampleRate• targetSampleType• extractor• decoder• audioSource• contextWeakReference• listener

Constructors

• BaseAudioDecoder( Uri audioSource, Context context, intsampleRate, int sampleType, AudioDecoderListener listener )

Methods

• initMediaComponents() • onInputBufferAvailable(MediaExtractor extractor,ByteBuffer

inputBuffer) • onOutputBufferAvailable(ByteBuffer outputBuffer) • onOutputFormatChanged(MediaFormat mediaFormat) • onMediaCodecError(MediaCodec.CodecException e) • start()

Page 56: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

• stop()

Fields

targetSampleRate

targetSampleType

extractor

protected final int targetSampleRate

protected final int targetSampleType

protected android.media.MediaExtractor extractor

Page 57: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

decoder

audioSource

contextWeakReference

protected android.media.MediaCodec decoder

protected final android.net.Uri audioSource

protected final java.lang.ref.WeakReference contextWeakReference

Page 58: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

listener

Constructors

BaseAudioDecoder( UriaudioSource, Context context,int sampleRate, int sampleType,AudioDecoderListener listener )

Parameters

audioSource

protected final com.smartdevicelink.managers.audio.AudioDecoderListener listener

public BaseAudioDecoder(Uri audioSource,Context context,int sampleRate,int sampleType,AudioDecoderListener listener)

Page 59: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Uri of the audio source to be converted

context

the context

sampleRate

can be either 8000, 16000, 22050 or 44100

sampleType

can be either UNSIGNED_8_BIT, SIGNED_16_BIT, FLOAT

listener

listener for event callbacks

Methods

initMediaComponents()

protected void initMediaComponents() throws java.lang.Exception

Page 60: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Throws

• java.lang.Exception

onInputBufferAvailable(MediaExtractor extractor,ByteBuffer inputBuffer )

Parameters

extractor

inputBuffer

onOutputBufferAvailable(ByteBuffer outputBuffer )

protected android.media.MediaCodec.BufferInfo onInputBufferAvailable(MediaExtractor extractor,ByteBuffer inputBuffer)

Page 61: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

outputBuffer

onOutputFormatChanged(MediaFormat mediaFormat )

Parameters

mediaFormat

protected com.smartdevicelink.managers.audio.SampleBuffer onOutputBufferAvailable(ByteBuffer outputBuffer)

protected void onOutputFormatChanged(MediaFormat mediaFormat)

Page 62: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

onMediaCodecError(MediaCodec.CodecException e )

Parameters

e

start()

stop()

protected void onMediaCodecError(MediaCodec.CodecException e)

public abstract void start()

public void stop()

Page 63: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Inherited Methods

From Class Methods

ClassByteAraryMessageAssembler

Hierarchyjava.lang.Object

Package

com.smartdevicelink.transport.utl

Quick Jump

Constructors

• ByteAraryMessageAssembler()

java.lang.Object

getClass, hashCode, equals, clone,

toString, notify, notifyAll, wait, wait, wait,

finalize

Page 64: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Methods

• init() • setTransportType(TransportType transportType) • getTransportType() • close() • append(byte[] bytes) • handleMessage(int flags,byte[] packet) • getBytes() • isFinished()

Constructors

ByteAraryMessageAssembler()

Methods

init()

public ByteAraryMessageAssembler()

public void init()

Page 65: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

setTransportType( TransportTypetransportType )

Parameters

transportType

getTransportType()

close()

public void setTransportType(TransportType transportType)

public TransportType getTransportType()

public boolean close()

Page 66: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

append( byte[] bytes )

Parameters

bytes

handleMessage( int flags, byte[]packet )

Parameters

flags

public void append(byte[] bytes)

public synchronized boolean handleMessage(int flags,byte[] packet)

Page 67: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

packet

getBytes()

isFinished()

Inherited Methods

From Class Methods

public byte getBytes()

public boolean isFinished()

java.lang.Object

getClass, hashCode, equals, clone,

toString, notify, notifyAll, wait, wait, wait,

finalize

Page 68: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

ClassByteArrayMessageSpliter

Hierarchyjava.lang.Object

Package

com.smartdevicelink.transport.utl

Quick Jump

Fields

• MAX_BINDER_SIZE

Constructors

• ByteArrayMessageSpliter( String appId, int what, byte[] bytes, intpriorityCoef )

• ByteArrayMessageSpliter( Long appId, int what, byte[] bytes, intpriorityCoef )

Methods

• setRouterServiceVersion(int version) • setTransportRecord(TransportRecord transportRecord) • isActive() • close()

Page 69: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

• nextMessage()

Fields

MAX_BINDER_SIZE

Constant Value

250000

Constructors

ByteArrayMessageSpliter( StringappId, int what, byte[] bytes, intpriorityCoef )

public static final int MAX_BINDER_SIZE

public ByteArrayMessageSpliter(String appId,int what,byte[] bytes,int priorityCoef)

Page 70: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

appId

what

bytes

priorityCoef

ByteArrayMessageSpliter( LongappId, int what, byte[] bytes, intpriorityCoef )

public ByteArrayMessageSpliter(Long appId,int what,byte[] bytes,int priorityCoef)

Page 71: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

appId

what

bytes

priorityCoef

Methods

setRouterServiceVersion( intversion )

public void setRouterServiceVersion(int version)

Page 72: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

version

setTransportRecord(TransportRecord transportRecord)

Parameters

transportRecord

isActive()

public void setTransportRecord(TransportRecord transportRecord)

Page 73: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

close()

nextMessage()

Inherited Methods

From Class Methods

public boolean isActive()

public boolean close()

public android.os.Message nextMessage()

java.lang.Object

getClass, hashCode, equals, clone,

toString, notify, notifyAll, wait, wait, wait,

finalize

Page 74: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Class EncoderUtils

Hierarchyjava.lang.Object

Package

com.smartdevicelink.encoder

Quick Jump

Methods

• getCodecSpecificData(MediaFormat format)

Methods

getCodecSpecificData(MediaFormat format )

Extracts codec-specific data from MediaFormat instance Currently, only AVC is

supported.

Page 75: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

format

MediaFormat instance retrieved from MediaCodec

Inherited Methods

From Class Methods

Class FileManager

Hierarchyjava.lang.Object

BaseFileManager

public static byte getCodecSpecificData(MediaFormat format)

java.lang.Object

getClass, hashCode, equals, clone,

toString, notify, notifyAll, wait, wait, wait,

finalize

Page 76: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Package

com.smartdevicelink.managers.file

Overview

FileManager

Note: This class must be accessed through the SdlManager. Do not instantiate it

by itself.

The SDLFileManager uploads files and keeps track of all the uploaded files

names during a session.

We need to add the following struct: SDLFile

It is broken down to these areas:

1. Getters

2. Deletion methods

3. Uploading Files / Artwork

Quick Jump

Constructors

• FileManager( ISdl internalInterface, Context context )

Constructors

Page 77: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

FileManager( ISdlinternalInterface, Contextcontext )

Parameters

internalInterface

context

public FileManager(ISdl internalInterface,Context context)

Page 78: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Methods

Inherited Methods

From Class Methods

Class HapticInterfaceManager

Hierarchyjava.lang.Object

Package

com.smartdevicelink.haptic

Overview

Created on 9/22/2017. Manages haptic data used to render focusable areas on

the HU screen. App developers can over-ride the default logic used to find

focusable Views by passing their own data to {@link #setHapticData(List)}

java.lang.Object

getClass, hashCode, equals, clone,

toString, notify, notifyAll, wait, wait, wait,

finalize

Page 79: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Quick Jump

Constructors

• HapticInterfaceManager( ISdl proxy )

Methods

• setHapticData(java.util.List<HapticRect> hapticData) • refreshHapticData(View root)

Constructors

HapticInterfaceManager( ISdlproxy )

Parameters

proxy

public HapticInterfaceManager(ISdl proxy)

Page 80: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Methods

setHapticData(java.util.List<HapticRect>hapticData )

Sets haptic data and sends update to the HU. To be used by app code instead

of letting Presentation find the Views and automatically send to HU.

Parameters

hapticData

Rect data indicating "focusable" screen elements or areas

refreshHapticData( View root )

Sends haptic data found by searching for focusable and clickable Views in the

view heirarchy to the HU. Should be called by Presentation's OnShowListener.

public void setHapticData(java.util.List<HapticRect> hapticData)

Page 81: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

root

the root or parent View

Inherited Methods

From Class Methods

Class HeartbeatMonitor

Hierarchyjava.lang.Object

Package

public void refreshHapticData(View root)

java.lang.Object

getClass, hashCode, equals, clone,

toString, notify, notifyAll, wait, wait, wait,

finalize

Page 82: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

com.smartdevicelink.protocol.heartbeat

All Implemented Interfaces

com.smartdevicelink.protocol.heartbeat.IHeartbeatMonitor

Quick Jump

Fields

• HEARTBEAT_INTERVAL• HEARTBEAT_INTERVAL_MAX

Constructors

• HeartbeatMonitor()

Methods

• getHeartbeatRunnable() • isHeartbeatReceived() • start() • stop() • getInterval() • setInterval(int value) • getListener() • setListener(IHeartbeatMonitorListener value) • notifyTransportActivity() • heartbeatACKReceived()

Page 83: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

• heartbeatReceived()

Fields

HEARTBEAT_INTERVAL

Constant Value

5000

HEARTBEAT_INTERVAL_MAX

Constant Value

2147483647

public static final int HEARTBEAT_INTERVAL

public static final int HEARTBEAT_INTERVAL_MAX

Page 84: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Constructors

HeartbeatMonitor()

Methods

getHeartbeatRunnable()

isHeartbeatReceived()

public HeartbeatMonitor()

public java.lang.Runnable getHeartbeatRunnable()

public boolean isHeartbeatReceived()

Page 85: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

start()

stop()

getInterval()

setInterval( int value )

public void start()

public void stop()

public int getInterval()

public void setInterval(int value)

Page 86: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

value

getListener()

setListener(IHeartbeatMonitorListener value)

public com.smartdevicelink.protocol.heartbeat.IHeartbeatMonitorListener getListener()

public void setListener(IHeartbeatMonitorListener value)

Page 87: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

value

notifyTransportActivity()

heartbeatACKReceived()

heartbeatReceived()

public void notifyTransportActivity()

public synchronized void heartbeatACKReceived()

public void heartbeatReceived()

Page 88: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Inherited Methods

From Class Methods

Class HttpUtils

Hierarchyjava.lang.Object

Package

com.smartdevicelink.util

Quick Jump

Constructors

• HttpUtils()

java.lang.Object

getClass, hashCode, equals, clone,

toString, notify, notifyAll, wait, wait, wait,

finalize

Page 89: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Methods

• downloadImage(String urlStr)

Constructors

HttpUtils()

Methods

downloadImage( String urlStr )

public HttpUtils()

public static android.graphics.Bitmap downloadImage(String urlStr) throws java.io.IOException

Page 90: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

urlStr

Throws

• java.io.IOException

Inherited Methods

From Class Methods

Interface IHeartbeatMonitor

Package

com.smartdevicelink.protocol.heartbeat

java.lang.Object

getClass, hashCode, equals, clone,

toString, notify, notifyAll, wait, wait, wait,

finalize

Page 91: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

All Known Implementing Classes

com.smartdevicelink.protocol.heartbeat.HeartbeatMonitor

Quick Jump

Methods

• start() • stop() • getInterval() • setInterval(int interval) • getListener() • setListener(IHeartbeatMonitorListener listener) • notifyTransportActivity() • heartbeatACKReceived() • heartbeatReceived()

Methods

start()

Starts the monitor. If the monitor is already started, nothing happens.

public void start()

Page 92: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

stop()

Stops the monitor. Does nothing if it is already stopped.

getInterval()

Returns the heartbeat messages interval.

setInterval( int interval )

Sets the interval for sending heartbeat messages if nothing is sent over

transport.

public void stop()

public int getInterval()

public void setInterval(int interval)

Page 93: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

interval

interval in milliseconds (min/max values depend on concreteimplementations)

getListener()

Returns the listener.

setListener(IHeartbeatMonitorListenerlistener )

Sets the heartbeat's listener.

public com.smartdevicelink.protocol.heartbeat.IHeartbeatMonitorListener getListener()

public void setListener(IHeartbeatMonitorListener listener)

Page 94: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

listener

the new listener

notifyTransportActivity()

Notifies the monitor about sent/received messages.

heartbeatACKReceived()

Notifies the monitor about a received heartbeat ACK message.

public void notifyTransportActivity()

public void heartbeatACKReceived()

Page 95: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

heartbeatReceived()

Notifies the monitor about a received heartbeat message.

InterfaceIHeartbeatMonitorListener

Package

com.smartdevicelink.protocol.heartbeat

All Known Implementing Classes

com.smartdevicelink.SdlConnection.SdlSession, com.smartdevicelink.SdlConnection.SdlSession2

Overview

Listener (aka delegate) that actually knows how to work with the outside world.

public void heartbeatReceived()

Page 96: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Quick Jump

Methods

• sendHeartbeat(IHeartbeatMonitor monitor) • heartbeatTimedOut(IHeartbeatMonitor monitor)

Methods

sendHeartbeat(IHeartbeatMonitor monitor )

The listener should create and send a heartbeat message.

Parameters

monitor

the caller

public void sendHeartbeat(IHeartbeatMonitor monitor)

Page 97: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

heartbeatTimedOut(IHeartbeatMonitor monitor )

Notifies the listener that the heartbeat timed out.

Parameters

monitor

the caller

Class LockScreenConfig

Hierarchyjava.lang.Object

Package

com.smartdevicelink.managers.lockscreen

public void heartbeatTimedOut(IHeartbeatMonitor monitor)

Page 98: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Overview

LockScreenConfig

This is set during SdlManager instantiation. • enable - if false, don't worry about the other parameters. You are responsible

for creating and managing a lockscreen. If true, also set the backgroundColor

and appIcon if you want. If you don't set the backgroundColor or appIcon, it will

use the defaults.• backgroundColor - if using the default lockscreen, you can set this to a color of

your choosing • appIcon - if using the default lockscreen, you can set your own app icon• customView - If you would like to provide your own view, you can pass it in

here.

Quick Jump

Constructors

• LockScreenConfig()

Methods

• setEnabled(boolean enable) • isEnabled() • setBackgroundColor(int resourceColor) • getBackgroundColor() • setAppIcon(int appIconInt) • getAppIcon() • setCustomView(int customViewInt) • getCustomView() • showDeviceLogo(boolean deviceLogo) • isDeviceLogoEnabled()

Page 99: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Constructors

LockScreenConfig()

Methods

setEnabled( boolean enable )

If set to true, SDL will manage the showing and dismissing of the lock screen

for you.

If false, you must manage the lock screen

Parameters

enable

public LockScreenConfig()

public void setEnabled(boolean enable)

Page 100: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

boolean

isEnabled()

Gets whether the lock screen is being managed for you

setBackgroundColor( intresourceColor )

Set the resource int of the background color. Colors should define colors in your

Colors.xml file

Parameters

resourceColor

resource int of the color

public boolean isEnabled()

public void setBackgroundColor(int resourceColor)

Page 101: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

getBackgroundColor()

Gets the int reference to the custom lock screen background color

setAppIcon( int appIconInt )

int of the drawable icon.

Parameters

appIconInt

the drawable of the icon to be displayed on the lock screen

public int getBackgroundColor()

public void setAppIcon(int appIconInt)

Page 102: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

getAppIcon()

Gets the resource reference of the icon to be displayed on the lock screen

setCustomView( intcustomViewInt )

Sets the reference to the custom layout to be used for the lock screen

If set, the color and icon setters will be ignored

Parameters

customViewInt

the layout

public int getAppIcon()

public void setCustomView(int customViewInt)

Page 103: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

getCustomView()

Gets the reference to the custom lockscreen layout to be used

showDeviceLogo( booleandeviceLogo )

Whether or not to show the device's logo on the default lock screen

The logo will come from the connected hardware, if set by the manufacturer

If using a Custom View, this will be ignored.

Parameters

deviceLogo

- boolean

public int getCustomView()

public void showDeviceLogo(boolean deviceLogo)

Page 104: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

isDeviceLogoEnabled()

Get whether or not the device's Logo is shown on the default lock screen

The logo will come from the connected hardware, if set by the manufacturer

Inherited Methods

From Class Methods

Class LockScreenManager

Hierarchyjava.lang.Object

BaseSubManager

Package

com.smartdevicelink.managers.lockscreen

public boolean isDeviceLogoEnabled()

java.lang.Object

getClass, hashCode, equals, clone,

toString, notify, notifyAll, wait, wait, wait,

finalize

Page 105: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Overview

LockscreenManager

Note: This class must be accessed through the SdlManager. Do not instantiate it

by itself.

The LockscreenManager handles the logic of showing and hiding the lock

screen.

Quick Jump

Fields

• lockScreenEnabled• deviceLogoEnabled• lockScreenIcon• lockScreenColor• customView• deviceLogo

Constructors

• LockScreenManager( LockScreenConfig lockScreenConfig, Contextcontext, ISdl internalInterface )

Methods

• start(CompletionListener listener) • dispose()

Page 106: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

• getLockScreenStatus()

Fields

lockScreenEnabled

deviceLogoEnabled

lockScreenIcon

protected boolean lockScreenEnabled

protected boolean deviceLogoEnabled

protected int lockScreenIcon

Page 107: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

lockScreenColor

customView

deviceLogo

Constructors

protected int lockScreenColor

protected int customView

protected android.graphics.Bitmap deviceLogo

Page 108: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

LockScreenManager(LockScreenConfiglockScreenConfig, Contextcontext, ISdl internalInterface )

Parameters

lockScreenConfig

context

internalInterface

Methods

public LockScreenManager(LockScreenConfig lockScreenConfig,Context context,ISdl internalInterface)

Page 109: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

start( CompletionListenerlistener )

Parameters

listener

dispose()

getLockScreenStatus()

Step through some logic to determine if we need to show the lock screen or not

This function is usually triggered on some sort of notification.

public void start(CompletionListener listener)

public void dispose()

Page 110: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Inherited Methods

From Class Methods

Class LockScreenManager

Hierarchyjava.lang.Object

Package

com.smartdevicelink.proxy

protected synchronized LockScreenStatus getLockScreenStatus()

java.lang.Object

getClass, hashCode, equals, clone,

toString, notify, notifyAll, wait, wait, wait,

finalize

Page 111: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Quick Jump

Constructors

• LockScreenManager()

Methods

• setSessionID(int iVal) • setDriverDistStatus(boolean bVal) • setHMILevel(HMILevel hmiVal) • getLockObj() • downloadLockScreenIcon(String

url,LockScreenManager.OnLockScreenIconDownloadedListener l) • getLockScreenIcon()

Constructors

LockScreenManager()

Methods

public LockScreenManager()

Page 112: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

setSessionID( int iVal )

Parameters

iVal

setDriverDistStatus( booleanbVal )

Parameters

bVal

public synchronized void setSessionID(int iVal)

public synchronized void setDriverDistStatus(boolean bVal)

Page 113: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

setHMILevel( HMILevel hmiVal )

Parameters

hmiVal

getLockObj()

downloadLockScreenIcon( Stringurl,LockScreenManager.OnLockScreenIconDownloadedListenerl )

public synchronized void setHMILevel(HMILevel hmiVal)

public synchronized OnLockScreenStatus getLockObj()

Page 114: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

url

l

getLockScreenIcon()

public void downloadLockScreenIcon(String url,LockScreenManager.OnLockScreenIconDownloadedListener l)

Page 115: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Inherited Methods

From Class Methods

InterfaceLockScreenManager.OnLockScreenIconDownloadedList

Package

com.smartdevicelink.proxy

Quick Jump

Methods

• onLockScreenIconDownloaded(Bitmap icon) • onLockScreenIconDownloadError(Exception e)

public android.graphics.Bitmap getLockScreenIcon()

java.lang.Object

getClass, hashCode, equals, clone,

toString, notify, notifyAll, wait, wait, wait,

finalize

Page 116: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Methods

onLockScreenIconDownloaded(Bitmap icon )

Parameters

icon

onLockScreenIconDownloadError( Exception e )

public void onLockScreenIconDownloaded(Bitmap icon)

public void onLockScreenIconDownloadError(Exception e)

Page 117: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

e

Class MultiplexBaseTransport

Hierarchyjava.lang.Object

Package

com.smartdevicelink.transport

All Known Subclasses

com.smartdevicelink.transport.MultiplexBluetoothTransport, com.smartdevicelink.transport.MultiplexTcpTransport, com.smartdevicelink.transport.MultiplexUsbTransport

Page 118: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Quick Jump

Fields

• STATE_NONE• STATE_LISTEN• STATE_CONNECTING• STATE_CONNECTED• STATE_ERROR• LOG• DEVICE_NAME• DEVICE_ADDRESS• mState• handler• transportType• transportRecord• currentlyConnectedDevice• connectedDeviceName• connectedDeviceAddress

Constructors

• MultiplexBaseTransport( Handler handler, TransportTypetransportType )

Methods

• setState(int state) • getAddress() • getDeviceName() • getTransportRecord() • getState() • isConnected() • stop() • stop(int state) • write(byte[] out,int offset,int count)

Page 119: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Fields

STATE_NONE

STATE_LISTEN

Constant Value

1

STATE_CONNECTING

public static final int STATE_NONE

public static final int STATE_LISTEN

public static final int STATE_CONNECTING

Page 120: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Constant Value

2

STATE_CONNECTED

Constant Value

3

STATE_ERROR

Constant Value

4

public static final int STATE_CONNECTED

public static final int STATE_ERROR

Page 121: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

LOG

Constant Value

"log"

DEVICE_NAME

Constant Value

"device_name"

DEVICE_ADDRESS

public static final java.lang.String LOG

public static final java.lang.String DEVICE_NAME

public static final java.lang.String DEVICE_ADDRESS

Page 122: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Constant Value

"device_address"

mState

handler

transportType

protected int mState

protected final android.os.Handler handler

protected final TransportType transportType

Page 123: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

transportRecord

currentlyConnectedDevice

connectedDeviceName

protected TransportRecord transportRecord

public static java.lang.String currentlyConnectedDevice

protected java.lang.String connectedDeviceName

Page 124: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

connectedDeviceAddress

Constructors

MultiplexBaseTransport( Handlerhandler, TransportTypetransportType )

Parameters

handler

public java.lang.String connectedDeviceAddress

protected MultiplexBaseTransport(Handler handler,TransportType transportType)

Page 125: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

transportType

Methods

setState( int state )

Parameters

state

getAddress()

protected synchronized void setState(int state)

public java.lang.String getAddress()

Page 126: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

getDeviceName()

getTransportRecord()

Should only be called after a connection has been established

getState()

Return the current connection state.

isConnected()

public java.lang.String getDeviceName()

public TransportRecord getTransportRecord()

public synchronized int getState()

Page 127: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

stop()

stop( int state )

Parameters

state

public boolean isConnected()

public synchronized void stop()

protected abstract void stop(int state)

Page 128: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

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

Parameters

out

offset

count

Inherited Methods

From Class Methods

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

java.lang.Object

getClass, hashCode, equals, clone,

toString, notify, notifyAll, wait, wait, wait,

finalize

Page 129: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

ClassMultiplexBluetoothTransport

Hierarchyjava.lang.Object

com.smartdevicelink.transport.MultiplexBaseTransport

Package

com.smartdevicelink.transport

Overview

This class does all the work for setting up and managing Bluetooth connections

with other devices. It has a thread that listens for incoming connections, a

thread for connecting with a device, and a thread for performing data

transmissions when connected.

Quick Jump

Fields

• SHARED_PREFS

Page 130: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Constructors

• MultiplexBluetoothTransport( Handler handler )

Methods

• getBluetoothSerialServerInstance(Handler handler) Deprecated• getBluetoothSerialServerInstance(Handler handler,boolean

keepSocketAlive) Deprecated• getBluetoothSerialServerInstance() Deprecated• setStateManually(int state) • getState() • setKeepSocketAlive(boolean keepSocketAlive) • start() • connect(BluetoothDevice device) • connected(BluetoothSocket socket,BluetoothDevice device) • stop() • stop(int stateToTransitionTo) • write(byte[] out,int offset,int count) • getBTSocket(BluetoothServerSocket bsSocket) • getChannel(BluetoothSocket bsSocket)

Fields

SHARED_PREFS

Constant Value

"sdl.bluetoothprefs"

protected static final java.lang.String SHARED_PREFS

Page 131: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Inherited Fields

From Class Fields

Constructors

MultiplexBluetoothTransport(Handler handler )

Constructor. Prepares a new BluetoothChat session.

Parameters

handler

com.smartdevicelink.transport.Multiplex

BaseTransport

STATE_NONE, STATE_LISTEN, STATE_CON

NECTING, STATE_CONNECTED, STATE_ER

ROR, LOG, DEVICE_NAME, DEVICE_ADDR

ESS, mState, handler, transportType, tran

sportRecord, currentlyConnectedDevice,

connectedDeviceName, connectedDevice

Address

public MultiplexBluetoothTransport(Handler handler)

Page 132: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

A Handler to send messages back to the UI Activity

Methods

getBluetoothSerialServerInstance( Handler handler )

Deprecated

This method has been deprecated. It will return an instance of

MultiplexBluetoothTransport but should not be used.

Parameters

handler

for receiving status messages from the transport

public static synchronized com.smartdevicelink.transport.MultiplexBluetoothTransport getBluetoothSerialServerInstance(Handler handler)

Page 133: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

getBluetoothSerialServerInstance( Handler handler, booleankeepSocketAlive )

Deprecated

This method has been deprecated. It will return an instance of

MultiplexBluetoothTransport but should not be used.

Parameters

handler

for receiving status messages from the transport

keepSocketAlive

Flag for keeping the socket alive

public static synchronized com.smartdevicelink.transport.MultiplexBluetoothTransport getBluetoothSerialServerInstance(Handler handler,boolean keepSocketAlive)

Page 134: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

getBluetoothSerialServerInstance()

Deprecated

This method has been deprecated. It will always return null.

setStateManually( int state )

Parameters

state

public static synchronized com.smartdevicelink.transport.MultiplexBluetoothTransport getBluetoothSerialServerInstance()

protected synchronized void setStateManually(int state)

Page 135: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

getState()

Return the current connection state.

setKeepSocketAlive( booleankeepSocketAlive )

Parameters

keepSocketAlive

public synchronized int getState()

public void setKeepSocketAlive(boolean keepSocketAlive)

Page 136: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

start()

Start the chat service. Specifically start AcceptThread to begin a session in

listening (server) mode. Called by the Activity onResume()

connect( BluetoothDevice device)

Start the ConnectThread to initiate a connection to a remote device.

Parameters

device

The BluetoothDevice to connect

public synchronized void start()

public synchronized void connect(BluetoothDevice device)

Page 137: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

connected( BluetoothSocketsocket, BluetoothDevice device )

Start the ConnectedThread to begin managing a Bluetooth connection

Parameters

socket

The BluetoothSocket on which the connection was made

device

The BluetoothDevice that has been connected

stop()

Stop all threads

public synchronized void connected(BluetoothSocket socket,BluetoothDevice device)

public synchronized void stop()

Page 138: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

stop( int stateToTransitionTo )

Parameters

stateToTransitionTo

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

Write to the ConnectedThread in an unsynchronized manner

protected synchronized void stop(int stateToTransitionTo)

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

Page 139: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

out

The bytes to write

offset

count

getBTSocket(BluetoothServerSocket bsSocket)

public android.bluetooth.BluetoothSocket getBTSocket(BluetoothServerSocket bsSocket)

Page 140: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

bsSocket

getChannel( BluetoothSocketbsSocket )

Parameters

bsSocket

public int getChannel(BluetoothSocket bsSocket)

Page 141: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Inherited Methods

From Class Methods

Class MultiplexTcpTransport

Hierarchyjava.lang.Object

com.smartdevicelink.transport.MultiplexBaseTransport

Package

com.smartdevicelink.transport

com.smartdevicelink.transport.Multiplex

BaseTransport

setState, getAddress, getDeviceName, g

etTransportRecord, getState, isConnected

, stop, stop, write

java.lang.Object

getClass, hashCode, equals, clone,

toString, notify, notifyAll, wait, wait, wait,

finalize

Page 142: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Quick Jump

Constructors

• MultiplexTcpTransport( int port, String ipAddress, booleanautoReconnect, Handler handler, Context context )

Methods

• start() • stop(int state) • write(byte[] out,int offset,int count)

Fields

Inherited Fields

From Class Fields

Constructors

com.smartdevicelink.transport.Multiplex

BaseTransport

STATE_NONE, STATE_LISTEN, STATE_CON

NECTING, STATE_CONNECTED, STATE_ER

ROR, LOG, DEVICE_NAME, DEVICE_ADDR

ESS, mState, handler, transportType, tran

sportRecord, currentlyConnectedDevice,

connectedDeviceName, connectedDevice

Address

Page 143: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

MultiplexTcpTransport( int port,String ipAddress, booleanautoReconnect, Handler handler,Context context )

Parameters

port

ipAddress

autoReconnect

handler

context

public MultiplexTcpTransport(int port,String ipAddress,boolean autoReconnect,Handler handler,Context context)

Page 144: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Methods

start()

stop( int state )

Parameters

state

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

public synchronized void start()

protected void stop(int state)

Page 145: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

out

offset

count

Inherited Methods

From Class Methods

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

com.smartdevicelink.transport.Multiplex

BaseTransport

setState, getAddress, getDeviceName, g

etTransportRecord, getState, isConnected

, stop, stop, write

java.lang.Object

getClass, hashCode, equals, clone,

toString, notify, notifyAll, wait, wait, wait,

finalize

Page 146: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Class MultiplexTransport

Hierarchyjava.lang.Object

com.smartdevicelink.transport.SdlTransport

Package

com.smartdevicelink.transport

Quick Jump

Fields

• isDisconnecting

Constructors

• MultiplexTransport( MultiplexTransportConfig transportConfig,ITransportListener transportListener )

Methods

• isDisconnecting() • getConfig() • requestNewSession() • removeSession(long sessionId) • getTransportType() • getBroadcastComment() • sendBytesOverTransport(SdlPacket packet) • openConnection()

Page 147: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

• disconnect() • handleTransportError(String message,Exception ex) • isPendingConnected()

Fields

isDisconnecting

Constructors

MultiplexTransport(MultiplexTransportConfigtransportConfig,ITransportListenertransportListener )

protected boolean isDisconnecting

public MultiplexTransport(MultiplexTransportConfig transportConfig,ITransportListener transportListener)

Page 148: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

transportConfig

transportListener

Methods

isDisconnecting()

getConfig()

Returns the config that was used to create this transport

public boolean isDisconnecting()

public com.smartdevicelink.transport.MultiplexTransportConfig getConfig()

Page 149: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

requestNewSession()

removeSession( long sessionId )

Parameters

sessionId

getTransportType()

Overridden abstract method which returns specific type of this transport.

public boolean requestNewSession()

public void removeSession(long sessionId)

public TransportType getTransportType()

Page 150: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

getBroadcastComment()

sendBytesOverTransport(SdlPacket packet )

Parameters

packet

openConnection()

public java.lang.String getBroadcastComment()

protected boolean sendBytesOverTransport(SdlPacket packet)

public void openConnection() throws SdlException

Page 151: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Throws

• SdlException

disconnect()

handleTransportError( Stringmessage, Exception ex )

Parameters

message

ex

public void disconnect()

protected void handleTransportError(String message,Exception ex)

Page 152: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

isPendingConnected()

Inherited Methods

From Class Methods

public boolean isPendingConnected()

com.smartdevicelink.transport.SdlTransp

ort

getIsConnected, handleReceivedPacket, s

endBytesOverTransport, sendBytes, hand

leTransportConnected, handleTransportDi

sconnected, handleTransportError, openC

onnection, disconnect, getTransportType,

getBroadcastComment

java.lang.Object

getClass, hashCode, equals, clone,

toString, notify, notifyAll, wait, wait, wait,

finalize

Page 153: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

ClassMultiplexTransport.TransportBrokerThread

Hierarchyjava.lang.Object

java.lang.Thread

Package

com.smartdevicelink.transport

Overview

This thread will handle the broker transaction with the router service.

Quick Jump

Constructors

• TransportBrokerThread( Context context, String appId,ComponentName service )

Methods

• startConnection() • cancel() • onHardwareConnected(TransportType type)

Page 154: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

• sendPacket(SdlPacket packet) • requestNewSession() • removeSession(long sessionId) • run() • initTransportBroker()

Fields

Inherited Fields

From Class Fields

Constructors

TransportBrokerThread( Contextcontext, String appId,ComponentName service )

Thread will automatically start to prepare its looper.

java.lang.Thread MIN_PRIORITY, NORM_PRIORITY,

MAX_PRIORITY

public TransportBrokerThread(Context context,String appId,ComponentName service)

Page 155: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

context

appId

service

Methods

startConnection()

cancel()

public void startConnection()

public synchronized void cancel()

Page 156: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

onHardwareConnected(TransportType type )

Parameters

type

sendPacket( SdlPacket packet )

Parameters

packet

public void onHardwareConnected(TransportType type)

public void sendPacket(SdlPacket packet)

Page 157: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

requestNewSession()

removeSession( long sessionId )

Parameters

sessionId

run()

public void requestNewSession()

public void removeSession(long sessionId)

public void run()

Page 158: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

initTransportBroker()

Inherited Methods

From Class Methods

public void initTransportBroker()

java.lang.Thread

currentThread, yield, sleep, sleep, clone,

start, run, stop, stop, interrupt,

interrupted, isInterrupted, destroy,

isAlive, suspend, resume, setPriority,

getPriority, setName, getName,

getThreadGroup, activeCount,

enumerate, countStackFrames, join, join,

join, dumpStack, setDaemon, isDaemon,

checkAccess, toString,

getContextClassLoader,

setContextClassLoader, holdsLock,

getStackTrace, getAllStackTraces, getId,

getState,

setDefaultUncaughtExceptionHandler,

getDefaultUncaughtExceptionHandler,

getUncaughtExceptionHandler,

setUncaughtExceptionHandler

java.lang.Object

getClass, hashCode, equals, clone,

toString, notify, notifyAll, wait, wait, wait,

finalize

Page 159: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

ClassMultiplexTransportConfig

Hierarchyjava.lang.Object

BaseTransportConfig

Package

com.smartdevicelink.transport

Quick Jump

Fields

• FLAG_MULTI_SECURITY_OFF• FLAG_MULTI_SECURITY_LOW• FLAG_MULTI_SECURITY_MED• FLAG_MULTI_SECURITY_HIGH

Constructors

• MultiplexTransportConfig( Context context, String appId )• MultiplexTransportConfig( Context context, String appId, int

securityLevel )

Methods

• getTransportType()

Page 160: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

• getContext() • getService() • setService(ComponentName service) • setSecurityLevel(int securityLevel) • getSecurityLevel() • setRequiresHighBandwidth(boolean requiresHighBandwidth) • requiresHighBandwidth() • setPrimaryTransports(java.util.List<TransportType> transports) • getPrimaryTransports() • setSecondaryTransports(java.util.List<TransportType> transports) • getSecondaryTransports() • setTransportListener(MultiplexTransportConfig.TransportListener

listener) • getTransportListener()

Fields

FLAG_MULTI_SECURITY_OFF

FLAG_MULTI_SECURITY_LOW

Constant Value

public static final int FLAG_MULTI_SECURITY_OFF

public static final int FLAG_MULTI_SECURITY_LOW

Page 161: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

16

FLAG_MULTI_SECURITY_MED

Constant Value

32

FLAG_MULTI_SECURITY_HIGH

Constant Value

48

Constructors

public static final int FLAG_MULTI_SECURITY_MED

public static final int FLAG_MULTI_SECURITY_HIGH

Page 162: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

MultiplexTransportConfig(Context context, String appId )

Parameters

context

appId

MultiplexTransportConfig(Context context, String appId, intsecurityLevel )

public MultiplexTransportConfig(Context context,String appId)

public MultiplexTransportConfig(Context context,String appId,int securityLevel)

Page 163: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

context

appId

securityLevel

Methods

getTransportType()

Overridden abstract method which returns specific type of this transport

configuration.

public TransportType getTransportType()

Page 164: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

getContext()

Gets the context attached to this config

getService()

Gets the ComponentName of the router service attached to this config

setService( ComponentNameservice )

Supplies the config with the router service that should be bound to

public android.content.Context getContext()

public android.content.ComponentName getService()

public void setService(ComponentName service)

Page 165: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

service

the router service that should be bound to

setSecurityLevel( intsecurityLevel )

Sets the security level that should be used to verify a router service that is to

be bound

Parameters

securityLevel

the security level that will be used to perform certain tests

public void setSecurityLevel(int securityLevel)

Page 166: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

getSecurityLevel()

Get the securitly level that will be used to verify a router service before binding

setRequiresHighBandwidth(boolean requiresHighBandwidth )

Set whether or not this app requires the use of a transport that supports high

bandwidth services. Common use is when an app uses the video/audio

streaming services and there is no other integration that could be useful to the

user.

For example:

1. If an app intends to perform audio or video streaming and does not wish to

appear on the module when that isn't possible, a value of true should be sent.

2. If the same app wishes to appear on the module even when those services

aren't available a value of true should be sent. In this case, the app could

display a message prompting the user to "Please connect USB or Wifi" or it

could have a separate integration like giving turn by turn directions in place of

streaming the full navigation map.

public int getSecurityLevel()

public void setRequiresHighBandwidth(boolean requiresHighBandwidth)

Page 167: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

requiresHighBandwidth

whether the app should be treated as requiring a high bandwidthtransport.

requiresHighBandwidth()

Get the setting from this config to see whether the app should be treated as

requiring a high bandwidth transport.

setPrimaryTransports(java.util.List<TransportType>transports )

This will set the order in which a primary transport is determined to be

accepted or not. In the case of previous protocol versions ( < 5.1)

public boolean requiresHighBandwidth()

public void setPrimaryTransports(java.util.List<TransportType> transports)

Page 168: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

transports

list of transports that can be used as primary

getPrimaryTransports()

Get the list of primary transports that are set to be accepted by this config

setSecondaryTransports(java.util.List<TransportType>transports )

This will set the order in which a primary transport is determined to be

accepted or not. In the case of previous protocol versions ( < 5.1)

public java.util.List getPrimaryTransports()

public void setSecondaryTransports(java.util.List<TransportType> transports)

Page 169: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

transports

list of transports that can be used as secondary

getSecondaryTransports()

Get the list of secondary transports that are set to be accepted by this config

setTransportListener(MultiplexTransportConfig.TransportListenerlistener )

Set a lister for transport events. Useful when connected high bandwidth

services like audio or video streaming

public java.util.List getSecondaryTransports()

public void setTransportListener(MultiplexTransportConfig.TransportListener listener)

Page 170: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

listener

the TransportListener that will be called back when transport eventshappen

getTransportListener()

Getter for the supplied transport listener

Inherited Methods

From Class Methods

public com.smartdevicelink.transport.MultiplexTransportConfig.TransportListener getTransportListener()

java.lang.Object

getClass, hashCode, equals, clone,

toString, notify, notifyAll, wait, wait, wait,

finalize

Page 171: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

InterfaceMultiplexTransportConfig.TransportListener

Package

com.smartdevicelink.transport

Overview

Callback to be used if the state of the transports needs to be monitored for any

reason.

Quick Jump

Methods

• onTransportEvent(java.util.List<TransportRecord>connectedTransports,boolean audioStreamTransportAvail,booleanvideoStreamTransportAvail)

Methods

Page 172: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

onTransportEvent(java.util.List<TransportRecord>connectedTransports, booleanaudioStreamTransportAvail,booleanvideoStreamTransportAvail )

Gets called whenever there is a change in the available transports for use

Parameters

connectedTransports

the currently connected transports

audioStreamTransportAvail

true if there is either an audio streaming supported transport currentlyconnected or a transport is available to connect with. False if there isno transport connected to support audio streaming and no possibility inthe foreseeable future.

public void onTransportEvent(java.util.List<TransportRecord> connectedTransports,boolean audioStreamTransportAvail,boolean videoStreamTransportAvail)

Page 173: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

videoStreamTransportAvail

true if there is either a video streaming supported transport currentlyconnected or a transport is available to connect with. False if there isno transport connected to support video streaming and no possibility inthe foreseeable future.

Class MultiplexUsbTransport

Hierarchyjava.lang.Object

com.smartdevicelink.transport.MultiplexBaseTransport

Package

com.smartdevicelink.transport

Quick Jump

Fields

• MANUFACTURER• MODEL• VERSION• URI• SERIAL• DESCRIPTION

Page 174: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Methods

• start() • stop(int stateToTransitionTo) • write(byte[] out,int offset,int count)

Fields

MANUFACTURER

Constant Value

"manufacturer"

MODEL

Constant Value

public static final java.lang.String MANUFACTURER

public static final java.lang.String MODEL

Page 175: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

"model"

VERSION

Constant Value

"version"

URI

Constant Value

"uri"

public static final java.lang.String VERSION

public static final java.lang.String URI

Page 176: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

SERIAL

Constant Value

"serial"

DESCRIPTION

Constant Value

public static final java.lang.String SERIAL

public static final java.lang.String DESCRIPTION

Page 177: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

"description"

Inherited Fields

From Class Fields

Methods

start()

stop( int stateToTransitionTo )

com.smartdevicelink.transport.Multiplex

BaseTransport

STATE_NONE, STATE_LISTEN, STATE_CON

NECTING, STATE_CONNECTED, STATE_ER

ROR, LOG, DEVICE_NAME, DEVICE_ADDR

ESS, mState, handler, transportType, tran

sportRecord, currentlyConnectedDevice,

connectedDeviceName, connectedDevice

Address

public synchronized void start()

protected synchronized void stop(int stateToTransitionTo)

Page 178: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

stateToTransitionTo

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

Write to the ConnectedThread in an unsynchronized manner

Parameters

out

The bytes to write

offset

count

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

Page 179: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Inherited Methods

From Class Methods

Class PermissionManager

Hierarchyjava.lang.Object

BasePermissionManager

Package

com.smartdevicelink.managers.permission

Overview

PermissionManager gives the developer information about what permissions

are permitted in specific HMI level and helps developers setup listeners to be

com.smartdevicelink.transport.Multiplex

BaseTransport

setState, getAddress, getDeviceName, g

etTransportRecord, getState, isConnected

, stop, stop, write

java.lang.Object

getClass, hashCode, equals, clone,

toString, notify, notifyAll, wait, wait, wait,

finalize

Page 180: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

called when specific permissions become allowed.

This should be used through the com.smartdevicelink.managers.SdlManager

and not be instantiated by itself

Quick Jump

Constructors

• PermissionManager( ISdl internalInterface )

Constructors

PermissionManager( ISdlinternalInterface )

Creates a new instance of the PermissionManager

Parameters

internalInterface

public PermissionManager(ISdl internalInterface)

Page 181: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Methods

Inherited Methods

From Class Methods

Class ProxyBridge

Hierarchyjava.lang.Object

Package

com.smartdevicelink.managers

java.lang.Object

getClass, hashCode, equals, clone,

toString, notify, notifyAll, wait, wait, wait,

finalize

Page 182: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Quick Jump

Constructors

• ProxyBridge( ProxyBridge.LifecycleListener lifecycleListener )

Methods

• onProxyOpened() • onRegisterAppInterfaceResponse(RegisterAppInterfaceResponse

response)• onOnAppInterfaceUnregistered(OnAppInterfaceUnregistered

notification) • onUnregisterAppInterfaceResponse

(UnregisterAppInterfaceResponse response) • onRPCReceived(RPCMessage message) • addRpcListener(FunctionID id,OnRPCListener listener) • removeOnRPCListener(FunctionID id,OnRPCListener listener) • onProxyClosed(String info,Exception e,SdlDisconnectedReason

reason) • onServiceEnded(OnServiceEnded serviceEnded) • onServiceNACKed(OnServiceNACKed serviceNACKed) • onError(String info,Exception e) • onOnStreamRPC(OnStreamRPC notification) • onStreamRPCResponse(StreamRPCResponse response) • onOnHMIStatus(OnHMIStatus notification) • onGenericResponse(GenericResponse response) • onOnCommand(OnCommand notification) • onAddCommandResponse(AddCommandResponse response) • onAddSubMenuResponse(AddSubMenuResponse response) • onCreateInteractionChoiceSetResponse

(CreateInteractionChoiceSetResponse response) • onAlertResponse(AlertResponse response) • onDeleteCommandResponse(DeleteCommandResponse response)• onDeleteInteractionChoiceSetResponse

(DeleteInteractionChoiceSetResponse response) • onDeleteSubMenuResponse(DeleteSubMenuResponse response) • onPerformInteractionResponse(PerformInteractionResponse

response)• onResetGlobalPropertiesResponse(ResetGlobalPropertiesResponse

response)• onSetGlobalPropertiesResponse(SetGlobalPropertiesResponse

response)• onSetMediaClockTimerResponse(SetMediaClockTimerResponse

response)

Page 183: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

• onShowResponse(ShowResponse response) • onSpeakResponse(SpeakResponse response) • onOnButtonEvent(OnButtonEvent notification) • onOnButtonPress(OnButtonPress notification) • onSubscribeButtonResponse(SubscribeButtonResponse response) • onUnsubscribeButtonResponse(UnsubscribeButtonResponse

response)• onOnPermissionsChange(OnPermissionsChange notification) • onSubscribeVehicleDataResponse(SubscribeVehicleDataResponse

response)• onUnsubscribeVehicleDataResponse

(UnsubscribeVehicleDataResponse response) • onGetVehicleDataResponse(GetVehicleDataResponse response) • onOnVehicleData(OnVehicleData notification) • onPerformAudioPassThruResponse

(PerformAudioPassThruResponse response) • onEndAudioPassThruResponse(EndAudioPassThruResponse

response)• onOnAudioPassThru(OnAudioPassThru notification) • onPutFileResponse(PutFileResponse response) • onDeleteFileResponse(DeleteFileResponse response) • onListFilesResponse(ListFilesResponse response) • onSetAppIconResponse(SetAppIconResponse response) • onScrollableMessageResponse(ScrollableMessageResponse

response)• onChangeRegistrationResponse(ChangeRegistrationResponse

response)• onSetDisplayLayoutResponse(SetDisplayLayoutResponse

response)• onOnLanguageChange(OnLanguageChange notification) • onOnHashChange(OnHashChange notification) • onSliderResponse(SliderResponse response) • onOnDriverDistraction(OnDriverDistraction notification) • onOnTBTClientState(OnTBTClientState notification) • onOnSystemRequest(OnSystemRequest notification) • onSystemRequestResponse(SystemRequestResponse response) • onOnKeyboardInput(OnKeyboardInput notification) • onOnTouchEvent(OnTouchEvent notification) • onDiagnosticMessageResponse(DiagnosticMessageResponse

response)• onReadDIDResponse(ReadDIDResponse response) • onGetDTCsResponse(GetDTCsResponse response) • onOnLockScreenNotification(OnLockScreenStatus notification) • onDialNumberResponse(DialNumberResponse response) • onSendLocationResponse(SendLocationResponse response) • onShowConstantTbtResponse(ShowConstantTbtResponse

response)• onAlertManeuverResponse(AlertManeuverResponse response) • onUpdateTurnListResponse(UpdateTurnListResponse response) • onServiceDataACK(int dataSize) • onGetWayPointsResponse(GetWayPointsResponse response) • onSubscribeWayPointsResponse(SubscribeWayPointsResponse

response)• onUnsubscribeWayPointsResponse

(UnsubscribeWayPointsResponse response)

Page 184: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

• onOnWayPointChange(OnWayPointChange notification) • onGetSystemCapabilityResponse(GetSystemCapabilityResponse

response)• onGetInteriorVehicleDataResponse

(GetInteriorVehicleDataResponse response) • onButtonPressResponse(ButtonPressResponse response) • onSetInteriorVehicleDataResponse

(SetInteriorVehicleDataResponse response) • onOnInteriorVehicleData(OnInteriorVehicleData notification) • onSendHapticDataResponse(SendHapticDataResponse response) • onOnRCStatus(OnRCStatus notification) • onSetCloudAppProperties(SetCloudAppPropertiesResponse

response)• onGetCloudAppProperties(GetCloudAppPropertiesResponse

response)• onPublishAppServiceResponse(PublishAppServiceResponse

response)• onGetAppServiceDataResponse(GetAppServiceDataResponse

response)• onGetFileResponse(GetFileResponse response) • onPerformAppServiceInteractionResponse

(PerformAppServiceInteractionResponse response) • onOnAppServiceData(OnAppServiceData notification) • onOnSystemCapabilityUpdated(OnSystemCapabilityUpdated

notification)

Constructors

ProxyBridge(ProxyBridge.LifecycleListenerlifecycleListener )

public ProxyBridge(ProxyBridge.LifecycleListener lifecycleListener)

Page 185: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

lifecycleListener

Methods

onProxyOpened()

onRegisterAppInterfaceResponse( RegisterAppInterfaceResponseresponse )

public void onProxyOpened()

public void onRegisterAppInterfaceResponse(RegisterAppInterfaceResponse response)

Page 186: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

response

onOnAppInterfaceUnregistered(OnAppInterfaceUnregisterednotification )

Parameters

notification

public void onOnAppInterfaceUnregistered(OnAppInterfaceUnregistered notification)

Page 187: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

onUnregisterAppInterfaceResponse(UnregisterAppInterfaceResponseresponse )

Parameters

response

onRPCReceived( RPCMessagemessage )

public void onUnregisterAppInterfaceResponse(UnregisterAppInterfaceResponse response)

public boolean onRPCReceived(RPCMessage message)

Page 188: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

message

addRpcListener( FunctionID id,OnRPCListener listener )

Parameters

id

listener

protected void addRpcListener(FunctionID id,OnRPCListener listener)

Page 189: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

removeOnRPCListener(FunctionID id, OnRPCListenerlistener )

Parameters

id

listener

onProxyClosed( String info,Exception e,SdlDisconnectedReason reason )

public boolean removeOnRPCListener(FunctionID id,OnRPCListener listener)

public void onProxyClosed(String info,Exception e,SdlDisconnectedReason reason)

Page 190: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

info

e

reason

onServiceEnded(OnServiceEnded serviceEnded )

Parameters

serviceEnded

public void onServiceEnded(OnServiceEnded serviceEnded)

Page 191: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

onServiceNACKed(OnServiceNACKedserviceNACKed )

Parameters

serviceNACKed

onError( String info, Exception e )

public void onServiceNACKed(OnServiceNACKed serviceNACKed)

public void onError(String info,Exception e)

Page 192: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

info

e

onOnStreamRPC( OnStreamRPCnotification )

Parameters

notification

public void onOnStreamRPC(OnStreamRPC notification)

Page 193: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

onStreamRPCResponse(StreamRPCResponse response )

Parameters

response

onOnHMIStatus( OnHMIStatusnotification )

public void onStreamRPCResponse(StreamRPCResponse response)

public void onOnHMIStatus(OnHMIStatus notification)

Page 194: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

notification

onGenericResponse(GenericResponse response )

Parameters

response

onOnCommand( OnCommandnotification )

public void onGenericResponse(GenericResponse response)

Page 195: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

notification

onAddCommandResponse(AddCommandResponse response)

Parameters

response

public void onOnCommand(OnCommand notification)

public void onAddCommandResponse(AddCommandResponse response)

Page 196: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

onAddSubMenuResponse(AddSubMenuResponse response)

Parameters

response

onCreateInteractionChoiceSetResponse(CreateInteractionChoiceSetResponseresponse )

public void onAddSubMenuResponse(AddSubMenuResponse response)

public void onCreateInteractionChoiceSetResponse(CreateInteractionChoiceSetResponse response)

Page 197: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

response

onAlertResponse( AlertResponseresponse )

Parameters

response

onDeleteCommandResponse(DeleteCommandResponseresponse )

public void onAlertResponse(AlertResponse response)

Page 198: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

response

onDeleteInteractionChoiceSetResponse(DeleteInteractionChoiceSetResponseresponse )

Parameters

response

public void onDeleteCommandResponse(DeleteCommandResponse response)

public void onDeleteInteractionChoiceSetResponse(DeleteInteractionChoiceSetResponse response)

Page 199: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

onDeleteSubMenuResponse(DeleteSubMenuResponseresponse )

Parameters

response

onPerformInteractionResponse(PerformInteractionResponseresponse )

public void onDeleteSubMenuResponse(DeleteSubMenuResponse response)

public void onPerformInteractionResponse(PerformInteractionResponse response)

Page 200: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

response

onResetGlobalPropertiesResponse( ResetGlobalPropertiesResponseresponse )

Parameters

response

public void onResetGlobalPropertiesResponse(ResetGlobalPropertiesResponse response)

Page 201: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

onSetGlobalPropertiesResponse(SetGlobalPropertiesResponseresponse )

Parameters

response

onSetMediaClockTimerResponse(SetMediaClockTimerResponseresponse )

public void onSetGlobalPropertiesResponse(SetGlobalPropertiesResponse response)

public void onSetMediaClockTimerResponse(SetMediaClockTimerResponse response)

Page 202: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

response

onShowResponse(ShowResponse response )

Parameters

response

onSpeakResponse(SpeakResponse response )

public void onShowResponse(ShowResponse response)

Page 203: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

response

onOnButtonEvent(OnButtonEvent notification )

Parameters

notification

public void onSpeakResponse(SpeakResponse response)

public void onOnButtonEvent(OnButtonEvent notification)

Page 204: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

onOnButtonPress(OnButtonPress notification )

Parameters

notification

onSubscribeButtonResponse(SubscribeButtonResponseresponse )

public void onOnButtonPress(OnButtonPress notification)

public void onSubscribeButtonResponse(SubscribeButtonResponse response)

Page 205: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

response

onUnsubscribeButtonResponse(UnsubscribeButtonResponseresponse )

Parameters

response

public void onUnsubscribeButtonResponse(UnsubscribeButtonResponse response)

Page 206: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

onOnPermissionsChange(OnPermissionsChangenotification )

Parameters

notification

onSubscribeVehicleDataResponse( SubscribeVehicleDataResponseresponse )

public void onOnPermissionsChange(OnPermissionsChange notification)

public void onSubscribeVehicleDataResponse(SubscribeVehicleDataResponse response)

Page 207: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

response

onUnsubscribeVehicleDataResponse(UnsubscribeVehicleDataResponseresponse )

Parameters

response

public void onUnsubscribeVehicleDataResponse(UnsubscribeVehicleDataResponse response)

Page 208: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

onGetVehicleDataResponse(GetVehicleDataResponseresponse )

Parameters

response

onOnVehicleData(OnVehicleData notification )

public void onGetVehicleDataResponse(GetVehicleDataResponse response)

public void onOnVehicleData(OnVehicleData notification)

Page 209: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

notification

onPerformAudioPassThruResponse(PerformAudioPassThruResponseresponse )

Parameters

response

public void onPerformAudioPassThruResponse(PerformAudioPassThruResponse response)

Page 210: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

onEndAudioPassThruResponse(EndAudioPassThruResponseresponse )

Parameters

response

onOnAudioPassThru(OnAudioPassThru notification )

public void onEndAudioPassThruResponse(EndAudioPassThruResponse response)

public void onOnAudioPassThru(OnAudioPassThru notification)

Page 211: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

notification

onPutFileResponse(PutFileResponse response )

Parameters

response

onDeleteFileResponse(DeleteFileResponse response )

public void onPutFileResponse(PutFileResponse response)

Page 212: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

response

onListFilesResponse(ListFilesResponse response )

Parameters

response

public void onDeleteFileResponse(DeleteFileResponse response)

public void onListFilesResponse(ListFilesResponse response)

Page 213: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

onSetAppIconResponse(SetAppIconResponse response )

Parameters

response

onScrollableMessageResponse(ScrollableMessageResponseresponse )

public void onSetAppIconResponse(SetAppIconResponse response)

public void onScrollableMessageResponse(ScrollableMessageResponse response)

Page 214: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

response

onChangeRegistrationResponse(ChangeRegistrationResponseresponse )

Parameters

response

public void onChangeRegistrationResponse(ChangeRegistrationResponse response)

Page 215: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

onSetDisplayLayoutResponse(SetDisplayLayoutResponseresponse )

Parameters

response

onOnLanguageChange(OnLanguageChange notification)

public void onSetDisplayLayoutResponse(SetDisplayLayoutResponse response)

public void onOnLanguageChange(OnLanguageChange notification)

Page 216: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

notification

onOnHashChange(OnHashChange notification )

Parameters

notification

onSliderResponse(SliderResponse response )

public void onOnHashChange(OnHashChange notification)

Page 217: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

response

onOnDriverDistraction(OnDriverDistraction notification )

Parameters

notification

public void onSliderResponse(SliderResponse response)

public void onOnDriverDistraction(OnDriverDistraction notification)

Page 218: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

onOnTBTClientState(OnTBTClientState notification )

Parameters

notification

onOnSystemRequest(OnSystemRequest notification )

public void onOnTBTClientState(OnTBTClientState notification)

public void onOnSystemRequest(OnSystemRequest notification)

Page 219: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

notification

onSystemRequestResponse(SystemRequestResponseresponse )

Parameters

response

onOnKeyboardInput(OnKeyboardInput notification )

public void onSystemRequestResponse(SystemRequestResponse response)

Page 220: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

notification

onOnTouchEvent( OnTouchEventnotification )

Parameters

notification

public void onOnKeyboardInput(OnKeyboardInput notification)

public void onOnTouchEvent(OnTouchEvent notification)

Page 221: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

onDiagnosticMessageResponse(DiagnosticMessageResponseresponse )

Parameters

response

onReadDIDResponse(ReadDIDResponse response )

public void onDiagnosticMessageResponse(DiagnosticMessageResponse response)

public void onReadDIDResponse(ReadDIDResponse response)

Page 222: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

response

onGetDTCsResponse(GetDTCsResponse response )

Parameters

response

onOnLockScreenNotification(OnLockScreenStatus notification)

public void onGetDTCsResponse(GetDTCsResponse response)

Page 223: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

notification

onDialNumberResponse(DialNumberResponse response )

Parameters

response

public void onOnLockScreenNotification(OnLockScreenStatus notification)

public void onDialNumberResponse(DialNumberResponse response)

Page 224: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

onSendLocationResponse(SendLocationResponse response)

Parameters

response

onShowConstantTbtResponse(ShowConstantTbtResponseresponse )

public void onSendLocationResponse(SendLocationResponse response)

public void onShowConstantTbtResponse(ShowConstantTbtResponse response)

Page 225: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

response

onAlertManeuverResponse(AlertManeuverResponseresponse )

Parameters

response

public void onAlertManeuverResponse(AlertManeuverResponse response)

Page 226: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

onUpdateTurnListResponse(UpdateTurnListResponseresponse )

Parameters

response

onServiceDataACK( int dataSize )

public void onUpdateTurnListResponse(UpdateTurnListResponse response)

public void onServiceDataACK(int dataSize)

Page 227: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

dataSize

onGetWayPointsResponse(GetWayPointsResponse response)

Parameters

response

onSubscribeWayPointsResponse(SubscribeWayPointsResponseresponse )

public void onGetWayPointsResponse(GetWayPointsResponse response)

Page 228: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

response

onUnsubscribeWayPointsResponse(UnsubscribeWayPointsResponseresponse )

Parameters

response

public void onSubscribeWayPointsResponse(SubscribeWayPointsResponse response)

public void onUnsubscribeWayPointsResponse(UnsubscribeWayPointsResponse response)

Page 229: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

onOnWayPointChange(OnWayPointChange notification )

Parameters

notification

onGetSystemCapabilityResponse( GetSystemCapabilityResponseresponse )

public void onOnWayPointChange(OnWayPointChange notification)

public void onGetSystemCapabilityResponse(GetSystemCapabilityResponse response)

Page 230: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

response

onGetInteriorVehicleDataResponse(GetInteriorVehicleDataResponseresponse )

Parameters

response

public void onGetInteriorVehicleDataResponse(GetInteriorVehicleDataResponse response)

Page 231: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

onButtonPressResponse(ButtonPressResponse response )

Parameters

response

onSetInteriorVehicleDataResponse( SetInteriorVehicleDataResponseresponse )

public void onButtonPressResponse(ButtonPressResponse response)

public void onSetInteriorVehicleDataResponse(SetInteriorVehicleDataResponse response)

Page 232: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

response

onOnInteriorVehicleData(OnInteriorVehicleDatanotification )

Parameters

notification

onSendHapticDataResponse(SendHapticDataResponseresponse )

public void onOnInteriorVehicleData(OnInteriorVehicleData notification)

Page 233: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

response

onOnRCStatus( OnRCStatusnotification )

Parameters

notification

public void onSendHapticDataResponse(SendHapticDataResponse response)

public void onOnRCStatus(OnRCStatus notification)

Page 234: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

onSetCloudAppProperties(SetCloudAppPropertiesResponseresponse )

Parameters

response

onGetCloudAppProperties(GetCloudAppPropertiesResponseresponse )

public void onSetCloudAppProperties(SetCloudAppPropertiesResponse response)

public void onGetCloudAppProperties(GetCloudAppPropertiesResponse response)

Page 235: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

response

onPublishAppServiceResponse(PublishAppServiceResponseresponse )

Parameters

response

public void onPublishAppServiceResponse(PublishAppServiceResponse response)

Page 236: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

onGetAppServiceDataResponse(GetAppServiceDataResponseresponse )

Parameters

response

onGetFileResponse(GetFileResponse response )

public void onGetAppServiceDataResponse(GetAppServiceDataResponse response)

public void onGetFileResponse(GetFileResponse response)

Page 237: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

response

onPerformAppServiceInteractionResponse(PerformAppServiceInteractionResponseresponse )

Parameters

response

public void onPerformAppServiceInteractionResponse(PerformAppServiceInteractionResponse response)

Page 238: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

onOnAppServiceData(OnAppServiceData notification )

Parameters

notification

onOnSystemCapabilityUpdated(OnSystemCapabilityUpdatednotification )

public void onOnAppServiceData(OnAppServiceData notification)

public void onOnSystemCapabilityUpdated(OnSystemCapabilityUpdated notification)

Page 239: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

notification

Inherited Methods

From Class Methods

InterfaceProxyBridge.LifecycleListener

Package

com.smartdevicelink.managers

java.lang.Object

getClass, hashCode, equals, clone,

toString, notify, notifyAll, wait, wait, wait,

finalize

Page 240: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Quick Jump

Methods

• onProxyConnected() • onProxyClosed(String info,Exception e,SdlDisconnectedReason

reason) • onServiceEnded(OnServiceEnded serviceEnded) • onServiceNACKed(OnServiceNACKed serviceNACKed) • onError(String info,Exception e)

Methods

onProxyConnected()

onProxyClosed( String info,Exception e,SdlDisconnectedReason reason )

public void onProxyConnected()

public void onProxyClosed(String info,Exception e,SdlDisconnectedReason reason)

Page 241: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

info

e

reason

onServiceEnded(OnServiceEnded serviceEnded )

Parameters

serviceEnded

public void onServiceEnded(OnServiceEnded serviceEnded)

Page 242: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

onServiceNACKed(OnServiceNACKedserviceNACKed )

Parameters

serviceNACKed

onError( String info, Exception e )

public void onServiceNACKed(OnServiceNACKed serviceNACKed)

public void onError(String info,Exception e)

Page 243: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

info

e

Class RPCRequestFactory

Hierarchyjava.lang.Object

Package

com.smartdevicelink.proxy

Quick Jump

Fields

• SDL_MSG_MAJOR_VERSION• SDL_MSG_MINOR_VERSION

Page 244: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Constructors

• RPCRequestFactory()

Methods

• buildSystemRequest(String data,Integer correlationID) • buildSystemRequestLegacy(java.util.Vector<java.lang.String>

data,Integer correlationID) • buildAddCommand(Integer commandID,String menuText,Integer

parentID,Integer position,java.util.Vector<java.lang.String>vrCommands,Image cmdIcon,Integer correlationID)

• buildAddCommand(Integer commandID,String menuText,IntegerparentID,Integer position,java.util.Vector<java.lang.String>vrCommands,String IconValue,ImageType IconType,IntegercorrelationID)

• buildAddCommand(Integer commandID,String menuText,IntegerparentID,Integer position,java.util.Vector<java.lang.String>vrCommands,Integer correlationID)

• buildAddCommand(Integer commandID,StringmenuText,java.util.Vector<java.lang.String> vrCommands,IntegercorrelationID)

• buildAddCommand(IntegercommandID,java.util.Vector<java.lang.String>vrCommands,Integer correlationID)

• buildAddSubMenu(Integer menuID,String menuName,IntegercorrelationID)

• buildAddSubMenu(Integer menuID,String menuName,Integerposition,Integer correlationID)

• buildAlert(String ttsText,BooleanplayTone,java.util.Vector<SoftButton> softButtons,IntegercorrelationID)

• buildAlert(String alertText1,String alertText2,StringalertText3,Integer duration,java.util.Vector<SoftButton>softButtons,Integer correlationID)

• buildAlert(String ttsText,String alertText1,String alertText2,StringalertText3,Boolean playTone,Integerduration,java.util.Vector<SoftButton> softButtons,IntegercorrelationID)

• buildAlert(java.util.Vector<TTSChunk> chunks,BooleanplayTone,java.util.Vector<SoftButton> softButtons,IntegercorrelationID)

• buildAlert(java.util.Vector<TTSChunk> ttsChunks,StringalertText1,String alertText2,String alertText3,BooleanplayTone,Integer duration,java.util.Vector<SoftButton>softButtons,Integer correlationID)

• buildAlert(String ttsText,Boolean playTone,Integer correlationID) • buildAlert(String alertText1,String alertText2,Integer

duration,Integer correlationID) • buildAlert(String ttsText,String alertText1,String alertText2,Boolean

playTone,Integer duration,Integer correlationID)

Page 245: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

• buildAlert(java.util.Vector<TTSChunk> chunks,BooleanplayTone,Integer correlationID)

• buildAlert(java.util.Vector<TTSChunk> ttsChunks,StringalertText1,String alertText2,Boolean playTone,Integerduration,Integer correlationID)

• buildCreateInteractionChoiceSet(java.util.Vector<Choice>choiceSet,Integer interactionChoiceSetID,Integer correlationID)

• buildDeleteCommand(Integer commandID,Integer correlationID) • buildDeleteFile(String sdlFileName,Integer correlationID) • buildDeleteInteractionChoiceSet(Integer

interactionChoiceSetID,Integer correlationID) • buildDeleteSubMenu(Integer menuID,Integer correlationID) • buildListFiles(Integer correlationID) • buildPerformInteraction(java.util.Vector<TTSChunk>

initChunks,String displayText,java.util.Vector<java.lang.Integer>interactionChoiceSetIDList,java.util.Vector<TTSChunk>helpChunks,java.util.Vector<TTSChunk>timeoutChunks,InteractionMode interactionMode,Integertimeout,java.util.Vector<VrHelpItem> vrHelp,IntegercorrelationID)

• buildPerformInteraction(String initPrompt,StringdisplayText,java.util.Vector<java.lang.Integer>interactionChoiceSetIDList,String helpPrompt,StringtimeoutPrompt,InteractionMode interactionMode,Integertimeout,java.util.Vector<VrHelpItem> vrHelp,IntegercorrelationID)

• buildPerformInteraction(String initPrompt,StringdisplayText,Integer interactionChoiceSetID,StringhelpPrompt,String timeoutPrompt,InteractionModeinteractionMode,Integer timeout,java.util.Vector<VrHelpItem>vrHelp,Integer correlationID)

• buildPerformInteraction(String initPrompt,StringdisplayText,IntegerinteractionChoiceSetID,java.util.Vector<VrHelpItem>vrHelp,Integer correlationID)

• buildPerformInteraction(java.util.Vector<TTSChunk>initChunks,String displayText,java.util.Vector<java.lang.Integer>interactionChoiceSetIDList,java.util.Vector<TTSChunk>helpChunks,java.util.Vector<TTSChunk>timeoutChunks,InteractionMode interactionMode,Integertimeout,Integer correlationID)

• buildPerformInteraction(String initPrompt,StringdisplayText,java.util.Vector<java.lang.Integer>interactionChoiceSetIDList,String helpPrompt,StringtimeoutPrompt,InteractionMode interactionMode,Integertimeout,Integer correlationID)

• buildPerformInteraction(String initPrompt,StringdisplayText,Integer interactionChoiceSetID,StringhelpPrompt,String timeoutPrompt,InteractionModeinteractionMode,Integer timeout,Integer correlationID)

• buildPerformInteraction(String initPrompt,StringdisplayText,Integer interactionChoiceSetID,Integer correlationID)

• buildPerformInteraction(java.util.Vector<TTSChunk>initChunks,String displayText,java.util.Vector<java.lang.Integer>interactionChoiceSetIDList,java.util.Vector<TTSChunk>

Page 246: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

helpChunks,InteractionMode interactionMode,Integertimeout,Integer correlationID) Deprecated

• buildPerformInteraction(String initPrompt,StringdisplayText,java.util.Vector<java.lang.Integer>interactionChoiceSetIDList,String helpPrompt,InteractionModeinteractionMode,Integer timeout,Integer correlationID) Deprecated

• buildPutFile(String sdlFileName,FileType fileType,BooleanpersistentFile,byte[] fileData,Integer correlationID)

• buildPutFile(String sdlFileName,Integer iOffset,Integer iLength) Deprecated

• buildPutFile(String sdlFileName,Long iOffset,Long iLength) • buildPutFile(String syncFileName,Integer iOffset,Integer

iLength,FileType fileType,Boolean bPersistentFile,BooleanbSystemFile) Deprecated

• buildPutFile(String syncFileName,Long iOffset,LongiLength,FileType fileType,Boolean bPersistentFile,BooleanbSystemFile)

• buildPutFile(String sdlFileName,Integer iOffset,IntegeriLength,FileType fileType,Boolean bPersistentFile,BooleanbSystemFile,Integer iCorrelationID) Deprecated

• buildPutFile(String sdlFileName,Long iOffset,Long iLength,FileTypefileType,Boolean bPersistentFile,Boolean bSystemFile,BooleanisPayloadProtected,Integer iCorrelationID)

• buildRegisterAppInterface(String appName,String appID) • buildRegisterAppInterface(String appName,Boolean

isMediaApp,String appID) • buildRegisterAppInterface(SdlMsgVersion sdlMsgVersion,String

appName,java.util.Vector<TTSChunk> ttsName,StringngnMediaScreenAppName,java.util.Vector<java.lang.String>vrSynonyms,Boolean isMediaApp,LanguagelanguageDesired,LanguagehmiDisplayLanguageDesired,java.util.Vector<AppHMIType>appType,String appID,Integer correlationID,DeviceInfo deviceInfo)

• buildSetAppIcon(String sdlFileName,Integer correlationID) • buildSetGlobalProperties(String helpPrompt,String

timeoutPrompt,Integer correlationID) • buildSetGlobalProperties(java.util.Vector<TTSChunk>

helpChunks,java.util.Vector<TTSChunk> timeoutChunks,IntegercorrelationID)

• buildSetGlobalProperties(String helpPrompt,StringtimeoutPrompt,String vrHelpTitle,java.util.Vector<VrHelpItem>vrHelp,Integer correlationID)

• buildSetGlobalProperties(java.util.Vector<TTSChunk>helpChunks,java.util.Vector<TTSChunk> timeoutChunks,StringvrHelpTitle,java.util.Vector<VrHelpItem> vrHelp,IntegercorrelationID)

• buildSetMediaClockTimer(Integer hours,Integer minutes,Integerseconds,UpdateMode updateMode,Integer correlationID)

• buildSetMediaClockTimer(UpdateMode updateMode,IntegercorrelationID) Deprecated

• buildShow(String mainText1,String mainText2,StringmainText3,String mainText4,String statusBar,StringmediaClock,String mediaTrack,Imagegraphic,java.util.Vector<SoftButton>

Page 247: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

softButtons,java.util.Vector<java.lang.String>customPresets,TextAlignment alignment,Integer correlationID)

• buildShow(String mainText1,String mainText2,StringmainText3,String mainText4,TextAlignment alignment,IntegercorrelationID)

• buildShow(String mainText1,String mainText2,StringstatusBar,String mediaClock,String mediaTrack,TextAlignmentalignment,Integer correlationID)

• buildShow(String mainText1,String mainText2,TextAlignmentalignment,Integer correlationID)

• buildSpeak(String ttsText,Integer correlationID) • buildSpeak(java.util.Vector<TTSChunk> ttsChunks,Integer

correlationID) • buildSubscribeButton(ButtonName buttonName,Integer

correlationID) • buildUnregisterAppInterface(Integer correlationID) • buildUnsubscribeButton(ButtonName buttonName,Integer

correlationID) • BuildSubscribeVehicleData(boolean gps,boolean speed,boolean

rpm,boolean fuelLevel,boolean fuelLevel_State,booleaninstantFuelConsumption,boolean externalTemperature,booleanprndl,boolean tirePressure,boolean odometer,booleanbeltStatus,boolean bodyInformation,boolean deviceStatus,booleandriverBraking,Integer correlationID)

• BuildUnsubscribeVehicleData(boolean gps,boolean speed,booleanrpm,boolean fuelLevel,boolean fuelLevel_State,booleaninstantFuelConsumption,boolean externalTemperature,booleanprndl,boolean tirePressure,boolean odometer,booleanbeltStatus,boolean bodyInformation,boolean deviceStatus,booleandriverBraking,Integer correlationID)

• BuildGetVehicleData(boolean gps,boolean speed,booleanrpm,boolean fuelLevel,boolean fuelLevel_State,booleaninstantFuelConsumption,boolean externalTemperature,booleanvin,boolean prndl,boolean tirePressure,boolean odometer,booleanbeltStatus,boolean bodyInformation,boolean deviceStatus,booleandriverBraking,Integer correlationID)

• BuildScrollableMessage(String scrollableMessageBody,Integertimeout,java.util.Vector<SoftButton> softButtons,IntegercorrelationID)

• BuildSlider(Integer numTicks,Integer position,StringsliderHeader,java.util.Vector<java.lang.String>sliderFooter,Integer timeout,Integer correlationID)

• BuildChangeRegistration(Language language,LanguagehmiDisplayLanguage,Integer correlationID)

• BuildSetDisplayLayout(String displayLayout,Integer correlationID) • BuildPerformAudioPassThru(String ttsText,String

audioPassThruDisplayText1,StringaudioPassThruDisplayText2,SamplingRate samplingRate,IntegermaxDuration,BitsPerSample bitsPerSample,AudioTypeaudioType,Boolean muteAudio,Integer correlationID)

• BuildPerformAudioPassThru(java.util.Vector<TTSChunk>initialPrompt,String audioPassThruDisplayText1,StringaudioPassThruDisplayText2,SamplingRate samplingRate,IntegermaxDuration,BitsPerSample bitsPerSample,AudioTypeaudioType,Boolean muteAudio,Integer correlationID)

Page 248: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

• BuildEndAudioPassThru(Integer correlationID) • BuildDeviceInfo(String carrierName)

Fields

SDL_MSG_MAJOR_VERSION

Constant Value

1

SDL_MSG_MINOR_VERSION

Constructors

public static final int SDL_MSG_MAJOR_VERSION

public static final int SDL_MSG_MINOR_VERSION

Page 249: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

RPCRequestFactory()

Methods

buildSystemRequest( Stringdata, Integer correlationID )

Parameters

data

correlationID

public RPCRequestFactory()

public static SystemRequest buildSystemRequest(String data,Integer correlationID)

Page 250: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

buildSystemRequestLegacy(java.util.Vector<java.lang.String>data, Integer correlationID )

Parameters

data

correlationID

public static SystemRequest buildSystemRequestLegacy(java.util.Vector<java.lang.String> data,Integer correlationID)

Page 251: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

buildAddCommand( IntegercommandID, String menuText,Integer parentID, Integerposition,java.util.Vector<java.lang.String>vrCommands, Image cmdIcon,Integer correlationID )

Parameters

commandID

menuText

parentID

public static AddCommand buildAddCommand(Integer commandID,String menuText,Integer parentID,Integer position,java.util.Vector<java.lang.String> vrCommands,Image cmdIcon,Integer correlationID)

Page 252: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

position

vrCommands

cmdIcon

correlationID

buildAddCommand( IntegercommandID, String menuText,Integer parentID, Integerposition,java.util.Vector<java.lang.String>vrCommands, String IconValue,ImageType IconType, IntegercorrelationID )

public static AddCommand buildAddCommand(Integer commandID,String menuText,Integer parentID,Integer position,java.util.Vector<java.lang.String> vrCommands,String IconValue,ImageType IconType,Integer correlationID)

Page 253: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

commandID

menuText

parentID

position

vrCommands

IconValue

IconType

correlationID

Page 254: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

buildAddCommand( IntegercommandID, String menuText,Integer parentID, Integerposition,java.util.Vector<java.lang.String>vrCommands, IntegercorrelationID )

Parameters

commandID

menuText

parentID

public static AddCommand buildAddCommand(Integer commandID,String menuText,Integer parentID,Integer position,java.util.Vector<java.lang.String> vrCommands,Integer correlationID)

Page 255: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

position

vrCommands

correlationID

buildAddCommand( IntegercommandID, String menuText,java.util.Vector<java.lang.String>vrCommands, IntegercorrelationID )

Parameters

commandID

public static AddCommand buildAddCommand(Integer commandID,String menuText,java.util.Vector<java.lang.String> vrCommands,Integer correlationID)

Page 256: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

menuText

vrCommands

correlationID

buildAddCommand( IntegercommandID,java.util.Vector<java.lang.String>vrCommands, IntegercorrelationID )

Parameters

commandID

public static AddCommand buildAddCommand(Integer commandID,java.util.Vector<java.lang.String> vrCommands,Integer correlationID)

Page 257: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

vrCommands

correlationID

buildAddSubMenu( IntegermenuID, String menuName,Integer correlationID )

Parameters

menuID

menuName

correlationID

public static AddSubMenu buildAddSubMenu(Integer menuID,String menuName,Integer correlationID)

Page 258: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

buildAddSubMenu( IntegermenuID, String menuName,Integer position, IntegercorrelationID )

Parameters

menuID

menuName

position

correlationID

public static AddSubMenu buildAddSubMenu(Integer menuID,String menuName,Integer position,Integer correlationID)

Page 259: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

buildAlert( String ttsText,Boolean playTone,java.util.Vector<SoftButton>softButtons, Integer correlationID)

Parameters

ttsText

playTone

softButtons

correlationID

public static Alert buildAlert(String ttsText,Boolean playTone,java.util.Vector<SoftButton> softButtons,Integer correlationID)

Page 260: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

buildAlert( String alertText1,String alertText2, StringalertText3, Integer duration,java.util.Vector<SoftButton>softButtons, Integer correlationID)

Parameters

alertText1

alertText2

alertText3

duration

public static Alert buildAlert(String alertText1,String alertText2,String alertText3,Integer duration,java.util.Vector<SoftButton> softButtons,Integer correlationID)

Page 261: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

softButtons

correlationID

buildAlert( String ttsText, StringalertText1, String alertText2,String alertText3, BooleanplayTone, Integer duration,java.util.Vector<SoftButton>softButtons, Integer correlationID)

Parameters

ttsText

public static Alert buildAlert(String ttsText,String alertText1,String alertText2,String alertText3,Boolean playTone,Integer duration,java.util.Vector<SoftButton> softButtons,Integer correlationID)

Page 262: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

alertText1

alertText2

alertText3

playTone

duration

softButtons

correlationID

Page 263: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

buildAlert(java.util.Vector<TTSChunk>chunks, Boolean playTone,java.util.Vector<SoftButton>softButtons, Integer correlationID)

Parameters

chunks

playTone

softButtons

correlationID

public static Alert buildAlert(java.util.Vector<TTSChunk> chunks,Boolean playTone,java.util.Vector<SoftButton> softButtons,Integer correlationID)

Page 264: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

buildAlert(java.util.Vector<TTSChunk>ttsChunks, String alertText1,String alertText2, StringalertText3, Boolean playTone,Integer duration,java.util.Vector<SoftButton>softButtons, Integer correlationID)

Parameters

ttsChunks

alertText1

public static Alert buildAlert(java.util.Vector<TTSChunk> ttsChunks,String alertText1,String alertText2,String alertText3,Boolean playTone,Integer duration,java.util.Vector<SoftButton> softButtons,Integer correlationID)

Page 265: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

alertText2

alertText3

playTone

duration

softButtons

correlationID

buildAlert( String ttsText,Boolean playTone, IntegercorrelationID )

public static Alert buildAlert(String ttsText,Boolean playTone,Integer correlationID)

Page 266: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

ttsText

playTone

correlationID

buildAlert( String alertText1,String alertText2, Integerduration, Integer correlationID )

Parameters

alertText1

public static Alert buildAlert(String alertText1,String alertText2,Integer duration,Integer correlationID)

Page 267: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

alertText2

duration

correlationID

buildAlert( String ttsText, StringalertText1, String alertText2,Boolean playTone, Integerduration, Integer correlationID )

Parameters

ttsText

public static Alert buildAlert(String ttsText,String alertText1,String alertText2,Boolean playTone,Integer duration,Integer correlationID)

Page 268: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

alertText1

alertText2

playTone

duration

correlationID

buildAlert(java.util.Vector<TTSChunk>chunks, Boolean playTone,Integer correlationID )

public static Alert buildAlert(java.util.Vector<TTSChunk> chunks,Boolean playTone,Integer correlationID)

Page 269: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

chunks

playTone

correlationID

buildAlert(java.util.Vector<TTSChunk>ttsChunks, String alertText1,String alertText2, BooleanplayTone, Integer duration,Integer correlationID )

public static Alert buildAlert(java.util.Vector<TTSChunk> ttsChunks,String alertText1,String alertText2,Boolean playTone,Integer duration,Integer correlationID)

Page 270: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

ttsChunks

alertText1

alertText2

playTone

duration

correlationID

Page 271: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

buildCreateInteractionChoiceSet(java.util.Vector<Choice>choiceSet, IntegerinteractionChoiceSetID, IntegercorrelationID )

Parameters

choiceSet

interactionChoiceSetID

correlationID

public static CreateInteractionChoiceSet buildCreateInteractionChoiceSet(java.util.Vector<Choice> choiceSet,Integer interactionChoiceSetID,Integer correlationID)

Page 272: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

buildDeleteCommand( IntegercommandID, IntegercorrelationID )

Parameters

commandID

correlationID

buildDeleteFile( StringsdlFileName, IntegercorrelationID )

public static DeleteCommand buildDeleteCommand(Integer commandID,Integer correlationID)

public static DeleteFile buildDeleteFile(String sdlFileName,Integer correlationID)

Page 273: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

sdlFileName

correlationID

buildDeleteInteractionChoiceSet(Integer interactionChoiceSetID,Integer correlationID )

Parameters

interactionChoiceSetID

public static DeleteInteractionChoiceSet buildDeleteInteractionChoiceSet(Integer interactionChoiceSetID,Integer correlationID)

Page 274: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

correlationID

buildDeleteSubMenu( IntegermenuID, Integer correlationID )

Parameters

menuID

correlationID

buildListFiles( IntegercorrelationID )

public static DeleteSubMenu buildDeleteSubMenu(Integer menuID,Integer correlationID)

public static ListFiles buildListFiles(Integer correlationID)

Page 275: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

correlationID

buildPerformInteraction(java.util.Vector<TTSChunk>initChunks, String displayText,java.util.Vector<java.lang.Integer>interactionChoiceSetIDList,java.util.Vector<TTSChunk>helpChunks,java.util.Vector<TTSChunk>timeoutChunks, InteractionModeinteractionMode, Integertimeout,java.util.Vector<VrHelpItem>vrHelp, Integer correlationID )

Page 276: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

initChunks

displayText

interactionChoiceSetIDList

helpChunks

timeoutChunks

interactionMode

public static PerformInteraction buildPerformInteraction(java.util.Vector<TTSChunk> initChunks,String displayText,java.util.Vector<java.lang.Integer> interactionChoiceSetIDList,java.util.Vector<TTSChunk> helpChunks,java.util.Vector<TTSChunk> timeoutChunks,InteractionMode interactionMode,Integer timeout,java.util.Vector<VrHelpItem> vrHelp,Integer correlationID)

Page 277: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

timeout

vrHelp

correlationID

buildPerformInteraction( StringinitPrompt, String displayText,java.util.Vector<java.lang.Integer>interactionChoiceSetIDList,String helpPrompt, StringtimeoutPrompt, InteractionModeinteractionMode, Integertimeout,java.util.Vector<VrHelpItem>vrHelp, Integer correlationID )

public static PerformInteraction buildPerformInteraction(String initPrompt,String displayText,java.util.Vector<java.lang.Integer> interactionChoiceSetIDList,String helpPrompt,String timeoutPrompt,InteractionMode interactionMode,Integer timeout,java.util.Vector<VrHelpItem> vrHelp,Integer correlationID)

Page 278: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

initPrompt

displayText

interactionChoiceSetIDList

helpPrompt

timeoutPrompt

interactionMode

timeout

vrHelp

Page 279: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

correlationID

buildPerformInteraction( StringinitPrompt, String displayText,Integer interactionChoiceSetID,String helpPrompt, StringtimeoutPrompt, InteractionModeinteractionMode, Integertimeout,java.util.Vector<VrHelpItem>vrHelp, Integer correlationID )

Parameters

initPrompt

public static PerformInteraction buildPerformInteraction(String initPrompt,String displayText,Integer interactionChoiceSetID,String helpPrompt,String timeoutPrompt,InteractionMode interactionMode,Integer timeout,java.util.Vector<VrHelpItem> vrHelp,Integer correlationID)

Page 280: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

displayText

interactionChoiceSetID

helpPrompt

timeoutPrompt

interactionMode

timeout

vrHelp

correlationID

Page 281: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

buildPerformInteraction( StringinitPrompt, String displayText,Integer interactionChoiceSetID,java.util.Vector<VrHelpItem>vrHelp, Integer correlationID )

Parameters

initPrompt

displayText

interactionChoiceSetID

vrHelp

public static PerformInteraction buildPerformInteraction(String initPrompt,String displayText,Integer interactionChoiceSetID,java.util.Vector<VrHelpItem> vrHelp,Integer correlationID)

Page 282: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

correlationID

buildPerformInteraction(java.util.Vector<TTSChunk>initChunks, String displayText,java.util.Vector<java.lang.Integer>interactionChoiceSetIDList,java.util.Vector<TTSChunk>helpChunks,java.util.Vector<TTSChunk>timeoutChunks, InteractionModeinteractionMode, Integertimeout, Integer correlationID )

public static PerformInteraction buildPerformInteraction(java.util.Vector<TTSChunk> initChunks,String displayText,java.util.Vector<java.lang.Integer> interactionChoiceSetIDList,java.util.Vector<TTSChunk> helpChunks,java.util.Vector<TTSChunk> timeoutChunks,InteractionMode interactionMode,Integer timeout,Integer correlationID)

Page 283: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

initChunks

displayText

interactionChoiceSetIDList

helpChunks

timeoutChunks

interactionMode

timeout

correlationID

Page 284: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

buildPerformInteraction( StringinitPrompt, String displayText,java.util.Vector<java.lang.Integer>interactionChoiceSetIDList,String helpPrompt, StringtimeoutPrompt, InteractionModeinteractionMode, Integertimeout, Integer correlationID )

Parameters

initPrompt

displayText

interactionChoiceSetIDList

public static PerformInteraction buildPerformInteraction(String initPrompt,String displayText,java.util.Vector<java.lang.Integer> interactionChoiceSetIDList,String helpPrompt,String timeoutPrompt,InteractionMode interactionMode,Integer timeout,Integer correlationID)

Page 285: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

helpPrompt

timeoutPrompt

interactionMode

timeout

correlationID

buildPerformInteraction( StringinitPrompt, String displayText,Integer interactionChoiceSetID,String helpPrompt, StringtimeoutPrompt, InteractionModeinteractionMode, Integertimeout, Integer correlationID )

Page 286: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

initPrompt

displayText

interactionChoiceSetID

helpPrompt

timeoutPrompt

interactionMode

timeout

public static PerformInteraction buildPerformInteraction(String initPrompt,String displayText,Integer interactionChoiceSetID,String helpPrompt,String timeoutPrompt,InteractionMode interactionMode,Integer timeout,Integer correlationID)

Page 287: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

correlationID

buildPerformInteraction( StringinitPrompt, String displayText,Integer interactionChoiceSetID,Integer correlationID )

Parameters

initPrompt

displayText

interactionChoiceSetID

public static PerformInteraction buildPerformInteraction(String initPrompt,String displayText,Integer interactionChoiceSetID,Integer correlationID)

Page 288: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

correlationID

buildPerformInteraction(java.util.Vector<TTSChunk>initChunks, String displayText,java.util.Vector<java.lang.Integer>interactionChoiceSetIDList,java.util.Vector<TTSChunk>helpChunks, InteractionModeinteractionMode, Integertimeout, Integer correlationID )

Deprecated

public static PerformInteraction buildPerformInteraction(java.util.Vector<TTSChunk> initChunks,String displayText,java.util.Vector<java.lang.Integer> interactionChoiceSetIDList,java.util.Vector<TTSChunk> helpChunks,InteractionMode interactionMode,Integer timeout,Integer correlationID)

Page 289: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

initChunks

displayText

interactionChoiceSetIDList

helpChunks

interactionMode

timeout

correlationID

Page 290: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

buildPerformInteraction( StringinitPrompt, String displayText,java.util.Vector<java.lang.Integer>interactionChoiceSetIDList,String helpPrompt,InteractionModeinteractionMode, Integertimeout, Integer correlationID )

Deprecated

Parameters

initPrompt

displayText

public static PerformInteraction buildPerformInteraction(String initPrompt,String displayText,java.util.Vector<java.lang.Integer> interactionChoiceSetIDList,String helpPrompt,InteractionMode interactionMode,Integer timeout,Integer correlationID)

Page 291: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

interactionChoiceSetIDList

helpPrompt

interactionMode

timeout

correlationID

buildPutFile( String sdlFileName,FileType fileType, BooleanpersistentFile, byte[] fileData,Integer correlationID )

public static PutFile buildPutFile(String sdlFileName,FileType fileType,Boolean persistentFile,byte[] fileData,Integer correlationID)

Page 292: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

sdlFileName

fileType

persistentFile

fileData

correlationID

buildPutFile( String sdlFileName,Integer iOffset, Integer iLength )

Deprecated

public static PutFile buildPutFile(String sdlFileName,Integer iOffset,Integer iLength)

Page 293: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

sdlFileName

iOffset

iLength

buildPutFile( String sdlFileName,Long iOffset, Long iLength )

Parameters

sdlFileName

public static PutFile buildPutFile(String sdlFileName,Long iOffset,Long iLength)

Page 294: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

iOffset

iLength

buildPutFile( StringsyncFileName, Integer iOffset,Integer iLength, FileType fileType,Boolean bPersistentFile, BooleanbSystemFile )

Deprecated

Parameters

syncFileName

public static PutFile buildPutFile(String syncFileName,Integer iOffset,Integer iLength,FileType fileType,Boolean bPersistentFile,Boolean bSystemFile)

Page 295: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

iOffset

iLength

fileType

bPersistentFile

bSystemFile

buildPutFile( StringsyncFileName, Long iOffset, LongiLength, FileType fileType,Boolean bPersistentFile, BooleanbSystemFile )

public static PutFile buildPutFile(String syncFileName,Long iOffset,Long iLength,FileType fileType,Boolean bPersistentFile,Boolean bSystemFile)

Page 296: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

syncFileName

iOffset

iLength

fileType

bPersistentFile

bSystemFile

Page 297: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

buildPutFile( String sdlFileName,Integer iOffset, Integer iLength,FileType fileType, BooleanbPersistentFile, BooleanbSystemFile, IntegeriCorrelationID )

Deprecated

Parameters

sdlFileName

iOffset

iLength

public static PutFile buildPutFile(String sdlFileName,Integer iOffset,Integer iLength,FileType fileType,Boolean bPersistentFile,Boolean bSystemFile,Integer iCorrelationID)

Page 298: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

fileType

bPersistentFile

bSystemFile

iCorrelationID

buildPutFile( String sdlFileName,Long iOffset, Long iLength,FileType fileType, BooleanbPersistentFile, BooleanbSystemFile, BooleanisPayloadProtected, IntegeriCorrelationID )

public static PutFile buildPutFile(String sdlFileName,Long iOffset,Long iLength,FileType fileType,Boolean bPersistentFile,Boolean bSystemFile,Boolean isPayloadProtected,Integer iCorrelationID)

Page 299: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

sdlFileName

iOffset

iLength

fileType

bPersistentFile

bSystemFile

isPayloadProtected

iCorrelationID

Page 300: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

buildRegisterAppInterface(String appName, String appID )

Parameters

appName

appID

buildRegisterAppInterface(String appName, BooleanisMediaApp, String appID )

public static RegisterAppInterface buildRegisterAppInterface(String appName,String appID)

public static RegisterAppInterface buildRegisterAppInterface(String appName,Boolean isMediaApp,String appID)

Page 301: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

appName

isMediaApp

appID

Page 302: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

buildRegisterAppInterface(SdlMsgVersion sdlMsgVersion,String appName,java.util.Vector<TTSChunk>ttsName, StringngnMediaScreenAppName,java.util.Vector<java.lang.String>vrSynonyms, BooleanisMediaApp, LanguagelanguageDesired, LanguagehmiDisplayLanguageDesired,java.util.Vector<AppHMIType>appType, String appID, IntegercorrelationID, DeviceInfodeviceInfo )

public static RegisterAppInterface buildRegisterAppInterface(SdlMsgVersion sdlMsgVersion,String appName,java.util.Vector<TTSChunk> ttsName,String ngnMediaScreenAppName,java.util.Vector<java.lang.String> vrSynonyms,Boolean isMediaApp,Language languageDesired,Language hmiDisplayLanguageDesired,java.util.Vector<AppHMIType> appType,String appID,Integer correlationID,DeviceInfo deviceInfo)

Page 303: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

sdlMsgVersion

appName

ttsName

ngnMediaScreenAppName

vrSynonyms

isMediaApp

languageDesired

hmiDisplayLanguageDesired

Page 304: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

appType

appID

correlationID

deviceInfo

buildSetAppIcon( StringsdlFileName, IntegercorrelationID )

Parameters

sdlFileName

public static SetAppIcon buildSetAppIcon(String sdlFileName,Integer correlationID)

Page 305: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

correlationID

buildSetGlobalProperties( StringhelpPrompt, StringtimeoutPrompt, IntegercorrelationID )

Parameters

helpPrompt

timeoutPrompt

correlationID

public static SetGlobalProperties buildSetGlobalProperties(String helpPrompt,String timeoutPrompt,Integer correlationID)

Page 306: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

buildSetGlobalProperties(java.util.Vector<TTSChunk>helpChunks,java.util.Vector<TTSChunk>timeoutChunks, IntegercorrelationID )

Parameters

helpChunks

timeoutChunks

correlationID

public static SetGlobalProperties buildSetGlobalProperties(java.util.Vector<TTSChunk> helpChunks,java.util.Vector<TTSChunk> timeoutChunks,Integer correlationID)

Page 307: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

buildSetGlobalProperties( StringhelpPrompt, StringtimeoutPrompt, StringvrHelpTitle,java.util.Vector<VrHelpItem>vrHelp, Integer correlationID )

Parameters

helpPrompt

timeoutPrompt

vrHelpTitle

vrHelp

public static SetGlobalProperties buildSetGlobalProperties(String helpPrompt,String timeoutPrompt,String vrHelpTitle,java.util.Vector<VrHelpItem> vrHelp,Integer correlationID)

Page 308: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

correlationID

buildSetGlobalProperties(java.util.Vector<TTSChunk>helpChunks,java.util.Vector<TTSChunk>timeoutChunks, StringvrHelpTitle,java.util.Vector<VrHelpItem>vrHelp, Integer correlationID )

Parameters

helpChunks

public static SetGlobalProperties buildSetGlobalProperties(java.util.Vector<TTSChunk> helpChunks,java.util.Vector<TTSChunk> timeoutChunks,String vrHelpTitle,java.util.Vector<VrHelpItem> vrHelp,Integer correlationID)

Page 309: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

timeoutChunks

vrHelpTitle

vrHelp

correlationID

buildSetMediaClockTimer(Integer hours, Integer minutes,Integer seconds, UpdateModeupdateMode, IntegercorrelationID )

public static SetMediaClockTimer buildSetMediaClockTimer(Integer hours,Integer minutes,Integer seconds,UpdateMode updateMode,Integer correlationID)

Page 310: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

hours

minutes

seconds

updateMode

correlationID

buildSetMediaClockTimer(UpdateMode updateMode,Integer correlationID )

Deprecated

Page 311: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

updateMode

correlationID

public static SetMediaClockTimer buildSetMediaClockTimer(UpdateMode updateMode,Integer correlationID)

Page 312: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

buildShow( String mainText1,String mainText2, StringmainText3, String mainText4,String statusBar, StringmediaClock, String mediaTrack,Image graphic,java.util.Vector<SoftButton>softButtons,java.util.Vector<java.lang.String>customPresets, TextAlignmentalignment, Integer correlationID )

Parameters

mainText1

public static Show buildShow(String mainText1,String mainText2,String mainText3,String mainText4,String statusBar,String mediaClock,String mediaTrack,Image graphic,java.util.Vector<SoftButton> softButtons,java.util.Vector<java.lang.String> customPresets,TextAlignment alignment,Integer correlationID)

Page 313: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

mainText2

mainText3

mainText4

statusBar

mediaClock

mediaTrack

graphic

softButtons

customPresets

alignment

Page 314: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

correlationID

buildShow( String mainText1,String mainText2, StringmainText3, String mainText4,TextAlignment alignment, IntegercorrelationID )

Parameters

mainText1

mainText2

mainText3

public static Show buildShow(String mainText1,String mainText2,String mainText3,String mainText4,TextAlignment alignment,Integer correlationID)

Page 315: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

mainText4

alignment

correlationID

buildShow( String mainText1,String mainText2, StringstatusBar, String mediaClock,String mediaTrack,TextAlignment alignment, IntegercorrelationID )

public static Show buildShow(String mainText1,String mainText2,String statusBar,String mediaClock,String mediaTrack,TextAlignment alignment,Integer correlationID)

Page 316: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

mainText1

mainText2

statusBar

mediaClock

mediaTrack

alignment

correlationID

Page 317: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

buildShow( String mainText1,String mainText2, TextAlignmentalignment, Integer correlationID )

Parameters

mainText1

mainText2

alignment

correlationID

public static Show buildShow(String mainText1,String mainText2,TextAlignment alignment,Integer correlationID)

Page 318: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

buildSpeak( String ttsText,Integer correlationID )

Parameters

ttsText

correlationID

buildSpeak(java.util.Vector<TTSChunk>ttsChunks, Integer correlationID )

public static Speak buildSpeak(String ttsText,Integer correlationID)

public static Speak buildSpeak(java.util.Vector<TTSChunk> ttsChunks,Integer correlationID)

Page 319: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

ttsChunks

correlationID

buildSubscribeButton(ButtonName buttonName,Integer correlationID )

Parameters

buttonName

correlationID

public static SubscribeButton buildSubscribeButton(ButtonName buttonName,Integer correlationID)

Page 320: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

buildUnregisterAppInterface(Integer correlationID )

Parameters

correlationID

buildUnsubscribeButton(ButtonName buttonName,Integer correlationID )

public static UnregisterAppInterface buildUnregisterAppInterface(Integer correlationID)

public static UnsubscribeButton buildUnsubscribeButton(ButtonName buttonName,Integer correlationID)

Page 321: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

buttonName

correlationID

BuildSubscribeVehicleData(boolean gps, boolean speed,boolean rpm, boolean fuelLevel,boolean fuelLevel_State, booleaninstantFuelConsumption, booleanexternalTemperature, booleanprndl, boolean tirePressure,boolean odometer, booleanbeltStatus, booleanbodyInformation, booleandeviceStatus, booleandriverBraking, IntegercorrelationID )

Page 322: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

gps

speed

rpm

fuelLevel

fuelLevel_State

instantFuelConsumption

public static SubscribeVehicleData BuildSubscribeVehicleData(boolean gps,boolean speed,boolean rpm,boolean fuelLevel,boolean fuelLevel_State,boolean instantFuelConsumption,boolean externalTemperature,boolean prndl,boolean tirePressure,boolean odometer,boolean beltStatus,boolean bodyInformation,boolean deviceStatus,boolean driverBraking,Integer correlationID)

Page 323: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

externalTemperature

prndl

tirePressure

odometer

beltStatus

bodyInformation

deviceStatus

driverBraking

correlationID

Page 324: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

BuildUnsubscribeVehicleData(boolean gps, boolean speed,boolean rpm, boolean fuelLevel,boolean fuelLevel_State, booleaninstantFuelConsumption, booleanexternalTemperature, booleanprndl, boolean tirePressure,boolean odometer, booleanbeltStatus, booleanbodyInformation, booleandeviceStatus, booleandriverBraking, IntegercorrelationID )

public static UnsubscribeVehicleData BuildUnsubscribeVehicleData(boolean gps,boolean speed,boolean rpm,boolean fuelLevel,boolean fuelLevel_State,boolean instantFuelConsumption,boolean externalTemperature,boolean prndl,boolean tirePressure,boolean odometer,boolean beltStatus,boolean bodyInformation,boolean deviceStatus,boolean driverBraking,Integer correlationID)

Page 325: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

gps

speed

rpm

fuelLevel

fuelLevel_State

instantFuelConsumption

externalTemperature

prndl

Page 326: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

tirePressure

odometer

beltStatus

bodyInformation

deviceStatus

driverBraking

correlationID

Page 327: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

BuildGetVehicleData( booleangps, boolean speed, booleanrpm, boolean fuelLevel, booleanfuelLevel_State, booleaninstantFuelConsumption, booleanexternalTemperature, booleanvin, boolean prndl, booleantirePressure, boolean odometer,boolean beltStatus, booleanbodyInformation, booleandeviceStatus, booleandriverBraking, IntegercorrelationID )

public static GetVehicleData BuildGetVehicleData(boolean gps,boolean speed,boolean rpm,boolean fuelLevel,boolean fuelLevel_State,boolean instantFuelConsumption,boolean externalTemperature,boolean vin,boolean prndl,boolean tirePressure,boolean odometer,boolean beltStatus,boolean bodyInformation,boolean deviceStatus,boolean driverBraking,Integer correlationID)

Page 328: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

gps

speed

rpm

fuelLevel

fuelLevel_State

instantFuelConsumption

externalTemperature

vin

Page 329: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

prndl

tirePressure

odometer

beltStatus

bodyInformation

deviceStatus

driverBraking

correlationID

Page 330: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

BuildScrollableMessage( StringscrollableMessageBody, Integertimeout,java.util.Vector<SoftButton>softButtons, Integer correlationID)

Parameters

scrollableMessageBody

timeout

softButtons

correlationID

public static ScrollableMessage BuildScrollableMessage(String scrollableMessageBody,Integer timeout,java.util.Vector<SoftButton> softButtons,Integer correlationID)

Page 331: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

BuildSlider( Integer numTicks,Integer position, StringsliderHeader,java.util.Vector<java.lang.String>sliderFooter, Integer timeout,Integer correlationID )

Parameters

numTicks

position

sliderHeader

public static Slider BuildSlider(Integer numTicks,Integer position,String sliderHeader,java.util.Vector<java.lang.String> sliderFooter,Integer timeout,Integer correlationID)

Page 332: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

sliderFooter

timeout

correlationID

BuildChangeRegistration(Language language, LanguagehmiDisplayLanguage, IntegercorrelationID )

Parameters

language

hmiDisplayLanguage

public static ChangeRegistration BuildChangeRegistration(Language language,Language hmiDisplayLanguage,Integer correlationID)

Page 333: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

correlationID

BuildSetDisplayLayout( StringdisplayLayout, IntegercorrelationID )

Parameters

displayLayout

correlationID

public static SetDisplayLayout BuildSetDisplayLayout(String displayLayout,Integer correlationID)

Page 334: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

BuildPerformAudioPassThru(String ttsText, StringaudioPassThruDisplayText1,StringaudioPassThruDisplayText2,SamplingRate samplingRate,Integer maxDuration,BitsPerSample bitsPerSample,AudioType audioType, BooleanmuteAudio, Integer correlationID)

Parameters

ttsText

public static PerformAudioPassThru BuildPerformAudioPassThru(String ttsText,String audioPassThruDisplayText1,String audioPassThruDisplayText2,SamplingRate samplingRate,Integer maxDuration,BitsPerSample bitsPerSample,AudioType audioType,Boolean muteAudio,Integer correlationID)

Page 335: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

audioPassThruDisplayText1

audioPassThruDisplayText2

samplingRate

maxDuration

bitsPerSample

audioType

muteAudio

correlationID

Page 336: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

BuildPerformAudioPassThru(java.util.Vector<TTSChunk>initialPrompt, StringaudioPassThruDisplayText1,StringaudioPassThruDisplayText2,SamplingRate samplingRate,Integer maxDuration,BitsPerSample bitsPerSample,AudioType audioType, BooleanmuteAudio, Integer correlationID)

Parameters

initialPrompt

public static PerformAudioPassThru BuildPerformAudioPassThru(java.util.Vector<TTSChunk> initialPrompt,String audioPassThruDisplayText1,String audioPassThruDisplayText2,SamplingRate samplingRate,Integer maxDuration,BitsPerSample bitsPerSample,AudioType audioType,Boolean muteAudio,Integer correlationID)

Page 337: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

audioPassThruDisplayText1

audioPassThruDisplayText2

samplingRate

maxDuration

bitsPerSample

audioType

muteAudio

correlationID

BuildEndAudioPassThru( IntegercorrelationID )

Page 338: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

correlationID

BuildDeviceInfo( StringcarrierName )

Parameters

carrierName

public static EndAudioPassThru BuildEndAudioPassThru(Integer correlationID)

public static DeviceInfo BuildDeviceInfo(String carrierName)

Page 339: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Inherited Methods

From Class Methods

Class RPCStreamController

Hierarchyjava.lang.Object

Package

com.smartdevicelink.proxy

Quick Jump

Constructors

• RPCStreamController( StreamRPCPacketizer rpcPacketizer, IntegeriCorrelationID )

java.lang.Object

getClass, hashCode, equals, clone,

toString, notify, notifyAll, wait, wait, wait,

finalize

Page 340: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Methods

• getCorrelationID() • pause() • resume() • stop()

Constructors

RPCStreamController(StreamRPCPacketizerrpcPacketizer, IntegeriCorrelationID )

Parameters

rpcPacketizer

iCorrelationID

public RPCStreamController(StreamRPCPacketizer rpcPacketizer,Integer iCorrelationID)

Page 341: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Methods

getCorrelationID()

pause()

resume()

stop()

public java.lang.Integer getCorrelationID()

public void pause()

public void resume()

Page 342: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Inherited Methods

From Class Methods

Class RouterServiceValidator

Hierarchyjava.lang.Object

Package

com.smartdevicelink.transport

Overview

This class will tell us if the currently running router service is valid or not. To use

this class simply create a new instance of RouterServiceValidator with a

public void stop()

java.lang.Object

getClass, hashCode, equals, clone,

toString, notify, notifyAll, wait, wait, wait,

finalize

Page 343: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

supplied context. After that, you have the option to set if you want to test in a

production setting. If not, it will default to a debug setting. Once you are ready

to check if the router service is trusted you simply call

routerServiceValidator.validate();

This validator should be passed into the multiplexing transport construction as

well.

Quick Jump

Fields

• ROUTER_SERVICE_PACKAGE• FLAG_DEBUG_NONE• FLAG_DEBUG_PACKAGE_CHECK• FLAG_DEBUG_VERSION_CHECK• FLAG_DEBUG_INSTALLED_FROM_CHECK• FLAG_DEBUG_USE_TIMESTAMP_CHECK• FLAG_DEBUG_PERFORM_ALL_CHECKS

Constructors

• RouterServiceValidator( Context context )• RouterServiceValidator( Context context, ComponentName

service )• RouterServiceValidator( MultiplexTransportConfig config )

Methods

• validate() • getService() • setFlags(int flags) • setSecurityLevel(int securityLevel) • getRefreshRate() • componentNameForServiceRunning(PackageManager pm) • wasInstalledByAppStore(String packageName) • inDebugMode() • verifyVersion(int version,JSONArray versions) • createTrustedListRequest(Context context,boolean forceRefresh)

Page 344: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

• createTrustedListRequest(Context context,booleanforceRefresh,RouterServiceValidator.TrustedListCallbacklistCallback)

• createTrustedListRequest(Context context,booleanforceRefresh,HttpRequestTask.HttpRequestTaskCallback cb) Deprecated

• createTrustedListRequest(Context context,booleanforceRefresh,HttpRequestTask.HttpRequestTaskCallbackcb,RouterServiceValidator.TrustedListCallback listCallback)

• isServiceRunning(Context context,ComponentName service) • stringToJson(String json) • invalidateList(Context context) • setTrustedList(Context context,String jsonString) • getTrustedList(Context context) • getTrustedAppListTimeStamp(Context context) • setLastRequest(Context context,String request) • getLastRequest(Context context) • cacheSecurityLevel(Context context,int securityLevel) • getSecurityLevel(Context context)

Fields

ROUTER_SERVICE_PACKAGE

Constant Value

"com.sdl.router"

public static final java.lang.String ROUTER_SERVICE_PACKAGE

Page 345: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

FLAG_DEBUG_NONE

FLAG_DEBUG_PACKAGE_CHECK

Constant Value

1

FLAG_DEBUG_VERSION_CHECK

public static final int FLAG_DEBUG_NONE

public static final int FLAG_DEBUG_PACKAGE_CHECK

public static final int FLAG_DEBUG_VERSION_CHECK

Page 346: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Constant Value

3

FLAG_DEBUG_INSTALLED_FROM_CHECK

Constant Value

4

FLAG_DEBUG_USE_TIMESTAMP_CHECK

Constant Value

5

public static final int FLAG_DEBUG_INSTALLED_FROM_CHECK

public static final int FLAG_DEBUG_USE_TIMESTAMP_CHECK

Page 347: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

FLAG_DEBUG_PERFORM_ALL_CHECKS

Constant Value

255

Constructors

RouterServiceValidator( Contextcontext )

Parameters

context

public static final int FLAG_DEBUG_PERFORM_ALL_CHECKS

public RouterServiceValidator(Context context)

Page 348: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

RouterServiceValidator( Contextcontext, ComponentNameservice )

Parameters

context

service

RouterServiceValidator(MultiplexTransportConfig config )

public RouterServiceValidator(Context context,ComponentName service)

public RouterServiceValidator(MultiplexTransportConfig config)

Page 349: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

config

Methods

validate()

Main function to call to ensure we are connecting to a validated router service

getService()

public boolean validate()

public android.content.ComponentName getService()

Page 350: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

setFlags( int flags )

Use this method if you would like to test your app in a production setting rather

than defaulting to a debug mode where you connect to whatever router service

is running.

These flags are only used in debugging mode. During production they

will be ignored.

Parameters

flags

setSecurityLevel( intsecurityLevel )

public void setFlags(int flags)

public void setSecurityLevel(int securityLevel)

Page 351: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

securityLevel

getRefreshRate()

componentNameForServiceRunning( PackageManager pm )

This method will find which router service is running. Use that info to find out

more about that app and service. It will store the found service for later use and

return the package name if found.

protected static long getRefreshRate()

public android.content.ComponentName componentNameForServiceRunning(PackageManager pm)

Page 352: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

pm

wasInstalledByAppStore( StringpackageName )

Check to see if the app was installed from a trusted app store.

Parameters

packageName

the package name of the app to be tested

public boolean wasInstalledByAppStore(String packageName)

Page 353: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

inDebugMode()

This method will check to see if this app is a debug build. If it is, we will attempt

to connect to any router service. If false, it will only connect to approved apps

with router services.

verifyVersion( int version,JSONArray versions )

Parameters

version

versions

public boolean inDebugMode()

protected boolean verifyVersion(int version,JSONArray versions)

Page 354: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

createTrustedListRequest(Context context, booleanforceRefresh )

Performs a look up against installed SDL apps that support the router service.

When it receives a list back from the server it will store it for later use.

Parameters

context

forceRefresh

public static boolean createTrustedListRequest(Context context,boolean forceRefresh)

Page 355: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

createTrustedListRequest(Context context, booleanforceRefresh,RouterServiceValidator.TrustedListCallbacklistCallback )

Parameters

context

forceRefresh

listCallback

public static boolean createTrustedListRequest(Context context,boolean forceRefresh,RouterServiceValidator.TrustedListCallback listCallback)

Page 356: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

createTrustedListRequest(Context context, booleanforceRefresh,HttpRequestTask.HttpRequestTaskCallbackcb )

Deprecated

Parameters

context

forceRefresh

cb

protected static boolean createTrustedListRequest(Context context,boolean forceRefresh,HttpRequestTask.HttpRequestTaskCallback cb)

Page 357: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

createTrustedListRequest(Context context, booleanforceRefresh,HttpRequestTask.HttpRequestTaskCallbackcb,RouterServiceValidator.TrustedListCallbacklistCallback )

Parameters

context

forceRefresh

cb

protected static boolean createTrustedListRequest(Context context,boolean forceRefresh,HttpRequestTask.HttpRequestTaskCallback cb,RouterServiceValidator.TrustedListCallback listCallback)

Page 358: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

listCallback

isServiceRunning( Contextcontext, ComponentNameservice )

This method will determine if our supplied component name is really running.

Parameters

context

service

protected boolean isServiceRunning(Context context,ComponentName service)

Page 359: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

stringToJson( String json )

Parses a string into a JSON array

Parameters

json

invalidateList( Context context )

Parameters

context

protected org.json.JSONObject stringToJson(String json)

public static boolean invalidateList(Context context)

Page 360: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

setTrustedList( Context context,String jsonString )

Saves the list of available applications into user's shared prefs.

Parameters

context

The application's environment

jsonString

The JSON string to save.

getTrustedList( Context context )

Retrieves the list of available applications from user's shared prefs.

protected static boolean setTrustedList(Context context,String jsonString)

Page 361: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

context

The application's environment.

getTrustedAppListTimeStamp(Context context )

Retrieves the time stamp from the user's shared prefs.

Parameters

context

The application's environment.

protected static java.lang.String getTrustedList(Context context)

protected static java.lang.Long getTrustedAppListTimeStamp(Context context)

Page 362: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

setLastRequest( Context context,String request )

Parameters

context

request

getLastRequest( Context context)

Gets the last request JSON object we sent to the RSVP server. It basically

contains a list of sdl enabled apps

protected static boolean setLastRequest(Context context,String request)

protected static java.lang.String getLastRequest(Context context)

Page 363: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

context

cacheSecurityLevel( Contextcontext, int securityLevel )

Parameters

context

securityLevel

protected static boolean cacheSecurityLevel(Context context,int securityLevel)

Page 364: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

getSecurityLevel( Contextcontext )

Parameters

context

Inherited Methods

From Class Methods

protected static int getSecurityLevel(Context context)

java.lang.Object

getClass, hashCode, equals, clone,

toString, notify, notifyAll, wait, wait, wait,

finalize

Page 365: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

ClassRouterServiceValidator.SdlApp

Hierarchyjava.lang.Object

Package

com.smartdevicelink.transport

Overview

Class that holds all the info we want to send/receive from the validation server

Quick Jump

Page 366: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Methods

Inherited Methods

From Class Methods

ClassRouterServiceValidator.TrustedAppStore

Hierarchyjava.lang.Object

java.lang.Enum

Package

com.smartdevicelink.transport

java.lang.Object

getClass, hashCode, equals, clone,

toString, notify, notifyAll, wait, wait, wait,

finalize

Page 367: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Quick Jump

Methods

• values() • valueOf(String name) • isTrustedStore(String packageString)

Methods

values()

valueOf( String name )

public static com.smartdevicelink.transport.RouterServiceValidator.TrustedAppStore values()

public static com.smartdevicelink.transport.RouterServiceValidator.TrustedAppStore valueOf(String name)

Page 368: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

name

isTrustedStore( StringpackageString )

Test if the supplied store package is one of the trusted app stores

Parameters

packageString

public static boolean isTrustedStore(String packageString)

Page 369: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Inherited Methods

From Class Methods

InterfaceRouterServiceValidator.TrustedListCallback

Package

com.smartdevicelink.transport

Overview

This interface is used as a callback to know when we have either obtained a list

or at least returned from our attempt.

java.lang.Enum

name, ordinal, toString, equals,

hashCode, clone, compareTo,

getDeclaringClass, valueOf, finalize

java.lang.Object

getClass, hashCode, equals, clone,

toString, notify, notifyAll, wait, wait, wait,

finalize

Page 370: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Quick Jump

Methods

• onListObtained(boolean successful)

Methods

onListObtained( booleansuccessful )

Parameters

successful

public void onListObtained(boolean successful)

Page 371: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Class SDLLockScreenActivity

Hierarchyjava.lang.Object

android.content.Context

android.content.ContextWrapper

android.view.ContextThemeWrapper

android.app.Activity

Package

com.smartdevicelink.managers.lockscreen

Quick Jump

Fields

• LOCKSCREEN_COLOR_EXTRA• LOCKSCREEN_ICON_EXTRA• LOCKSCREEN_DEVICE_LOGO_EXTRA• LOCKSCREEN_DEVICE_LOGO_BITMAP• LOCKSCREEN_CUSTOM_VIEW_EXTRA• LOCKSCREEN_DEVICE_LOGO_DOWNLOADED• CLOSE_LOCK_SCREEN_ACTION

Constructors

• SDLLockScreenActivity()

Page 372: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Methods

• onCreate(Bundle savedInstanceState) • onDestroy() • onBackPressed() • onNewIntent(Intent intent) • initializeActivity(Intent intent)

Fields

LOCKSCREEN_COLOR_EXTRA

Constant Value

"LOCKSCREEN_COLOR_EXTRA"

LOCKSCREEN_ICON_EXTRA

public static final java.lang.String LOCKSCREEN_COLOR_EXTRA

public static final java.lang.String LOCKSCREEN_ICON_EXTRA

Page 373: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Constant Value

"LOCKSCREEN_ICON_EXTRA"

LOCKSCREEN_DEVICE_LOGO_EXTRA

Constant Value

"LOCKSCREEN_DEVICE_LOGO_EXTRA"

LOCKSCREEN_DEVICE_LOGO_BITMAP

Constant Value

"LOCKSCREEN_DEVICE_LOGO_BITMAP"

public static final java.lang.String LOCKSCREEN_DEVICE_LOGO_EXTRA

public static final java.lang.String LOCKSCREEN_DEVICE_LOGO_BITMAP

Page 374: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

LOCKSCREEN_CUSTOM_VIEW_EXTRA

Constant Value

"LOCKSCREEN_CUSTOM_VIEW_EXTRA"

LOCKSCREEN_DEVICE_LOGO_DOWNLOADED

Constant Value

"LOCKSCREEN_DEVICE_LOGO_DOWNLOADED"

public static final java.lang.String LOCKSCREEN_CUSTOM_VIEW_EXTRA

public static final java.lang.String LOCKSCREEN_DEVICE_LOGO_DOWNLOADED

Page 375: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

CLOSE_LOCK_SCREEN_ACTION

Constant Value

public static final java.lang.String CLOSE_LOCK_SCREEN_ACTION

Page 376: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

"CLOSE_LOCK_SCREEN"

Page 377: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Inherited Fields

Page 378: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

From Class Fields

android.app.Activity

DEFAULT_KEYS_DIALER,

DEFAULT_KEYS_DISABLE,

DEFAULT_KEYS_SEARCH_GLOBAL,

DEFAULT_KEYS_SEARCH_LOCAL,

DEFAULT_KEYS_SHORTCUT,

FOCUSED_STATE_SET,

RESULT_CANCELED, RESULT_FIRST_USER,

RESULT_OK

Page 379: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

android.content.Context

ACCESSIBILITY_SERVICE,

ACCOUNT_SERVICE, ACTIVITY_SERVICE,

ALARM_SERVICE, APPWIDGET_SERVICE,

APP_OPS_SERVICE, AUDIO_SERVICE,

BATTERY_SERVICE, BIND_ABOVE_CLIENT,

BIND_ADJUST_WITH_ACTIVITY,

BIND_ALLOW_OOM_MANAGEMENT,

BIND_AUTO_CREATE,

BIND_DEBUG_UNBIND, BIND_IMPORTANT,

BIND_NOT_FOREGROUND,

BIND_WAIVE_PRIORITY,

BLUETOOTH_SERVICE, CAMERA_SERVICE,

CAPTIONING_SERVICE,

CARRIER_CONFIG_SERVICE,

CLIPBOARD_SERVICE,

CONNECTIVITY_SERVICE,

CONSUMER_IR_SERVICE,

CONTEXT_IGNORE_SECURITY,

CONTEXT_INCLUDE_CODE,

CONTEXT_RESTRICTED,

DEVICE_POLICY_SERVICE,

DISPLAY_SERVICE, DOWNLOAD_SERVICE,

DROPBOX_SERVICE,

FINGERPRINT_SERVICE,

INPUT_METHOD_SERVICE,

INPUT_SERVICE,

JOB_SCHEDULER_SERVICE,

KEYGUARD_SERVICE,

LAUNCHER_APPS_SERVICE,

LAYOUT_INFLATER_SERVICE,

LOCATION_SERVICE,

MEDIA_PROJECTION_SERVICE,

MEDIA_ROUTER_SERVICE,

MEDIA_SESSION_SERVICE, MIDI_SERVICE,

MODE_APPEND,

MODE_ENABLE_WRITE_AHEAD_LOGGING,

MODE_MULTI_PROCESS, MODE_PRIVATE,

MODE_WORLD_READABLE,

MODE_WORLD_WRITEABLE,

NETWORK_STATS_SERVICE,

NFC_SERVICE, NOTIFICATION_SERVICE,

NSD_SERVICE, POWER_SERVICE,

PRINT_SERVICE, RESTRICTIONS_SERVICE,

SEARCH_SERVICE, SENSOR_SERVICE,

STORAGE_SERVICE, TELECOM_SERVICE,

TELEPHONY_SERVICE,

TELEPHONY_SUBSCRIPTION_SERVICE,

Page 380: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Constructors

SDLLockScreenActivity()

Methods

onCreate( BundlesavedInstanceState )

Parameters

savedInstanceState

public SDLLockScreenActivity()

protected void onCreate(Bundle savedInstanceState)

Page 381: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

onDestroy()

onBackPressed()

onNewIntent( Intent intent )

Parameters

intent

protected void onDestroy()

public void onBackPressed()

protected void onNewIntent(Intent intent)

Page 382: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

initializeActivity( Intent intent )

Parameters

intent

public void initializeActivity(Intent intent)

Page 383: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system
Page 384: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Inherited Methods

Page 385: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

From Class Methods

Page 386: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

getIntent, setIntent, getApplication,

isChild, getParent, getWindowManager,

getWindow, getLoaderManager,

getCurrentFocus, onCreate, onCreate,

onRestoreInstanceState,

onRestoreInstanceState, onPostCreate,

onPostCreate, onStart, onRestart,

onStateNotSaved, onResume,

onPostResume, isVoiceInteraction,

isVoiceInteractionRoot,

getVoiceInteractor, onNewIntent,

onSaveInstanceState,

onSaveInstanceState, onPause,

onUserLeaveHint, onCreateThumbnail,

onCreateDescription,

onProvideAssistData,

onProvideAssistContent, showAssist,

onStop, onDestroy, reportFullyDrawn,

onConfigurationChanged,

getChangingConfigurations,

getLastNonConfigurationInstance,

onRetainNonConfigurationInstance,

onLowMemory, onTrimMemory,

getFragmentManager,

onAttachFragment, managedQuery,

startManagingCursor,

stopManagingCursor, findViewById,

getActionBar, setActionBar,

setContentView, setContentView,

setContentView, addContentView,

getContentTransitionManager,

setContentTransitionManager,

getContentScene,

setFinishOnTouchOutside,

setDefaultKeyMode, onKeyDown,

onKeyLongPress, onKeyUp,

onKeyMultiple, onBackPressed,

onKeyShortcut, onTouchEvent,

onTrackballEvent, onGenericMotionEvent,

onUserInteraction,

onWindowAttributesChanged,

onContentChanged,

onWindowFocusChanged,

onAttachedToWindow,

onDetachedFromWindow,

hasWindowFocus, dispatchKeyEvent,

dispatchKeyShortcutEvent,

Page 387: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

android.view.ContextThemeWrapper

attachBaseContext,

applyOverrideConfiguration,

getResources, setTheme, getTheme,

getSystemService,

onApplyThemeResource

Page 388: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

android.content.ContextWrapper

attachBaseContext, getBaseContext,

getAssets, getResources,

getPackageManager,

getContentResolver, getMainLooper,

getApplicationContext, setTheme,

getTheme, getClassLoader,

getPackageName, getApplicationInfo,

getPackageResourcePath,

getPackageCodePath,

getSharedPreferences, openFileInput,

openFileOutput, deleteFile,

getFileStreamPath, fileList, getFilesDir,

getNoBackupFilesDir, getExternalFilesDir,

getExternalFilesDirs, getObbDir,

getObbDirs, getCacheDir,

getCodeCacheDir, getExternalCacheDir,

getExternalCacheDirs,

getExternalMediaDirs, getDir,

openOrCreateDatabase,

openOrCreateDatabase, deleteDatabase,

getDatabasePath, databaseList,

getWallpaper, peekWallpaper,

getWallpaperDesiredMinimumWidth,

getWallpaperDesiredMinimumHeight,

setWallpaper, setWallpaper,

clearWallpaper, startActivity,

startActivity, startActivities,

startActivities, startIntentSender,

startIntentSender, sendBroadcast,

sendBroadcast, sendOrderedBroadcast,

sendOrderedBroadcast,

sendBroadcastAsUser,

sendBroadcastAsUser,

sendOrderedBroadcastAsUser,

sendStickyBroadcast,

sendStickyOrderedBroadcast,

removeStickyBroadcast,

sendStickyBroadcastAsUser,

sendStickyOrderedBroadcastAsUser,

removeStickyBroadcastAsUser,

registerReceiver, registerReceiver,

unregisterReceiver, startService,

stopService, bindService, unbindService,

startInstrumentation, getSystemService,

getSystemServiceName,

checkPermission,

checkCallingPermission,

Page 389: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

android.content.Context

getAssets, getResources,

getPackageManager,

getContentResolver, getMainLooper,

getApplicationContext,

registerComponentCallbacks,

unregisterComponentCallbacks, getText,

getString, getString, getColor,

getDrawable, getColorStateList,

setTheme, getTheme,

obtainStyledAttributes,

obtainStyledAttributes,

obtainStyledAttributes,

obtainStyledAttributes, getClassLoader,

getPackageName, getApplicationInfo,

getPackageResourcePath,

getPackageCodePath,

getSharedPreferences, openFileInput,

openFileOutput, deleteFile,

getFileStreamPath, getFilesDir,

getNoBackupFilesDir, getExternalFilesDir,

getExternalFilesDirs, getObbDir,

getObbDirs, getCacheDir,

getCodeCacheDir, getExternalCacheDir,

getExternalCacheDirs,

getExternalMediaDirs, fileList, getDir,

openOrCreateDatabase,

openOrCreateDatabase, deleteDatabase,

getDatabasePath, databaseList,

getWallpaper, peekWallpaper,

getWallpaperDesiredMinimumWidth,

getWallpaperDesiredMinimumHeight,

setWallpaper, setWallpaper,

clearWallpaper, startActivity,

startActivity, startActivities,

startActivities, startIntentSender,

startIntentSender, sendBroadcast,

sendBroadcast, sendOrderedBroadcast,

sendOrderedBroadcast,

sendBroadcastAsUser,

sendBroadcastAsUser,

sendOrderedBroadcastAsUser,

sendStickyBroadcast,

sendStickyOrderedBroadcast,

removeStickyBroadcast,

sendStickyBroadcastAsUser,

sendStickyOrderedBroadcastAsUser,

removeStickyBroadcastAsUser,

Page 390: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Class SampleBuffer

Hierarchyjava.lang.Object

Package

com.smartdevicelink.managers.audio

Overview

Wraps a buffer of raw audio samples depending on the sample type (8 bit, 16

bit) Unifies samples into double.

Quick Jump

Methods

• wrap(ByteBuffer buffer,int sampleType,long presentationTimeUs) • wrap(ByteBuffer buffer,int sampleType,int channelCount,long

presentationTimeUs) • allocate(int capacity,int sampleType,ByteOrder byteOrder,long

presentationTimeUs) • allocate(int capacity,int sampleType,int channelCount,ByteOrder

byteOrder,long presentationTimeUs)

java.lang.Object

getClass, hashCode, equals, clone,

toString, notify, notifyAll, wait, wait, wait,

finalize

Page 391: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

• capacity() • limit() • limit(int newLimit) • position() • position(int newPosition) • get() • get(int index) • put(double sample) • put(int index,double sample) • getByteBuffer() • getBytes() • getPresentationTimeUs()

Methods

wrap( ByteBuffer buffer, intsampleType, longpresentationTimeUs )

Wraps a raw (mono) byte buffer to a new sample buffer.

Parameters

buffer

The raw buffer to be wrapped.

public static com.smartdevicelink.managers.audio.SampleBuffer wrap(ByteBuffer buffer,int sampleType,long presentationTimeUs)

Page 392: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

sampleType

The sample type of the samples in the raw buffer.

presentationTimeUs

The presentation time of the buffer.

wrap( ByteBuffer buffer, intsampleType, int channelCount,long presentationTimeUs )

Wraps a raw byte buffer to a new sample buffer.

Parameters

buffer

The raw buffer to be wrapped.

sampleType

public static com.smartdevicelink.managers.audio.SampleBuffer wrap(ByteBuffer buffer,int sampleType,int channelCount,long presentationTimeUs)

Page 393: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

The sample type of the samples in the raw buffer.

channelCount

The number of channels (1 = mono, 2 = stereo).

presentationTimeUs

The presentation time of the buffer.

allocate( int capacity, intsampleType, ByteOrderbyteOrder, longpresentationTimeUs )

Allocates a new sample buffer.

Parameters

capacity

The specified sample capacity of the sample buffer.

public static com.smartdevicelink.managers.audio.SampleBuffer allocate(int capacity,int sampleType,ByteOrder byteOrder,long presentationTimeUs)

Page 394: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

sampleType

The sample type of the samples the buffer should store.

byteOrder

The byte order for the samples (little or big endian).

presentationTimeUs

The presentation time for the buffer.

allocate( int capacity, intsampleType, int channelCount,ByteOrder byteOrder, longpresentationTimeUs )

Allocates a new sample buffer.

public static com.smartdevicelink.managers.audio.SampleBuffer allocate(int capacity,int sampleType,int channelCount,ByteOrder byteOrder,long presentationTimeUs)

Page 395: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

capacity

The specified sample capacity of the sample buffer.

sampleType

The sample type of the samples the buffer should store.

channelCount

The number of channels (1 = mono, 2 = stereo).

byteOrder

The byte order for the samples (little or big endian).

presentationTimeUs

The presentation time for the buffer.

capacity()

Returns the capacity of the buffer per channel.

public int capacity()

Page 396: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

limit()

Returns the number of samples in the buffer per channel.

limit( int newLimit )

Sets the number of samples in the buffer to the new limit.

Parameters

newLimit

The new limit of the sample buffer.

public int limit()

public void limit(int newLimit)

Page 397: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

position()

Returns the current position in the buffer per channel.

position( int newPosition )

Sets the position of the sample buffer to the new index.

Parameters

newPosition

The new position of the sample buffer.

public int position()

public void position(int newPosition)

Page 398: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

get()

Returns the sample of the current position and then increments the position.

The sample returned is a mixed sample getting all samples from each channel.

get( int index )

Returns the sample from the given index in the buffer. If the buffer's channel

count is > 1 the sample returned is a mixed sample getting all samples from

each channel.

Parameters

index

The index of the sample requested.

public double get()

public double get(int index)

Page 399: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

put( double sample )

Puts a sample to the current position and increments the position.

Parameters

sample

The sample to put into the buffer.

put( int index, double sample )

Puts a sample to the given index in the buffer. If the buffer's channel count is >

1 the sample will be stored in each channel at the given index.

public void put(double sample)

public void put(int index,double sample)

Page 400: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

index

The index to put the sample.

sample

The sample to store in the buffer.

getByteBuffer()

Returns the raw byte buffer managed by this sample buffer.

getBytes()

Returns a copy of the bytes from position 0 to the current limit.

public java.nio.ByteBuffer getByteBuffer()

public byte getBytes()

Page 401: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

getPresentationTimeUs()

The presentation time of this sample buffer.

Inherited Methods

From Class Methods

Class ScreenManager

Hierarchyjava.lang.Object

BaseScreenManager

Package

com.smartdevicelink.managers.screen

public long getPresentationTimeUs()

java.lang.Object

getClass, hashCode, equals, clone,

toString, notify, notifyAll, wait, wait, wait,

finalize

Page 402: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Overview

ScreenManager

Note: This class must be accessed through the SdlManager. Do not instantiate it

by itself.

Quick Jump

Constructors

• ScreenManager( ISdl internalInterface, FileManager fileManager )

Constructors

ScreenManager( ISdlinternalInterface, FileManagerfileManager )

public ScreenManager(ISdl internalInterface,FileManager fileManager)

Page 403: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

internalInterface

fileManager

Methods

Inherited Methods

From Class Methods

Class SdlAppInfo

Hierarchyjava.lang.Object

java.lang.Object

getClass, hashCode, equals, clone,

toString, notify, notifyAll, wait, wait, wait,

finalize

Page 404: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Package

com.smartdevicelink.util

Overview

Created by Joey Grover on 2/2/18.

Quick Jump

Constructors

• SdlAppInfo( ResolveInfo resolveInfo, PackageInfo packageInfo )

Methods

• getRouterServiceVersion() • isCustomRouterService() • getRouterServiceComponentName() • toString()

Constructors

SdlAppInfo( ResolveInforesolveInfo, PackageInfopackageInfo )

Page 405: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

resolveInfo

packageInfo

Methods

getRouterServiceVersion()

isCustomRouterService()

public SdlAppInfo(ResolveInfo resolveInfo,PackageInfo packageInfo)

public int getRouterServiceVersion()

Page 406: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

getRouterServiceComponentName()

toString()

Inherited Methods

From Class Methods

public boolean isCustomRouterService()

public android.content.ComponentName getRouterServiceComponentName()

public java.lang.String toString()

java.lang.Object

getClass, hashCode, equals, clone,

toString, notify, notifyAll, wait, wait, wait,

finalize

Page 407: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

ClassSdlAppInfo.BestRouterComparator

Hierarchyjava.lang.Object

Package

com.smartdevicelink.util

All Implemented Interfaces

java.util.Comparator

Overview

This comparator will sort a list to find the best router service to start out of the

known SDL enabled apps

Quick Jump

Constructors

• BestRouterComparator()

Page 408: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Methods

• compare(SdlAppInfo one,SdlAppInfo two)

Constructors

BestRouterComparator()

Methods

compare( SdlAppInfo one,SdlAppInfo two )

public BestRouterComparator()

public int compare(SdlAppInfo one,SdlAppInfo two)

Page 409: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

one

two

Inherited Methods

From Class Methods

Class SdlArtwork

Hierarchyjava.lang.Object

com.smartdevicelink.managers.file.filetypes.SdlFile

Package

java.lang.Object

getClass, hashCode, equals, clone,

toString, notify, notifyAll, wait, wait, wait,

finalize

Page 410: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

com.smartdevicelink.managers.file.filetypes

Overview

A class that extends SdlFile, representing artwork (JPEG, PNG, or BMP) to be

uploaded to core

Quick Jump

Constructors

• SdlArtwork()• SdlArtwork( String fileName, FileType fileType, int id, boolean

persistentFile )• SdlArtwork( String fileName, FileType fileType, Uri uri, boolean

persistentFile )• SdlArtwork( String fileName, FileType fileType, byte[] data,

boolean persistentFile )• SdlArtwork( StaticIconName staticIconName )

Methods

• setTemplateImage(boolean isTemplate) • isTemplateImage() • setType(FileType fileType) • getImageRPC()

Constructors

Page 411: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

SdlArtwork()

Creates a new instance of SdlArtwork

SdlArtwork( String fileName,FileType fileType, int id, booleanpersistentFile )

Creates a new instance of SdlArtwork

Parameters

fileName

a String value representing the name that will be used to store the filein the head unit

public SdlArtwork()

public SdlArtwork(String fileName,FileType fileType,int id,boolean persistentFile)

Page 412: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

fileType

a FileType enum value representing the type of the file

id

an int value representing the android resource id of the file

persistentFile

a boolean value that indicates if the file is meant to persist betweensessions / ignition cycles

SdlArtwork( String fileName,FileType fileType, Uri uri, booleanpersistentFile )

Creates a new instance of SdlArtwork

Parameters

fileName

public SdlArtwork(String fileName,FileType fileType,Uri uri,boolean persistentFile)

Page 413: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

a String value representing the name that will be used to store the filein the head unit

fileType

a FileType enum value representing the type of the file

uri

a URI value representing a file's location. Currently, it only supportslocal files

persistentFile

a boolean value that indicates if the file is meant to persist betweensessions / ignition cycles

SdlArtwork( String fileName,FileType fileType, byte[] data,boolean persistentFile )

Creates a new instance of SdlArtwork

public SdlArtwork(String fileName,FileType fileType,byte[] data,boolean persistentFile)

Page 414: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

fileName

a String value representing the name that will be used to store the filein the head unit

fileType

a FileType enum value representing the type of the file

data

a byte array representing the data of the file

persistentFile

a boolean value that indicates if the file is meant to persist betweensessions / ignition cycles

SdlArtwork( StaticIconNamestaticIconName )

Creates a new instance of SdlArtwork

public SdlArtwork(StaticIconName staticIconName)

Page 415: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

staticIconName

a StaticIconName enum value representing the name of a static filethat comes pre-shipped with the head unit

Methods

setTemplateImage( booleanisTemplate )

Sets whether this SdlArtwork is a template image whose coloring should be

decided by the HMI

Parameters

isTemplate

boolean that tells whether this SdlArtwork is a template image

public void setTemplateImage(boolean isTemplate)

Page 416: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

isTemplateImage()

Gets whether this SdlArtwork is a template image whose coloring should be

decided by the HMI

setType( FileType fileType )

Parameters

fileType

public boolean isTemplateImage()

public void setType(FileType fileType)

Page 417: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

getImageRPC()

Gets the Image RPC representing this artwork. Generally for use internally, you

should instead pass an artwork to a Screen Manager method

Inherited Methods

From Class Methods

Class SdlBroadcastReceiver

Hierarchyjava.lang.Object

android.content.BroadcastReceiver

public Image getImageRPC()

com.smartdevicelink.managers.file.filety

pes.SdlFile

setName, getName, setResourceId, getR

esourceId, setUri, getUri, setFileData, get

FileData, setType, getType, setPersistent,

isPersistent, setStaticIcon, isStaticIcon

java.lang.Object

getClass, hashCode, equals, clone,

toString, notify, notifyAll, wait, wait, wait,

finalize

Page 418: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Package

com.smartdevicelink.transport

Quick Jump

Fields

• SDL_ROUTER_SERVICE_CLASS_NAME• LOCAL_ROUTER_SERVICE_EXTRA• LOCAL_ROUTER_SERVICE_DID_START_OWN• TRANSPORT_GLOBAL_PREFS• IS_TRANSPORT_CONNECTED• runningBluetoothServicePackage

Constructors

• SdlBroadcastReceiver()

Methods

• getRouterServiceVersion() • onReceive(Context context,Intent intent) • pingRouterService(Context context,String packageName,String

className) • queryForConnectedService(Context context) • requestTransportStatus(Context

context,SdlRouterStatusProvider.ConnectedStatusCallbackcallback) Deprecated

• consumeQueuedRouterService() • defineLocalSdlRouterClass()

Page 419: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

• onSdlEnabled(Context context,Intent intent)

Fields

SDL_ROUTER_SERVICE_CLASS_NAME

Constant Value

"sdlrouterservice"

LOCAL_ROUTER_SERVICE_EXTRA

Constant Value

"router_service"

protected static final java.lang.String SDL_ROUTER_SERVICE_CLASS_NAME

public static final java.lang.String LOCAL_ROUTER_SERVICE_EXTRA

Page 420: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

LOCAL_ROUTER_SERVICE_DID_START_OWN

Constant Value

"did_start"

TRANSPORT_GLOBAL_PREFS

Constant Value

"SdlTransportPrefs"

public static final java.lang.String LOCAL_ROUTER_SERVICE_DID_START_OWN

public static final java.lang.String TRANSPORT_GLOBAL_PREFS

Page 421: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

IS_TRANSPORT_CONNECTED

Constant Value

"isTransportConnected"

runningBluetoothServicePackage

Constructors

SdlBroadcastReceiver()

public static final java.lang.String IS_TRANSPORT_CONNECTED

public static java.util.Vector runningBluetoothServicePackage

public SdlBroadcastReceiver()

Page 422: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Methods

getRouterServiceVersion()

onReceive( Context context,Intent intent )

Parameters

context

intent

public int getRouterServiceVersion()

public void onReceive(Context context,Intent intent)

Page 423: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

pingRouterService( Contextcontext, String packageName,String className )

Attempts to ping a running router service

Parameters

context

A context to access Android system services through.

packageName

Package name for service to ping

className

Class name for service to ping

protected static void pingRouterService(Context context,String packageName,String className)

Page 424: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

queryForConnectedService(Context context )

This call will reach out to all SDL related router services to check if they're

connected. If a the router service is connected, it will react by pinging all

clients. This receiver will then receive that ping and if the router service is

trusted, the onSdlEnabled method will be called.

Parameters

context

public static void queryForConnectedService(Context context)

Page 425: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

requestTransportStatus( Contextcontext,SdlRouterStatusProvider.ConnectedStatusCallbackcallback )

Deprecated

If a Router Service is running, this method determines if that service is

connected to a device over some form of transport.

Parameters

context

A context to access Android system services through. If null is passed,this will always return false

callback

Use this callback to find out if the router service is connected or not.

consumeQueuedRouterService()

public static void requestTransportStatus(Context context,SdlRouterStatusProvider.ConnectedStatusCallback callback)

Page 426: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

defineLocalSdlRouterClass()

We need to define this for local copy of the Sdl Router Service class. It will be

the main point of connection for Sdl enabled apps

onSdlEnabled( Context context,Intent intent )

The developer will need to define exactly what should happen when Sdl is

enabled. This method will only get called when a Sdl session is initiated.

The most useful code here would be to start the activity or service that handles

most of the Livio Connect code.

public static android.content.ComponentName consumeQueuedRouterService()

public abstract java.lang.Class defineLocalSdlRouterClass()

public abstract void onSdlEnabled(Context context,Intent intent)

Page 427: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

context

this is the context that was passed to this receiver when it was called.

intent

this is the intent that alerted this broadcast. Make sure to pass all extrait came with to your service/activity {@inheritDoc}

Inherited Methods

From Class Methods

android.content.BroadcastReceiver

onReceive, goAsync, peekService,

setResultCode, getResultCode,

setResultData, getResultData,

setResultExtras, getResultExtras,

setResult, getAbortBroadcast,

abortBroadcast, clearAbortBroadcast,

isOrderedBroadcast,

isInitialStickyBroadcast, setOrderedHint,

setDebugUnregister, getDebugUnregister

java.lang.Object

getClass, hashCode, equals, clone,

toString, notify, notifyAll, wait, wait, wait,

finalize

Page 428: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Class SdlConnection

Hierarchyjava.lang.Object

Package

com.smartdevicelink.SdlConnection

Quick Jump

Fields

• cachedMultiConfig

Constructors

• SdlConnection( BaseTransportConfig transportConfig )• SdlConnection( BaseTransportConfig transportConfig,

RouterServiceValidator rsvp )

Methods

• getWiProProtocol()• startTransport() • getIsConnected() • getBroadcastComment() • sendMessage(ProtocolMessage msg) • onTransportPacketReceived(SdlPacket packet) • onTransportConnected() • onTransportDisconnected(String info)

Page 429: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

• onTransportError(String info,Exception e) • onProtocolMessageBytesToSend(SdlPacket packet) • onProtocolMessageReceived(ProtocolMessage msg) • onProtocolSessionStarted(SessionType sessionType,byte

sessionID,byte version,String correlationID,int hashID,booleanisEncrypted)

• onProtocolSessionNACKed(SessionType sessionType,bytesessionID,byte version,StringcorrelationID,java.util.List<java.lang.String> rejectedParams)

• onProtocolSessionEnded(SessionType sessionType,bytesessionID,String correlationID)

• onProtocolError(String info,Exception e) • getCurrentTransportType() • startService(SessionType sessionType,byte sessionID,boolean

isEncrypted) • endService(SessionType sessionType,byte sessionID) • sendHeartbeat(SdlSession mySession) • unregisterSession(SdlSession registerListener) • findSessionById(byte id) • onAuthTokenReceived(String authToken,byte sessionID) • getRegisterCount() • onProtocolHeartbeat(SessionType sessionType,byte sessionID) • onProtocolHeartbeatACK(SessionType sessionType,byte sessionID)• onResetOutgoingHeartbeat(SessionType sessionType,byte

sessionID) • onResetIncomingHeartbeat(SessionType sessionType,byte

sessionID) • forceHardwareConnectEvent(TransportType type) • enableLegacyMode(boolean enable,TransportType type) • isLegacyModeEnabled() • onProtocolSessionEndedNACKed(SessionType sessionType,byte

sessionID,String correlationID) • onProtocolServiceDataACK(SessionType serviceType,int

dataSize,byte sessionID)

Fields

cachedMultiConfig

protected static com.smartdevicelink.transport.MultiplexTransportConfig cachedMultiConfig

Page 430: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Constructors

SdlConnection(BaseTransportConfigtransportConfig )

Constructor.

Parameters

transportConfig

Transport configuration for this connection.

SdlConnection(BaseTransportConfigtransportConfig,RouterServiceValidator rsvp )

public SdlConnection(BaseTransportConfig transportConfig)

Page 431: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

transportConfig

rsvp

Methods

getWiProProtocol()

startTransport()

protected SdlConnection(BaseTransportConfig transportConfig,RouterServiceValidator rsvp)

public com.smartdevicelink.protocol.AbstractProtocol getWiProProtocol()

Page 432: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Throws

• SdlException

getIsConnected()

getBroadcastComment()

sendMessage( ProtocolMessagemsg )

public void startTransport() throws SdlException

public java.lang.Boolean getIsConnected()

public java.lang.String getBroadcastComment()

Page 433: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

msg

onTransportPacketReceived(SdlPacket packet )

Parameters

packet

public void sendMessage(ProtocolMessage msg)

public void onTransportPacketReceived(SdlPacket packet)

Page 434: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

onTransportConnected()

onTransportDisconnected( Stringinfo )

Parameters

info

onTransportError( String info,Exception e )

public void onTransportConnected()

public void onTransportDisconnected(String info)

Page 435: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

info

e

onProtocolMessageBytesToSend(SdlPacket packet )

Parameters

packet

public void onTransportError(String info,Exception e)

public void onProtocolMessageBytesToSend(SdlPacket packet)

Page 436: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

onProtocolMessageReceived(ProtocolMessage msg )

Parameters

msg

onProtocolSessionStarted(SessionType sessionType, bytesessionID, byte version, StringcorrelationID, int hashID,boolean isEncrypted )

public void onProtocolMessageReceived(ProtocolMessage msg)

public void onProtocolSessionStarted(SessionType sessionType,byte sessionID,byte version,String correlationID,int hashID,boolean isEncrypted)

Page 437: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

sessionType

sessionID

version

correlationID

hashID

isEncrypted

Page 438: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

onProtocolSessionNACKed(SessionType sessionType, bytesessionID, byte version, StringcorrelationID,java.util.List<java.lang.String>rejectedParams )

Parameters

sessionType

sessionID

version

correlationID

public void onProtocolSessionNACKed(SessionType sessionType,byte sessionID,byte version,String correlationID,java.util.List<java.lang.String> rejectedParams)

Page 439: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

rejectedParams

onProtocolSessionEnded(SessionType sessionType, bytesessionID, String correlationID )

Parameters

sessionType

sessionID

correlationID

public void onProtocolSessionEnded(SessionType sessionType,byte sessionID,String correlationID)

Page 440: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

onProtocolError( String info,Exception e )

Parameters

info

e

getCurrentTransportType()

Gets type of transport currently used by this connection.

public void onProtocolError(String info,Exception e)

public TransportType getCurrentTransportType()

Page 441: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

startService( SessionTypesessionType, byte sessionID,boolean isEncrypted )

Parameters

sessionType

sessionID

isEncrypted

endService( SessionTypesessionType, byte sessionID )

public void startService(SessionType sessionType,byte sessionID,boolean isEncrypted)

Page 442: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

sessionType

sessionID

sendHeartbeat( SdlSessionmySession )

Parameters

mySession

public void endService(SessionType sessionType,byte sessionID)

public void sendHeartbeat(SdlSession mySession)

Page 443: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

unregisterSession( SdlSessionregisterListener )

Parameters

registerListener

findSessionById( byte id )

public void unregisterSession(SdlSession registerListener)

public com.smartdevicelink.SdlConnection.SdlSession findSessionById(byte id)

Page 444: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

id

onAuthTokenReceived( StringauthToken, byte sessionID )

Parameters

authToken

sessionID

getRegisterCount()

public void onAuthTokenReceived(String authToken,byte sessionID)

Page 445: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

onProtocolHeartbeat(SessionType sessionType, bytesessionID )

Parameters

sessionType

sessionID

public int getRegisterCount()

public void onProtocolHeartbeat(SessionType sessionType,byte sessionID)

Page 446: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

onProtocolHeartbeatACK(SessionType sessionType, bytesessionID )

Parameters

sessionType

sessionID

onResetOutgoingHeartbeat(SessionType sessionType, bytesessionID )

public void onProtocolHeartbeatACK(SessionType sessionType,byte sessionID)

public void onResetOutgoingHeartbeat(SessionType sessionType,byte sessionID)

Page 447: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

sessionType

sessionID

onResetIncomingHeartbeat(SessionType sessionType, bytesessionID )

Parameters

sessionType

sessionID

public void onResetIncomingHeartbeat(SessionType sessionType,byte sessionID)

Page 448: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

forceHardwareConnectEvent(TransportType type )

Parameters

type

enableLegacyMode( booleanenable, TransportType type )

public void forceHardwareConnectEvent(TransportType type)

public static void enableLegacyMode(boolean enable,TransportTypetype)

Page 449: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

enable

type

isLegacyModeEnabled()

onProtocolSessionEndedNACKed(SessionType sessionType, bytesessionID, String correlationID )

public static boolean isLegacyModeEnabled()

public void onProtocolSessionEndedNACKed(SessionType sessionType,byte sessionID,String correlationID)

Page 450: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

sessionType

sessionID

correlationID

onProtocolServiceDataACK(SessionType serviceType, intdataSize, byte sessionID )

Parameters

serviceType

public void onProtocolServiceDataACK(SessionType serviceType,int dataSize,byte sessionID)

Page 451: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

dataSize

sessionID

Inherited Methods

From Class Methods

Class SdlEncoder

Hierarchyjava.lang.Object

Package

com.smartdevicelink.encoder

java.lang.Object

getClass, hashCode, equals, clone,

toString, notify, notifyAll, wait, wait, wait,

finalize

Page 452: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Quick Jump

Constructors

• SdlEncoder()

Methods

• setFrameRate(int iVal) • setFrameInterval(int iVal) • setFrameWidth(int iVal) • setFrameHeight(int iVal) • setBitrate(int iVal) • setOutputStream(PipedOutputStream mStream) • setOutputListener(IVideoStreamListener listener) • prepareEncoder() • startEncoder() • releaseEncoder() • drainEncoder(boolean endOfStream)

Constructors

SdlEncoder()

Methods

public SdlEncoder()

Page 453: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

setFrameRate( int iVal )

Parameters

iVal

setFrameInterval( int iVal )

Parameters

iVal

public void setFrameRate(int iVal)

public void setFrameInterval(int iVal)

Page 454: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

setFrameWidth( int iVal )

Parameters

iVal

setFrameHeight( int iVal )

Parameters

iVal

public void setFrameWidth(int iVal)

public void setFrameHeight(int iVal)

Page 455: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

setBitrate( int iVal )

Parameters

iVal

setOutputStream(PipedOutputStream mStream )

Parameters

mStream

public void setBitrate(int iVal)

public void setOutputStream(PipedOutputStream mStream)

Page 456: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

setOutputListener(IVideoStreamListener listener )

Parameters

listener

prepareEncoder()

startEncoder()

public void setOutputListener(IVideoStreamListener listener)

public android.view.Surface prepareEncoder()

Page 457: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

releaseEncoder()

Releases encoder resources.

drainEncoder( booleanendOfStream )

Extracts all pending data from the encoder

If endOfStream is not set, this returns when there is no more data to drain. If it

is set, we send EOS to the encoder, and then iterate until we see EOS on the

output. Calling this with endOfStream set should be done once, right before

stopping the muxer.

public void startEncoder()

public void releaseEncoder()

public void drainEncoder(boolean endOfStream)

Page 458: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

endOfStream

Inherited Methods

From Class Methods

Class SdlFile

Hierarchyjava.lang.Object

Package

com.smartdevicelink.managers.file.filetypes

All Known Subclasses

com.smartdevicelink.managers.file.filetypes.SdlArtwork

java.lang.Object

getClass, hashCode, equals, clone,

toString, notify, notifyAll, wait, wait, wait,

finalize

Page 459: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Overview

A class representing data to be uploaded to core

Quick Jump

Constructors

• SdlFile()• SdlFile( String fileName, FileType fileType, int id, boolean

persistentFile )• SdlFile( String fileName, FileType fileType, Uri uri, boolean

persistentFile )• SdlFile( String fileName, FileType fileType, byte[] data, boolean

persistentFile )• SdlFile( StaticIconName staticIconName )

Methods

• setName(String fileName) • getName() • setResourceId(int id) • getResourceId() • setUri(Uri uri) • getUri() • setFileData(byte[] data)• getFileData() • setType(FileType fileType) • getType() • setPersistent(boolean persistentFile) • isPersistent() • setStaticIcon(boolean staticIcon) • isStaticIcon()

Constructors

Page 460: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

SdlFile()

Creates a new instance of SdlFile

SdlFile( String fileName, FileTypefileType, int id, booleanpersistentFile )

Creates a new instance of SdlFile

Parameters

fileName

a String value representing the name that will be used to store the filein the head unit

public SdlFile()

public SdlFile(String fileName,FileType fileType,int id,boolean persistentFile)

Page 461: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

fileType

a FileType enum value representing the type of the file

id

an int value representing the android resource id of the file

persistentFile

a boolean value that indicates if the file is meant to persist betweensessions / ignition cycles

SdlFile( String fileName, FileTypefileType, Uri uri, booleanpersistentFile )

Creates a new instance of SdlFile

Parameters

fileName

public SdlFile(String fileName,FileType fileType,Uri uri,boolean persistentFile)

Page 462: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

a String value representing the name that will be used to store the filein the head unit

fileType

a FileType enum value representing the type of the file

uri

a URI value representing a file's location. Currently, it only supportslocal files

persistentFile

a boolean value that indicates if the file is meant to persist betweensessions / ignition cycles

SdlFile( String fileName, FileTypefileType, byte[] data, booleanpersistentFile )

Creates a new instance of SdlFile

public SdlFile(String fileName,FileType fileType,byte[] data,boolean persistentFile)

Page 463: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

fileName

a String value representing the name that will be used to store the filein the head unit

fileType

a FileType enum value representing the type of the file

data

a byte array representing the data of the file

persistentFile

a boolean value that indicates if the file is meant to persist betweensessions / ignition cycles

SdlFile( StaticIconNamestaticIconName )

Creates a new instance of SdlFile

public SdlFile(StaticIconName staticIconName)

Page 464: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

staticIconName

a StaticIconName enum value representing the name of a static filethat comes pre-shipped with the head unit

Methods

setName( String fileName )

Sets the name of the file

Parameters

fileName

a String value representing the name that will be used to store the filein the head unit

public void setName(String fileName)

Page 465: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

getName()

Gets the name of the file

setResourceId( int id )

Sets the resource ID of the file

Parameters

id

an int value representing the android resource id of the file

public java.lang.String getName()

public void setResourceId(int id)

Page 466: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

getResourceId()

Gets the resource id of the file

setUri( Uri uri )

Sets the uri of the file

Parameters

uri

a URI value representing a file's location. Currently, it only supportslocal files

public int getResourceId()

public void setUri(Uri uri)

Page 467: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

getUri()

Gets the uri of the file

setFileData( byte[] data )

Sets the byte array that represents the content of the file

Parameters

data

a byte array representing the data of the file

public android.net.Uri getUri()

public void setFileData(byte[] data)

Page 468: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

getFileData()

Gets the byte array that represents the content of the file

setType( FileType fileType )

Sets the type of the file

Parameters

fileType

a FileType enum value representing the type of the file

public byte getFileData()

public void setType(FileType fileType)

Page 469: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

getType()

Gets the type of the file

setPersistent( booleanpersistentFile )

Sets whether the file should persist between sessions / ignition cycles

Parameters

persistentFile

a boolean value that indicates if the file is meant to persist betweensessions / ignition cycles

public FileType getType()

public void setPersistent(boolean persistentFile)

Page 470: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

isPersistent()

Gets whether the file should persist between sessions / ignition cycles

setStaticIcon( boolean staticIcon)

Sets the the name of the static file. Static files comes pre-shipped with the

head unit

Parameters

staticIcon

a StaticIconName enum value representing the name of a static filethat comes pre-shipped with the head unit

public boolean isPersistent()

public void setStaticIcon(boolean staticIcon)

Page 471: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

isStaticIcon()

Gets the the name of the static file. Static files comes pre-shipped with the

head unit

Inherited Methods

From Class Methods

Class SdlManager

Hierarchyjava.lang.Object

BaseSdlManager

Package

com.smartdevicelink.managers

public boolean isStaticIcon()

java.lang.Object

getClass, hashCode, equals, clone,

toString, notify, notifyAll, wait, wait, wait,

finalize

Page 472: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Overview

SDLManager

This is the main point of contact between an application and SDL

It is broken down to these areas:

1. SDLManagerBuilder

2. ISdl Interface along with its overridden methods - This can be passed into

attached managers

3. Sending Requests

4. Helper methods

Quick Jump

Constructors

• SdlManager()

Methods

• initialize() • dispose() • getPermissionManager() • getFileManager() • getVideoStreamManager() • getAudioStreamManager() • getScreenManager() • getLockScreenManager() • getSystemCapabilityManager() • getRegisterAppInterfaceResponse() • getCurrentHMIStatus() • getAuthToken() • getLockScreenConfig() • sendRPC(RPCMessage message) • sendSequentialRPCs(java.util.List<? extends RPCMessage>

rpcs,OnMultipleRequestListener listener) • sendRPCs(java.util.List<? extends RPCMessage>

rpcs,OnMultipleRequestListener listener)

Page 473: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

• addOnRPCNotificationListener(FunctionIDnotificationId,OnRPCNotificationListener listener)

• removeOnRPCNotificationListener(FunctionIDnotificationId,OnRPCNotificationListener listener)

• addOnRPCRequestListener(FunctionIDrequestId,OnRPCRequestListener listener)

• removeOnRPCRequestListener(FunctionIDrequestId,OnRPCRequestListener listener)

• start() • setProxy(com.smartdevicelink.proxy.SdlProxyBase proxy)

Constructors

SdlManager()

Methods

initialize()

dispose()

public SdlManager()

protected void initialize()

Page 474: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

getPermissionManager()

Gets the PermissionManager.

Note: PermissionManager should be used only after SdlManager.start

() CompletionListener callback is completed successfully.

getFileManager()

Gets the FileManager.

Note: FileManager should be used only after SdlManager.start()

CompletionListener callback is completed successfully.

public void dispose()

public com.smartdevicelink.managers.permission.PermissionManager getPermissionManager()

public com.smartdevicelink.managers.file.FileManager getFileManager()

Page 475: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

getVideoStreamManager()

Gets the VideoStreamManager.

The VideoStreamManager returned will only be not null if the registered app

type is either NAVIGATION or PROJECTION. Once the VideoStreamManager is

retrieved, its start() method will need to be called before use.

Note: VideoStreamManager should be used only after

SdlManager.start() CompletionListener callback is completed

successfully.

getAudioStreamManager()

Gets the AudioStreamManager.

The AudioStreamManager returned will only be not null if the registered app

type is either NAVIGATION or PROJECTION. Once the AudioStreamManager is

retrieved, its start() method will need to be called before use.

Note: AudioStreamManager should be used only after

SdlManager.start() CompletionListener callback is completed

successfully.

public com.smartdevicelink.managers.video.VideoStreamManager getVideoStreamManager()

public com.smartdevicelink.managers.audio.AudioStreamManager getAudioStreamManager()

Page 476: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

getScreenManager()

Gets the ScreenManager.

Note: ScreenManager should be used only after SdlManager.start()

CompletionListener callback is completed successfully.

getLockScreenManager()

Gets the LockScreenManager.

Note: LockScreenManager should be used only after SdlManager.start

() CompletionListener callback is completed successfully.

getSystemCapabilityManager()

Gets the SystemCapabilityManager.

Note: SystemCapabilityManager should be used only after

SdlManager.start() CompletionListener callback is completed

successfully.

public com.smartdevicelink.managers.screen.ScreenManager getScreenManager()

public com.smartdevicelink.managers.lockscreen.LockScreenManager getLockScreenManager()

Page 477: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

getRegisterAppInterfaceResponse()

Method to retrieve the RegisterAppInterface Response message that was sent

back from the module. It contains various attributes about the connected

module and can be used to adapt to different module types and their supported

features.

getCurrentHMIStatus()

Get the current OnHMIStatus

public SystemCapabilityManager getSystemCapabilityManager()

public RegisterAppInterfaceResponse getRegisterAppInterfaceResponse()

public OnHMIStatus getCurrentHMIStatus()

Page 478: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

getAuthToken()

Retrieves the auth token, if any, that was attached to the StartServiceACK for

the RPC service from the module. For example, this should be used to login to a

user account.

getLockScreenConfig()

sendRPC( RPCMessage message)

Send RPC Message

public java.lang.String getAuthToken()

protected com.smartdevicelink.managers.lockscreen.LockScreenConfig getLockScreenConfig()

public void sendRPC(RPCMessage message)

Page 479: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

message

RPCMessage

sendSequentialRPCs(java.util.List<? extendsRPCMessage> rpcs,OnMultipleRequestListenerlistener )

Takes a list of RPCMessages and sends it to SDL in a synchronous fashion.

Responses are captured through callback on OnMultipleRequestListener. For

sending requests asynchronously, use sendRequests

NOTE: This will override any listeners on individual RPCs

ADDITIONAL NOTE: This only takes the type of RPCRequest for now,

notifications and responses will be thrown out

public void sendSequentialRPCs(java.util.List<? extends RPCMessage> rpcs,OnMultipleRequestListener listener)

Page 480: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

rpcs

is the list of RPCMessages being sent

listener

listener for updates and completions

sendRPCs( java.util.List<?extends RPCMessage> rpcs,OnMultipleRequestListenerlistener )

Takes a list of RPCMessages and sends it to SDL. Responses are captured

through callback on OnMultipleRequestListener. For sending requests

synchronously, use sendSequentialRPCs

NOTE: This will override any listeners on individual RPCs

ADDITIONAL NOTE: This only takes the type of RPCRequest for now,

notifications and responses will be thrown out

public void sendRPCs(java.util.List<? extends RPCMessage> rpcs,OnMultipleRequestListener listener)

Page 481: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

rpcs

is the list of RPCMessages being sent

listener

listener for updates and completions

addOnRPCNotificationListener(FunctionID notificationId,OnRPCNotificationListenerlistener )

Add an OnRPCNotificationListener

public void addOnRPCNotificationListener(FunctionID notificationId,OnRPCNotificationListener listener)

Page 482: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

notificationId

listener

listener that will be called when a notification is received

removeOnRPCNotificationListener( FunctionID notificationId,OnRPCNotificationListenerlistener )

Remove an OnRPCNotificationListener

Parameters

notificationId

public void removeOnRPCNotificationListener(FunctionID notificationId,OnRPCNotificationListener listener)

Page 483: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

listener

listener that was previously added

addOnRPCRequestListener(FunctionID requestId,OnRPCRequestListener listener )

Add an OnRPCRequestListener

Parameters

requestId

listener

listener that will be called when a request is received

public void addOnRPCRequestListener(FunctionID requestId,OnRPCRequestListener listener)

Page 484: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

removeOnRPCRequestListener(FunctionID requestId,OnRPCRequestListener listener )

Remove an OnRPCRequestListener

Parameters

requestId

listener

listener that was previously added

start()

Starts up a SdlManager, and calls provided callback called once all

BaseSubManagers are done setting up

public void removeOnRPCRequestListener(FunctionID requestId,OnRPCRequestListener listener)

Page 485: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

setProxy(com.smartdevicelink.proxy.SdlProxyBaseproxy )

Parameters

proxy

Inherited Methods

From Class Methods

public void start()

protected void setProxy(com.smartdevicelink.proxy.SdlProxyBase proxy)

java.lang.Object

getClass, hashCode, equals, clone,

toString, notify, notifyAll, wait, wait, wait,

finalize

Page 486: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Class SdlManager.Builder

Hierarchyjava.lang.Object

Package

com.smartdevicelink.managers

Quick Jump

Constructors

• Builder( Context context, String appId, String appName,SdlManagerListener listener )

Methods

• setAppId(String appId) • setAppName(String appName) • setShortAppName(String shortAppName) • setMinimumProtocolVersion(Version minimumProtocolVersion) • setMinimumRPCVersion(Version minimumRPCVersion) • setLanguage(Language hmiLanguage) • setDayColorScheme(TemplateColorScheme dayColorScheme) • setNightColorScheme(TemplateColorScheme nightColorScheme) • setLockScreenConfig(LockScreenConfig lockScreenConfig) • setAppIcon(SdlArtwork sdlArtwork) • setAppTypes(java.util.Vector<AppHMIType> hmiTypes) • setVrSynonyms(java.util.Vector<java.lang.String> vrSynonyms) • setTtsName(java.util.Vector<TTSChunk> ttsChunks) • setTransportType(BaseTransportConfig transport) • setContext(Context context)

Page 487: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

• setSdlSecurity(java.util.List<java.lang.Class<? extendscom.smartdevicelink.security.SdlSecurityBase>> secList)

• setManagerListener(SdlManagerListener listener) • setRPCNotificationListeners(java.util.Map<FunctionID,

OnRPCNotificationListener> listeners) • build()

Constructors

Builder( Context context, StringappId, String appName,SdlManagerListener listener )

Builder for the SdlManager. Parameters in the constructor are required.

Parameters

context

the current context

appId

the app's ID

public Builder(Context context,String appId,String appName,SdlManagerListener listener)

Page 488: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

appName

the app's name

listener

a SdlManagerListener object

Methods

setAppId( String appId )

Sets the App ID

Parameters

appId

public com.smartdevicelink.managers.SdlManager.Builder setAppId(String appId)

Page 489: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

setAppName( String appName )

Sets the Application Name

Parameters

appName

setShortAppName( StringshortAppName )

Sets the Short Application Name

public com.smartdevicelink.managers.SdlManager.Builder setAppName(String appName)

public com.smartdevicelink.managers.SdlManager.Builder setShortAppName(String shortAppName)

Page 490: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

shortAppName

setMinimumProtocolVersion(Version minimumProtocolVersion)

Sets the minimum protocol version that will be permitted to connect. If the

protocol version of the head unit connected is below this version, the app will

disconnect with an EndService protocol message and will not register.

Parameters

minimumProtocolVersion

the minimum Protocol spec version that should be accepted

public com.smartdevicelink.managers.SdlManager.Builder setMinimumProtocolVersion(Version minimumProtocolVersion)

Page 491: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

setMinimumRPCVersion( VersionminimumRPCVersion )

The minimum RPC version that will be permitted to connect. If the RPC version

of the head unit connected is below this version, an UnregisterAppInterface will

be sent.

Parameters

minimumRPCVersion

the minimum RPC spec version that should be accepted

setLanguage( LanguagehmiLanguage )

Sets the Language of the App

public com.smartdevicelink.managers.SdlManager.Builder setMinimumRPCVersion(Version minimumRPCVersion)

public com.smartdevicelink.managers.SdlManager.Builder setLanguage(Language hmiLanguage)

Page 492: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

hmiLanguage

the desired language to be used on the display/HMI of the connectedmodule

setDayColorScheme(TemplateColorSchemedayColorScheme )

Sets the TemplateColorScheme for daytime

Parameters

dayColorScheme

color scheme that will be used (if supported) when the display is in a"Day Mode" or similar. Should comprise of colors that contrast wellduring the day under sunlight.

public com.smartdevicelink.managers.SdlManager.Builder setDayColorScheme(TemplateColorScheme dayColorScheme)

Page 493: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

setNightColorScheme(TemplateColorSchemenightColorScheme )

Sets the TemplateColorScheme for nighttime

Parameters

nightColorScheme

color scheme that will be used (if supported) when the display is in a"Night Mode" or similar. Should comprise of colors that contrast wellduring the night and are not brighter than average.

setLockScreenConfig(LockScreenConfiglockScreenConfig )

Sets the LockScreenConfig for the session.

Note: If not set, the default configuration will be used.

public com.smartdevicelink.managers.SdlManager.Builder setNightColorScheme(TemplateColorScheme nightColorScheme)

Page 494: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

lockScreenConfig

- configuration options

setAppIcon( SdlArtworksdlArtwork )

Sets the icon for the app on head unit / In-Vehicle-Infotainment system

Parameters

sdlArtwork

public com.smartdevicelink.managers.SdlManager.Builder setLockScreenConfig(LockScreenConfig lockScreenConfig)

public com.smartdevicelink.managers.SdlManager.Builder setAppIcon(SdlArtwork sdlArtwork)

Page 495: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

the icon that will be used to represent this application on theconnected module

setAppTypes(java.util.Vector<AppHMIType>hmiTypes )

Sets the vector of AppHMIType

Note: This should be an ordered list from most -> least relevant

Parameters

hmiTypes

HMI types that represent this application. For example, if the app is amusic player, the MEDIA HMIType should be included.

public com.smartdevicelink.managers.SdlManager.Builder setAppTypes(java.util.Vector<AppHMIType> hmiTypes)

Page 496: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

setVrSynonyms(java.util.Vector<java.lang.String>vrSynonyms )

Sets the voice recognition synonyms that can be used to identify this

application.

Parameters

vrSynonyms

a vector of Strings that can be associated with this app. For examplethe app's name should be included as well as any phonetic spellings ofthe app name that might help the on-board VR system associated ausers spoken word with the supplied synonyms.

public com.smartdevicelink.managers.SdlManager.Builder setVrSynonyms(java.util.Vector<java.lang.String> vrSynonyms)

Page 497: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

setTtsName(java.util.Vector<TTSChunk>ttsChunks )

Sets the Text-To-Speech Name of the application. These TTSChunks might be

used by the module as an audio representation of the app's name.

Parameters

ttsChunks

the TTS chunks that can represent this app's name

setTransportType(BaseTransportConfig transport )

This Object type may change with the transport refactor Sets the

BaseTransportConfig

public com.smartdevicelink.managers.SdlManager.Builder setTtsName(java.util.Vector<TTSChunk> ttsChunks)

Page 498: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

transport

the type of transport that should be used for this SdlManager instance.

setContext( Context context )

Sets the Context

Parameters

context

public com.smartdevicelink.managers.SdlManager.Builder setTransportType(BaseTransportConfig transport)

public com.smartdevicelink.managers.SdlManager.Builder setContext(Context context)

Page 499: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

setSdlSecurity(java.util.List<java.lang.Class<?extendscom.smartdevicelink.security.SdlSecurityBase>>secList )

Sets the Security library

Parameters

secList

The list of security class(es)

setManagerListener(SdlManagerListener listener )

Set the SdlManager Listener

public com.smartdevicelink.managers.SdlManager.Builder setSdlSecurity(java.util.List<java.lang.Class<? extends com.smartdevicelink.security.SdlSecurityBase>> secList)

Page 500: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

listener

the listener

setRPCNotificationListeners(java.util.Map<FunctionID,OnRPCNotificationListener>listeners )

Set RPCNotification listeners. SdlManager will preload these listeners before

any RPCs are sent/received.

public com.smartdevicelink.managers.SdlManager.Builder setManagerListener(SdlManagerListener listener)

public com.smartdevicelink.managers.SdlManager.Builder setRPCNotificationListeners(java.util.Map<FunctionID, OnRPCNotificationListener> listeners)

Page 501: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

listeners

a map of listeners that will be called when a notification is received.Key represents the FunctionID of the notification and value representsthe listener

build()

Inherited Methods

From Class Methods

public com.smartdevicelink.managers.SdlManager build()

java.lang.Object

getClass, hashCode, equals, clone,

toString, notify, notifyAll, wait, wait, wait,

finalize

Page 502: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Interface SdlManagerListener

Package

com.smartdevicelink.managers

Quick Jump

Methods

• onStart() • onDestroy() • onError(String info,Exception e)

Methods

onStart()

Called when a manager is ready for use

public void onStart()

Page 503: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

onDestroy()

Called when the manager is destroyed

onError( String info, Exception e )

Called when the manager encounters an error

Parameters

info

info regarding the error

e

the exception

public void onDestroy()

public void onError(String info,Exception e)

Page 504: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Class SdlProtocol

Hierarchyjava.lang.Object

SdlProtocolBase

Package

com.smartdevicelink.protocol

Quick Jump

Constructors

• SdlProtocol( ISdlProtocol iSdlProtocol, MultiplexTransportConfigconfig )

Constructors

SdlProtocol( ISdlProtocoliSdlProtocol,MultiplexTransportConfig config )

Page 505: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

iSdlProtocol

config

Methods

Inherited Methods

From Class Methods

public SdlProtocol(ISdlProtocol iSdlProtocol,MultiplexTransportConfig config)

java.lang.Object

getClass, hashCode, equals, clone,

toString, notify, notifyAll, wait, wait, wait,

finalize

Page 506: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Class SdlProxyALM

Hierarchyjava.lang.Object

com.smartdevicelink.proxy.SdlProxyBase

Package

com.smartdevicelink.proxy

Quick Jump

Constructors

• SdlProxyALM( IProxyListenerALM listener, String appName,Boolean isMediaApp, Language languageDesired, LanguagehmiDisplayLanguageDesired, String appID )

• SdlProxyALM( Context context, IProxyListenerALM listener, StringappName, Boolean isMediaApp, Language languageDesired,Language hmiDisplayLanguageDesired, String appID )

• SdlProxyALM( IProxyListenerALM listener, String appName, StringngnMediaScreenAppName, java.util.Vector<java.lang.String>vrSynonyms, Boolean isMediaApp, SdlMsgVersion sdlMsgVersion,Language languageDesired, LanguagehmiDisplayLanguageDesired, String appID, String autoActivateID )

• SdlProxyALM( Context context, IProxyListenerALM listener, StringappName, String ngnMediaScreenAppName,java.util.Vector<java.lang.String> vrSynonyms, BooleanisMediaApp, SdlMsgVersion sdlMsgVersion, LanguagelanguageDesired, Language hmiDisplayLanguageDesired, StringappID, String autoActivateID )

• SdlProxyALM( IProxyListenerALM listener,SdlProxyConfigurationResources sdlProxyConfigurationResources,String appName, String ngnMediaScreenAppName,java.util.Vector<java.lang.String> vrSynonyms, BooleanisMediaApp, SdlMsgVersion sdlMsgVersion, Language

Page 507: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

languageDesired, Language hmiDisplayLanguageDesired, StringappID, String autoActivateID )

• SdlProxyALM( Context context, IProxyListenerALM listener,SdlProxyConfigurationResources sdlProxyConfigurationResources,String appName, String ngnMediaScreenAppName,java.util.Vector<java.lang.String> vrSynonyms, BooleanisMediaApp, SdlMsgVersion sdlMsgVersion, LanguagelanguageDesired, Language hmiDisplayLanguageDesired, StringappID, String autoActivateID )

• SdlProxyALM( IProxyListenerALM listener, String appName, StringngnMediaScreenAppName, java.util.Vector<java.lang.String>vrSynonyms, Boolean isMediaApp, SdlMsgVersion sdlMsgVersion,Language languageDesired, LanguagehmiDisplayLanguageDesired, String appID, String autoActivateID,boolean callbackToUIThread )

• SdlProxyALM( Context context, IProxyListenerALM listener, StringappName, String ngnMediaScreenAppName,java.util.Vector<java.lang.String> vrSynonyms, BooleanisMediaApp, SdlMsgVersion sdlMsgVersion, LanguagelanguageDesired, Language hmiDisplayLanguageDesired, StringappID, String autoActivateID, boolean callbackToUIThread )

• SdlProxyALM( IProxyListenerALM listener,SdlProxyConfigurationResources sdlProxyConfigurationResources,String appName, String ngnMediaScreenAppName,java.util.Vector<java.lang.String> vrSynonyms, BooleanisMediaApp, SdlMsgVersion sdlMsgVersion, LanguagelanguageDesired, Language hmiDisplayLanguageDesired, StringappID, String autoActivateID, boolean callbackToUIThread )

• SdlProxyALM( Context context, IProxyListenerALM listener,SdlProxyConfigurationResources sdlProxyConfigurationResources,String appName, String ngnMediaScreenAppName,java.util.Vector<java.lang.String> vrSynonyms, BooleanisMediaApp, SdlMsgVersion sdlMsgVersion, LanguagelanguageDesired, Language hmiDisplayLanguageDesired, StringappID, String autoActivateID, boolean callbackToUIThread )

• SdlProxyALM( IProxyListenerALM listener,SdlProxyConfigurationResources sdlProxyConfigurationResources,String appName, String ngnMediaScreenAppName,java.util.Vector<java.lang.String> vrSynonyms, BooleanisMediaApp, SdlMsgVersion sdlMsgVersion, LanguagelanguageDesired, Language hmiDisplayLanguageDesired, StringappID, String autoActivateID, boolean callbackToUIThread,boolean preRegister )

• SdlProxyALM( Context context, IProxyListenerALM listener,SdlProxyConfigurationResources sdlProxyConfigurationResources,String appName, String ngnMediaScreenAppName,java.util.Vector<java.lang.String> vrSynonyms, BooleanisMediaApp, SdlMsgVersion sdlMsgVersion, LanguagelanguageDesired, Language hmiDisplayLanguageDesired, StringappID, String autoActivateID, boolean callbackToUIThread,boolean preRegister )

• SdlProxyALM( IProxyListenerALM listener, String appName,Boolean isMediaApp, Language languageDesired, LanguagehmiDisplayLanguageDesired, String appID, BaseTransportConfigtransportConfig )

Page 508: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

• SdlProxyALM( IProxyListenerALM listener, String appName, StringngnMediaScreenAppName, java.util.Vector<java.lang.String>vrSynonyms, Boolean isMediaApp, SdlMsgVersion sdlMsgVersion,Language languageDesired, LanguagehmiDisplayLanguageDesired, String appID, String autoActivateID,TransportType transportType, BaseTransportConfig transportConfig)

• SdlProxyALM( IProxyListenerALM listener,SdlProxyConfigurationResources sdlProxyConfigurationResources,String appName, String ngnMediaScreenAppName,java.util.Vector<java.lang.String> vrSynonyms, BooleanisMediaApp, SdlMsgVersion sdlMsgVersion, LanguagelanguageDesired, Language hmiDisplayLanguageDesired, StringappID, String autoActivateID, BaseTransportConfig transportConfig)

• SdlProxyALM( IProxyListenerALM listener, String appName, StringngnMediaScreenAppName, java.util.Vector<java.lang.String>vrSynonyms, Boolean isMediaApp, SdlMsgVersion sdlMsgVersion,Language languageDesired, LanguagehmiDisplayLanguageDesired, String appID, String autoActivateID,boolean callbackToUIThread, BaseTransportConfig transportConfig)

• SdlProxyALM( IProxyListenerALM listener,SdlProxyConfigurationResources sdlProxyConfigurationResources,String appName, String ngnMediaScreenAppName,java.util.Vector<java.lang.String> vrSynonyms, BooleanisMediaApp, SdlMsgVersion sdlMsgVersion, LanguagelanguageDesired, Language hmiDisplayLanguageDesired, StringappID, String autoActivateID, boolean callbackToUIThread,BaseTransportConfig transportConfig )

• SdlProxyALM( IProxyListenerALM listener,SdlProxyConfigurationResources sdlProxyConfigurationResources,String appName, String ngnMediaScreenAppName,java.util.Vector<java.lang.String> vrSynonyms, BooleanisMediaApp, SdlMsgVersion sdlMsgVersion, LanguagelanguageDesired, Language hmiDisplayLanguageDesired, StringappID, String autoActivateID, boolean callbackToUIThread,boolean preRegister, BaseTransportConfig transportConfig )

• SdlProxyALM( IProxyListenerALM listener, String appName,Boolean isMediaApp, Language languageDesired, LanguagehmiDisplayLanguageDesired, String appID, booleancallbackToUIThread, boolean preRegister )

• SdlProxyALM( Context context, IProxyListenerALM listener, StringappName, Boolean isMediaApp, Language languageDesired,Language hmiDisplayLanguageDesired, String appID, booleancallbackToUIThread, boolean preRegister )

• SdlProxyALM( IProxyListenerALM listener, String appName,Boolean isMediaApp, String appID )

• SdlProxyALM( Context context, IProxyListenerALM listener, StringappName, Boolean isMediaApp, String appID )

• SdlProxyALM( IProxyListenerALM listener,SdlProxyConfigurationResources sdlProxyConfigurationResources,String appName, Boolean isMediaApp, String appID )

Page 509: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

• SdlProxyALM( Context context, IProxyListenerALM listener,SdlProxyConfigurationResources sdlProxyConfigurationResources,String appName, Boolean isMediaApp, String appID )

• SdlProxyALM( IProxyListenerALM listener, String appName,Boolean isMediaApp, String appID, BaseTransportConfigtransportConfig )

• SdlProxyALM( IProxyListenerALM listener, String appName,Boolean isMediaApp, String appID, TemplateColorSchemedayColorScheme, TemplateColorScheme nightColorScheme,BaseTransportConfig transportConfig )

• SdlProxyALM( IProxyListenerALM listener, String appName,Boolean isMediaApp, String appID, boolean callbackToUIThread,boolean preRegister )

• SdlProxyALM( Context context, IProxyListenerALM listener, StringappName, Boolean isMediaApp, String appID, booleancallbackToUIThread, boolean preRegister )

• SdlProxyALM( Service appService, IProxyListenerALM listener,SdlProxyConfigurationResources sdlProxyConfigurationResources,String appName, java.util.Vector<TTSChunk> ttsName, StringngnMediaScreenAppName, java.util.Vector<java.lang.String>vrSynonyms, Boolean isMediaApp, SdlMsgVersion sdlMsgVersion,Language languageDesired, LanguagehmiDisplayLanguageDesired, String appID, String autoActivateID,boolean callbackToUIThread, boolean preRegister )

• SdlProxyALM( Service appService, IProxyListenerALM listener,SdlProxyConfigurationResources sdlProxyConfigurationResources,String appName, java.util.Vector<TTSChunk> ttsName, StringngnMediaScreenAppName, java.util.Vector<java.lang.String>vrSynonyms, Boolean isMediaApp, SdlMsgVersion sdlMsgVersion,Language languageDesired, LanguagehmiDisplayLanguageDesired, String appID, String autoActivateID,boolean callbackToUIThread, boolean preRegister,BaseTransportConfig transportConfig )

• SdlProxyALM( IProxyListenerALM listener,SdlProxyConfigurationResources sdlProxyConfigurationResources,String appName, java.util.Vector<TTSChunk> ttsName, StringngnMediaScreenAppName, java.util.Vector<java.lang.String>vrSynonyms, Boolean isMediaApp, SdlMsgVersion sdlMsgVersion,Language languageDesired, LanguagehmiDisplayLanguageDesired, String appID, String autoActivateID,boolean callbackToUIThread, boolean preRegister )

• SdlProxyALM( Context context, IProxyListenerALM listener,SdlProxyConfigurationResources sdlProxyConfigurationResources,String appName, java.util.Vector<TTSChunk> ttsName, StringngnMediaScreenAppName, java.util.Vector<java.lang.String>vrSynonyms, Boolean isMediaApp, SdlMsgVersion sdlMsgVersion,Language languageDesired, LanguagehmiDisplayLanguageDesired, String appID, String autoActivateID,boolean callbackToUIThread, boolean preRegister )

• SdlProxyALM( IProxyListenerALM listener,SdlProxyConfigurationResources sdlProxyConfigurationResources,String appName, java.util.Vector<TTSChunk> ttsName, StringngnMediaScreenAppName, java.util.Vector<java.lang.String>vrSynonyms, Boolean isMediaApp, SdlMsgVersion sdlMsgVersion,Language languageDesired, Language

Page 510: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

hmiDisplayLanguageDesired, String appID, String autoActivateID,boolean callbackToUIThread, boolean preRegister,BaseTransportConfig transportConfig )

• SdlProxyALM( IProxyListenerALM listener,SdlProxyConfigurationResources sdlProxyConfigurationResources,String appName, java.util.Vector<TTSChunk> ttsName, StringngnMediaScreenAppName, java.util.Vector<java.lang.String>vrSynonyms, Boolean isMediaApp, SdlMsgVersion sdlMsgVersion,Language languageDesired, LanguagehmiDisplayLanguageDesired, java.util.Vector<AppHMIType>appType, String appID, String autoActivateID, booleancallbackToUIThread, boolean preRegister )

• SdlProxyALM( Context context, IProxyListenerALM listener,SdlProxyConfigurationResources sdlProxyConfigurationResources,String appName, java.util.Vector<TTSChunk> ttsName, StringngnMediaScreenAppName, java.util.Vector<java.lang.String>vrSynonyms, Boolean isMediaApp, SdlMsgVersion sdlMsgVersion,Language languageDesired, LanguagehmiDisplayLanguageDesired, java.util.Vector<AppHMIType>appType, String appID, String autoActivateID, booleancallbackToUIThread, boolean preRegister )

• SdlProxyALM( IProxyListenerALM listener,SdlProxyConfigurationResources sdlProxyConfigurationResources,String appName, java.util.Vector<TTSChunk> ttsName, StringngnMediaScreenAppName, java.util.Vector<java.lang.String>vrSynonyms, Boolean isMediaApp, SdlMsgVersion sdlMsgVersion,Language languageDesired, LanguagehmiDisplayLanguageDesired, java.util.Vector<AppHMIType>appType, String appID, String autoActivateID, booleancallbackToUIThread, boolean preRegister, BaseTransportConfigtransportConfig )

• SdlProxyALM( Service appService, IProxyListenerALM listener,SdlProxyConfigurationResources sdlProxyConfigurationResources,String appName, java.util.Vector<TTSChunk> ttsName, StringngnMediaScreenAppName, java.util.Vector<java.lang.String>vrSynonyms, Boolean isMediaApp, SdlMsgVersion sdlMsgVersion,Language languageDesired, LanguagehmiDisplayLanguageDesired, java.util.Vector<AppHMIType>appType, String appID, String autoActivateID, booleancallbackToUIThread, boolean preRegister, BaseTransportConfigtransportConfig )

• SdlProxyALM( IProxyListenerALM listener,SdlProxyConfigurationResources sdlProxyConfigurationResources,String appName, java.util.Vector<TTSChunk> ttsName, StringngnMediaScreenAppName, java.util.Vector<java.lang.String>vrSynonyms, Boolean isMediaApp, SdlMsgVersion sdlMsgVersion,Language languageDesired, LanguagehmiDisplayLanguageDesired, java.util.Vector<AppHMIType>appType, String appID, String autoActivateID, booleancallbackToUIThread, boolean preRegister, String sHashID,BaseTransportConfig transportConfig )

• SdlProxyALM( Service appService, IProxyListenerALM listener,SdlProxyConfigurationResources sdlProxyConfigurationResources,String appName, java.util.Vector<TTSChunk> ttsName, StringngnMediaScreenAppName, java.util.Vector<java.lang.String>

Page 511: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

vrSynonyms, Boolean isMediaApp, SdlMsgVersion sdlMsgVersion,Language languageDesired, LanguagehmiDisplayLanguageDesired, java.util.Vector<AppHMIType>appType, String appID, String autoActivateID, booleancallbackToUIThread, boolean preRegister, String sHashID,BaseTransportConfig transportConfig )

• SdlProxyALM( Service appService, IProxyListenerALM listener,SdlProxyConfigurationResources sdlProxyConfigurationResources,String appName, java.util.Vector<TTSChunk> ttsName, StringngnMediaScreenAppName, java.util.Vector<java.lang.String>vrSynonyms, Boolean isMediaApp, SdlMsgVersion sdlMsgVersion,Language languageDesired, LanguagehmiDisplayLanguageDesired, java.util.Vector<AppHMIType>appType, String appID, String autoActivateID,TemplateColorScheme dayColorScheme, TemplateColorSchemenightColorScheme, boolean callbackToUIThread, booleanpreRegister, String sHashID, BaseTransportConfig transportConfig)

Methods

• resetProxy() • getButtonCapabilities() Deprecated• getSoftButtonCapabilities() Deprecated• getPresetBankCapabilities() Deprecated• getProxyVersionInfo() • getDisplayCapabilities() Deprecated• getHmiZoneCapabilities() Deprecated• getSpeechCapabilities() Deprecated• getPrerecordedSpeech() • getSdlLanguage() • getHmiDisplayLanguage() • getSdlMsgVersion() • getVrCapabilities() Deprecated• getVehicleType() • getAudioPassThruCapabilities() Deprecated• getSupportedDiagModes() • getHmiCapabilities() Deprecated• getSystemSoftwareVersion()

Page 512: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

• isAppResumeSuccess()

Fields

Inherited Fields

From Class Fields

Constructors

com.smartdevicelink.proxy.SdlProxyBase

TAG, MAX_SUPPORTED_RPC_VERSION, _a

ppService, _advancedLifecycleManagem

entEnabled, _appInterfaceRegisterd, _pre

Registerd, _haveReceivedFirstFocusLevel,

_haveReceivedFirstFocusLevelFull, _proxy

Disposed, _sdlConnectionState, _sdlIntef

aceAvailablity, _hmiLevel, lastHmiStatus,

_audioStreamingState, _sdlMsgVersion, _

autoActivateIdReturned, _sdlLanguage, _

hmiDisplayLanguage, _prerecordedSpeec

h, _vehicleType, _systemSoftwareVersion,

_diagModes, firstTimeFull, _proxyVersionI

nfo, _bResumeSuccess, _secList, _system

CapabilityManager, _iconResumed, raiRe

sponse, protocolVersion, rpcSpecVersion,

rpcResponseListeners, rpcNotificationList

eners, rpcRequestListeners, rpcListeners,

manager, authToken

Page 513: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

SdlProxyALM( IProxyListenerALMlistener, String appName,Boolean isMediaApp, LanguagelanguageDesired, LanguagehmiDisplayLanguageDesired,String appID )

Parameters

listener

- Reference to the object in the App listening to callbacks from SDL.

appName

- Name of the application displayed on SDL.

isMediaApp

- Indicates if the app is a media application.

public SdlProxyALM(IProxyListenerALM listener,String appName,Boolean isMediaApp,Language languageDesired,Language hmiDisplayLanguageDesired,String appID)

Page 514: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

languageDesired

hmiDisplayLanguageDesired

appID

SdlProxyALM( Context context,IProxyListenerALM listener,String appName, BooleanisMediaApp, LanguagelanguageDesired, LanguagehmiDisplayLanguageDesired,String appID )

Constructor for the SdlProxy object, the proxy for communicating between the

App and SDL Takes advantage of the advanced lifecycle management.

public SdlProxyALM(Context context,IProxyListenerALM listener,String appName,Boolean isMediaApp,Language languageDesired,Language hmiDisplayLanguageDesired,String appID)

Page 515: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

context

- Used to create a multiplexing transport config

listener

- Reference to the object in the App listening to callbacks from SDL.

appName

- Name of the application displayed on SDL.

isMediaApp

- Indicates if the app is a media application.

languageDesired

hmiDisplayLanguageDesired

appID

Page 516: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

SdlProxyALM( IProxyListenerALMlistener, String appName, StringngnMediaScreenAppName,java.util.Vector<java.lang.String>vrSynonyms, BooleanisMediaApp, SdlMsgVersionsdlMsgVersion, LanguagelanguageDesired, LanguagehmiDisplayLanguageDesired,String appID, StringautoActivateID )

Parameters

listener

- Reference to the object in the App listening to callbacks from SDL.

public SdlProxyALM(IProxyListenerALM listener,String appName,String ngnMediaScreenAppName,java.util.Vector<java.lang.String> vrSynonyms,Boolean isMediaApp,SdlMsgVersion sdlMsgVersion,Language languageDesired,Language hmiDisplayLanguageDesired,String appID,String autoActivateID)

Page 517: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

appName

- Name of the application displayed on SDL.

ngnMediaScreenAppName

- Name of the application displayed on SDL for Navigation equippedvehicles. Limited to five characters.

vrSynonyms

- A vector of strings, all of which can be used as voice commands to

isMediaApp

- Indicates if the app is a media application.

sdlMsgVersion

- Indicates the version of SDL SmartDeviceLink Messages desired. Mustbe less than or equal to the version of SDL SmartDeviceLink running onthe vehicle.

languageDesired

- Indicates the language desired for the SDL interface.

hmiDisplayLanguageDesired

appID

Page 518: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

autoActivateID

- ID used to re-register previously registered application.

SdlProxyALM( Context context,IProxyListenerALM listener,String appName, StringngnMediaScreenAppName,java.util.Vector<java.lang.String>vrSynonyms, BooleanisMediaApp, SdlMsgVersionsdlMsgVersion, LanguagelanguageDesired, LanguagehmiDisplayLanguageDesired,String appID, StringautoActivateID )

Constructor for the SdlProxy object, the proxy for communicating between the

App and SDL. Takes advantage of the advanced lifecycle management.

public SdlProxyALM(Context context,IProxyListenerALM listener,String appName,String ngnMediaScreenAppName,java.util.Vector<java.lang.String> vrSynonyms,Boolean isMediaApp,SdlMsgVersion sdlMsgVersion,Language languageDesired,Language hmiDisplayLanguageDesired,String appID,String autoActivateID)

Page 519: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

context

- Used to create a multiplexing transport config

listener

- Reference to the object in the App listening to callbacks from SDL.

appName

- Name of the application displayed on SDL.

ngnMediaScreenAppName

- Name of the application displayed on SDL for Navigation equippedvehicles. Limited to five characters.

vrSynonyms

- A vector of strings, all of which can be used as voice commands to

isMediaApp

- Indicates if the app is a media application.

sdlMsgVersion

- Indicates the version of SDL SmartDeviceLink Messages desired. Mustbe less than or equal to the version of SDL SmartDeviceLink running onthe vehicle.

Page 520: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

languageDesired

- Indicates the language desired for the SDL interface.

hmiDisplayLanguageDesired

appID

autoActivateID

- ID used to re-register previously registered application.

Page 521: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

SdlProxyALM( IProxyListenerALMlistener,SdlProxyConfigurationResourcessdlProxyConfigurationResources,String appName, StringngnMediaScreenAppName,java.util.Vector<java.lang.String>vrSynonyms, BooleanisMediaApp, SdlMsgVersionsdlMsgVersion, LanguagelanguageDesired, LanguagehmiDisplayLanguageDesired,String appID, StringautoActivateID )

public SdlProxyALM(IProxyListenerALM listener,SdlProxyConfigurationResources sdlProxyConfigurationResources,String appName,String ngnMediaScreenAppName,java.util.Vector<java.lang.String> vrSynonyms,Boolean isMediaApp,SdlMsgVersion sdlMsgVersion,Language languageDesired,Language hmiDisplayLanguageDesired,String appID,String autoActivateID)

Page 522: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

listener

- Reference to the object in the App listening to callbacks from SDL.

sdlProxyConfigurationResources

appName

- Name of the application displayed on SDL.

ngnMediaScreenAppName

- Name of the application displayed on SDL for Navigation equippedvehicles. Limited to five characters.

vrSynonyms

- A vector of strings, all of which can be used as voice commands to

isMediaApp

- Indicates if the app is a media application.

sdlMsgVersion

- Indicates the version of SDL SmartDeviceLink Messages desired. Mustbe less than or equal to the version of SDL SmartDeviceLink running onthe vehicle.

Page 523: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

languageDesired

- Indicates the language desired for the SDL interface.

hmiDisplayLanguageDesired

appID

autoActivateID

- ID used to re-register previously registered application.

Page 524: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

SdlProxyALM( Context context,IProxyListenerALM listener,SdlProxyConfigurationResourcessdlProxyConfigurationResources,String appName, StringngnMediaScreenAppName,java.util.Vector<java.lang.String>vrSynonyms, BooleanisMediaApp, SdlMsgVersionsdlMsgVersion, LanguagelanguageDesired, LanguagehmiDisplayLanguageDesired,String appID, StringautoActivateID )

Constructor for the SdlProxy object, the proxy for communicating between the

App and SDL. Takes advantage of the advanced lifecycle management.

public SdlProxyALM(Context context,IProxyListenerALM listener,SdlProxyConfigurationResources sdlProxyConfigurationResources,String appName,String ngnMediaScreenAppName,java.util.Vector<java.lang.String> vrSynonyms,Boolean isMediaApp,SdlMsgVersion sdlMsgVersion,Language languageDesired,Language hmiDisplayLanguageDesired,String appID,String autoActivateID)

Page 525: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

context

- Used to create a multiplexing transport config

listener

- Reference to the object in the App listening to callbacks from SDL.

sdlProxyConfigurationResources

appName

- Name of the application displayed on SDL.

ngnMediaScreenAppName

- Name of the application displayed on SDL for Navigation equippedvehicles. Limited to five characters.

vrSynonyms

- A vector of strings, all of which can be used as voice commands to

isMediaApp

- Indicates if the app is a media application.

Page 526: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

sdlMsgVersion

- Indicates the version of SDL SmartDeviceLink Messages desired. Mustbe less than or equal to the version of SDL SmartDeviceLink running onthe vehicle.

languageDesired

- Indicates the language desired for the SDL interface.

hmiDisplayLanguageDesired

appID

autoActivateID

- ID used to re-register previously registered application.

Page 527: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

SdlProxyALM( IProxyListenerALMlistener, String appName, StringngnMediaScreenAppName,java.util.Vector<java.lang.String>vrSynonyms, BooleanisMediaApp, SdlMsgVersionsdlMsgVersion, LanguagelanguageDesired, LanguagehmiDisplayLanguageDesired,String appID, StringautoActivateID, booleancallbackToUIThread )

Parameters

listener

public SdlProxyALM(IProxyListenerALM listener,String appName,String ngnMediaScreenAppName,java.util.Vector<java.lang.String> vrSynonyms,Boolean isMediaApp,SdlMsgVersion sdlMsgVersion,Language languageDesired,Language hmiDisplayLanguageDesired,String appID,String autoActivateID,boolean callbackToUIThread)

Page 528: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

- Reference to the object in the App listening to callbacks from SDL.

appName

- Name of the application displayed on SDL.

ngnMediaScreenAppName

- Name of the application displayed on SDL for Navigation equippedvehicles. Limited to five characters.

vrSynonyms

- A vector of strings, all of which can be used as voice commands to

isMediaApp

- Indicates if the app is a media application.

sdlMsgVersion

- Indicates the version of SDL SmartDeviceLink Messages desired. Mustbe less than or equal to the version of SDL SmartDeviceLink running onthe vehicle.

languageDesired

- Indicates the language desired for the SDL interface.

hmiDisplayLanguageDesired

appID

Page 529: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

autoActivateID

- ID used to re-register previously registered application.

callbackToUIThread

- If true, all callbacks will occur on the UI thread.

SdlProxyALM( Context context,IProxyListenerALM listener,String appName, StringngnMediaScreenAppName,java.util.Vector<java.lang.String>vrSynonyms, BooleanisMediaApp, SdlMsgVersionsdlMsgVersion, LanguagelanguageDesired, LanguagehmiDisplayLanguageDesired,String appID, StringautoActivateID, booleancallbackToUIThread )

Constructor for the SdlProxy object, the proxy for communicating between the

App and SDL. Takes advantage of the advanced lifecycle management.

Page 530: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

context

- Used to create a multiplexing transport config

listener

- Reference to the object in the App listening to callbacks from SDL.

appName

- Name of the application displayed on SDL.

ngnMediaScreenAppName

- Name of the application displayed on SDL for Navigation equippedvehicles. Limited to five characters.

vrSynonyms

- A vector of strings, all of which can be used as voice commands to

public SdlProxyALM(Context context,IProxyListenerALM listener,String appName,String ngnMediaScreenAppName,java.util.Vector<java.lang.String> vrSynonyms,Boolean isMediaApp,SdlMsgVersion sdlMsgVersion,Language languageDesired,Language hmiDisplayLanguageDesired,String appID,String autoActivateID,boolean callbackToUIThread)

Page 531: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

isMediaApp

- Indicates if the app is a media application.

sdlMsgVersion

- Indicates the version of SDL SmartDeviceLink Messages desired. Mustbe less than or equal to the version of SDL SmartDeviceLink running onthe vehicle.

languageDesired

- Indicates the language desired for the SDL interface.

hmiDisplayLanguageDesired

appID

autoActivateID

- ID used to re-register previously registered application.

callbackToUIThread

- If true, all callbacks will occur on the UI thread.

Page 532: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

SdlProxyALM( IProxyListenerALMlistener,SdlProxyConfigurationResourcessdlProxyConfigurationResources,String appName, StringngnMediaScreenAppName,java.util.Vector<java.lang.String>vrSynonyms, BooleanisMediaApp, SdlMsgVersionsdlMsgVersion, LanguagelanguageDesired, LanguagehmiDisplayLanguageDesired,String appID, StringautoActivateID, booleancallbackToUIThread )

public SdlProxyALM(IProxyListenerALM listener,SdlProxyConfigurationResources sdlProxyConfigurationResources,String appName,String ngnMediaScreenAppName,java.util.Vector<java.lang.String> vrSynonyms,Boolean isMediaApp,SdlMsgVersion sdlMsgVersion,Language languageDesired,Language hmiDisplayLanguageDesired,String appID,String autoActivateID,boolean callbackToUIThread)

Page 533: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

listener

- Reference to the object in the App listening to callbacks from SDL.

sdlProxyConfigurationResources

appName

- Name of the application displayed on SDL.

ngnMediaScreenAppName

- Name of the application displayed on SDL for Navigation equippedvehicles. Limited to five characters.

vrSynonyms

- A vector of strings, all of which can be used as voice commands to

isMediaApp

- Indicates if the app is a media application.

sdlMsgVersion

- Indicates the version of SDL SmartDeviceLink Messages desired. Mustbe less than or equal to the version of SDL SmartDeviceLink running onthe vehicle.

Page 534: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

languageDesired

- Indicates the language desired for the SDL interface.

hmiDisplayLanguageDesired

appID

autoActivateID

- ID used to re-register previously registered application.

callbackToUIThread

- If true, all callbacks will occur on the UI thread.

Page 535: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

SdlProxyALM( Context context,IProxyListenerALM listener,SdlProxyConfigurationResourcessdlProxyConfigurationResources,String appName, StringngnMediaScreenAppName,java.util.Vector<java.lang.String>vrSynonyms, BooleanisMediaApp, SdlMsgVersionsdlMsgVersion, LanguagelanguageDesired, LanguagehmiDisplayLanguageDesired,String appID, StringautoActivateID, booleancallbackToUIThread )

Constructor for the SdlProxy object, the proxy for communicating between the

App and SDL. Takes advantage of the advanced lifecycle management.

public SdlProxyALM(Context context,IProxyListenerALM listener,SdlProxyConfigurationResources sdlProxyConfigurationResources,String appName,String ngnMediaScreenAppName,java.util.Vector<java.lang.String> vrSynonyms,Boolean isMediaApp,SdlMsgVersion sdlMsgVersion,Language languageDesired,Language hmiDisplayLanguageDesired,String appID,String autoActivateID,boolean callbackToUIThread)

Page 536: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

context

- Used to create a multiplexing transport config

listener

- Reference to the object in the App listening to callbacks from SDL.

sdlProxyConfigurationResources

appName

- Name of the application displayed on SDL.

ngnMediaScreenAppName

- Name of the application displayed on SDL for Navigation equippedvehicles. Limited to five characters.

vrSynonyms

- A vector of strings, all of which can be used as voice commands to

isMediaApp

- Indicates if the app is a media application.

Page 537: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

sdlMsgVersion

- Indicates the version of SDL SmartDeviceLink Messages desired. Mustbe less than or equal to the version of SDL SmartDeviceLink running onthe vehicle.

languageDesired

- Indicates the language desired for the SDL interface.

hmiDisplayLanguageDesired

appID

autoActivateID

- ID used to re-register previously registered application.

callbackToUIThread

- If true, all callbacks will occur on the UI thread.

Page 538: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

SdlProxyALM( IProxyListenerALMlistener,SdlProxyConfigurationResourcessdlProxyConfigurationResources,String appName, StringngnMediaScreenAppName,java.util.Vector<java.lang.String>vrSynonyms, BooleanisMediaApp, SdlMsgVersionsdlMsgVersion, LanguagelanguageDesired, LanguagehmiDisplayLanguageDesired,String appID, StringautoActivateID, booleancallbackToUIThread, booleanpreRegister )

public SdlProxyALM(IProxyListenerALM listener,SdlProxyConfigurationResources sdlProxyConfigurationResources,String appName,String ngnMediaScreenAppName,java.util.Vector<java.lang.String> vrSynonyms,Boolean isMediaApp,SdlMsgVersion sdlMsgVersion,Language languageDesired,Language hmiDisplayLanguageDesired,String appID,String autoActivateID,boolean callbackToUIThread,boolean preRegister)

Page 539: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

listener

sdlProxyConfigurationResources

appName

ngnMediaScreenAppName

vrSynonyms

isMediaApp

sdlMsgVersion

languageDesired

Page 540: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

hmiDisplayLanguageDesired

appID

autoActivateID

callbackToUIThread

preRegister

Page 541: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

SdlProxyALM( Context context,IProxyListenerALM listener,SdlProxyConfigurationResourcessdlProxyConfigurationResources,String appName, StringngnMediaScreenAppName,java.util.Vector<java.lang.String>vrSynonyms, BooleanisMediaApp, SdlMsgVersionsdlMsgVersion, LanguagelanguageDesired, LanguagehmiDisplayLanguageDesired,String appID, StringautoActivateID, booleancallbackToUIThread, booleanpreRegister )

public SdlProxyALM(Context context,IProxyListenerALM listener,SdlProxyConfigurationResources sdlProxyConfigurationResources,String appName,String ngnMediaScreenAppName,java.util.Vector<java.lang.String> vrSynonyms,Boolean isMediaApp,SdlMsgVersion sdlMsgVersion,Language languageDesired,Language hmiDisplayLanguageDesired,String appID,String autoActivateID,boolean callbackToUIThread,boolean preRegister)

Page 542: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

context

listener

sdlProxyConfigurationResources

appName

ngnMediaScreenAppName

vrSynonyms

isMediaApp

sdlMsgVersion

Page 543: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

languageDesired

hmiDisplayLanguageDesired

appID

autoActivateID

callbackToUIThread

preRegister

Page 544: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

SdlProxyALM( IProxyListenerALMlistener, String appName,Boolean isMediaApp, LanguagelanguageDesired, LanguagehmiDisplayLanguageDesired,String appID,BaseTransportConfigtransportConfig )

Constructor for the SdlProxy object, the proxy for communicating between the

App and SDL via specified transport. Takes advantage of the advanced lifecycle

management.

Parameters

listener

Reference to the object in the App listening to callbacks from SDL.

public SdlProxyALM(IProxyListenerALM listener,String appName,Boolean isMediaApp,Language languageDesired,Language hmiDisplayLanguageDesired,String appID,BaseTransportConfig transportConfig)

Page 545: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

appName

Name of the application displayed on SDL.

isMediaApp

Indicates if the app is a media application.

languageDesired

hmiDisplayLanguageDesired

appID

transportConfig

Initial configuration for transport.

Page 546: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

SdlProxyALM( IProxyListenerALMlistener, String appName, StringngnMediaScreenAppName,java.util.Vector<java.lang.String>vrSynonyms, BooleanisMediaApp, SdlMsgVersionsdlMsgVersion, LanguagelanguageDesired, LanguagehmiDisplayLanguageDesired,String appID, StringautoActivateID, TransportTypetransportType,BaseTransportConfigtransportConfig )

Constructor for the SdlProxy object, the proxy for communicating between the

App and SDL via specified transport. Takes advantage of the advanced lifecycle

management.

public SdlProxyALM(IProxyListenerALM listener,String appName,String ngnMediaScreenAppName,java.util.Vector<java.lang.String> vrSynonyms,Boolean isMediaApp,SdlMsgVersion sdlMsgVersion,Language languageDesired,Language hmiDisplayLanguageDesired,String appID,String autoActivateID,TransportType transportType,BaseTransportConfig transportConfig)

Page 547: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

listener

Reference to the object in the App listening to callbacks from SDL.

appName

Name of the application displayed on SDL.

ngnMediaScreenAppName

Name of the application displayed on SDL for Navigation equippedvehicles. Limited to five characters.

vrSynonyms

A vector of strings, all of which can be used as voice commands to

isMediaApp

Indicates if the app is a media application.

sdlMsgVersion

Indicates the version of SDL SmartDeviceLink Messages desired. Mustbe less than or equal to the version of SDL SmartDeviceLink running onthe vehicle.

languageDesired

Indicates the language desired for the SDL interface.

Page 548: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

hmiDisplayLanguageDesired

appID

autoActivateID

ID used to re-register previously registered application.

transportType

transportConfig

Initial configuration for transport.

Page 549: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

SdlProxyALM( IProxyListenerALMlistener,SdlProxyConfigurationResourcessdlProxyConfigurationResources,String appName, StringngnMediaScreenAppName,java.util.Vector<java.lang.String>vrSynonyms, BooleanisMediaApp, SdlMsgVersionsdlMsgVersion, LanguagelanguageDesired, LanguagehmiDisplayLanguageDesired,String appID, StringautoActivateID,BaseTransportConfigtransportConfig )

Constructor for the SdlProxy object, the proxy for communicating between the

App and SDL via specified transport. Takes advantage of the advanced lifecycle

management.

Page 550: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

listener

Reference to the object in the App listening to callbacks from SDL.

sdlProxyConfigurationResources

appName

Name of the application displayed on SDL.

ngnMediaScreenAppName

Name of the application displayed on SDL for Navigation equippedvehicles. Limited to five characters.

vrSynonyms

A vector of strings, all of which can be used as voice commands to

public SdlProxyALM(IProxyListenerALM listener,SdlProxyConfigurationResources sdlProxyConfigurationResources,String appName,String ngnMediaScreenAppName,java.util.Vector<java.lang.String> vrSynonyms,Boolean isMediaApp,SdlMsgVersion sdlMsgVersion,Language languageDesired,Language hmiDisplayLanguageDesired,String appID,String autoActivateID,BaseTransportConfig transportConfig)

Page 551: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

isMediaApp

Indicates if the app is a media application.

sdlMsgVersion

Indicates the version of SDL SmartDeviceLink Messages desired. Mustbe less than or equal to the version of SDL SmartDeviceLink running onthe vehicle.

languageDesired

Indicates the language desired for the SDL interface.

hmiDisplayLanguageDesired

appID

autoActivateID

ID used to re-register previously registered application.

transportConfig

Initial configuration for transport.

Page 552: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

SdlProxyALM( IProxyListenerALMlistener, String appName, StringngnMediaScreenAppName,java.util.Vector<java.lang.String>vrSynonyms, BooleanisMediaApp, SdlMsgVersionsdlMsgVersion, LanguagelanguageDesired, LanguagehmiDisplayLanguageDesired,String appID, StringautoActivateID, booleancallbackToUIThread,BaseTransportConfigtransportConfig )

Constructor for the SdlProxy object, the proxy for communicating between the

App and SDL via specified transport. Takes advantage of the advanced lifecycle

management.

public SdlProxyALM(IProxyListenerALM listener,String appName,String ngnMediaScreenAppName,java.util.Vector<java.lang.String> vrSynonyms,Boolean isMediaApp,SdlMsgVersion sdlMsgVersion,Language languageDesired,Language hmiDisplayLanguageDesired,String appID,String autoActivateID,boolean callbackToUIThread,BaseTransportConfig transportConfig)

Page 553: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

listener

Reference to the object in the App listening to callbacks from SDL.

appName

Name of the application displayed on SDL.

ngnMediaScreenAppName

Name of the application displayed on SDL for Navigation equippedvehicles. Limited to five characters.

vrSynonyms

A vector of strings, all of which can be used as voice commands to

isMediaApp

Indicates if the app is a media application.

sdlMsgVersion

Indicates the version of SDL SmartDeviceLink Messages desired. Mustbe less than or equal to the version of SDL SmartDeviceLink running onthe vehicle.

languageDesired

Indicates the language desired for the SDL interface.

Page 554: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

hmiDisplayLanguageDesired

appID

autoActivateID

ID used to re-register previously registered application.

callbackToUIThread

If true, all callbacks will occur on the UI thread.

transportConfig

Initial configuration for transport.

Page 555: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

SdlProxyALM( IProxyListenerALMlistener,SdlProxyConfigurationResourcessdlProxyConfigurationResources,String appName, StringngnMediaScreenAppName,java.util.Vector<java.lang.String>vrSynonyms, BooleanisMediaApp, SdlMsgVersionsdlMsgVersion, LanguagelanguageDesired, LanguagehmiDisplayLanguageDesired,String appID, StringautoActivateID, booleancallbackToUIThread,BaseTransportConfigtransportConfig )

Constructor for the SdlProxy object, the proxy for communicating between the

App and SDL via specified transport. Takes advantage of the advanced lifecycle

management.

Page 556: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

listener

Reference to the object in the App listening to callbacks from SDL.

sdlProxyConfigurationResources

appName

Name of the application displayed on SDL.

ngnMediaScreenAppName

Name of the application displayed on SDL for Navigation equippedvehicles. Limited to five characters.

vrSynonyms

A vector of strings, all of which can be used as voice commands too

public SdlProxyALM(IProxyListenerALM listener,SdlProxyConfigurationResources sdlProxyConfigurationResources,String appName,String ngnMediaScreenAppName,java.util.Vector<java.lang.String> vrSynonyms,Boolean isMediaApp,SdlMsgVersion sdlMsgVersion,Language languageDesired,Language hmiDisplayLanguageDesired,String appID,String autoActivateID,boolean callbackToUIThread,BaseTransportConfig transportConfig)

Page 557: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

isMediaApp

Indicates if the app is a media application.

sdlMsgVersion

Indicates the version of SDL SmartDeviceLink Messages desired. Mustbe less than or equal to the version of SDL SmartDeviceLink running onthe vehicle.

languageDesired

Indicates the language desired for the SDL interface.

hmiDisplayLanguageDesired

appID

autoActivateID

ID used to re-register previously registered application.

callbackToUIThread

If true, all callbacks will occur on the UI thread.

transportConfig

Initial configuration for transport.

Page 558: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

SdlProxyALM( IProxyListenerALMlistener,SdlProxyConfigurationResourcessdlProxyConfigurationResources,String appName, StringngnMediaScreenAppName,java.util.Vector<java.lang.String>vrSynonyms, BooleanisMediaApp, SdlMsgVersionsdlMsgVersion, LanguagelanguageDesired, LanguagehmiDisplayLanguageDesired,String appID, StringautoActivateID, booleancallbackToUIThread, booleanpreRegister, BaseTransportConfigtransportConfig )

Constructor for the SdlProxy object, the proxy for communicating between the

App and SDL via specified transport. Takes advantage of the advanced lifecycle

management.

Page 559: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

listener

Reference to the object in the App listening to callbacks from SDL.

sdlProxyConfigurationResources

Proxy configuration resources.

appName

Name of the application displayed on SDL.

ngnMediaScreenAppName

Name of the application displayed on SDL for Navigation equippedvehicles. Limited to five characters.

vrSynonyms

A vector of strings, all of which can be used as voice commands too

public SdlProxyALM(IProxyListenerALM listener,SdlProxyConfigurationResources sdlProxyConfigurationResources,String appName,String ngnMediaScreenAppName,java.util.Vector<java.lang.String> vrSynonyms,Boolean isMediaApp,SdlMsgVersion sdlMsgVersion,Language languageDesired,Language hmiDisplayLanguageDesired,String appID,String autoActivateID,boolean callbackToUIThread,boolean preRegister,BaseTransportConfig transportConfig)

Page 560: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

isMediaApp

Indicates if the app is a media application.

sdlMsgVersion

Indicates the version of SDL SmartDeviceLink Messages desired. Mustbe less than or equal to the version of SDL SmartDeviceLink running onthe vehicle.

languageDesired

Indicates the language desired for the SDL interface.

hmiDisplayLanguageDesired

Desired language in HMI.

appID

Identifier of the client application.

autoActivateID

ID used to re-register previously registered application.

callbackToUIThread

If true, all callbacks will occur on the UI thread.

preRegister

Flag that indicates that client should be pre-registred or not

Page 561: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

transportConfig

Initial configuration for transport.

SdlProxyALM( IProxyListenerALMlistener, String appName,Boolean isMediaApp, LanguagelanguageDesired, LanguagehmiDisplayLanguageDesired,String appID, booleancallbackToUIThread, booleanpreRegister )

Parameters

listener

Reference to the object in the App listening to callbacks from SDL.

public SdlProxyALM(IProxyListenerALM listener,String appName,Boolean isMediaApp,Language languageDesired,Language hmiDisplayLanguageDesired,String appID,boolean callbackToUIThread,boolean preRegister)

Page 562: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

appName

Name of the application displayed on SDL.

isMediaApp

Indicates if the app is a media application.

languageDesired

Indicates the language desired for the SDL interface.

hmiDisplayLanguageDesired

Desired language in HMI.

appID

Identifier of the client application.

callbackToUIThread

If true, all callbacks will occur on the UI thread.

preRegister

Flag that indicates that client should be pre-registred or not

Page 563: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

SdlProxyALM( Context context,IProxyListenerALM listener,String appName, BooleanisMediaApp, LanguagelanguageDesired, LanguagehmiDisplayLanguageDesired,String appID, booleancallbackToUIThread, booleanpreRegister )

Constructor for the SdlProxy object, the proxy for communicating between the

App and SDL via specified transport. Takes advantage of the advanced lifecycle

management.

Parameters

context

- Used to create a multiplexing transport config

public SdlProxyALM(Context context,IProxyListenerALM listener,String appName,Boolean isMediaApp,Language languageDesired,Language hmiDisplayLanguageDesired,String appID,boolean callbackToUIThread,boolean preRegister)

Page 564: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

listener

Reference to the object in the App listening to callbacks from SDL.

appName

Name of the application displayed on SDL.

isMediaApp

Indicates if the app is a media application.

languageDesired

Indicates the language desired for the SDL interface.

hmiDisplayLanguageDesired

Desired language in HMI.

appID

Identifier of the client application.

callbackToUIThread

If true, all callbacks will occur on the UI thread.

preRegister

Flag that indicates that client should be pre-registred or not

Page 565: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

SdlProxyALM( IProxyListenerALMlistener, String appName,Boolean isMediaApp, StringappID )

Parameters

listener

Reference to the object in the App listening to callbacks from SDL.

appName

Name of the application displayed on SDL.

isMediaApp

Indicates if the app is a media application.

appID

Identifier of the client application.

public SdlProxyALM(IProxyListenerALM listener,String appName,Boolean isMediaApp,String appID)

Page 566: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

SdlProxyALM( Context context,IProxyListenerALM listener,String appName, BooleanisMediaApp, String appID )

Constructor for the SdlProxy object, the proxy for communicating between the

App and SDL via specified transport. Takes advantage of the advanced lifecycle

management.

Parameters

context

- Used to create a multiplexing transport config

listener

Reference to the object in the App listening to callbacks from SDL.

appName

Name of the application displayed on SDL.

public SdlProxyALM(Context context,IProxyListenerALM listener,String appName,Boolean isMediaApp,String appID)

Page 567: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

isMediaApp

Indicates if the app is a media application.

appID

Identifier of the client application.

SdlProxyALM( IProxyListenerALMlistener,SdlProxyConfigurationResourcessdlProxyConfigurationResources,String appName, BooleanisMediaApp, String appID )

Parameters

listener

Reference to the object in the App listening to callbacks from SDL.

public SdlProxyALM(IProxyListenerALM listener,SdlProxyConfigurationResources sdlProxyConfigurationResources,String appName,Boolean isMediaApp,String appID)

Page 568: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

sdlProxyConfigurationResources

Proxy configuration resources.

appName

Name of the application displayed on SDL.

isMediaApp

Indicates if the app is a media application.

appID

Identifier of the client application.

SdlProxyALM( Context context,IProxyListenerALM listener,SdlProxyConfigurationResourcessdlProxyConfigurationResources,String appName, BooleanisMediaApp, String appID )

Constructor for the SdlProxy object, the proxy for communicating between the

App and SDL via specified transport. Takes advantage of the advanced lifecycle

management.

Page 569: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

context

- Used to create a multiplexing transport config

listener

Reference to the object in the App listening to callbacks from SDL.

sdlProxyConfigurationResources

Proxy configuration resources.

appName

Name of the application displayed on SDL.

isMediaApp

Indicates if the app is a media application.

appID

Identifier of the client application.

public SdlProxyALM(Context context,IProxyListenerALM listener,SdlProxyConfigurationResources sdlProxyConfigurationResources,String appName,Boolean isMediaApp,String appID)

Page 570: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

SdlProxyALM( IProxyListenerALMlistener, String appName,Boolean isMediaApp, StringappID, BaseTransportConfigtransportConfig )

Parameters

listener

appName

isMediaApp

appID

public SdlProxyALM(IProxyListenerALM listener,String appName,Boolean isMediaApp,String appID,BaseTransportConfig transportConfig)

Page 571: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

transportConfig

SdlProxyALM( IProxyListenerALMlistener, String appName,Boolean isMediaApp, StringappID, TemplateColorSchemedayColorScheme,TemplateColorSchemenightColorScheme,BaseTransportConfigtransportConfig )

Parameters

listener

public SdlProxyALM(IProxyListenerALM listener,String appName,Boolean isMediaApp,String appID,TemplateColorScheme dayColorScheme,TemplateColorScheme nightColorScheme,BaseTransportConfig transportConfig)

Page 572: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

appName

isMediaApp

appID

dayColorScheme

nightColorScheme

transportConfig

SdlProxyALM( IProxyListenerALMlistener, String appName,Boolean isMediaApp, StringappID, booleancallbackToUIThread, booleanpreRegister )

Page 573: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

listener

Reference to the object in the App listening to callbacks from SDL.

appName

Name of the application displayed on SDL.

isMediaApp

Indicates if the app is a media application.

appID

Identifier of the client application.

callbackToUIThread

If true, all callbacks will occur on the UI thread.

preRegister

Flag that indicates that client should be pre-registred or not

public SdlProxyALM(IProxyListenerALM listener,String appName,Boolean isMediaApp,String appID,boolean callbackToUIThread,boolean preRegister)

Page 574: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

SdlProxyALM( Context context,IProxyListenerALM listener,String appName, BooleanisMediaApp, String appID,boolean callbackToUIThread,boolean preRegister )

Constructor for the SdlProxy object, the proxy for communicating between the

App and SDL via specified transport. Takes advantage of the advanced lifecycle

management.

Parameters

context

- Used to create a multiplexing transport config

listener

Reference to the object in the App listening to callbacks from SDL.

public SdlProxyALM(Context context,IProxyListenerALM listener,String appName,Boolean isMediaApp,String appID,boolean callbackToUIThread,boolean preRegister)

Page 575: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

appName

Name of the application displayed on SDL.

isMediaApp

Indicates if the app is a media application.

appID

Identifier of the client application.

callbackToUIThread

If true, all callbacks will occur on the UI thread.

preRegister

Flag that indicates that client should be pre-registred or not

Page 576: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

SdlProxyALM( ServiceappService, IProxyListenerALMlistener,SdlProxyConfigurationResourcessdlProxyConfigurationResources,String appName,java.util.Vector<TTSChunk>ttsName, StringngnMediaScreenAppName,java.util.Vector<java.lang.String>vrSynonyms, BooleanisMediaApp, SdlMsgVersionsdlMsgVersion, LanguagelanguageDesired, LanguagehmiDisplayLanguageDesired,String appID, StringautoActivateID, booleancallbackToUIThread, booleanpreRegister )

Constructor for the SdlProxy object, the proxy for communicating between the

App and SDL via specified transport. Takes advantage of the advanced lifecycle

management.

Page 577: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

appService

Reference to the apps service object.

listener

Reference to the object in the App listening to callbacks from SDL.

sdlProxyConfigurationResources

Proxy configuration resources.

appName

Name of the application displayed on SDL.

ttsName

TTS name.

public SdlProxyALM(Service appService,IProxyListenerALM listener,SdlProxyConfigurationResources sdlProxyConfigurationResources,String appName,java.util.Vector<TTSChunk> ttsName,String ngnMediaScreenAppName,java.util.Vector<java.lang.String> vrSynonyms,Boolean isMediaApp,SdlMsgVersion sdlMsgVersion,Language languageDesired,Language hmiDisplayLanguageDesired,String appID,String autoActivateID,boolean callbackToUIThread,boolean preRegister)

Page 578: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

ngnMediaScreenAppName

Name of the application displayed on SDL for Navigation equippedvehicles. Limited to five characters.

vrSynonyms

A vector of strings, all of which can be used as voice commands too

isMediaApp

Indicates if the app is a media application.

sdlMsgVersion

Indicates the version of SDL SmartDeviceLink Messages desired. Mustbe less than or equal to the version of SDL SmartDeviceLink running onthe vehicle.

languageDesired

Indicates the language desired for the SDL interface.

hmiDisplayLanguageDesired

Desired language in HMI.

appID

Identifier of the client application.

autoActivateID

ID used to re-register previously registered application.

Page 579: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

callbackToUIThread

If true, all callbacks will occur on the UI thread.

preRegister

Flag that indicates that client should be pre-registred or not

Page 580: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

SdlProxyALM( ServiceappService, IProxyListenerALMlistener,SdlProxyConfigurationResourcessdlProxyConfigurationResources,String appName,java.util.Vector<TTSChunk>ttsName, StringngnMediaScreenAppName,java.util.Vector<java.lang.String>vrSynonyms, BooleanisMediaApp, SdlMsgVersionsdlMsgVersion, LanguagelanguageDesired, LanguagehmiDisplayLanguageDesired,String appID, StringautoActivateID, booleancallbackToUIThread, booleanpreRegister, BaseTransportConfigtransportConfig )

Page 581: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

appService

listener

sdlProxyConfigurationResources

appName

ttsName

ngnMediaScreenAppName

public SdlProxyALM(Service appService,IProxyListenerALM listener,SdlProxyConfigurationResources sdlProxyConfigurationResources,String appName,java.util.Vector<TTSChunk> ttsName,String ngnMediaScreenAppName,java.util.Vector<java.lang.String> vrSynonyms,Boolean isMediaApp,SdlMsgVersion sdlMsgVersion,Language languageDesired,Language hmiDisplayLanguageDesired,String appID,String autoActivateID,boolean callbackToUIThread,boolean preRegister,BaseTransportConfig transportConfig)

Page 582: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

vrSynonyms

isMediaApp

sdlMsgVersion

languageDesired

hmiDisplayLanguageDesired

appID

autoActivateID

callbackToUIThread

preRegister

transportConfig

Page 583: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

SdlProxyALM( IProxyListenerALMlistener,SdlProxyConfigurationResourcessdlProxyConfigurationResources,String appName,java.util.Vector<TTSChunk>ttsName, StringngnMediaScreenAppName,java.util.Vector<java.lang.String>vrSynonyms, BooleanisMediaApp, SdlMsgVersionsdlMsgVersion, LanguagelanguageDesired, LanguagehmiDisplayLanguageDesired,String appID, StringautoActivateID, booleancallbackToUIThread, booleanpreRegister )

Page 584: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

listener

Reference to the object in the App listening to callbacks from SDL.

sdlProxyConfigurationResources

Proxy configuration resources.

appName

Name of the application displayed on SDL.

ttsName

TTS name.

ngnMediaScreenAppName

Name of the application displayed on SDL for Navigation equippedvehicles. Limited to five characters.

public SdlProxyALM(IProxyListenerALM listener,SdlProxyConfigurationResources sdlProxyConfigurationResources,String appName,java.util.Vector<TTSChunk> ttsName,String ngnMediaScreenAppName,java.util.Vector<java.lang.String> vrSynonyms,Boolean isMediaApp,SdlMsgVersion sdlMsgVersion,Language languageDesired,Language hmiDisplayLanguageDesired,String appID,String autoActivateID,boolean callbackToUIThread,boolean preRegister)

Page 585: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

vrSynonyms

A vector of strings, all of which can be used as voice commands too

isMediaApp

Indicates if the app is a media application.

sdlMsgVersion

Indicates the version of SDL SmartDeviceLink Messages desired. Mustbe less than or equal to the version of SDL SmartDeviceLink running onthe vehicle.

languageDesired

Indicates the language desired for the SDL interface.

hmiDisplayLanguageDesired

Desired language in HMI.

appID

Identifier of the client application.

autoActivateID

ID used to re-register previously registered application.

callbackToUIThread

If true, all callbacks will occur on the UI thread.

Page 586: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

preRegister

Flag that indicates that client should be pre-registred or not

Page 587: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

SdlProxyALM( Context context,IProxyListenerALM listener,SdlProxyConfigurationResourcessdlProxyConfigurationResources,String appName,java.util.Vector<TTSChunk>ttsName, StringngnMediaScreenAppName,java.util.Vector<java.lang.String>vrSynonyms, BooleanisMediaApp, SdlMsgVersionsdlMsgVersion, LanguagelanguageDesired, LanguagehmiDisplayLanguageDesired,String appID, StringautoActivateID, booleancallbackToUIThread, booleanpreRegister )

Constructor for the SdlProxy object, the proxy for communicating between the

App and SDL via specified transport. Takes advantage of the advanced lifecycle

management.

Page 588: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

context

- Used to create a multiplexing transport config

listener

Reference to the object in the App listening to callbacks from SDL.

sdlProxyConfigurationResources

Proxy configuration resources.

appName

Name of the application displayed on SDL.

ttsName

TTS name.

public SdlProxyALM(Context context,IProxyListenerALM listener,SdlProxyConfigurationResources sdlProxyConfigurationResources,String appName,java.util.Vector<TTSChunk> ttsName,String ngnMediaScreenAppName,java.util.Vector<java.lang.String> vrSynonyms,Boolean isMediaApp,SdlMsgVersion sdlMsgVersion,Language languageDesired,Language hmiDisplayLanguageDesired,String appID,String autoActivateID,boolean callbackToUIThread,boolean preRegister)

Page 589: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

ngnMediaScreenAppName

Name of the application displayed on SDL for Navigation equippedvehicles. Limited to five characters.

vrSynonyms

A vector of strings, all of which can be used as voice commands too

isMediaApp

Indicates if the app is a media application.

sdlMsgVersion

Indicates the version of SDL SmartDeviceLink Messages desired. Mustbe less than or equal to the version of SDL SmartDeviceLink running onthe vehicle.

languageDesired

Indicates the language desired for the SDL interface.

hmiDisplayLanguageDesired

Desired language in HMI.

appID

Identifier of the client application.

autoActivateID

ID used to re-register previously registered application.

Page 590: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

callbackToUIThread

If true, all callbacks will occur on the UI thread.

preRegister

Flag that indicates that client should be pre-registred or not

Page 591: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

SdlProxyALM( IProxyListenerALMlistener,SdlProxyConfigurationResourcessdlProxyConfigurationResources,String appName,java.util.Vector<TTSChunk>ttsName, StringngnMediaScreenAppName,java.util.Vector<java.lang.String>vrSynonyms, BooleanisMediaApp, SdlMsgVersionsdlMsgVersion, LanguagelanguageDesired, LanguagehmiDisplayLanguageDesired,String appID, StringautoActivateID, booleancallbackToUIThread, booleanpreRegister, BaseTransportConfigtransportConfig )

Constructor for the SdlProxy object, the proxy for communicating between the

App and SDL via specified transport. Takes advantage of the advanced lifecycle

management.

Page 592: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

listener

Reference to the object in the App listening to callbacks from SDL.

sdlProxyConfigurationResources

Proxy configuration resources.

appName

Name of the application displayed on SDL.

ttsName

TTS name.

ngnMediaScreenAppName

Name of the application displayed on SDL for Navigation equippedvehicles. Limited to five characters.

public SdlProxyALM(IProxyListenerALM listener,SdlProxyConfigurationResources sdlProxyConfigurationResources,String appName,java.util.Vector<TTSChunk> ttsName,String ngnMediaScreenAppName,java.util.Vector<java.lang.String> vrSynonyms,Boolean isMediaApp,SdlMsgVersion sdlMsgVersion,Language languageDesired,Language hmiDisplayLanguageDesired,String appID,String autoActivateID,boolean callbackToUIThread,boolean preRegister,BaseTransportConfig transportConfig)

Page 593: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

vrSynonyms

A vector of strings, all of which can be used as voice commands too

isMediaApp

Indicates if the app is a media application.

sdlMsgVersion

Indicates the version of SDL SmartDeviceLink Messages desired. Mustbe less than or equal to the version of SDL SmartDeviceLink running onthe vehicle.

languageDesired

Indicates the language desired for the SDL interface.

hmiDisplayLanguageDesired

Desired language in HMI.

appID

Identifier of the client application.

autoActivateID

ID used to re-register previously registered application.

callbackToUIThread

If true, all callbacks will occur on the UI thread.

Page 594: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

preRegister

Flag that indicates that client should be pre-registred or not

transportConfig

Initial configuration for transport.

Page 595: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

SdlProxyALM( IProxyListenerALMlistener,SdlProxyConfigurationResourcessdlProxyConfigurationResources,String appName,java.util.Vector<TTSChunk>ttsName, StringngnMediaScreenAppName,java.util.Vector<java.lang.String>vrSynonyms, BooleanisMediaApp, SdlMsgVersionsdlMsgVersion, LanguagelanguageDesired, LanguagehmiDisplayLanguageDesired,java.util.Vector<AppHMIType>appType, String appID, StringautoActivateID, booleancallbackToUIThread, booleanpreRegister )

Page 596: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

listener

Reference to the object in the App listening to callbacks from SDL.

sdlProxyConfigurationResources

Proxy configuration resources.

appName

Name of the application displayed on SDL.

ttsName

TTS name.

ngnMediaScreenAppName

Name of the application displayed on SDL for Navigation equippedvehicles. Limited to five characters.

public SdlProxyALM(IProxyListenerALM listener,SdlProxyConfigurationResources sdlProxyConfigurationResources,String appName,java.util.Vector<TTSChunk> ttsName,String ngnMediaScreenAppName,java.util.Vector<java.lang.String> vrSynonyms,Boolean isMediaApp,SdlMsgVersion sdlMsgVersion,Language languageDesired,Language hmiDisplayLanguageDesired,java.util.Vector<AppHMIType> appType,String appID,String autoActivateID,boolean callbackToUIThread,boolean preRegister)

Page 597: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

vrSynonyms

A vector of strings, all of which can be used as voice commands too

isMediaApp

Indicates if the app is a media application.

sdlMsgVersion

Indicates the version of SDL SmartDeviceLink Messages desired. Mustbe less than or equal to the version of SDL SmartDeviceLink running onthe vehicle.

languageDesired

Indicates the language desired for the SDL interface.

hmiDisplayLanguageDesired

Desired language in HMI.

appType

Type of application.

appID

Identifier of the client application.

autoActivateID

ID used to re-register previously registered application.

Page 598: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

callbackToUIThread

If true, all callbacks will occur on the UI thread.

preRegister

Flag that indicates that client should be pre-registred or not

Page 599: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

SdlProxyALM( Context context,IProxyListenerALM listener,SdlProxyConfigurationResourcessdlProxyConfigurationResources,String appName,java.util.Vector<TTSChunk>ttsName, StringngnMediaScreenAppName,java.util.Vector<java.lang.String>vrSynonyms, BooleanisMediaApp, SdlMsgVersionsdlMsgVersion, LanguagelanguageDesired, LanguagehmiDisplayLanguageDesired,java.util.Vector<AppHMIType>appType, String appID, StringautoActivateID, booleancallbackToUIThread, booleanpreRegister )

Constructor for the SdlProxy object, the proxy for communicating between the

App and SDL via specified transport. Takes advantage of the advanced lifecycle

management.

Page 600: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

context

- Used to create a multiplexing transport config

listener

Reference to the object in the App listening to callbacks from SDL.

sdlProxyConfigurationResources

Proxy configuration resources.

appName

Name of the application displayed on SDL.

ttsName

TTS name.

public SdlProxyALM(Context context,IProxyListenerALM listener,SdlProxyConfigurationResources sdlProxyConfigurationResources,String appName,java.util.Vector<TTSChunk> ttsName,String ngnMediaScreenAppName,java.util.Vector<java.lang.String> vrSynonyms,Boolean isMediaApp,SdlMsgVersion sdlMsgVersion,Language languageDesired,Language hmiDisplayLanguageDesired,java.util.Vector<AppHMIType> appType,String appID,String autoActivateID,boolean callbackToUIThread,boolean preRegister)

Page 601: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

ngnMediaScreenAppName

Name of the application displayed on SDL for Navigation equippedvehicles. Limited to five characters.

vrSynonyms

A vector of strings, all of which can be used as voice commands too

isMediaApp

Indicates if the app is a media application.

sdlMsgVersion

Indicates the version of SDL SmartDeviceLink Messages desired. Mustbe less than or equal to the version of SDL SmartDeviceLink running onthe vehicle.

languageDesired

Indicates the language desired for the SDL interface.

hmiDisplayLanguageDesired

Desired language in HMI.

appType

Type of application.

appID

Identifier of the client application.

Page 602: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

autoActivateID

ID used to re-register previously registered application.

callbackToUIThread

If true, all callbacks will occur on the UI thread.

preRegister

Flag that indicates that client should be pre-registred or not

Page 603: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

SdlProxyALM( IProxyListenerALMlistener,SdlProxyConfigurationResourcessdlProxyConfigurationResources,String appName,java.util.Vector<TTSChunk>ttsName, StringngnMediaScreenAppName,java.util.Vector<java.lang.String>vrSynonyms, BooleanisMediaApp, SdlMsgVersionsdlMsgVersion, LanguagelanguageDesired, LanguagehmiDisplayLanguageDesired,java.util.Vector<AppHMIType>appType, String appID, StringautoActivateID, booleancallbackToUIThread, booleanpreRegister, BaseTransportConfigtransportConfig )

Page 604: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Constructor for the SdlProxy object, the proxy for communicating between the

App and SDL via specified transport. Takes advantage of the advanced lifecycle

management.

Parameters

listener

Reference to the object in the App listening to callbacks from SDL.

sdlProxyConfigurationResources

Proxy configuration resources.

appName

Name of the application displayed on SDL.

ttsName

TTS name.

public SdlProxyALM(IProxyListenerALM listener,SdlProxyConfigurationResources sdlProxyConfigurationResources,String appName,java.util.Vector<TTSChunk> ttsName,String ngnMediaScreenAppName,java.util.Vector<java.lang.String> vrSynonyms,Boolean isMediaApp,SdlMsgVersion sdlMsgVersion,Language languageDesired,Language hmiDisplayLanguageDesired,java.util.Vector<AppHMIType> appType,String appID,String autoActivateID,boolean callbackToUIThread,boolean preRegister,BaseTransportConfig transportConfig)

Page 605: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

ngnMediaScreenAppName

Name of the application displayed on SDL for Navigation equippedvehicles. Limited to five characters.

vrSynonyms

A vector of strings, all of which can be used as voice commands too

isMediaApp

Indicates if the app is a media application.

sdlMsgVersion

Indicates the version of SDL SmartDeviceLink Messages desired. Mustbe less than or equal to the version of SDL SmartDeviceLink running onthe vehicle.

languageDesired

Indicates the language desired for the SDL interface.

hmiDisplayLanguageDesired

Desired language in HMI.

appType

Type of application.

appID

Identifier of the client application.

Page 606: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

autoActivateID

ID used to re-register previously registered application.

callbackToUIThread

If true, all callbacks will occur on the UI thread.

preRegister

Flag that indicates that client should be pre-registred or not

transportConfig

Initial configuration for transport.

Page 607: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

SdlProxyALM( ServiceappService, IProxyListenerALMlistener,SdlProxyConfigurationResourcessdlProxyConfigurationResources,String appName,java.util.Vector<TTSChunk>ttsName, StringngnMediaScreenAppName,java.util.Vector<java.lang.String>vrSynonyms, BooleanisMediaApp, SdlMsgVersionsdlMsgVersion, LanguagelanguageDesired, LanguagehmiDisplayLanguageDesired,java.util.Vector<AppHMIType>appType, String appID, StringautoActivateID, booleancallbackToUIThread, booleanpreRegister, BaseTransportConfigtransportConfig )

Page 608: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

appService

listener

sdlProxyConfigurationResources

appName

ttsName

ngnMediaScreenAppName

public SdlProxyALM(Service appService,IProxyListenerALM listener,SdlProxyConfigurationResources sdlProxyConfigurationResources,String appName,java.util.Vector<TTSChunk> ttsName,String ngnMediaScreenAppName,java.util.Vector<java.lang.String> vrSynonyms,Boolean isMediaApp,SdlMsgVersion sdlMsgVersion,Language languageDesired,Language hmiDisplayLanguageDesired,java.util.Vector<AppHMIType> appType,String appID,String autoActivateID,boolean callbackToUIThread,boolean preRegister,BaseTransportConfig transportConfig)

Page 609: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

vrSynonyms

isMediaApp

sdlMsgVersion

languageDesired

hmiDisplayLanguageDesired

appType

appID

autoActivateID

callbackToUIThread

preRegister

Page 610: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

transportConfig

Page 611: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

SdlProxyALM( IProxyListenerALMlistener,SdlProxyConfigurationResourcessdlProxyConfigurationResources,String appName,java.util.Vector<TTSChunk>ttsName, StringngnMediaScreenAppName,java.util.Vector<java.lang.String>vrSynonyms, BooleanisMediaApp, SdlMsgVersionsdlMsgVersion, LanguagelanguageDesired, LanguagehmiDisplayLanguageDesired,java.util.Vector<AppHMIType>appType, String appID, StringautoActivateID, booleancallbackToUIThread, booleanpreRegister, String sHashID,BaseTransportConfigtransportConfig )

Page 612: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Constructor for the SdlProxy object, the proxy for communicating between the

App and SDL via specified transport. Takes advantage of the advanced lifecycle

management.

Parameters

listener

Reference to the object in the App listening to callbacks from SDL.

sdlProxyConfigurationResources

Proxy configuration resources.

appName

Name of the application displayed on SDL.

ttsName

TTS name.

public SdlProxyALM(IProxyListenerALM listener,SdlProxyConfigurationResources sdlProxyConfigurationResources,String appName,java.util.Vector<TTSChunk> ttsName,String ngnMediaScreenAppName,java.util.Vector<java.lang.String> vrSynonyms,Boolean isMediaApp,SdlMsgVersion sdlMsgVersion,Language languageDesired,Language hmiDisplayLanguageDesired,java.util.Vector<AppHMIType> appType,String appID,String autoActivateID,boolean callbackToUIThread,boolean preRegister,String sHashID,BaseTransportConfig transportConfig)

Page 613: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

ngnMediaScreenAppName

Name of the application displayed on SDL for Navigation equippedvehicles. Limited to five characters.

vrSynonyms

A vector of strings, all of which can be used as voice commands too

isMediaApp

Indicates if the app is a media application.

sdlMsgVersion

Indicates the version of SDL SmartDeviceLink Messages desired. Mustbe less than or equal to the version of SDL SmartDeviceLink running onthe vehicle.

languageDesired

Indicates the language desired for the SDL interface.

hmiDisplayLanguageDesired

Desired language in HMI.

appType

Type of application.

appID

Identifier of the client application.

Page 614: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

autoActivateID

ID used to re-register previously registered application.

callbackToUIThread

If true, all callbacks will occur on the UI thread.

preRegister

Flag that indicates that client should be pre-registred or not

sHashID

HashID used for app resumption

transportConfig

Initial configuration for transport.

Page 615: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

SdlProxyALM( ServiceappService, IProxyListenerALMlistener,SdlProxyConfigurationResourcessdlProxyConfigurationResources,String appName,java.util.Vector<TTSChunk>ttsName, StringngnMediaScreenAppName,java.util.Vector<java.lang.String>vrSynonyms, BooleanisMediaApp, SdlMsgVersionsdlMsgVersion, LanguagelanguageDesired, LanguagehmiDisplayLanguageDesired,java.util.Vector<AppHMIType>appType, String appID, StringautoActivateID, booleancallbackToUIThread, booleanpreRegister, String sHashID,

Page 616: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

BaseTransportConfigtransportConfig )

Parameters

appService

listener

sdlProxyConfigurationResources

appName

ttsName

public SdlProxyALM(Service appService,IProxyListenerALM listener,SdlProxyConfigurationResources sdlProxyConfigurationResources,String appName,java.util.Vector<TTSChunk> ttsName,String ngnMediaScreenAppName,java.util.Vector<java.lang.String> vrSynonyms,Boolean isMediaApp,SdlMsgVersion sdlMsgVersion,Language languageDesired,Language hmiDisplayLanguageDesired,java.util.Vector<AppHMIType> appType,String appID,String autoActivateID,boolean callbackToUIThread,boolean preRegister,String sHashID,BaseTransportConfig transportConfig)

Page 617: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

ngnMediaScreenAppName

vrSynonyms

isMediaApp

sdlMsgVersion

languageDesired

hmiDisplayLanguageDesired

appType

appID

autoActivateID

callbackToUIThread

Page 618: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

preRegister

sHashID

transportConfig

Page 619: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

SdlProxyALM( ServiceappService, IProxyListenerALMlistener,SdlProxyConfigurationResourcessdlProxyConfigurationResources,String appName,java.util.Vector<TTSChunk>ttsName, StringngnMediaScreenAppName,java.util.Vector<java.lang.String>vrSynonyms, BooleanisMediaApp, SdlMsgVersionsdlMsgVersion, LanguagelanguageDesired, LanguagehmiDisplayLanguageDesired,java.util.Vector<AppHMIType>appType, String appID, StringautoActivateID,TemplateColorSchemedayColorScheme,TemplateColorScheme

Page 620: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

nightColorScheme, booleancallbackToUIThread, booleanpreRegister, String sHashID,BaseTransportConfigtransportConfig )

Parameters

appService

listener

sdlProxyConfigurationResources

public SdlProxyALM(Service appService,IProxyListenerALM listener,SdlProxyConfigurationResources sdlProxyConfigurationResources,String appName,java.util.Vector<TTSChunk> ttsName,String ngnMediaScreenAppName,java.util.Vector<java.lang.String> vrSynonyms,Boolean isMediaApp,SdlMsgVersion sdlMsgVersion,Language languageDesired,Language hmiDisplayLanguageDesired,java.util.Vector<AppHMIType> appType,String appID,String autoActivateID,TemplateColorScheme dayColorScheme,TemplateColorScheme nightColorScheme,boolean callbackToUIThread,boolean preRegister,String sHashID,BaseTransportConfig transportConfig)

Page 621: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

appName

ttsName

ngnMediaScreenAppName

vrSynonyms

isMediaApp

sdlMsgVersion

languageDesired

hmiDisplayLanguageDesired

appType

appID

Page 622: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

autoActivateID

dayColorScheme

nightColorScheme

callbackToUIThread

preRegister

sHashID

transportConfig

Methods

Page 623: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

resetProxy()

Disconnects the application from SDL, then recreates the transport such that

the next time a SDL unit discovers applications, this application will be

available.

Throws

• SdlException

getButtonCapabilities()

Deprecated

Gets buttonCapabilities set when application interface is registered.

public void resetProxy() throws SdlException

public java.util.List getButtonCapabilities() throws SdlException

Page 624: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Throws

• SdlException

getSoftButtonCapabilities()

Deprecated

Gets getSoftButtonCapabilities set when application interface is registered.

Throws

• SdlException

getPresetBankCapabilities()

Deprecated

Gets getPresetBankCapabilities set when application interface is registered.

public java.util.List getSoftButtonCapabilities() throws SdlException

public PresetBankCapabilities getPresetBankCapabilities() throws SdlException

Page 625: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Throws

• SdlException

getProxyVersionInfo()

Gets the current version information of the proxy.

Throws

• SdlException

getDisplayCapabilities()

Deprecated

Gets displayCapabilities set when application interface is registered.

public java.lang.String getProxyVersionInfo() throws SdlException

public DisplayCapabilities getDisplayCapabilities() throws SdlException

Page 626: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Throws

• SdlException

getHmiZoneCapabilities()

Deprecated

Gets hmiZoneCapabilities set when application interface is registered.

Throws

• SdlException

getSpeechCapabilities()

Deprecated

Gets speechCapabilities set when application interface is registered.

public java.util.List getHmiZoneCapabilities() throws SdlException

public java.util.List getSpeechCapabilities() throws SdlException

Page 627: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Throws

• SdlException

getPrerecordedSpeech()

Gets PrerecordedSpeech set when application interface is registered.

Throws

• SdlException

getSdlLanguage()

Gets sdlLanguage set when application interface is registered.

public java.util.List getPrerecordedSpeech() throws SdlException

public Language getSdlLanguage() throws SdlException

Page 628: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Throws

• SdlException

getHmiDisplayLanguage()

Gets getHmiDisplayLanguage set when application interface is registered.

Throws

• SdlException

getSdlMsgVersion()

Gets sdlMsgVersion set when application interface is registered.

public Language getHmiDisplayLanguage() throws SdlException

public SdlMsgVersion getSdlMsgVersion() throws SdlException

Page 629: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Throws

• SdlException

getVrCapabilities()

Deprecated

Gets vrCapabilities set when application interface is registered.

Throws

• SdlException

getVehicleType()

Gets getVehicleType set when application interface is registered.

public java.util.List getVrCapabilities() throws SdlException

public VehicleType getVehicleType() throws SdlException

Page 630: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Throws

• SdlException

getAudioPassThruCapabilities()

Deprecated

Gets AudioPassThruCapabilities set when application interface is registered.

Throws

• SdlException

getSupportedDiagModes()

public java.util.List getAudioPassThruCapabilities() throws SdlException

public java.util.List getSupportedDiagModes() throws SdlException

Page 631: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Throws

• SdlException

getHmiCapabilities()

Deprecated

Gets HMICapabilities when application interface is registered.

Throws

• SdlException

getSystemSoftwareVersion()

public HMICapabilities getHmiCapabilities() throws SdlException

public java.lang.String getSystemSoftwareVersion() throws SdlException

Page 632: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Throws

• SdlException

isAppResumeSuccess()

public boolean isAppResumeSuccess() throws SdlException

Page 633: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Throws

• SdlException

Page 634: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Inherited Methods

Page 635: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

From Class Methods

Page 636: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

com.smartdevicelink.proxy.SdlProxyBase

addPutFileResponseListener, remPutFileR

esponseListener, getIsConnected, getApp

InterfaceRegistered, initializeProxy, force

OnConnected, sendTransportBroadcast, e

nableSiphonDebug, disableSiphonDebug,

enableDebugTool, disableDebugTool, isDe

bugEnabled, isAudioStreamTransportAvai

lable, isVideoStreamTransportAvailable, c

lose, dispose, cycleProxy, getProtocolVers

ion, serializeJSON, onPacketProgress, add

OnRPCResponseListener, getResponseLis

teners, onRPCNotificationReceived, onRP

CReceived, onRPCRequestReceived, add

OnRPCNotificationListener, addOnRPCList

ener, removeOnRPCListener, addOnRPCR

equestListener, removeOnRPCNotificatio

nListener, removeOnRPCNotificationListe

ner, removeOnRPCRequestListener, getS

dlMsgVersion, sendSequentialRequests, s

endRequests, sendRPC, sendRPCRequest

, notifyProxyClosed, startRPCStream, star

tRPCStream, endRPCStream, createFutur

eTask, createScheduler, startService, end

Service, startH264, startH264, endH264,

pausePCM, pauseH264, resumePCM, resu

meH264, startPCM, startPCM, endPCM, st

artVideoStream, endVideoStream, pause

VideoStream, resumeVideoStream, creat

eOpenGLInputSurface, startRemoteDispl

ayStream, stopRemoteDisplayStream, st

artEncoder, releaseEncoder, drainEncode

r, startAudioStream, endAudioStream, pa

useAudioStream, resumeAudioStream, se

tAppService, startProtectedRPCService, g

etLockScreenIcon, addCommand, addCo

mmand, addCommand, addCommand, a

ddCommand, addCommand, addComma

nd, addCommand, addCommand, addCo

mmand, addCommand, addCommand, a

ddSubMenu, addSubMenu, addSubMenu,

alert, alert, alert, alert, alert, alert, alert,

alert, alert, alert, createInteractionChoice

Set, deleteCommand, deleteInteractionC

hoiceSet, deleteSubMenu, performIntera

ction, performInteraction, performInterac

tion, performInteraction, performInteracti

on performInteraction performInteractio

Page 637: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Class SdlProxyBase

Hierarchyjava.lang.Object

Package

com.smartdevicelink.proxy

All Known Subclasses

com.smartdevicelink.proxy.SdlProxyALM

Quick Jump

Fields

• TAG• MAX_SUPPORTED_RPC_VERSION• _appService• _advancedLifecycleManagementEnabled• _appInterfaceRegisterd• _preRegisterd• _haveReceivedFirstFocusLevel• _haveReceivedFirstFocusLevelFull• _proxyDisposed• _sdlConnectionState• _sdlIntefaceAvailablity

java.lang.Object

getClass, hashCode, equals, clone,

toString, notify, notifyAll, wait, wait, wait,

finalize

Page 638: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

• _hmiLevel• lastHmiStatus• _audioStreamingState• _sdlMsgVersion• _autoActivateIdReturned• _sdlLanguage• _hmiDisplayLanguage• _prerecordedSpeech• _vehicleType• _systemSoftwareVersion• _diagModes• firstTimeFull• _proxyVersionInfo• _bResumeSuccess• _secList• _systemCapabilityManager• _iconResumed• raiResponse• protocolVersion• rpcSpecVersion• rpcResponseListeners• rpcNotificationListeners• rpcRequestListeners• rpcListeners• manager• authToken

Constructors

• SdlProxyBase( proxyListenerType listener, Context context, StringappName, String shortAppName, Boolean isMediaApp, LanguagelanguageDesired, Language hmiDisplayLanguageDesired,java.util.Vector<AppHMIType> appType, String appID,BaseTransportConfig transportConfig,java.util.Vector<java.lang.String> vrSynonyms,java.util.Vector<TTSChunk> ttsName, TemplateColorSchemedayColorScheme, TemplateColorScheme nightColorScheme )

• SdlProxyBase( proxyListenerType listener,SdlProxyConfigurationResources sdlProxyConfigurationResources,boolean enableAdvancedLifecycleManagement, String appName,java.util.Vector<TTSChunk> ttsName, StringngnMediaScreenAppName, java.util.Vector<java.lang.String>vrSynonyms, Boolean isMediaApp, SdlMsgVersion sdlMsgVersion,Language languageDesired, LanguagehmiDisplayLanguageDesired, java.util.Vector<AppHMIType>appType, String appID, String autoActivateID, booleancallbackToUIThread, BaseTransportConfig transportConfig )

• SdlProxyBase( proxyListenerType listener,SdlProxyConfigurationResources sdlProxyConfigurationResources,boolean enableAdvancedLifecycleManagement, String appName,java.util.Vector<TTSChunk> ttsName, StringngnMediaScreenAppName, java.util.Vector<java.lang.String>vrSynonyms, Boolean isMediaApp, SdlMsgVersion sdlMsgVersion,

Page 639: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Language languageDesired, LanguagehmiDisplayLanguageDesired, java.util.Vector<AppHMIType>appType, String appID, String autoActivateID,TemplateColorScheme dayColorScheme, TemplateColorSchemenightColorScheme, boolean callbackToUIThread, booleanpreRegister, String sHashID, Boolean bEnableResume,BaseTransportConfig transportConfig )

• SdlProxyBase( proxyListenerType listener,SdlProxyConfigurationResources sdlProxyConfigurationResources,boolean enableAdvancedLifecycleManagement, String appName,java.util.Vector<TTSChunk> ttsName, StringngnMediaScreenAppName, java.util.Vector<java.lang.String>vrSynonyms, Boolean isMediaApp, SdlMsgVersion sdlMsgVersion,Language languageDesired, LanguagehmiDisplayLanguageDesired, java.util.Vector<AppHMIType>appType, String appID, String autoActivateID, booleancallbackToUIThread, boolean preRegister, BaseTransportConfigtransportConfig )

• SdlProxyBase( proxyListenerType listener,SdlProxyConfigurationResources sdlProxyConfigurationResources,boolean enableAdvancedLifecycleManagement, String appName,java.util.Vector<TTSChunk> ttsName, StringngnMediaScreenAppName, java.util.Vector<java.lang.String>vrSynonyms, Boolean isMediaApp, SdlMsgVersion sdlMsgVersion,Language languageDesired, LanguagehmiDisplayLanguageDesired, java.util.Vector<AppHMIType>appType, String appID, String autoActivateID,TemplateColorScheme dayColorScheme, TemplateColorSchemenightColorScheme, boolean callbackToUIThread, booleanpreRegister, BaseTransportConfig transportConfig )

Methods

• addPutFileResponseListener(IPutFileResponseListener_putFileListener)

• remPutFileResponseListener(IPutFileResponseListener_putFileListener)

• getIsConnected() • getAppInterfaceRegistered() • initializeProxy() • forceOnConnected() • sendTransportBroadcast() • enableSiphonDebug() • disableSiphonDebug() • enableDebugTool() • disableDebugTool() • isDebugEnabled() • isAudioStreamTransportAvailable() • isVideoStreamTransportAvailable() • close() Deprecated• dispose() • cycleProxy(SdlDisconnectedReason disconnectedReason) • getProtocolVersion()

Page 640: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

• serializeJSON(RPCMessage msg) • onPacketProgress(int correlationId,long bytesWritten,long

totalSize) • addOnRPCResponseListener(OnRPCResponseListener listener,int

correlationId,int totalSize) • getResponseListeners() • onRPCNotificationReceived(RPCNotification notification) • onRPCReceived(RPCMessage message) • onRPCRequestReceived(RPCRequest request) • addOnRPCNotificationListener(FunctionID

notificationId,OnRPCNotificationListener listener) • addOnRPCListener(FunctionID messageId,OnRPCListener listener) • removeOnRPCListener(FunctionID messageId,OnRPCListener

listener) • addOnRPCRequestListener(FunctionID

requestId,OnRPCRequestListener listener) • removeOnRPCNotificationListener(FunctionID notificationId)

Deprecated• removeOnRPCNotificationListener(FunctionID

notificationId,OnRPCNotificationListener listener) • removeOnRPCRequestListener(FunctionID

requestId,OnRPCRequestListener listener) • getSdlMsgVersion() • sendSequentialRequests(java.util.List<? extends RPCMessage>

rpcs,OnMultipleRequestListener listener) • sendRequests(java.util.List<? extends RPCMessage>

rpcs,OnMultipleRequestListener listener) • sendRPC(RPCMessage message) • sendRPCRequest(RPCRequest request) Deprecated• notifyProxyClosed(String info,Exception e,SdlDisconnectedReason

reason) • startRPCStream(InputStream is,RPCRequest msg) • startRPCStream(RPCRequest msg) • endRPCStream() • createFutureTask

(com.smartdevicelink.proxy.SdlProxyBase<proxyListenerType>.CallableMethodcallMethod)

• createScheduler() • startService(SessionType serviceType,boolean isEncrypted) • endService(SessionType serviceType) • startH264(InputStream is,boolean isEncrypted) Deprecated• startH264(boolean isEncrypted) Deprecated• endH264() Deprecated• pausePCM() Deprecated• pauseH264() Deprecated• resumePCM() Deprecated• resumeH264() Deprecated• startPCM(InputStream is,boolean isEncrypted) Deprecated• startPCM(boolean isEncrypted) Deprecated• endPCM() Deprecated• startVideoStream(boolean isEncrypted,VideoStreamingParameters

parameters) • endVideoStream() • pauseVideoStream() • resumeVideoStream()

Page 641: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

• createOpenGLInputSurface(int frameRate,int iFrameInterval,intwidth,int height,int bitrate,boolean isEncrypted)

• startRemoteDisplayStream(Context context,java.lang.Class<?extends com.smartdevicelink.streaming.video.SdlRemoteDisplay>remoteDisplay,VideoStreamingParameters parameters,booleanencrypted)

• stopRemoteDisplayStream() • startEncoder() • releaseEncoder() • drainEncoder(boolean endOfStream) • startAudioStream(boolean isEncrypted,AudioStreamingCodec

codec,AudioStreamingParams params) • endAudioStream() • pauseAudioStream() • resumeAudioStream() • setAppService(Service mService) • startProtectedRPCService() • getLockScreenIcon

(LockScreenManager.OnLockScreenIconDownloadedListener l) • addCommand(Integer commandID,String menuText,Integer

parentID,Integer position,java.util.Vector<java.lang.String>vrCommands,String IconValue,ImageType IconType,IntegercorrelationID)

• addCommand(Integer commandID,String menuText,Integerposition,java.util.Vector<java.lang.String> vrCommands,StringIconValue,ImageType IconType,Integer correlationID)

• addCommand(Integer commandID,String menuText,Integerposition,String IconValue,ImageType IconType,IntegercorrelationID)

• addCommand(Integer commandID,String menuText,StringIconValue,ImageType IconType,Integer correlationID)

• addCommand(Integer commandID,StringmenuText,java.util.Vector<java.lang.String> vrCommands,StringIconValue,ImageType IconType,Integer correlationID)

• addCommand(IntegercommandID,java.util.Vector<java.lang.String>vrCommands,String IconValue,ImageType IconType,IntegercorrelationID)

• addCommand(Integer commandID,String menuText,IntegerparentID,Integer position,java.util.Vector<java.lang.String>vrCommands,Integer correlationID)

• addCommand(Integer commandID,String menuText,Integerposition,java.util.Vector<java.lang.String> vrCommands,IntegercorrelationID)

• addCommand(Integer commandID,String menuText,Integerposition,Integer correlationID)

• addCommand(Integer commandID,String menuText,IntegercorrelationID)

• addCommand(Integer commandID,StringmenuText,java.util.Vector<java.lang.String> vrCommands,IntegercorrelationID)

• addCommand(IntegercommandID,java.util.Vector<java.lang.String>vrCommands,Integer correlationID)

Page 642: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

• addSubMenu(Integer menuID,String menuName,Integerposition,Image menuIcon,Integer correlationID)

• addSubMenu(Integer menuID,String menuName,Integerposition,Integer correlationID) Deprecated

• addSubMenu(Integer menuID,String menuName,IntegercorrelationID) Deprecated

• alert(String ttsText,String alertText1,String alertText2,StringalertText3,Boolean playTone,Integerduration,java.util.Vector<SoftButton> softButtons,IntegercorrelationID)

• alert(java.util.Vector<TTSChunk> ttsChunks,StringalertText1,String alertText2,String alertText3,BooleanplayTone,Integer duration,java.util.Vector<SoftButton>softButtons,Integer correlationID)

• alert(String ttsText,Boolean playTone,java.util.Vector<SoftButton>softButtons,Integer correlationID)

• alert(java.util.Vector<TTSChunk> chunks,BooleanplayTone,java.util.Vector<SoftButton> softButtons,IntegercorrelationID)

• alert(String alertText1,String alertText2,String alertText3,BooleanplayTone,Integer duration,java.util.Vector<SoftButton>softButtons,Integer correlationID)

• alert(String ttsText,String alertText1,String alertText2,BooleanplayTone,Integer duration,Integer correlationID)

• alert(java.util.Vector<TTSChunk> ttsChunks,StringalertText1,String alertText2,Boolean playTone,Integerduration,Integer correlationID)

• alert(String ttsText,Boolean playTone,Integer correlationID) • alert(java.util.Vector<TTSChunk> chunks,Boolean

playTone,Integer correlationID) • alert(String alertText1,String alertText2,Boolean playTone,Integer

duration,Integer correlationID) • createInteractionChoiceSet(java.util.Vector<Choice>

choiceSet,Integer interactionChoiceSetID,Integer correlationID) • deleteCommand(Integer commandID,Integer correlationID) • deleteInteractionChoiceSet(Integer interactionChoiceSetID,Integer

correlationID) • deleteSubMenu(Integer menuID,Integer correlationID) • performInteraction(String initPrompt,String displayText,Integer

interactionChoiceSetID,java.util.Vector<VrHelpItem>vrHelp,Integer correlationID)

• performInteraction(String initPrompt,String displayText,IntegerinteractionChoiceSetID,String helpPrompt,StringtimeoutPrompt,InteractionMode interactionMode,Integertimeout,java.util.Vector<VrHelpItem> vrHelp,IntegercorrelationID)

• performInteraction(String initPrompt,StringdisplayText,java.util.Vector<java.lang.Integer>interactionChoiceSetIDList,String helpPrompt,StringtimeoutPrompt,InteractionMode interactionMode,Integertimeout,java.util.Vector<VrHelpItem> vrHelp,IntegercorrelationID)

• performInteraction(java.util.Vector<TTSChunk> initChunks,StringdisplayText,java.util.Vector<java.lang.Integer>interactionChoiceSetIDList,java.util.Vector<TTSChunk>

Page 643: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

helpChunks,java.util.Vector<TTSChunk>timeoutChunks,InteractionMode interactionMode,Integertimeout,java.util.Vector<VrHelpItem> vrHelp,IntegercorrelationID)

• performInteraction(String initPrompt,String displayText,IntegerinteractionChoiceSetID,Integer correlationID)

• performInteraction(String initPrompt,String displayText,IntegerinteractionChoiceSetID,String helpPrompt,StringtimeoutPrompt,InteractionMode interactionMode,Integertimeout,Integer correlationID)

• performInteraction(String initPrompt,StringdisplayText,java.util.Vector<java.lang.Integer>interactionChoiceSetIDList,String helpPrompt,StringtimeoutPrompt,InteractionMode interactionMode,Integertimeout,Integer correlationID)

• performInteraction(java.util.Vector<TTSChunk> initChunks,StringdisplayText,java.util.Vector<java.lang.Integer>interactionChoiceSetIDList,java.util.Vector<TTSChunk>helpChunks,java.util.Vector<TTSChunk>timeoutChunks,InteractionMode interactionMode,Integertimeout,Integer correlationID)

• registerAppInterfacePrivate(SdlMsgVersion sdlMsgVersion,StringappName,java.util.Vector<TTSChunk> ttsName,StringngnMediaScreenAppName,java.util.Vector<java.lang.String>vrSynonyms,Boolean isMediaApp,LanguagelanguageDesired,LanguagehmiDisplayLanguageDesired,java.util.Vector<AppHMIType>appType,String appID,TemplateColorSchemedayColorScheme,TemplateColorScheme nightColorScheme,IntegercorrelationID)

• setGlobalProperties(String helpPrompt,StringtimeoutPrompt,String vrHelpTitle,java.util.Vector<VrHelpItem>vrHelp,Integer correlationID)

• setGlobalProperties(java.util.Vector<TTSChunk>helpChunks,java.util.Vector<TTSChunk> timeoutChunks,StringvrHelpTitle,java.util.Vector<VrHelpItem> vrHelp,IntegercorrelationID)

• setGlobalProperties(String helpPrompt,StringtimeoutPrompt,Integer correlationID)

• setGlobalProperties(java.util.Vector<TTSChunk>helpChunks,java.util.Vector<TTSChunk> timeoutChunks,IntegercorrelationID)

• resetGlobalProperties(java.util.Vector<GlobalProperty>properties,Integer correlationID)

• setMediaClockTimer(Integer hours,Integer minutes,Integerseconds,UpdateMode updateMode,Integer correlationID)

• pauseMediaClockTimer(Integer correlationID) • resumeMediaClockTimer(Integer correlationID) • clearMediaClockTimer(Integer correlationID) • show(String mainText1,String mainText2,String mainText3,String

mainText4,String statusBar,String mediaClock,StringmediaTrack,Image graphic,java.util.Vector<SoftButton>softButtons,java.util.Vector<java.lang.String>customPresets,TextAlignment alignment,Integer correlationID)

Page 644: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

• show(String mainText1,String mainText2,String mainText3,StringmainText4,Image graphic,java.util.Vector<SoftButton>softButtons,java.util.Vector<java.lang.String>customPresets,TextAlignment alignment,Integer correlationID)

• show(String mainText1,String mainText2,String statusBar,StringmediaClock,String mediaTrack,TextAlignment alignment,IntegercorrelationID)

• show(String mainText1,String mainText2,TextAlignmentalignment,Integer correlationID)

• speak(String ttsText,Integer correlationID) • speak(java.util.Vector<TTSChunk> ttsChunks,Integer

correlationID) • subscribeButton(ButtonName buttonName,Integer correlationID) • unregisterAppInterfacePrivate(Integer correlationID) • unsubscribeButton(ButtonName buttonName,Integer

correlationID) • createChoiceSetChoice(Integer choiceID,String

choiceMenuName,java.util.Vector<java.lang.String>choiceVrCommands)

• performaudiopassthru(String initialPrompt,StringaudioPassThruDisplayText1,StringaudioPassThruDisplayText2,SamplingRate samplingRate,IntegermaxDuration,BitsPerSample bitsPerSample,AudioTypeaudioType,Boolean muteAudio,Integer correlationID)

• endaudiopassthru(Integer correlationID) • subscribevehicledata(boolean gps,boolean speed,boolean

rpm,boolean fuelLevel,boolean fuelLevel_State,booleaninstantFuelConsumption,boolean externalTemperature,booleanprndl,boolean tirePressure,boolean odometer,booleanbeltStatus,boolean bodyInformation,boolean deviceStatus,booleandriverBraking,Integer correlationID) Deprecated

• subscribevehicledata(boolean gps,boolean speed,booleanrpm,boolean fuelLevel,boolean fuelLevel_State,booleaninstantFuelConsumption,boolean externalTemperature,booleanprndl,boolean tirePressure,boolean engineOilLife,booleanodometer,boolean beltStatus,boolean bodyInformation,booleandeviceStatus,boolean driverBraking,Integer correlationID)

• unsubscribevehicledata(boolean gps,boolean speed,booleanrpm,boolean fuelLevel,boolean fuelLevel_State,booleaninstantFuelConsumption,boolean externalTemperature,booleanprndl,boolean tirePressure,boolean odometer,booleanbeltStatus,boolean bodyInformation,boolean deviceStatus,booleandriverBraking,Integer correlationID) Deprecated

• unsubscribevehicledata(boolean gps,boolean speed,booleanrpm,boolean fuelLevel,boolean fuelLevel_State,booleaninstantFuelConsumption,boolean externalTemperature,booleanprndl,boolean tirePressure,boolean engineOilLife,booleanodometer,boolean beltStatus,boolean bodyInformation,booleandeviceStatus,boolean driverBraking,Integer correlationID)

• getvehicledata(boolean gps,boolean speed,boolean rpm,booleanfuelLevel,boolean fuelLevel_State,booleaninstantFuelConsumption,boolean externalTemperature,booleanvin,boolean prndl,boolean tirePressure,boolean odometer,booleanbeltStatus,boolean bodyInformation,boolean deviceStatus,booleandriverBraking,Integer correlationID) Deprecated

Page 645: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

• getvehicledata(boolean gps,boolean speed,boolean rpm,booleanfuelLevel,boolean fuelLevel_State,booleaninstantFuelConsumption,boolean externalTemperature,booleanvin,boolean prndl,boolean tirePressure,booleanengineOilLife,boolean odometer,boolean beltStatus,booleanbodyInformation,boolean deviceStatus,booleandriverBraking,Integer correlationID)

• scrollablemessage(String scrollableMessageBody,Integertimeout,java.util.Vector<SoftButton> softButtons,IntegercorrelationID)

• slider(Integer numTicks,Integer position,StringsliderHeader,java.util.Vector<java.lang.String>sliderFooter,Integer timeout,Integer correlationID)

• changeregistration(Language language,LanguagehmiDisplayLanguage,Integer correlationID)

• putFileStream(InputStream is,String sdlFileName,IntegeriOffset,Integer iLength) Deprecated

• putFileStream(InputStream inputStream,String fileName,Longoffset,Long length)

• putFileStream(String sdlFileName,Integer iOffset,Integer iLength) Deprecated

• putFileStream(String fileName,Long offset,Long length) • putFileStream(InputStream is,String sdlFileName,Integer

iOffset,Integer iLength,FileType fileType,BooleanbPersistentFile,Boolean bSystemFile) Deprecated

• putFileStream(InputStream inputStream,String fileName,Longoffset,Long length,FileType fileType,BooleanisPersistentFile,Boolean isSystemFile,OnPutFileUpdateListener cb)

• putFileStream(String sdlFileName,Integer iOffset,IntegeriLength,FileType fileType,Boolean bPersistentFile,BooleanbSystemFile) Deprecated

• putFileStream(String fileName,Long offset,Long length,FileTypefileType,Boolean isPersistentFile,BooleanisSystemFile,OnPutFileUpdateListener cb)

• putFileStream(String sPath,String sdlFileName,IntegeriOffset,FileType fileType,Boolean bPersistentFile,BooleanbSystemFile,Integer iCorrelationID) Deprecated

• putFileStream(String path,String fileName,Long offset,FileTypefileType,Boolean isPersistentFile,Boolean isSystemFile,BooleanisPayloadProtected,Integer correlationId,OnPutFileUpdateListenercb)

• putFileStream(InputStream is,String sdlFileName,IntegeriOffset,Integer iLength,FileType fileType,BooleanbPersistentFile,Boolean bSystemFile,Integer iCorrelationID) Deprecated

• putFileStream(InputStream inputStream,String fileName,Longoffset,Long length,FileType fileType,BooleanisPersistentFile,Boolean isSystemFile,BooleanisPayloadProtected,Integer correlationId)

• endPutFileStream() • putfile(String sdlFileName,FileType fileType,Boolean

persistentFile,byte[] fileData,Integer correlationID) • deletefile(String sdlFileName,Integer correlationID) • listfiles(Integer correlationID) • setappicon(String sdlFileName,Integer correlationID)

Page 646: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

• setdisplaylayout(String displayLayout,Integer correlationID) • setdisplaylayout(String displayLayout,TemplateColorScheme

dayColorScheme,TemplateColorScheme nightColorScheme,IntegercorrelationID)

• getSystemCapabilityManager() • isCapabilitySupported(SystemCapabilityType

systemCapabilityType) • getCapability(SystemCapabilityType

systemCapabilityType,OnSystemCapabilityListener scListener) • getCapability(SystemCapabilityType systemCapabilityType) • addOnSystemCapabilityListener(SystemCapabilityType

systemCapabilityType,OnSystemCapabilityListener listener) • removeOnSystemCapabilityListener(SystemCapabilityType

systemCapabilityType,OnSystemCapabilityListener listener) • getCurrentTransportType() • setSdlSecurityClassList(java.util.List<java.lang.Class<? extends

com.smartdevicelink.security.SdlSecurityBase>> list) • setMinimumProtocolVersion(Version minimumProtocolVersion) • setMinimumRPCVersion(Version minimumRPCVersion) • isServiceTypeProtected(SessionType sType) • addServiceListener(SessionType serviceType,ISdlServiceListener

sdlServiceListener) • removeServiceListener(SessionType

serviceType,ISdlServiceListener sdlServiceListener) • getAcceptedVideoParams() • getProxyListener() • getAppName() • getNgnAppName() • getAppID() • getDeviceInfo() • getInstanceDT() • setConnectionDetails(String sDetails) • getConnectionDetails() • setPoliciesURL(String sText) • getPoliciesURL() • getIconResumed() • getRegisterAppInterfaceResponse() • getCurrentHMIStatus()

Page 647: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

• getAuthToken()

Fields

TAG

Constant Value

"SdlProxy"

MAX_SUPPORTED_RPC_VERSION

public static final java.lang.String TAG

public static final com.smartdevicelink.util.Version MAX_SUPPORTED_RPC_VERSION

Page 648: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

_appService

_advancedLifecycleManagementEnabled

_appInterfaceRegisterd

protected android.app.Service _appService

protected java.lang.Boolean _advancedLifecycleManagementEnabled

protected java.lang.Boolean _appInterfaceRegisterd

Page 649: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

_preRegisterd

_haveReceivedFirstFocusLevel

_haveReceivedFirstFocusLevelFull

protected java.lang.Boolean _preRegisterd

protected java.lang.Boolean _haveReceivedFirstFocusLevel

protected java.lang.Boolean _haveReceivedFirstFocusLevelFull

Page 650: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

_proxyDisposed

_sdlConnectionState

_sdlIntefaceAvailablity

protected java.lang.Boolean _proxyDisposed

protected SdlConnectionState _sdlConnectionState

protected SdlInterfaceAvailability _sdlIntefaceAvailablity

Page 651: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

_hmiLevel

lastHmiStatus

_audioStreamingState

protected HMILevel _hmiLevel

protected OnHMIStatus lastHmiStatus

protected AudioStreamingState _audioStreamingState

Page 652: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

_sdlMsgVersion

_autoActivateIdReturned

_sdlLanguage

protected SdlMsgVersion _sdlMsgVersion

protected java.lang.String _autoActivateIdReturned

protected Language _sdlLanguage

Page 653: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

_hmiDisplayLanguage

_prerecordedSpeech

_vehicleType

protected Language _hmiDisplayLanguage

protected java.util.List _prerecordedSpeech

protected VehicleType _vehicleType

Page 654: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

_systemSoftwareVersion

_diagModes

firstTimeFull

protected java.lang.String _systemSoftwareVersion

protected java.util.List _diagModes

protected java.lang.Boolean firstTimeFull

Page 655: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

_proxyVersionInfo

_bResumeSuccess

_secList

protected java.lang.String _proxyVersionInfo

protected java.lang.Boolean _bResumeSuccess

protected java.util.List _secList

Page 656: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

_systemCapabilityManager

_iconResumed

raiResponse

protected SystemCapabilityManager _systemCapabilityManager

protected java.lang.Boolean _iconResumed

protected RegisterAppInterfaceResponse raiResponse

Page 657: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

protocolVersion

rpcSpecVersion

rpcResponseListeners

protected com.smartdevicelink.util.Version protocolVersion

protected com.smartdevicelink.util.Version rpcSpecVersion

protected android.util.SparseArray rpcResponseListeners

Page 658: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

rpcNotificationListeners

rpcRequestListeners

rpcListeners

protected android.util.SparseArray rpcNotificationListeners

protected android.util.SparseArray rpcRequestListeners

protected android.util.SparseArray rpcListeners

Page 659: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

manager

authToken

Constructors

protected com.smartdevicelink.proxy.SdlProxyBase.VideoStreamingManager manager

protected java.lang.String authToken

Page 660: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

SdlProxyBase(proxyListenerType listener,Context context, StringappName, String shortAppName,Boolean isMediaApp, LanguagelanguageDesired, LanguagehmiDisplayLanguageDesired,java.util.Vector<AppHMIType>appType, String appID,BaseTransportConfigtransportConfig,java.util.Vector<java.lang.String>vrSynonyms,java.util.Vector<TTSChunk>ttsName, TemplateColorSchemedayColorScheme,TemplateColorSchemenightColorScheme )

Used by the SdlManager

Page 661: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

listener

Type of listener for this proxy base.

context

Application context.

appName

Client application name.

shortAppName

Client short application name.

isMediaApp

Flag that indicates that client application if media application or not.

public SdlProxyBase(proxyListenerType listener,Context context,String appName,String shortAppName,Boolean isMediaApp,Language languageDesired,Language hmiDisplayLanguageDesired,java.util.Vector<AppHMIType> appType,String appID,BaseTransportConfig transportConfig,java.util.Vector<java.lang.String> vrSynonyms,java.util.Vector<TTSChunk> ttsName,TemplateColorScheme dayColorScheme,TemplateColorScheme nightColorScheme)

Page 662: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

languageDesired

Desired language.

hmiDisplayLanguageDesired

Desired language for HMI.

appType

Type of application.

appID

Application identifier.

transportConfig

Configuration of transport to be used by underlying connection.

vrSynonyms

List of synonyms.

ttsName

TTS name.

dayColorScheme

TemplateColorScheme for the day

Page 663: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

nightColorScheme

TemplateColorScheme for the night

Page 664: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

SdlProxyBase(proxyListenerType listener,SdlProxyConfigurationResourcessdlProxyConfigurationResources,booleanenableAdvancedLifecycleManagement,String appName,java.util.Vector<TTSChunk>ttsName, StringngnMediaScreenAppName,java.util.Vector<java.lang.String>vrSynonyms, BooleanisMediaApp, SdlMsgVersionsdlMsgVersion, LanguagelanguageDesired, LanguagehmiDisplayLanguageDesired,java.util.Vector<AppHMIType>appType, String appID, StringautoActivateID, booleancallbackToUIThread,

Page 665: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

BaseTransportConfigtransportConfig )

Constructor.

Parameters

listener

Type of listener for this proxy base.

sdlProxyConfigurationResources

Configuration resources for this proxy.

enableAdvancedLifecycleManagement

Flag that ALM should be enabled or not.

appName

protected SdlProxyBase(proxyListenerType listener,SdlProxyConfigurationResources sdlProxyConfigurationResources,boolean enableAdvancedLifecycleManagement,String appName,java.util.Vector<TTSChunk> ttsName,String ngnMediaScreenAppName,java.util.Vector<java.lang.String> vrSynonyms,Boolean isMediaApp,SdlMsgVersion sdlMsgVersion,Language languageDesired,Language hmiDisplayLanguageDesired,java.util.Vector<AppHMIType> appType,String appID,String autoActivateID,boolean callbackToUIThread,BaseTransportConfig transportConfig)

Page 666: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Client application name.

ttsName

TTS name.

ngnMediaScreenAppName

Media Screen Application name.

vrSynonyms

List of synonyms.

isMediaApp

Flag that indicates that client application if media application or not.

sdlMsgVersion

Version of Sdl Message.

languageDesired

Desired language.

hmiDisplayLanguageDesired

Desired language for HMI.

appType

Type of application.

Page 667: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

appID

Application identifier.

autoActivateID

Auto activation identifier.

callbackToUIThread

Flag that indicates that this proxy should send callback to UI thread ornot.

transportConfig

Configuration of transport to be used by underlying connection.

Page 668: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

SdlProxyBase(proxyListenerType listener,SdlProxyConfigurationResourcessdlProxyConfigurationResources,booleanenableAdvancedLifecycleManagement,String appName,java.util.Vector<TTSChunk>ttsName, StringngnMediaScreenAppName,java.util.Vector<java.lang.String>vrSynonyms, BooleanisMediaApp, SdlMsgVersionsdlMsgVersion, LanguagelanguageDesired, LanguagehmiDisplayLanguageDesired,java.util.Vector<AppHMIType>appType, String appID, StringautoActivateID,TemplateColorSchemedayColorScheme,

Page 669: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

TemplateColorSchemenightColorScheme, booleancallbackToUIThread, booleanpreRegister, String sHashID,Boolean bEnableResume,BaseTransportConfigtransportConfig )

Parameters

listener

sdlProxyConfigurationResources

protected SdlProxyBase(proxyListenerType listener,SdlProxyConfigurationResources sdlProxyConfigurationResources,boolean enableAdvancedLifecycleManagement,String appName,java.util.Vector<TTSChunk> ttsName,String ngnMediaScreenAppName,java.util.Vector<java.lang.String> vrSynonyms,Boolean isMediaApp,SdlMsgVersion sdlMsgVersion,Language languageDesired,Language hmiDisplayLanguageDesired,java.util.Vector<AppHMIType> appType,String appID,String autoActivateID,TemplateColorScheme dayColorScheme,TemplateColorScheme nightColorScheme,boolean callbackToUIThread,boolean preRegister,String sHashID,Boolean bEnableResume,BaseTransportConfig transportConfig)

Page 670: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

enableAdvancedLifecycleManagement

appName

ttsName

ngnMediaScreenAppName

vrSynonyms

isMediaApp

sdlMsgVersion

languageDesired

hmiDisplayLanguageDesired

appType

Page 671: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

appID

autoActivateID

dayColorScheme

nightColorScheme

callbackToUIThread

preRegister

sHashID

bEnableResume

transportConfig

Page 672: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

SdlProxyBase(proxyListenerType listener,SdlProxyConfigurationResourcessdlProxyConfigurationResources,booleanenableAdvancedLifecycleManagement,String appName,java.util.Vector<TTSChunk>ttsName, StringngnMediaScreenAppName,java.util.Vector<java.lang.String>vrSynonyms, BooleanisMediaApp, SdlMsgVersionsdlMsgVersion, LanguagelanguageDesired, LanguagehmiDisplayLanguageDesired,java.util.Vector<AppHMIType>appType, String appID, StringautoActivateID, booleancallbackToUIThread, boolean

Page 673: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

preRegister, BaseTransportConfigtransportConfig )

Constructor.

Parameters

listener

Type of listener for this proxy base.

sdlProxyConfigurationResources

Configuration resources for this proxy.

enableAdvancedLifecycleManagement

Flag that ALM should be enabled or not.

appName

protected SdlProxyBase(proxyListenerType listener,SdlProxyConfigurationResources sdlProxyConfigurationResources,boolean enableAdvancedLifecycleManagement,String appName,java.util.Vector<TTSChunk> ttsName,String ngnMediaScreenAppName,java.util.Vector<java.lang.String> vrSynonyms,Boolean isMediaApp,SdlMsgVersion sdlMsgVersion,Language languageDesired,Language hmiDisplayLanguageDesired,java.util.Vector<AppHMIType> appType,String appID,String autoActivateID,boolean callbackToUIThread,boolean preRegister,BaseTransportConfig transportConfig)

Page 674: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Client application name.

ttsName

TTS name.

ngnMediaScreenAppName

Media Screen Application name.

vrSynonyms

List of synonyms.

isMediaApp

Flag that indicates that client application if media application or not.

sdlMsgVersion

Version of Sdl Message.

languageDesired

Desired language.

hmiDisplayLanguageDesired

Desired language for HMI.

appType

Type of application.

Page 675: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

appID

Application identifier.

autoActivateID

Auto activation identifier.

callbackToUIThread

Flag that indicates that this proxy should send callback to UI thread ornot.

preRegister

Flag that indicates that this proxy should be pre-registerd or not.

transportConfig

Configuration of transport to be used by underlying connection.

Page 676: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

SdlProxyBase(proxyListenerType listener,SdlProxyConfigurationResourcessdlProxyConfigurationResources,booleanenableAdvancedLifecycleManagement,String appName,java.util.Vector<TTSChunk>ttsName, StringngnMediaScreenAppName,java.util.Vector<java.lang.String>vrSynonyms, BooleanisMediaApp, SdlMsgVersionsdlMsgVersion, LanguagelanguageDesired, LanguagehmiDisplayLanguageDesired,java.util.Vector<AppHMIType>appType, String appID, StringautoActivateID,TemplateColorSchemedayColorScheme,

Page 677: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

TemplateColorSchemenightColorScheme, booleancallbackToUIThread, booleanpreRegister, BaseTransportConfigtransportConfig )

Constructor.

Parameters

listener

Type of listener for this proxy base.

sdlProxyConfigurationResources

Configuration resources for this proxy.

protected SdlProxyBase(proxyListenerType listener,SdlProxyConfigurationResources sdlProxyConfigurationResources,boolean enableAdvancedLifecycleManagement,String appName,java.util.Vector<TTSChunk> ttsName,String ngnMediaScreenAppName,java.util.Vector<java.lang.String> vrSynonyms,Boolean isMediaApp,SdlMsgVersion sdlMsgVersion,Language languageDesired,Language hmiDisplayLanguageDesired,java.util.Vector<AppHMIType> appType,String appID,String autoActivateID,TemplateColorScheme dayColorScheme,TemplateColorScheme nightColorScheme,boolean callbackToUIThread,boolean preRegister,BaseTransportConfig transportConfig)

Page 678: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

enableAdvancedLifecycleManagement

Flag that ALM should be enabled or not.

appName

Client application name.

ttsName

TTS name.

ngnMediaScreenAppName

Media Screen Application name.

vrSynonyms

List of synonyms.

isMediaApp

Flag that indicates that client application if media application or not.

sdlMsgVersion

Version of Sdl Message.

languageDesired

Desired language.

Page 679: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

hmiDisplayLanguageDesired

Desired language for HMI.

appType

Type of application.

appID

Application identifier.

autoActivateID

Auto activation identifier.

dayColorScheme

Day color scheme.

nightColorScheme

callbackToUIThread

Flag that indicates that this proxy should send callback to UI thread ornot.

preRegister

Flag that indicates that this proxy should be pre-registerd or not.

Page 680: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

transportConfig

Configuration of transport to be used by underlying connection.

Methods

addPutFileResponseListener(IPutFileResponseListener_putFileListener )

Parameters

_putFileListener

remPutFileResponseListener(IPutFileResponseListener_putFileListener )

public void addPutFileResponseListener(IPutFileResponseListener _putFileListener)

Page 681: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

_putFileListener

getIsConnected()

getAppInterfaceRegistered()

Returns whether the application is registered in SDL. Note: for testing purposes,

it's possible that the connection is established, but the application is not

registered.

public void remPutFileResponseListener(IPutFileResponseListener _putFileListener)

public java.lang.Boolean getIsConnected()

public java.lang.Boolean getAppInterfaceRegistered()

Page 682: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

initializeProxy()

Throws

• SdlException

forceOnConnected()

This method will fake the multiplex connection event

sendTransportBroadcast()

public void initializeProxy() throws SdlException

public void forceOnConnected()

public void sendTransportBroadcast()

Page 683: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

enableSiphonDebug()

Public method to enable the siphon transport

disableSiphonDebug()

Public method to disable the Siphon Trace Server

enableDebugTool()

Public method to enable the Debug Tool

public void enableSiphonDebug()

public void disableSiphonDebug()

public static void enableDebugTool()

Page 684: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

disableDebugTool()

Public method to disable the Debug Tool

isDebugEnabled()

Public method to determine Debug Tool enabled

isAudioStreamTransportAvailable()

Check to see if it a transport is available to perform audio streaming.

NOTE: This is only for the audio streaming service, not regular streaming of

media playback.

public static void disableDebugTool()

public static boolean isDebugEnabled()

public boolean isAudioStreamTransportAvailable()

Page 685: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

isVideoStreamTransportAvailable()

Check to see if it a transport is available to perform video streaming.

close()

Deprecated

Throws

• SdlException

dispose()

Terminates the App's Interface Registration, closes the transport connection,

ends the protocol session, and frees any resources used by the proxy.

public boolean isVideoStreamTransportAvailable()

public void close() throws SdlException

Page 686: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Throws

• SdlException

cycleProxy(SdlDisconnectedReasondisconnectedReason )

Parameters

disconnectedReason

public void dispose() throws SdlException

protected void cycleProxy(SdlDisconnectedReason disconnectedReason)

Page 687: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

getProtocolVersion()

Get the SDL protocol spec version being used

serializeJSON( RPCMessage msg)

Parameters

msg

public com.smartdevicelink.proxy.Version getProtocolVersion()

public java.lang.String serializeJSON(RPCMessage msg)

Page 688: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

onPacketProgress( intcorrelationId, long bytesWritten,long totalSize )

Only call this method for a PutFile response. It will cause a class cast exception

if not.

Parameters

correlationId

correlation id of the packet being updated

bytesWritten

how many bytes were written

totalSize

the total size in bytes

public void onPacketProgress(int correlationId,long bytesWritten,long totalSize)

Page 689: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

addOnRPCResponseListener(OnRPCResponseListener listener,int correlationId, int totalSize )

Add a listener that will receive the response to the specific RPCRequest sent

with the corresponding correlation id

Parameters

listener

that will get called back when a response is received

correlationId

of the RPCRequest that was sent

totalSize

only include if this is an OnPutFileUpdateListener. Otherwise it will beignored.

public void addOnRPCResponseListener(OnRPCResponseListener listener,int correlationId,int totalSize)

Page 690: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

getResponseListeners()

onRPCNotificationReceived(RPCNotification notification )

Parameters

notification

onRPCReceived( RPCMessagemessage )

public android.util.SparseArray getResponseListeners()

public boolean onRPCNotificationReceived(RPCNotification notification)

Page 691: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

message

onRPCRequestReceived(RPCRequest request )

Parameters

request

public boolean onRPCReceived(RPCMessage message)

public boolean onRPCRequestReceived(RPCRequest request)

Page 692: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

addOnRPCNotificationListener(FunctionID notificationId,OnRPCNotificationListenerlistener )

This will ad a listener for the specific type of notification. As of now it will only

allow a single listener per notification function id

Parameters

notificationId

The notification type that this listener is designated for

listener

The listener that will be called when a notification of the provided typeis received

public void addOnRPCNotificationListener(FunctionID notificationId,OnRPCNotificationListener listener)

Page 693: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

addOnRPCListener( FunctionIDmessageId, OnRPCListenerlistener )

This will add a listener for the specific type of message. As of now it will only

allow a single listener per request function id

Parameters

messageId

The message type that this listener is designated for

listener

The listener that will be called when a request of the provided type isreceived

public void addOnRPCListener(FunctionID messageId,OnRPCListener listener)

Page 694: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

removeOnRPCListener(FunctionID messageId,OnRPCListener listener )

Parameters

messageId

listener

addOnRPCRequestListener(FunctionID requestId,OnRPCRequestListener listener )

This will add a listener for the specific type of request. As of now it will only

allow a single listener per request function id

public boolean removeOnRPCListener(FunctionID messageId,OnRPCListener listener)

Page 695: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

requestId

The request type that this listener is designated for

listener

The listener that will be called when a request of the provided type isreceived

removeOnRPCNotificationListener( FunctionID notificationId )

Deprecated

This method is no longer valid and will not remove the listener for the supplied

notificaiton id

public void addOnRPCRequestListener(FunctionID requestId,OnRPCRequestListener listener)

public void removeOnRPCNotificationListener(FunctionID notificationId)

Page 696: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

notificationId

n/a

removeOnRPCNotificationListener( FunctionID notificationId,OnRPCNotificationListenerlistener )

Parameters

notificationId

listener

public boolean removeOnRPCNotificationListener(FunctionID notificationId,OnRPCNotificationListener listener)

Page 697: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

removeOnRPCRequestListener(FunctionID requestId,OnRPCRequestListener listener )

Parameters

requestId

listener

getSdlMsgVersion()

Get SDL Message Version

public boolean removeOnRPCRequestListener(FunctionID requestId,OnRPCRequestListener listener)

public SdlMsgVersion getSdlMsgVersion() throws SdlException

Page 698: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Throws

• SdlException

sendSequentialRequests(java.util.List<? extendsRPCMessage> rpcs,OnMultipleRequestListenerlistener )

Takes a list of RPCMessages and sends it to SDL in a synchronous fashion.

Responses are captured through callback on OnMultipleRequestListener. For

sending requests asynchronously, use sendRequests

NOTE: This will override any listeners on individual RPCs

Parameters

rpcs

is the list of RPCMessages being sent

public void sendSequentialRequests(java.util.List<? extends RPCMessage> rpcs,OnMultipleRequestListener listener) throws SdlException

Page 699: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

listener

listener for updates and completions

Throws

• SdlException

sendRequests( java.util.List<?extends RPCMessage> rpcs,OnMultipleRequestListenerlistener )

Takes a list of RPCMessages and sends it to SDL. Responses are captured

through callback on OnMultipleRequestListener. For sending requests

synchronously, use sendSequentialRequests

NOTE: This will override any listeners on individual RPCs

public void sendRequests(java.util.List<? extends RPCMessage> rpcs,OnMultipleRequestListener listener) throws SdlException

Page 700: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

rpcs

is the list of RPCMessages being sent

listener

listener for updates and completions

Throws

• SdlException

sendRPC( RPCMessage message)

public void sendRPC(RPCMessage message) throws SdlException

Page 701: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

message

Throws

• SdlException

sendRPCRequest( RPCRequestrequest )

Deprecated

Takes an RPCRequest and sends it to SDL. Responses are captured through

callback on IProxyListener.

Parameters

request

public void sendRPCRequest(RPCRequest request) throws SdlException

Page 702: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

is the RPCRequest being sent

Throws

• SdlException

notifyProxyClosed( String info,Exception e,SdlDisconnectedReason reason )

Parameters

info

e

reason

protected void notifyProxyClosed(String info,Exception e,SdlDisconnectedReason reason)

Page 703: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

startRPCStream( InputStream is,RPCRequest msg )

Parameters

is

msg

startRPCStream( RPCRequestmsg )

public boolean startRPCStream(InputStream is,RPCRequest msg)

public java.io.OutputStream startRPCStream(RPCRequest msg)

Page 704: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

msg

endRPCStream()

createFutureTask(com.smartdevicelink.proxy.SdlProxyBase<proxyListenerTypcallMethod )

public void endRPCStream()

public java.util.concurrent.FutureTask createFutureTask(com.smartdevicelink.proxy.SdlProxyBase<proxyListenerType>.CallableMethod callMethod)

Page 705: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

callMethod

createScheduler()

startService( SessionTypeserviceType, boolean isEncrypted)

public java.util.concurrent.ScheduledExecutorService createScheduler()

public void startService(SessionType serviceType,boolean isEncrypted)

Page 706: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

serviceType

isEncrypted

endService( SessionTypeserviceType )

Parameters

serviceType

public void endService(SessionType serviceType)

Page 707: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

startH264( InputStream is,boolean isEncrypted )

Deprecated

Parameters

is

isEncrypted

startH264( boolean isEncrypted )

Deprecated

public boolean startH264(InputStream is,boolean isEncrypted)

public java.io.OutputStream startH264(boolean isEncrypted)

Page 708: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

isEncrypted

endH264()

Deprecated

Closes the opened video service (serviceType 11)

pausePCM()

Deprecated

Pauses the stream for the opened audio service (serviceType 10)

public boolean endH264()

public boolean pausePCM()

Page 709: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

pauseH264()

Deprecated

Pauses the stream for the opened video service (serviceType 11)

resumePCM()

Deprecated

Resumes the stream for the opened audio service (serviceType 10)

resumeH264()

Deprecated

Resumes the stream for the opened video service (serviceType 11)

public boolean pauseH264()

public boolean resumePCM()

public boolean resumeH264()

Page 710: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

startPCM( InputStream is,boolean isEncrypted )

Deprecated

Opens the audio service (serviceType 10) and subsequently streams raw PCM

audio from an InputStream provided by the app

Parameters

is

isEncrypted

startPCM( boolean isEncrypted )

Deprecated

Opens the audio service (serviceType 10) and subsequently provides an

OutputStream to the app

public boolean startPCM(InputStream is,boolean isEncrypted)

Page 711: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

isEncrypted

endPCM()

Deprecated

Closes the opened audio service (serviceType 10)

public java.io.OutputStream startPCM(boolean isEncrypted)

public boolean endPCM()

Page 712: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

startVideoStream( booleanisEncrypted,VideoStreamingParametersparameters )

Opens a video service (service type 11) and subsequently provides an

IVideoStreamListener to the app to send video data. The supplied

VideoStreamingParameters will be set as desired parameters that will be used

to negotiate

NOTE: IF USING SECONDARY TRANSPORTS, THE VIDEO SERVICE MUST

BE STARTED BEFORE CALLING THIS THIS METHOD. USE A

`ISdlServiceListener` TO BE NOTIFIED THAT IT STARTS THEN CALL THIS

METHOD TO START STREAMING. ADD A LISTENER USE {@link

#addServiceListener(SessionType, ISdlServiceListener)}.

Parameters

isEncrypted

Specify true if packets on this service have to be encrypted

parameters

public IVideoStreamListener startVideoStream(boolean isEncrypted,VideoStreamingParameters parameters)

Page 713: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Video streaming parameters including: codec which will be used forstreaming (currently, only VideoStreamingCodec.H264 is accepted),height and width of the video in pixels.

endVideoStream()

Closes the opened video service (serviceType 11)

pauseVideoStream()

Pauses the stream for the opened video service (serviceType 11)

resumeVideoStream()

Resumes the stream for the opened video service (serviceType 11)

public boolean endVideoStream()

public boolean pauseVideoStream()

public boolean resumeVideoStream()

Page 714: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

createOpenGLInputSurface( intframeRate, int iFrameInterval, intwidth, int height, int bitrate,boolean isEncrypted )

Opens the video service (serviceType 11) and creates a Surface (used for

streaming video) with input parameters provided by the app

Parameters

frameRate

- specified rate of frames to utilize for creation of Surface

iFrameInterval

- specified interval to utilize for creation of Surface

width

- specified width to utilize for creation of Surface

public android.view.Surface createOpenGLInputSurface(int frameRate,int iFrameInterval,int width,int height,int bitrate,boolean isEncrypted)

Page 715: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

height

- specified height to utilize for creation of Surface

bitrate

- specified bitrate to utilize for creation of Surface

isEncrypted

startRemoteDisplayStream(Context context,java.lang.Class<? extendscom.smartdevicelink.streaming.video.SdlRemoteDisplay>remoteDisplay,VideoStreamingParametersparameters, boolean encrypted )

Starts streaming a remote display to the module if there is a connected

session. This method of streaming requires the device to be on API level 19 or

higher

public void startRemoteDisplayStream(Context context,java.lang.Class<? extends com.smartdevicelink.streaming.video.SdlRemoteDisplay> remoteDisplay,VideoStreamingParameters parameters,boolean encrypted)

Page 716: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

context

a context that can be used to create the remote display

remoteDisplay

class object of the remote display. This class will be used to create aninstance of the remote display and will be projected to the module

parameters

streaming parameters to be used when streaming. If null is sent in, thedefault/optimized options will be used. If you are unsure about whatparameters to be used it is best to just send null and let the systemdetermine what works best for the currently connected module.

encrypted

a flag of if the stream should be encrypted. Only set if you have asupplied encryption library that the module can understand.

stopRemoteDisplayStream()

Stops the remote display stream if one has been started

public void stopRemoteDisplayStream()

Page 717: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

startEncoder()

Starts the MediaCodec encoder utilized in conjunction with the Surface returned

via the createOpenGLInputSurface method

releaseEncoder()

Releases the MediaCodec encoder utilized in conjunction with the Surface

returned via the createOpenGLInputSurface method

drainEncoder( booleanendOfStream )

Releases the MediaCodec encoder utilized in conjunction with the Surface

returned via the createOpenGLInputSurface method

public void startEncoder()

public void releaseEncoder()

public void drainEncoder(boolean endOfStream)

Page 718: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

endOfStream

startAudioStream( booleanisEncrypted,AudioStreamingCodec codec,AudioStreamingParams params )

Opens a audio service (service type 10) and subsequently provides an

IAudioStreamListener to the app to send audio data. Currently information

passed by "params" are ignored, since Audio Streaming feature lacks capability

negotiation mechanism. App should configure audio stream data to align with

head unit's capability by checking (upcoming) pcmCapabilities. The default

format is in 16kHz and 16 bits.

public IAudioStreamListener startAudioStream(boolean isEncrypted,AudioStreamingCodec codec,AudioStreamingParams params)

Page 719: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

isEncrypted

Specify true if packets on this service have to be encrypted

codec

Audio codec which will be used for streaming. Currently, onlyAudioStreamingCodec.LPCM is accepted.

params

(Reserved for future use) Additional configuration information for eachcodec. If "codec" is AudioStreamingCodec.LPCM, "params" must be aninstance of LPCMParams class.

endAudioStream()

Closes the opened audio service (serviceType 10)

public boolean endAudioStream()

Page 720: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

pauseAudioStream()

Pauses the stream for the opened audio service (serviceType 10)

resumeAudioStream()

Resumes the stream for the opened audio service (serviceType 10)

setAppService( Service mService)

public boolean pauseAudioStream()

public boolean resumeAudioStream()

public void setAppService(Service mService)

Page 721: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

mService

startProtectedRPCService()

getLockScreenIcon(LockScreenManager.OnLockScreenIconDownloadedListenerl )

public boolean startProtectedRPCService()

public void getLockScreenIcon(LockScreenManager.OnLockScreenIconDownloadedListener l)

Page 722: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

l

addCommand( IntegercommandID, String menuText,Integer parentID, Integerposition,java.util.Vector<java.lang.String>vrCommands, String IconValue,ImageType IconType, IntegercorrelationID )

Sends an AddCommand RPCRequest to SDL. Responses are captured through

callback on IProxyListener.

public void addCommand(Integer commandID,String menuText,Integer parentID,Integer position,java.util.Vector<java.lang.String> vrCommands,String IconValue,ImageType IconType,Integer correlationID) throws SdlException

Page 723: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

commandID

-Unique command ID of the command to add.

menuText

-Menu text for optional sub value containing menu parameters.

parentID

-Menu parent ID for optional sub value containing menu parameters.

position

-Menu position for optional sub value containing menu parameters.

vrCommands

-VR synonyms for this AddCommand.

IconValue

-A static hex icon value or the binary image file name identifier (sent bythe PutFile RPC).

IconType

-Describes whether the image is static or dynamic

Page 724: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

correlationID

-A unique ID that correlates each RPCRequest and RPCResponse

Throws

• SdlException

addCommand( IntegercommandID, String menuText,Integer position,java.util.Vector<java.lang.String>vrCommands, String IconValue,ImageType IconType, IntegercorrelationID )

Sends an AddCommand RPCRequest to SDL. Responses are captured through

callback on IProxyListener.

public void addCommand(Integer commandID,String menuText,Integer position,java.util.Vector<java.lang.String> vrCommands,String IconValue,ImageType IconType,Integer correlationID) throws SdlException

Page 725: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

commandID

-Unique command ID of the command to add.

menuText

-Menu text for optional sub value containing menu parameters.

position

-Menu position for optional sub value containing menu parameters.

vrCommands

-VR synonyms for this AddCommand.

IconValue

-A static hex icon value or the binary image file name identifier (sent bythe PutFile RPC).

IconType

-Describes whether the image is static or dynamic

correlationID

-A unique ID that correlates each RPCRequest and RPCResponse

Page 726: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Throws

• SdlException

addCommand( IntegercommandID, String menuText,Integer position, StringIconValue, ImageType IconType,Integer correlationID )

Sends an AddCommand RPCRequest to SDL. Responses are captured through

callback on IProxyListener.

Parameters

commandID

-Unique command ID of the command to add.

public void addCommand(Integer commandID,String menuText,Integer position,String IconValue,ImageType IconType,Integer correlationID) throws SdlException

Page 727: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

menuText

-Menu text for optional sub value containing menu parameters.

position

-Menu position for optional sub value containing menu parameters.

IconValue

-A static hex icon value or the binary image file name identifier (sent bythe PutFile RPC).

IconType

-Describes whether the image is static or dynamic

correlationID

-A unique ID that correlates each RPCRequest and RPCResponse

Throws

• SdlException

Page 728: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

addCommand( IntegercommandID, String menuText,String IconValue, ImageTypeIconType, Integer correlationID )

Sends an AddCommand RPCRequest to SDL. Responses are captured through

callback on IProxyListener.

Parameters

commandID

-Unique command ID of the command to add.

menuText

-Menu text for optional sub value containing menu parameters.

IconValue

-A static hex icon value or the binary image file name identifier (sent bythe PutFile RPC).

public void addCommand(Integer commandID,String menuText,String IconValue,ImageType IconType,Integer correlationID) throws SdlException

Page 729: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

IconType

-Describes whether the image is static or dynamic

correlationID

-A unique ID that correlates each RPCRequest and RPCResponse

Throws

• SdlException

addCommand( IntegercommandID, String menuText,java.util.Vector<java.lang.String>vrCommands, String IconValue,ImageType IconType, IntegercorrelationID )

Sends an AddCommand RPCRequest to SDL. Responses are captured through

callback on IProxyListener.

public void addCommand(Integer commandID,String menuText,java.util.Vector<java.lang.String> vrCommands,String IconValue,ImageType IconType,Integer correlationID) throws SdlException

Page 730: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

commandID

-Unique command ID of the command to add.

menuText

-Menu text for optional sub value containing menu parameters.

vrCommands

-VR synonyms for this AddCommand.

IconValue

-A static hex icon value or the binary image file name identifier (sent bythe PutFile RPC).

IconType

-Describes whether the image is static or dynamic

correlationID

Page 731: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

-A unique ID that correlates each RPCRequest and RPCResponse

Throws

• SdlException

addCommand( IntegercommandID,java.util.Vector<java.lang.String>vrCommands, String IconValue,ImageType IconType, IntegercorrelationID )

Sends an AddCommand RPCRequest to SDL. Responses are captured through

callback on IProxyListener.

Parameters

commandID

public void addCommand(Integer commandID,java.util.Vector<java.lang.String> vrCommands,String IconValue,ImageType IconType,Integer correlationID) throws SdlException

Page 732: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

-Unique command ID of the command to add.

vrCommands

-VR synonyms for this AddCommand.

IconValue

-A static hex icon value or the binary image file name identifier (sent bythe PutFile RPC).

IconType

-Describes whether the image is static or dynamic

correlationID

-A unique ID that correlates each RPCRequest and RPCResponse

Throws

• SdlException

Page 733: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

addCommand( IntegercommandID, String menuText,Integer parentID, Integerposition,java.util.Vector<java.lang.String>vrCommands, IntegercorrelationID )

Sends an AddCommand RPCRequest to SDL. Responses are captured through

callback on IProxyListener.

Parameters

commandID

-Unique command ID of the command to add.

menuText

-Menu text for optional sub value containing menu parameters.

public void addCommand(Integer commandID,String menuText,Integer parentID,Integer position,java.util.Vector<java.lang.String> vrCommands,Integer correlationID) throws SdlException

Page 734: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

parentID

-Menu parent ID for optional sub value containing menu parameters.

position

-Menu position for optional sub value containing menu parameters.

vrCommands

-VR synonyms for this AddCommand.

correlationID

-A unique ID that correlates each RPCRequest and RPCResponse

Throws

• SdlException

Page 735: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

addCommand( IntegercommandID, String menuText,Integer position,java.util.Vector<java.lang.String>vrCommands, IntegercorrelationID )

Sends an AddCommand RPCRequest to SDL. Responses are captured through

callback on IProxyListener.

Parameters

commandID

-Unique command ID of the command to add.

menuText

-Menu text for optional sub value containing menu parameters.

public void addCommand(Integer commandID,String menuText,Integer position,java.util.Vector<java.lang.String> vrCommands,Integer correlationID) throws SdlException

Page 736: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

position

-Menu position for optional sub value containing menu parameters.

vrCommands

-VR synonyms for this AddCommand.

correlationID

-A unique ID that correlates each RPCRequest and RPCResponse

Throws

• SdlException

addCommand( IntegercommandID, String menuText,Integer position, IntegercorrelationID )

Sends an AddCommand RPCRequest to SDL. Responses are captured through

callback on IProxyListener.

public void addCommand(Integer commandID,String menuText,Integer position,Integer correlationID) throws SdlException

Page 737: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

commandID

-Unique command ID of the command to add.

menuText

-Menu text for optional sub value containing menu parameters.

position

-Menu position for optional sub value containing menu parameters.

correlationID

-A unique ID that correlates each RPCRequest and RPCResponse

Throws

• SdlException

Page 738: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

addCommand( IntegercommandID, String menuText,Integer correlationID )

Sends an AddCommand RPCRequest to SDL. Responses are captured through

callback on IProxyListener.

Parameters

commandID

-Unique command ID of the command to add.

menuText

-Menu text for optional sub value containing menu parameters.

correlationID

-A unique ID that correlates each RPCRequest and RPCResponse

public void addCommand(Integer commandID,String menuText,Integer correlationID) throws SdlException

Page 739: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Throws

• SdlException

addCommand( IntegercommandID, String menuText,java.util.Vector<java.lang.String>vrCommands, IntegercorrelationID )

Sends an AddCommand RPCRequest to SDL. Responses are captured through

callback on IProxyListener.

Parameters

commandID

-Unique command ID of the command to add.

public void addCommand(Integer commandID,String menuText,java.util.Vector<java.lang.String> vrCommands,Integer correlationID) throws SdlException

Page 740: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

menuText

-Menu text for optional sub value containing menu parameters.

vrCommands

-VR synonyms for this AddCommand.

correlationID

-A unique ID that correlates each RPCRequest and RPCResponse

Throws

• SdlException

addCommand( IntegercommandID,java.util.Vector<java.lang.String>vrCommands, IntegercorrelationID )

Sends an AddCommand RPCRequest to SDL. Responses are captured through

callback on IProxyListener.

public void addCommand(Integer commandID,java.util.Vector<java.lang.String> vrCommands,Integer correlationID) throws SdlException

Page 741: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

commandID

-Unique command ID of the command to add.

vrCommands

-VR synonyms for this AddCommand.

correlationID

-A unique ID that correlates each RPCRequest and RPCResponse

Throws

• SdlException

addSubMenu( Integer menuID,String menuName, Integerposition, Image menuIcon,Integer correlationID )

Sends an AddSubMenu RPCRequest to SDL. Responses are captured through

callback on IProxyListener.

Page 742: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

menuID

-Unique ID of the sub menu to add.

menuName

-Text to show in the menu for this sub menu.

position

-Position within the items that are are at top level of the in applicationmenu.

menuIcon

-Image to be be shown along with the submenu item

correlationID

-A unique ID that correlates each RPCRequest and RPCResponse

public void addSubMenu(Integer menuID,String menuName,Integer position,Image menuIcon,Integer correlationID) throws SdlException

Page 743: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Throws

• SdlException

addSubMenu( Integer menuID,String menuName, Integerposition, Integer correlationID )

Deprecated

Sends an AddSubMenu RPCRequest to SDL. Responses are captured through

callback on IProxyListener.

Parameters

menuID

-Unique ID of the sub menu to add.

menuName

-Text to show in the menu for this sub menu.

public void addSubMenu(Integer menuID,String menuName,Integer position,Integer correlationID) throws SdlException

Page 744: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

position

-Position within the items that are are at top level of the in applicationmenu.

correlationID

-A unique ID that correlates each RPCRequest and RPCResponse

Throws

• SdlException

addSubMenu( Integer menuID,String menuName, IntegercorrelationID )

Deprecated

Sends an AddSubMenu RPCRequest to SDL. Responses are captured through

callback on IProxyListener.

public void addSubMenu(Integer menuID,String menuName,Integer correlationID) throws SdlException

Page 745: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

menuID

-Unique ID of the sub menu to add.

menuName

-Text to show in the menu for this sub menu.

correlationID

-A unique ID that correlates each RPCRequest and RPCResponse

Throws

• SdlException

Page 746: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

alert( String ttsText, StringalertText1, String alertText2,String alertText3, BooleanplayTone, Integer duration,java.util.Vector<SoftButton>softButtons, Integer correlationID)

Sends an Alert RPCRequest to SDL. Responses are captured through callback on

IProxyListener.

Parameters

ttsText

-The text to speech message in the form of a string.

alertText1

-The first line of the alert text field.

public void alert(String ttsText,String alertText1,String alertText2,String alertText3,Boolean playTone,Integer duration,java.util.Vector<SoftButton> softButtons,Integer correlationID) throws SdlException

Page 747: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

alertText2

-The second line of the alert text field.

alertText3

-The optional third line of the alert text field.

playTone

-Defines if tone should be played.

duration

-Timeout in milliseconds.

softButtons

-A list of App defined SoftButtons.

correlationID

-A unique ID that correlates each RPCRequest and RPCResponse

Throws

• SdlException

Page 748: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

alert(java.util.Vector<TTSChunk>ttsChunks, String alertText1,String alertText2, StringalertText3, Boolean playTone,Integer duration,java.util.Vector<SoftButton>softButtons, Integer correlationID)

Sends an Alert RPCRequest to SDL. Responses are captured through callback on

IProxyListener.

Parameters

ttsChunks

-Text/phonemes to speak in the form of ttsChunks.

public void alert(java.util.Vector<TTSChunk> ttsChunks,String alertText1,String alertText2,String alertText3,Boolean playTone,Integer duration,java.util.Vector<SoftButton> softButtons,Integer correlationID) throws SdlException

Page 749: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

alertText1

-The first line of the alert text field.

alertText2

-The second line of the alert text field.

alertText3

-The optional third line of the alert text field.

playTone

-Defines if tone should be played.

duration

-Timeout in milliseconds.

softButtons

-A list of App defined SoftButtons.

correlationID

-A unique ID that correlates each RPCRequest and RPCResponse

Throws

• SdlException

Page 750: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

alert( String ttsText, BooleanplayTone,java.util.Vector<SoftButton>softButtons, Integer correlationID)

Sends an Alert RPCRequest to SDL. Responses are captured through callback on

IProxyListener.

Parameters

ttsText

-The text to speech message in the form of a string.

playTone

-Defines if tone should be played.

softButtons

-A list of App defined SoftButtons.

public void alert(String ttsText,Boolean playTone,java.util.Vector<SoftButton> softButtons,Integer correlationID) throws SdlException

Page 751: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

correlationID

-A unique ID that correlates each RPCRequest and RPCResponse

Throws

• SdlException

alert(java.util.Vector<TTSChunk>chunks, Boolean playTone,java.util.Vector<SoftButton>softButtons, Integer correlationID)

Sends an Alert RPCRequest to SDL. Responses are captured through callback on

IProxyListener.

public void alert(java.util.Vector<TTSChunk> chunks,Boolean playTone,java.util.Vector<SoftButton> softButtons,Integer correlationID) throws SdlException

Page 752: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

chunks

-A list of text/phonemes to speak in the form of ttsChunks.

playTone

-Defines if tone should be played.

softButtons

-A list of App defined SoftButtons.

correlationID

-A unique ID that correlates each RPCRequest and RPCResponse

Throws

• SdlException

Page 753: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

alert( String alertText1, StringalertText2, String alertText3,Boolean playTone, Integerduration,java.util.Vector<SoftButton>softButtons, Integer correlationID)

Sends an Alert RPCRequest to SDL. Responses are captured through callback on

IProxyListener.

Parameters

alertText1

-The first line of the alert text field.

alertText2

-The second line of the alert text field.

public void alert(String alertText1,String alertText2,String alertText3,Boolean playTone,Integer duration,java.util.Vector<SoftButton> softButtons,Integer correlationID) throws SdlException

Page 754: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

alertText3

-The optional third line of the alert text field.

playTone

-Defines if tone should be played.

duration

-Timeout in milliseconds.

softButtons

-A list of App defined SoftButtons.

correlationID

-A unique ID that correlates each RPCRequest and RPCResponse

Throws

• SdlException

Page 755: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

alert( String ttsText, StringalertText1, String alertText2,Boolean playTone, Integerduration, Integer correlationID )

Sends an Alert RPCRequest to SDL. Responses are captured through callback on

IProxyListener.

Parameters

ttsText

-The text to speech message in the form of a string.

alertText1

-The first line of the alert text field.

alertText2

-The second line of the alert text field.

public void alert(String ttsText,String alertText1,String alertText2,Boolean playTone,Integer duration,Integer correlationID) throws SdlException

Page 756: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

playTone

-Defines if tone should be played.

duration

-Timeout in milliseconds.

correlationID

-A unique ID that correlates each RPCRequest and RPCResponse

Throws

• SdlException

alert(java.util.Vector<TTSChunk>ttsChunks, String alertText1,String alertText2, BooleanplayTone, Integer duration,Integer correlationID )

Sends an Alert RPCRequest to SDL. Responses are captured through callback on

IProxyListener.

Page 757: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

ttsChunks

-A list of text/phonemes to speak in the form of ttsChunks.

alertText1

-The first line of the alert text field.

alertText2

-The second line of the alert text field.

playTone

-Defines if tone should be played.

duration

-Timeout in milliseconds.

correlationID

-A unique ID that correlates each RPCRequest and RPCResponse

public void alert(java.util.Vector<TTSChunk> ttsChunks,String alertText1,String alertText2,Boolean playTone,Integer duration,Integer correlationID) throws SdlException

Page 758: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Throws

• SdlException

alert( String ttsText, BooleanplayTone, Integer correlationID )

Sends an Alert RPCRequest to SDL. Responses are captured through callback on

IProxyListener.

Parameters

ttsText

-The text to speech message in the form of a string.

playTone

-Defines if tone should be played.

correlationID

public void alert(String ttsText,Boolean playTone,Integer correlationID) throws SdlException

Page 759: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

-A unique ID that correlates each RPCRequest and RPCResponse

Throws

• SdlException

alert(java.util.Vector<TTSChunk>chunks, Boolean playTone,Integer correlationID )

Sends an Alert RPCRequest to SDL. Responses are captured through callback on

IProxyListener.

Parameters

chunks

-A list of text/phonemes to speak in the form of ttsChunks.

playTone

public void alert(java.util.Vector<TTSChunk> chunks,Boolean playTone,Integer correlationID) throws SdlException

Page 760: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

-Defines if tone should be played.

correlationID

-A unique ID that correlates each RPCRequest and RPCResponse

Throws

• SdlException

alert( String alertText1, StringalertText2, Boolean playTone,Integer duration, IntegercorrelationID )

Sends an Alert RPCRequest to SDL. Responses are captured through callback on

IProxyListener.

Parameters

alertText1

public void alert(String alertText1,String alertText2,Boolean playTone,Integer duration,Integer correlationID) throws SdlException

Page 761: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

-The first line of the alert text field.

alertText2

-The second line of the alert text field.

playTone

-Defines if tone should be played.

duration

-Timeout in milliseconds.

correlationID

-A unique ID that correlates each RPCRequest and RPCResponse

Throws

• SdlException

Page 762: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

createInteractionChoiceSet(java.util.Vector<Choice>choiceSet, IntegerinteractionChoiceSetID, IntegercorrelationID )

Sends a CreateInteractionChoiceSet RPCRequest to SDL. Responses are

captured through callback on IProxyListener.

Parameters

choiceSet

to be sent to the module

interactionChoiceSetID

to be used in reference to the supplied choiceSet

correlationID

public void createInteractionChoiceSet(java.util.Vector<Choice> choiceSet,Integer interactionChoiceSetID,Integer correlationID) throws SdlException

Page 763: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

to be set to the RPCRequest

Throws

• SdlException

deleteCommand( IntegercommandID, IntegercorrelationID )

Sends a DeleteCommand RPCRequest to SDL. Responses are captured through

callback on IProxyListener.

Parameters

commandID

-ID of the command(s) to delete.

correlationID

-A unique ID that correlates each RPCRequest and RPCResponse

public void deleteCommand(Integer commandID,Integer correlationID) throws SdlException

Page 764: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Throws

• SdlException

deleteInteractionChoiceSet(Integer interactionChoiceSetID,Integer correlationID )

Sends a DeleteInteractionChoiceSet RPCRequest to SDL. Responses are

captured through callback on IProxyListener.

Parameters

interactionChoiceSetID

-ID of the interaction choice set to delete.

correlationID

-A unique ID that correlates each RPCRequest and RPCResponse

public void deleteInteractionChoiceSet(Integer interactionChoiceSetID,Integer correlationID) throws SdlException

Page 765: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Throws

• SdlException

deleteSubMenu( Integer menuID,Integer correlationID )

Sends a DeleteSubMenu RPCRequest to SDL. Responses are captured through

callback on IProxyListener.

Parameters

menuID

-The menuID of the submenu to delete.

correlationID

-A unique ID that correlates each RPCRequest and RPCResponse

public void deleteSubMenu(Integer menuID,Integer correlationID) throws SdlException

Page 766: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Throws

• SdlException

performInteraction( StringinitPrompt, String displayText,Integer interactionChoiceSetID,java.util.Vector<VrHelpItem>vrHelp, Integer correlationID )

Sends a PerformInteraction RPCRequest to SDL. Responses are captured

through callback on IProxyListener.

Parameters

initPrompt

-Intial prompt spoken to the user at the start of an interaction.

public void performInteraction(String initPrompt,String displayText,Integer interactionChoiceSetID,java.util.Vector<VrHelpItem> vrHelp,Integer correlationID) throws SdlException

Page 767: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

displayText

-Text to be displayed first.

interactionChoiceSetID

-Interaction choice set IDs to use with an interaction.

vrHelp

-Suggested VR Help Items to display on-screen during PerformInteraction.

correlationID

-A unique ID that correlates each RPCRequest and RPCResponse.

Throws

• SdlException

Page 768: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

performInteraction( StringinitPrompt, String displayText,Integer interactionChoiceSetID,String helpPrompt, StringtimeoutPrompt, InteractionModeinteractionMode, Integertimeout,java.util.Vector<VrHelpItem>vrHelp, Integer correlationID )

Sends a PerformInteraction RPCRequest to SDL. Responses are captured

through callback on IProxyListener.

Parameters

initPrompt

-Intial prompt spoken to the user at the start of an interaction.

public void performInteraction(String initPrompt,String displayText,Integer interactionChoiceSetID,String helpPrompt,String timeoutPrompt,InteractionMode interactionMode,Integer timeout,java.util.Vector<VrHelpItem> vrHelp,Integer correlationID) throws SdlException

Page 769: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

displayText

-Text to be displayed first.

interactionChoiceSetID

-Interaction choice set IDs to use with an interaction.

helpPrompt

-Help text that is spoken when a user speaks "help" during theinteraction.

timeoutPrompt

-Timeout text that is spoken when a VR interaction times out.

interactionMode

- The method in which the user is notified and uses the interaction(Manual,VR,Both).

timeout

-Timeout in milliseconds.

vrHelp

-Suggested VR Help Items to display on-screen during PerformInteraction.

correlationID

-A unique ID that correlates each RPCRequest and RPCResponse.

Page 770: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Throws

• SdlException

performInteraction( StringinitPrompt, String displayText,java.util.Vector<java.lang.Integer>interactionChoiceSetIDList,String helpPrompt, StringtimeoutPrompt, InteractionModeinteractionMode, Integertimeout,java.util.Vector<VrHelpItem>vrHelp, Integer correlationID )

Sends a PerformInteraction RPCRequest to SDL. Responses are captured

through callback on IProxyListener.

public void performInteraction(String initPrompt,String displayText,java.util.Vector<java.lang.Integer> interactionChoiceSetIDList,String helpPrompt,String timeoutPrompt,InteractionMode interactionMode,Integer timeout,java.util.Vector<VrHelpItem> vrHelp,Integer correlationID) throws SdlException

Page 771: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

initPrompt

-Intial prompt spoken to the user at the start of an interaction.

displayText

-Text to be displayed first.

interactionChoiceSetIDList

-A list of interaction choice set IDs to use with an interaction.

helpPrompt

-Help text that is spoken when a user speaks "help" during theinteraction.

timeoutPrompt

-Timeout text that is spoken when a VR interaction times out.

interactionMode

- The method in which the user is notified and uses the interaction(Manual,VR,Both).

timeout

-Timeout in milliseconds.

Page 772: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

vrHelp

-Suggested VR Help Items to display on-screen during PerformInteraction.

correlationID

-A unique ID that correlates each RPCRequest and RPCResponse.

Throws

• SdlException

Page 773: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

performInteraction(java.util.Vector<TTSChunk>initChunks, String displayText,java.util.Vector<java.lang.Integer>interactionChoiceSetIDList,java.util.Vector<TTSChunk>helpChunks,java.util.Vector<TTSChunk>timeoutChunks, InteractionModeinteractionMode, Integertimeout,java.util.Vector<VrHelpItem>vrHelp, Integer correlationID )

Sends a PerformInteraction RPCRequest to SDL. Responses are captured

through callback on IProxyListener.

public void performInteraction(java.util.Vector<TTSChunk> initChunks,String displayText,java.util.Vector<java.lang.Integer> interactionChoiceSetIDList,java.util.Vector<TTSChunk> helpChunks,java.util.Vector<TTSChunk> timeoutChunks,InteractionMode interactionMode,Integer timeout,java.util.Vector<VrHelpItem> vrHelp,Integer correlationID) throws SdlException

Page 774: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

initChunks

-A list of text/phonemes to speak for the initial prompt in the form ofttsChunks.

displayText

-Text to be displayed first.

interactionChoiceSetIDList

-A list of interaction choice set IDs to use with an interaction.

helpChunks

-A list of text/phonemes to speak for the help text that is spoken whena user speaks "help" during the interaction.

timeoutChunks

A list of text/phonems to speak for the timeout text that is spokenwhen a VR interaction times out.

interactionMode

- The method in which the user is notified and uses the interaction(Manual,VR,Both).

timeout

Page 775: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

-Timeout in milliseconds.

vrHelp

-Suggested VR Help Items to display on-screen during PerformInteraction.

correlationID

-A unique ID that correlates each RPCRequest and RPCResponse.

Throws

• SdlException

performInteraction( StringinitPrompt, String displayText,Integer interactionChoiceSetID,Integer correlationID )

Sends a PerformInteraction RPCRequest to SDL. Responses are captured

through callback on IProxyListener.

public void performInteraction(String initPrompt,String displayText,Integer interactionChoiceSetID,Integer correlationID) throws SdlException

Page 776: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

initPrompt

-Intial prompt spoken to the user at the start of an interaction.

displayText

-Text to be displayed first.

interactionChoiceSetID

-Interaction choice set IDs to use with an interaction.

correlationID

-A unique ID that correlates each RPCRequest and RPCResponse.

Throws

• SdlException

Page 777: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

performInteraction( StringinitPrompt, String displayText,Integer interactionChoiceSetID,String helpPrompt, StringtimeoutPrompt, InteractionModeinteractionMode, Integertimeout, Integer correlationID )

Sends a PerformInteraction RPCRequest to SDL. Responses are captured

through callback on IProxyListener.

Parameters

initPrompt

-Intial prompt spoken to the user at the start of an interaction.

displayText

-Text to be displayed first.

public void performInteraction(String initPrompt,String displayText,Integer interactionChoiceSetID,String helpPrompt,String timeoutPrompt,InteractionMode interactionMode,Integer timeout,Integer correlationID) throws SdlException

Page 778: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

interactionChoiceSetID

-Interaction choice set IDs to use with an interaction.

helpPrompt

-Help text that is spoken when a user speaks "help" during theinteraction.

timeoutPrompt

-Timeout text that is spoken when a VR interaction times out.

interactionMode

- The method in which the user is notified and uses the interaction(Manual,VR,Both).

timeout

-Timeout in milliseconds.

correlationID

-A unique ID that correlates each RPCRequest and RPCResponse.

Throws

• SdlException

Page 779: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

performInteraction( StringinitPrompt, String displayText,java.util.Vector<java.lang.Integer>interactionChoiceSetIDList,String helpPrompt, StringtimeoutPrompt, InteractionModeinteractionMode, Integertimeout, Integer correlationID )

Sends a PerformInteraction RPCRequest to SDL. Responses are captured

through callback on IProxyListener.

Parameters

initPrompt

-Intial prompt spoken to the user at the start of an interaction.

displayText

public void performInteraction(String initPrompt,String displayText,java.util.Vector<java.lang.Integer> interactionChoiceSetIDList,String helpPrompt,String timeoutPrompt,InteractionMode interactionMode,Integer timeout,Integer correlationID) throws SdlException

Page 780: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

-Text to be displayed first.

interactionChoiceSetIDList

-A list of interaction choice set IDs to use with an interaction.

helpPrompt

-Help text that is spoken when a user speaks "help" during theinteraction.

timeoutPrompt

-Timeout text that is spoken when a VR interaction times out.

interactionMode

- The method in which the user is notified and uses the interaction(Manual,VR,Both).

timeout

-Timeout in milliseconds.

correlationID

-A unique ID that correlates each RPCRequest and RPCResponse.

Throws

• SdlException

Page 781: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

performInteraction(java.util.Vector<TTSChunk>initChunks, String displayText,java.util.Vector<java.lang.Integer>interactionChoiceSetIDList,java.util.Vector<TTSChunk>helpChunks,java.util.Vector<TTSChunk>timeoutChunks, InteractionModeinteractionMode, Integertimeout, Integer correlationID )

Sends a PerformInteraction RPCRequest to SDL. Responses are captured

through callback on IProxyListener.

public void performInteraction(java.util.Vector<TTSChunk> initChunks,String displayText,java.util.Vector<java.lang.Integer> interactionChoiceSetIDList,java.util.Vector<TTSChunk> helpChunks,java.util.Vector<TTSChunk> timeoutChunks,InteractionMode interactionMode,Integer timeout,Integer correlationID) throws SdlException

Page 782: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

initChunks

-A list of text/phonemes to speak for the initial prompt in the form ofttsChunks.

displayText

-Text to be displayed first.

interactionChoiceSetIDList

-A list of interaction choice set IDs to use with an interaction.

helpChunks

-A list of text/phonemes to speak for the help text that is spoken whena user speaks "help" during the interaction.

timeoutChunks

A list of text/phonems to speak for the timeout text that is spokenwhen a VR interaction times out.

interactionMode

- The method in which the user is notified and uses the interaction(Manual,VR,Both).

timeout

Page 783: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

-Timeout in milliseconds.

correlationID

-A unique ID that correlates each RPCRequest and RPCResponse.

Throws

• SdlException

Page 784: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

registerAppInterfacePrivate(SdlMsgVersion sdlMsgVersion,String appName,java.util.Vector<TTSChunk>ttsName, StringngnMediaScreenAppName,java.util.Vector<java.lang.String>vrSynonyms, BooleanisMediaApp, LanguagelanguageDesired, LanguagehmiDisplayLanguageDesired,java.util.Vector<AppHMIType>appType, String appID,TemplateColorSchemedayColorScheme,TemplateColorSchemenightColorScheme, IntegercorrelationID )

Page 785: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

sdlMsgVersion

appName

ttsName

ngnMediaScreenAppName

vrSynonyms

isMediaApp

protected void registerAppInterfacePrivate(SdlMsgVersion sdlMsgVersion,String appName,java.util.Vector<TTSChunk> ttsName,String ngnMediaScreenAppName,java.util.Vector<java.lang.String> vrSynonyms,Boolean isMediaApp,Language languageDesired,Language hmiDisplayLanguageDesired,java.util.Vector<AppHMIType> appType,String appID,TemplateColorScheme dayColorScheme,TemplateColorScheme nightColorScheme,Integer correlationID) throws SdlException

Page 786: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

languageDesired

hmiDisplayLanguageDesired

appType

appID

dayColorScheme

nightColorScheme

correlationID

Throws

• SdlException

Page 787: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

setGlobalProperties( StringhelpPrompt, StringtimeoutPrompt, StringvrHelpTitle,java.util.Vector<VrHelpItem>vrHelp, Integer correlationID )

Sends a SetGlobalProperties RPCRequest to SDL. Responses are captured

through callback on IProxyListener.

Parameters

helpPrompt

that will be used for the VR screen

timeoutPrompt

string to be displayed after timeout

public void setGlobalProperties(String helpPrompt,String timeoutPrompt,String vrHelpTitle,java.util.Vector<VrHelpItem> vrHelp,Integer correlationID) throws SdlException

Page 788: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

vrHelpTitle

string that may be displayed on VR prompt dialog

vrHelp

a list of VR synonyms that may be displayed to user

correlationID

to be attached to the request

Throws

• SdlException

Page 789: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

setGlobalProperties(java.util.Vector<TTSChunk>helpChunks,java.util.Vector<TTSChunk>timeoutChunks, StringvrHelpTitle,java.util.Vector<VrHelpItem>vrHelp, Integer correlationID )

Sends a SetGlobalProperties RPCRequest to SDL. Responses are captured

through callback on IProxyListener.

Parameters

helpChunks

tts chunks that should be used when prompting the user

timeoutChunks

public void setGlobalProperties(java.util.Vector<TTSChunk> helpChunks,java.util.Vector<TTSChunk> timeoutChunks,String vrHelpTitle,java.util.Vector<VrHelpItem> vrHelp,Integer correlationID) throws SdlException

Page 790: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

tts chunks that will be used when a timeout occurs

vrHelpTitle

string that may be displayed on VR prompt dialog

vrHelp

a list of VR synonyms that may be displayed to user

correlationID

ID to be attached to the RPCRequest that correlates the RPCResponse

Throws

• SdlException

setGlobalProperties( StringhelpPrompt, StringtimeoutPrompt, IntegercorrelationID )

Sends a SetGlobalProperties RPCRequest to SDL. Responses are captured

through callback on IProxyListener.

public void setGlobalProperties(String helpPrompt,String timeoutPrompt,Integer correlationID) throws SdlException

Page 791: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

helpPrompt

that will be used for the VR screen

timeoutPrompt

string to be displayed after timeout

correlationID

ID to be attached to the RPCRequest that correlates the RPCResponse

Throws

• SdlException

Page 792: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

setGlobalProperties(java.util.Vector<TTSChunk>helpChunks,java.util.Vector<TTSChunk>timeoutChunks, IntegercorrelationID )

Sends a SetGlobalProperties RPCRequest to SDL. Responses are captured

through callback on IProxyListener.

Parameters

helpChunks

tts chunks that should be used when prompting the user

timeoutChunks

tts chunks that will be used when a timeout occurs

public void setGlobalProperties(java.util.Vector<TTSChunk> helpChunks,java.util.Vector<TTSChunk> timeoutChunks,Integer correlationID) throws SdlException

Page 793: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

correlationID

ID to be attached to the RPCRequest that correlates the RPCResponse

Throws

• SdlException

resetGlobalProperties(java.util.Vector<GlobalProperty>properties, Integer correlationID)

Parameters

properties

correlationID

public void resetGlobalProperties(java.util.Vector<GlobalProperty> properties,Integer correlationID) throws SdlException

Page 794: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Throws

• SdlException

setMediaClockTimer( Integerhours, Integer minutes, Integerseconds, UpdateModeupdateMode, IntegercorrelationID )

Sends a SetMediaClockTimer RPCRequest to SDL. Responses are captured

through callback on IProxyListener.

Parameters

hours

integer for hours

public void setMediaClockTimer(Integer hours,Integer minutes,Integer seconds,UpdateMode updateMode,Integer correlationID) throws SdlException

Page 795: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

minutes

integer for minutes

seconds

integer for seconds

updateMode

mode in which the media clock timer should be updated

correlationID

ID to be attached to the RPCRequest that correlates the RPCResponse

Throws

• SdlException

pauseMediaClockTimer( IntegercorrelationID )

Pauses the media clock. Responses are captured through callback on

IProxyListener.

public void pauseMediaClockTimer(Integer correlationID) throws SdlException

Page 796: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

correlationID

ID to be attached to the RPCRequest that correlates the RPCResponse

Throws

• SdlException

resumeMediaClockTimer(Integer correlationID )

Resumes the media clock. Responses are captured through callback on

IProxyListener.

Parameters

correlationID

public void resumeMediaClockTimer(Integer correlationID) throws SdlException

Page 797: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

ID to be attached to the RPCRequest that correlates the RPCResponse

Throws

• SdlException

clearMediaClockTimer( IntegercorrelationID )

Clears the media clock. Responses are captured through callback on

IProxyListener.

Parameters

correlationID

public void clearMediaClockTimer(Integer correlationID) throws SdlException

Page 798: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

ID to be attached to the RPCRequest that correlates the RPCResponse

Throws

• SdlException

show( String mainText1, StringmainText2, String mainText3,String mainText4, StringstatusBar, String mediaClock,String mediaTrack, Imagegraphic,java.util.Vector<SoftButton>softButtons,java.util.Vector<java.lang.String>customPresets, TextAlignmentalignment, Integer correlationID )

Sends a Show RPCRequest to SDL. Responses are captured through callback on

IProxyListener.

Page 799: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

mainText1

text displayed in a single or upper display line.

mainText2

text displayed on the second display line.

mainText3

text displayed on the second "page" first display line.

mainText4

text displayed on the second "page" second display line.

statusBar

text is placed in the status bar area (Only valid for NAVIGATION apps)

public void show(String mainText1,String mainText2,String mainText3,String mainText4,String statusBar,String mediaClock,String mediaTrack,Image graphic,java.util.Vector<SoftButton> softButtons,java.util.Vector<java.lang.String> customPresets,TextAlignment alignment,Integer correlationID) throws SdlException

Page 800: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

mediaClock

text value for MediaClock field.

mediaTrack

text displayed in the track field.

graphic

image struct determining whether static or dynamic image to display inapp.

softButtons

app defined SoftButtons.

customPresets

app labeled on-screen presets.

alignment

specifies how mainText1 and mainText2s texts should be aligned ondisplay.

correlationID

Page 801: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

ID to be attached to the RPCRequest that correlates the RPCResponse -A unique ID that correlates each RPCRequest and RPCResponse.

Throws

• SdlException

show( String mainText1, StringmainText2, String mainText3,String mainText4, Image graphic,java.util.Vector<SoftButton>softButtons,java.util.Vector<java.lang.String>customPresets, TextAlignmentalignment, Integer correlationID )

Sends a Show RPCRequest to SDL. Responses are captured through callback on

IProxyListener.

public void show(String mainText1,String mainText2,String mainText3,String mainText4,Image graphic,java.util.Vector<SoftButton> softButtons,java.util.Vector<java.lang.String> customPresets,TextAlignment alignment,Integer correlationID) throws SdlException

Page 802: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

mainText1

-Text displayed in a single or upper display line.

mainText2

-Text displayed on the second display line.

mainText3

-Text displayed on the second "page" first display line.

mainText4

-Text displayed on the second "page" second display line.

graphic

-Image struct determining whether static or dynamic image to displayin app.

softButtons

-App defined SoftButtons.

customPresets

-App labeled on-screen presets.

Page 803: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

alignment

-Specifies how mainText1 and mainText2s texts should be aligned ondisplay.

correlationID

-A unique ID that correlates each RPCRequest and RPCResponse.

Throws

• SdlException

show( String mainText1, StringmainText2, String statusBar,String mediaClock, StringmediaTrack, TextAlignmentalignment, Integer correlationID )

Sends a Show RPCRequest to SDL. Responses are captured through callback on

IProxyListener.

public void show(String mainText1,String mainText2,String statusBar,String mediaClock,String mediaTrack,TextAlignment alignment,Integer correlationID) throws SdlException

Page 804: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

mainText1

text displayed in a single or upper display line.

mainText2

text displayed on the second display line.

statusBar

text is placed in the status bar area (Only valid for NAVIGATION apps)

mediaClock

text value for MediaClock field.

mediaTrack

text displayed in the track field.

alignment

specifies how mainText1 and mainText2s texts should be aligned ondisplay.

correlationID

unique ID that correlates each RPCRequest and RPCResponse.

Page 805: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Throws

• SdlException

show( String mainText1, StringmainText2, TextAlignmentalignment, Integer correlationID )

Sends a Show RPCRequest to SDL. Responses are captured through callback on

IProxyListener.

Parameters

mainText1

-Text displayed in a single or upper display line.

mainText2

-Text displayed on the second display line.

public void show(String mainText1,String mainText2,TextAlignment alignment,Integer correlationID) throws SdlException

Page 806: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

alignment

-Specifies how mainText1 and mainText2s texts should be aligned ondisplay.

correlationID

-A unique ID that correlates each RPCRequest and RPCResponse.

Throws

• SdlException

speak( String ttsText, IntegercorrelationID )

Sends a Speak RPCRequest to SDL. Responses are captured through callback

on IProxyListener.

public void speak(String ttsText,Integer correlationID) throws SdlException

Page 807: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

ttsText

-The text to speech message in the form of a string.

correlationID

-A unique ID that correlates each RPCRequest and RPCResponse.

Throws

• SdlException

speak(java.util.Vector<TTSChunk>ttsChunks, Integer correlationID )

Sends a Speak RPCRequest to SDL. Responses are captured through callback

on IProxyListener.

public void speak(java.util.Vector<TTSChunk> ttsChunks,Integer correlationID) throws SdlException

Page 808: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

ttsChunks

-Text/phonemes to speak in the form of ttsChunks.

correlationID

-A unique ID that correlates each RPCRequest and RPCResponse.

Throws

• SdlException

subscribeButton( ButtonNamebuttonName, IntegercorrelationID )

Sends a SubscribeButton RPCRequest to SDL. Responses are captured through

callback on IProxyListener.

public void subscribeButton(ButtonName buttonName,Integer correlationID) throws SdlException

Page 809: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

buttonName

-Name of the button to subscribe.

correlationID

-A unique ID that correlates each RPCRequest and RPCResponse.

Throws

• SdlException

unregisterAppInterfacePrivate(Integer correlationID )

protected void unregisterAppInterfacePrivate(Integer correlationID) throws SdlException

Page 810: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

correlationID

Throws

• SdlException

unsubscribeButton( ButtonNamebuttonName, IntegercorrelationID )

Sends an UnsubscribeButton RPCRequest to SDL. Responses are captured

through callback on IProxyListener.

public void unsubscribeButton(ButtonName buttonName,Integer correlationID) throws SdlException

Page 811: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

buttonName

-Name of the button to unsubscribe.

correlationID

-A unique ID that correlates each RPCRequest and RPCResponse.

Throws

• SdlException

createChoiceSetChoice( IntegerchoiceID, StringchoiceMenuName,java.util.Vector<java.lang.String>choiceVrCommands )

Creates a choice to be added to a choiceset. Choice has both a voice and a

visual menu component.

Page 812: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

choiceID

-Unique ID used to identify this choice (returned in callback).

choiceMenuName

-Text name displayed for this choice.

choiceVrCommands

-Vector of vrCommands used to select this choice by voice. Mustcontain at least one non-empty element.

public Choice createChoiceSetChoice(Integer choiceID,String choiceMenuName,java.util.Vector<java.lang.String> choiceVrCommands)

Page 813: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

performaudiopassthru( StringinitialPrompt, StringaudioPassThruDisplayText1,StringaudioPassThruDisplayText2,SamplingRate samplingRate,Integer maxDuration,BitsPerSample bitsPerSample,AudioType audioType, BooleanmuteAudio, Integer correlationID)

Starts audio pass thru session. Responses are captured through callback on

IProxyListener.

public void performaudiopassthru(String initialPrompt,String audioPassThruDisplayText1,String audioPassThruDisplayText2,SamplingRate samplingRate,Integer maxDuration,BitsPerSample bitsPerSample,AudioType audioType,Boolean muteAudio,Integer correlationID) throws SdlException

Page 814: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

initialPrompt

-SDL will speak this prompt before opening the audio pass thru session.

audioPassThruDisplayText1

-First line of text displayed during audio capture.

audioPassThruDisplayText2

-Second line of text displayed during audio capture.

samplingRate

-Allowable values of 8 khz or 16 or 22 or 44 khz.

maxDuration

-The maximum duration of audio recording in milliseconds.

bitsPerSample

-Specifies the quality the audio is recorded. Currently 8 bit or 16 bit.

audioType

-Specifies the type of audio data being requested.

Page 815: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

muteAudio

-Defines if the current audio source should be muted during the APTsession.

correlationID

-A unique ID that correlates each RPCRequest and RPCResponse.

Throws

• SdlException

endaudiopassthru( IntegercorrelationID )

Ends audio pass thru session. Responses are captured through callback on

IProxyListener.

public void endaudiopassthru(Integer correlationID) throws SdlException

Page 816: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

correlationID

ID to be attached to the RPCRequest that correlates the RPCResponse

Throws

• SdlException

Page 817: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

subscribevehicledata( booleangps, boolean speed, booleanrpm, boolean fuelLevel, booleanfuelLevel_State, booleaninstantFuelConsumption, booleanexternalTemperature, booleanprndl, boolean tirePressure,boolean odometer, booleanbeltStatus, booleanbodyInformation, booleandeviceStatus, booleandriverBraking, IntegercorrelationID )

Deprecated

Subscribes for specific published data items. The data will be only sent if it has

changed. Responses are captured through callback on IProxyListener.

public void subscribevehicledata(boolean gps,boolean speed,boolean rpm,boolean fuelLevel,boolean fuelLevel_State,boolean instantFuelConsumption,boolean externalTemperature,boolean prndl,boolean tirePressure,boolean odometer,boolean beltStatus,boolean bodyInformation,boolean deviceStatus,boolean driverBraking,Integer correlationID) throws SdlException

Page 818: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

gps

-Subscribes to GPS data.

speed

-Subscribes to vehicle speed data in kilometers per hour.

rpm

-Subscribes to number of revolutions per minute of the engine.

fuelLevel

-Subscribes to fuel level in the tank (percentage).

fuelLevel_State

-Subscribes to fuel level state.

instantFuelConsumption

-Subscribes to instantaneous fuel consumption in microlitres.

externalTemperature

-Subscribes to the external temperature in degrees celsius.

Page 819: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

prndl

-Subscribes to PRNDL data that houses the selected gear.

tirePressure

-Subscribes to the TireStatus data containing status and pressure oftires.

odometer

-Subscribes to Odometer data in km.

beltStatus

-Subscribes to status of the seat belts.

bodyInformation

-Subscribes to body information including power modes.

deviceStatus

-Subscribes to device status including signal and battery strength.

driverBraking

-Subscribes to the status of the brake pedal.

correlationID

-A unique ID that correlates each RPCRequest and RPCResponse.

Page 820: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Throws

• SdlException

subscribevehicledata( booleangps, boolean speed, booleanrpm, boolean fuelLevel, booleanfuelLevel_State, booleaninstantFuelConsumption, booleanexternalTemperature, booleanprndl, boolean tirePressure,boolean engineOilLife, booleanodometer, boolean beltStatus,boolean bodyInformation,boolean deviceStatus, booleandriverBraking, IntegercorrelationID )

Subscribes for specific published data items. The data will be only sent if it has

changed. Responses are captured through callback on IProxyListener.

Page 821: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

gps

-Subscribes to GPS data.

speed

-Subscribes to vehicle speed data in kilometers per hour.

rpm

-Subscribes to number of revolutions per minute of the engine.

fuelLevel

-Subscribes to fuel level in the tank (percentage).

fuelLevel_State

-Subscribes to fuel level state.

public void subscribevehicledata(boolean gps,boolean speed,boolean rpm,boolean fuelLevel,boolean fuelLevel_State,boolean instantFuelConsumption,boolean externalTemperature,boolean prndl,boolean tirePressure,boolean engineOilLife,boolean odometer,boolean beltStatus,boolean bodyInformation,boolean deviceStatus,boolean driverBraking,Integer correlationID) throws SdlException

Page 822: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

instantFuelConsumption

-Subscribes to instantaneous fuel consumption in microlitres.

externalTemperature

-Subscribes to the external temperature in degrees celsius.

prndl

-Subscribes to PRNDL data that houses the selected gear.

tirePressure

-Subscribes to the TireStatus data containing status and pressure oftires.

engineOilLife

-Subscribes to Engine Oil Life data.

odometer

-Subscribes to Odometer data in km.

beltStatus

-Subscribes to status of the seat belts.

bodyInformation

-Subscribes to body information including power modes.

Page 823: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

deviceStatus

-Subscribes to device status including signal and battery strength.

driverBraking

-Subscribes to the status of the brake pedal.

correlationID

-A unique ID that correlates each RPCRequest and RPCResponse.

Throws

• SdlException

Page 824: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

unsubscribevehicledata(boolean gps, boolean speed,boolean rpm, boolean fuelLevel,boolean fuelLevel_State, booleaninstantFuelConsumption, booleanexternalTemperature, booleanprndl, boolean tirePressure,boolean odometer, booleanbeltStatus, booleanbodyInformation, booleandeviceStatus, booleandriverBraking, IntegercorrelationID )

Deprecated

Unsubscribes for specific published data items. Responses are captured

through callback on IProxyListener.

public void unsubscribevehicledata(boolean gps,boolean speed,boolean rpm,boolean fuelLevel,boolean fuelLevel_State,boolean instantFuelConsumption,boolean externalTemperature,boolean prndl,boolean tirePressure,boolean odometer,boolean beltStatus,boolean bodyInformation,boolean deviceStatus,boolean driverBraking,Integer correlationID) throws SdlException

Page 825: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

gps

-Unsubscribes to GPS data.

speed

-Unsubscribes to vehicle speed data in kilometers per hour.

rpm

-Unsubscribes to number of revolutions per minute of the engine.

fuelLevel

-Unsubscribes to fuel level in the tank (percentage).

fuelLevel_State

-Unsubscribes to fuel level state.

instantFuelConsumption

-Unsubscribes to instantaneous fuel consumption in microlitres.

externalTemperature

-Unsubscribes to the external temperature in degrees celsius.

Page 826: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

prndl

-Unsubscribes to PRNDL data that houses the selected gear.

tirePressure

-Unsubscribes to the TireStatus data containing status and pressure oftires.

odometer

-Unsubscribes to Odometer data in km.

beltStatus

-Unsubscribes to status of the seat belts.

bodyInformation

-Unsubscribes to body information including power modes.

deviceStatus

-Unsubscribes to device status including signal and battery strength.

driverBraking

-Unsubscribes to the status of the brake pedal.

correlationID

-A unique ID that correlates each RPCRequest and RPCResponse.

Page 827: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Throws

• SdlException

unsubscribevehicledata(boolean gps, boolean speed,boolean rpm, boolean fuelLevel,boolean fuelLevel_State, booleaninstantFuelConsumption, booleanexternalTemperature, booleanprndl, boolean tirePressure,boolean engineOilLife, booleanodometer, boolean beltStatus,boolean bodyInformation,boolean deviceStatus, booleandriverBraking, IntegercorrelationID )

Unsubscribes for specific published data items. Responses are captured

through callback on IProxyListener.

Page 828: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

gps

-Unsubscribes to GPS data.

speed

-Unsubscribes to vehicle speed data in kilometers per hour.

rpm

-Unsubscribes to number of revolutions per minute of the engine.

fuelLevel

-Unsubscribes to fuel level in the tank (percentage).

fuelLevel_State

-Unsubscribes to fuel level state.

public void unsubscribevehicledata(boolean gps,boolean speed,boolean rpm,boolean fuelLevel,boolean fuelLevel_State,boolean instantFuelConsumption,boolean externalTemperature,boolean prndl,boolean tirePressure,boolean engineOilLife,boolean odometer,boolean beltStatus,boolean bodyInformation,boolean deviceStatus,boolean driverBraking,Integer correlationID) throws SdlException

Page 829: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

instantFuelConsumption

-Unsubscribes to instantaneous fuel consumption in microlitres.

externalTemperature

-Unsubscribes to the external temperature in degrees celsius.

prndl

-Unsubscribes to PRNDL data that houses the selected gear.

tirePressure

-Unsubscribes to the TireStatus data containing status and pressure oftires.

engineOilLife

-Unsubscribes to Engine Oil Life data.

odometer

-Unsubscribes to Odometer data in km.

beltStatus

-Unsubscribes to status of the seat belts.

bodyInformation

-Unsubscribes to body information including power modes.

Page 830: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

deviceStatus

-Unsubscribes to device status including signal and battery strength.

driverBraking

-Unsubscribes to the status of the brake pedal.

correlationID

-A unique ID that correlates each RPCRequest and RPCResponse.

Throws

• SdlException

Page 831: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

getvehicledata( boolean gps,boolean speed, boolean rpm,boolean fuelLevel, booleanfuelLevel_State, booleaninstantFuelConsumption, booleanexternalTemperature, booleanvin, boolean prndl, booleantirePressure, boolean odometer,boolean beltStatus, booleanbodyInformation, booleandeviceStatus, booleandriverBraking, IntegercorrelationID )

Deprecated

Performs a Non periodic vehicle data read request. Responses are captured

through callback on IProxyListener.

public void getvehicledata(boolean gps,boolean speed,boolean rpm,boolean fuelLevel,boolean fuelLevel_State,boolean instantFuelConsumption,boolean externalTemperature,boolean vin,boolean prndl,boolean tirePressure,boolean odometer,boolean beltStatus,boolean bodyInformation,boolean deviceStatus,boolean driverBraking,Integer correlationID) throws SdlException

Page 832: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

gps

-Performs an ad-hoc request for GPS data.

speed

-Performs an ad-hoc request for vehicle speed data in kilometers perhour.

rpm

-Performs an ad-hoc request for number of revolutions per minute ofthe engine.

fuelLevel

-Performs an ad-hoc request for fuel level in the tank (percentage).

fuelLevel_State

-Performs an ad-hoc request for fuel level state.

instantFuelConsumption

-Performs an ad-hoc request for instantaneous fuel consumption inmicrolitres.

externalTemperature

Page 833: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

-Performs an ad-hoc request for the external temperature in degreescelsius.

vin

-Performs an ad-hoc request for the Vehicle identification number

prndl

-Performs an ad-hoc request for PRNDL data that houses the selectedgear.

tirePressure

-Performs an ad-hoc request for the TireStatus data containing statusand pressure of tires.

odometer

-Performs an ad-hoc request for Odometer data in km.

beltStatus

-Performs an ad-hoc request for status of the seat belts.

bodyInformation

-Performs an ad-hoc request for body information including powermodes.

deviceStatus

-Performs an ad-hoc request for device status including signal andbattery strength.

Page 834: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

driverBraking

-Performs an ad-hoc request for the status of the brake pedal.

correlationID

-A unique ID that correlates each RPCRequest and RPCResponse.

Throws

• SdlException

Page 835: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

getvehicledata( boolean gps,boolean speed, boolean rpm,boolean fuelLevel, booleanfuelLevel_State, booleaninstantFuelConsumption, booleanexternalTemperature, booleanvin, boolean prndl, booleantirePressure, booleanengineOilLife, boolean odometer,boolean beltStatus, booleanbodyInformation, booleandeviceStatus, booleandriverBraking, IntegercorrelationID )

Performs a Non periodic vehicle data read request. Responses are captured

through callback on IProxyListener.

public void getvehicledata(boolean gps,boolean speed,boolean rpm,boolean fuelLevel,boolean fuelLevel_State,boolean instantFuelConsumption,boolean externalTemperature,boolean vin,boolean prndl,boolean tirePressure,boolean engineOilLife,boolean odometer,boolean beltStatus,boolean bodyInformation,boolean deviceStatus,boolean driverBraking,Integer correlationID) throws SdlException

Page 836: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

gps

-Performs an ad-hoc request for GPS data.

speed

-Performs an ad-hoc request for vehicle speed data in kilometers perhour.

rpm

-Performs an ad-hoc request for number of revolutions per minute ofthe engine.

fuelLevel

-Performs an ad-hoc request for fuel level in the tank (percentage).

fuelLevel_State

-Performs an ad-hoc request for fuel level state.

instantFuelConsumption

-Performs an ad-hoc request for instantaneous fuel consumption inmicrolitres.

externalTemperature

Page 837: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

-Performs an ad-hoc request for the external temperature in degreescelsius.

vin

-Performs an ad-hoc request for the Vehicle identification number

prndl

-Performs an ad-hoc request for PRNDL data that houses the selectedgear.

tirePressure

-Performs an ad-hoc request for the TireStatus data containing statusand pressure of tires.

engineOilLife

-Performs an ad-hoc request for Engine Oil Life data.

odometer

-Performs an ad-hoc request for Odometer data in km.

beltStatus

-Performs an ad-hoc request for status of the seat belts.

bodyInformation

-Performs an ad-hoc request for body information including powermodes.

Page 838: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

deviceStatus

-Performs an ad-hoc request for device status including signal andbattery strength.

driverBraking

-Performs an ad-hoc request for the status of the brake pedal.

correlationID

-A unique ID that correlates each RPCRequest and RPCResponse.

Throws

• SdlException

scrollablemessage( StringscrollableMessageBody, Integertimeout,java.util.Vector<SoftButton>softButtons, Integer correlationID)

Creates a full screen overlay containing a large block of formatted text that can

be scrolled with up to 8 SoftButtons defined. Responses are captured through

callback on IProxyListener.

Page 839: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

scrollableMessageBody

-Body of text that can include newlines and tabs.

timeout

-App defined timeout. Indicates how long of a timeout from the lastaction.

softButtons

-App defined SoftButtons.

correlationID

-A unique ID that correlates each RPCRequest and RPCResponse.

Throws

• SdlException

public void scrollablemessage(String scrollableMessageBody,Integer timeout,java.util.Vector<SoftButton> softButtons,Integer correlationID) throws SdlException

Page 840: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

slider( Integer numTicks, Integerposition, String sliderHeader,java.util.Vector<java.lang.String>sliderFooter, Integer timeout,Integer correlationID )

Creates a full screen or pop-up overlay (depending on platform) with a single

user controlled slider. Responses are captured through callback on

IProxyListener.

Parameters

numTicks

-Number of selectable items on a horizontal axis.

position

-Initial position of slider control (cannot exceed numTicks).

sliderHeader

public void slider(Integer numTicks,Integer position,String sliderHeader,java.util.Vector<java.lang.String> sliderFooter,Integer timeout,Integer correlationID) throws SdlException

Page 841: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

-Text header to display.

sliderFooter

- Text footer to display (meant to display min/max thresholddescriptors).

timeout

-App defined timeout. Indicates how long of a timeout from the lastaction.

correlationID

-A unique ID that correlates each RPCRequest and RPCResponse.

Throws

• SdlException

changeregistration( Languagelanguage, LanguagehmiDisplayLanguage, IntegercorrelationID )

Responses are captured through callback on IProxyListener.

Page 842: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

language

requested SDL voice engine (VR+TTS) language registration

hmiDisplayLanguage

request display language registration.

correlationID

ID to be attached to the RPCRequest that correlates the RPCResponse

Throws

• SdlException

public void changeregistration(Language language,Language hmiDisplayLanguage,Integer correlationID) throws SdlException

Page 843: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

putFileStream( InputStream is,String sdlFileName, IntegeriOffset, Integer iLength )

Deprecated

Used to push a binary stream of file data onto the module from a mobile

device. Responses are captured through callback on IProxyListener.

Parameters

is

- The input stream of byte data that putFileStream will read from

sdlFileName

- The file reference name used by the putFile RPC.

iOffset

- The data offset in bytes, a value of zero is used to indicate datastarting from the beginging of the file. A value greater than zero is usedfor resuming partial data chunks.

public void putFileStream(InputStream is,String sdlFileName,Integer iOffset,Integer iLength) throws SdlException

Page 844: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

iLength

- The total length of the file being sent.

Throws

• SdlException

putFileStream( InputStreaminputStream, String fileName,Long offset, Long length )

Used to push a binary stream of file data onto the module from a mobile

device. Responses are captured through callback on IProxyListener.

Parameters

inputStream

The input stream of byte data that will be read from.

public void putFileStream(InputStream inputStream,String fileName,Long offset,Long length) throws SdlException

Page 845: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

fileName

The SDL file reference name used by the RPC.

offset

The data offset in bytes. A value of zero is used to indicate datastarting from the beginning of the file and a value greater than zero isused for resuming partial data chunks.

length

The total length of the file being sent.

Throws

• SdlException

putFileStream( StringsdlFileName, Integer iOffset,Integer iLength )

Deprecated

Used to push a binary stream of file data onto the module from a mobile

device. Responses are captured through callback on IProxyListener.

public java.io.OutputStream putFileStream(String sdlFileName,Integer iOffset,Integer iLength) throws SdlException

Page 846: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

sdlFileName

- The file reference name used by the putFile RPC.

iOffset

- The data offset in bytes, a value of zero is used to indicate datastarting from the beginging of a file. A value greater than zero is usedfor resuming partial data chunks.

iLength

- The total length of the file being sent.

Throws

• SdlException

putFileStream( String fileName,Long offset, Long length )

Used to push a binary stream of file data onto the module from a mobile

device. Responses are captured through callback on IProxyListener.

Page 847: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

fileName

The SDL file reference name used by the RPC.

offset

The data offset in bytes. A value of zero is used to indicate datastarting from the beginning of the file and a value greater than zero isused for resuming partial data chunks.

length

The total length of the file being sent.

Throws

• SdlException

public java.io.OutputStream putFileStream(String fileName,Long offset,Long length) throws SdlException

Page 848: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

putFileStream( InputStream is,String sdlFileName, IntegeriOffset, Integer iLength, FileTypefileType, Boolean bPersistentFile,Boolean bSystemFile )

Deprecated

Used to push a binary stream of file data onto the module from a mobile

device. Responses are captured through callback on IProxyListener.

Parameters

is

- The input stream of byte data that PutFileStream will read from

sdlFileName

- The file reference name used by the putFile RPC.

iOffset

public void putFileStream(InputStream is,String sdlFileName,Integer iOffset,Integer iLength,FileType fileType,Boolean bPersistentFile,Boolean bSystemFile) throws SdlException

Page 849: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

- The data offset in bytes, a value of zero is used to indicate datastarting from the beginging of the file. A value greater than zero is usedfor resuming partial data chunks.

iLength

- The total length of the file being sent.

fileType

- The selected file type -- see the FileType enumeration for details

bPersistentFile

- Indicates if the file is meant to persist between sessions / ignitioncycles.

bSystemFile

- Indicates if the file is meant to be passed thru core to elsewhere onthe system.

Throws

• SdlException

Page 850: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

putFileStream( InputStreaminputStream, String fileName,Long offset, Long length, FileTypefileType, Boolean isPersistentFile,Boolean isSystemFile,OnPutFileUpdateListener cb )

Used to push a binary stream of file data onto the module from a mobile

device. Responses are captured through callback on IProxyListener.

Parameters

inputStream

The input stream of byte data that will be read from.

fileName

The SDL file reference name used by the RPC.

public void putFileStream(InputStream inputStream,String fileName,Long offset,Long length,FileType fileType,Boolean isPersistentFile,Boolean isSystemFile,OnPutFileUpdateListener cb) throws SdlException

Page 851: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

offset

The data offset in bytes. A value of zero is used to indicate datastarting from the beginning of the file and a value greater than zero isused for resuming partial data chunks.

length

The total length of the file being sent.

fileType

The selected file type. See the {@link FileType} enum for details.

isPersistentFile

Indicates if the file is meant to persist between sessions / ignitioncycles.

isSystemFile

Indicates if the file is meant to be passed through core to elsewhere inthe system.

cb

Throws

• SdlException

Page 852: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

putFileStream( StringsdlFileName, Integer iOffset,Integer iLength, FileType fileType,Boolean bPersistentFile, BooleanbSystemFile )

Deprecated

Used to push a binary stream of file data onto the module from a mobile

device. Responses are captured through callback on IProxyListener.

Parameters

sdlFileName

- The file reference name used by the putFile RPC.

iOffset

- The data offset in bytes, a value of zero is used to indicate datastarting from the beginging of a file. A value greater than zero is usedfor resuming partial data chunks.

public java.io.OutputStream putFileStream(String sdlFileName,Integer iOffset,Integer iLength,FileType fileType,Boolean bPersistentFile,Boolean bSystemFile) throws SdlException

Page 853: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

iLength

- The total length of the file being sent.

fileType

- The selected file type -- see the FileType enumeration for details

bPersistentFile

- Indicates if the file is meant to persist between sessions / ignitioncycles.

bSystemFile

- Indicates if the file is meant to be passed thru core to elsewhere onthe system.

Throws

• SdlException

Page 854: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

putFileStream( String fileName,Long offset, Long length, FileTypefileType, Boolean isPersistentFile,Boolean isSystemFile,OnPutFileUpdateListener cb )

Used to push a binary stream of file data onto the module from a mobile

device. Responses are captured through callback on IProxyListener.

Parameters

fileName

The SDL file reference name used by the RPC.

offset

The data offset in bytes. A value of zero is used to indicate datastarting from the beginning of the file and a value greater than zero isused for resuming partial data chunks.

public java.io.OutputStream putFileStream(String fileName,Long offset,Long length,FileType fileType,Boolean isPersistentFile,Boolean isSystemFile,OnPutFileUpdateListener cb) throws SdlException

Page 855: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

length

The total length of the file being sent.

fileType

The selected file type. See the {@link FileType} enum for details.

isPersistentFile

Indicates if the file is meant to persist between sessions / ignitioncycles.

isSystemFile

Indicates if the file is meant to be passed through core to elsewhere inthe system.

cb

Throws

• SdlException

Page 856: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

putFileStream( String sPath,String sdlFileName, IntegeriOffset, FileType fileType, BooleanbPersistentFile, BooleanbSystemFile, IntegeriCorrelationID )

Deprecated

Used to push a stream of putfile RPC's containing binary data from a mobile

device to the module. Responses are captured through callback on

IProxyListener.

Parameters

sPath

- The physical file path on the mobile device.

sdlFileName

- The file reference name used by the putFile RPC.

public com.smartdevicelink.proxy.RPCStreamController putFileStream(String sPath,String sdlFileName,Integer iOffset,FileType fileType,Boolean bPersistentFile,Boolean bSystemFile,Integer iCorrelationID) throws SdlException

Page 857: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

iOffset

- The data offset in bytes, a value of zero is used to indicate datastarting from the beginging of a file. A value greater than zero is usedfor resuming partial data chunks.

fileType

- The selected file type -- see the FileType enumeration for details

bPersistentFile

- Indicates if the file is meant to persist between sessions / ignitioncycles.

bSystemFile

- Indicates if the file is meant to be passed thru core to elsewhere onthe system.

iCorrelationID

- A unique ID that correlates each RPCRequest and RPCResponse.

Throws

• SdlException

Page 858: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

putFileStream( String path,String fileName, Long offset,FileType fileType, BooleanisPersistentFile, BooleanisSystemFile, BooleanisPayloadProtected, IntegercorrelationId,OnPutFileUpdateListener cb )

Used to push a binary stream of file data onto the module from a mobile

device. Responses are captured through callback on IProxyListener.

Parameters

path

The physical file path on the mobile device.

fileName

public com.smartdevicelink.proxy.RPCStreamController putFileStream(String path,String fileName,Long offset,FileType fileType,Boolean isPersistentFile,Boolean isSystemFile,Boolean isPayloadProtected,Integer correlationId,OnPutFileUpdateListener cb) throws SdlException

Page 859: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

The SDL file reference name used by the RPC.

offset

The data offset in bytes. A value of zero is used to indicate datastarting from the beginning of the file and a value greater than zero isused for resuming partial data chunks.

fileType

The selected file type. See the {@link FileType} enum for details.

isPersistentFile

Indicates if the file is meant to persist between sessions / ignitioncycles.

isSystemFile

Indicates if the file is meant to be passed through core to elsewhere inthe system.

isPayloadProtected

correlationId

A unique id that correlates each RPCRequest and RPCResponse.

cb

Page 860: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Throws

• SdlException

putFileStream( InputStream is,String sdlFileName, IntegeriOffset, Integer iLength, FileTypefileType, Boolean bPersistentFile,Boolean bSystemFile, IntegeriCorrelationID )

Deprecated

Used to push a stream of putfile RPC's containing binary data from a mobile

device to the module. Responses are captured through callback on

IProxyListener.

public com.smartdevicelink.proxy.RPCStreamController putFileStream(InputStream is,String sdlFileName,Integer iOffset,Integer iLength,FileType fileType,Boolean bPersistentFile,Boolean bSystemFile,Integer iCorrelationID) throws SdlException

Page 861: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

is

- The input stream of byte data that putFileStream will read from.

sdlFileName

- The file reference name used by the putFile RPC.

iOffset

- The data offset in bytes, a value of zero is used to indicate datastarting from the beginging of a file. A value greater than zero is usedfor resuming partial data chunks.

iLength

fileType

- The selected file type -- see the FileType enumeration for details

bPersistentFile

- Indicates if the file is meant to persist between sessions / ignitioncycles.

bSystemFile

- Indicates if the file is meant to be passed thru core to elsewhere onthe system.

Page 862: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

iCorrelationID

- A unique ID that correlates each RPCRequest and RPCResponse.

Throws

• SdlException

putFileStream( InputStreaminputStream, String fileName,Long offset, Long length, FileTypefileType, Boolean isPersistentFile,Boolean isSystemFile, BooleanisPayloadProtected, IntegercorrelationId )

Used to push a binary stream of file data onto the module from a mobile

device. Responses are captured through callback on IProxyListener.

public com.smartdevicelink.proxy.RPCStreamController putFileStream(InputStream inputStream,String fileName,Long offset,Long length,FileType fileType,Boolean isPersistentFile,Boolean isSystemFile,Boolean isPayloadProtected,Integer correlationId) throws SdlException

Page 863: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

inputStream

The input stream of byte data that will be read from.

fileName

The SDL file reference name used by the RPC.

offset

The data offset in bytes. A value of zero is used to indicate datastarting from the beginning of the file and a value greater than zero isused for resuming partial data chunks.

length

The total length of the file being sent.

fileType

The selected file type. See the {@link FileType} enum for details.

isPersistentFile

Indicates if the file is meant to persist between sessions / ignitioncycles.

isSystemFile

Page 864: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Indicates if the file is meant to be passed through core to elsewhere inthe system.

isPayloadProtected

correlationId

A unique id that correlates each RPCRequest and RPCResponse.

Throws

• SdlException

endPutFileStream()

Used to end an existing putFileStream that was previously initiated with any

putFileStream method.

public void endPutFileStream()

Page 865: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

putfile( String sdlFileName,FileType fileType, BooleanpersistentFile, byte[] fileData,Integer correlationID )

Used to push a binary data onto the SDL module from a mobile device, such as

icons and album art. Not supported on first generation SDL vehicles. Responses

are captured through callback on IProxyListener.

Parameters

sdlFileName

-File reference name.

fileType

-Selected file type.

persistentFile

-Indicates if the file is meant to persist between sessions / ignitioncycles.

public void putfile(String sdlFileName,FileType fileType,Boolean persistentFile,byte[] fileData,Integer correlationID) throws SdlException

Page 866: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

fileData

byte array of data of the file that is to be sent

correlationID

-A unique ID that correlates each RPCRequest and RPCResponse.

Throws

• SdlException

deletefile( String sdlFileName,Integer correlationID )

Used to delete a file resident on the SDL module in the app's local cache. Not

supported on first generation SDL vehicles. Responses are captured through

callback on IProxyListener.

public void deletefile(String sdlFileName,Integer correlationID) throws SdlException

Page 867: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

sdlFileName

-File reference name.

correlationID

-A unique ID that correlates each RPCRequest and RPCResponse.

Throws

• SdlException

listfiles( Integer correlationID )

Requests the current list of resident filenames for the registered app. Not

supported on first generation SDL vehicles. Responses are captured through

callback on IProxyListener.

public void listfiles(Integer correlationID) throws SdlException

Page 868: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

correlationID

-A unique ID that correlates each RPCRequest and RPCResponse.

Throws

• SdlException

setappicon( String sdlFileName,Integer correlationID )

Used to set existing local file on SDL as the app's icon. Not supported on first

generation SDL vehicles. Responses are captured through callback on

IProxyListener.

public void setappicon(String sdlFileName,Integer correlationID) throws SdlException

Page 869: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

sdlFileName

-File reference name.

correlationID

-A unique ID that correlates each RPCRequest and RPCResponse.

Throws

• SdlException

setdisplaylayout( StringdisplayLayout, IntegercorrelationID )

Set an alternate display layout. If not sent, default screen for given platform will

be shown. Responses are captured through callback on IProxyListener.

public void setdisplaylayout(String displayLayout,Integer correlationID) throws SdlException

Page 870: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

displayLayout

-Predefined or dynamically created screen layout.

correlationID

-A unique ID that correlates each RPCRequest and RPCResponse.

Throws

• SdlException

setdisplaylayout( StringdisplayLayout,TemplateColorSchemedayColorScheme,TemplateColorSchemenightColorScheme, IntegercorrelationID )

Set an alternate display layout. If not sent, default screen for given platform will

be shown. Responses are captured through callback on IProxyListener.

Page 871: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

displayLayout

-Predefined or dynamically created screen layout.

dayColorScheme

a TemplateColorScheme object representing the colors that will be usedfor day color scheme

nightColorScheme

a TemplateColorScheme object representing the colors that will be usedfor night color scheme

correlationID

-A unique ID that correlates each RPCRequest and RPCResponse.

Throws

• SdlException

public void setdisplaylayout(String displayLayout,TemplateColorScheme dayColorScheme,TemplateColorScheme nightColorScheme,Integer correlationID) throws SdlException

Page 872: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

getSystemCapabilityManager()

Gets the SystemCapabilityManager.

isCapabilitySupported(SystemCapabilityTypesystemCapabilityType )

Parameters

systemCapabilityType

public SystemCapabilityManager getSystemCapabilityManager()

public boolean isCapabilitySupported(SystemCapabilityType systemCapabilityType)

Page 873: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

getCapability(SystemCapabilityTypesystemCapabilityType,OnSystemCapabilityListenerscListener )

Parameters

systemCapabilityType

scListener

getCapability(SystemCapabilityTypesystemCapabilityType )

public void getCapability(SystemCapabilityType systemCapabilityType,OnSystemCapabilityListener scListener)

Page 874: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

systemCapabilityType

addOnSystemCapabilityListener(SystemCapabilityTypesystemCapabilityType,OnSystemCapabilityListenerlistener )

Add a listener to be called whenever a new capability is retrieved

public java.lang.Object getCapability(SystemCapabilityType systemCapabilityType)

public void addOnSystemCapabilityListener(SystemCapabilityType systemCapabilityType,OnSystemCapabilityListener listener)

Page 875: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

systemCapabilityType

Type of capability desired

listener

callback to execute upon retrieving capability

removeOnSystemCapabilityListener( SystemCapabilityTypesystemCapabilityType,OnSystemCapabilityListenerlistener )

Remove an OnSystemCapabilityListener that was previously added

public boolean removeOnSystemCapabilityListener(SystemCapabilityType systemCapabilityType,OnSystemCapabilityListener listener)

Page 876: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

systemCapabilityType

Type of capability

listener

the listener that should be removed

getCurrentTransportType()

Gets type of transport currently used by this SdlProxy.

Throws

• java.lang.IllegalStateException

public TransportType getCurrentTransportType() throws java.lang.IllegalStateException

Page 877: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

setSdlSecurityClassList(java.util.List<java.lang.Class<?extendscom.smartdevicelink.security.SdlSecurityBase>>list )

Parameters

list

setMinimumProtocolVersion(Version minimumProtocolVersion)

Sets the minimum protocol version that will be permitted to connect. If the

protocol version of the head unit connected is below this version, the app will

disconnect with an EndService protocol message and will not register.

public void setSdlSecurityClassList(java.util.List<java.lang.Class<? extends com.smartdevicelink.security.SdlSecurityBase>> list)

Page 878: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

minimumProtocolVersion

setMinimumRPCVersion( VersionminimumRPCVersion )

The minimum RPC version that will be permitted to connect. If the RPC version

of the head unit connected is below this version, an UnregisterAppInterface will

be sent.

Parameters

minimumRPCVersion

public void setMinimumProtocolVersion(Version minimumProtocolVersion)

public void setMinimumRPCVersion(Version minimumRPCVersion)

Page 879: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

isServiceTypeProtected(SessionType sType )

Parameters

sType

addServiceListener( SessionTypeserviceType, ISdlServiceListenersdlServiceListener )

public boolean isServiceTypeProtected(SessionType sType)

public void addServiceListener(SessionType serviceType,ISdlServiceListener sdlServiceListener)

Page 880: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

serviceType

sdlServiceListener

removeServiceListener(SessionType serviceType,ISdlServiceListenersdlServiceListener )

Parameters

serviceType

public void removeServiceListener(SessionType serviceType,ISdlServiceListener sdlServiceListener)

Page 881: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

sdlServiceListener

getAcceptedVideoParams()

getProxyListener()

getAppName()

getNgnAppName()

public VideoStreamingParameters getAcceptedVideoParams()

public IProxyListenerBase getProxyListener()

public java.lang.String getAppName()

Page 882: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

getAppID()

getDeviceInfo()

getInstanceDT()

public java.lang.String getNgnAppName()

public java.lang.String getAppID()

public DeviceInfo getDeviceInfo()

public long getInstanceDT()

Page 883: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

setConnectionDetails( StringsDetails )

Parameters

sDetails

getConnectionDetails()

setPoliciesURL( String sText )

public void setConnectionDetails(String sDetails)

public java.lang.String getConnectionDetails()

public void setPoliciesURL(String sText)

Page 884: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

sText

getPoliciesURL()

getIconResumed()

Tells developer whether or not their app icon has been resumed on core.

Throws

• SdlException

public java.lang.String getPoliciesURL()

public boolean getIconResumed() throws SdlException

Page 885: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

getRegisterAppInterfaceResponse()

Method to retrieve the RegisterAppInterface Response message that was sent

back from the module. It contains various attributes about the connected

module and can be used to adapt to different module types and their supported

features.

getCurrentHMIStatus()

Get the current OnHMIStatus

getAuthToken()

Retrieves the auth token, if any, that was attached to the StartServiceACK for

the RPC service from the module. For example, this should be used to login to a

user account.

public RegisterAppInterfaceResponse getRegisterAppInterfaceResponse()

public OnHMIStatus getCurrentHMIStatus()

Page 886: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Inherited Methods

From Class Methods

Class SdlProxyBuilder

Hierarchyjava.lang.Object

Package

com.smartdevicelink.proxy

Quick Jump

public java.lang.String getAuthToken()

java.lang.Object

getClass, hashCode, equals, clone,

toString, notify, notifyAll, wait, wait, wait,

finalize

Page 887: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Methods

Inherited Methods

From Class Methods

Class SdlProxyBuilder.Builder

Hierarchyjava.lang.Object

Package

com.smartdevicelink.proxy

java.lang.Object

getClass, hashCode, equals, clone,

toString, notify, notifyAll, wait, wait, wait,

finalize

Page 888: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Quick Jump

Constructors

• Builder( IProxyListenerALM listener, String appId, String appName,Boolean isMediaApp )

• Builder( IProxyListenerALM listener, String appId, String appName,Boolean isMediaApp, Context context )

Methods

• setService(Service val) • setSdlProxyConfigurationResources

(SdlProxyConfigurationResources val) • setTtsName(java.util.Vector<TTSChunk> val) • setShortAppName(String val) • setVrSynonyms(java.util.Vector<java.lang.String> val) • setSdlMessageVersion(SdlMsgVersion val) • setLangDesired(Language val) • setHMILangDesired(Language val) • setVrAppHMITypes(java.util.Vector<AppHMIType> val) • setAutoActivateID(String val) • setCallbackToUIThread(boolean val) • setPreRegister(boolean val) • setAppResumeDataHash(String val) • setTransportType(BaseTransportConfig val) • setSdlSecurity(java.util.List<java.lang.Class<? extends

com.smartdevicelink.security.SdlSecurityBase>> val) • setDayColorScheme(TemplateColorScheme val) • setNightColorScheme(TemplateColorScheme val) • build()

Constructors

Page 889: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Builder( IProxyListenerALMlistener, String appId, StringappName, Boolean isMediaApp )

Parameters

listener

appId

appName

isMediaApp

public Builder(IProxyListenerALM listener,String appId,String appName,Boolean isMediaApp)

Page 890: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Builder( IProxyListenerALMlistener, String appId, StringappName, Boolean isMediaApp,Context context )

Parameters

listener

appId

appName

isMediaApp

context

public Builder(IProxyListenerALM listener,String appId,String appName,Boolean isMediaApp,Context context)

Page 891: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Methods

setService( Service val )

Parameters

val

setSdlProxyConfigurationResources(SdlProxyConfigurationResourcesval )

public com.smartdevicelink.proxy.SdlProxyBuilder.Builder setService(Service val)

public com.smartdevicelink.proxy.SdlProxyBuilder.Builder setSdlProxyConfigurationResources(SdlProxyConfigurationResources val)

Page 892: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

val

setTtsName(java.util.Vector<TTSChunk> val )

Parameters

val

setShortAppName( String val )

public com.smartdevicelink.proxy.SdlProxyBuilder.Builder setTtsName(java.util.Vector<TTSChunk> val)

Page 893: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

val

setVrSynonyms(java.util.Vector<java.lang.String>val )

Parameters

val

public com.smartdevicelink.proxy.SdlProxyBuilder.Builder setShortAppName(String val)

public com.smartdevicelink.proxy.SdlProxyBuilder.Builder setVrSynonyms(java.util.Vector<java.lang.String> val)

Page 894: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

setSdlMessageVersion(SdlMsgVersion val )

Parameters

val

setLangDesired( Language val )

public com.smartdevicelink.proxy.SdlProxyBuilder.Builder setSdlMessageVersion(SdlMsgVersion val)

public com.smartdevicelink.proxy.SdlProxyBuilder.Builder setLangDesired(Language val)

Page 895: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

val

setHMILangDesired( Languageval )

Parameters

val

setVrAppHMITypes(java.util.Vector<AppHMIType>val )

public com.smartdevicelink.proxy.SdlProxyBuilder.Builder setHMILangDesired(Language val)

Page 896: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

val

setAutoActivateID( String val )

Parameters

val

public com.smartdevicelink.proxy.SdlProxyBuilder.Builder setVrAppHMITypes(java.util.Vector<AppHMIType> val)

public com.smartdevicelink.proxy.SdlProxyBuilder.Builder setAutoActivateID(String val)

Page 897: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

setCallbackToUIThread( booleanval )

Parameters

val

setPreRegister( boolean val )

public com.smartdevicelink.proxy.SdlProxyBuilder.Builder setCallbackToUIThread(boolean val)

public com.smartdevicelink.proxy.SdlProxyBuilder.Builder setPreRegister(boolean val)

Page 898: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

val

setAppResumeDataHash( Stringval )

Parameters

val

setTransportType(BaseTransportConfig val )

public com.smartdevicelink.proxy.SdlProxyBuilder.Builder setAppResumeDataHash(String val)

Page 899: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

val

setSdlSecurity(java.util.List<java.lang.Class<?extendscom.smartdevicelink.security.SdlSecurityBase>>val )

public com.smartdevicelink.proxy.SdlProxyBuilder.Builder setTransportType(BaseTransportConfig val)

public com.smartdevicelink.proxy.SdlProxyBuilder.Builder setSdlSecurity(java.util.List<java.lang.Class<? extends com.smartdevicelink.security.SdlSecurityBase>> val)

Page 900: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

val

setDayColorScheme(TemplateColorScheme val )

Parameters

val

setNightColorScheme(TemplateColorScheme val )

public com.smartdevicelink.proxy.SdlProxyBuilder.Builder setDayColorScheme(TemplateColorScheme val)

Page 901: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

val

build()

public com.smartdevicelink.proxy.SdlProxyBuilder.Builder setNightColorScheme(TemplateColorScheme val)

public com.smartdevicelink.proxy.SdlProxyALM build() throws SdlException

Page 902: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Throws

• SdlException

Inherited Methods

From Class Methods

ClassSdlProxyConfigurationResources

Hierarchyjava.lang.Object

Package

com.smartdevicelink.proxy

java.lang.Object

getClass, hashCode, equals, clone,

toString, notify, notifyAll, wait, wait, wait,

finalize

Page 903: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Quick Jump

Constructors

• SdlProxyConfigurationResources()• SdlProxyConfigurationResources( String sdlConfigurationFilePath,

TelephonyManager telephonyManager )

Methods

• setSdlConfigurationFilePath(String sdlConfigurationFilePath) • getSdlConfigurationFilePath() • setTelephonyManager(TelephonyManager telephonyManager) • getTelephonyManager()

Constructors

SdlProxyConfigurationResources()

public SdlProxyConfigurationResources()

Page 904: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

SdlProxyConfigurationResources(String sdlConfigurationFilePath,TelephonyManagertelephonyManager )

Parameters

sdlConfigurationFilePath

telephonyManager

Methods

setSdlConfigurationFilePath(String sdlConfigurationFilePath )

public SdlProxyConfigurationResources(String sdlConfigurationFilePath,TelephonyManager telephonyManager)

Page 905: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

sdlConfigurationFilePath

getSdlConfigurationFilePath()

setTelephonyManager(TelephonyManagertelephonyManager )

public void setSdlConfigurationFilePath(String sdlConfigurationFilePath)

public java.lang.String getSdlConfigurationFilePath()

public void setTelephonyManager(TelephonyManager telephonyManager)

Page 906: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

telephonyManager

getTelephonyManager()

Inherited Methods

From Class Methods

public android.telephony.TelephonyManager getTelephonyManager()

java.lang.Object

getClass, hashCode, equals, clone,

toString, notify, notifyAll, wait, wait, wait,

finalize

Page 907: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Class SdlRemoteDisplay

Hierarchyjava.lang.Object

android.app.Dialog

android.app.Presentation

Package

com.smartdevicelink.streaming.video

Overview

SdlRemoteDisplay is an abstract class that should be extended by developers

to creat their remote displays. All logic for UI events can be stored in their

extension.

NOTE: When the UI changes (buttons appear, layouts change, etc) the

developer should call {@link #invalidate()} to alert any other interfaces that

are listening for those types of events.

Quick Jump

Fields

• w• mainView• handler

Page 908: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

• uiHandler• callback• mStartRefreshTaskCallback

Constructors

• SdlRemoteDisplay( Context context, Display display )

Methods

• onCreate(Bundle savedInstanceState) • startRefreshTask() • stopRefreshTask() • getMainView() • invalidate() • handleMotionEvent(MotionEvent motionEvent) • stop() • dismissPresentation()

Fields

w

protected android.view.Window w

Page 909: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

mainView

handler

uiHandler

protected android.view.View mainView

protected android.os.Handler handler

protected android.os.Handler uiHandler

Page 910: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

callback

mStartRefreshTaskCallback

Constructors

SdlRemoteDisplay( Contextcontext, Display display )

protected com.smartdevicelink.streaming.video.SdlRemoteDisplay.Callback callback

protected java.lang.Runnable mStartRefreshTaskCallback

public SdlRemoteDisplay(Context context,Display display)

Page 911: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

context

display

Methods

onCreate( BundlesavedInstanceState )

Parameters

savedInstanceState

protected void onCreate(Bundle savedInstanceState)

Page 912: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

startRefreshTask()

stopRefreshTask()

getMainView()

invalidate()

protected void startRefreshTask()

protected void stopRefreshTask()

public android.view.View getMainView()

public void invalidate()

Page 913: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

handleMotionEvent(MotionEvent motionEvent )

Parameters

motionEvent

stop()

dismissPresentation()

public void handleMotionEvent(MotionEvent motionEvent)

public void stop()

public void dismissPresentation()

Page 914: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Inherited Methods

Page 915: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

From Class Methods

android.app.Presentation

getDisplay, getResources, onStart,

onStop, show, onDisplayRemoved,

onDisplayChanged

Page 916: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

android.app.Dialog

getContext, getActionBar,

setOwnerActivity, getOwnerActivity,

isShowing, create, show, hide, dismiss,

onCreate, onStart, onStop,

onSaveInstanceState,

onRestoreInstanceState, getWindow,

getCurrentFocus, findViewById,

setContentView, setContentView,

setContentView, addContentView,

setTitle, setTitle, onKeyDown,

onKeyLongPress, onKeyUp,

onKeyMultiple, onBackPressed,

onKeyShortcut, onTouchEvent,

onTrackballEvent, onGenericMotionEvent,

onWindowAttributesChanged,

onContentChanged,

onWindowFocusChanged,

onAttachedToWindow,

onDetachedFromWindow,

dispatchKeyEvent,

dispatchKeyShortcutEvent,

dispatchTouchEvent,

dispatchTrackballEvent,

dispatchGenericMotionEvent,

dispatchPopulateAccessibilityEvent,

onCreatePanelView, onCreatePanelMenu,

onPreparePanel, onMenuOpened,

onMenuItemSelected, onPanelClosed,

onCreateOptionsMenu,

onPrepareOptionsMenu,

onOptionsItemSelected,

onOptionsMenuClosed,

openOptionsMenu, closeOptionsMenu,

invalidateOptionsMenu,

onCreateContextMenu,

registerForContextMenu,

unregisterForContextMenu,

openContextMenu,

onContextItemSelected,

onContextMenuClosed,

onSearchRequested,

onSearchRequested, getSearchEvent,

onWindowStartingActionMode,

onWindowStartingActionMode,

onActionModeStarted,

onActionModeFinished, takeKeyEvents,

requestWindowFeature,

Page 917: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

InterfaceSdlRemoteDisplay.Callback

Package

com.smartdevicelink.streaming.video

Quick Jump

Methods

• onCreated(SdlRemoteDisplay remoteDisplay) • onInvalidated(SdlRemoteDisplay remoteDisplay)

Methods

onCreated( SdlRemoteDisplayremoteDisplay )

java.lang.Object

getClass, hashCode, equals, clone,

toString, notify, notifyAll, wait, wait, wait,

finalize

Page 918: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

remoteDisplay

onInvalidated(SdlRemoteDisplay remoteDisplay)

Parameters

remoteDisplay

public void onCreated(SdlRemoteDisplay remoteDisplay)

public void onInvalidated(SdlRemoteDisplay remoteDisplay)

Page 919: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

ClassSdlRemoteDisplay.Creator

Hierarchyjava.lang.Object

Package

com.smartdevicelink.streaming.video

All Implemented Interfaces

java.util.concurrent.Callable

Quick Jump

Constructors

• Creator( Context context, Display display, SdlRemoteDisplayremoteDisplay, java.lang.Class<? extendscom.smartdevicelink.streaming.video.SdlRemoteDisplay>remoteDisplayClass, SdlRemoteDisplay.Callback callback )

Methods

• call()

Page 920: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Constructors

Creator( Context context, Displaydisplay, SdlRemoteDisplayremoteDisplay,java.lang.Class<? extendscom.smartdevicelink.streaming.video.SdlRemoteDisplay>remoteDisplayClass,SdlRemoteDisplay.Callbackcallback )

Parameters

context

display

public Creator(Context context,Display display,SdlRemoteDisplay remoteDisplay,java.lang.Class<? extends com.smartdevicelink.streaming.video.SdlRemoteDisplay> remoteDisplayClass,SdlRemoteDisplay.Callback callback)

Page 921: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

remoteDisplay

remoteDisplayClass

callback

Methods

call()

Inherited Methods

From Class Methods

public java.lang.Boolean call()

java.lang.Object

getClass, hashCode, equals, clone,

toString, notify, notifyAll, wait, wait, wait,

finalize

Page 922: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Class SdlRouterService

Hierarchyjava.lang.Object

android.content.Context

android.content.ContextWrapper

android.app.Service

Package

com.smartdevicelink.transport

Overview

This class should not be modified by anyone outside of the approved

contributors of the SmartDeviceLink project. This service is a central

point of communication between hardware and the registered clients. It will

multiplex a single transport to provide a connection for a theoretical infinite

amount of SDL sessions.

Quick Jump

Fields

• ROUTER_SERVICE_VERSION_NUMBER• REGISTER_NEWER_SERVER_INSTANCE_ACTION• SDL_NOTIFICATION_FAQS_PAGE• START_SERVICE_ACTION

Page 923: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

• REGISTER_WITH_ROUTER_ACTION• MESSAGE_STATE_CHANGE• MESSAGE_READ• MESSAGE_WRITE• MESSAGE_DEVICE_NAME• MESSAGE_LOG• SDL_DEVICE_STATUS_SHARED_PREFS• registeredApps

Constructors

• SdlRouterService()

Methods

• onBind(Intent intent) • onUnbind(Intent intent) • formatMessage(SdlRouterService.RegisteredApp app,Message

message) • onCreate() • deployNextRouterService() • startUpSequence() • onStartCommand(Intent intent,int flags,int startId) • onDestroy() • resetForegroundTimeOut(long delay) • cancelForegroundTimeOut() • getConnectedDeviceName() Deprecated• shouldServiceRemainOpen(Intent intent) • closeSelf() • onTransportConnected(TransportType type) Deprecated• onTransportConnected(TransportRecord record) • onTransportDisconnected(TransportType type) Deprecated• onTransportDisconnected(TransportRecord record) • onTransportError(TransportType transportType) Deprecated• onTransportError(TransportRecord transport)• onPacketRead(SdlPacket packet) • writeBytesToTransport(Bundle bundle) • sendPacketToRegisteredApp(SdlPacket packet) • bluetoothQuerryAndConnect() • setBluetoothPrefs(int level,String prefLocation) Deprecated• getBluetoothPrefs(String prefLocation) Deprecated• setSDLConnectedStatus(String address,boolean

hasSDLConnected) • isFirstStatusCheck(String address) • hasSDLConnected(String address) • getLocalRouterService(Intent launchIntent,ComponentName

name) Deprecated• getNextTask(TransportType transportType)

Page 924: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Fields

ROUTER_SERVICE_VERSION_NUMBER

Constant Value

9

REGISTER_NEWER_SERVER_INSTANCE_ACTION

Constant Value

"com.sdl.android.newservice"

protected static final int ROUTER_SERVICE_VERSION_NUMBER

public static final java.lang.String REGISTER_NEWER_SERVER_INSTANCE_ACTION

Page 925: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

SDL_NOTIFICATION_FAQS_PAGE

Constant Value

"https://smartdevicelink.com/en/guides/android/frequently-asked-questions/sdl-notifications/"

START_SERVICE_ACTION

Constant Value

"sdl.router.startservice"

public static final java.lang.String SDL_NOTIFICATION_FAQS_PAGE

public static final java.lang.String START_SERVICE_ACTION

Page 926: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

REGISTER_WITH_ROUTER_ACTION

Constant Value

"com.sdl.android.register"

MESSAGE_STATE_CHANGE

Constant Value

1

MESSAGE_READ

public static final java.lang.String REGISTER_WITH_ROUTER_ACTION

public static final int MESSAGE_STATE_CHANGE

public static final int MESSAGE_READ

Page 927: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Constant Value

2

MESSAGE_WRITE

Constant Value

3

MESSAGE_DEVICE_NAME

Constant Value

4

public static final int MESSAGE_WRITE

public static final int MESSAGE_DEVICE_NAME

Page 928: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

MESSAGE_LOG

Constant Value

5

SDL_DEVICE_STATUS_SHARED_PREFS

Constant Value

"sdl.device.status"

public static final int MESSAGE_LOG

protected static final java.lang.String SDL_DEVICE_STATUS_SHARED_PREFS

Page 929: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

registeredApps

public static java.util.HashMap registeredApps

Page 930: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system
Page 931: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Inherited Fields

Page 932: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

From Class Fields

android.app.Service

START_CONTINUATION_MASK,

START_FLAG_REDELIVERY,

START_FLAG_RETRY, START_NOT_STICKY,

START_REDELIVER_INTENT,

START_STICKY,

START_STICKY_COMPATIBILITY

Page 933: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

android.content.Context

ACCESSIBILITY_SERVICE,

ACCOUNT_SERVICE, ACTIVITY_SERVICE,

ALARM_SERVICE, APPWIDGET_SERVICE,

APP_OPS_SERVICE, AUDIO_SERVICE,

BATTERY_SERVICE, BIND_ABOVE_CLIENT,

BIND_ADJUST_WITH_ACTIVITY,

BIND_ALLOW_OOM_MANAGEMENT,

BIND_AUTO_CREATE,

BIND_DEBUG_UNBIND, BIND_IMPORTANT,

BIND_NOT_FOREGROUND,

BIND_WAIVE_PRIORITY,

BLUETOOTH_SERVICE, CAMERA_SERVICE,

CAPTIONING_SERVICE,

CARRIER_CONFIG_SERVICE,

CLIPBOARD_SERVICE,

CONNECTIVITY_SERVICE,

CONSUMER_IR_SERVICE,

CONTEXT_IGNORE_SECURITY,

CONTEXT_INCLUDE_CODE,

CONTEXT_RESTRICTED,

DEVICE_POLICY_SERVICE,

DISPLAY_SERVICE, DOWNLOAD_SERVICE,

DROPBOX_SERVICE,

FINGERPRINT_SERVICE,

INPUT_METHOD_SERVICE,

INPUT_SERVICE,

JOB_SCHEDULER_SERVICE,

KEYGUARD_SERVICE,

LAUNCHER_APPS_SERVICE,

LAYOUT_INFLATER_SERVICE,

LOCATION_SERVICE,

MEDIA_PROJECTION_SERVICE,

MEDIA_ROUTER_SERVICE,

MEDIA_SESSION_SERVICE, MIDI_SERVICE,

MODE_APPEND,

MODE_ENABLE_WRITE_AHEAD_LOGGING,

MODE_MULTI_PROCESS, MODE_PRIVATE,

MODE_WORLD_READABLE,

MODE_WORLD_WRITEABLE,

NETWORK_STATS_SERVICE,

NFC_SERVICE, NOTIFICATION_SERVICE,

NSD_SERVICE, POWER_SERVICE,

PRINT_SERVICE, RESTRICTIONS_SERVICE,

SEARCH_SERVICE, SENSOR_SERVICE,

STORAGE_SERVICE, TELECOM_SERVICE,

TELEPHONY_SERVICE,

TELEPHONY_SUBSCRIPTION_SERVICE,

Page 934: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Constructors

SdlRouterService()

Methods

onBind( Intent intent )

Parameters

intent

public SdlRouterService()

public android.os.IBinder onBind(Intent intent)

Page 935: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

onUnbind( Intent intent )

Parameters

intent

formatMessage(SdlRouterService.RegisteredAppapp, Message message )

Formats the message for the app that is to receive it

public boolean onUnbind(Intent intent)

protected boolean formatMessage(SdlRouterService.RegisteredApp app,Message message)

Page 936: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

app

message

onCreate()

deployNextRouterService()

The method will attempt to start up the next router service in line based on the

sorting criteria of best router service.

public void onCreate()

protected void deployNextRouterService()

Page 937: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

startUpSequence()

onStartCommand( Intent intent,int flags, int startId )

Parameters

intent

flags

startId

public void startUpSequence()

public int onStartCommand(Intent intent,int flags,int startId)

Page 938: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

onDestroy()

resetForegroundTimeOut( longdelay )

Parameters

delay

cancelForegroundTimeOut()

public void onDestroy()

public void resetForegroundTimeOut(long delay)

public void cancelForegroundTimeOut()

Page 939: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

getConnectedDeviceName()

Deprecated

shouldServiceRemainOpen(Intent intent )

1. If the app has SDL shut off, shut down 2. if The app has an Alt Transport

address or was started by one, stay open 3. If Bluetooth is off/NA shut down 4.

Anything else

Parameters

intent

public java.lang.String getConnectedDeviceName()

public boolean shouldServiceRemainOpen(Intent intent)

Page 940: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

closeSelf()

This method is needed so that apps that choose not to implement this as a

service as defined by Android, but rather just a simple class we have to know

how to shut down.

onTransportConnected(TransportType type )

Deprecated

Parameters

type

public void closeSelf()

public void onTransportConnected(TransportType type)

Page 941: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

onTransportConnected(TransportRecord record )

Parameters

record

onTransportDisconnected(TransportType type )

Deprecated

public void onTransportConnected(TransportRecord record)

public void onTransportDisconnected(TransportType type)

Page 942: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

type

onTransportDisconnected(TransportRecord record )

Parameters

record

onTransportError( TransportTypetransportType )

Deprecated

public void onTransportDisconnected(TransportRecord record)

Page 943: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

transportType

onTransportError(TransportRecord transport )

Parameters

transport

public void onTransportError(TransportType transportType)

public void onTransportError(TransportRecord transport)

Page 944: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

onPacketRead( SdlPacket packet)

Parameters

packet

writeBytesToTransport( Bundlebundle )

public void onPacketRead(SdlPacket packet)

public boolean writeBytesToTransport(Bundle bundle)

Page 945: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

bundle

sendPacketToRegisteredApp(SdlPacket packet )

This will send the received packet to the registered service. It will default to the

single registered "foreground" app. This can be overridden to provide more

specific functionality.

Parameters

packet

the packet that is received

public boolean sendPacketToRegisteredApp(SdlPacket packet)

Page 946: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

bluetoothQuerryAndConnect()

This function looks through the phones currently paired bluetooth devices If one

of the devices' names contain "sync", or livio it will attempt to connect the

RFCOMM And start SDL

setBluetoothPrefs( int level,String prefLocation )

Deprecated

Parameters

level

The level of bluetooth connecting method that last worked

public synchronized boolean bluetoothQuerryAndConnect()

public static void setBluetoothPrefs(int level,String prefLocation)

Page 947: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

prefLocation

Where the preference should be stored

getBluetoothPrefs( StringprefLocation )

Deprecated

Parameters

prefLocation

setSDLConnectedStatus( Stringaddress, booleanhasSDLConnected )

Set the connection establishment status of the particular device

public static int getBluetoothPrefs(String prefLocation)

Page 948: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

address

address of the device in quesiton

hasSDLConnected

true if a connection has been established, false if not

isFirstStatusCheck( Stringaddress )

Checks to see if a device address has connected to SDL before.

protected void setSDLConnectedStatus(String address,boolean hasSDLConnected)

protected boolean isFirstStatusCheck(String address)

Page 949: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

address

the mac address of the device in quesiton

hasSDLConnected( Stringaddress )

Checks to see if a device address has connected to SDL before.

Parameters

address

the mac address of the device in quesiton

protected boolean hasSDLConnected(String address)

Page 950: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

getLocalRouterService( IntentlaunchIntent, ComponentNamename )

Deprecated

Parameters

launchIntent

name

getNextTask( TransportTypetransportType )

Method for finding the next, highest priority write task from all connected apps.

protected static com.smartdevicelink.transport.SdlRouterService.LocalRouterService getLocalRouterService(Intent launchIntent,ComponentName name)

Page 951: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

transportType

protected com.smartdevicelink.transport.SdlRouterService.PacketWriteTask getNextTask(TransportType transportType)

Page 952: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system
Page 953: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Inherited Methods

Page 954: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

From Class Methods

android.app.Service

getApplication, onCreate, onStart,

onStartCommand, onDestroy,

onConfigurationChanged, onLowMemory,

onTrimMemory, onBind, onUnbind,

onRebind, onTaskRemoved, stopSelf,

stopSelf, stopSelfResult, startForeground,

stopForeground, dump

Page 955: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

android.content.ContextWrapper

attachBaseContext, getBaseContext,

getAssets, getResources,

getPackageManager,

getContentResolver, getMainLooper,

getApplicationContext, setTheme,

getTheme, getClassLoader,

getPackageName, getApplicationInfo,

getPackageResourcePath,

getPackageCodePath,

getSharedPreferences, openFileInput,

openFileOutput, deleteFile,

getFileStreamPath, fileList, getFilesDir,

getNoBackupFilesDir, getExternalFilesDir,

getExternalFilesDirs, getObbDir,

getObbDirs, getCacheDir,

getCodeCacheDir, getExternalCacheDir,

getExternalCacheDirs,

getExternalMediaDirs, getDir,

openOrCreateDatabase,

openOrCreateDatabase, deleteDatabase,

getDatabasePath, databaseList,

getWallpaper, peekWallpaper,

getWallpaperDesiredMinimumWidth,

getWallpaperDesiredMinimumHeight,

setWallpaper, setWallpaper,

clearWallpaper, startActivity,

startActivity, startActivities,

startActivities, startIntentSender,

startIntentSender, sendBroadcast,

sendBroadcast, sendOrderedBroadcast,

sendOrderedBroadcast,

sendBroadcastAsUser,

sendBroadcastAsUser,

sendOrderedBroadcastAsUser,

sendStickyBroadcast,

sendStickyOrderedBroadcast,

removeStickyBroadcast,

sendStickyBroadcastAsUser,

sendStickyOrderedBroadcastAsUser,

removeStickyBroadcastAsUser,

registerReceiver, registerReceiver,

unregisterReceiver, startService,

stopService, bindService, unbindService,

startInstrumentation, getSystemService,

getSystemServiceName,

checkPermission,

checkCallingPermission,

Page 956: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

android.content.Context

getAssets, getResources,

getPackageManager,

getContentResolver, getMainLooper,

getApplicationContext,

registerComponentCallbacks,

unregisterComponentCallbacks, getText,

getString, getString, getColor,

getDrawable, getColorStateList,

setTheme, getTheme,

obtainStyledAttributes,

obtainStyledAttributes,

obtainStyledAttributes,

obtainStyledAttributes, getClassLoader,

getPackageName, getApplicationInfo,

getPackageResourcePath,

getPackageCodePath,

getSharedPreferences, openFileInput,

openFileOutput, deleteFile,

getFileStreamPath, getFilesDir,

getNoBackupFilesDir, getExternalFilesDir,

getExternalFilesDirs, getObbDir,

getObbDirs, getCacheDir,

getCodeCacheDir, getExternalCacheDir,

getExternalCacheDirs,

getExternalMediaDirs, fileList, getDir,

openOrCreateDatabase,

openOrCreateDatabase, deleteDatabase,

getDatabasePath, databaseList,

getWallpaper, peekWallpaper,

getWallpaperDesiredMinimumWidth,

getWallpaperDesiredMinimumHeight,

setWallpaper, setWallpaper,

clearWallpaper, startActivity,

startActivity, startActivities,

startActivities, startIntentSender,

startIntentSender, sendBroadcast,

sendBroadcast, sendOrderedBroadcast,

sendOrderedBroadcast,

sendBroadcastAsUser,

sendBroadcastAsUser,

sendOrderedBroadcastAsUser,

sendStickyBroadcast,

sendStickyOrderedBroadcast,

removeStickyBroadcast,

sendStickyBroadcastAsUser,

sendStickyOrderedBroadcastAsUser,

removeStickyBroadcastAsUser,

Page 957: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

ClassSdlRouterService.PacketWriteTask

Hierarchyjava.lang.Object

Package

com.smartdevicelink.transport

All Implemented Interfaces

java.lang.Runnable

Overview

A runnable task for writing out packets.

java.lang.Object

getClass, hashCode, equals, clone,

toString, notify, notifyAll, wait, wait, wait,

finalize

Page 958: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Quick Jump

Constructors

• PacketWriteTask( byte[] bytes, int offset, int size, intpriorityCoefficient )

• PacketWriteTask( byte[] bytes, int offset, int size, intpriorityCoefficient, TransportType transportType )

• PacketWriteTask( Bundle bundle )

Methods

• setTransportType(TransportType transportType) • run()

Constructors

PacketWriteTask( byte[] bytes,int offset, int size, intpriorityCoefficient )

public PacketWriteTask(byte[] bytes,int offset,int size,int priorityCoefficient)

Page 959: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

bytes

offset

size

priorityCoefficient

PacketWriteTask( byte[] bytes,int offset, int size, intpriorityCoefficient, TransportTypetransportType )

public PacketWriteTask(byte[] bytes,int offset,int size,int priorityCoefficient,TransportType transportType)

Page 960: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

bytes

offset

size

priorityCoefficient

transportType

PacketWriteTask( Bundle bundle )

public PacketWriteTask(Bundle bundle)

Page 961: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

bundle

Methods

setTransportType( TransportTypetransportType )

Parameters

transportType

run()

protected void setTransportType(TransportType transportType)

Page 962: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Inherited Methods

From Class Methods

ClassSdlRouterStatusProvider

Hierarchyjava.lang.Object

Package

com.smartdevicelink.transport

public void run()

java.lang.Object

getClass, hashCode, equals, clone,

toString, notify, notifyAll, wait, wait, wait,

finalize

Page 963: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Quick Jump

Constructors

• SdlRouterStatusProvider( Context context, ComponentNameservice, SdlRouterStatusProvider.ConnectedStatusCallbackcallback )

Methods

• setFlags(int flags) • checkIsConnected() • cancel()

Constructors

SdlRouterStatusProvider(Context context,ComponentName service,SdlRouterStatusProvider.ConnectedStatusCallbackcallback )

public SdlRouterStatusProvider(Context context,ComponentName service,SdlRouterStatusProvider.ConnectedStatusCallback callback)

Page 964: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

context

service

callback

Methods

setFlags( int flags )

Parameters

flags

public void setFlags(int flags)

Page 965: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

checkIsConnected()

cancel()

Inherited Methods

From Class Methods

public void checkIsConnected()

public void cancel()

java.lang.Object

getClass, hashCode, equals, clone,

toString, notify, notifyAll, wait, wait, wait,

finalize

Page 966: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

InterfaceSdlRouterStatusProvider.ConnectedStatusCallback

Package

com.smartdevicelink.transport

Quick Jump

Methods

• onConnectionStatusUpdate(boolean connected,ComponentNameservice,Context context)

Methods

onConnectionStatusUpdate(boolean connected,ComponentName service,Context context )

Page 967: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

connected

service

context

Class SdlSecurityBase

Hierarchyjava.lang.Object

AbstractSdlSecurityBase

Package

public void onConnectionStatusUpdate(boolean connected,ComponentName service,Context context)

Page 968: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

com.smartdevicelink.security

Quick Jump

Fields

• appService• context

Constructors

• SdlSecurityBase()

Methods

• getAppService() Deprecated• setAppService(Service val) Deprecated• getContext() • setContext(Context val)

Fields

appService

protected static android.app.Service appService

Page 969: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

context

Constructors

SdlSecurityBase()

Methods

getAppService()

Deprecated

protected static android.content.Context context

public SdlSecurityBase()

public static android.app.Service getAppService()

Page 970: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

setAppService( Service val )

Deprecated

Parameters

val

getContext()

setContext( Context val )

public static void setAppService(Service val)

public static android.content.Context getContext()

public static void setContext(Context val)

Page 971: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

val

Inherited Methods

From Class Methods

Class SdlSession

Hierarchyjava.lang.Object

Package

com.smartdevicelink.SdlConnection

All Implemented Interfaces

com.smartdevicelink.protocol.heartbeat.IHeartbeatMonitorListener

java.lang.Object

getClass, hashCode, equals, clone,

toString, notify, notifyAll, wait, wait, wait,

finalize

Page 972: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

All Known Subclasses

com.smartdevicelink.SdlConnection.SdlSession2

Quick Jump

Fields

• BUFF_READ_SIZE• transportConfig• sessionListener• lockScreenMan• sdlSecurity• desiredVideoParams• acceptedVideoParams• sessionId• sessionHashId• serviceListeners• encryptedServices

Constructors

• SdlSession()

Methods

• createSession(byte wiproVersion,ISdlConnectionListenerlistener,BaseTransportConfig btConfig)

• getTransportConfig() • getLockScreenMan() • getOutgoingHeartbeatMonitor() • getIncomingHeartbeatMonitor() • setOutgoingHeartbeatMonitor(IHeartbeatMonitor

outgoingHeartbeatMonitor) • setIncomingHeartbeatMonitor(IHeartbeatMonitor

incomingHeartbeatMonitor) • getSessionHashId() • getSessionId() • getSdlConnection() • getMtu()

Page 973: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

• getMtu(SessionType type) • close() • resetSession() • startStream(InputStream is,SessionType sType,byte rpcSessionID) • startStream(SessionType sType,byte rpcSessionID) • startVideoStream() • startAudioStream() • startRPCStream(InputStream is,RPCRequest request,SessionType

sType,byte rpcSessionID,byte wiproVersion) • startRPCStream(RPCRequest request,SessionType sType,byte

rpcSessionID,byte wiproVersion) • pauseRPCStream() • resumeRPCStream() • stopRPCStream() • stopAudioStream() • stopVideoStream() • pauseAudioStream() • pauseVideoStream() • resumeAudioStream() • resumeVideoStream() • createOpenGLInputSurface(int frameRate,int iFrameInterval,int

width,int height,int bitrate,SessionType sType,byte rpcSessionID) • startEncoder() • releaseEncoder() • drainEncoder(boolean endOfStream) • sendStreamPacket(ProtocolMessage pm) • setSdlSecurity(SdlSecurityBase sec) • getSdlSecurity() • startService(SessionType serviceType,byte sessionID,boolean

isEncrypted) • endService(SessionType serviceType,byte sessionID) • processControlService(ProtocolMessage msg) • getBroadcastComment(BaseTransportConfig myTransport) • startSession() • initialiseSession() • sendMessage(ProtocolMessage msg) • getCurrentTransportType() • getIsConnected() • isServiceProtected(SessionType sType) • onTransportDisconnected(String info) • onTransportDisconnected(String info,boolean

availablePrimary,BaseTransportConfig transportConfig) • onTransportError(String info,Exception e) • onProtocolMessageReceived(ProtocolMessage msg) • onHeartbeatTimedOut(byte sessionID) • onProtocolSessionStarted(SessionType sessionType,byte

sessionID,byte version,String correlationID,int hashID,booleanisEncrypted)

• onProtocolSessionEnded(SessionType sessionType,bytesessionID,String correlationID)

• onProtocolError(String info,Exception e) • sendHeartbeat(IHeartbeatMonitor monitor) • heartbeatTimedOut(IHeartbeatMonitor monitor)

Page 974: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

• onProtocolSessionStartedNACKed(SessionType sessionType,bytesessionID,byte version,StringcorrelationID,java.util.List<java.lang.String> rejectedParams)

• onProtocolSessionEndedNACKed(SessionType sessionType,bytesessionID,String correlationID)

• onProtocolServiceDataACK(SessionType sessionType,intdataSize,byte sessionID)

• onAuthTokenReceived(String authToken,byte sessionId) • onSecurityInitialized() • clearConnection() • checkForOpenMultiplexConnection(SdlConnection connection) • removeConnection(SdlConnection connection) • addServiceListener(SessionType serviceType,ISdlServiceListener

sdlServiceListener) • removeServiceListener(SessionType

serviceType,ISdlServiceListener sdlServiceListener) • getServiceListeners() • setDesiredVideoParams(VideoStreamingParameters params) • getDesiredVideoParams() • setAcceptedVideoParams(VideoStreamingParameters params) • getAcceptedVideoParams() • getProtocolVersion() • isTransportForServiceAvailable(SessionType sessionType)

Fields

BUFF_READ_SIZE

Constant Value

1024

protected static final int BUFF_READ_SIZE

Page 975: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

transportConfig

sessionListener

lockScreenMan

protected BaseTransportConfig transportConfig

protected ISdlConnectionListener sessionListener

protected com.smartdevicelink.proxy.LockScreenManager lockScreenMan

Page 976: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

sdlSecurity

desiredVideoParams

acceptedVideoParams

protected com.smartdevicelink.security.SdlSecurityBase sdlSecurity

protected VideoStreamingParameters desiredVideoParams

protected VideoStreamingParameters acceptedVideoParams

Page 977: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

sessionId

sessionHashId

serviceListeners

protected byte sessionId

protected int sessionHashId

protected java.util.HashMap serviceListeners

Page 978: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

encryptedServices

Constructors

SdlSession()

Methods

createSession( bytewiproVersion,ISdlConnectionListener listener,BaseTransportConfig btConfig )

protected java.util.concurrent.CopyOnWriteArrayList encryptedServices

public SdlSession()

Page 979: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

wiproVersion

listener

btConfig

getTransportConfig()

getLockScreenMan()

public static com.smartdevicelink.SdlConnection.SdlSession createSession(byte wiproVersion,ISdlConnectionListener listener,BaseTransportConfig btConfig)

public BaseTransportConfig getTransportConfig()

Page 980: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

getOutgoingHeartbeatMonitor()

getIncomingHeartbeatMonitor()

setOutgoingHeartbeatMonitor(IHeartbeatMonitoroutgoingHeartbeatMonitor )

public com.smartdevicelink.proxy.LockScreenManager getLockScreenMan()

public com.smartdevicelink.protocol.heartbeat.IHeartbeatMonitor getOutgoingHeartbeatMonitor()

public com.smartdevicelink.protocol.heartbeat.IHeartbeatMonitor getIncomingHeartbeatMonitor()

public void setOutgoingHeartbeatMonitor(IHeartbeatMonitor outgoingHeartbeatMonitor)

Page 981: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

outgoingHeartbeatMonitor

setIncomingHeartbeatMonitor(IHeartbeatMonitorincomingHeartbeatMonitor )

Parameters

incomingHeartbeatMonitor

getSessionHashId()

public void setIncomingHeartbeatMonitor(IHeartbeatMonitor incomingHeartbeatMonitor)

Page 982: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

getSessionId()

getSdlConnection()

getMtu()

getMtu( SessionType type )

public int getSessionHashId()

public byte getSessionId()

public com.smartdevicelink.SdlConnection.SdlConnection getSdlConnection()

public int getMtu()

Page 983: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

type

close()

resetSession()

public long getMtu(SessionType type)

public void close()

public void resetSession()

Page 984: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

startStream( InputStream is,SessionType sType, byterpcSessionID )

Parameters

is

sType

rpcSessionID

Throws

• java.io.IOException

public void startStream(InputStream is,SessionType sType,byte rpcSessionID) throws java.io.IOException

Page 985: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

startStream( SessionType sType,byte rpcSessionID )

Parameters

sType

rpcSessionID

Throws

• java.io.IOException

startVideoStream()

public java.io.OutputStream startStream(SessionType sType,byte rpcSessionID) throws java.io.IOException

Page 986: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

startAudioStream()

startRPCStream( InputStream is,RPCRequest request,SessionType sType, byterpcSessionID, byte wiproVersion)

public IVideoStreamListener startVideoStream()

public IAudioStreamListener startAudioStream()

public void startRPCStream(InputStream is,RPCRequest request,SessionType sType,byte rpcSessionID,byte wiproVersion)

Page 987: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

is

request

sType

rpcSessionID

wiproVersion

startRPCStream( RPCRequestrequest, SessionType sType, byterpcSessionID, byte wiproVersion)

public java.io.OutputStream startRPCStream(RPCRequest request,SessionType sType,byte rpcSessionID,byte wiproVersion)

Page 988: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

request

sType

rpcSessionID

wiproVersion

pauseRPCStream()

resumeRPCStream()

public void pauseRPCStream()

public void resumeRPCStream()

Page 989: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

stopRPCStream()

stopAudioStream()

stopVideoStream()

pauseAudioStream()

public void stopRPCStream()

public boolean stopAudioStream()

public boolean stopVideoStream()

public boolean pauseAudioStream()

Page 990: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

pauseVideoStream()

resumeAudioStream()

resumeVideoStream()

public boolean pauseVideoStream()

public boolean resumeAudioStream()

public boolean resumeVideoStream()

Page 991: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

createOpenGLInputSurface( intframeRate, int iFrameInterval, intwidth, int height, int bitrate,SessionType sType, byterpcSessionID )

Parameters

frameRate

iFrameInterval

width

height

public android.view.Surface createOpenGLInputSurface(int frameRate,int iFrameInterval,int width,int height,int bitrate,SessionType sType,byte rpcSessionID)

Page 992: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

bitrate

sType

rpcSessionID

startEncoder()

releaseEncoder()

drainEncoder( booleanendOfStream )

public void startEncoder()

public void releaseEncoder()

Page 993: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

endOfStream

sendStreamPacket(ProtocolMessage pm )

Parameters

pm

public void drainEncoder(boolean endOfStream)

public void sendStreamPacket(ProtocolMessage pm)

Page 994: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

setSdlSecurity( SdlSecurityBasesec )

Parameters

sec

getSdlSecurity()

startService( SessionTypeserviceType, byte sessionID,boolean isEncrypted )

public void setSdlSecurity(SdlSecurityBase sec)

public com.smartdevicelink.security.SdlSecurityBase getSdlSecurity()

Page 995: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

serviceType

sessionID

isEncrypted

endService( SessionTypeserviceType, byte sessionID )

public void startService(SessionType serviceType,byte sessionID,boolean isEncrypted)

public void endService(SessionType serviceType,byte sessionID)

Page 996: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

serviceType

sessionID

processControlService(ProtocolMessage msg )

Parameters

msg

protected void processControlService(ProtocolMessage msg)

Page 997: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

getBroadcastComment(BaseTransportConfigmyTransport )

Parameters

myTransport

startSession()

Throws

• SdlException

public java.lang.String getBroadcastComment(BaseTransportConfig myTransport)

public void startSession() throws SdlException

Page 998: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

initialiseSession()

sendMessage( ProtocolMessagemsg )

Parameters

msg

getCurrentTransportType()

protected void initialiseSession()

public void sendMessage(ProtocolMessage msg)

public TransportType getCurrentTransportType()

Page 999: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

getIsConnected()

isServiceProtected( SessionTypesType )

Parameters

sType

onTransportDisconnected( Stringinfo )

public boolean getIsConnected()

public boolean isServiceProtected(SessionType sType)

Page 1000: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

info

onTransportDisconnected( Stringinfo, boolean availablePrimary,BaseTransportConfigtransportConfig )

Parameters

info

public void onTransportDisconnected(String info)

public void onTransportDisconnected(String info,boolean availablePrimary,BaseTransportConfig transportConfig)

Page 1001: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

availablePrimary

transportConfig

onTransportError( String info,Exception e )

Parameters

info

e

public void onTransportError(String info,Exception e)

Page 1002: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

onProtocolMessageReceived(ProtocolMessage msg )

Parameters

msg

onHeartbeatTimedOut( bytesessionID )

public void onProtocolMessageReceived(ProtocolMessage msg)

public void onHeartbeatTimedOut(byte sessionID)

Page 1003: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

sessionID

onProtocolSessionStarted(SessionType sessionType, bytesessionID, byte version, StringcorrelationID, int hashID,boolean isEncrypted )

Parameters

sessionType

sessionID

public void onProtocolSessionStarted(SessionType sessionType,byte sessionID,byte version,String correlationID,int hashID,boolean isEncrypted)

Page 1004: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

version

correlationID

hashID

isEncrypted

onProtocolSessionEnded(SessionType sessionType, bytesessionID, String correlationID )

Parameters

sessionType

public void onProtocolSessionEnded(SessionType sessionType,byte sessionID,String correlationID)

Page 1005: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

sessionID

correlationID

onProtocolError( String info,Exception e )

Parameters

info

e

public void onProtocolError(String info,Exception e)

Page 1006: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

sendHeartbeat(IHeartbeatMonitor monitor )

Parameters

monitor

heartbeatTimedOut(IHeartbeatMonitor monitor )

public void sendHeartbeat(IHeartbeatMonitor monitor)

public void heartbeatTimedOut(IHeartbeatMonitor monitor)

Page 1007: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

monitor

onProtocolSessionStartedNACKed( SessionType sessionType, bytesessionID, byte version, StringcorrelationID,java.util.List<java.lang.String>rejectedParams )

Parameters

sessionType

public void onProtocolSessionStartedNACKed(SessionType sessionType,byte sessionID,byte version,String correlationID,java.util.List<java.lang.String> rejectedParams)

Page 1008: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

sessionID

version

correlationID

rejectedParams

onProtocolSessionEndedNACKed(SessionType sessionType, bytesessionID, String correlationID )

Parameters

sessionType

public void onProtocolSessionEndedNACKed(SessionType sessionType,byte sessionID,String correlationID)

Page 1009: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

sessionID

correlationID

onProtocolServiceDataACK(SessionType sessionType, intdataSize, byte sessionID )

Parameters

sessionType

dataSize

sessionID

public void onProtocolServiceDataACK(SessionType sessionType,int dataSize,byte sessionID)

Page 1010: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

onAuthTokenReceived( StringauthToken, byte sessionId )

Parameters

authToken

sessionId

onSecurityInitialized()

clearConnection()

public void onAuthTokenReceived(String authToken,byte sessionId)

public void onSecurityInitialized()

Page 1011: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

checkForOpenMultiplexConnection( SdlConnection connection )

Parameters

connection

removeConnection(SdlConnection connection )

public void clearConnection()

public void checkForOpenMultiplexConnection(SdlConnection connection)

public static boolean removeConnection(SdlConnection connection)

Page 1012: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

connection

addServiceListener( SessionTypeserviceType, ISdlServiceListenersdlServiceListener )

Parameters

serviceType

sdlServiceListener

public void addServiceListener(SessionType serviceType,ISdlServiceListener sdlServiceListener)

Page 1013: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

removeServiceListener(SessionType serviceType,ISdlServiceListenersdlServiceListener )

Parameters

serviceType

sdlServiceListener

getServiceListeners()

public boolean removeServiceListener(SessionType serviceType,ISdlServiceListener sdlServiceListener)

public java.util.HashMap getServiceListeners()

Page 1014: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

setDesiredVideoParams(VideoStreamingParametersparams )

Parameters

params

getDesiredVideoParams()

Returns the currently set desired video streaming parameters. If there haven't

been any set, the default options will be returned and set for this instance.

public void setDesiredVideoParams(VideoStreamingParameters params)

public VideoStreamingParameters getDesiredVideoParams()

Page 1015: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

setAcceptedVideoParams(VideoStreamingParametersparams )

Parameters

params

getAcceptedVideoParams()

getProtocolVersion()

public void setAcceptedVideoParams(VideoStreamingParameters params)

public VideoStreamingParameters getAcceptedVideoParams()

Page 1016: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

isTransportForServiceAvailable(SessionType sessionType )

Check to see if a transport is available to start/use the supplied service.

Parameters

sessionType

public Version getProtocolVersion()

public boolean isTransportForServiceAvailable(SessionType sessionType)

Page 1017: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

the session that should be checked for transport availability

Inherited Methods

From Class Methods

Class SdlSession2

Hierarchyjava.lang.Object

com.smartdevicelink.SdlConnection.SdlSession

Package

com.smartdevicelink.SdlConnection

Quick Jump

Fields

• sdlProtocol

java.lang.Object

getClass, hashCode, equals, clone,

toString, notify, notifyAll, wait, wait, wait,

finalize

Page 1018: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Constructors

• SdlSession2( ISdlConnectionListener listener,MultiplexTransportConfig config )

Methods

• createSession(byte protocolVersion,ISdlConnectionListenerlistener,BaseTransportConfig btConfig) Deprecated

• getSdlConnection() Deprecated• getMtu()• getMtu(SessionType type) • close() • resetSession() • startService(SessionType serviceType,byte sessionID,boolean

isEncrypted) • endService(SessionType serviceType,byte sessionID) • getBroadcastComment(BaseTransportConfig myTransport) • startSession() • sendMessage(ProtocolMessage msg) • getCurrentTransportType() • getIsConnected() • shutdown(String info) • onTransportDisconnected(String info,boolean

altTransportAvailable,BaseTransportConfig transportConfig) • getProtocolVersion() • onProtocolMessageBytesToSend(SdlPacket packet) • onProtocolSessionStartedNACKed(SessionType sessionType,byte

sessionID,byte version,StringcorrelationID,java.util.List<java.lang.String> rejectedParams)

• onProtocolSessionNACKed(SessionType sessionType,bytesessionID,byte version,StringcorrelationID,java.util.List<java.lang.String> rejectedParams)

• sendHeartbeat(IHeartbeatMonitor monitor) • heartbeatTimedOut(IHeartbeatMonitor monitor) • onHeartbeatTimedOut(byte sessionId) • onProtocolHeartbeat(SessionType sessionType,byte sessionID) • onProtocolHeartbeatACK(SessionType sessionType,byte sessionID)• onResetOutgoingHeartbeat(SessionType sessionType,byte

sessionID) • onResetIncomingHeartbeat(SessionType sessionType,byte

sessionID) • onAuthTokenReceived(String authToken,byte sessionID) • onSecurityInitialized() • stopStream(SessionType serviceType) • onAuthTokenReceived(String authToken) • isTransportForServiceAvailable(SessionType sessionType) • clearConnection() Deprecated• removeConnection(SdlConnection connection) Deprecated• checkForOpenMultiplexConnection(SdlConnection connection)

Deprecated

Page 1019: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Fields

sdlProtocol

Inherited Fields

From Class Fields

Constructors

SdlSession2(ISdlConnectionListener listener,MultiplexTransportConfig config )

protected final com.smartdevicelink.protocol.SdlProtocol sdlProtocol

com.smartdevicelink.SdlConnection.SdlS

ession

BUFF_READ_SIZE, transportConfig, sessio

nListener, lockScreenMan, sdlSecurity, d

esiredVideoParams, acceptedVideoParam

s, sessionId, sessionHashId, serviceListen

ers, encryptedServices

Page 1020: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

listener

config

Methods

createSession( byteprotocolVersion,ISdlConnectionListener listener,BaseTransportConfig btConfig )

Deprecated

public SdlSession2(ISdlConnectionListener listener,MultiplexTransportConfig config)

Page 1021: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

protocolVersion

listener

btConfig

getSdlConnection()

Deprecated

public static com.smartdevicelink.SdlConnection.SdlSession2 createSession(byte protocolVersion,ISdlConnectionListener listener,BaseTransportConfig btConfig)

public com.smartdevicelink.SdlConnection.SdlConnection getSdlConnection()

Page 1022: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

getMtu()

getMtu( SessionType type )

Parameters

type

close()

public int getMtu()

public long getMtu(SessionType type)

public void close()

Page 1023: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

resetSession()

startService( SessionTypeserviceType, byte sessionID,boolean isEncrypted )

Parameters

serviceType

sessionID

isEncrypted

public void resetSession()

public void startService(SessionType serviceType,byte sessionID,boolean isEncrypted)

Page 1024: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

endService( SessionTypeserviceType, byte sessionID )

Parameters

serviceType

sessionID

getBroadcastComment(BaseTransportConfigmyTransport )

public void endService(SessionType serviceType,byte sessionID)

public java.lang.String getBroadcastComment(BaseTransportConfig myTransport)

Page 1025: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

myTransport

startSession()

Throws

• SdlException

sendMessage( ProtocolMessagemsg )

public void startSession() throws SdlException

public void sendMessage(ProtocolMessage msg)

Page 1026: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

msg

getCurrentTransportType()

getIsConnected()

shutdown( String info )

public TransportType getCurrentTransportType()

public boolean getIsConnected()

public void shutdown(String info)

Page 1027: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

info

onTransportDisconnected( Stringinfo, booleanaltTransportAvailable,BaseTransportConfigtransportConfig )

Parameters

info

altTransportAvailable

public void onTransportDisconnected(String info,boolean altTransportAvailable,BaseTransportConfig transportConfig)

Page 1028: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

transportConfig

getProtocolVersion()

Get the current protocol version used by this session

onProtocolMessageBytesToSend(SdlPacket packet )

Parameters

packet

public Version getProtocolVersion()

public void onProtocolMessageBytesToSend(SdlPacket packet)

Page 1029: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

onProtocolSessionStartedNACKed( SessionType sessionType, bytesessionID, byte version, StringcorrelationID,java.util.List<java.lang.String>rejectedParams )

Parameters

sessionType

sessionID

version

correlationID

public void onProtocolSessionStartedNACKed(SessionType sessionType,byte sessionID,byte version,String correlationID,java.util.List<java.lang.String> rejectedParams)

Page 1030: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

rejectedParams

onProtocolSessionNACKed(SessionType sessionType, bytesessionID, byte version, StringcorrelationID,java.util.List<java.lang.String>rejectedParams )

Parameters

sessionType

sessionID

public void onProtocolSessionNACKed(SessionType sessionType,byte sessionID,byte version,String correlationID,java.util.List<java.lang.String> rejectedParams)

Page 1031: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

version

correlationID

rejectedParams

sendHeartbeat(IHeartbeatMonitor monitor )

Parameters

monitor

heartbeatTimedOut(IHeartbeatMonitor monitor )

public void sendHeartbeat(IHeartbeatMonitor monitor)

Page 1032: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

monitor

onHeartbeatTimedOut( bytesessionId )

Parameters

sessionId

public void heartbeatTimedOut(IHeartbeatMonitor monitor)

public void onHeartbeatTimedOut(byte sessionId)

Page 1033: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

onProtocolHeartbeat(SessionType sessionType, bytesessionID )

Parameters

sessionType

sessionID

onProtocolHeartbeatACK(SessionType sessionType, bytesessionID )

public void onProtocolHeartbeat(SessionType sessionType,byte sessionID)

public void onProtocolHeartbeatACK(SessionType sessionType,byte sessionID)

Page 1034: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

sessionType

sessionID

onResetOutgoingHeartbeat(SessionType sessionType, bytesessionID )

Parameters

sessionType

sessionID

public void onResetOutgoingHeartbeat(SessionType sessionType,byte sessionID)

Page 1035: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

onResetIncomingHeartbeat(SessionType sessionType, bytesessionID )

Parameters

sessionType

sessionID

onAuthTokenReceived( StringauthToken, byte sessionID )

public void onResetIncomingHeartbeat(SessionType sessionType,byte sessionID)

public void onAuthTokenReceived(String authToken,byte sessionID)

Page 1036: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

authToken

sessionID

onSecurityInitialized()

stopStream( SessionTypeserviceType )

public void onSecurityInitialized()

public void stopStream(SessionType serviceType)

Page 1037: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

serviceType

onAuthTokenReceived( StringauthToken )

Parameters

authToken

isTransportForServiceAvailable(SessionType sessionType )

Check to see if a transport is available to start/use the supplied service.

public void onAuthTokenReceived(String authToken)

Page 1038: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

sessionType

the session that should be checked for transport availability

clearConnection()

Deprecated

removeConnection(SdlConnection connection )

Deprecated

public boolean isTransportForServiceAvailable(SessionType sessionType)

public void clearConnection()

Page 1039: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

connection

checkForOpenMultiplexConnection( SdlConnection connection )

Deprecated

Parameters

connection

public static boolean removeConnection(SdlConnection connection)

public void checkForOpenMultiplexConnection(SdlConnection connection)

Page 1040: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Inherited Methods

Page 1041: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

From Class Methods

com.smartdevicelink.SdlConnection.SdlS

ession

createSession, getTransportConfig, getLo

ckScreenMan, getOutgoingHeartbeatMon

itor, getIncomingHeartbeatMonitor, setO

utgoingHeartbeatMonitor, setIncomingHe

artbeatMonitor, getSessionHashId, getSe

ssionId, getSdlConnection, getMtu, getMt

u, close, resetSession, startStream, start

Stream, startVideoStream, startAudioStre

am, startRPCStream, startRPCStream, pa

useRPCStream, resumeRPCStream, stopR

PCStream, stopAudioStream, stopVideoSt

ream, pauseAudioStream, pauseVideoStr

eam, resumeAudioStream, resumeVideoS

tream, createOpenGLInputSurface, startE

ncoder, releaseEncoder, drainEncoder, se

ndStreamPacket, setSdlSecurity, getSdlS

ecurity, startService, endService, process

ControlService, getBroadcastComment, s

tartSession, initialiseSession, sendMessa

ge, getCurrentTransportType, getIsConne

cted, isServiceProtected, onTransportDisc

onnected, onTransportDisconnected, onTr

ansportError, onProtocolMessageReceive

d, onHeartbeatTimedOut, onProtocolSess

ionStarted, onProtocolSessionEnded, onP

rotocolError, sendHeartbeat, heartbeatTi

medOut, onProtocolSessionStartedNACKe

d, onProtocolSessionEndedNACKed, onPr

otocolServiceDataACK, onAuthTokenRece

ived, onSecurityInitialized, clearConnecti

on, checkForOpenMultiplexConnection, re

moveConnection, addServiceListener, re

moveServiceListener, getServiceListener

s, setDesiredVideoParams, getDesiredVid

eoParams, setAcceptedVideoParams, get

AcceptedVideoParams, getProtocolVersio

n, isTransportForServiceAvailable

java.lang.Object

getClass, hashCode, equals, clone,

toString, notify, notifyAll, wait, wait, wait,

finalize

Page 1042: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Class SdlTrace

Hierarchyjava.lang.Object

Package

com.smartdevicelink.trace

Quick Jump

Fields

• SYSTEM_LOG_TAG• m_appTraceListener

Constructors

• SdlTrace()

Methods

• setAcceptAPITraceAdjustments(BooleanAPITraceAdjustmentsAccepted)

• getAcceptAPITraceAdjustments() • setAppTraceListener(ISTListener listener) • setAppTraceLevel(DetailLevel dt) • setProxyTraceLevel(DetailLevel dt) • setRpcTraceLevel(DetailLevel dt) • setMarshallingTraceLevel(DetailLevel dt)

Page 1043: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

• setProtocolTraceLevel(DetailLevel dt) • setTransportTraceLevel(DetailLevel dt) • logProxyEvent(String eventText,String token) • logAppEvent(String eventText) • logRPCEvent(InterfaceActivityDirection msgDirection,RPCMessage

rpcMsg,String token) • logMarshallingEvent(InterfaceActivityDirection msgDirection,byte

[] marshalledMessage,String token) • logProtocolEvent(InterfaceActivityDirection

frameDirection,SdlPacket packet,int frameDataOffset,intframeDataLength,String token)

• getBTDeviceInfo(BluetoothDevice btDevice) • logTransportEvent(String preamble,String

transportSpecificInfoXml,InterfaceActivityDirectionmsgDirection,byte[] buf,int byteLength,String token)

• logTransportEvent(String preamble,StringtransportSpecificInfoXml,InterfaceActivityDirectionmsgDirection,byte[] buf,int offset,int byteLength,String token)

• writeMessageToSiphonServer(String info) • getLogHeader(String dumpReason,int seqNo)

Fields

SYSTEM_LOG_TAG

Constant Value

"SdlTrace"

public static final java.lang.String SYSTEM_LOG_TAG

Page 1044: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

m_appTraceListener

Constructors

SdlTrace()

Methods

setAcceptAPITraceAdjustments(BooleanAPITraceAdjustmentsAccepted )

protected static ISTListener m_appTraceListener

public SdlTrace()

Page 1045: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

APITraceAdjustmentsAccepted

getAcceptAPITraceAdjustments()

setAppTraceListener( ISTListenerlistener )

public static void setAcceptAPITraceAdjustments(Boolean APITraceAdjustmentsAccepted)

public static boolean getAcceptAPITraceAdjustments()

public static void setAppTraceListener(ISTListener listener)

Page 1046: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

listener

setAppTraceLevel( DetailLevel dt)

Parameters

dt

setProxyTraceLevel( DetailLeveldt )

public static void setAppTraceLevel(DetailLevel dt)

Page 1047: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

dt

setRpcTraceLevel( DetailLevel dt)

Parameters

dt

public static void setProxyTraceLevel(DetailLevel dt)

public static void setRpcTraceLevel(DetailLevel dt)

Page 1048: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

setMarshallingTraceLevel(DetailLevel dt )

Parameters

dt

setProtocolTraceLevel(DetailLevel dt )

public static void setMarshallingTraceLevel(DetailLevel dt)

public static void setProtocolTraceLevel(DetailLevel dt)

Page 1049: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

dt

setTransportTraceLevel(DetailLevel dt )

Parameters

dt

logProxyEvent( String eventText,String token )

public static void setTransportTraceLevel(DetailLevel dt)

Page 1050: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

eventText

token

logAppEvent( String eventText )

Parameters

eventText

public static boolean logProxyEvent(String eventText,String token)

public static boolean logAppEvent(String eventText)

Page 1051: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

logRPCEvent(InterfaceActivityDirectionmsgDirection, RPCMessagerpcMsg, String token )

Parameters

msgDirection

rpcMsg

token

public static boolean logRPCEvent(InterfaceActivityDirection msgDirection,RPCMessage rpcMsg,String token)

Page 1052: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

logMarshallingEvent(InterfaceActivityDirectionmsgDirection, byte[]marshalledMessage, String token)

Parameters

msgDirection

marshalledMessage

token

public static boolean logMarshallingEvent(InterfaceActivityDirection msgDirection,byte[] marshalledMessage,String token)

Page 1053: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

logProtocolEvent(InterfaceActivityDirectionframeDirection, SdlPacketpacket, int frameDataOffset, intframeDataLength, String token )

Parameters

frameDirection

packet

frameDataOffset

frameDataLength

public static boolean logProtocolEvent(InterfaceActivityDirection frameDirection,SdlPacket packet,int frameDataOffset,int frameDataLength,String token)

Page 1054: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

token

getBTDeviceInfo(BluetoothDevice btDevice )

Parameters

btDevice

logTransportEvent( Stringpreamble, StringtransportSpecificInfoXml,InterfaceActivityDirectionmsgDirection, byte[] buf, intbyteLength, String token )

public static java.lang.String getBTDeviceInfo(BluetoothDevice btDevice)

Page 1055: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

preamble

transportSpecificInfoXml

msgDirection

buf

byteLength

token

public static boolean logTransportEvent(String preamble,String transportSpecificInfoXml,InterfaceActivityDirection msgDirection,byte[] buf,int byteLength,String token)

Page 1056: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

logTransportEvent( Stringpreamble, StringtransportSpecificInfoXml,InterfaceActivityDirectionmsgDirection, byte[] buf, intoffset, int byteLength, Stringtoken )

Parameters

preamble

transportSpecificInfoXml

msgDirection

public static boolean logTransportEvent(String preamble,String transportSpecificInfoXml,InterfaceActivityDirection msgDirection,byte[] buf,int offset,int byteLength,String token)

Page 1057: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

buf

offset

byteLength

token

writeMessageToSiphonServer(String info )

Parameters

info

public static java.lang.Boolean writeMessageToSiphonServer(String info)

Page 1058: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

getLogHeader( StringdumpReason, int seqNo )

Parameters

dumpReason

seqNo

Inherited Methods

From Class Methods

public static java.lang.String getLogHeader(String dumpReason,int seqNo)

java.lang.Object

getClass, hashCode, equals, clone,

toString, notify, notifyAll, wait, wait, wait,

finalize

Page 1059: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Class SdlTransport

Hierarchyjava.lang.Object

Package

com.smartdevicelink.transport

All Known Subclasses

com.smartdevicelink.transport.BTTransport, com.smartdevicelink.transport.MultiplexTransport, com.smartdevicelink.transport.TCPTransport, com.smartdevicelink.transport.USBTransport

Quick Jump

Constructors

• SdlTransport( ITransportListener transportListener )

Methods

• getIsConnected() • handleReceivedPacket(SdlPacket packet) • sendBytesOverTransport(SdlPacket packet) • sendBytes(SdlPacket packet) • handleTransportConnected() • handleTransportDisconnected(String info) • handleTransportError(String message,Exception ex)

Page 1060: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

• openConnection() • disconnect() • getTransportType() • getBroadcastComment()

Constructors

SdlTransport( ITransportListenertransportListener )

Parameters

transportListener

Methods

getIsConnected()

protected SdlTransport(ITransportListener transportListener)

Page 1061: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

handleReceivedPacket(SdlPacket packet )

Parameters

packet

sendBytesOverTransport(SdlPacket packet )

public java.lang.Boolean getIsConnected()

protected void handleReceivedPacket(SdlPacket packet)

protected abstract boolean sendBytesOverTransport(SdlPacket packet)

Page 1062: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

packet

sendBytes( SdlPacket packet )

Parameters

packet

handleTransportConnected()

public boolean sendBytes(SdlPacket packet)

protected void handleTransportConnected()

Page 1063: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

handleTransportDisconnected(String info )

Parameters

info

handleTransportError( Stringmessage, Exception ex )

protected void handleTransportDisconnected(String info)

protected void handleTransportError(String message,Exception ex)

Page 1064: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

message

ex

openConnection()

Throws

• SdlException

disconnect()

public abstract void openConnection() throws SdlException

public abstract void disconnect()

Page 1065: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

getTransportType()

Abstract method which should be implemented by subclasses in order to return

actual type of the transport.

getBroadcastComment()

Inherited Methods

From Class Methods

public abstract TransportType getTransportType()

public abstract java.lang.String getBroadcastComment()

java.lang.Object

getClass, hashCode, equals, clone,

toString, notify, notifyAll, wait, wait, wait,

finalize

Page 1066: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Class ServiceFinder

Hierarchyjava.lang.Object

Package

com.smartdevicelink.util

Overview

Created by Joey Grover on 8/18/17.

Quick Jump

Fields

• TAG

Constructors

• ServiceFinder( Context context, String packageName,ServiceFinder.ServiceFinderCallback callback )

Page 1067: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Fields

TAG

Constructors

ServiceFinder( Context context,String packageName,ServiceFinder.ServiceFinderCallbackcallback )

public static final java.lang.String TAG

public ServiceFinder(Context context,String packageName,ServiceFinder.ServiceFinderCallback callback)

Page 1068: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

context

packageName

callback

Methods

Inherited Methods

From Class Methods

java.lang.Object

getClass, hashCode, equals, clone,

toString, notify, notifyAll, wait, wait, wait,

finalize

Page 1069: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

InterfaceServiceFinder.ServiceFinderCallback

Package

com.smartdevicelink.util

Quick Jump

Methods

• onComplete(java.util.Vector<android.content.ComponentName>routerServices)

Methods

onComplete(java.util.Vector<android.content.ComponentName>routerServices )

public void onComplete(java.util.Vector<android.content.ComponentName> routerServices)

Page 1070: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

routerServices

Class StreamPacketizer

Hierarchyjava.lang.Object

AbstractPacketizer

Package

com.smartdevicelink.streaming

All Implemented Interfaces

java.lang.Runnable

Page 1071: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Quick Jump

Fields

• TAG• sdlConnection

Constructors

• StreamPacketizer( IStreamListener streamListener, InputStreamis, SessionType sType, byte rpcSessionID, SdlSession session )

Methods

• start() • stop() • run() • pause() • resume() • sendFrame(byte[] data,int offset,int length,long

presentationTimeUs) • sendFrame(ByteBuffer data,long presentationTimeUs) • sendAudio(byte[] data,int offset,int length,long

presentationTimeUs)

Page 1072: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

• sendAudio(ByteBuffer data,long presentationTimeUs)

Fields

TAG

Constant Value

"StreamPacketizer"

sdlConnection

Constructors

public static final java.lang.String TAG

public com.smartdevicelink.SdlConnection.SdlConnection sdlConnection

Page 1073: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

StreamPacketizer(IStreamListener streamListener,InputStream is, SessionTypesType, byte rpcSessionID,SdlSession session )

Parameters

streamListener

is

sType

rpcSessionID

public StreamPacketizer(IStreamListener streamListener,InputStream is,SessionType sType,byte rpcSessionID,SdlSession session)

Page 1074: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

session

Methods

start()

Throws

• java.io.IOException

stop()

run()

public void start() throws java.io.IOException

public void stop()

Page 1075: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

pause()

resume()

sendFrame( byte[] data, intoffset, int length, longpresentationTimeUs )

Called by the app.

public void run()

public void pause()

public void resume()

Page 1076: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

data

offset

length

presentationTimeUs

Throws

• java.lang.ArrayIndexOutOfBoundsException

public void sendFrame(byte[] data,int offset,int length,long presentationTimeUs) throws java.lang.ArrayIndexOutOfBoundsException

Page 1077: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

sendFrame( ByteBuffer data,long presentationTimeUs )

Called by the app.

Parameters

data

presentationTimeUs

sendAudio( byte[] data, intoffset, int length, longpresentationTimeUs )

Called by the app.

public void sendFrame(ByteBuffer data,long presentationTimeUs)

Page 1078: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

data

offset

length

presentationTimeUs

Throws

• java.lang.ArrayIndexOutOfBoundsException

public void sendAudio(byte[] data,int offset,int length,long presentationTimeUs) throws java.lang.ArrayIndexOutOfBoundsException

Page 1079: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

sendAudio( ByteBuffer data, longpresentationTimeUs )

Called by the app.

Parameters

data

presentationTimeUs

Inherited Methods

From Class Methods

public void sendAudio(ByteBuffer data,long presentationTimeUs)

java.lang.Object

getClass, hashCode, equals, clone,

toString, notify, notifyAll, wait, wait, wait,

finalize

Page 1080: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Class StreamRPCPacketizer

Hierarchyjava.lang.Object

AbstractPacketizer

Package

com.smartdevicelink.streaming

All Implemented Interfaces

java.lang.Runnable

Quick Jump

Constructors

• StreamRPCPacketizer(com.smartdevicelink.proxy.SdlProxyBase<IProxyListenerBase>proxy, IStreamListener streamListener, InputStream is,RPCRequest request, SessionType sType, byte rpcSessionID, bytewiproVersion, long lLength, SdlSession session )

• StreamRPCPacketizer(com.smartdevicelink.proxy.SdlProxyBase<IProxyListenerBase>proxy, IStreamListener streamListener, InputStream is,RPCRequest request, SessionType sType, byte rpcSessionID,Version wiproVersion, Version rpcSpecVersion, long lLength,SdlSession session )

Page 1081: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Methods

• start() • stop() • pause() • resume() • run() • onPutFileResponse(PutFileResponse response) • onPutFileStreamError(Exception e,String info)

Constructors

StreamRPCPacketizer(com.smartdevicelink.proxy.SdlProxyBase<IProxyListenerBaproxy, IStreamListenerstreamListener, InputStream is,RPCRequest request,SessionType sType, byterpcSessionID, byte wiproVersion,long lLength, SdlSession session)

public StreamRPCPacketizer(com.smartdevicelink.proxy.SdlProxyBase<IProxyListenerBase> proxy,IStreamListener streamListener,InputStream is,RPCRequest request,SessionType sType,byte rpcSessionID,byte wiproVersion,long lLength,SdlSession session)

Page 1082: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

proxy

streamListener

is

request

sType

rpcSessionID

wiproVersion

lLength

Page 1083: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

session

StreamRPCPacketizer(com.smartdevicelink.proxy.SdlProxyBase<IProxyListenerBaproxy, IStreamListenerstreamListener, InputStream is,RPCRequest request,SessionType sType, byterpcSessionID, VersionwiproVersion, VersionrpcSpecVersion, long lLength,SdlSession session )

Parameters

proxy

public StreamRPCPacketizer(com.smartdevicelink.proxy.SdlProxyBase<IProxyListenerBase> proxy,IStreamListener streamListener,InputStream is,RPCRequest request,SessionType sType,byte rpcSessionID,Version wiproVersion,Version rpcSpecVersion,long lLength,SdlSession session)

Page 1084: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

streamListener

is

request

sType

rpcSessionID

wiproVersion

rpcSpecVersion

lLength

session

Page 1085: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Methods

start()

Throws

• java.io.IOException

stop()

pause()

public void start() throws java.io.IOException

public void stop()

public void pause()

Page 1086: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

resume()

run()

onPutFileResponse(PutFileResponse response )

Parameters

response

public void resume()

public void run()

public void onPutFileResponse(PutFileResponse response)

Page 1087: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

onPutFileStreamError( Exceptione, String info )

Parameters

e

info

Inherited Methods

From Class Methods

public void onPutFileStreamError(Exception e,String info)

java.lang.Object

getClass, hashCode, equals, clone,

toString, notify, notifyAll, wait, wait, wait,

finalize

Page 1088: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Class TCPTransport

Hierarchyjava.lang.Object

com.smartdevicelink.transport.SdlTransport

Package

com.smartdevicelink.transport

Overview

Class that implements TCP transport

Quick Jump

Constructors

• TCPTransport( TCPTransportConfig tcpTransportConfig,ITransportListener transportListener )

Methods

• sendBytesOverTransport(SdlPacket packet) • openConnection() • disconnect() • getTransportType() • logInfo(String message)

Page 1089: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

• logError(String message) • logWarning(String message) • logError(String message,Throwable throwable) • getBroadcastComment()

Constructors

TCPTransport(TCPTransportConfigtcpTransportConfig,ITransportListenertransportListener )

Constructs TCP transport component instance

Parameters

tcpTransportConfig

Instance of the TCP transport configuration

public TCPTransport(TCPTransportConfig tcpTransportConfig,ITransportListener transportListener)

Page 1090: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

transportListener

Listener that will be notified on different TCP transport activities

Methods

sendBytesOverTransport(SdlPacket packet )

Performs actual work of sending array of bytes over the transport

Parameters

packet

openConnection()

Tries to open connection to SmartDeviceLinkCore. Actual try will be performed

only if no actual connection is available

protected boolean sendBytesOverTransport(SdlPacket packet)

Page 1091: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Throws

• SdlException

disconnect()

Tries to disconnect from SmartDeviceLinkCore. Actual try will be performed only

if connection is available

getTransportType()

Overridden abstract method which returns specific type of this transport.

public void openConnection() throws SdlException

public void disconnect()

public TransportType getTransportType()

Page 1092: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

logInfo( String message )

Internal method for logging information messages

Parameters

message

Message to log

logError( String message )

Internal method for logging error messages

protected void logInfo(String message)

protected void logError(String message)

Page 1093: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

message

Message to log

logWarning( String message )

Internal method for logging warning messages

Parameters

message

Message to log

protected void logWarning(String message)

Page 1094: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

logError( String message,Throwable throwable )

Internal method for logging error message together with information about

exception that was the reason of it

Parameters

message

Message to log

throwable

Exception, that was the main reason for logged error message

getBroadcastComment()

protected void logError(String message,Throwable throwable)

public java.lang.String getBroadcastComment()

Page 1095: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Inherited Methods

From Class Methods

Class TCPTransportConfig

Hierarchyjava.lang.Object

BaseTransportConfig

Package

com.smartdevicelink.transport

Overview

Container of TCP transport specific configuration.

com.smartdevicelink.transport.SdlTransp

ort

getIsConnected, handleReceivedPacket, s

endBytesOverTransport, sendBytes, hand

leTransportConnected, handleTransportDi

sconnected, handleTransportError, openC

onnection, disconnect, getTransportType,

getBroadcastComment

java.lang.Object

getClass, hashCode, equals, clone,

toString, notify, notifyAll, wait, wait, wait,

finalize

Page 1096: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Quick Jump

Constructors

• TCPTransportConfig( int port, String ipAddress, booleanautoReconnect )

Methods

• getPort() • getIPAddress() • getAutoReconnect() • getTransportType() • toString()

Constructors

TCPTransportConfig( int port,String ipAddress, booleanautoReconnect )

Constructor. Objects of this class must be created for known port and IP

address value.

public TCPTransportConfig(int port,String ipAddress,boolean autoReconnect)

Page 1097: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

port

Port for TCP connection.

ipAddress

IP address for TCP connection.

autoReconnect

Flag which must be set to true if tcp connection must be automaticallyreestablished in case of disconnection

Methods

getPort()

Gets value of Port.

public int getPort()

Page 1098: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

getIPAddress()

Gets value of IP address.

getAutoReconnect()

Gets value of AutoReconnect

getTransportType()

Overridden abstract method which returns specific type of this transport

configuration.

public java.lang.String getIPAddress()

public boolean getAutoReconnect()

public TransportType getTransportType()

Page 1099: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

toString()

Inherited Methods

From Class Methods

Class TraceDeviceInfo

Hierarchyjava.lang.Object

Package

com.smartdevicelink.trace

public java.lang.String toString()

java.lang.Object

getClass, hashCode, equals, clone,

toString, notify, notifyAll, wait, wait, wait,

finalize

Page 1100: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Quick Jump

Constructors

• TraceDeviceInfo( TelephonyManager telephonyManager )

Methods

• setTelephonyManager(TelephonyManager telephonyManager) • getTelephonyManager()

Constructors

TraceDeviceInfo(TelephonyManagertelephonyManager )

public TraceDeviceInfo(TelephonyManager telephonyManager)

Page 1101: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

telephonyManager

Methods

setTelephonyManager(TelephonyManagertelephonyManager )

Parameters

telephonyManager

public static void setTelephonyManager(TelephonyManager telephonyManager)

Page 1102: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

getTelephonyManager()

Inherited Methods

From Class Methods

Class TransportBroker

Hierarchyjava.lang.Object

Package

com.smartdevicelink.transport

All Known Subclasses

public static android.telephony.TelephonyManager getTelephonyManager()

java.lang.Object

getClass, hashCode, equals, clone,

toString, notify, notifyAll, wait, wait, wait,

finalize

Page 1103: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

com.smartdevicelink.transport.TransportManager.TransportBrokerImpl

Quick Jump

Constructors

• TransportBroker( Context context, String appId, ComponentNameservice )

Methods

• sendMessageToRouterService(Message message) • sendMessageToRouterService(Message message,int retryCount) • start() • resetSession() • stop() • onServiceUnregsiteredFromRouterService(int unregisterCode) • onHardwareDisconnected(TransportType type) Deprecated• onHardwareDisconnected(TransportRecord

record,java.util.List<TransportRecord> connectedTransports) • onHardwareConnected(TransportType type) Deprecated• onHardwareConnected(java.util.List<TransportRecord>

transports) • onPacketReceived(Parcelable packet) • onLegacyModeEnabled() • getRouterServiceVersion() • sendPacketToRouterService(SdlPacket packet) • getRouterService() • convertAppId(String appId) • enableLegacyMode(boolean enable) • isLegacyModeEnabled() • requestNewSession() Deprecated• requestNewSession(TransportRecord transportRecord) • requestSecondaryTransportConnection(byte sessionId,Bundle

bundle) • removeSession(long sessionId)

Constructors

Page 1104: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

TransportBroker( Contextcontext, String appId,ComponentName service )

Life Cycle **************************************************************

Parameters

context

appId

service

Methods

public TransportBroker(Context context,String appId,ComponentName service)

Page 1105: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

sendMessageToRouterService(Message message )

Parameters

message

sendMessageToRouterService(Message message, intretryCount )

protected synchronized boolean sendMessageToRouterService(Message message)

protected synchronized boolean sendMessageToRouterService(Message message,int retryCount)

Page 1106: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

message

retryCount

start()

This beings the initial connection with the router service.

resetSession()

public boolean start()

public void resetSession()

Page 1107: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

stop()

This method will end our communication with the router service.

onServiceUnregsiteredFromRouterService( int unregisterCode )

Event Callbacks **************************************************************

Parameters

unregisterCode

public void stop()

public void onServiceUnregsiteredFromRouterService(int unregisterCode)

Page 1108: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

onHardwareDisconnected(TransportType type )

Deprecated

Parameters

type

onHardwareDisconnected(TransportRecord record,java.util.List<TransportRecord>connectedTransports )

public void onHardwareDisconnected(TransportType type)

public void onHardwareDisconnected(TransportRecord record,java.util.List<TransportRecord> connectedTransports)

Page 1109: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

record

connectedTransports

onHardwareConnected(TransportType type )

Deprecated

WILL NO LONGER BE CALLED

Parameters

type

public boolean onHardwareConnected(TransportType type)

Page 1110: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

onHardwareConnected(java.util.List<TransportRecord>transports )

Parameters

transports

onPacketReceived( Parcelablepacket )

public boolean onHardwareConnected(java.util.List<TransportRecord> transports)

public void onPacketReceived(Parcelable packet)

Page 1111: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

packet

onLegacyModeEnabled()

getRouterServiceVersion()

sendPacketToRouterService(SdlPacket packet )

public void onLegacyModeEnabled()

protected int getRouterServiceVersion()

public boolean sendPacketToRouterService(SdlPacket packet)

Page 1112: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

packet

getRouterService()

convertAppId( String appId )

Parameters

appId

protected android.content.ComponentName getRouterService()

public static java.lang.Long convertAppId(String appId)

Page 1113: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

enableLegacyMode( booleanenable )

Parameters

enable

isLegacyModeEnabled()

requestNewSession()

Deprecated

Use this method to let the router service know that you are requesting a new

session from the head unit.

protected void enableLegacyMode(boolean enable)

protected static boolean isLegacyModeEnabled()

Page 1114: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

requestNewSession(TransportRecord transportRecord)

Parameters

transportRecord

requestSecondaryTransportConnection( byte sessionId, Bundle bundle )

Request secondary transport and communicate details to router service

public void requestNewSession()

public void requestNewSession(TransportRecord transportRecord)

Page 1115: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

sessionId

bundle

removeSession( long sessionId )

Parameters

sessionId

public void requestSecondaryTransportConnection(byte sessionId,Bundle bundle)

public void removeSession(long sessionId)

Page 1116: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Inherited Methods

From Class Methods

Class TransportManager

Hierarchyjava.lang.Object

TransportManagerBase

Package

com.smartdevicelink.transport

Quick Jump

Constructors

• TransportManager( MultiplexTransportConfig config,TransportEventListener listener )

java.lang.Object

getClass, hashCode, equals, clone,

toString, notify, notifyAll, wait, wait, wait,

finalize

Page 1117: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Methods

• start() • close(long sessionId) • resetSession() Deprecated• isConnected(TransportType transportType,String address) • getTransportRecord(TransportType transportType,String address) • getConnectedTransports() • isHighBandwidthAvailable() • updateTransportConfig(BaseTransportConfig config) • getRouterService() Deprecated• sendPacket(SdlPacket packet) • requestNewSession(TransportRecord transportRecord) • requestSecondaryTransportConnection(byte sessionId,Bundle

params) Deprecated• requestSecondaryTransportConnection(byte

sessionId,TransportRecord transportRecord)

Constructors

TransportManager(MultiplexTransportConfig config,TransportEventListener listener )

Managing transports List for status of all transports If transport is not

connected. Request Router service connect to it. Get connected message

public TransportManager(MultiplexTransportConfig config,TransportEventListener listener)

Page 1118: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

config

listener

Methods

start()

close( long sessionId )

public void start()

public void close(long sessionId)

Page 1119: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

sessionId

resetSession()

Deprecated

isConnected( TransportTypetransportType, String address )

Check to see if a transport is connected.

public void resetSession()

public boolean isConnected(TransportType transportType,String address)

Page 1120: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

transportType

the transport to have its connection status returned. If `null` is passedin, all transports will be checked and if any are connected a true valuewill be returned.

address

the address associated with the transport type. If null, the firsttransport of supplied type will be used to return if connected.

getTransportRecord(TransportType transportType,String address )

Retrieve a transport record with the supplied params

public TransportRecord getTransportRecord(TransportType transportType,String address)

Page 1121: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

transportType

the transport to have its connection status returned.

address

the address associated with the transport type. If null, the firsttransport of supplied type will be returned.

getConnectedTransports()

Retrieves the currently connected transports

isHighBandwidthAvailable()

public java.util.List getConnectedTransports()

public boolean isHighBandwidthAvailable()

Page 1122: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

updateTransportConfig(BaseTransportConfig config )

Parameters

config

getRouterService()

Deprecated

sendPacket( SdlPacket packet )

public BaseTransportConfig updateTransportConfig(BaseTransportConfig config)

public android.content.ComponentName getRouterService()

Page 1123: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

packet

requestNewSession(TransportRecord transportRecord)

Parameters

transportRecord

public void sendPacket(SdlPacket packet)

public void requestNewSession(TransportRecord transportRecord)

Page 1124: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

requestSecondaryTransportConnection( byte sessionId, Bundle params)

Deprecated

Parameters

sessionId

params

requestSecondaryTransportConnection( byte sessionId, TransportRecordtransportRecord )

public void requestSecondaryTransportConnection(byte sessionId,Bundle params)

Page 1125: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

sessionId

transportRecord

Inherited Methods

From Class Methods

public void requestSecondaryTransportConnection(byte sessionId,TransportRecord transportRecord)

java.lang.Object

getClass, hashCode, equals, clone,

toString, notify, notifyAll, wait, wait, wait,

finalize

Page 1126: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

ClassTransportManager.LegacyBluetoothHandler

Hierarchyjava.lang.Object

android.os.Handler

Package

com.smartdevicelink.transport

Quick Jump

Constructors

• LegacyBluetoothHandler( TransportManager provider )

Methods

• handleMessage(Message msg)

Constructors

Page 1127: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

LegacyBluetoothHandler(TransportManager provider )

Parameters

provider

Methods

handleMessage( Message msg )

public LegacyBluetoothHandler(TransportManager provider)

public void handleMessage(Message msg)

Page 1128: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

msg

Inherited Methods

From Class Methods

android.os.Handler

handleMessage, dispatchMessage,

getMessageName, obtainMessage,

obtainMessage, obtainMessage,

obtainMessage, obtainMessage, post,

postAtTime, postAtTime, postDelayed,

postAtFrontOfQueue, removeCallbacks,

removeCallbacks, sendMessage,

sendEmptyMessage,

sendEmptyMessageDelayed,

sendEmptyMessageAtTime,

sendMessageDelayed,

sendMessageAtTime,

sendMessageAtFrontOfQueue,

removeMessages, removeMessages,

removeCallbacksAndMessages,

hasMessages, hasMessages, getLooper,

dump, toString

java.lang.Object

getClass, hashCode, equals, clone,

toString, notify, notifyAll, wait, wait, wait,

finalize

Page 1129: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

ClassTransportManager.TransportBrokerImpl

Hierarchyjava.lang.Object

com.smartdevicelink.transport.TransportBroker

Package

com.smartdevicelink.transport

Quick Jump

Constructors

• TransportBrokerImpl( Context context, String appId,ComponentName routerService )

Methods

• onHardwareConnected(TransportType transportType) Deprecated• onHardwareConnected(java.util.List<TransportRecord>

transports) • onHardwareDisconnected(TransportRecord

record,java.util.List<TransportRecord> connectedTransports) • onLegacyModeEnabled() • onPacketReceived(Parcelable packet) • stop()

Page 1130: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Constructors

TransportBrokerImpl( Contextcontext, String appId,ComponentName routerService )

Parameters

context

appId

routerService

Methods

public TransportBrokerImpl(Context context,String appId,ComponentName routerService)

Page 1131: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

onHardwareConnected(TransportType transportType )

Deprecated

Parameters

transportType

onHardwareConnected(java.util.List<TransportRecord>transports )

public boolean onHardwareConnected(TransportType transportType)

public synchronized boolean onHardwareConnected(java.util.List<TransportRecord> transports)

Page 1132: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

transports

onHardwareDisconnected(TransportRecord record,java.util.List<TransportRecord>connectedTransports )

Parameters

record

connectedTransports

public synchronized void onHardwareDisconnected(TransportRecord record,java.util.List<TransportRecord> connectedTransports)

Page 1133: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

onLegacyModeEnabled()

onPacketReceived( Parcelablepacket )

Parameters

packet

stop()

public synchronized void onLegacyModeEnabled()

public void onPacketReceived(Parcelable packet)

public synchronized void stop()

Page 1134: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Inherited Methods

From Class Methods

ClassUSBAccessoryAttachmentActivity

Hierarchyjava.lang.Object

android.content.Context

android.content.ContextWrapper

android.view.ContextThemeWrapper

android.app.Activity

com.smartdevicelink.transport.Transport

Broker

sendMessageToRouterService, sendMess

ageToRouterService, start, resetSession,

stop, onServiceUnregsiteredFromRouterS

ervice, onHardwareDisconnected, onHard

wareDisconnected, onHardwareConnecte

d, onHardwareConnected, onPacketRecei

ved, onLegacyModeEnabled, getRouterSe

rviceVersion, sendPacketToRouterService,

getRouterService, convertAppId, enableL

egacyMode, isLegacyModeEnabled, requ

estNewSession, requestNewSession, requ

estSecondaryTransportConnection, remo

veSession

java.lang.Object

getClass, hashCode, equals, clone,

toString, notify, notifyAll, wait, wait, wait,

finalize

Page 1135: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Package

com.smartdevicelink.transport

Overview

The USBAccessoryAttachmentActivity is a proxy to listen for

USB_ACCESSORY_ATTACHED intents.

Unfortunately, the USB_ACCESSORY_ATTACHED intent can only be sent to an

activity. So this class is a workaround to get that intent.

Some reference: http://stackoverflow.com/questions/6981736/android-3-1-usb-

host-broadcastreceiver-does-not-receive-usb-device-

attached/9814826#9814826

Inspired by OpenXC-Android: https://github.com/openxc/openxc-android

NOTE: An application that wants to use USB transport must make the following

changes to AndroidManifest.xml:

1. Add these lines to the {@literal …} scope:

2. Add these lines to the {@literal …} scope:

3. Set minimum SDK version to 12:

{@code }

{@code }

{@code }

Page 1136: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Quick Jump

Constructors

• USBAccessoryAttachmentActivity()

Methods

• onCreate(Bundle savedInstanceState) • onResume() • onNewIntent(Intent intent)

Page 1137: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

• onDestroy()

Page 1138: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Fields

Inherited Fields

Page 1139: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

From Class Fields

android.app.Activity

DEFAULT_KEYS_DIALER,

DEFAULT_KEYS_DISABLE,

DEFAULT_KEYS_SEARCH_GLOBAL,

DEFAULT_KEYS_SEARCH_LOCAL,

DEFAULT_KEYS_SHORTCUT,

FOCUSED_STATE_SET,

RESULT_CANCELED, RESULT_FIRST_USER,

RESULT_OK

Page 1140: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

android.content.Context

ACCESSIBILITY_SERVICE,

ACCOUNT_SERVICE, ACTIVITY_SERVICE,

ALARM_SERVICE, APPWIDGET_SERVICE,

APP_OPS_SERVICE, AUDIO_SERVICE,

BATTERY_SERVICE, BIND_ABOVE_CLIENT,

BIND_ADJUST_WITH_ACTIVITY,

BIND_ALLOW_OOM_MANAGEMENT,

BIND_AUTO_CREATE,

BIND_DEBUG_UNBIND, BIND_IMPORTANT,

BIND_NOT_FOREGROUND,

BIND_WAIVE_PRIORITY,

BLUETOOTH_SERVICE, CAMERA_SERVICE,

CAPTIONING_SERVICE,

CARRIER_CONFIG_SERVICE,

CLIPBOARD_SERVICE,

CONNECTIVITY_SERVICE,

CONSUMER_IR_SERVICE,

CONTEXT_IGNORE_SECURITY,

CONTEXT_INCLUDE_CODE,

CONTEXT_RESTRICTED,

DEVICE_POLICY_SERVICE,

DISPLAY_SERVICE, DOWNLOAD_SERVICE,

DROPBOX_SERVICE,

FINGERPRINT_SERVICE,

INPUT_METHOD_SERVICE,

INPUT_SERVICE,

JOB_SCHEDULER_SERVICE,

KEYGUARD_SERVICE,

LAUNCHER_APPS_SERVICE,

LAYOUT_INFLATER_SERVICE,

LOCATION_SERVICE,

MEDIA_PROJECTION_SERVICE,

MEDIA_ROUTER_SERVICE,

MEDIA_SESSION_SERVICE, MIDI_SERVICE,

MODE_APPEND,

MODE_ENABLE_WRITE_AHEAD_LOGGING,

MODE_MULTI_PROCESS, MODE_PRIVATE,

MODE_WORLD_READABLE,

MODE_WORLD_WRITEABLE,

NETWORK_STATS_SERVICE,

NFC_SERVICE, NOTIFICATION_SERVICE,

NSD_SERVICE, POWER_SERVICE,

PRINT_SERVICE, RESTRICTIONS_SERVICE,

SEARCH_SERVICE, SENSOR_SERVICE,

STORAGE_SERVICE, TELECOM_SERVICE,

TELEPHONY_SERVICE,

TELEPHONY_SUBSCRIPTION_SERVICE,

Page 1141: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Constructors

USBAccessoryAttachmentActivity()

Methods

onCreate( BundlesavedInstanceState )

Parameters

savedInstanceState

public USBAccessoryAttachmentActivity()

protected void onCreate(Bundle savedInstanceState)

Page 1142: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

onResume()

onNewIntent( Intent intent )

Parameters

intent

onDestroy()

protected void onResume()

protected void onNewIntent(Intent intent)

protected void onDestroy()

Page 1143: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Inherited Methods

Page 1144: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

From Class Methods

Page 1145: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

getIntent, setIntent, getApplication,

isChild, getParent, getWindowManager,

getWindow, getLoaderManager,

getCurrentFocus, onCreate, onCreate,

onRestoreInstanceState,

onRestoreInstanceState, onPostCreate,

onPostCreate, onStart, onRestart,

onStateNotSaved, onResume,

onPostResume, isVoiceInteraction,

isVoiceInteractionRoot,

getVoiceInteractor, onNewIntent,

onSaveInstanceState,

onSaveInstanceState, onPause,

onUserLeaveHint, onCreateThumbnail,

onCreateDescription,

onProvideAssistData,

onProvideAssistContent, showAssist,

onStop, onDestroy, reportFullyDrawn,

onConfigurationChanged,

getChangingConfigurations,

getLastNonConfigurationInstance,

onRetainNonConfigurationInstance,

onLowMemory, onTrimMemory,

getFragmentManager,

onAttachFragment, managedQuery,

startManagingCursor,

stopManagingCursor, findViewById,

getActionBar, setActionBar,

setContentView, setContentView,

setContentView, addContentView,

getContentTransitionManager,

setContentTransitionManager,

getContentScene,

setFinishOnTouchOutside,

setDefaultKeyMode, onKeyDown,

onKeyLongPress, onKeyUp,

onKeyMultiple, onBackPressed,

onKeyShortcut, onTouchEvent,

onTrackballEvent, onGenericMotionEvent,

onUserInteraction,

onWindowAttributesChanged,

onContentChanged,

onWindowFocusChanged,

onAttachedToWindow,

onDetachedFromWindow,

hasWindowFocus, dispatchKeyEvent,

dispatchKeyShortcutEvent,

Page 1146: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

android.view.ContextThemeWrapper

attachBaseContext,

applyOverrideConfiguration,

getResources, setTheme, getTheme,

getSystemService,

onApplyThemeResource

Page 1147: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

android.content.ContextWrapper

attachBaseContext, getBaseContext,

getAssets, getResources,

getPackageManager,

getContentResolver, getMainLooper,

getApplicationContext, setTheme,

getTheme, getClassLoader,

getPackageName, getApplicationInfo,

getPackageResourcePath,

getPackageCodePath,

getSharedPreferences, openFileInput,

openFileOutput, deleteFile,

getFileStreamPath, fileList, getFilesDir,

getNoBackupFilesDir, getExternalFilesDir,

getExternalFilesDirs, getObbDir,

getObbDirs, getCacheDir,

getCodeCacheDir, getExternalCacheDir,

getExternalCacheDirs,

getExternalMediaDirs, getDir,

openOrCreateDatabase,

openOrCreateDatabase, deleteDatabase,

getDatabasePath, databaseList,

getWallpaper, peekWallpaper,

getWallpaperDesiredMinimumWidth,

getWallpaperDesiredMinimumHeight,

setWallpaper, setWallpaper,

clearWallpaper, startActivity,

startActivity, startActivities,

startActivities, startIntentSender,

startIntentSender, sendBroadcast,

sendBroadcast, sendOrderedBroadcast,

sendOrderedBroadcast,

sendBroadcastAsUser,

sendBroadcastAsUser,

sendOrderedBroadcastAsUser,

sendStickyBroadcast,

sendStickyOrderedBroadcast,

removeStickyBroadcast,

sendStickyBroadcastAsUser,

sendStickyOrderedBroadcastAsUser,

removeStickyBroadcastAsUser,

registerReceiver, registerReceiver,

unregisterReceiver, startService,

stopService, bindService, unbindService,

startInstrumentation, getSystemService,

getSystemServiceName,

checkPermission,

checkCallingPermission,

Page 1148: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

android.content.Context

getAssets, getResources,

getPackageManager,

getContentResolver, getMainLooper,

getApplicationContext,

registerComponentCallbacks,

unregisterComponentCallbacks, getText,

getString, getString, getColor,

getDrawable, getColorStateList,

setTheme, getTheme,

obtainStyledAttributes,

obtainStyledAttributes,

obtainStyledAttributes,

obtainStyledAttributes, getClassLoader,

getPackageName, getApplicationInfo,

getPackageResourcePath,

getPackageCodePath,

getSharedPreferences, openFileInput,

openFileOutput, deleteFile,

getFileStreamPath, getFilesDir,

getNoBackupFilesDir, getExternalFilesDir,

getExternalFilesDirs, getObbDir,

getObbDirs, getCacheDir,

getCodeCacheDir, getExternalCacheDir,

getExternalCacheDirs,

getExternalMediaDirs, fileList, getDir,

openOrCreateDatabase,

openOrCreateDatabase, deleteDatabase,

getDatabasePath, databaseList,

getWallpaper, peekWallpaper,

getWallpaperDesiredMinimumWidth,

getWallpaperDesiredMinimumHeight,

setWallpaper, setWallpaper,

clearWallpaper, startActivity,

startActivity, startActivities,

startActivities, startIntentSender,

startIntentSender, sendBroadcast,

sendBroadcast, sendOrderedBroadcast,

sendOrderedBroadcast,

sendBroadcastAsUser,

sendBroadcastAsUser,

sendOrderedBroadcastAsUser,

sendStickyBroadcast,

sendStickyOrderedBroadcast,

removeStickyBroadcast,

sendStickyBroadcastAsUser,

sendStickyOrderedBroadcastAsUser,

removeStickyBroadcastAsUser,

Page 1149: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Class USBTransport

Hierarchyjava.lang.Object

com.smartdevicelink.transport.SdlTransport

Package

com.smartdevicelink.transport

Overview

Class that implements USB transport. A note about USB Accessory protocol. If

the device is already in the USB accessory mode, any side (computer or

Android) can open connection even if the other side is not connected.

Conversely, if one side simply disconnects, the other side will NOT be notified

and unblocked from reading data until some data is sent again or the USB is

physically disconnected.

java.lang.Object

getClass, hashCode, equals, clone,

toString, notify, notifyAll, wait, wait, wait,

finalize

Page 1150: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Quick Jump

Fields

• ACTION_USB_ACCESSORY_ATTACHED

Constructors

• USBTransport( USBTransportConfig usbTransportConfig,ITransportListener transportListener )

Methods

• getState() • sendBytesOverTransport(SdlPacket packet) • registerReciever() • openConnection() • disconnect() • stopReading() • getTransportType() • isAccessorySupported(UsbAccessory accessory) • getBroadcastComment()

Fields

ACTION_USB_ACCESSORY_ATTACHED

public static final java.lang.String ACTION_USB_ACCESSORY_ATTACHED

Page 1151: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Constant Value

"com.smartdevicelink.USB_ACCESSORY_ATTACHED"

Constructors

USBTransport(USBTransportConfigusbTransportConfig,ITransportListenertransportListener )

Constructs the USBTransport instance.

Parameters

usbTransportConfig

Config object for the USB transport

public USBTransport(USBTransportConfig usbTransportConfig,ITransportListener transportListener)

Page 1152: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

transportListener

Listener that gets notified on different transport events

Methods

getState()

Returns the current state of transport.

sendBytesOverTransport(SdlPacket packet )

Sends the array of bytes over USB.

public com.smartdevicelink.transport.USBTransport.State getState()

protected boolean sendBytesOverTransport(SdlPacket packet)

Page 1153: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

packet

The packet that is to be written out on the USB transport

registerReciever()

openConnection()

Opens a USB connection if not open yet.

Throws

• SdlException

public void registerReciever()

public void openConnection() throws SdlException

Page 1154: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

disconnect()

Closes the USB connection if open.

stopReading()

Asks the reader thread to stop while it's possible. If it's blocked on read(), there

is no way to stop it except for physical USB disconnect.

getTransportType()

Returns the type of the transport.

public void disconnect()

public void stopReading()

public TransportType getTransportType()

Page 1155: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

isAccessorySupported(UsbAccessory accessory )

Checks if the specified connected USB accessory is what we expect.

Parameters

accessory

Accessory to check

getBroadcastComment()

public static boolean isAccessorySupported(UsbAccessory accessory)

Page 1156: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Inherited Methods

From Class Methods

Class USBTransportConfig

Hierarchyjava.lang.Object

BaseTransportConfig

Package

com.smartdevicelink.transport

public java.lang.String getBroadcastComment()

com.smartdevicelink.transport.SdlTransp

ort

getIsConnected, handleReceivedPacket, s

endBytesOverTransport, sendBytes, hand

leTransportConnected, handleTransportDi

sconnected, handleTransportError, openC

onnection, disconnect, getTransportType,

getBroadcastComment

java.lang.Object

getClass, hashCode, equals, clone,

toString, notify, notifyAll, wait, wait, wait,

finalize

Page 1157: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Overview

NOTE: This should no longer be used. See the MultplexTransportConfig and

guides to understand how to implement USB multiplexing. This class and

method of USB connection will be removed in the next major release. If a router

service is available to handle multiplexing of the usb transport it will be used,

and this app will connect to whatever router service hosts the USB connection.

Quick Jump

Constructors

• USBTransportConfig( Context mainActivity )• USBTransportConfig( Context mainActivity, UsbAccessory

usbAccessory )• USBTransportConfig( Context mainActivity, boolean

shareConnection, boolean queryUsbAcc )• USBTransportConfig( Context mainActivity, UsbAccessory

usbAccessory, boolean shareConnection, boolean queryUsbAcc )

Methods

• getQueryUsbAcc() • getUSBContext() • getUsbAccessory() • setUsbAccessory(UsbAccessory value) • getTransportType()

Constructors

Page 1158: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

USBTransportConfig( ContextmainActivity )

NOTE: This should no longer be used. See the MultplexTransportConfig and

guides to understand how to implement USB multiplexing. This class and

method of USB connection will be removed in the next major release. If a router

service is available to handle multiplexing of the usb transport it will be used,

and this app will connect to whatever router service hosts the USB connection.

Parameters

mainActivity

context used to start USB transport

USBTransportConfig( ContextmainActivity, UsbAccessoryusbAccessory )

NOTE: This should no longer be used. See the MultplexTransportConfig and

guides to understand how to implement USB multiplexing. This class and

public USBTransportConfig(Context mainActivity)

Page 1159: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

method of USB connection will be removed in the next major release. If a router

service is available to handle multiplexing of the usb transport it will be used,

and this app will connect to whatever router service hosts the USB connection.

Parameters

mainActivity

context used to start USB transport

usbAccessory

the accessory that was given to this app

USBTransportConfig( ContextmainActivity, booleanshareConnection, booleanqueryUsbAcc )

NOTE: This should no longer be used. See the MultplexTransportConfig and

guides to understand how to implement USB multiplexing. This class and

method of USB connection will be removed in the next major release. If a router

public USBTransportConfig(Context mainActivity,UsbAccessory usbAccessory)

Page 1160: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

service is available to handle multiplexing of the usb transport it will be used,

and this app will connect to whatever router service hosts the USB connection.

Parameters

mainActivity

context used to start USB transport

shareConnection

enable other sessions on this app to use this USB connection

queryUsbAcc

attempt to query the USB accessory if none is provided

public USBTransportConfig(Context mainActivity,boolean shareConnection,boolean queryUsbAcc)

Page 1161: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

USBTransportConfig( ContextmainActivity, UsbAccessoryusbAccessory, booleanshareConnection, booleanqueryUsbAcc )

NOTE: This should no longer be used. See the MultplexTransportConfig and

guides to understand how to implement USB multiplexing. This class and

method of USB connection will be removed in the next major release. If a router

service is available to handle multiplexing of the usb transport it will be used,

and this app will connect to whatever router service hosts the USB connection.

Parameters

mainActivity

context used to start USB transport

usbAccessory

the accessory that was given to this app

public USBTransportConfig(Context mainActivity,UsbAccessory usbAccessory,boolean shareConnection,boolean queryUsbAcc)

Page 1162: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

shareConnection

enable other sessions on this app to use this USB connection

queryUsbAcc

attempt to query the USB accessory if none is provided

Methods

getQueryUsbAcc()

getUSBContext()

getUsbAccessory()

public java.lang.Boolean getQueryUsbAcc()

public android.content.Context getUSBContext()

Page 1163: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

setUsbAccessory( UsbAccessoryvalue )

Parameters

value

getTransportType()

public android.hardware.usb.UsbAccessory getUsbAccessory()

public void setUsbAccessory(UsbAccessory value)

public TransportType getTransportType()

Page 1164: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Inherited Methods

From Class Methods

Class UsbTransferProvider

Hierarchyjava.lang.Object

Package

com.smartdevicelink.transport

Quick Jump

Constructors

• UsbTransferProvider( Context context, ComponentName service,UsbAccessory usbAccessory,UsbTransferProvider.UsbTransferCallback callback )

java.lang.Object

getClass, hashCode, equals, clone,

toString, notify, notifyAll, wait, wait, wait,

finalize

Page 1165: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Methods

• setFlags(int flags) • checkIsConnected() • cancel()

Constructors

UsbTransferProvider( Contextcontext, ComponentNameservice, UsbAccessoryusbAccessory,UsbTransferProvider.UsbTransferCallbackcallback )

Parameters

context

public UsbTransferProvider(Context context,ComponentName service,UsbAccessory usbAccessory,UsbTransferProvider.UsbTransferCallback callback)

Page 1166: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

service

usbAccessory

callback

Methods

setFlags( int flags )

Parameters

flags

checkIsConnected()

public void setFlags(int flags)

Page 1167: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

cancel()

Inherited Methods

From Class Methods

InterfaceUsbTransferProvider.UsbTransferCallback

Package

com.smartdevicelink.transport

public void checkIsConnected()

public void cancel()

java.lang.Object

getClass, hashCode, equals, clone,

toString, notify, notifyAll, wait, wait, wait,

finalize

Page 1168: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Quick Jump

Methods

• onUsbTransferUpdate(boolean success)

Methods

onUsbTransferUpdate( booleansuccess )

Parameters

success

public void onUsbTransferUpdate(boolean success)

Page 1169: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Class Version

Hierarchyjava.lang.Object

Package

com.smartdevicelink.proxy

Quick Jump

Fields

• VERSION

Page 1170: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Constructors

• Version()

Fields

VERSION

Constructors

Version()

public static final java.lang.String VERSION

Page 1171: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Methods

Inherited Methods

From Class Methods

Class VideoStreamManager

Hierarchyjava.lang.Object

BaseVideoStreamManager

Package

com.smartdevicelink.managers.video

public Version()

java.lang.Object

getClass, hashCode, equals, clone,

toString, notify, notifyAll, wait, wait, wait,

finalize

Page 1172: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Quick Jump

Constructors

• VideoStreamManager( ISdl internalInterface )

Methods

• start(CompletionListener listener) • startRemoteDisplayStream(Context context,java.lang.Class<?

extends com.smartdevicelink.streaming.video.SdlRemoteDisplay>remoteDisplayClass,VideoStreamingParametersparameters,boolean encrypted)

• startStreaming(VideoStreamingParameters parameters,booleanencrypted)

• stopStreaming() • resumeStreaming() • dispose() • isServiceActive() • isStreaming() • isPaused() • currentVideoStreamState() • convertTouchEvent(OnTouchEvent touchEvent) • onTransportUpdate(java.util.List<TransportRecord>

connectedTransports,boolean audioStreamTransportAvail,booleanvideoStreamTransportAvail)

Constructors

VideoStreamManager( ISdlinternalInterface )

Page 1173: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

internalInterface

Methods

start( CompletionListenerlistener )

Parameters

listener

public VideoStreamManager(ISdl internalInterface)

public void start(CompletionListener listener)

Page 1174: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

startRemoteDisplayStream(Context context,java.lang.Class<? extendscom.smartdevicelink.streaming.video.SdlRemoteDisplay>remoteDisplayClass,VideoStreamingParametersparameters, boolean encrypted )

Starts streaming a remote display to the module if there is a connected

session. This method of streaming requires the device to be on API level 19 or

higher

Parameters

context

a context that can be used to create the remote display

public void startRemoteDisplayStream(Context context,java.lang.Class<? extends com.smartdevicelink.streaming.video.SdlRemoteDisplay> remoteDisplayClass,VideoStreamingParameters parameters,boolean encrypted)

Page 1175: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

remoteDisplayClass

class object of the remote display. This class will be used to create aninstance of the remote display and will be projected to the module

parameters

streaming parameters to be used when streaming. If null is sent in, thedefault/optimized options will be used. If you are unsure about whatparameters to be used it is best to just send null and let the systemdetermine what works best for the currently connected module.

encrypted

a flag of if the stream should be encrypted. Only set if you have asupplied encryption library that the module can understand.

startStreaming(VideoStreamingParametersparameters, boolean encrypted )

Starts video service, sets up encoder, haptic manager, and remote display.

Begins streaming the remote display.

protected void startStreaming(VideoStreamingParameters parameters,boolean encrypted)

Page 1176: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

parameters

Video streaming parameters including: codec which will be used forstreaming (currently, only VideoStreamingCodec.H264 is accepted),height and width of the video in pixels.

encrypted

Specify true if packets on this service have to be encrypted

stopStreaming()

Stops streaming from the remote display. To restart, call

resumeStreaming()

Resumes streaming after calling

public void stopStreaming()

public void resumeStreaming()

Page 1177: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

dispose()

Stops streaming, ends video streaming service and removes service listeners.

isServiceActive()

Check if a video service is currently active

isStreaming()

Check if video is currently streaming and visible

public void dispose()

public boolean isServiceActive()

public boolean isStreaming()

Page 1178: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

isPaused()

Check if video streaming has been paused due to app moving to background or

manually stopped

currentVideoStreamState()

Gets the current video streaming state as defined in @StreamingStateMachine

convertTouchEvent(OnTouchEvent touchEvent )

public boolean isPaused()

public int currentVideoStreamState()

protected android.view.MotionEvent convertTouchEvent(OnTouchEvent touchEvent)

Page 1179: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

touchEvent

onTransportUpdate(java.util.List<TransportRecord>connectedTransports, booleanaudioStreamTransportAvail,booleanvideoStreamTransportAvail )

Parameters

connectedTransports

protected void onTransportUpdate(java.util.List<TransportRecord> connectedTransports,boolean audioStreamTransportAvail,boolean videoStreamTransportAvail)

Page 1180: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

audioStreamTransportAvail

videoStreamTransportAvail

Inherited Methods

From Class Methods

Class VirtualDisplayEncoder

Hierarchyjava.lang.Object

Package

com.smartdevicelink.encoder

java.lang.Object

getClass, hashCode, equals, clone,

toString, notify, notifyAll, wait, wait, wait,

finalize

Page 1181: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Quick Jump

Constructors

• VirtualDisplayEncoder()

Methods

• init(Context context,IVideoStreamListeneroutputListener,VideoStreamingParameters streamingParams)

• getStreamingParams() • setStreamingParams(int displayDensity,ImageResolution

resolution,int frameRate,int bitrate,intinterval,VideoStreamingFormat format)

• setStreamingParams(VideoStreamingParametersstreamingParams)

• start() • shutDown() • getVirtualDisplay()

Constructors

VirtualDisplayEncoder()

Methods

public VirtualDisplayEncoder()

Page 1182: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

init( Context context,IVideoStreamListeneroutputListener,VideoStreamingParametersstreamingParams )

Initialization method for VirtualDisplayEncoder object. MUST be called before

start() or shutdown() Will overwrite previously set videoWeight and videoHeight

Parameters

context

to create the virtual display

outputListener

the listener that the video frames will be sent through

streamingParams

public void init(Context context,IVideoStreamListener outputListener,VideoStreamingParameters streamingParams) throws java.lang.Exception

Page 1183: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

parameters to create the virtual display and encoder

Throws

• java.lang.Exception

getStreamingParams()

setStreamingParams( intdisplayDensity, ImageResolutionresolution, int frameRate, intbitrate, int interval,VideoStreamingFormat format )

public VideoStreamingParameters getStreamingParams()

public void setStreamingParams(int displayDensity,ImageResolution resolution,int frameRate,int bitrate,int interval,VideoStreamingFormat format)

Page 1184: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

displayDensity

resolution

frameRate

bitrate

interval

format

setStreamingParams(VideoStreamingParametersstreamingParams )

Page 1185: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

streamingParams

start()

NOTE: Must call init() without error before calling this method. Prepares the

encoder and virtual display.

Throws

• java.lang.Exception

shutDown()

public void setStreamingParams(VideoStreamingParameters streamingParams)

public void start() throws java.lang.Exception

Page 1186: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

getVirtualDisplay()

Inherited Methods

From Class Methods

Class WiFiSocketFactory

Hierarchyjava.lang.Object

Package

public void shutDown()

public android.view.Display getVirtualDisplay()

java.lang.Object

getClass, hashCode, equals, clone,

toString, notify, notifyAll, wait, wait, wait,

finalize

Page 1187: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

com.smartdevicelink.transport.utl

Quick Jump

Constructors

• WiFiSocketFactory()

Methods

• createSocket(Context context)

Constructors

WiFiSocketFactory()

Methods

public WiFiSocketFactory()

Page 1188: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

createSocket( Context context )

Try to create a TCP socket which is bound to Wi-Fi network (for Android 5+) On

Android 5 and later, this method tries to create a Socket instance which is

bound to a Wi-Fi network. If the phone is not connected to a Wi-Fi network, or

the app lacks required permission (ACCESS_NETWORK_STATE), then this

method simply creates a Socket instance with "new Socket();".

Parameters

context

Inherited Methods

From Class Methods

public static java.net.Socket createSocket(Context context)

java.lang.Object

getClass, hashCode, equals, clone,

toString, notify, notifyAll, wait, wait, wait,

finalize

Page 1189: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Class WiProProtocol

Hierarchyjava.lang.Object

com.smartdevicelink.protocol.AbstractProtocol

Package

com.smartdevicelink.protocol

Quick Jump

Fields

• MAX_PROTOCOL_VERSION• V1_V2_MTU_SIZE• V3_V4_MTU_SIZE• V1_HEADER_SIZE• V2_HEADER_SIZE

Constructors

• WiProProtocol( IProtocolListener protocolListener )

Methods

• getMtu()• getMtu(SessionType type) • getVersion() Deprecated• getProtocolVersion() • getMajorVersionByte()

Page 1190: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

• setVersion(byte version) • StartProtocolSession(SessionType sessionType) • EndProtocolSession(SessionType sessionType,byte sessionID,int

hashId) • SendMessage(ProtocolMessage protocolMsg) • handlePacketReceived(SdlPacket packet) • getFrameAssemblerForFrame(SdlPacket packet) • StartProtocolService(SessionType sessionType,byte

sessionID,boolean isEncrypted) • SetHeartbeatSendInterval(int heartbeatSendInterval_ms) • SetHeartbeatReceiveInterval(int heartbeatReceiveInterval_ms) • SendHeartBeat(byte sessionID) • SendHeartBeatACK(byte sessionID) • EndProtocolService(SessionType serviceType,byte sessionID)

Fields

MAX_PROTOCOL_VERSION

V1_V2_MTU_SIZE

Constant Value

public static final Version MAX_PROTOCOL_VERSION

public static final int V1_V2_MTU_SIZE

Page 1191: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

1500

V3_V4_MTU_SIZE

Constant Value

131072

V1_HEADER_SIZE

Constant Value

8

public static final int V3_V4_MTU_SIZE

public static final int V1_HEADER_SIZE

Page 1192: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

V2_HEADER_SIZE

Constant Value

12

Constructors

WiProProtocol( IProtocolListenerprotocolListener )

Parameters

protocolListener

public static final int V2_HEADER_SIZE

public WiProProtocol(IProtocolListener protocolListener)

Page 1193: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Methods

getMtu()

Retrieves the max payload size for a packet to be sent to the module

getMtu( SessionType type )

Parameters

type

public int getMtu()

public long getMtu(SessionType type)

Page 1194: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

getVersion()

Deprecated

Use getProtocolVersion() or getMajorVersionByte instead.

Returns the Major version of the currently used protocol version

getProtocolVersion()

getMajorVersionByte()

public byte getVersion()

public Version getProtocolVersion()

public byte getMajorVersionByte()

Page 1195: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

setVersion( byte version )

This method will set the major protocol version that we should use. It will also

set the default MTU based on version.

Parameters

version

StartProtocolSession(SessionType sessionType )

public void setVersion(byte version)

public void StartProtocolSession(SessionType sessionType)

Page 1196: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

sessionType

EndProtocolSession(SessionType sessionType, bytesessionID, int hashId )

Parameters

sessionType

sessionID

hashId

public void EndProtocolSession(SessionType sessionType,byte sessionID,int hashId)

Page 1197: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

SendMessage( ProtocolMessageprotocolMsg )

Parameters

protocolMsg

handlePacketReceived(SdlPacket packet )

public void SendMessage(ProtocolMessage protocolMsg)

public void handlePacketReceived(SdlPacket packet)

Page 1198: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

packet

getFrameAssemblerForFrame(SdlPacket packet )

Parameters

packet

StartProtocolService(SessionType sessionType, bytesessionID, boolean isEncrypted )

protected com.smartdevicelink.protocol.WiProProtocol.MessageFrameAssembler getFrameAssemblerForFrame(SdlPacket packet)

Page 1199: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

sessionType

sessionID

isEncrypted

SetHeartbeatSendInterval( intheartbeatSendInterval_ms )

public void StartProtocolService(SessionType sessionType,byte sessionID,boolean isEncrypted)

public void SetHeartbeatSendInterval(int heartbeatSendInterval_ms)

Page 1200: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

heartbeatSendInterval_ms

SetHeartbeatReceiveInterval( intheartbeatReceiveInterval_ms )

Parameters

heartbeatReceiveInterval_ms

SendHeartBeat( byte sessionID )

public void SetHeartbeatReceiveInterval(int heartbeatReceiveInterval_ms)

public void SendHeartBeat(byte sessionID)

Page 1201: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

sessionID

SendHeartBeatACK( bytesessionID )

Parameters

sessionID

EndProtocolService( SessionTypeserviceType, byte sessionID )

public void SendHeartBeatACK(byte sessionID)

Page 1202: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

serviceType

sessionID

public void EndProtocolService(SessionType serviceType,byte sessionID)

Page 1203: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Inherited Methods

From Class Methods

ClassWiProProtocol.MessageFrameAssembler

Hierarchyjava.lang.Object

com.smartdevicelink.protocol.AbstractPr

otocol

SendMessage, getMtu, getMtu, handlePa

cketReceived, StartProtocolSession, Start

ProtocolService, EndProtocolService, End

ProtocolSession, SetHeartbeatSendInterv

al, SetHeartbeatReceiveInterval, SendHe

artBeat, SendHeartBeatACK, handleProto

colFrameReceived, handlePacketToSend,

handleProtocolMessageReceived, handle

ProtocolSessionEndedNACK, handleProto

colSessionEnded, handleProtocolSession

Started, handleProtocolSessionNACKed, h

andleProtocolError, handleProtocolHeartb

eat, handleProtocolHeartbeatACK, handle

ProtocolServiceDataACK, onResetIncomin

gHeartbeat

java.lang.Object

getClass, hashCode, equals, clone,

toString, notify, notifyAll, wait, wait, wait,

finalize

Page 1204: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Package

com.smartdevicelink.protocol

Quick Jump

Fields

• hasFirstFrame• accumulator• totalSize• framesRemaining

Constructors

• MessageFrameAssembler()

Methods

• handleFirstDataFrame(SdlPacket packet) • handleRemainingFrame(SdlPacket packet) • notifyIfFinished(SdlPacket packet) • handleMultiFrameMessageFrame(SdlPacket packet)

Page 1205: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

• handleFrame(SdlPacket packet)

Fields

hasFirstFrame

accumulator

totalSize

protected boolean hasFirstFrame

protected java.io.ByteArrayOutputStream accumulator

protected int totalSize

Page 1206: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

framesRemaining

Constructors

MessageFrameAssembler()

Methods

handleFirstDataFrame(SdlPacket packet )

protected int framesRemaining

protected MessageFrameAssembler()

protected void handleFirstDataFrame(SdlPacket packet)

Page 1207: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

packet

handleRemainingFrame(SdlPacket packet )

Parameters

packet

notifyIfFinished( SdlPacketpacket )

protected void handleRemainingFrame(SdlPacket packet)

Page 1208: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

Parameters

packet

handleMultiFrameMessageFrame( SdlPacket packet )

Parameters

packet

protected void notifyIfFinished(SdlPacket packet)

protected void handleMultiFrameMessageFrame(SdlPacket packet)

Page 1209: SmartDeviceLink - Android/Java Documentation · Android/Java Documentation Document current as of 05/13/2019 02:50 PM. Class AbstractProtocol ... returned as they are from the system

handleFrame( SdlPacket packet )

Parameters

packet

Inherited Methods

From Class Methods

protected void handleFrame(SdlPacket packet)

java.lang.Object

getClass, hashCode, equals, clone,

toString, notify, notifyAll, wait, wait, wait,

finalize