BluetoothHidDeviceAppQosSettings

public final class BluetoothHidDeviceAppQosSettings
extends Object implements Parcelable

java.lang.Object
   ↳ android.bluetooth.BluetoothHidDeviceAppQosSettings


Represents the Quality of Service (QoS) settings for a Bluetooth HID Device application.

The BluetoothHidDevice framework will update the L2CAP QoS settings for the app during registration.

See also:

Summary

Constants

int MAX

int SERVICE_BEST_EFFORT

int SERVICE_GUARANTEED

int SERVICE_NO_TRAFFIC

Inherited constants

Fields

public static final Creator<BluetoothHidDeviceAppQosSettings> CREATOR

Public constructors

BluetoothHidDeviceAppQosSettings(int serviceType, int tokenRate, int tokenBucketSize, int peakBandwidth, int latency, int delayVariation)

Create a BluetoothHidDeviceAppQosSettings object for the Bluetooth L2CAP channel.

Public methods

int describeContents()

Describe the kinds of special objects contained in this Parcelable instance's marshaled representation.

int getDelayVariation()
int getLatency()
int getPeakBandwidth()
int getServiceType()
int getTokenBucketSize()
int getTokenRate()
void writeToParcel(Parcel out, int flags)

Flatten this object in to a Parcel.

Inherited methods

Constants

MAX

int MAX

Constant Value: -1 (0xffffffff)

SERVICE_BEST_EFFORT

int SERVICE_BEST_EFFORT

Constant Value: 1 (0x00000001)

SERVICE_GUARANTEED

int SERVICE_GUARANTEED

Constant Value: 2 (0x00000002)

SERVICE_NO_TRAFFIC

int SERVICE_NO_TRAFFIC

Constant Value: 0 (0x00000000)

Fields

Public constructors

BluetoothHidDeviceAppQosSettings

BluetoothHidDeviceAppQosSettings (int serviceType, 
                int tokenRate, 
                int tokenBucketSize, 
                int peakBandwidth, 
                int latency, 
                int delayVariation)

Create a BluetoothHidDeviceAppQosSettings object for the Bluetooth L2CAP channel. The QoS Settings is optional. Please refer to Bluetooth HID Specfication v1.1.1 Section 5.2 and Appendix D for parameters.

Parameters
serviceType int: L2CAP service type, default = SERVICE_BEST_EFFORT

tokenRate int: L2CAP token rate, default = 0

tokenBucketSize int: L2CAP token bucket size, default = 0

peakBandwidth int: L2CAP peak bandwidth, default = 0

latency int: L2CAP latency, default = MAX

delayVariation int: L2CAP delay variation, default = MAX

Public methods

describeContents

int describeContents ()

Describe the kinds of special objects contained in this Parcelable instance's marshaled representation. For example, if the object will include a file descriptor in the output of writeToParcel(Parcel, int), the return value of this method must include the CONTENTS_FILE_DESCRIPTOR bit.

Returns
int a bitmask indicating the set of special object types marshaled by this Parcelable object instance.

getDelayVariation

int getDelayVariation ()

Returns
int

getLatency

int getLatency ()

Returns
int

getPeakBandwidth

int getPeakBandwidth ()

Returns
int

getServiceType

int getServiceType ()

Returns
int

getTokenBucketSize

int getTokenBucketSize ()

Returns
int

getTokenRate

int getTokenRate ()

Returns
int

writeToParcel

void writeToParcel (Parcel out, 
                int flags)

Flatten this object in to a Parcel.

Parameters
out Parcel: The Parcel in which the object should be written.

flags int: Additional flags about how the object should be written. May be 0 or PARCELABLE_WRITE_RETURN_VALUE.