Expand Minimize Picture-in-picture Power Device Status Voice Recognition Skip Back Skip Forward Minus Plus Play Search
Internet Explorer alert
This browser is not recommended for use with smartdevicelink.com, and may not function properly. Upgrade to a different browser to guarantee support of all features.
close alert
To Top Created with Sketch. To Top
To Bottom Created with Sketch. To Bottom
Android Documentation
TransportConstants

Class TransportConstants

Hierarchy

java.lang.Object

Package
com.smartdevicelink.transport

Overview

These constants are shared between the router service and the SDL base service. They are defined as strings/actions/values that both of them can understand. Attempting to use standard HTTP error codes as definitions.

Quick Jump

Fields
Constructors

Fields

START_ROUTER_SERVICE_ACTION

public static final java.lang.String START_ROUTER_SERVICE_ACTION
Constant Value
"sdl.router.startservice"

ROUTER_SERVICE_ACTION

public static final java.lang.String ROUTER_SERVICE_ACTION
Constant Value
"com.smartdevicelink.router.service"

FOREGROUND_EXTRA

public static final java.lang.String FOREGROUND_EXTRA
Constant Value
"foreground"

CONFIRMED_SDL_DEVICE

public static final java.lang.String CONFIRMED_SDL_DEVICE
Constant Value
"confirmed_sdl_device"

VEHICLE_INFO_EXTRA

public static final java.lang.String VEHICLE_INFO_EXTRA
Constant Value
"vehicle_info"

CONNECTION_TYPE_EXTRA

public static final java.lang.String CONNECTION_TYPE_EXTRA
Constant Value
"connection_type"

PENDING_INTENT_EXTRA

public static final java.lang.String PENDING_INTENT_EXTRA
Constant Value
"pending_intent"

BIND_LOCATION_PACKAGE_NAME_EXTRA

public static final java.lang.String BIND_LOCATION_PACKAGE_NAME_EXTRA
Constant Value
"BIND_LOCATION_PACKAGE_NAME_EXTRA"

BIND_LOCATION_CLASS_NAME_EXTRA

public static final java.lang.String BIND_LOCATION_CLASS_NAME_EXTRA
Constant Value
"BIND_LOCATION_CLASS_NAME_EXTRA"

ALT_TRANSPORT_RECEIVER

public static final java.lang.String ALT_TRANSPORT_RECEIVER
Constant Value
"com.sdl.android.alttransport"

ALT_TRANSPORT_CONNECTION_STATUS_EXTRA

public static final java.lang.String ALT_TRANSPORT_CONNECTION_STATUS_EXTRA
Constant Value
"connection_status"

ALT_TRANSPORT_DISCONNECTED

public static final int ALT_TRANSPORT_DISCONNECTED

ALT_TRANSPORT_CONNECTED

public static final int ALT_TRANSPORT_CONNECTED
Constant Value
1

ALT_TRANSPORT_READ

public static final java.lang.String ALT_TRANSPORT_READ
Constant Value
"read"

ALT_TRANSPORT_WRITE

public static final java.lang.String ALT_TRANSPORT_WRITE
Constant Value
"write"

ALT_TRANSPORT_ADDRESS_EXTRA

public static final java.lang.String ALT_TRANSPORT_ADDRESS_EXTRA
Constant Value
"altTransportAddress"

START_ROUTER_SERVICE_SDL_ENABLED_EXTRA

public static final java.lang.String START_ROUTER_SERVICE_SDL_ENABLED_EXTRA
Constant Value
"sdl_enabled"

START_ROUTER_SERVICE_SDL_ENABLED_APP_PACKAGE

public static final java.lang.String START_ROUTER_SERVICE_SDL_ENABLED_APP_PACKAGE
Constant Value
"package_name"

START_ROUTER_SERVICE_SDL_ENABLED_CMP_NAME

public static final java.lang.String START_ROUTER_SERVICE_SDL_ENABLED_CMP_NAME
Constant Value
"component_name"

START_ROUTER_SERVICE_TRANSPORT_CONNECTED

public static final java.lang.String START_ROUTER_SERVICE_TRANSPORT_CONNECTED
Constant Value
"transport_connected"

START_ROUTER_SERVICE_SDL_ENABLED_PING

public static final java.lang.String START_ROUTER_SERVICE_SDL_ENABLED_PING
Constant Value
"ping"

FORCE_TRANSPORT_CONNECTED

public static final java.lang.String FORCE_TRANSPORT_CONNECTED
Constant Value
"force_connect"

ROUTER_SERVICE_VALIDATED

public static final java.lang.String ROUTER_SERVICE_VALIDATED
Constant Value
"router_service_validated"

CONNECT_AS_CLIENT_BOOLEAN_EXTRA

public static final java.lang.String CONNECT_AS_CLIENT_BOOLEAN_EXTRA
Constant Value
"connectAsClient"

PACKAGE_NAME_STRING

public static final java.lang.String PACKAGE_NAME_STRING
Constant Value
"package.name"

APP_ID_EXTRA

public static final java.lang.String APP_ID_EXTRA
Constant Value
"app.id"

APP_ID_EXTRA_STRING

public static final java.lang.String APP_ID_EXTRA_STRING
Constant Value
"app.id.string"

ROUTER_MESSAGING_VERSION

public static final java.lang.String ROUTER_MESSAGING_VERSION
Constant Value
"router.messaging.version"

SESSION_ID_EXTRA

public static final java.lang.String SESSION_ID_EXTRA
Constant Value
"session.id"

ENABLE_LEGACY_MODE_EXTRA

public static final java.lang.String ENABLE_LEGACY_MODE_EXTRA
Constant Value
"ENABLE_LEGACY_MODE_EXTRA"

HARDWARE_DISCONNECTED

public static final java.lang.String HARDWARE_DISCONNECTED
Constant Value
"hardware.disconect"

TRANSPORT_DISCONNECTED

public static final java.lang.String TRANSPORT_DISCONNECTED
Constant Value
"transport.disconect"

HARDWARE_CONNECTED

public static final java.lang.String HARDWARE_CONNECTED
Constant Value
"hardware.connected"

CURRENT_HARDWARE_CONNECTED

public static final java.lang.String CURRENT_HARDWARE_CONNECTED
Constant Value
"current.hardware.connected"

SEND_PACKET_TO_APP_LOCATION_EXTRA_NAME

public static final java.lang.String SEND_PACKET_TO_APP_LOCATION_EXTRA_NAME
Constant Value
"senderintent"

SEND_PACKET_TO_ROUTER_LOCATION_EXTRA_NAME

public static final java.lang.String SEND_PACKET_TO_ROUTER_LOCATION_EXTRA_NAME
Constant Value
"routerintent"

BIND_REQUEST_TYPE_CLIENT

public static final java.lang.String BIND_REQUEST_TYPE_CLIENT
Constant Value
"BIND_REQUEST_TYPE_CLIENT"

BIND_REQUEST_TYPE_ALT_TRANSPORT

public static final java.lang.String BIND_REQUEST_TYPE_ALT_TRANSPORT
Constant Value
"BIND_REQUEST_TYPE_ALT_TRANSPORT"

BIND_REQUEST_TYPE_STATUS

public static final java.lang.String BIND_REQUEST_TYPE_STATUS
Constant Value
"BIND_REQUEST_TYPE_STATUS"

BIND_REQUEST_TYPE_USB_PROVIDER

public static final java.lang.String BIND_REQUEST_TYPE_USB_PROVIDER
Constant Value
"BIND_REQUEST_TYPE_USB_PROVIDER"

PING_ROUTER_SERVICE_EXTRA

public static final java.lang.String PING_ROUTER_SERVICE_EXTRA
Constant Value
"ping.router.service"

SDL_NOTIFICATION_CHANNEL_ID

public static final java.lang.String SDL_NOTIFICATION_CHANNEL_ID
Constant Value
"sdl_notification_channel"

SDL_NOTIFICATION_CHANNEL_NAME

public static final java.lang.String SDL_NOTIFICATION_CHANNEL_NAME
Constant Value
"SmartDeviceLink"

SDL_ERROR_NOTIFICATION_CHANNEL_ID

public static final java.lang.String SDL_ERROR_NOTIFICATION_CHANNEL_ID
Constant Value
"sdl_error_notification_channel"

SDL_ERROR_NOTIFICATION_CHANNEL_ID_INT

public static final int SDL_ERROR_NOTIFICATION_CHANNEL_ID_INT
Constant Value
99

ROUTER_REGISTER_ALT_TRANSPORT_RESPONSE

public static final int ROUTER_REGISTER_ALT_TRANSPORT_RESPONSE
Constant Value
2

ROUTER_REGISTER_ALT_TRANSPORT_RESPONSE_SUCESS

public static final int ROUTER_REGISTER_ALT_TRANSPORT_RESPONSE_SUCESS

ROUTER_REGISTER_ALT_TRANSPORT_ALREADY_CONNECTED

public static final int ROUTER_REGISTER_ALT_TRANSPORT_ALREADY_CONNECTED
Constant Value
1

ROUTER_SHUTTING_DOWN_NOTIFICATION

public static final int ROUTER_SHUTTING_DOWN_NOTIFICATION
Constant Value
15

ROUTER_SHUTTING_DOWN_REASON_NEWER_SERVICE

public static final int ROUTER_SHUTTING_DOWN_REASON_NEWER_SERVICE

ROUTER_REGISTER_CLIENT

public static final int ROUTER_REGISTER_CLIENT
Constant Value
1

ROUTER_REGISTER_CLIENT_RESPONSE

public static final int ROUTER_REGISTER_CLIENT_RESPONSE
Constant Value
2

REGISTRATION_RESPONSE_SUCESS

public static final int REGISTRATION_RESPONSE_SUCESS

REGISTRATION_RESPONSE_DENIED_AUTHENTICATION_FAILED

public static final int REGISTRATION_RESPONSE_DENIED_AUTHENTICATION_FAILED
Constant Value
1

REGISTRATION_RESPONSE_DENIED_NO_CONNECTION

public static final int REGISTRATION_RESPONSE_DENIED_NO_CONNECTION
Constant Value
2

REGISTRATION_RESPONSE_DENIED_APP_ID_NOT_INCLUDED

public static final int REGISTRATION_RESPONSE_DENIED_APP_ID_NOT_INCLUDED
Constant Value
3

REGISTRATION_RESPONSE_DENIED_LEGACY_MODE_ENABLED

public static final int REGISTRATION_RESPONSE_DENIED_LEGACY_MODE_ENABLED
Constant Value
4

REGISTRATION_RESPONSE_DENIED_UNKNOWN

public static final int REGISTRATION_RESPONSE_DENIED_UNKNOWN
Constant Value
255

ROUTER_UNREGISTER_CLIENT

public static final int ROUTER_UNREGISTER_CLIENT
Constant Value
3

ROUTER_UNREGISTER_CLIENT_RESPONSE

public static final int ROUTER_UNREGISTER_CLIENT_RESPONSE
Constant Value
4

UNREGISTRATION_RESPONSE_SUCESS

public static final int UNREGISTRATION_RESPONSE_SUCESS

UNREGISTRATION_RESPONSE_FAILED_APP_ID_NOT_FOUND

public static final int UNREGISTRATION_RESPONSE_FAILED_APP_ID_NOT_FOUND
Constant Value
1

HARDWARE_CONNECTION_EVENT

public static final int HARDWARE_CONNECTION_EVENT
Constant Value
5

HARDWARE_CONNECTION_EVENT_CONNECTED

public static final int HARDWARE_CONNECTION_EVENT_CONNECTED
Constant Value
16

HARDWARE_CONNECTION_EVENT_DISCONNECTED

public static final int HARDWARE_CONNECTION_EVENT_DISCONNECTED
Constant Value
48

ROUTER_REQUEST_BT_CLIENT_CONNECT

public static final int ROUTER_REQUEST_BT_CLIENT_CONNECT
Constant Value
16

ROUTER_REQUEST_BT_CLIENT_CONNECT_RESPONSE

public static final int ROUTER_REQUEST_BT_CLIENT_CONNECT_RESPONSE
Constant Value
17

ROUTER_REQUEST_NEW_SESSION

public static final int ROUTER_REQUEST_NEW_SESSION
Constant Value
18

ROUTER_REQUEST_NEW_SESSION_RESPONSE

public static final int ROUTER_REQUEST_NEW_SESSION_RESPONSE
Constant Value
19

ROUTER_REQUEST_NEW_SESSION_RESPONSE_SUCESS

public static final int ROUTER_REQUEST_NEW_SESSION_RESPONSE_SUCESS

ROUTER_REQUEST_NEW_SESSION_RESPONSE_FAILED_APP_NOT_FOUND

public static final int ROUTER_REQUEST_NEW_SESSION_RESPONSE_FAILED_APP_NOT_FOUND
Constant Value
1

ROUTER_REQUEST_NEW_SESSION_RESPONSE_FAILED_APP_ID_NOT_INCL

public static final int ROUTER_REQUEST_NEW_SESSION_RESPONSE_FAILED_APP_ID_NOT_INCL
Constant Value
2

ROUTER_REMOVE_SESSION

public static final int ROUTER_REMOVE_SESSION
Constant Value
20

ROUTER_REMOVE_SESSION_RESPONSE

public static final int ROUTER_REMOVE_SESSION_RESPONSE
Constant Value
21

ROUTER_REMOVE_SESSION_RESPONSE_SUCESS

public static final int ROUTER_REMOVE_SESSION_RESPONSE_SUCESS

ROUTER_REMOVE_SESSION_RESPONSE_FAILED_APP_NOT_FOUND

public static final int ROUTER_REMOVE_SESSION_RESPONSE_FAILED_APP_NOT_FOUND
Constant Value
1

ROUTER_REMOVE_SESSION_RESPONSE_FAILED_APP_ID_NOT_INCL

public static final int ROUTER_REMOVE_SESSION_RESPONSE_FAILED_APP_ID_NOT_INCL
Constant Value
2

ROUTER_REMOVE_SESSION_RESPONSE_FAILED_SESSION_NOT_FOUND

public static final int ROUTER_REMOVE_SESSION_RESPONSE_FAILED_SESSION_NOT_FOUND
Constant Value
3

ROUTER_REMOVE_SESSION_RESPONSE_FAILED_SESSION_ID_NOT_INCL

public static final int ROUTER_REMOVE_SESSION_RESPONSE_FAILED_SESSION_ID_NOT_INCL
Constant Value
4

ROUTER_SEND_PACKET

public static final int ROUTER_SEND_PACKET
Constant Value
32

ROUTER_RECEIVED_PACKET

public static final int ROUTER_RECEIVED_PACKET
Constant Value
38

ROUTER_REQUEST_SECONDARY_TRANSPORT_CONNECTION

public static final int ROUTER_REQUEST_SECONDARY_TRANSPORT_CONNECTION
Constant Value
48

FORMED_PACKET_EXTRA_NAME

public static final java.lang.String FORMED_PACKET_EXTRA_NAME
Constant Value
"packet"

BYTES_TO_SEND_EXTRA_NAME

public static final java.lang.String BYTES_TO_SEND_EXTRA_NAME
Constant Value
"bytes"

BYTES_TO_SEND_EXTRA_OFFSET

public static final java.lang.String BYTES_TO_SEND_EXTRA_OFFSET
Constant Value
"offset"

BYTES_TO_SEND_EXTRA_COUNT

public static final java.lang.String BYTES_TO_SEND_EXTRA_COUNT
Constant Value
"count"

BYTES_TO_SEND_FLAGS

public static final java.lang.String BYTES_TO_SEND_FLAGS
Constant Value
"flags"

PACKET_PRIORITY_COEFFICIENT

public static final java.lang.String PACKET_PRIORITY_COEFFICIENT
Constant Value
"priority_coefficient"

TRANSPORT_TYPE

public static final java.lang.String TRANSPORT_TYPE
Constant Value
"transport_type"

TRANSPORT_ADDRESS

public static final java.lang.String TRANSPORT_ADDRESS
Constant Value
"transport_address"

BYTES_TO_SEND_FLAG_NONE

public static final int BYTES_TO_SEND_FLAG_NONE

BYTES_TO_SEND_FLAG_SDL_PACKET_INCLUDED

public static final int BYTES_TO_SEND_FLAG_SDL_PACKET_INCLUDED
Constant Value
1

BYTES_TO_SEND_FLAG_LARGE_PACKET_START

public static final int BYTES_TO_SEND_FLAG_LARGE_PACKET_START
Constant Value
2

BYTES_TO_SEND_FLAG_LARGE_PACKET_CONT

public static final int BYTES_TO_SEND_FLAG_LARGE_PACKET_CONT
Constant Value
4

BYTES_TO_SEND_FLAG_LARGE_PACKET_END

public static final int BYTES_TO_SEND_FLAG_LARGE_PACKET_END
Constant Value
8

CONNECTED_DEVICE_STRING_EXTRA_NAME

public static final java.lang.String CONNECTED_DEVICE_STRING_EXTRA_NAME
Constant Value
"devicestring"

PACKET_SENDING_ERROR_NOT_REGISTERED_APP

public static final int PACKET_SENDING_ERROR_NOT_REGISTERED_APP

PACKET_SENDING_ERROR_NOT_CONNECTED

public static final int PACKET_SENDING_ERROR_NOT_CONNECTED
Constant Value
1

PACKET_SENDING_ERROR_UKNOWN

public static final int PACKET_SENDING_ERROR_UKNOWN
Constant Value
255

ROUTER_SERVICE_VERSION

public static final java.lang.String ROUTER_SERVICE_VERSION
Constant Value
"router_service_version"

ROUTER_STATUS_CONNECTED_STATE_REQUEST

public static final int ROUTER_STATUS_CONNECTED_STATE_REQUEST
Constant Value
1

ROUTER_STATUS_CONNECTED_STATE_RESPONSE

public static final int ROUTER_STATUS_CONNECTED_STATE_RESPONSE
Constant Value
2

ROUTER_STATUS_FLAG_TRIGGER_PING

public static final int ROUTER_STATUS_FLAG_TRIGGER_PING
Constant Value
2

USB_CONNECTED_WITH_DEVICE

public static final int USB_CONNECTED_WITH_DEVICE
Constant Value
85

ROUTER_USB_ACC_RECEIVED

public static final int ROUTER_USB_ACC_RECEIVED
Constant Value
86

IAP_BLUETOOTH

public static final java.lang.String IAP_BLUETOOTH
Constant Value
"IAP_BLUETOOTH"

IAP_USB

public static final java.lang.String IAP_USB
Constant Value
"IAP_USB"

IAP_USB_HOST_MODE

public static final java.lang.String IAP_USB_HOST_MODE
Constant Value
"TCP_WIFI"

IAP_CARPLAY

public static final java.lang.String IAP_CARPLAY
Constant Value
"IAP_CARPLAY"

SPP_BLUETOOTH

public static final java.lang.String SPP_BLUETOOTH
Constant Value
"SPP_BLUETOOTH"

AOA_USB

public static final java.lang.String AOA_USB
Constant Value
"AOA_USB"

TCP_WIFI

public static final java.lang.String TCP_WIFI
Constant Value
"TCP_WIFI"

ACTION_USB_ACCESSORY_ATTACHED

public static final java.lang.String ACTION_USB_ACCESSORY_ATTACHED
Constant Value
"com.smartdevicelink.USB_ACCESSORY_ATTACHED"

Constructors

TransportConstants()

public TransportConstants()

Methods

Inherited Methods

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