Skip to content

Commit

Permalink
[Draft] TV Matter Media: Updated the existing clusters & Added 2 new …
Browse files Browse the repository at this point in the history
…clusters according to the latest Matter 1.3 spec. (Account Login, Channel, Content Launcher, Media Playback, Target Navigator, Content App Observer and Content Control) (#30691)

* Updated the existing cluster according to the latest Matter 1.3 spec.
    The existing clusters that have been updated are: Account Login, Channel, Content Launcher,
    Media Playback and Target Navigator. I have also added 2 new Clusters: Content Control and Content app observer

* ZAP generated files

* Formated Kotlin
  • Loading branch information
lazarkov authored and pull[bot] committed Feb 14, 2024
1 parent 37ff045 commit 1641500
Show file tree
Hide file tree
Showing 169 changed files with 39,849 additions and 2,929 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,8 @@ jobs:
src/app/zap-templates/zcl/data-model/chip/color-control-cluster.xml \
src/app/zap-templates/zcl/data-model/chip/concentration-measurement-cluster.xml \
src/app/zap-templates/zcl/data-model/chip/content-launch-cluster.xml \
src/app/zap-templates/zcl/data-model/chip/content-app-observer-cluster.xml \
src/app/zap-templates/zcl/data-model/chip/content-control-cluster.xml \
src/app/zap-templates/zcl/data-model/chip/descriptor-cluster.xml \
src/app/zap-templates/zcl/data-model/chip/diagnostic-logs-cluster.xml \
src/app/zap-templates/zcl/data-model/chip/dishwasher-alarm-cluster.xml \
Expand Down
3 changes: 3 additions & 0 deletions build/chip/java/kotlinc_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,9 @@ def main():
if classpath:
kotlin_args += ["-classpath", classpath]

kotlin_args += ["-J-Xms256m", "-J-Xmx4096m", "-J-XX:MaxPermSize=350m",
"-J-XX:ReservedCodeCacheSize=225m", "-J-XX:+UseCompressedOops"]

retcode = subprocess.check_call(kotlin_args + args.rest)
if retcode != EXIT_SUCCESS:
return retcode
Expand Down
97 changes: 56 additions & 41 deletions data_model/clusters/AccountLogin.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0"?>
<?xml version="1.0"?>
<!--
Copyright (C) Connectivity Standards Alliance (2021). All rights reserved.
The information within this document is the property of the Connectivity
Expand Down Expand Up @@ -54,44 +54,59 @@ This notice and disclaimer must be included on all copies of this document.
Connectivity Standards Alliance
508 Second Street, Suite 206
Davis, CA 95616, USA
-->
<cluster xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="types types.xsd cluster cluster.xsd" id="0x050e" name="Account Login" revision="1">
<revisionHistory>
<revision revision="1" summary="Initial Release"/>
</revisionHistory>
<classification hierarchy="base" role="application" picsCode="ALOGIN" scope="Endpoint"/>
<commands>
<command id="0x00" name="GetSetupPIN" response="GetSetupPINResponse">
<access invokePrivilege="admin" fabricScoped="true" timed="true"/>
<mandatoryConform/>
<field id="0" name="TempAccountIdentifier" type="string">
<mandatoryConform/>
<constraint type="lengthBetween" from="16" to="100"/>
</field>
</command>
<command id="0x01" name="GetSetupPINResponse" direction="responseFromServer">
<access invokePrivilege="operate" fabricScoped="true"/>
<mandatoryConform/>
<field id="0" name="SetupPIN" type="string">
<mandatoryConform/>
<constraint type="desc"/>
</field>
</command>
<command id="0x02" name="Login" response="Y">
<access invokePrivilege="admin" fabricScoped="true" timed="true"/>
<mandatoryConform/>
<field id="0" name="TempAccountIdentifier" type="string">
<mandatoryConform/>
<constraint type="lengthBetween" from="16" to="100"/>
</field>
<field id="1" name="SetupPIN" type="string">
<mandatoryConform/>
<constraint type="minLength" value="11"/>
</field>
</command>
<command id="0x03" name="Logout" response="Y">
<access invokePrivilege="operate" fabricScoped="true" timed="true"/>
<mandatoryConform/>
</command>
</commands>
-->
<cluster xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="types types.xsd cluster cluster.xsd" id="0x050e" name="Account Login" revision="1">
<revisionHistory>
<revision revision="1" summary="Initial Release"/>
</revisionHistory>
<classification hierarchy="base" role="application" picsCode="ALOGIN" scope="Endpoint"/>
<commands>
<command id="0x00" name="GetSetupPIN" response="GetSetupPINResponse">
<access invokePrivilege="admin" fabricScoped="true" timed="true"/>
<mandatoryConform/>
<field id="0" name="TempAccountIdentifier" type="string">
<mandatoryConform/>
<constraint type="lengthBetween" from="16" to="100"/>
</field>
</command>
<command id="0x01" name="GetSetupPINResponse" direction="responseFromServer">
<access invokePrivilege="operate" fabricScoped="true"/>
<mandatoryConform/>
<field id="0" name="SetupPIN" type="string">
<mandatoryConform/>
<constraint type="desc"/>
</field>
</command>
<command id="0x02" name="Login" response="Y">
<access invokePrivilege="admin" fabricScoped="true" timed="true"/>
<mandatoryConform/>
<field id="0" name="TempAccountIdentifier" type="string">
<mandatoryConform/>
<constraint type="lengthBetween" from="16" to="100"/>
</field>
<field id="1" name="SetupPIN" type="string">
<mandatoryConform/>
<constraint type="minLength" value="8"/>
</field>
<field id="2" name="Node" type="node-id">
<optionalConform/>
</field>
</command>
<command id="0x03" name="Logout" response="Y">
<access invokePrivilege="operate" fabricScoped="true" timed="true"/>
<mandatoryConform/>
<field id="0" name="Node" type="node-id">
<optionalConform/>
</field>
</command>
</commands>
<events>
<event id="0x00" name="LoggedOut" priority="critical">
<access fabricSensitive="true" invokePrivilege="admin"/>
<mandatoryConform/>
<field id="0" name="Node" type="node-id">
<optionalConform/>
</field>
</event>
</events>
</cluster>
Loading

0 comments on commit 1641500

Please sign in to comment.