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

added in API level 28
public static final int MAX

Constant Value: -1 (0xffffffff)

SERVICE_BEST_EFFORT

added in API level 28
public static final int SERVICE_BEST_EFFORT

Constant Value: 1 (0x00000001)

SERVICE_GUARANTEED

added in API level 28
public static final int SERVICE_GUARANTEED

Constant Value: 2 (0x00000002)

SERVICE_NO_TRAFFIC

added in API level 28
public static final int SERVICE_NO_TRAFFIC

Constant Value: 0 (0x00000000)

Fields

CREATOR

added in API level 28
public static final Creator<BluetoothHidDeviceAppQosSettings> CREATOR

Public constructors

BluetoothHidDeviceAppQosSettings

added in API level 28
public 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

added in API level 28
public 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

added in API level 28
public int getDelayVariation ()

Returns
int

getLatency

added in API level 28
public int getLatency ()

Returns
int

getPeakBandwidth

added in API level 28
public int getPeakBandwidth ()

Returns
int

getServiceType

added in API level 28
public int getServiceType ()

Returns
int

getTokenBucketSize

added in API level 28
public int getTokenBucketSize ()

Returns
int

getTokenRate

added in API level 28
public int getTokenRate ()

Returns
int

writeToParcel

added in API level 28
public 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.PARCELABLE_WRITE_RETURN_VALUE.