Skip to content

Commit

Permalink
Regenerate files following a re-bootstrap
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterC1965 committed Aug 22, 2024
1 parent 90b7aff commit 8c76c9f
Show file tree
Hide file tree
Showing 367 changed files with 116,165 additions and 128,539 deletions.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@
*/
package matter.controller.cluster.eventstructs

import java.util.Optional
import matter.controller.cluster.*
import matter.tlv.AnonymousTag
import matter.tlv.ContextSpecificTag
import matter.tlv.Tag
import matter.tlv.TlvReader
Expand All @@ -29,7 +27,7 @@ class AccessControlClusterAccessControlEntryChangedEvent(
val adminPasscodeID: UShort?,
val changeType: UByte,
val latestValue: matter.controller.cluster.structs.AccessControlClusterAccessControlEntryStruct?,
val fabricIndex: UByte
val fabricIndex: UByte,
) {
override fun toString(): String = buildString {
append("AccessControlClusterAccessControlEntryChangedEvent {\n")
Expand Down Expand Up @@ -72,32 +70,47 @@ class AccessControlClusterAccessControlEntryChangedEvent(
private const val TAG_LATEST_VALUE = 4
private const val TAG_FABRIC_INDEX = 254

fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : AccessControlClusterAccessControlEntryChangedEvent {
fun fromTlv(
tlvTag: Tag,
tlvReader: TlvReader,
): AccessControlClusterAccessControlEntryChangedEvent {
tlvReader.enterStructure(tlvTag)
val adminNodeID = if (!tlvReader.isNull()) {
tlvReader.getULong(ContextSpecificTag(TAG_ADMIN_NODE_ID))
} else {
tlvReader.getNull(ContextSpecificTag(TAG_ADMIN_NODE_ID))
null
}
val adminPasscodeID = if (!tlvReader.isNull()) {
tlvReader.getUShort(ContextSpecificTag(TAG_ADMIN_PASSCODE_ID))
} else {
tlvReader.getNull(ContextSpecificTag(TAG_ADMIN_PASSCODE_ID))
null
}
val adminNodeID =
if (!tlvReader.isNull()) {
tlvReader.getULong(ContextSpecificTag(TAG_ADMIN_NODE_ID))
} else {
tlvReader.getNull(ContextSpecificTag(TAG_ADMIN_NODE_ID))
null
}
val adminPasscodeID =
if (!tlvReader.isNull()) {
tlvReader.getUShort(ContextSpecificTag(TAG_ADMIN_PASSCODE_ID))
} else {
tlvReader.getNull(ContextSpecificTag(TAG_ADMIN_PASSCODE_ID))
null
}
val changeType = tlvReader.getUByte(ContextSpecificTag(TAG_CHANGE_TYPE))
val latestValue = if (!tlvReader.isNull()) {
matter.controller.cluster.structs.AccessControlClusterAccessControlEntryStruct.fromTlv(ContextSpecificTag(TAG_LATEST_VALUE), tlvReader)
} else {
tlvReader.getNull(ContextSpecificTag(TAG_LATEST_VALUE))
null
}
val latestValue =
if (!tlvReader.isNull()) {
matter.controller.cluster.structs.AccessControlClusterAccessControlEntryStruct.fromTlv(
ContextSpecificTag(TAG_LATEST_VALUE),
tlvReader,
)
} else {
tlvReader.getNull(ContextSpecificTag(TAG_LATEST_VALUE))
null
}
val fabricIndex = tlvReader.getUByte(ContextSpecificTag(TAG_FABRIC_INDEX))

tlvReader.exitContainer()

return AccessControlClusterAccessControlEntryChangedEvent(adminNodeID, adminPasscodeID, changeType, latestValue, fabricIndex)
return AccessControlClusterAccessControlEntryChangedEvent(
adminNodeID,
adminPasscodeID,
changeType,
latestValue,
fabricIndex,
)
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@
*/
package matter.controller.cluster.eventstructs

import java.util.Optional
import matter.controller.cluster.*
import matter.tlv.AnonymousTag
import matter.tlv.ContextSpecificTag
import matter.tlv.Tag
import matter.tlv.TlvReader
Expand All @@ -28,8 +26,9 @@ class AccessControlClusterAccessControlExtensionChangedEvent(
val adminNodeID: ULong?,
val adminPasscodeID: UShort?,
val changeType: UByte,
val latestValue: matter.controller.cluster.structs.AccessControlClusterAccessControlExtensionStruct?,
val fabricIndex: UByte
val latestValue:
matter.controller.cluster.structs.AccessControlClusterAccessControlExtensionStruct?,
val fabricIndex: UByte,
) {
override fun toString(): String = buildString {
append("AccessControlClusterAccessControlExtensionChangedEvent {\n")
Expand Down Expand Up @@ -72,32 +71,45 @@ class AccessControlClusterAccessControlExtensionChangedEvent(
private const val TAG_LATEST_VALUE = 4
private const val TAG_FABRIC_INDEX = 254

fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : AccessControlClusterAccessControlExtensionChangedEvent {
fun fromTlv(
tlvTag: Tag,
tlvReader: TlvReader,
): AccessControlClusterAccessControlExtensionChangedEvent {
tlvReader.enterStructure(tlvTag)
val adminNodeID = if (!tlvReader.isNull()) {
tlvReader.getULong(ContextSpecificTag(TAG_ADMIN_NODE_ID))
} else {
tlvReader.getNull(ContextSpecificTag(TAG_ADMIN_NODE_ID))
null
}
val adminPasscodeID = if (!tlvReader.isNull()) {
tlvReader.getUShort(ContextSpecificTag(TAG_ADMIN_PASSCODE_ID))
} else {
tlvReader.getNull(ContextSpecificTag(TAG_ADMIN_PASSCODE_ID))
null
}
val adminNodeID =
if (!tlvReader.isNull()) {
tlvReader.getULong(ContextSpecificTag(TAG_ADMIN_NODE_ID))
} else {
tlvReader.getNull(ContextSpecificTag(TAG_ADMIN_NODE_ID))
null
}
val adminPasscodeID =
if (!tlvReader.isNull()) {
tlvReader.getUShort(ContextSpecificTag(TAG_ADMIN_PASSCODE_ID))
} else {
tlvReader.getNull(ContextSpecificTag(TAG_ADMIN_PASSCODE_ID))
null
}
val changeType = tlvReader.getUByte(ContextSpecificTag(TAG_CHANGE_TYPE))
val latestValue = if (!tlvReader.isNull()) {
matter.controller.cluster.structs.AccessControlClusterAccessControlExtensionStruct.fromTlv(ContextSpecificTag(TAG_LATEST_VALUE), tlvReader)
} else {
tlvReader.getNull(ContextSpecificTag(TAG_LATEST_VALUE))
null
}
val latestValue =
if (!tlvReader.isNull()) {
matter.controller.cluster.structs.AccessControlClusterAccessControlExtensionStruct
.fromTlv(ContextSpecificTag(TAG_LATEST_VALUE), tlvReader)
} else {
tlvReader.getNull(ContextSpecificTag(TAG_LATEST_VALUE))
null
}
val fabricIndex = tlvReader.getUByte(ContextSpecificTag(TAG_FABRIC_INDEX))

tlvReader.exitContainer()

return AccessControlClusterAccessControlExtensionChangedEvent(adminNodeID, adminPasscodeID, changeType, latestValue, fabricIndex)
return AccessControlClusterAccessControlExtensionChangedEvent(
adminNodeID,
adminPasscodeID,
changeType,
latestValue,
fabricIndex,
)
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,13 @@
*/
package matter.controller.cluster.eventstructs

import java.util.Optional
import matter.controller.cluster.*
import matter.tlv.AnonymousTag
import matter.tlv.ContextSpecificTag
import matter.tlv.Tag
import matter.tlv.TlvReader
import matter.tlv.TlvWriter

class AccessControlClusterAccessRestrictionEntryChangedEvent(
val fabricIndex: UByte
) {
class AccessControlClusterAccessRestrictionEntryChangedEvent(val fabricIndex: UByte) {
override fun toString(): String = buildString {
append("AccessControlClusterAccessRestrictionEntryChangedEvent {\n")
append("\tfabricIndex : $fabricIndex\n")
Expand All @@ -44,10 +40,13 @@ class AccessControlClusterAccessRestrictionEntryChangedEvent(
companion object {
private const val TAG_FABRIC_INDEX = 254

fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : AccessControlClusterAccessRestrictionEntryChangedEvent {
fun fromTlv(
tlvTag: Tag,
tlvReader: TlvReader,
): AccessControlClusterAccessRestrictionEntryChangedEvent {
tlvReader.enterStructure(tlvTag)
val fabricIndex = tlvReader.getUByte(ContextSpecificTag(TAG_FABRIC_INDEX))

tlvReader.exitContainer()

return AccessControlClusterAccessRestrictionEntryChangedEvent(fabricIndex)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@
*/
package matter.controller.cluster.eventstructs

import java.util.Optional
import matter.controller.cluster.*
import matter.tlv.AnonymousTag
import matter.tlv.ContextSpecificTag
import matter.tlv.Tag
import matter.tlv.TlvReader
Expand All @@ -28,7 +26,7 @@ class AccessControlClusterFabricRestrictionReviewUpdateEvent(
val token: ULong,
val instruction: String?,
val redirectURL: String?,
val fabricIndex: UByte
val fabricIndex: UByte,
) {
override fun toString(): String = buildString {
append("AccessControlClusterFabricRestrictionReviewUpdateEvent {\n")
Expand Down Expand Up @@ -64,26 +62,36 @@ class AccessControlClusterFabricRestrictionReviewUpdateEvent(
private const val TAG_REDIRECT_URL = 2
private const val TAG_FABRIC_INDEX = 254

fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : AccessControlClusterFabricRestrictionReviewUpdateEvent {
fun fromTlv(
tlvTag: Tag,
tlvReader: TlvReader,
): AccessControlClusterFabricRestrictionReviewUpdateEvent {
tlvReader.enterStructure(tlvTag)
val token = tlvReader.getULong(ContextSpecificTag(TAG_TOKEN))
val instruction = if (!tlvReader.isNull()) {
tlvReader.getString(ContextSpecificTag(TAG_INSTRUCTION))
} else {
tlvReader.getNull(ContextSpecificTag(TAG_INSTRUCTION))
null
}
val redirectURL = if (!tlvReader.isNull()) {
tlvReader.getString(ContextSpecificTag(TAG_REDIRECT_URL))
} else {
tlvReader.getNull(ContextSpecificTag(TAG_REDIRECT_URL))
null
}
val instruction =
if (!tlvReader.isNull()) {
tlvReader.getString(ContextSpecificTag(TAG_INSTRUCTION))
} else {
tlvReader.getNull(ContextSpecificTag(TAG_INSTRUCTION))
null
}
val redirectURL =
if (!tlvReader.isNull()) {
tlvReader.getString(ContextSpecificTag(TAG_REDIRECT_URL))
} else {
tlvReader.getNull(ContextSpecificTag(TAG_REDIRECT_URL))
null
}
val fabricIndex = tlvReader.getUByte(ContextSpecificTag(TAG_FABRIC_INDEX))

tlvReader.exitContainer()

return AccessControlClusterFabricRestrictionReviewUpdateEvent(token, instruction, redirectURL, fabricIndex)
return AccessControlClusterFabricRestrictionReviewUpdateEvent(
token,
instruction,
redirectURL,
fabricIndex,
)
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,12 @@ package matter.controller.cluster.eventstructs

import java.util.Optional
import matter.controller.cluster.*
import matter.tlv.AnonymousTag
import matter.tlv.ContextSpecificTag
import matter.tlv.Tag
import matter.tlv.TlvReader
import matter.tlv.TlvWriter

class AccountLoginClusterLoggedOutEvent(
val node: Optional<ULong>
) {
class AccountLoginClusterLoggedOutEvent(val node: Optional<ULong>) {
override fun toString(): String = buildString {
append("AccountLoginClusterLoggedOutEvent {\n")
append("\tnode : $node\n")
Expand All @@ -47,14 +44,15 @@ class AccountLoginClusterLoggedOutEvent(
companion object {
private const val TAG_NODE = 0

fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : AccountLoginClusterLoggedOutEvent {
fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): AccountLoginClusterLoggedOutEvent {
tlvReader.enterStructure(tlvTag)
val node = if (tlvReader.isNextTag(ContextSpecificTag(TAG_NODE))) {
Optional.of(tlvReader.getULong(ContextSpecificTag(TAG_NODE)))
} else {
Optional.empty()
}

val node =
if (tlvReader.isNextTag(ContextSpecificTag(TAG_NODE))) {
Optional.of(tlvReader.getULong(ContextSpecificTag(TAG_NODE)))
} else {
Optional.empty()
}

tlvReader.exitContainer()

return AccountLoginClusterLoggedOutEvent(node)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@
*/
package matter.controller.cluster.eventstructs

import java.util.Optional
import matter.controller.cluster.*
import matter.tlv.AnonymousTag
import matter.tlv.ContextSpecificTag
import matter.tlv.Tag
import matter.tlv.TlvReader
Expand All @@ -28,7 +26,7 @@ class ActionsClusterActionFailedEvent(
val actionID: UShort,
val invokeID: UInt,
val newState: UByte,
val error: UByte
val error: UByte,
) {
override fun toString(): String = buildString {
append("ActionsClusterActionFailedEvent {\n")
Expand Down Expand Up @@ -56,13 +54,13 @@ class ActionsClusterActionFailedEvent(
private const val TAG_NEW_STATE = 2
private const val TAG_ERROR = 3

fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ActionsClusterActionFailedEvent {
fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): ActionsClusterActionFailedEvent {
tlvReader.enterStructure(tlvTag)
val actionID = tlvReader.getUShort(ContextSpecificTag(TAG_ACTION_ID))
val invokeID = tlvReader.getUInt(ContextSpecificTag(TAG_INVOKE_ID))
val newState = tlvReader.getUByte(ContextSpecificTag(TAG_NEW_STATE))
val error = tlvReader.getUByte(ContextSpecificTag(TAG_ERROR))

tlvReader.exitContainer()

return ActionsClusterActionFailedEvent(actionID, invokeID, newState, error)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@
*/
package matter.controller.cluster.eventstructs

import java.util.Optional
import matter.controller.cluster.*
import matter.tlv.AnonymousTag
import matter.tlv.ContextSpecificTag
import matter.tlv.Tag
import matter.tlv.TlvReader
Expand All @@ -27,7 +25,7 @@ import matter.tlv.TlvWriter
class ActionsClusterStateChangedEvent(
val actionID: UShort,
val invokeID: UInt,
val newState: UByte
val newState: UByte,
) {
override fun toString(): String = buildString {
append("ActionsClusterStateChangedEvent {\n")
Expand All @@ -52,12 +50,12 @@ class ActionsClusterStateChangedEvent(
private const val TAG_INVOKE_ID = 1
private const val TAG_NEW_STATE = 2

fun fromTlv(tlvTag: Tag, tlvReader: TlvReader) : ActionsClusterStateChangedEvent {
fun fromTlv(tlvTag: Tag, tlvReader: TlvReader): ActionsClusterStateChangedEvent {
tlvReader.enterStructure(tlvTag)
val actionID = tlvReader.getUShort(ContextSpecificTag(TAG_ACTION_ID))
val invokeID = tlvReader.getUInt(ContextSpecificTag(TAG_INVOKE_ID))
val newState = tlvReader.getUByte(ContextSpecificTag(TAG_NEW_STATE))

tlvReader.exitContainer()

return ActionsClusterStateChangedEvent(actionID, invokeID, newState)
Expand Down
Loading

0 comments on commit 8c76c9f

Please sign in to comment.