BluetoothHidDeviceAppQosSettings
class BluetoothHidDeviceAppQosSettings : Parcelable
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.
Summary
Inherited constants |
From class Parcelable
Int |
CONTENTS_FILE_DESCRIPTOR
Descriptor bit used with describeContents() : indicates that the Parcelable object's flattened representation includes a file descriptor.
|
Int |
PARCELABLE_WRITE_RETURN_VALUE
Flag for use with writeToParcel : the object being written is a return value, that is the result of a function such as "Parcelable someFunction() ", "void someFunction(out Parcelable) ", or "void someFunction(inout Parcelable) ". Some implementations may want to release resources at this point.
|
|
Public constructors |
Create a BluetoothHidDeviceAppQosSettings object for the Bluetooth L2CAP channel.
|
Constants
MAX
static val MAX: Int
Value: -1
SERVICE_BEST_EFFORT
static val SERVICE_BEST_EFFORT: Int
Value: 1
SERVICE_GUARANTEED
static val SERVICE_GUARANTEED: Int
Value: 2
SERVICE_NO_TRAFFIC
static val SERVICE_NO_TRAFFIC: Int
Value: 0
Public constructors
BluetoothHidDeviceAppQosSettings
BluetoothHidDeviceAppQosSettings(
serviceType: Int,
tokenRate: Int,
tokenBucketSize: Int,
peakBandwidth: Int,
latency: Int,
delayVariation: Int)
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
fun describeContents(): Int
getDelayVariation
fun getDelayVariation(): Int
getLatency
fun getLatency(): Int
getPeakBandwidth
fun getPeakBandwidth(): Int
getServiceType
fun getServiceType(): Int
getTokenBucketSize
fun getTokenBucketSize(): Int
getTokenRate
fun getTokenRate(): Int
Properties
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[]]