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
SERVICE_BEST_EFFORT
public static final int SERVICE_BEST_EFFORT
Constant Value: 1 (0x00000001)
SERVICE_GUARANTEED
public static final int SERVICE_GUARANTEED
Constant Value: 2 (0x00000002)
SERVICE_NO_TRAFFIC
public static final int SERVICE_NO_TRAFFIC
Constant Value: 0 (0x00000000)
Fields
Public constructors
BluetoothHidDeviceAppQosSettings
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 Specification 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
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 |
writeToParcel
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.
This value cannot be null. |
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 |