Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ZAP regen on master #34088

Merged
merged 2 commits into from
Jun 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -25,7 +25,7 @@ import matter.tlv.TlvWriter
class ServiceAreaClusterHomeLocationStruct(
val locationName: String,
val floorNumber: Int?,
val areaType: UInt?
val areaType: UInt?,
) {
override fun toString(): String = buildString {
append("ServiceAreaClusterHomeLocationStruct {\n")
Original file line number Diff line number Diff line change
@@ -26,7 +26,7 @@ class ServiceAreaClusterLocationInfoStruct(
val locationInfo: ServiceAreaClusterHomeLocationStruct?,
val landmarkTag: UInt?,
val positionTag: UInt?,
val surfaceTag: UInt?
val surfaceTag: UInt?,
) {
override fun toString(): String = buildString {
append("ServiceAreaClusterLocationInfoStruct {\n")
@@ -76,7 +76,7 @@ class ServiceAreaClusterLocationInfoStruct(
if (!tlvReader.isNull()) {
ServiceAreaClusterHomeLocationStruct.fromTlv(
ContextSpecificTag(TAG_LOCATION_INFO),
tlvReader
tlvReader,
)
} else {
tlvReader.getNull(ContextSpecificTag(TAG_LOCATION_INFO))
@@ -110,7 +110,7 @@ class ServiceAreaClusterLocationInfoStruct(
locationInfo,
landmarkTag,
positionTag,
surfaceTag
surfaceTag,
)
}
}
Original file line number Diff line number Diff line change
@@ -25,7 +25,7 @@ import matter.tlv.TlvWriter
class ServiceAreaClusterLocationStruct(
val locationID: ULong,
val mapID: UInt?,
val locationInfo: ServiceAreaClusterLocationInfoStruct
val locationInfo: ServiceAreaClusterLocationInfoStruct,
) {
override fun toString(): String = buildString {
append("ServiceAreaClusterLocationStruct {\n")
@@ -67,7 +67,7 @@ class ServiceAreaClusterLocationStruct(
val locationInfo =
ServiceAreaClusterLocationInfoStruct.fromTlv(
ContextSpecificTag(TAG_LOCATION_INFO),
tlvReader
tlvReader,
)

tlvReader.exitContainer()
Original file line number Diff line number Diff line change
@@ -27,7 +27,7 @@ class ServiceAreaClusterProgressStruct(
val locationID: ULong,
val status: UInt,
val totalOperationalTime: Optional<ULong>?,
val estimatedTime: Optional<ULong>?
val estimatedTime: Optional<ULong>?,
) {
override fun toString(): String = buildString {
append("ServiceAreaClusterProgressStruct {\n")
@@ -102,7 +102,7 @@ class ServiceAreaClusterProgressStruct(
locationID,
status,
totalOperationalTime,
estimatedTime
estimatedTime,
)
}
}
Original file line number Diff line number Diff line change
@@ -149,7 +149,7 @@ class ServiceAreaCluster(private val controller: MatterController, private val e

suspend fun selectLocations(
newLocations: List<UInt>?,
timedInvokeTimeout: Duration? = null
timedInvokeTimeout: Duration? = null,
): SelectLocationsResponse {
val commandId: UInt = 0u

@@ -170,7 +170,7 @@ class ServiceAreaCluster(private val controller: MatterController, private val e
InvokeRequest(
CommandPath(endpointId, clusterId = CLUSTER_ID, commandId),
tlvPayload = tlvWriter.getEncoded(),
timedRequest = timedInvokeTimeout
timedRequest = timedInvokeTimeout,
)

val response: InvokeResponse = controller.invoke(request)
@@ -230,7 +230,7 @@ class ServiceAreaCluster(private val controller: MatterController, private val e
InvokeRequest(
CommandPath(endpointId, clusterId = CLUSTER_ID, commandId),
tlvPayload = tlvWriter.getEncoded(),
timedRequest = timedInvokeTimeout
timedRequest = timedInvokeTimeout,
)

val response: InvokeResponse = controller.invoke(request)
@@ -317,7 +317,7 @@ class ServiceAreaCluster(private val controller: MatterController, private val e

suspend fun subscribeSupportedLocationsAttribute(
minInterval: Int,
maxInterval: Int
maxInterval: Int,
): Flow<SupportedLocationsAttributeSubscriptionState> {
val ATTRIBUTE_ID: UInt = 0u
val attributePaths =
@@ -330,7 +330,7 @@ class ServiceAreaCluster(private val controller: MatterController, private val e
eventPaths = emptyList(),
attributePaths = attributePaths,
minInterval = Duration.ofSeconds(minInterval.toLong()),
maxInterval = Duration.ofSeconds(maxInterval.toLong())
maxInterval = Duration.ofSeconds(maxInterval.toLong()),
)

return controller.subscribe(subscribeRequest).transform { subscriptionState ->
@@ -419,7 +419,7 @@ class ServiceAreaCluster(private val controller: MatterController, private val e

suspend fun subscribeSupportedMapsAttribute(
minInterval: Int,
maxInterval: Int
maxInterval: Int,
): Flow<SupportedMapsAttributeSubscriptionState> {
val ATTRIBUTE_ID: UInt = 1u
val attributePaths =
@@ -432,7 +432,7 @@ class ServiceAreaCluster(private val controller: MatterController, private val e
eventPaths = emptyList(),
attributePaths = attributePaths,
minInterval = Duration.ofSeconds(minInterval.toLong()),
maxInterval = Duration.ofSeconds(maxInterval.toLong())
maxInterval = Duration.ofSeconds(maxInterval.toLong()),
)

return controller.subscribe(subscribeRequest).transform { subscriptionState ->
@@ -524,7 +524,7 @@ class ServiceAreaCluster(private val controller: MatterController, private val e

suspend fun subscribeSelectedLocationsAttribute(
minInterval: Int,
maxInterval: Int
maxInterval: Int,
): Flow<SelectedLocationsAttributeSubscriptionState> {
val ATTRIBUTE_ID: UInt = 2u
val attributePaths =
@@ -537,7 +537,7 @@ class ServiceAreaCluster(private val controller: MatterController, private val e
eventPaths = emptyList(),
attributePaths = attributePaths,
minInterval = Duration.ofSeconds(minInterval.toLong()),
maxInterval = Duration.ofSeconds(maxInterval.toLong())
maxInterval = Duration.ofSeconds(maxInterval.toLong()),
)

return controller.subscribe(subscribeRequest).transform { subscriptionState ->
@@ -629,7 +629,7 @@ class ServiceAreaCluster(private val controller: MatterController, private val e

suspend fun subscribeCurrentLocationAttribute(
minInterval: Int,
maxInterval: Int
maxInterval: Int,
): Flow<CurrentLocationAttributeSubscriptionState> {
val ATTRIBUTE_ID: UInt = 3u
val attributePaths =
@@ -642,7 +642,7 @@ class ServiceAreaCluster(private val controller: MatterController, private val e
eventPaths = emptyList(),
attributePaths = attributePaths,
minInterval = Duration.ofSeconds(minInterval.toLong()),
maxInterval = Duration.ofSeconds(maxInterval.toLong())
maxInterval = Duration.ofSeconds(maxInterval.toLong()),
)

return controller.subscribe(subscribeRequest).transform { subscriptionState ->
@@ -732,7 +732,7 @@ class ServiceAreaCluster(private val controller: MatterController, private val e

suspend fun subscribeEstimatedEndTimeAttribute(
minInterval: Int,
maxInterval: Int
maxInterval: Int,
): Flow<EstimatedEndTimeAttributeSubscriptionState> {
val ATTRIBUTE_ID: UInt = 4u
val attributePaths =
@@ -745,7 +745,7 @@ class ServiceAreaCluster(private val controller: MatterController, private val e
eventPaths = emptyList(),
attributePaths = attributePaths,
minInterval = Duration.ofSeconds(minInterval.toLong()),
maxInterval = Duration.ofSeconds(maxInterval.toLong())
maxInterval = Duration.ofSeconds(maxInterval.toLong()),
)

return controller.subscribe(subscribeRequest).transform { subscriptionState ->
@@ -841,7 +841,7 @@ class ServiceAreaCluster(private val controller: MatterController, private val e

suspend fun subscribeProgressAttribute(
minInterval: Int,
maxInterval: Int
maxInterval: Int,
): Flow<ProgressAttributeSubscriptionState> {
val ATTRIBUTE_ID: UInt = 5u
val attributePaths =
@@ -854,7 +854,7 @@ class ServiceAreaCluster(private val controller: MatterController, private val e
eventPaths = emptyList(),
attributePaths = attributePaths,
minInterval = Duration.ofSeconds(minInterval.toLong()),
maxInterval = Duration.ofSeconds(maxInterval.toLong())
maxInterval = Duration.ofSeconds(maxInterval.toLong()),
)

return controller.subscribe(subscribeRequest).transform { subscriptionState ->
@@ -945,7 +945,7 @@ class ServiceAreaCluster(private val controller: MatterController, private val e

suspend fun subscribeGeneratedCommandListAttribute(
minInterval: Int,
maxInterval: Int
maxInterval: Int,
): Flow<GeneratedCommandListAttributeSubscriptionState> {
val ATTRIBUTE_ID: UInt = 65528u
val attributePaths =
@@ -958,7 +958,7 @@ class ServiceAreaCluster(private val controller: MatterController, private val e
eventPaths = emptyList(),
attributePaths = attributePaths,
minInterval = Duration.ofSeconds(minInterval.toLong()),
maxInterval = Duration.ofSeconds(maxInterval.toLong())
maxInterval = Duration.ofSeconds(maxInterval.toLong()),
)

return controller.subscribe(subscribeRequest).transform { subscriptionState ->
@@ -1042,7 +1042,7 @@ class ServiceAreaCluster(private val controller: MatterController, private val e

suspend fun subscribeAcceptedCommandListAttribute(
minInterval: Int,
maxInterval: Int
maxInterval: Int,
): Flow<AcceptedCommandListAttributeSubscriptionState> {
val ATTRIBUTE_ID: UInt = 65529u
val attributePaths =
@@ -1055,7 +1055,7 @@ class ServiceAreaCluster(private val controller: MatterController, private val e
eventPaths = emptyList(),
attributePaths = attributePaths,
minInterval = Duration.ofSeconds(minInterval.toLong()),
maxInterval = Duration.ofSeconds(maxInterval.toLong())
maxInterval = Duration.ofSeconds(maxInterval.toLong()),
)

return controller.subscribe(subscribeRequest).transform { subscriptionState ->
@@ -1139,7 +1139,7 @@ class ServiceAreaCluster(private val controller: MatterController, private val e

suspend fun subscribeEventListAttribute(
minInterval: Int,
maxInterval: Int
maxInterval: Int,
): Flow<EventListAttributeSubscriptionState> {
val ATTRIBUTE_ID: UInt = 65530u
val attributePaths =
@@ -1152,7 +1152,7 @@ class ServiceAreaCluster(private val controller: MatterController, private val e
eventPaths = emptyList(),
attributePaths = attributePaths,
minInterval = Duration.ofSeconds(minInterval.toLong()),
maxInterval = Duration.ofSeconds(maxInterval.toLong())
maxInterval = Duration.ofSeconds(maxInterval.toLong()),
)

return controller.subscribe(subscribeRequest).transform { subscriptionState ->
@@ -1234,7 +1234,7 @@ class ServiceAreaCluster(private val controller: MatterController, private val e

suspend fun subscribeAttributeListAttribute(
minInterval: Int,
maxInterval: Int
maxInterval: Int,
): Flow<AttributeListAttributeSubscriptionState> {
val ATTRIBUTE_ID: UInt = 65531u
val attributePaths =
@@ -1247,7 +1247,7 @@ class ServiceAreaCluster(private val controller: MatterController, private val e
eventPaths = emptyList(),
attributePaths = attributePaths,
minInterval = Duration.ofSeconds(minInterval.toLong()),
maxInterval = Duration.ofSeconds(maxInterval.toLong())
maxInterval = Duration.ofSeconds(maxInterval.toLong()),
)

return controller.subscribe(subscribeRequest).transform { subscriptionState ->
@@ -1322,7 +1322,7 @@ class ServiceAreaCluster(private val controller: MatterController, private val e

suspend fun subscribeFeatureMapAttribute(
minInterval: Int,
maxInterval: Int
maxInterval: Int,
): Flow<UIntSubscriptionState> {
val ATTRIBUTE_ID: UInt = 65532u
val attributePaths =
@@ -1335,7 +1335,7 @@ class ServiceAreaCluster(private val controller: MatterController, private val e
eventPaths = emptyList(),
attributePaths = attributePaths,
minInterval = Duration.ofSeconds(minInterval.toLong()),
maxInterval = Duration.ofSeconds(maxInterval.toLong())
maxInterval = Duration.ofSeconds(maxInterval.toLong()),
)

return controller.subscribe(subscribeRequest).transform { subscriptionState ->
@@ -1403,7 +1403,7 @@ class ServiceAreaCluster(private val controller: MatterController, private val e

suspend fun subscribeClusterRevisionAttribute(
minInterval: Int,
maxInterval: Int
maxInterval: Int,
): Flow<UShortSubscriptionState> {
val ATTRIBUTE_ID: UInt = 65533u
val attributePaths =
@@ -1416,7 +1416,7 @@ class ServiceAreaCluster(private val controller: MatterController, private val e
eventPaths = emptyList(),
attributePaths = attributePaths,
minInterval = Duration.ofSeconds(minInterval.toLong()),
maxInterval = Duration.ofSeconds(maxInterval.toLong())
maxInterval = Duration.ofSeconds(maxInterval.toLong()),
)

return controller.subscribe(subscribeRequest).transform { subscriptionState ->
Original file line number Diff line number Diff line change
@@ -25,7 +25,7 @@ import matter.tlv.TlvWriter
class ServiceAreaClusterHomeLocationStruct(
val locationName: String,
val floorNumber: Short?,
val areaType: UByte?
val areaType: UByte?,
) {
override fun toString(): String = buildString {
append("ServiceAreaClusterHomeLocationStruct {\n")
Original file line number Diff line number Diff line change
@@ -26,7 +26,7 @@ class ServiceAreaClusterLocationInfoStruct(
val locationInfo: ServiceAreaClusterHomeLocationStruct?,
val landmarkTag: UByte?,
val positionTag: UByte?,
val surfaceTag: UByte?
val surfaceTag: UByte?,
) {
override fun toString(): String = buildString {
append("ServiceAreaClusterLocationInfoStruct {\n")
@@ -76,7 +76,7 @@ class ServiceAreaClusterLocationInfoStruct(
if (!tlvReader.isNull()) {
ServiceAreaClusterHomeLocationStruct.fromTlv(
ContextSpecificTag(TAG_LOCATION_INFO),
tlvReader
tlvReader,
)
} else {
tlvReader.getNull(ContextSpecificTag(TAG_LOCATION_INFO))
@@ -110,7 +110,7 @@ class ServiceAreaClusterLocationInfoStruct(
locationInfo,
landmarkTag,
positionTag,
surfaceTag
surfaceTag,
)
}
}
Original file line number Diff line number Diff line change
@@ -25,7 +25,7 @@ import matter.tlv.TlvWriter
class ServiceAreaClusterLocationStruct(
val locationID: UInt,
val mapID: UByte?,
val locationInfo: ServiceAreaClusterLocationInfoStruct
val locationInfo: ServiceAreaClusterLocationInfoStruct,
) {
override fun toString(): String = buildString {
append("ServiceAreaClusterLocationStruct {\n")
@@ -67,7 +67,7 @@ class ServiceAreaClusterLocationStruct(
val locationInfo =
ServiceAreaClusterLocationInfoStruct.fromTlv(
ContextSpecificTag(TAG_LOCATION_INFO),
tlvReader
tlvReader,
)

tlvReader.exitContainer()
Original file line number Diff line number Diff line change
@@ -27,7 +27,7 @@ class ServiceAreaClusterProgressStruct(
val locationID: UInt,
val status: UByte,
val totalOperationalTime: Optional<UInt>?,
val estimatedTime: Optional<UInt>?
val estimatedTime: Optional<UInt>?,
) {
override fun toString(): String = buildString {
append("ServiceAreaClusterProgressStruct {\n")
@@ -102,7 +102,7 @@ class ServiceAreaClusterProgressStruct(
locationID,
status,
totalOperationalTime,
estimatedTime
estimatedTime,
)
}
}
Loading