Package: android.hardware.tetheroffload.control@1.0

types

Properties

OffloadCallbackEvent

enum OffloadCallbackEvent: uint32_t
Details
Members
OFFLOAD_STARTED = 1
Indicate that a working configuration has been programmed and the hardware management process has begun forwarding traffic.
OFFLOAD_STOPPED_ERROR = 2
Indicate that an error has occurred which has disrupted hardware acceleration.Software routing may still be attempted;however, statistics may be temporarily unavailable.Statistics may be recovered after OFFLOAD_SUPPORT_AVAILABLE event is fired.
OFFLOAD_STOPPED_UNSUPPORTED = 3
Indicate that the device has moved to a RAT on which hardware acceleration is not supported.Subsequent calls to setUpstreamParameters and add/removeDownstream will likely fail and cannot be presumed to be saved inside of the hardware management process.Upon receiving OFFLOAD_SUPPORT_AVAIALBLE, the client may reprogram the hardware management process to begin offload again.
OFFLOAD_SUPPORT_AVAILABLE = 4
Indicate that the hardware management process is willing and able to provide support for hardware acceleration at this time.If applicable, the client may query for statistics.If offload is desired, the client must reprogram the hardware management process.
OFFLOAD_STOPPED_LIMIT_REACHED = 5
Hardware acceleration is no longer in effect and must be reprogrammed in order to resume.This event is fired when the limit, applied in setDataLimit, has expired.It is recommended that the client query for statistics immediately after receiving this event.

NetworkProtocol

enum NetworkProtocol: uint32_t
Details
Members
TCP = 6
UDP = 17

IPv4AddrPortPair

struct IPv4AddrPortPair {string addr; uint16_t port}
Details
Members
addr
IPv4 Address and Port
port

NatTimeoutUpdate

struct NatTimeoutUpdate {IPv4AddrPortPair src; IPv4AddrPortPair dst; NetworkProtocol proto}
Details
Members
src
dst
proto