# Print output for @column tags ?>
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:
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 | |
|---|---|
public static final int MAX
Constant Value: -1 (0xffffffff)
public static final int SERVICE_BEST_EFFORT
Constant Value: 1 (0x00000001)
public static final int SERVICE_GUARANTEED
Constant Value: 2 (0x00000002)
public static final int SERVICE_NO_TRAFFIC
Constant Value: 0 (0x00000000)
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 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(android.os.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.
Value is either 0 or CONTENTS_FILE_DESCRIPTOR |
public int getDelayVariation ()
| Returns | |
|---|---|
int |
|
public int getLatency ()
| Returns | |
|---|---|
int |
|
public int getPeakBandwidth ()
| Returns | |
|---|---|
int |
|
public int getServiceType ()
| Returns | |
|---|---|
int |
|
public int getTokenBucketSize ()
| Returns | |
|---|---|
int |
|
public int getTokenRate ()
| Returns | |
|---|---|
int |
|
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.
Value is either 0 or a combination of Parcelable.PARCELABLE_WRITE_RETURN_VALUE, and android.os.Parcelable.PARCELABLE_ELIDE_DUPLICATES |