Skip to content

Commit

Permalink
ZAP regen on master (project-chip#34088)
Browse files Browse the repository at this point in the history
* ZAP regen

* undo submodules updates

---------

Co-authored-by: Andrei Litvin <andreilitvin@google.com>
  • Loading branch information
andy31415 and andreilitvin authored Jun 26, 2024
1 parent b63c271 commit dd0c49b
Show file tree
Hide file tree
Showing 9 changed files with 43 additions and 43 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -76,7 +76,7 @@ class ServiceAreaClusterLocationInfoStruct(
if (!tlvReader.isNull()) {
ServiceAreaClusterHomeLocationStruct.fromTlv(
ContextSpecificTag(TAG_LOCATION_INFO),
tlvReader
tlvReader,
)
} else {
tlvReader.getNull(ContextSpecificTag(TAG_LOCATION_INFO))
Expand Down Expand Up @@ -110,7 +110,7 @@ class ServiceAreaClusterLocationInfoStruct(
locationInfo,
landmarkTag,
positionTag,
surfaceTag
surfaceTag,
)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -67,7 +67,7 @@ class ServiceAreaClusterLocationStruct(
val locationInfo =
ServiceAreaClusterLocationInfoStruct.fromTlv(
ContextSpecificTag(TAG_LOCATION_INFO),
tlvReader
tlvReader,
)

tlvReader.exitContainer()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -102,7 +102,7 @@ class ServiceAreaClusterProgressStruct(
locationID,
status,
totalOperationalTime,
estimatedTime
estimatedTime,
)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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)
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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 =
Expand All @@ -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 ->
Expand Down Expand Up @@ -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 =
Expand All @@ -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 ->
Expand Down Expand Up @@ -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 =
Expand All @@ -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 ->
Expand Down Expand Up @@ -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 =
Expand All @@ -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 ->
Expand Down Expand Up @@ -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 =
Expand All @@ -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 ->
Expand Down Expand Up @@ -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 =
Expand All @@ -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 ->
Expand Down Expand Up @@ -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 =
Expand All @@ -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 ->
Expand Down Expand Up @@ -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 =
Expand All @@ -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 ->
Expand Down Expand Up @@ -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 =
Expand All @@ -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 ->
Expand Down Expand Up @@ -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 =
Expand All @@ -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 ->
Expand Down Expand Up @@ -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 =
Expand All @@ -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 ->
Expand Down Expand Up @@ -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 =
Expand All @@ -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 ->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -76,7 +76,7 @@ class ServiceAreaClusterLocationInfoStruct(
if (!tlvReader.isNull()) {
ServiceAreaClusterHomeLocationStruct.fromTlv(
ContextSpecificTag(TAG_LOCATION_INFO),
tlvReader
tlvReader,
)
} else {
tlvReader.getNull(ContextSpecificTag(TAG_LOCATION_INFO))
Expand Down Expand Up @@ -110,7 +110,7 @@ class ServiceAreaClusterLocationInfoStruct(
locationInfo,
landmarkTag,
positionTag,
surfaceTag
surfaceTag,
)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -67,7 +67,7 @@ class ServiceAreaClusterLocationStruct(
val locationInfo =
ServiceAreaClusterLocationInfoStruct.fromTlv(
ContextSpecificTag(TAG_LOCATION_INFO),
tlvReader
tlvReader,
)

tlvReader.exitContainer()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -102,7 +102,7 @@ class ServiceAreaClusterProgressStruct(
locationID,
status,
totalOperationalTime,
estimatedTime
estimatedTime,
)
}
}
Expand Down

0 comments on commit dd0c49b

Please sign in to comment.