From 2938473e516aa2c7525b3ae72146e92c0bab6166 Mon Sep 17 00:00:00 2001
From: Cliff Chung <116232729+cliffamzn@users.noreply.github.com>
Date: Wed, 12 Jul 2023 13:26:00 -0700
Subject: [PATCH] Adding ReplacementProductList in resource monitoring (#27877)
Adding the replacement product list array in the resource monitoring
cluster.
Fixes issue #27571
Code generation ran with zap_regen_all.py
---
.../all-clusters-app.matter | 156 ++
.../chip/resource-monitoring-cluster.xml | 110 ++
.../data_model/controller-clusters.matter | 168 +++
.../devicecontroller/ClusterIDMapping.java | 12 +
.../devicecontroller/ClusterReadMapping.java | 132 ++
.../CHIPAttributeTLVValueDecoder.cpp | 599 ++++++++
.../java/zap-generated/CHIPClientCallbacks.h | 48 +
.../java/zap-generated/CHIPReadCallbacks.cpp | 1254 ++++++++++++++++-
.../chip/devicecontroller/ChipClusters.java | 288 ++++
.../chip/devicecontroller/ChipStructs.java | 324 +++++
.../devicecontroller/ClusterInfoMapping.java | 228 +++
.../python/chip/clusters/CHIPClusters.py | 72 +
.../python/chip/clusters/Objects.py | 528 +++++++
.../zap-generated/cluster-enums-check.h | 180 +++
.../app-common/zap-generated/cluster-enums.h | 180 +++
.../zap-generated/cluster-objects.cpp | 588 ++++++++
.../zap-generated/cluster-objects.h | 490 +++++++
.../app-common/zap-generated/ids/Attributes.h | 48 +
.../zap-generated/cluster/Commands.h | 576 ++++----
.../cluster/ComplexArgumentParser.cpp | 422 ++++++
.../cluster/ComplexArgumentParser.h | 72 +
.../cluster/logging/DataModelLogger.cpp | 396 ++++++
.../cluster/logging/DataModelLogger.h | 46 +
23 files changed, 6644 insertions(+), 273 deletions(-)
diff --git a/examples/all-clusters-app/all-clusters-common/all-clusters-app.matter b/examples/all-clusters-app/all-clusters-common/all-clusters-app.matter
index 9e867f1be026a7..97833256a2a446 100644
--- a/examples/all-clusters-app/all-clusters-common/all-clusters-app.matter
+++ b/examples/all-clusters-app/all-clusters-common/all-clusters-app.matter
@@ -2555,11 +2555,24 @@ server cluster HepaFilterMonitoring = 113 {
kDown = 1;
}
+ enum ProductIdentifierTypeEnum : ENUM8 {
+ kUPC = 0;
+ kGTIN8 = 1;
+ kEAN = 2;
+ kGTIN14 = 3;
+ kOEM = 4;
+ }
+
bitmap Feature : BITMAP32 {
kCondition = 0x1;
kWarning = 0x2;
}
+ struct ReplacementProductStruct {
+ ProductIdentifierTypeEnum productIdentifierType = 0;
+ char_string<20> productIdentifierValue = 1;
+ }
+
readonly attribute percent condition = 0;
readonly attribute DegradationDirectionEnum degradationDirection = 1;
readonly attribute ChangeIndicationEnum changeIndication = 2;
@@ -2585,11 +2598,24 @@ server cluster ActivatedCarbonFilterMonitoring = 114 {
kDown = 1;
}
+ enum ProductIdentifierTypeEnum : ENUM8 {
+ kUPC = 0;
+ kGTIN8 = 1;
+ kEAN = 2;
+ kGTIN14 = 3;
+ kOEM = 4;
+ }
+
bitmap Feature : BITMAP32 {
kCondition = 0x1;
kWarning = 0x2;
}
+ struct ReplacementProductStruct {
+ ProductIdentifierTypeEnum productIdentifierType = 0;
+ char_string<20> productIdentifierValue = 1;
+ }
+
readonly attribute percent condition = 0;
readonly attribute DegradationDirectionEnum degradationDirection = 1;
readonly attribute ChangeIndicationEnum changeIndication = 2;
@@ -2615,11 +2641,24 @@ server cluster CeramicFilterMonitoring = 115 {
kDown = 1;
}
+ enum ProductIdentifierTypeEnum : ENUM8 {
+ kUPC = 0;
+ kGTIN8 = 1;
+ kEAN = 2;
+ kGTIN14 = 3;
+ kOEM = 4;
+ }
+
bitmap Feature : BITMAP32 {
kCondition = 0x1;
kWarning = 0x2;
}
+ struct ReplacementProductStruct {
+ ProductIdentifierTypeEnum productIdentifierType = 0;
+ char_string<20> productIdentifierValue = 1;
+ }
+
readonly attribute percent condition = 0;
readonly attribute DegradationDirectionEnum degradationDirection = 1;
readonly attribute ChangeIndicationEnum changeIndication = 2;
@@ -2645,11 +2684,24 @@ server cluster ElectrostaticFilterMonitoring = 116 {
kDown = 1;
}
+ enum ProductIdentifierTypeEnum : ENUM8 {
+ kUPC = 0;
+ kGTIN8 = 1;
+ kEAN = 2;
+ kGTIN14 = 3;
+ kOEM = 4;
+ }
+
bitmap Feature : BITMAP32 {
kCondition = 0x1;
kWarning = 0x2;
}
+ struct ReplacementProductStruct {
+ ProductIdentifierTypeEnum productIdentifierType = 0;
+ char_string<20> productIdentifierValue = 1;
+ }
+
readonly attribute percent condition = 0;
readonly attribute DegradationDirectionEnum degradationDirection = 1;
readonly attribute ChangeIndicationEnum changeIndication = 2;
@@ -2675,11 +2727,24 @@ server cluster UvFilterMonitoring = 117 {
kDown = 1;
}
+ enum ProductIdentifierTypeEnum : ENUM8 {
+ kUPC = 0;
+ kGTIN8 = 1;
+ kEAN = 2;
+ kGTIN14 = 3;
+ kOEM = 4;
+ }
+
bitmap Feature : BITMAP32 {
kCondition = 0x1;
kWarning = 0x2;
}
+ struct ReplacementProductStruct {
+ ProductIdentifierTypeEnum productIdentifierType = 0;
+ char_string<20> productIdentifierValue = 1;
+ }
+
readonly attribute percent condition = 0;
readonly attribute DegradationDirectionEnum degradationDirection = 1;
readonly attribute ChangeIndicationEnum changeIndication = 2;
@@ -2705,11 +2770,24 @@ server cluster IonizingFilterMonitoring = 118 {
kDown = 1;
}
+ enum ProductIdentifierTypeEnum : ENUM8 {
+ kUPC = 0;
+ kGTIN8 = 1;
+ kEAN = 2;
+ kGTIN14 = 3;
+ kOEM = 4;
+ }
+
bitmap Feature : BITMAP32 {
kCondition = 0x1;
kWarning = 0x2;
}
+ struct ReplacementProductStruct {
+ ProductIdentifierTypeEnum productIdentifierType = 0;
+ char_string<20> productIdentifierValue = 1;
+ }
+
readonly attribute percent condition = 0;
readonly attribute DegradationDirectionEnum degradationDirection = 1;
readonly attribute ChangeIndicationEnum changeIndication = 2;
@@ -2735,11 +2813,24 @@ server cluster ZeoliteFilterMonitoring = 119 {
kDown = 1;
}
+ enum ProductIdentifierTypeEnum : ENUM8 {
+ kUPC = 0;
+ kGTIN8 = 1;
+ kEAN = 2;
+ kGTIN14 = 3;
+ kOEM = 4;
+ }
+
bitmap Feature : BITMAP32 {
kCondition = 0x1;
kWarning = 0x2;
}
+ struct ReplacementProductStruct {
+ ProductIdentifierTypeEnum productIdentifierType = 0;
+ char_string<20> productIdentifierValue = 1;
+ }
+
readonly attribute percent condition = 0;
readonly attribute DegradationDirectionEnum degradationDirection = 1;
readonly attribute ChangeIndicationEnum changeIndication = 2;
@@ -2765,11 +2856,24 @@ server cluster OzoneFilterMonitoring = 120 {
kDown = 1;
}
+ enum ProductIdentifierTypeEnum : ENUM8 {
+ kUPC = 0;
+ kGTIN8 = 1;
+ kEAN = 2;
+ kGTIN14 = 3;
+ kOEM = 4;
+ }
+
bitmap Feature : BITMAP32 {
kCondition = 0x1;
kWarning = 0x2;
}
+ struct ReplacementProductStruct {
+ ProductIdentifierTypeEnum productIdentifierType = 0;
+ char_string<20> productIdentifierValue = 1;
+ }
+
readonly attribute percent condition = 0;
readonly attribute DegradationDirectionEnum degradationDirection = 1;
readonly attribute ChangeIndicationEnum changeIndication = 2;
@@ -2795,11 +2899,24 @@ server cluster WaterTankMonitoring = 121 {
kDown = 1;
}
+ enum ProductIdentifierTypeEnum : ENUM8 {
+ kUPC = 0;
+ kGTIN8 = 1;
+ kEAN = 2;
+ kGTIN14 = 3;
+ kOEM = 4;
+ }
+
bitmap Feature : BITMAP32 {
kCondition = 0x1;
kWarning = 0x2;
}
+ struct ReplacementProductStruct {
+ ProductIdentifierTypeEnum productIdentifierType = 0;
+ char_string<20> productIdentifierValue = 1;
+ }
+
readonly attribute percent condition = 0;
readonly attribute DegradationDirectionEnum degradationDirection = 1;
readonly attribute ChangeIndicationEnum changeIndication = 2;
@@ -2825,11 +2942,24 @@ server cluster FuelTankMonitoring = 122 {
kDown = 1;
}
+ enum ProductIdentifierTypeEnum : ENUM8 {
+ kUPC = 0;
+ kGTIN8 = 1;
+ kEAN = 2;
+ kGTIN14 = 3;
+ kOEM = 4;
+ }
+
bitmap Feature : BITMAP32 {
kCondition = 0x1;
kWarning = 0x2;
}
+ struct ReplacementProductStruct {
+ ProductIdentifierTypeEnum productIdentifierType = 0;
+ char_string<20> productIdentifierValue = 1;
+ }
+
readonly attribute percent condition = 0;
readonly attribute DegradationDirectionEnum degradationDirection = 1;
readonly attribute ChangeIndicationEnum changeIndication = 2;
@@ -2855,11 +2985,24 @@ server cluster InkCartridgeMonitoring = 123 {
kDown = 1;
}
+ enum ProductIdentifierTypeEnum : ENUM8 {
+ kUPC = 0;
+ kGTIN8 = 1;
+ kEAN = 2;
+ kGTIN14 = 3;
+ kOEM = 4;
+ }
+
bitmap Feature : BITMAP32 {
kCondition = 0x1;
kWarning = 0x2;
}
+ struct ReplacementProductStruct {
+ ProductIdentifierTypeEnum productIdentifierType = 0;
+ char_string<20> productIdentifierValue = 1;
+ }
+
readonly attribute percent condition = 0;
readonly attribute DegradationDirectionEnum degradationDirection = 1;
readonly attribute ChangeIndicationEnum changeIndication = 2;
@@ -2885,11 +3028,24 @@ server cluster TonerCartridgeMonitoring = 124 {
kDown = 1;
}
+ enum ProductIdentifierTypeEnum : ENUM8 {
+ kUPC = 0;
+ kGTIN8 = 1;
+ kEAN = 2;
+ kGTIN14 = 3;
+ kOEM = 4;
+ }
+
bitmap Feature : BITMAP32 {
kCondition = 0x1;
kWarning = 0x2;
}
+ struct ReplacementProductStruct {
+ ProductIdentifierTypeEnum productIdentifierType = 0;
+ char_string<20> productIdentifierValue = 1;
+ }
+
readonly attribute percent condition = 0;
readonly attribute DegradationDirectionEnum degradationDirection = 1;
readonly attribute ChangeIndicationEnum changeIndication = 2;
diff --git a/src/app/zap-templates/zcl/data-model/chip/resource-monitoring-cluster.xml b/src/app/zap-templates/zcl/data-model/chip/resource-monitoring-cluster.xml
index be08ca18a19f0f..b4776d5c1fb54d 100644
--- a/src/app/zap-templates/zcl/data-model/chip/resource-monitoring-cluster.xml
+++ b/src/app/zap-templates/zcl/data-model/chip/resource-monitoring-cluster.xml
@@ -31,6 +31,7 @@ limitations under the License.
ChangeIndication
InPlaceIndicator
LastChangedTime
+ ReplacementProductList
@@ -53,6 +54,7 @@ limitations under the License.
ChangeIndication
InPlaceIndicator
LastChangedTime
+ ReplacementProductList
@@ -75,6 +77,7 @@ limitations under the License.
ChangeIndication
InPlaceIndicator
LastChangedTime
+ ReplacementProductList
@@ -97,6 +100,7 @@ limitations under the License.
ChangeIndication
InPlaceIndicator
LastChangedTime
+ ReplacementProductList
@@ -119,6 +123,7 @@ limitations under the License.
ChangeIndication
InPlaceIndicator
LastChangedTime
+ ReplacementProductList
@@ -141,6 +146,7 @@ limitations under the License.
ChangeIndication
InPlaceIndicator
LastChangedTime
+ ReplacementProductList
@@ -163,6 +169,7 @@ limitations under the License.
ChangeIndication
InPlaceIndicator
LastChangedTime
+ ReplacementProductList
@@ -185,6 +192,7 @@ limitations under the License.
ChangeIndication
InPlaceIndicator
LastChangedTime
+ ReplacementProductList
@@ -207,6 +215,7 @@ limitations under the License.
ChangeIndication
InPlaceIndicator
LastChangedTime
+ ReplacementProductList
@@ -229,6 +238,7 @@ limitations under the License.
ChangeIndication
InPlaceIndicator
LastChangedTime
+ ReplacementProductList
@@ -251,6 +261,7 @@ limitations under the License.
ChangeIndication
InPlaceIndicator
LastChangedTime
+ ReplacementProductList
@@ -273,6 +284,7 @@ limitations under the License.
ChangeIndication
InPlaceIndicator
LastChangedTime
+ ReplacementProductList
@@ -333,4 +345,102 @@ limitations under the License.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/controller/data_model/controller-clusters.matter b/src/controller/data_model/controller-clusters.matter
index 94a39300a4910c..5ba5df68dd1129 100644
--- a/src/controller/data_model/controller-clusters.matter
+++ b/src/controller/data_model/controller-clusters.matter
@@ -3452,16 +3452,30 @@ client cluster HepaFilterMonitoring = 113 {
kDown = 1;
}
+ enum ProductIdentifierTypeEnum : ENUM8 {
+ kUPC = 0;
+ kGTIN8 = 1;
+ kEAN = 2;
+ kGTIN14 = 3;
+ kOEM = 4;
+ }
+
bitmap Feature : BITMAP32 {
kCondition = 0x1;
kWarning = 0x2;
}
+ struct ReplacementProductStruct {
+ ProductIdentifierTypeEnum productIdentifierType = 0;
+ char_string<20> productIdentifierValue = 1;
+ }
+
readonly attribute optional percent condition = 0;
readonly attribute optional DegradationDirectionEnum degradationDirection = 1;
readonly attribute ChangeIndicationEnum changeIndication = 2;
readonly attribute optional boolean inPlaceIndicator = 3;
attribute optional nullable epoch_s lastChangedTime = 4;
+ readonly attribute optional ReplacementProductStruct replacementProductList[] = 5;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
readonly attribute event_id eventList[] = 65530;
@@ -3486,16 +3500,30 @@ client cluster ActivatedCarbonFilterMonitoring = 114 {
kDown = 1;
}
+ enum ProductIdentifierTypeEnum : ENUM8 {
+ kUPC = 0;
+ kGTIN8 = 1;
+ kEAN = 2;
+ kGTIN14 = 3;
+ kOEM = 4;
+ }
+
bitmap Feature : BITMAP32 {
kCondition = 0x1;
kWarning = 0x2;
}
+ struct ReplacementProductStruct {
+ ProductIdentifierTypeEnum productIdentifierType = 0;
+ char_string<20> productIdentifierValue = 1;
+ }
+
readonly attribute optional percent condition = 0;
readonly attribute optional DegradationDirectionEnum degradationDirection = 1;
readonly attribute ChangeIndicationEnum changeIndication = 2;
readonly attribute optional boolean inPlaceIndicator = 3;
attribute optional nullable epoch_s lastChangedTime = 4;
+ readonly attribute optional ReplacementProductStruct replacementProductList[] = 5;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
readonly attribute event_id eventList[] = 65530;
@@ -3520,16 +3548,30 @@ client cluster CeramicFilterMonitoring = 115 {
kDown = 1;
}
+ enum ProductIdentifierTypeEnum : ENUM8 {
+ kUPC = 0;
+ kGTIN8 = 1;
+ kEAN = 2;
+ kGTIN14 = 3;
+ kOEM = 4;
+ }
+
bitmap Feature : BITMAP32 {
kCondition = 0x1;
kWarning = 0x2;
}
+ struct ReplacementProductStruct {
+ ProductIdentifierTypeEnum productIdentifierType = 0;
+ char_string<20> productIdentifierValue = 1;
+ }
+
readonly attribute percent condition = 0;
readonly attribute DegradationDirectionEnum degradationDirection = 1;
readonly attribute ChangeIndicationEnum changeIndication = 2;
readonly attribute optional boolean inPlaceIndicator = 3;
attribute optional nullable epoch_s lastChangedTime = 4;
+ readonly attribute optional ReplacementProductStruct replacementProductList[] = 5;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
readonly attribute event_id eventList[] = 65530;
@@ -3554,16 +3596,30 @@ client cluster ElectrostaticFilterMonitoring = 116 {
kDown = 1;
}
+ enum ProductIdentifierTypeEnum : ENUM8 {
+ kUPC = 0;
+ kGTIN8 = 1;
+ kEAN = 2;
+ kGTIN14 = 3;
+ kOEM = 4;
+ }
+
bitmap Feature : BITMAP32 {
kCondition = 0x1;
kWarning = 0x2;
}
+ struct ReplacementProductStruct {
+ ProductIdentifierTypeEnum productIdentifierType = 0;
+ char_string<20> productIdentifierValue = 1;
+ }
+
readonly attribute optional percent condition = 0;
readonly attribute optional DegradationDirectionEnum degradationDirection = 1;
readonly attribute ChangeIndicationEnum changeIndication = 2;
readonly attribute optional boolean inPlaceIndicator = 3;
attribute optional nullable epoch_s lastChangedTime = 4;
+ readonly attribute optional ReplacementProductStruct replacementProductList[] = 5;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
readonly attribute event_id eventList[] = 65530;
@@ -3588,16 +3644,30 @@ client cluster UvFilterMonitoring = 117 {
kDown = 1;
}
+ enum ProductIdentifierTypeEnum : ENUM8 {
+ kUPC = 0;
+ kGTIN8 = 1;
+ kEAN = 2;
+ kGTIN14 = 3;
+ kOEM = 4;
+ }
+
bitmap Feature : BITMAP32 {
kCondition = 0x1;
kWarning = 0x2;
}
+ struct ReplacementProductStruct {
+ ProductIdentifierTypeEnum productIdentifierType = 0;
+ char_string<20> productIdentifierValue = 1;
+ }
+
readonly attribute optional percent condition = 0;
readonly attribute optional DegradationDirectionEnum degradationDirection = 1;
readonly attribute ChangeIndicationEnum changeIndication = 2;
readonly attribute optional boolean inPlaceIndicator = 3;
attribute optional nullable epoch_s lastChangedTime = 4;
+ readonly attribute optional ReplacementProductStruct replacementProductList[] = 5;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
readonly attribute event_id eventList[] = 65530;
@@ -3622,16 +3692,30 @@ client cluster IonizingFilterMonitoring = 118 {
kDown = 1;
}
+ enum ProductIdentifierTypeEnum : ENUM8 {
+ kUPC = 0;
+ kGTIN8 = 1;
+ kEAN = 2;
+ kGTIN14 = 3;
+ kOEM = 4;
+ }
+
bitmap Feature : BITMAP32 {
kCondition = 0x1;
kWarning = 0x2;
}
+ struct ReplacementProductStruct {
+ ProductIdentifierTypeEnum productIdentifierType = 0;
+ char_string<20> productIdentifierValue = 1;
+ }
+
readonly attribute optional percent condition = 0;
readonly attribute optional DegradationDirectionEnum degradationDirection = 1;
readonly attribute ChangeIndicationEnum changeIndication = 2;
readonly attribute optional boolean inPlaceIndicator = 3;
attribute optional nullable epoch_s lastChangedTime = 4;
+ readonly attribute optional ReplacementProductStruct replacementProductList[] = 5;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
readonly attribute event_id eventList[] = 65530;
@@ -3656,16 +3740,30 @@ client cluster ZeoliteFilterMonitoring = 119 {
kDown = 1;
}
+ enum ProductIdentifierTypeEnum : ENUM8 {
+ kUPC = 0;
+ kGTIN8 = 1;
+ kEAN = 2;
+ kGTIN14 = 3;
+ kOEM = 4;
+ }
+
bitmap Feature : BITMAP32 {
kCondition = 0x1;
kWarning = 0x2;
}
+ struct ReplacementProductStruct {
+ ProductIdentifierTypeEnum productIdentifierType = 0;
+ char_string<20> productIdentifierValue = 1;
+ }
+
readonly attribute optional percent condition = 0;
readonly attribute optional DegradationDirectionEnum degradationDirection = 1;
readonly attribute ChangeIndicationEnum changeIndication = 2;
readonly attribute optional boolean inPlaceIndicator = 3;
attribute optional nullable epoch_s lastChangedTime = 4;
+ readonly attribute optional ReplacementProductStruct replacementProductList[] = 5;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
readonly attribute event_id eventList[] = 65530;
@@ -3690,16 +3788,30 @@ client cluster OzoneFilterMonitoring = 120 {
kDown = 1;
}
+ enum ProductIdentifierTypeEnum : ENUM8 {
+ kUPC = 0;
+ kGTIN8 = 1;
+ kEAN = 2;
+ kGTIN14 = 3;
+ kOEM = 4;
+ }
+
bitmap Feature : BITMAP32 {
kCondition = 0x1;
kWarning = 0x2;
}
+ struct ReplacementProductStruct {
+ ProductIdentifierTypeEnum productIdentifierType = 0;
+ char_string<20> productIdentifierValue = 1;
+ }
+
readonly attribute optional percent condition = 0;
readonly attribute optional DegradationDirectionEnum degradationDirection = 1;
readonly attribute ChangeIndicationEnum changeIndication = 2;
readonly attribute optional boolean inPlaceIndicator = 3;
attribute optional nullable epoch_s lastChangedTime = 4;
+ readonly attribute optional ReplacementProductStruct replacementProductList[] = 5;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
readonly attribute event_id eventList[] = 65530;
@@ -3724,16 +3836,30 @@ client cluster WaterTankMonitoring = 121 {
kDown = 1;
}
+ enum ProductIdentifierTypeEnum : ENUM8 {
+ kUPC = 0;
+ kGTIN8 = 1;
+ kEAN = 2;
+ kGTIN14 = 3;
+ kOEM = 4;
+ }
+
bitmap Feature : BITMAP32 {
kCondition = 0x1;
kWarning = 0x2;
}
+ struct ReplacementProductStruct {
+ ProductIdentifierTypeEnum productIdentifierType = 0;
+ char_string<20> productIdentifierValue = 1;
+ }
+
readonly attribute optional percent condition = 0;
readonly attribute optional DegradationDirectionEnum degradationDirection = 1;
readonly attribute ChangeIndicationEnum changeIndication = 2;
readonly attribute optional boolean inPlaceIndicator = 3;
attribute optional nullable epoch_s lastChangedTime = 4;
+ readonly attribute optional ReplacementProductStruct replacementProductList[] = 5;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
readonly attribute event_id eventList[] = 65530;
@@ -3758,16 +3884,30 @@ client cluster FuelTankMonitoring = 122 {
kDown = 1;
}
+ enum ProductIdentifierTypeEnum : ENUM8 {
+ kUPC = 0;
+ kGTIN8 = 1;
+ kEAN = 2;
+ kGTIN14 = 3;
+ kOEM = 4;
+ }
+
bitmap Feature : BITMAP32 {
kCondition = 0x1;
kWarning = 0x2;
}
+ struct ReplacementProductStruct {
+ ProductIdentifierTypeEnum productIdentifierType = 0;
+ char_string<20> productIdentifierValue = 1;
+ }
+
readonly attribute optional percent condition = 0;
readonly attribute optional DegradationDirectionEnum degradationDirection = 1;
readonly attribute ChangeIndicationEnum changeIndication = 2;
readonly attribute optional boolean inPlaceIndicator = 3;
attribute optional nullable epoch_s lastChangedTime = 4;
+ readonly attribute optional ReplacementProductStruct replacementProductList[] = 5;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
readonly attribute event_id eventList[] = 65530;
@@ -3792,16 +3932,30 @@ client cluster InkCartridgeMonitoring = 123 {
kDown = 1;
}
+ enum ProductIdentifierTypeEnum : ENUM8 {
+ kUPC = 0;
+ kGTIN8 = 1;
+ kEAN = 2;
+ kGTIN14 = 3;
+ kOEM = 4;
+ }
+
bitmap Feature : BITMAP32 {
kCondition = 0x1;
kWarning = 0x2;
}
+ struct ReplacementProductStruct {
+ ProductIdentifierTypeEnum productIdentifierType = 0;
+ char_string<20> productIdentifierValue = 1;
+ }
+
readonly attribute optional percent condition = 0;
readonly attribute optional DegradationDirectionEnum degradationDirection = 1;
readonly attribute ChangeIndicationEnum changeIndication = 2;
readonly attribute optional boolean inPlaceIndicator = 3;
attribute optional nullable epoch_s lastChangedTime = 4;
+ readonly attribute optional ReplacementProductStruct replacementProductList[] = 5;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
readonly attribute event_id eventList[] = 65530;
@@ -3826,16 +3980,30 @@ client cluster TonerCartridgeMonitoring = 124 {
kDown = 1;
}
+ enum ProductIdentifierTypeEnum : ENUM8 {
+ kUPC = 0;
+ kGTIN8 = 1;
+ kEAN = 2;
+ kGTIN14 = 3;
+ kOEM = 4;
+ }
+
bitmap Feature : BITMAP32 {
kCondition = 0x1;
kWarning = 0x2;
}
+ struct ReplacementProductStruct {
+ ProductIdentifierTypeEnum productIdentifierType = 0;
+ char_string<20> productIdentifierValue = 1;
+ }
+
readonly attribute optional percent condition = 0;
readonly attribute optional DegradationDirectionEnum degradationDirection = 1;
readonly attribute ChangeIndicationEnum changeIndication = 2;
readonly attribute optional boolean inPlaceIndicator = 3;
attribute optional nullable epoch_s lastChangedTime = 4;
+ readonly attribute optional ReplacementProductStruct replacementProductList[] = 5;
readonly attribute command_id generatedCommandList[] = 65528;
readonly attribute command_id acceptedCommandList[] = 65529;
readonly attribute event_id eventList[] = 65530;
diff --git a/src/controller/java/generated/java/chip/devicecontroller/ClusterIDMapping.java b/src/controller/java/generated/java/chip/devicecontroller/ClusterIDMapping.java
index afa67c32b426df..152df216a22292 100644
--- a/src/controller/java/generated/java/chip/devicecontroller/ClusterIDMapping.java
+++ b/src/controller/java/generated/java/chip/devicecontroller/ClusterIDMapping.java
@@ -7866,6 +7866,7 @@ public enum Attribute {
ChangeIndication(2L),
InPlaceIndicator(3L),
LastChangedTime(4L),
+ ReplacementProductList(5L),
GeneratedCommandList(65528L),
AcceptedCommandList(65529L),
EventList(65530L),
@@ -7972,6 +7973,7 @@ public enum Attribute {
ChangeIndication(2L),
InPlaceIndicator(3L),
LastChangedTime(4L),
+ ReplacementProductList(5L),
GeneratedCommandList(65528L),
AcceptedCommandList(65529L),
EventList(65530L),
@@ -8078,6 +8080,7 @@ public enum Attribute {
ChangeIndication(2L),
InPlaceIndicator(3L),
LastChangedTime(4L),
+ ReplacementProductList(5L),
GeneratedCommandList(65528L),
AcceptedCommandList(65529L),
EventList(65530L),
@@ -8184,6 +8187,7 @@ public enum Attribute {
ChangeIndication(2L),
InPlaceIndicator(3L),
LastChangedTime(4L),
+ ReplacementProductList(5L),
GeneratedCommandList(65528L),
AcceptedCommandList(65529L),
EventList(65530L),
@@ -8290,6 +8294,7 @@ public enum Attribute {
ChangeIndication(2L),
InPlaceIndicator(3L),
LastChangedTime(4L),
+ ReplacementProductList(5L),
GeneratedCommandList(65528L),
AcceptedCommandList(65529L),
EventList(65530L),
@@ -8396,6 +8401,7 @@ public enum Attribute {
ChangeIndication(2L),
InPlaceIndicator(3L),
LastChangedTime(4L),
+ ReplacementProductList(5L),
GeneratedCommandList(65528L),
AcceptedCommandList(65529L),
EventList(65530L),
@@ -8502,6 +8508,7 @@ public enum Attribute {
ChangeIndication(2L),
InPlaceIndicator(3L),
LastChangedTime(4L),
+ ReplacementProductList(5L),
GeneratedCommandList(65528L),
AcceptedCommandList(65529L),
EventList(65530L),
@@ -8608,6 +8615,7 @@ public enum Attribute {
ChangeIndication(2L),
InPlaceIndicator(3L),
LastChangedTime(4L),
+ ReplacementProductList(5L),
GeneratedCommandList(65528L),
AcceptedCommandList(65529L),
EventList(65530L),
@@ -8714,6 +8722,7 @@ public enum Attribute {
ChangeIndication(2L),
InPlaceIndicator(3L),
LastChangedTime(4L),
+ ReplacementProductList(5L),
GeneratedCommandList(65528L),
AcceptedCommandList(65529L),
EventList(65530L),
@@ -8820,6 +8829,7 @@ public enum Attribute {
ChangeIndication(2L),
InPlaceIndicator(3L),
LastChangedTime(4L),
+ ReplacementProductList(5L),
GeneratedCommandList(65528L),
AcceptedCommandList(65529L),
EventList(65530L),
@@ -8926,6 +8936,7 @@ public enum Attribute {
ChangeIndication(2L),
InPlaceIndicator(3L),
LastChangedTime(4L),
+ ReplacementProductList(5L),
GeneratedCommandList(65528L),
AcceptedCommandList(65529L),
EventList(65530L),
@@ -9032,6 +9043,7 @@ public enum Attribute {
ChangeIndication(2L),
InPlaceIndicator(3L),
LastChangedTime(4L),
+ ReplacementProductList(5L),
GeneratedCommandList(65528L),
AcceptedCommandList(65529L),
EventList(65530L),
diff --git a/src/controller/java/generated/java/chip/devicecontroller/ClusterReadMapping.java b/src/controller/java/generated/java/chip/devicecontroller/ClusterReadMapping.java
index adb8c1b2db227e..a4e3c7438bedbb 100644
--- a/src/controller/java/generated/java/chip/devicecontroller/ClusterReadMapping.java
+++ b/src/controller/java/generated/java/chip/devicecontroller/ClusterReadMapping.java
@@ -7671,6 +7671,17 @@ private static Map readHepaFilterMonitoringInteractionI
readHepaFilterMonitoringLastChangedTimeCommandParams
);
result.put("readLastChangedTimeAttribute", readHepaFilterMonitoringLastChangedTimeAttributeInteractionInfo);
+ Map readHepaFilterMonitoringReplacementProductListCommandParams = new LinkedHashMap();
+ InteractionInfo readHepaFilterMonitoringReplacementProductListAttributeInteractionInfo = new InteractionInfo(
+ (cluster, callback, commandArguments) -> {
+ ((ChipClusters.HepaFilterMonitoringCluster) cluster).readReplacementProductListAttribute(
+ (ChipClusters.HepaFilterMonitoringCluster.ReplacementProductListAttributeCallback) callback
+ );
+ },
+ () -> new ClusterInfoMapping.DelegatedHepaFilterMonitoringClusterReplacementProductListAttributeCallback(),
+ readHepaFilterMonitoringReplacementProductListCommandParams
+ );
+ result.put("readReplacementProductListAttribute", readHepaFilterMonitoringReplacementProductListAttributeInteractionInfo);
Map readHepaFilterMonitoringGeneratedCommandListCommandParams = new LinkedHashMap();
InteractionInfo readHepaFilterMonitoringGeneratedCommandListAttributeInteractionInfo = new InteractionInfo(
(cluster, callback, commandArguments) -> {
@@ -7796,6 +7807,17 @@ private static Map readActivatedCarbonFilterMonitoringI
readActivatedCarbonFilterMonitoringLastChangedTimeCommandParams
);
result.put("readLastChangedTimeAttribute", readActivatedCarbonFilterMonitoringLastChangedTimeAttributeInteractionInfo);
+ Map readActivatedCarbonFilterMonitoringReplacementProductListCommandParams = new LinkedHashMap();
+ InteractionInfo readActivatedCarbonFilterMonitoringReplacementProductListAttributeInteractionInfo = new InteractionInfo(
+ (cluster, callback, commandArguments) -> {
+ ((ChipClusters.ActivatedCarbonFilterMonitoringCluster) cluster).readReplacementProductListAttribute(
+ (ChipClusters.ActivatedCarbonFilterMonitoringCluster.ReplacementProductListAttributeCallback) callback
+ );
+ },
+ () -> new ClusterInfoMapping.DelegatedActivatedCarbonFilterMonitoringClusterReplacementProductListAttributeCallback(),
+ readActivatedCarbonFilterMonitoringReplacementProductListCommandParams
+ );
+ result.put("readReplacementProductListAttribute", readActivatedCarbonFilterMonitoringReplacementProductListAttributeInteractionInfo);
Map readActivatedCarbonFilterMonitoringGeneratedCommandListCommandParams = new LinkedHashMap();
InteractionInfo readActivatedCarbonFilterMonitoringGeneratedCommandListAttributeInteractionInfo = new InteractionInfo(
(cluster, callback, commandArguments) -> {
@@ -7921,6 +7943,17 @@ private static Map readCeramicFilterMonitoringInteracti
readCeramicFilterMonitoringLastChangedTimeCommandParams
);
result.put("readLastChangedTimeAttribute", readCeramicFilterMonitoringLastChangedTimeAttributeInteractionInfo);
+ Map readCeramicFilterMonitoringReplacementProductListCommandParams = new LinkedHashMap();
+ InteractionInfo readCeramicFilterMonitoringReplacementProductListAttributeInteractionInfo = new InteractionInfo(
+ (cluster, callback, commandArguments) -> {
+ ((ChipClusters.CeramicFilterMonitoringCluster) cluster).readReplacementProductListAttribute(
+ (ChipClusters.CeramicFilterMonitoringCluster.ReplacementProductListAttributeCallback) callback
+ );
+ },
+ () -> new ClusterInfoMapping.DelegatedCeramicFilterMonitoringClusterReplacementProductListAttributeCallback(),
+ readCeramicFilterMonitoringReplacementProductListCommandParams
+ );
+ result.put("readReplacementProductListAttribute", readCeramicFilterMonitoringReplacementProductListAttributeInteractionInfo);
Map readCeramicFilterMonitoringGeneratedCommandListCommandParams = new LinkedHashMap();
InteractionInfo readCeramicFilterMonitoringGeneratedCommandListAttributeInteractionInfo = new InteractionInfo(
(cluster, callback, commandArguments) -> {
@@ -8046,6 +8079,17 @@ private static Map readElectrostaticFilterMonitoringInt
readElectrostaticFilterMonitoringLastChangedTimeCommandParams
);
result.put("readLastChangedTimeAttribute", readElectrostaticFilterMonitoringLastChangedTimeAttributeInteractionInfo);
+ Map readElectrostaticFilterMonitoringReplacementProductListCommandParams = new LinkedHashMap();
+ InteractionInfo readElectrostaticFilterMonitoringReplacementProductListAttributeInteractionInfo = new InteractionInfo(
+ (cluster, callback, commandArguments) -> {
+ ((ChipClusters.ElectrostaticFilterMonitoringCluster) cluster).readReplacementProductListAttribute(
+ (ChipClusters.ElectrostaticFilterMonitoringCluster.ReplacementProductListAttributeCallback) callback
+ );
+ },
+ () -> new ClusterInfoMapping.DelegatedElectrostaticFilterMonitoringClusterReplacementProductListAttributeCallback(),
+ readElectrostaticFilterMonitoringReplacementProductListCommandParams
+ );
+ result.put("readReplacementProductListAttribute", readElectrostaticFilterMonitoringReplacementProductListAttributeInteractionInfo);
Map readElectrostaticFilterMonitoringGeneratedCommandListCommandParams = new LinkedHashMap();
InteractionInfo readElectrostaticFilterMonitoringGeneratedCommandListAttributeInteractionInfo = new InteractionInfo(
(cluster, callback, commandArguments) -> {
@@ -8171,6 +8215,17 @@ private static Map readUvFilterMonitoringInteractionInf
readUvFilterMonitoringLastChangedTimeCommandParams
);
result.put("readLastChangedTimeAttribute", readUvFilterMonitoringLastChangedTimeAttributeInteractionInfo);
+ Map readUvFilterMonitoringReplacementProductListCommandParams = new LinkedHashMap();
+ InteractionInfo readUvFilterMonitoringReplacementProductListAttributeInteractionInfo = new InteractionInfo(
+ (cluster, callback, commandArguments) -> {
+ ((ChipClusters.UvFilterMonitoringCluster) cluster).readReplacementProductListAttribute(
+ (ChipClusters.UvFilterMonitoringCluster.ReplacementProductListAttributeCallback) callback
+ );
+ },
+ () -> new ClusterInfoMapping.DelegatedUvFilterMonitoringClusterReplacementProductListAttributeCallback(),
+ readUvFilterMonitoringReplacementProductListCommandParams
+ );
+ result.put("readReplacementProductListAttribute", readUvFilterMonitoringReplacementProductListAttributeInteractionInfo);
Map readUvFilterMonitoringGeneratedCommandListCommandParams = new LinkedHashMap();
InteractionInfo readUvFilterMonitoringGeneratedCommandListAttributeInteractionInfo = new InteractionInfo(
(cluster, callback, commandArguments) -> {
@@ -8296,6 +8351,17 @@ private static Map readIonizingFilterMonitoringInteract
readIonizingFilterMonitoringLastChangedTimeCommandParams
);
result.put("readLastChangedTimeAttribute", readIonizingFilterMonitoringLastChangedTimeAttributeInteractionInfo);
+ Map readIonizingFilterMonitoringReplacementProductListCommandParams = new LinkedHashMap();
+ InteractionInfo readIonizingFilterMonitoringReplacementProductListAttributeInteractionInfo = new InteractionInfo(
+ (cluster, callback, commandArguments) -> {
+ ((ChipClusters.IonizingFilterMonitoringCluster) cluster).readReplacementProductListAttribute(
+ (ChipClusters.IonizingFilterMonitoringCluster.ReplacementProductListAttributeCallback) callback
+ );
+ },
+ () -> new ClusterInfoMapping.DelegatedIonizingFilterMonitoringClusterReplacementProductListAttributeCallback(),
+ readIonizingFilterMonitoringReplacementProductListCommandParams
+ );
+ result.put("readReplacementProductListAttribute", readIonizingFilterMonitoringReplacementProductListAttributeInteractionInfo);
Map readIonizingFilterMonitoringGeneratedCommandListCommandParams = new LinkedHashMap();
InteractionInfo readIonizingFilterMonitoringGeneratedCommandListAttributeInteractionInfo = new InteractionInfo(
(cluster, callback, commandArguments) -> {
@@ -8421,6 +8487,17 @@ private static Map readZeoliteFilterMonitoringInteracti
readZeoliteFilterMonitoringLastChangedTimeCommandParams
);
result.put("readLastChangedTimeAttribute", readZeoliteFilterMonitoringLastChangedTimeAttributeInteractionInfo);
+ Map readZeoliteFilterMonitoringReplacementProductListCommandParams = new LinkedHashMap();
+ InteractionInfo readZeoliteFilterMonitoringReplacementProductListAttributeInteractionInfo = new InteractionInfo(
+ (cluster, callback, commandArguments) -> {
+ ((ChipClusters.ZeoliteFilterMonitoringCluster) cluster).readReplacementProductListAttribute(
+ (ChipClusters.ZeoliteFilterMonitoringCluster.ReplacementProductListAttributeCallback) callback
+ );
+ },
+ () -> new ClusterInfoMapping.DelegatedZeoliteFilterMonitoringClusterReplacementProductListAttributeCallback(),
+ readZeoliteFilterMonitoringReplacementProductListCommandParams
+ );
+ result.put("readReplacementProductListAttribute", readZeoliteFilterMonitoringReplacementProductListAttributeInteractionInfo);
Map readZeoliteFilterMonitoringGeneratedCommandListCommandParams = new LinkedHashMap();
InteractionInfo readZeoliteFilterMonitoringGeneratedCommandListAttributeInteractionInfo = new InteractionInfo(
(cluster, callback, commandArguments) -> {
@@ -8546,6 +8623,17 @@ private static Map readOzoneFilterMonitoringInteraction
readOzoneFilterMonitoringLastChangedTimeCommandParams
);
result.put("readLastChangedTimeAttribute", readOzoneFilterMonitoringLastChangedTimeAttributeInteractionInfo);
+ Map readOzoneFilterMonitoringReplacementProductListCommandParams = new LinkedHashMap();
+ InteractionInfo readOzoneFilterMonitoringReplacementProductListAttributeInteractionInfo = new InteractionInfo(
+ (cluster, callback, commandArguments) -> {
+ ((ChipClusters.OzoneFilterMonitoringCluster) cluster).readReplacementProductListAttribute(
+ (ChipClusters.OzoneFilterMonitoringCluster.ReplacementProductListAttributeCallback) callback
+ );
+ },
+ () -> new ClusterInfoMapping.DelegatedOzoneFilterMonitoringClusterReplacementProductListAttributeCallback(),
+ readOzoneFilterMonitoringReplacementProductListCommandParams
+ );
+ result.put("readReplacementProductListAttribute", readOzoneFilterMonitoringReplacementProductListAttributeInteractionInfo);
Map readOzoneFilterMonitoringGeneratedCommandListCommandParams = new LinkedHashMap();
InteractionInfo readOzoneFilterMonitoringGeneratedCommandListAttributeInteractionInfo = new InteractionInfo(
(cluster, callback, commandArguments) -> {
@@ -8671,6 +8759,17 @@ private static Map readWaterTankMonitoringInteractionIn
readWaterTankMonitoringLastChangedTimeCommandParams
);
result.put("readLastChangedTimeAttribute", readWaterTankMonitoringLastChangedTimeAttributeInteractionInfo);
+ Map readWaterTankMonitoringReplacementProductListCommandParams = new LinkedHashMap();
+ InteractionInfo readWaterTankMonitoringReplacementProductListAttributeInteractionInfo = new InteractionInfo(
+ (cluster, callback, commandArguments) -> {
+ ((ChipClusters.WaterTankMonitoringCluster) cluster).readReplacementProductListAttribute(
+ (ChipClusters.WaterTankMonitoringCluster.ReplacementProductListAttributeCallback) callback
+ );
+ },
+ () -> new ClusterInfoMapping.DelegatedWaterTankMonitoringClusterReplacementProductListAttributeCallback(),
+ readWaterTankMonitoringReplacementProductListCommandParams
+ );
+ result.put("readReplacementProductListAttribute", readWaterTankMonitoringReplacementProductListAttributeInteractionInfo);
Map readWaterTankMonitoringGeneratedCommandListCommandParams = new LinkedHashMap();
InteractionInfo readWaterTankMonitoringGeneratedCommandListAttributeInteractionInfo = new InteractionInfo(
(cluster, callback, commandArguments) -> {
@@ -8796,6 +8895,17 @@ private static Map readFuelTankMonitoringInteractionInf
readFuelTankMonitoringLastChangedTimeCommandParams
);
result.put("readLastChangedTimeAttribute", readFuelTankMonitoringLastChangedTimeAttributeInteractionInfo);
+ Map readFuelTankMonitoringReplacementProductListCommandParams = new LinkedHashMap();
+ InteractionInfo readFuelTankMonitoringReplacementProductListAttributeInteractionInfo = new InteractionInfo(
+ (cluster, callback, commandArguments) -> {
+ ((ChipClusters.FuelTankMonitoringCluster) cluster).readReplacementProductListAttribute(
+ (ChipClusters.FuelTankMonitoringCluster.ReplacementProductListAttributeCallback) callback
+ );
+ },
+ () -> new ClusterInfoMapping.DelegatedFuelTankMonitoringClusterReplacementProductListAttributeCallback(),
+ readFuelTankMonitoringReplacementProductListCommandParams
+ );
+ result.put("readReplacementProductListAttribute", readFuelTankMonitoringReplacementProductListAttributeInteractionInfo);
Map readFuelTankMonitoringGeneratedCommandListCommandParams = new LinkedHashMap();
InteractionInfo readFuelTankMonitoringGeneratedCommandListAttributeInteractionInfo = new InteractionInfo(
(cluster, callback, commandArguments) -> {
@@ -8921,6 +9031,17 @@ private static Map readInkCartridgeMonitoringInteractio
readInkCartridgeMonitoringLastChangedTimeCommandParams
);
result.put("readLastChangedTimeAttribute", readInkCartridgeMonitoringLastChangedTimeAttributeInteractionInfo);
+ Map readInkCartridgeMonitoringReplacementProductListCommandParams = new LinkedHashMap();
+ InteractionInfo readInkCartridgeMonitoringReplacementProductListAttributeInteractionInfo = new InteractionInfo(
+ (cluster, callback, commandArguments) -> {
+ ((ChipClusters.InkCartridgeMonitoringCluster) cluster).readReplacementProductListAttribute(
+ (ChipClusters.InkCartridgeMonitoringCluster.ReplacementProductListAttributeCallback) callback
+ );
+ },
+ () -> new ClusterInfoMapping.DelegatedInkCartridgeMonitoringClusterReplacementProductListAttributeCallback(),
+ readInkCartridgeMonitoringReplacementProductListCommandParams
+ );
+ result.put("readReplacementProductListAttribute", readInkCartridgeMonitoringReplacementProductListAttributeInteractionInfo);
Map readInkCartridgeMonitoringGeneratedCommandListCommandParams = new LinkedHashMap();
InteractionInfo readInkCartridgeMonitoringGeneratedCommandListAttributeInteractionInfo = new InteractionInfo(
(cluster, callback, commandArguments) -> {
@@ -9046,6 +9167,17 @@ private static Map readTonerCartridgeMonitoringInteract
readTonerCartridgeMonitoringLastChangedTimeCommandParams
);
result.put("readLastChangedTimeAttribute", readTonerCartridgeMonitoringLastChangedTimeAttributeInteractionInfo);
+ Map readTonerCartridgeMonitoringReplacementProductListCommandParams = new LinkedHashMap();
+ InteractionInfo readTonerCartridgeMonitoringReplacementProductListAttributeInteractionInfo = new InteractionInfo(
+ (cluster, callback, commandArguments) -> {
+ ((ChipClusters.TonerCartridgeMonitoringCluster) cluster).readReplacementProductListAttribute(
+ (ChipClusters.TonerCartridgeMonitoringCluster.ReplacementProductListAttributeCallback) callback
+ );
+ },
+ () -> new ClusterInfoMapping.DelegatedTonerCartridgeMonitoringClusterReplacementProductListAttributeCallback(),
+ readTonerCartridgeMonitoringReplacementProductListCommandParams
+ );
+ result.put("readReplacementProductListAttribute", readTonerCartridgeMonitoringReplacementProductListAttributeInteractionInfo);
Map readTonerCartridgeMonitoringGeneratedCommandListCommandParams = new LinkedHashMap();
InteractionInfo readTonerCartridgeMonitoringGeneratedCommandListAttributeInteractionInfo = new InteractionInfo(
(cluster, callback, commandArguments) -> {
diff --git a/src/controller/java/zap-generated/CHIPAttributeTLVValueDecoder.cpp b/src/controller/java/zap-generated/CHIPAttributeTLVValueDecoder.cpp
index dad2a4e637783c..f1813681f553ba 100644
--- a/src/controller/java/zap-generated/CHIPAttributeTLVValueDecoder.cpp
+++ b/src/controller/java/zap-generated/CHIPAttributeTLVValueDecoder.cpp
@@ -15830,6 +15830,55 @@ jobject DecodeAttributeValue(const app::ConcreteAttributePath & aPath, TLV::TLVR
}
return value;
}
+ case Attributes::ReplacementProductList::Id: {
+ using TypeInfo = Attributes::ReplacementProductList::TypeInfo;
+ TypeInfo::DecodableType cppValue;
+ *aError = app::DataModel::Decode(aReader, cppValue);
+ if (*aError != CHIP_NO_ERROR)
+ {
+ return nullptr;
+ }
+ jobject value;
+ chip::JniReferences::GetInstance().CreateArrayList(value);
+
+ auto iter_value_0 = cppValue.begin();
+ while (iter_value_0.Next())
+ {
+ auto & entry_0 = iter_value_0.GetValue();
+ jobject newElement_0;
+ jobject newElement_0_productIdentifierType;
+ std::string newElement_0_productIdentifierTypeClassName = "java/lang/Integer";
+ std::string newElement_0_productIdentifierTypeCtorSignature = "(I)V";
+ chip::JniReferences::GetInstance().CreateBoxedObject(
+ newElement_0_productIdentifierTypeClassName.c_str(), newElement_0_productIdentifierTypeCtorSignature.c_str(),
+ static_cast(entry_0.productIdentifierType), newElement_0_productIdentifierType);
+ jobject newElement_0_productIdentifierValue;
+ LogErrorOnFailure(chip::JniReferences::GetInstance().CharToStringUTF(entry_0.productIdentifierValue,
+ newElement_0_productIdentifierValue));
+
+ jclass replacementProductStructStructClass_1;
+ err = chip::JniReferences::GetInstance().GetClassRef(
+ env, "chip/devicecontroller/ChipStructs$HepaFilterMonitoringClusterReplacementProductStruct",
+ replacementProductStructStructClass_1);
+ if (err != CHIP_NO_ERROR)
+ {
+ ChipLogError(Zcl, "Could not find class ChipStructs$HepaFilterMonitoringClusterReplacementProductStruct");
+ return nullptr;
+ }
+ jmethodID replacementProductStructStructCtor_1 =
+ env->GetMethodID(replacementProductStructStructClass_1, "", "(Ljava/lang/Integer;Ljava/lang/String;)V");
+ if (replacementProductStructStructCtor_1 == nullptr)
+ {
+ ChipLogError(Zcl, "Could not find ChipStructs$HepaFilterMonitoringClusterReplacementProductStruct constructor");
+ return nullptr;
+ }
+
+ newElement_0 = env->NewObject(replacementProductStructStructClass_1, replacementProductStructStructCtor_1,
+ newElement_0_productIdentifierType, newElement_0_productIdentifierValue);
+ chip::JniReferences::GetInstance().AddToList(value, newElement_0);
+ }
+ return value;
+ }
case Attributes::GeneratedCommandList::Id: {
using TypeInfo = Attributes::GeneratedCommandList::TypeInfo;
TypeInfo::DecodableType cppValue;
@@ -16048,6 +16097,58 @@ jobject DecodeAttributeValue(const app::ConcreteAttributePath & aPath, TLV::TLVR
}
return value;
}
+ case Attributes::ReplacementProductList::Id: {
+ using TypeInfo = Attributes::ReplacementProductList::TypeInfo;
+ TypeInfo::DecodableType cppValue;
+ *aError = app::DataModel::Decode(aReader, cppValue);
+ if (*aError != CHIP_NO_ERROR)
+ {
+ return nullptr;
+ }
+ jobject value;
+ chip::JniReferences::GetInstance().CreateArrayList(value);
+
+ auto iter_value_0 = cppValue.begin();
+ while (iter_value_0.Next())
+ {
+ auto & entry_0 = iter_value_0.GetValue();
+ jobject newElement_0;
+ jobject newElement_0_productIdentifierType;
+ std::string newElement_0_productIdentifierTypeClassName = "java/lang/Integer";
+ std::string newElement_0_productIdentifierTypeCtorSignature = "(I)V";
+ chip::JniReferences::GetInstance().CreateBoxedObject(
+ newElement_0_productIdentifierTypeClassName.c_str(), newElement_0_productIdentifierTypeCtorSignature.c_str(),
+ static_cast(entry_0.productIdentifierType), newElement_0_productIdentifierType);
+ jobject newElement_0_productIdentifierValue;
+ LogErrorOnFailure(chip::JniReferences::GetInstance().CharToStringUTF(entry_0.productIdentifierValue,
+ newElement_0_productIdentifierValue));
+
+ jclass replacementProductStructStructClass_1;
+ err = chip::JniReferences::GetInstance().GetClassRef(
+ env, "chip/devicecontroller/ChipStructs$ActivatedCarbonFilterMonitoringClusterReplacementProductStruct",
+ replacementProductStructStructClass_1);
+ if (err != CHIP_NO_ERROR)
+ {
+ ChipLogError(Zcl,
+ "Could not find class ChipStructs$ActivatedCarbonFilterMonitoringClusterReplacementProductStruct");
+ return nullptr;
+ }
+ jmethodID replacementProductStructStructCtor_1 =
+ env->GetMethodID(replacementProductStructStructClass_1, "", "(Ljava/lang/Integer;Ljava/lang/String;)V");
+ if (replacementProductStructStructCtor_1 == nullptr)
+ {
+ ChipLogError(
+ Zcl,
+ "Could not find ChipStructs$ActivatedCarbonFilterMonitoringClusterReplacementProductStruct constructor");
+ return nullptr;
+ }
+
+ newElement_0 = env->NewObject(replacementProductStructStructClass_1, replacementProductStructStructCtor_1,
+ newElement_0_productIdentifierType, newElement_0_productIdentifierValue);
+ chip::JniReferences::GetInstance().AddToList(value, newElement_0);
+ }
+ return value;
+ }
case Attributes::GeneratedCommandList::Id: {
using TypeInfo = Attributes::GeneratedCommandList::TypeInfo;
TypeInfo::DecodableType cppValue;
@@ -16266,6 +16367,56 @@ jobject DecodeAttributeValue(const app::ConcreteAttributePath & aPath, TLV::TLVR
}
return value;
}
+ case Attributes::ReplacementProductList::Id: {
+ using TypeInfo = Attributes::ReplacementProductList::TypeInfo;
+ TypeInfo::DecodableType cppValue;
+ *aError = app::DataModel::Decode(aReader, cppValue);
+ if (*aError != CHIP_NO_ERROR)
+ {
+ return nullptr;
+ }
+ jobject value;
+ chip::JniReferences::GetInstance().CreateArrayList(value);
+
+ auto iter_value_0 = cppValue.begin();
+ while (iter_value_0.Next())
+ {
+ auto & entry_0 = iter_value_0.GetValue();
+ jobject newElement_0;
+ jobject newElement_0_productIdentifierType;
+ std::string newElement_0_productIdentifierTypeClassName = "java/lang/Integer";
+ std::string newElement_0_productIdentifierTypeCtorSignature = "(I)V";
+ chip::JniReferences::GetInstance().CreateBoxedObject(
+ newElement_0_productIdentifierTypeClassName.c_str(), newElement_0_productIdentifierTypeCtorSignature.c_str(),
+ static_cast(entry_0.productIdentifierType), newElement_0_productIdentifierType);
+ jobject newElement_0_productIdentifierValue;
+ LogErrorOnFailure(chip::JniReferences::GetInstance().CharToStringUTF(entry_0.productIdentifierValue,
+ newElement_0_productIdentifierValue));
+
+ jclass replacementProductStructStructClass_1;
+ err = chip::JniReferences::GetInstance().GetClassRef(
+ env, "chip/devicecontroller/ChipStructs$CeramicFilterMonitoringClusterReplacementProductStruct",
+ replacementProductStructStructClass_1);
+ if (err != CHIP_NO_ERROR)
+ {
+ ChipLogError(Zcl, "Could not find class ChipStructs$CeramicFilterMonitoringClusterReplacementProductStruct");
+ return nullptr;
+ }
+ jmethodID replacementProductStructStructCtor_1 =
+ env->GetMethodID(replacementProductStructStructClass_1, "", "(Ljava/lang/Integer;Ljava/lang/String;)V");
+ if (replacementProductStructStructCtor_1 == nullptr)
+ {
+ ChipLogError(Zcl,
+ "Could not find ChipStructs$CeramicFilterMonitoringClusterReplacementProductStruct constructor");
+ return nullptr;
+ }
+
+ newElement_0 = env->NewObject(replacementProductStructStructClass_1, replacementProductStructStructCtor_1,
+ newElement_0_productIdentifierType, newElement_0_productIdentifierValue);
+ chip::JniReferences::GetInstance().AddToList(value, newElement_0);
+ }
+ return value;
+ }
case Attributes::GeneratedCommandList::Id: {
using TypeInfo = Attributes::GeneratedCommandList::TypeInfo;
TypeInfo::DecodableType cppValue;
@@ -16484,6 +16635,57 @@ jobject DecodeAttributeValue(const app::ConcreteAttributePath & aPath, TLV::TLVR
}
return value;
}
+ case Attributes::ReplacementProductList::Id: {
+ using TypeInfo = Attributes::ReplacementProductList::TypeInfo;
+ TypeInfo::DecodableType cppValue;
+ *aError = app::DataModel::Decode(aReader, cppValue);
+ if (*aError != CHIP_NO_ERROR)
+ {
+ return nullptr;
+ }
+ jobject value;
+ chip::JniReferences::GetInstance().CreateArrayList(value);
+
+ auto iter_value_0 = cppValue.begin();
+ while (iter_value_0.Next())
+ {
+ auto & entry_0 = iter_value_0.GetValue();
+ jobject newElement_0;
+ jobject newElement_0_productIdentifierType;
+ std::string newElement_0_productIdentifierTypeClassName = "java/lang/Integer";
+ std::string newElement_0_productIdentifierTypeCtorSignature = "(I)V";
+ chip::JniReferences::GetInstance().CreateBoxedObject(
+ newElement_0_productIdentifierTypeClassName.c_str(), newElement_0_productIdentifierTypeCtorSignature.c_str(),
+ static_cast(entry_0.productIdentifierType), newElement_0_productIdentifierType);
+ jobject newElement_0_productIdentifierValue;
+ LogErrorOnFailure(chip::JniReferences::GetInstance().CharToStringUTF(entry_0.productIdentifierValue,
+ newElement_0_productIdentifierValue));
+
+ jclass replacementProductStructStructClass_1;
+ err = chip::JniReferences::GetInstance().GetClassRef(
+ env, "chip/devicecontroller/ChipStructs$ElectrostaticFilterMonitoringClusterReplacementProductStruct",
+ replacementProductStructStructClass_1);
+ if (err != CHIP_NO_ERROR)
+ {
+ ChipLogError(Zcl,
+ "Could not find class ChipStructs$ElectrostaticFilterMonitoringClusterReplacementProductStruct");
+ return nullptr;
+ }
+ jmethodID replacementProductStructStructCtor_1 =
+ env->GetMethodID(replacementProductStructStructClass_1, "", "(Ljava/lang/Integer;Ljava/lang/String;)V");
+ if (replacementProductStructStructCtor_1 == nullptr)
+ {
+ ChipLogError(
+ Zcl, "Could not find ChipStructs$ElectrostaticFilterMonitoringClusterReplacementProductStruct constructor");
+ return nullptr;
+ }
+
+ newElement_0 = env->NewObject(replacementProductStructStructClass_1, replacementProductStructStructCtor_1,
+ newElement_0_productIdentifierType, newElement_0_productIdentifierValue);
+ chip::JniReferences::GetInstance().AddToList(value, newElement_0);
+ }
+ return value;
+ }
case Attributes::GeneratedCommandList::Id: {
using TypeInfo = Attributes::GeneratedCommandList::TypeInfo;
TypeInfo::DecodableType cppValue;
@@ -16702,6 +16904,55 @@ jobject DecodeAttributeValue(const app::ConcreteAttributePath & aPath, TLV::TLVR
}
return value;
}
+ case Attributes::ReplacementProductList::Id: {
+ using TypeInfo = Attributes::ReplacementProductList::TypeInfo;
+ TypeInfo::DecodableType cppValue;
+ *aError = app::DataModel::Decode(aReader, cppValue);
+ if (*aError != CHIP_NO_ERROR)
+ {
+ return nullptr;
+ }
+ jobject value;
+ chip::JniReferences::GetInstance().CreateArrayList(value);
+
+ auto iter_value_0 = cppValue.begin();
+ while (iter_value_0.Next())
+ {
+ auto & entry_0 = iter_value_0.GetValue();
+ jobject newElement_0;
+ jobject newElement_0_productIdentifierType;
+ std::string newElement_0_productIdentifierTypeClassName = "java/lang/Integer";
+ std::string newElement_0_productIdentifierTypeCtorSignature = "(I)V";
+ chip::JniReferences::GetInstance().CreateBoxedObject(
+ newElement_0_productIdentifierTypeClassName.c_str(), newElement_0_productIdentifierTypeCtorSignature.c_str(),
+ static_cast(entry_0.productIdentifierType), newElement_0_productIdentifierType);
+ jobject newElement_0_productIdentifierValue;
+ LogErrorOnFailure(chip::JniReferences::GetInstance().CharToStringUTF(entry_0.productIdentifierValue,
+ newElement_0_productIdentifierValue));
+
+ jclass replacementProductStructStructClass_1;
+ err = chip::JniReferences::GetInstance().GetClassRef(
+ env, "chip/devicecontroller/ChipStructs$UvFilterMonitoringClusterReplacementProductStruct",
+ replacementProductStructStructClass_1);
+ if (err != CHIP_NO_ERROR)
+ {
+ ChipLogError(Zcl, "Could not find class ChipStructs$UvFilterMonitoringClusterReplacementProductStruct");
+ return nullptr;
+ }
+ jmethodID replacementProductStructStructCtor_1 =
+ env->GetMethodID(replacementProductStructStructClass_1, "", "(Ljava/lang/Integer;Ljava/lang/String;)V");
+ if (replacementProductStructStructCtor_1 == nullptr)
+ {
+ ChipLogError(Zcl, "Could not find ChipStructs$UvFilterMonitoringClusterReplacementProductStruct constructor");
+ return nullptr;
+ }
+
+ newElement_0 = env->NewObject(replacementProductStructStructClass_1, replacementProductStructStructCtor_1,
+ newElement_0_productIdentifierType, newElement_0_productIdentifierValue);
+ chip::JniReferences::GetInstance().AddToList(value, newElement_0);
+ }
+ return value;
+ }
case Attributes::GeneratedCommandList::Id: {
using TypeInfo = Attributes::GeneratedCommandList::TypeInfo;
TypeInfo::DecodableType cppValue;
@@ -16920,6 +17171,56 @@ jobject DecodeAttributeValue(const app::ConcreteAttributePath & aPath, TLV::TLVR
}
return value;
}
+ case Attributes::ReplacementProductList::Id: {
+ using TypeInfo = Attributes::ReplacementProductList::TypeInfo;
+ TypeInfo::DecodableType cppValue;
+ *aError = app::DataModel::Decode(aReader, cppValue);
+ if (*aError != CHIP_NO_ERROR)
+ {
+ return nullptr;
+ }
+ jobject value;
+ chip::JniReferences::GetInstance().CreateArrayList(value);
+
+ auto iter_value_0 = cppValue.begin();
+ while (iter_value_0.Next())
+ {
+ auto & entry_0 = iter_value_0.GetValue();
+ jobject newElement_0;
+ jobject newElement_0_productIdentifierType;
+ std::string newElement_0_productIdentifierTypeClassName = "java/lang/Integer";
+ std::string newElement_0_productIdentifierTypeCtorSignature = "(I)V";
+ chip::JniReferences::GetInstance().CreateBoxedObject(
+ newElement_0_productIdentifierTypeClassName.c_str(), newElement_0_productIdentifierTypeCtorSignature.c_str(),
+ static_cast(entry_0.productIdentifierType), newElement_0_productIdentifierType);
+ jobject newElement_0_productIdentifierValue;
+ LogErrorOnFailure(chip::JniReferences::GetInstance().CharToStringUTF(entry_0.productIdentifierValue,
+ newElement_0_productIdentifierValue));
+
+ jclass replacementProductStructStructClass_1;
+ err = chip::JniReferences::GetInstance().GetClassRef(
+ env, "chip/devicecontroller/ChipStructs$IonizingFilterMonitoringClusterReplacementProductStruct",
+ replacementProductStructStructClass_1);
+ if (err != CHIP_NO_ERROR)
+ {
+ ChipLogError(Zcl, "Could not find class ChipStructs$IonizingFilterMonitoringClusterReplacementProductStruct");
+ return nullptr;
+ }
+ jmethodID replacementProductStructStructCtor_1 =
+ env->GetMethodID(replacementProductStructStructClass_1, "", "(Ljava/lang/Integer;Ljava/lang/String;)V");
+ if (replacementProductStructStructCtor_1 == nullptr)
+ {
+ ChipLogError(Zcl,
+ "Could not find ChipStructs$IonizingFilterMonitoringClusterReplacementProductStruct constructor");
+ return nullptr;
+ }
+
+ newElement_0 = env->NewObject(replacementProductStructStructClass_1, replacementProductStructStructCtor_1,
+ newElement_0_productIdentifierType, newElement_0_productIdentifierValue);
+ chip::JniReferences::GetInstance().AddToList(value, newElement_0);
+ }
+ return value;
+ }
case Attributes::GeneratedCommandList::Id: {
using TypeInfo = Attributes::GeneratedCommandList::TypeInfo;
TypeInfo::DecodableType cppValue;
@@ -17138,6 +17439,56 @@ jobject DecodeAttributeValue(const app::ConcreteAttributePath & aPath, TLV::TLVR
}
return value;
}
+ case Attributes::ReplacementProductList::Id: {
+ using TypeInfo = Attributes::ReplacementProductList::TypeInfo;
+ TypeInfo::DecodableType cppValue;
+ *aError = app::DataModel::Decode(aReader, cppValue);
+ if (*aError != CHIP_NO_ERROR)
+ {
+ return nullptr;
+ }
+ jobject value;
+ chip::JniReferences::GetInstance().CreateArrayList(value);
+
+ auto iter_value_0 = cppValue.begin();
+ while (iter_value_0.Next())
+ {
+ auto & entry_0 = iter_value_0.GetValue();
+ jobject newElement_0;
+ jobject newElement_0_productIdentifierType;
+ std::string newElement_0_productIdentifierTypeClassName = "java/lang/Integer";
+ std::string newElement_0_productIdentifierTypeCtorSignature = "(I)V";
+ chip::JniReferences::GetInstance().CreateBoxedObject(
+ newElement_0_productIdentifierTypeClassName.c_str(), newElement_0_productIdentifierTypeCtorSignature.c_str(),
+ static_cast(entry_0.productIdentifierType), newElement_0_productIdentifierType);
+ jobject newElement_0_productIdentifierValue;
+ LogErrorOnFailure(chip::JniReferences::GetInstance().CharToStringUTF(entry_0.productIdentifierValue,
+ newElement_0_productIdentifierValue));
+
+ jclass replacementProductStructStructClass_1;
+ err = chip::JniReferences::GetInstance().GetClassRef(
+ env, "chip/devicecontroller/ChipStructs$ZeoliteFilterMonitoringClusterReplacementProductStruct",
+ replacementProductStructStructClass_1);
+ if (err != CHIP_NO_ERROR)
+ {
+ ChipLogError(Zcl, "Could not find class ChipStructs$ZeoliteFilterMonitoringClusterReplacementProductStruct");
+ return nullptr;
+ }
+ jmethodID replacementProductStructStructCtor_1 =
+ env->GetMethodID(replacementProductStructStructClass_1, "", "(Ljava/lang/Integer;Ljava/lang/String;)V");
+ if (replacementProductStructStructCtor_1 == nullptr)
+ {
+ ChipLogError(Zcl,
+ "Could not find ChipStructs$ZeoliteFilterMonitoringClusterReplacementProductStruct constructor");
+ return nullptr;
+ }
+
+ newElement_0 = env->NewObject(replacementProductStructStructClass_1, replacementProductStructStructCtor_1,
+ newElement_0_productIdentifierType, newElement_0_productIdentifierValue);
+ chip::JniReferences::GetInstance().AddToList(value, newElement_0);
+ }
+ return value;
+ }
case Attributes::GeneratedCommandList::Id: {
using TypeInfo = Attributes::GeneratedCommandList::TypeInfo;
TypeInfo::DecodableType cppValue;
@@ -17356,6 +17707,56 @@ jobject DecodeAttributeValue(const app::ConcreteAttributePath & aPath, TLV::TLVR
}
return value;
}
+ case Attributes::ReplacementProductList::Id: {
+ using TypeInfo = Attributes::ReplacementProductList::TypeInfo;
+ TypeInfo::DecodableType cppValue;
+ *aError = app::DataModel::Decode(aReader, cppValue);
+ if (*aError != CHIP_NO_ERROR)
+ {
+ return nullptr;
+ }
+ jobject value;
+ chip::JniReferences::GetInstance().CreateArrayList(value);
+
+ auto iter_value_0 = cppValue.begin();
+ while (iter_value_0.Next())
+ {
+ auto & entry_0 = iter_value_0.GetValue();
+ jobject newElement_0;
+ jobject newElement_0_productIdentifierType;
+ std::string newElement_0_productIdentifierTypeClassName = "java/lang/Integer";
+ std::string newElement_0_productIdentifierTypeCtorSignature = "(I)V";
+ chip::JniReferences::GetInstance().CreateBoxedObject(
+ newElement_0_productIdentifierTypeClassName.c_str(), newElement_0_productIdentifierTypeCtorSignature.c_str(),
+ static_cast(entry_0.productIdentifierType), newElement_0_productIdentifierType);
+ jobject newElement_0_productIdentifierValue;
+ LogErrorOnFailure(chip::JniReferences::GetInstance().CharToStringUTF(entry_0.productIdentifierValue,
+ newElement_0_productIdentifierValue));
+
+ jclass replacementProductStructStructClass_1;
+ err = chip::JniReferences::GetInstance().GetClassRef(
+ env, "chip/devicecontroller/ChipStructs$OzoneFilterMonitoringClusterReplacementProductStruct",
+ replacementProductStructStructClass_1);
+ if (err != CHIP_NO_ERROR)
+ {
+ ChipLogError(Zcl, "Could not find class ChipStructs$OzoneFilterMonitoringClusterReplacementProductStruct");
+ return nullptr;
+ }
+ jmethodID replacementProductStructStructCtor_1 =
+ env->GetMethodID(replacementProductStructStructClass_1, "", "(Ljava/lang/Integer;Ljava/lang/String;)V");
+ if (replacementProductStructStructCtor_1 == nullptr)
+ {
+ ChipLogError(Zcl,
+ "Could not find ChipStructs$OzoneFilterMonitoringClusterReplacementProductStruct constructor");
+ return nullptr;
+ }
+
+ newElement_0 = env->NewObject(replacementProductStructStructClass_1, replacementProductStructStructCtor_1,
+ newElement_0_productIdentifierType, newElement_0_productIdentifierValue);
+ chip::JniReferences::GetInstance().AddToList(value, newElement_0);
+ }
+ return value;
+ }
case Attributes::GeneratedCommandList::Id: {
using TypeInfo = Attributes::GeneratedCommandList::TypeInfo;
TypeInfo::DecodableType cppValue;
@@ -17574,6 +17975,55 @@ jobject DecodeAttributeValue(const app::ConcreteAttributePath & aPath, TLV::TLVR
}
return value;
}
+ case Attributes::ReplacementProductList::Id: {
+ using TypeInfo = Attributes::ReplacementProductList::TypeInfo;
+ TypeInfo::DecodableType cppValue;
+ *aError = app::DataModel::Decode(aReader, cppValue);
+ if (*aError != CHIP_NO_ERROR)
+ {
+ return nullptr;
+ }
+ jobject value;
+ chip::JniReferences::GetInstance().CreateArrayList(value);
+
+ auto iter_value_0 = cppValue.begin();
+ while (iter_value_0.Next())
+ {
+ auto & entry_0 = iter_value_0.GetValue();
+ jobject newElement_0;
+ jobject newElement_0_productIdentifierType;
+ std::string newElement_0_productIdentifierTypeClassName = "java/lang/Integer";
+ std::string newElement_0_productIdentifierTypeCtorSignature = "(I)V";
+ chip::JniReferences::GetInstance().CreateBoxedObject(
+ newElement_0_productIdentifierTypeClassName.c_str(), newElement_0_productIdentifierTypeCtorSignature.c_str(),
+ static_cast(entry_0.productIdentifierType), newElement_0_productIdentifierType);
+ jobject newElement_0_productIdentifierValue;
+ LogErrorOnFailure(chip::JniReferences::GetInstance().CharToStringUTF(entry_0.productIdentifierValue,
+ newElement_0_productIdentifierValue));
+
+ jclass replacementProductStructStructClass_1;
+ err = chip::JniReferences::GetInstance().GetClassRef(
+ env, "chip/devicecontroller/ChipStructs$WaterTankMonitoringClusterReplacementProductStruct",
+ replacementProductStructStructClass_1);
+ if (err != CHIP_NO_ERROR)
+ {
+ ChipLogError(Zcl, "Could not find class ChipStructs$WaterTankMonitoringClusterReplacementProductStruct");
+ return nullptr;
+ }
+ jmethodID replacementProductStructStructCtor_1 =
+ env->GetMethodID(replacementProductStructStructClass_1, "", "(Ljava/lang/Integer;Ljava/lang/String;)V");
+ if (replacementProductStructStructCtor_1 == nullptr)
+ {
+ ChipLogError(Zcl, "Could not find ChipStructs$WaterTankMonitoringClusterReplacementProductStruct constructor");
+ return nullptr;
+ }
+
+ newElement_0 = env->NewObject(replacementProductStructStructClass_1, replacementProductStructStructCtor_1,
+ newElement_0_productIdentifierType, newElement_0_productIdentifierValue);
+ chip::JniReferences::GetInstance().AddToList(value, newElement_0);
+ }
+ return value;
+ }
case Attributes::GeneratedCommandList::Id: {
using TypeInfo = Attributes::GeneratedCommandList::TypeInfo;
TypeInfo::DecodableType cppValue;
@@ -17792,6 +18242,55 @@ jobject DecodeAttributeValue(const app::ConcreteAttributePath & aPath, TLV::TLVR
}
return value;
}
+ case Attributes::ReplacementProductList::Id: {
+ using TypeInfo = Attributes::ReplacementProductList::TypeInfo;
+ TypeInfo::DecodableType cppValue;
+ *aError = app::DataModel::Decode(aReader, cppValue);
+ if (*aError != CHIP_NO_ERROR)
+ {
+ return nullptr;
+ }
+ jobject value;
+ chip::JniReferences::GetInstance().CreateArrayList(value);
+
+ auto iter_value_0 = cppValue.begin();
+ while (iter_value_0.Next())
+ {
+ auto & entry_0 = iter_value_0.GetValue();
+ jobject newElement_0;
+ jobject newElement_0_productIdentifierType;
+ std::string newElement_0_productIdentifierTypeClassName = "java/lang/Integer";
+ std::string newElement_0_productIdentifierTypeCtorSignature = "(I)V";
+ chip::JniReferences::GetInstance().CreateBoxedObject(
+ newElement_0_productIdentifierTypeClassName.c_str(), newElement_0_productIdentifierTypeCtorSignature.c_str(),
+ static_cast(entry_0.productIdentifierType), newElement_0_productIdentifierType);
+ jobject newElement_0_productIdentifierValue;
+ LogErrorOnFailure(chip::JniReferences::GetInstance().CharToStringUTF(entry_0.productIdentifierValue,
+ newElement_0_productIdentifierValue));
+
+ jclass replacementProductStructStructClass_1;
+ err = chip::JniReferences::GetInstance().GetClassRef(
+ env, "chip/devicecontroller/ChipStructs$FuelTankMonitoringClusterReplacementProductStruct",
+ replacementProductStructStructClass_1);
+ if (err != CHIP_NO_ERROR)
+ {
+ ChipLogError(Zcl, "Could not find class ChipStructs$FuelTankMonitoringClusterReplacementProductStruct");
+ return nullptr;
+ }
+ jmethodID replacementProductStructStructCtor_1 =
+ env->GetMethodID(replacementProductStructStructClass_1, "", "(Ljava/lang/Integer;Ljava/lang/String;)V");
+ if (replacementProductStructStructCtor_1 == nullptr)
+ {
+ ChipLogError(Zcl, "Could not find ChipStructs$FuelTankMonitoringClusterReplacementProductStruct constructor");
+ return nullptr;
+ }
+
+ newElement_0 = env->NewObject(replacementProductStructStructClass_1, replacementProductStructStructCtor_1,
+ newElement_0_productIdentifierType, newElement_0_productIdentifierValue);
+ chip::JniReferences::GetInstance().AddToList(value, newElement_0);
+ }
+ return value;
+ }
case Attributes::GeneratedCommandList::Id: {
using TypeInfo = Attributes::GeneratedCommandList::TypeInfo;
TypeInfo::DecodableType cppValue;
@@ -18010,6 +18509,56 @@ jobject DecodeAttributeValue(const app::ConcreteAttributePath & aPath, TLV::TLVR
}
return value;
}
+ case Attributes::ReplacementProductList::Id: {
+ using TypeInfo = Attributes::ReplacementProductList::TypeInfo;
+ TypeInfo::DecodableType cppValue;
+ *aError = app::DataModel::Decode(aReader, cppValue);
+ if (*aError != CHIP_NO_ERROR)
+ {
+ return nullptr;
+ }
+ jobject value;
+ chip::JniReferences::GetInstance().CreateArrayList(value);
+
+ auto iter_value_0 = cppValue.begin();
+ while (iter_value_0.Next())
+ {
+ auto & entry_0 = iter_value_0.GetValue();
+ jobject newElement_0;
+ jobject newElement_0_productIdentifierType;
+ std::string newElement_0_productIdentifierTypeClassName = "java/lang/Integer";
+ std::string newElement_0_productIdentifierTypeCtorSignature = "(I)V";
+ chip::JniReferences::GetInstance().CreateBoxedObject(
+ newElement_0_productIdentifierTypeClassName.c_str(), newElement_0_productIdentifierTypeCtorSignature.c_str(),
+ static_cast(entry_0.productIdentifierType), newElement_0_productIdentifierType);
+ jobject newElement_0_productIdentifierValue;
+ LogErrorOnFailure(chip::JniReferences::GetInstance().CharToStringUTF(entry_0.productIdentifierValue,
+ newElement_0_productIdentifierValue));
+
+ jclass replacementProductStructStructClass_1;
+ err = chip::JniReferences::GetInstance().GetClassRef(
+ env, "chip/devicecontroller/ChipStructs$InkCartridgeMonitoringClusterReplacementProductStruct",
+ replacementProductStructStructClass_1);
+ if (err != CHIP_NO_ERROR)
+ {
+ ChipLogError(Zcl, "Could not find class ChipStructs$InkCartridgeMonitoringClusterReplacementProductStruct");
+ return nullptr;
+ }
+ jmethodID replacementProductStructStructCtor_1 =
+ env->GetMethodID(replacementProductStructStructClass_1, "", "(Ljava/lang/Integer;Ljava/lang/String;)V");
+ if (replacementProductStructStructCtor_1 == nullptr)
+ {
+ ChipLogError(Zcl,
+ "Could not find ChipStructs$InkCartridgeMonitoringClusterReplacementProductStruct constructor");
+ return nullptr;
+ }
+
+ newElement_0 = env->NewObject(replacementProductStructStructClass_1, replacementProductStructStructCtor_1,
+ newElement_0_productIdentifierType, newElement_0_productIdentifierValue);
+ chip::JniReferences::GetInstance().AddToList(value, newElement_0);
+ }
+ return value;
+ }
case Attributes::GeneratedCommandList::Id: {
using TypeInfo = Attributes::GeneratedCommandList::TypeInfo;
TypeInfo::DecodableType cppValue;
@@ -18228,6 +18777,56 @@ jobject DecodeAttributeValue(const app::ConcreteAttributePath & aPath, TLV::TLVR
}
return value;
}
+ case Attributes::ReplacementProductList::Id: {
+ using TypeInfo = Attributes::ReplacementProductList::TypeInfo;
+ TypeInfo::DecodableType cppValue;
+ *aError = app::DataModel::Decode(aReader, cppValue);
+ if (*aError != CHIP_NO_ERROR)
+ {
+ return nullptr;
+ }
+ jobject value;
+ chip::JniReferences::GetInstance().CreateArrayList(value);
+
+ auto iter_value_0 = cppValue.begin();
+ while (iter_value_0.Next())
+ {
+ auto & entry_0 = iter_value_0.GetValue();
+ jobject newElement_0;
+ jobject newElement_0_productIdentifierType;
+ std::string newElement_0_productIdentifierTypeClassName = "java/lang/Integer";
+ std::string newElement_0_productIdentifierTypeCtorSignature = "(I)V";
+ chip::JniReferences::GetInstance().CreateBoxedObject(
+ newElement_0_productIdentifierTypeClassName.c_str(), newElement_0_productIdentifierTypeCtorSignature.c_str(),
+ static_cast(entry_0.productIdentifierType), newElement_0_productIdentifierType);
+ jobject newElement_0_productIdentifierValue;
+ LogErrorOnFailure(chip::JniReferences::GetInstance().CharToStringUTF(entry_0.productIdentifierValue,
+ newElement_0_productIdentifierValue));
+
+ jclass replacementProductStructStructClass_1;
+ err = chip::JniReferences::GetInstance().GetClassRef(
+ env, "chip/devicecontroller/ChipStructs$TonerCartridgeMonitoringClusterReplacementProductStruct",
+ replacementProductStructStructClass_1);
+ if (err != CHIP_NO_ERROR)
+ {
+ ChipLogError(Zcl, "Could not find class ChipStructs$TonerCartridgeMonitoringClusterReplacementProductStruct");
+ return nullptr;
+ }
+ jmethodID replacementProductStructStructCtor_1 =
+ env->GetMethodID(replacementProductStructStructClass_1, "", "(Ljava/lang/Integer;Ljava/lang/String;)V");
+ if (replacementProductStructStructCtor_1 == nullptr)
+ {
+ ChipLogError(Zcl,
+ "Could not find ChipStructs$TonerCartridgeMonitoringClusterReplacementProductStruct constructor");
+ return nullptr;
+ }
+
+ newElement_0 = env->NewObject(replacementProductStructStructClass_1, replacementProductStructStructCtor_1,
+ newElement_0_productIdentifierType, newElement_0_productIdentifierValue);
+ chip::JniReferences::GetInstance().AddToList(value, newElement_0);
+ }
+ return value;
+ }
case Attributes::GeneratedCommandList::Id: {
using TypeInfo = Attributes::GeneratedCommandList::TypeInfo;
TypeInfo::DecodableType cppValue;
diff --git a/src/controller/java/zap-generated/CHIPClientCallbacks.h b/src/controller/java/zap-generated/CHIPClientCallbacks.h
index 07f71ec192639c..e0cbc95d113571 100644
--- a/src/controller/java/zap-generated/CHIPClientCallbacks.h
+++ b/src/controller/java/zap-generated/CHIPClientCallbacks.h
@@ -616,6 +616,10 @@ typedef void (*RvcOperationalStateEventListListAttributeCallback)(void * context
const chip::app::DataModel::DecodableList & data);
typedef void (*RvcOperationalStateAttributeListListAttributeCallback)(
void * context, const chip::app::DataModel::DecodableList & data);
+typedef void (*HepaFilterMonitoringReplacementProductListListAttributeCallback)(
+ void * context,
+ const chip::app::DataModel::DecodableList<
+ chip::app::Clusters::HepaFilterMonitoring::Structs::ReplacementProductStruct::DecodableType> & data);
typedef void (*HepaFilterMonitoringGeneratedCommandListListAttributeCallback)(
void * context, const chip::app::DataModel::DecodableList & data);
typedef void (*HepaFilterMonitoringAcceptedCommandListListAttributeCallback)(
@@ -624,6 +628,10 @@ typedef void (*HepaFilterMonitoringEventListListAttributeCallback)(void * contex
const chip::app::DataModel::DecodableList & data);
typedef void (*HepaFilterMonitoringAttributeListListAttributeCallback)(
void * context, const chip::app::DataModel::DecodableList & data);
+typedef void (*ActivatedCarbonFilterMonitoringReplacementProductListListAttributeCallback)(
+ void * context,
+ const chip::app::DataModel::DecodableList<
+ chip::app::Clusters::ActivatedCarbonFilterMonitoring::Structs::ReplacementProductStruct::DecodableType> & data);
typedef void (*ActivatedCarbonFilterMonitoringGeneratedCommandListListAttributeCallback)(
void * context, const chip::app::DataModel::DecodableList & data);
typedef void (*ActivatedCarbonFilterMonitoringAcceptedCommandListListAttributeCallback)(
@@ -632,6 +640,10 @@ typedef void (*ActivatedCarbonFilterMonitoringEventListListAttributeCallback)(
void * context, const chip::app::DataModel::DecodableList & data);
typedef void (*ActivatedCarbonFilterMonitoringAttributeListListAttributeCallback)(
void * context, const chip::app::DataModel::DecodableList & data);
+typedef void (*CeramicFilterMonitoringReplacementProductListListAttributeCallback)(
+ void * context,
+ const chip::app::DataModel::DecodableList<
+ chip::app::Clusters::CeramicFilterMonitoring::Structs::ReplacementProductStruct::DecodableType> & data);
typedef void (*CeramicFilterMonitoringGeneratedCommandListListAttributeCallback)(
void * context, const chip::app::DataModel::DecodableList & data);
typedef void (*CeramicFilterMonitoringAcceptedCommandListListAttributeCallback)(
@@ -640,6 +652,10 @@ typedef void (*CeramicFilterMonitoringEventListListAttributeCallback)(
void * context, const chip::app::DataModel::DecodableList & data);
typedef void (*CeramicFilterMonitoringAttributeListListAttributeCallback)(
void * context, const chip::app::DataModel::DecodableList & data);
+typedef void (*ElectrostaticFilterMonitoringReplacementProductListListAttributeCallback)(
+ void * context,
+ const chip::app::DataModel::DecodableList<
+ chip::app::Clusters::ElectrostaticFilterMonitoring::Structs::ReplacementProductStruct::DecodableType> & data);
typedef void (*ElectrostaticFilterMonitoringGeneratedCommandListListAttributeCallback)(
void * context, const chip::app::DataModel::DecodableList & data);
typedef void (*ElectrostaticFilterMonitoringAcceptedCommandListListAttributeCallback)(
@@ -648,6 +664,10 @@ typedef void (*ElectrostaticFilterMonitoringEventListListAttributeCallback)(
void * context, const chip::app::DataModel::DecodableList & data);
typedef void (*ElectrostaticFilterMonitoringAttributeListListAttributeCallback)(
void * context, const chip::app::DataModel::DecodableList & data);
+typedef void (*UvFilterMonitoringReplacementProductListListAttributeCallback)(
+ void * context,
+ const chip::app::DataModel::DecodableList<
+ chip::app::Clusters::UvFilterMonitoring::Structs::ReplacementProductStruct::DecodableType> & data);
typedef void (*UvFilterMonitoringGeneratedCommandListListAttributeCallback)(
void * context, const chip::app::DataModel::DecodableList & data);
typedef void (*UvFilterMonitoringAcceptedCommandListListAttributeCallback)(
@@ -656,6 +676,10 @@ typedef void (*UvFilterMonitoringEventListListAttributeCallback)(void * context,
const chip::app::DataModel::DecodableList & data);
typedef void (*UvFilterMonitoringAttributeListListAttributeCallback)(
void * context, const chip::app::DataModel::DecodableList & data);
+typedef void (*IonizingFilterMonitoringReplacementProductListListAttributeCallback)(
+ void * context,
+ const chip::app::DataModel::DecodableList<
+ chip::app::Clusters::IonizingFilterMonitoring::Structs::ReplacementProductStruct::DecodableType> & data);
typedef void (*IonizingFilterMonitoringGeneratedCommandListListAttributeCallback)(
void * context, const chip::app::DataModel::DecodableList & data);
typedef void (*IonizingFilterMonitoringAcceptedCommandListListAttributeCallback)(
@@ -664,6 +688,10 @@ typedef void (*IonizingFilterMonitoringEventListListAttributeCallback)(
void * context, const chip::app::DataModel::DecodableList & data);
typedef void (*IonizingFilterMonitoringAttributeListListAttributeCallback)(
void * context, const chip::app::DataModel::DecodableList & data);
+typedef void (*ZeoliteFilterMonitoringReplacementProductListListAttributeCallback)(
+ void * context,
+ const chip::app::DataModel::DecodableList<
+ chip::app::Clusters::ZeoliteFilterMonitoring::Structs::ReplacementProductStruct::DecodableType> & data);
typedef void (*ZeoliteFilterMonitoringGeneratedCommandListListAttributeCallback)(
void * context, const chip::app::DataModel::DecodableList & data);
typedef void (*ZeoliteFilterMonitoringAcceptedCommandListListAttributeCallback)(
@@ -672,6 +700,10 @@ typedef void (*ZeoliteFilterMonitoringEventListListAttributeCallback)(
void * context, const chip::app::DataModel::DecodableList & data);
typedef void (*ZeoliteFilterMonitoringAttributeListListAttributeCallback)(
void * context, const chip::app::DataModel::DecodableList & data);
+typedef void (*OzoneFilterMonitoringReplacementProductListListAttributeCallback)(
+ void * context,
+ const chip::app::DataModel::DecodableList<
+ chip::app::Clusters::OzoneFilterMonitoring::Structs::ReplacementProductStruct::DecodableType> & data);
typedef void (*OzoneFilterMonitoringGeneratedCommandListListAttributeCallback)(
void * context, const chip::app::DataModel::DecodableList & data);
typedef void (*OzoneFilterMonitoringAcceptedCommandListListAttributeCallback)(
@@ -680,6 +712,10 @@ typedef void (*OzoneFilterMonitoringEventListListAttributeCallback)(
void * context, const chip::app::DataModel::DecodableList & data);
typedef void (*OzoneFilterMonitoringAttributeListListAttributeCallback)(
void * context, const chip::app::DataModel::DecodableList & data);
+typedef void (*WaterTankMonitoringReplacementProductListListAttributeCallback)(
+ void * context,
+ const chip::app::DataModel::DecodableList<
+ chip::app::Clusters::WaterTankMonitoring::Structs::ReplacementProductStruct::DecodableType> & data);
typedef void (*WaterTankMonitoringGeneratedCommandListListAttributeCallback)(
void * context, const chip::app::DataModel::DecodableList & data);
typedef void (*WaterTankMonitoringAcceptedCommandListListAttributeCallback)(
@@ -688,6 +724,10 @@ typedef void (*WaterTankMonitoringEventListListAttributeCallback)(void * context
const chip::app::DataModel::DecodableList & data);
typedef void (*WaterTankMonitoringAttributeListListAttributeCallback)(
void * context, const chip::app::DataModel::DecodableList & data);
+typedef void (*FuelTankMonitoringReplacementProductListListAttributeCallback)(
+ void * context,
+ const chip::app::DataModel::DecodableList<
+ chip::app::Clusters::FuelTankMonitoring::Structs::ReplacementProductStruct::DecodableType> & data);
typedef void (*FuelTankMonitoringGeneratedCommandListListAttributeCallback)(
void * context, const chip::app::DataModel::DecodableList & data);
typedef void (*FuelTankMonitoringAcceptedCommandListListAttributeCallback)(
@@ -696,6 +736,10 @@ typedef void (*FuelTankMonitoringEventListListAttributeCallback)(void * context,
const chip::app::DataModel::DecodableList & data);
typedef void (*FuelTankMonitoringAttributeListListAttributeCallback)(
void * context, const chip::app::DataModel::DecodableList & data);
+typedef void (*InkCartridgeMonitoringReplacementProductListListAttributeCallback)(
+ void * context,
+ const chip::app::DataModel::DecodableList<
+ chip::app::Clusters::InkCartridgeMonitoring::Structs::ReplacementProductStruct::DecodableType> & data);
typedef void (*InkCartridgeMonitoringGeneratedCommandListListAttributeCallback)(
void * context, const chip::app::DataModel::DecodableList & data);
typedef void (*InkCartridgeMonitoringAcceptedCommandListListAttributeCallback)(
@@ -704,6 +748,10 @@ typedef void (*InkCartridgeMonitoringEventListListAttributeCallback)(
void * context, const chip::app::DataModel::DecodableList & data);
typedef void (*InkCartridgeMonitoringAttributeListListAttributeCallback)(
void * context, const chip::app::DataModel::DecodableList & data);
+typedef void (*TonerCartridgeMonitoringReplacementProductListListAttributeCallback)(
+ void * context,
+ const chip::app::DataModel::DecodableList<
+ chip::app::Clusters::TonerCartridgeMonitoring::Structs::ReplacementProductStruct::DecodableType> & data);
typedef void (*TonerCartridgeMonitoringGeneratedCommandListListAttributeCallback)(
void * context, const chip::app::DataModel::DecodableList & data);
typedef void (*TonerCartridgeMonitoringAcceptedCommandListListAttributeCallback)(
diff --git a/src/controller/java/zap-generated/CHIPReadCallbacks.cpp b/src/controller/java/zap-generated/CHIPReadCallbacks.cpp
index bf73f478d44a3e..9bdd599ecef5d8 100644
--- a/src/controller/java/zap-generated/CHIPReadCallbacks.cpp
+++ b/src/controller/java/zap-generated/CHIPReadCallbacks.cpp
@@ -25644,6 +25644,104 @@ void CHIPHepaFilterMonitoringLastChangedTimeAttributeCallback::CallbackFn(void *
env->CallVoidMethod(javaCallbackRef, javaMethod, javaValue);
}
+CHIPHepaFilterMonitoringReplacementProductListAttributeCallback::CHIPHepaFilterMonitoringReplacementProductListAttributeCallback(
+ jobject javaCallback, bool keepAlive) :
+ chip::Callback::Callback(CallbackFn, this),
+ keepAlive(keepAlive)
+{
+ JNIEnv * env = chip::JniReferences::GetInstance().GetEnvForCurrentThread();
+ if (env == nullptr)
+ {
+ ChipLogError(Zcl, "Could not create global reference for Java callback");
+ return;
+ }
+
+ javaCallbackRef = env->NewGlobalRef(javaCallback);
+ if (javaCallbackRef == nullptr)
+ {
+ ChipLogError(Zcl, "Could not create global reference for Java callback");
+ }
+}
+
+CHIPHepaFilterMonitoringReplacementProductListAttributeCallback::~CHIPHepaFilterMonitoringReplacementProductListAttributeCallback()
+{
+ JNIEnv * env = chip::JniReferences::GetInstance().GetEnvForCurrentThread();
+ if (env == nullptr)
+ {
+ ChipLogError(Zcl, "Could not delete global reference for Java callback");
+ return;
+ }
+ env->DeleteGlobalRef(javaCallbackRef);
+}
+
+void CHIPHepaFilterMonitoringReplacementProductListAttributeCallback::CallbackFn(
+ void * context,
+ const chip::app::DataModel::DecodableList<
+ chip::app::Clusters::HepaFilterMonitoring::Structs::ReplacementProductStruct::DecodableType> & list)
+{
+ chip::DeviceLayer::StackUnlock unlock;
+ CHIP_ERROR err = CHIP_NO_ERROR;
+ JNIEnv * env = chip::JniReferences::GetInstance().GetEnvForCurrentThread();
+ jobject javaCallbackRef;
+
+ VerifyOrReturn(env != nullptr, ChipLogError(Zcl, "Could not get JNI env"));
+
+ std::unique_ptr cppCallback(
+ reinterpret_cast(context), maybeDestroy);
+
+ // It's valid for javaCallbackRef to be nullptr if the Java code passed in a null callback.
+ javaCallbackRef = cppCallback.get()->javaCallbackRef;
+ VerifyOrReturn(javaCallbackRef != nullptr,
+ ChipLogProgress(Zcl, "Early return from attribute callback since Java callback is null"));
+
+ jmethodID javaMethod;
+ err = chip::JniReferences::GetInstance().FindMethod(env, javaCallbackRef, "onSuccess", "(Ljava/util/List;)V", &javaMethod);
+ VerifyOrReturn(err == CHIP_NO_ERROR, ChipLogError(Zcl, "Could not find onSuccess() method"));
+
+ jobject arrayListObj;
+ chip::JniReferences::GetInstance().CreateArrayList(arrayListObj);
+
+ auto iter_arrayListObj_0 = list.begin();
+ while (iter_arrayListObj_0.Next())
+ {
+ auto & entry_0 = iter_arrayListObj_0.GetValue();
+ jobject newElement_0;
+ jobject newElement_0_productIdentifierType;
+ std::string newElement_0_productIdentifierTypeClassName = "java/lang/Integer";
+ std::string newElement_0_productIdentifierTypeCtorSignature = "(I)V";
+ chip::JniReferences::GetInstance().CreateBoxedObject(
+ newElement_0_productIdentifierTypeClassName.c_str(), newElement_0_productIdentifierTypeCtorSignature.c_str(),
+ static_cast(entry_0.productIdentifierType), newElement_0_productIdentifierType);
+ jobject newElement_0_productIdentifierValue;
+ LogErrorOnFailure(chip::JniReferences::GetInstance().CharToStringUTF(entry_0.productIdentifierValue,
+ newElement_0_productIdentifierValue));
+
+ jclass replacementProductStructStructClass_1;
+ err = chip::JniReferences::GetInstance().GetClassRef(
+ env, "chip/devicecontroller/ChipStructs$HepaFilterMonitoringClusterReplacementProductStruct",
+ replacementProductStructStructClass_1);
+ if (err != CHIP_NO_ERROR)
+ {
+ ChipLogError(Zcl, "Could not find class ChipStructs$HepaFilterMonitoringClusterReplacementProductStruct");
+ return;
+ }
+ jmethodID replacementProductStructStructCtor_1 =
+ env->GetMethodID(replacementProductStructStructClass_1, "", "(Ljava/lang/Integer;Ljava/lang/String;)V");
+ if (replacementProductStructStructCtor_1 == nullptr)
+ {
+ ChipLogError(Zcl, "Could not find ChipStructs$HepaFilterMonitoringClusterReplacementProductStruct constructor");
+ return;
+ }
+
+ newElement_0 = env->NewObject(replacementProductStructStructClass_1, replacementProductStructStructCtor_1,
+ newElement_0_productIdentifierType, newElement_0_productIdentifierValue);
+ chip::JniReferences::GetInstance().AddToList(arrayListObj, newElement_0);
+ }
+
+ env->ExceptionClear();
+ env->CallVoidMethod(javaCallbackRef, javaMethod, arrayListObj);
+}
+
CHIPHepaFilterMonitoringGeneratedCommandListAttributeCallback::CHIPHepaFilterMonitoringGeneratedCommandListAttributeCallback(
jobject javaCallback, bool keepAlive) :
chip::Callback::Callback(CallbackFn, this),
@@ -25996,6 +26094,108 @@ void CHIPActivatedCarbonFilterMonitoringLastChangedTimeAttributeCallback::Callba
env->CallVoidMethod(javaCallbackRef, javaMethod, javaValue);
}
+CHIPActivatedCarbonFilterMonitoringReplacementProductListAttributeCallback::
+ CHIPActivatedCarbonFilterMonitoringReplacementProductListAttributeCallback(jobject javaCallback, bool keepAlive) :
+ chip::Callback::Callback(CallbackFn,
+ this),
+ keepAlive(keepAlive)
+{
+ JNIEnv * env = chip::JniReferences::GetInstance().GetEnvForCurrentThread();
+ if (env == nullptr)
+ {
+ ChipLogError(Zcl, "Could not create global reference for Java callback");
+ return;
+ }
+
+ javaCallbackRef = env->NewGlobalRef(javaCallback);
+ if (javaCallbackRef == nullptr)
+ {
+ ChipLogError(Zcl, "Could not create global reference for Java callback");
+ }
+}
+
+CHIPActivatedCarbonFilterMonitoringReplacementProductListAttributeCallback::
+ ~CHIPActivatedCarbonFilterMonitoringReplacementProductListAttributeCallback()
+{
+ JNIEnv * env = chip::JniReferences::GetInstance().GetEnvForCurrentThread();
+ if (env == nullptr)
+ {
+ ChipLogError(Zcl, "Could not delete global reference for Java callback");
+ return;
+ }
+ env->DeleteGlobalRef(javaCallbackRef);
+}
+
+void CHIPActivatedCarbonFilterMonitoringReplacementProductListAttributeCallback::CallbackFn(
+ void * context,
+ const chip::app::DataModel::DecodableList<
+ chip::app::Clusters::ActivatedCarbonFilterMonitoring::Structs::ReplacementProductStruct::DecodableType> & list)
+{
+ chip::DeviceLayer::StackUnlock unlock;
+ CHIP_ERROR err = CHIP_NO_ERROR;
+ JNIEnv * env = chip::JniReferences::GetInstance().GetEnvForCurrentThread();
+ jobject javaCallbackRef;
+
+ VerifyOrReturn(env != nullptr, ChipLogError(Zcl, "Could not get JNI env"));
+
+ std::unique_ptr
+ cppCallback(reinterpret_cast(context),
+ maybeDestroy);
+
+ // It's valid for javaCallbackRef to be nullptr if the Java code passed in a null callback.
+ javaCallbackRef = cppCallback.get()->javaCallbackRef;
+ VerifyOrReturn(javaCallbackRef != nullptr,
+ ChipLogProgress(Zcl, "Early return from attribute callback since Java callback is null"));
+
+ jmethodID javaMethod;
+ err = chip::JniReferences::GetInstance().FindMethod(env, javaCallbackRef, "onSuccess", "(Ljava/util/List;)V", &javaMethod);
+ VerifyOrReturn(err == CHIP_NO_ERROR, ChipLogError(Zcl, "Could not find onSuccess() method"));
+
+ jobject arrayListObj;
+ chip::JniReferences::GetInstance().CreateArrayList(arrayListObj);
+
+ auto iter_arrayListObj_0 = list.begin();
+ while (iter_arrayListObj_0.Next())
+ {
+ auto & entry_0 = iter_arrayListObj_0.GetValue();
+ jobject newElement_0;
+ jobject newElement_0_productIdentifierType;
+ std::string newElement_0_productIdentifierTypeClassName = "java/lang/Integer";
+ std::string newElement_0_productIdentifierTypeCtorSignature = "(I)V";
+ chip::JniReferences::GetInstance().CreateBoxedObject(
+ newElement_0_productIdentifierTypeClassName.c_str(), newElement_0_productIdentifierTypeCtorSignature.c_str(),
+ static_cast(entry_0.productIdentifierType), newElement_0_productIdentifierType);
+ jobject newElement_0_productIdentifierValue;
+ LogErrorOnFailure(chip::JniReferences::GetInstance().CharToStringUTF(entry_0.productIdentifierValue,
+ newElement_0_productIdentifierValue));
+
+ jclass replacementProductStructStructClass_1;
+ err = chip::JniReferences::GetInstance().GetClassRef(
+ env, "chip/devicecontroller/ChipStructs$ActivatedCarbonFilterMonitoringClusterReplacementProductStruct",
+ replacementProductStructStructClass_1);
+ if (err != CHIP_NO_ERROR)
+ {
+ ChipLogError(Zcl, "Could not find class ChipStructs$ActivatedCarbonFilterMonitoringClusterReplacementProductStruct");
+ return;
+ }
+ jmethodID replacementProductStructStructCtor_1 =
+ env->GetMethodID(replacementProductStructStructClass_1, "", "(Ljava/lang/Integer;Ljava/lang/String;)V");
+ if (replacementProductStructStructCtor_1 == nullptr)
+ {
+ ChipLogError(Zcl,
+ "Could not find ChipStructs$ActivatedCarbonFilterMonitoringClusterReplacementProductStruct constructor");
+ return;
+ }
+
+ newElement_0 = env->NewObject(replacementProductStructStructClass_1, replacementProductStructStructCtor_1,
+ newElement_0_productIdentifierType, newElement_0_productIdentifierValue);
+ chip::JniReferences::GetInstance().AddToList(arrayListObj, newElement_0);
+ }
+
+ env->ExceptionClear();
+ env->CallVoidMethod(javaCallbackRef, javaMethod, arrayListObj);
+}
+
CHIPActivatedCarbonFilterMonitoringGeneratedCommandListAttributeCallback::
CHIPActivatedCarbonFilterMonitoringGeneratedCommandListAttributeCallback(jobject javaCallback, bool keepAlive) :
chip::Callback::Callback(CallbackFn, this),
@@ -26350,6 +26550,105 @@ void CHIPCeramicFilterMonitoringLastChangedTimeAttributeCallback::CallbackFn(voi
env->CallVoidMethod(javaCallbackRef, javaMethod, javaValue);
}
+CHIPCeramicFilterMonitoringReplacementProductListAttributeCallback::
+ CHIPCeramicFilterMonitoringReplacementProductListAttributeCallback(jobject javaCallback, bool keepAlive) :
+ chip::Callback::Callback(CallbackFn, this),
+ keepAlive(keepAlive)
+{
+ JNIEnv * env = chip::JniReferences::GetInstance().GetEnvForCurrentThread();
+ if (env == nullptr)
+ {
+ ChipLogError(Zcl, "Could not create global reference for Java callback");
+ return;
+ }
+
+ javaCallbackRef = env->NewGlobalRef(javaCallback);
+ if (javaCallbackRef == nullptr)
+ {
+ ChipLogError(Zcl, "Could not create global reference for Java callback");
+ }
+}
+
+CHIPCeramicFilterMonitoringReplacementProductListAttributeCallback::
+ ~CHIPCeramicFilterMonitoringReplacementProductListAttributeCallback()
+{
+ JNIEnv * env = chip::JniReferences::GetInstance().GetEnvForCurrentThread();
+ if (env == nullptr)
+ {
+ ChipLogError(Zcl, "Could not delete global reference for Java callback");
+ return;
+ }
+ env->DeleteGlobalRef(javaCallbackRef);
+}
+
+void CHIPCeramicFilterMonitoringReplacementProductListAttributeCallback::CallbackFn(
+ void * context,
+ const chip::app::DataModel::DecodableList<
+ chip::app::Clusters::CeramicFilterMonitoring::Structs::ReplacementProductStruct::DecodableType> & list)
+{
+ chip::DeviceLayer::StackUnlock unlock;
+ CHIP_ERROR err = CHIP_NO_ERROR;
+ JNIEnv * env = chip::JniReferences::GetInstance().GetEnvForCurrentThread();
+ jobject javaCallbackRef;
+
+ VerifyOrReturn(env != nullptr, ChipLogError(Zcl, "Could not get JNI env"));
+
+ std::unique_ptr cppCallback(
+ reinterpret_cast(context), maybeDestroy);
+
+ // It's valid for javaCallbackRef to be nullptr if the Java code passed in a null callback.
+ javaCallbackRef = cppCallback.get()->javaCallbackRef;
+ VerifyOrReturn(javaCallbackRef != nullptr,
+ ChipLogProgress(Zcl, "Early return from attribute callback since Java callback is null"));
+
+ jmethodID javaMethod;
+ err = chip::JniReferences::GetInstance().FindMethod(env, javaCallbackRef, "onSuccess", "(Ljava/util/List;)V", &javaMethod);
+ VerifyOrReturn(err == CHIP_NO_ERROR, ChipLogError(Zcl, "Could not find onSuccess() method"));
+
+ jobject arrayListObj;
+ chip::JniReferences::GetInstance().CreateArrayList(arrayListObj);
+
+ auto iter_arrayListObj_0 = list.begin();
+ while (iter_arrayListObj_0.Next())
+ {
+ auto & entry_0 = iter_arrayListObj_0.GetValue();
+ jobject newElement_0;
+ jobject newElement_0_productIdentifierType;
+ std::string newElement_0_productIdentifierTypeClassName = "java/lang/Integer";
+ std::string newElement_0_productIdentifierTypeCtorSignature = "(I)V";
+ chip::JniReferences::GetInstance().CreateBoxedObject(
+ newElement_0_productIdentifierTypeClassName.c_str(), newElement_0_productIdentifierTypeCtorSignature.c_str(),
+ static_cast(entry_0.productIdentifierType), newElement_0_productIdentifierType);
+ jobject newElement_0_productIdentifierValue;
+ LogErrorOnFailure(chip::JniReferences::GetInstance().CharToStringUTF(entry_0.productIdentifierValue,
+ newElement_0_productIdentifierValue));
+
+ jclass replacementProductStructStructClass_1;
+ err = chip::JniReferences::GetInstance().GetClassRef(
+ env, "chip/devicecontroller/ChipStructs$CeramicFilterMonitoringClusterReplacementProductStruct",
+ replacementProductStructStructClass_1);
+ if (err != CHIP_NO_ERROR)
+ {
+ ChipLogError(Zcl, "Could not find class ChipStructs$CeramicFilterMonitoringClusterReplacementProductStruct");
+ return;
+ }
+ jmethodID replacementProductStructStructCtor_1 =
+ env->GetMethodID(replacementProductStructStructClass_1, "", "(Ljava/lang/Integer;Ljava/lang/String;)V");
+ if (replacementProductStructStructCtor_1 == nullptr)
+ {
+ ChipLogError(Zcl, "Could not find ChipStructs$CeramicFilterMonitoringClusterReplacementProductStruct constructor");
+ return;
+ }
+
+ newElement_0 = env->NewObject(replacementProductStructStructClass_1, replacementProductStructStructCtor_1,
+ newElement_0_productIdentifierType, newElement_0_productIdentifierValue);
+ chip::JniReferences::GetInstance().AddToList(arrayListObj, newElement_0);
+ }
+
+ env->ExceptionClear();
+ env->CallVoidMethod(javaCallbackRef, javaMethod, arrayListObj);
+}
+
CHIPCeramicFilterMonitoringGeneratedCommandListAttributeCallback::CHIPCeramicFilterMonitoringGeneratedCommandListAttributeCallback(
jobject javaCallback, bool keepAlive) :
chip::Callback::Callback(CallbackFn, this),
@@ -26703,9 +27002,9 @@ void CHIPElectrostaticFilterMonitoringLastChangedTimeAttributeCallback::Callback
env->CallVoidMethod(javaCallbackRef, javaMethod, javaValue);
}
-CHIPElectrostaticFilterMonitoringGeneratedCommandListAttributeCallback::
- CHIPElectrostaticFilterMonitoringGeneratedCommandListAttributeCallback(jobject javaCallback, bool keepAlive) :
- chip::Callback::Callback(CallbackFn, this),
+CHIPElectrostaticFilterMonitoringReplacementProductListAttributeCallback::
+ CHIPElectrostaticFilterMonitoringReplacementProductListAttributeCallback(jobject javaCallback, bool keepAlive) :
+ chip::Callback::Callback(CallbackFn, this),
keepAlive(keepAlive)
{
JNIEnv * env = chip::JniReferences::GetInstance().GetEnvForCurrentThread();
@@ -26722,8 +27021,8 @@ CHIPElectrostaticFilterMonitoringGeneratedCommandListAttributeCallback::
}
}
-CHIPElectrostaticFilterMonitoringGeneratedCommandListAttributeCallback::
- ~CHIPElectrostaticFilterMonitoringGeneratedCommandListAttributeCallback()
+CHIPElectrostaticFilterMonitoringReplacementProductListAttributeCallback::
+ ~CHIPElectrostaticFilterMonitoringReplacementProductListAttributeCallback()
{
JNIEnv * env = chip::JniReferences::GetInstance().GetEnvForCurrentThread();
if (env == nullptr)
@@ -26734,8 +27033,10 @@ CHIPElectrostaticFilterMonitoringGeneratedCommandListAttributeCallback::
env->DeleteGlobalRef(javaCallbackRef);
}
-void CHIPElectrostaticFilterMonitoringGeneratedCommandListAttributeCallback::CallbackFn(
- void * context, const chip::app::DataModel::DecodableList & list)
+void CHIPElectrostaticFilterMonitoringReplacementProductListAttributeCallback::CallbackFn(
+ void * context,
+ const chip::app::DataModel::DecodableList<
+ chip::app::Clusters::ElectrostaticFilterMonitoring::Structs::ReplacementProductStruct::DecodableType> & list)
{
chip::DeviceLayer::StackUnlock unlock;
CHIP_ERROR err = CHIP_NO_ERROR;
@@ -26744,8 +27045,8 @@ void CHIPElectrostaticFilterMonitoringGeneratedCommandListAttributeCallback::Cal
VerifyOrReturn(env != nullptr, ChipLogError(Zcl, "Could not get JNI env"));
- std::unique_ptr cppCallback(
- reinterpret_cast(context), maybeDestroy);
+ std::unique_ptr cppCallback(
+ reinterpret_cast(context), maybeDestroy);
// It's valid for javaCallbackRef to be nullptr if the Java code passed in a null callback.
javaCallbackRef = cppCallback.get()->javaCallbackRef;
@@ -26764,10 +27065,36 @@ void CHIPElectrostaticFilterMonitoringGeneratedCommandListAttributeCallback::Cal
{
auto & entry_0 = iter_arrayListObj_0.GetValue();
jobject newElement_0;
- std::string newElement_0ClassName = "java/lang/Long";
- std::string newElement_0CtorSignature = "(J)V";
- chip::JniReferences::GetInstance().CreateBoxedObject(newElement_0ClassName.c_str(),
- newElement_0CtorSignature.c_str(), entry_0, newElement_0);
+ jobject newElement_0_productIdentifierType;
+ std::string newElement_0_productIdentifierTypeClassName = "java/lang/Integer";
+ std::string newElement_0_productIdentifierTypeCtorSignature = "(I)V";
+ chip::JniReferences::GetInstance().CreateBoxedObject(
+ newElement_0_productIdentifierTypeClassName.c_str(), newElement_0_productIdentifierTypeCtorSignature.c_str(),
+ static_cast(entry_0.productIdentifierType), newElement_0_productIdentifierType);
+ jobject newElement_0_productIdentifierValue;
+ LogErrorOnFailure(chip::JniReferences::GetInstance().CharToStringUTF(entry_0.productIdentifierValue,
+ newElement_0_productIdentifierValue));
+
+ jclass replacementProductStructStructClass_1;
+ err = chip::JniReferences::GetInstance().GetClassRef(
+ env, "chip/devicecontroller/ChipStructs$ElectrostaticFilterMonitoringClusterReplacementProductStruct",
+ replacementProductStructStructClass_1);
+ if (err != CHIP_NO_ERROR)
+ {
+ ChipLogError(Zcl, "Could not find class ChipStructs$ElectrostaticFilterMonitoringClusterReplacementProductStruct");
+ return;
+ }
+ jmethodID replacementProductStructStructCtor_1 =
+ env->GetMethodID(replacementProductStructStructClass_1, "", "(Ljava/lang/Integer;Ljava/lang/String;)V");
+ if (replacementProductStructStructCtor_1 == nullptr)
+ {
+ ChipLogError(Zcl,
+ "Could not find ChipStructs$ElectrostaticFilterMonitoringClusterReplacementProductStruct constructor");
+ return;
+ }
+
+ newElement_0 = env->NewObject(replacementProductStructStructClass_1, replacementProductStructStructCtor_1,
+ newElement_0_productIdentifierType, newElement_0_productIdentifierValue);
chip::JniReferences::GetInstance().AddToList(arrayListObj, newElement_0);
}
@@ -26775,9 +27102,9 @@ void CHIPElectrostaticFilterMonitoringGeneratedCommandListAttributeCallback::Cal
env->CallVoidMethod(javaCallbackRef, javaMethod, arrayListObj);
}
-CHIPElectrostaticFilterMonitoringAcceptedCommandListAttributeCallback::
- CHIPElectrostaticFilterMonitoringAcceptedCommandListAttributeCallback(jobject javaCallback, bool keepAlive) :
- chip::Callback::Callback(CallbackFn, this),
+CHIPElectrostaticFilterMonitoringGeneratedCommandListAttributeCallback::
+ CHIPElectrostaticFilterMonitoringGeneratedCommandListAttributeCallback(jobject javaCallback, bool keepAlive) :
+ chip::Callback::Callback(CallbackFn, this),
keepAlive(keepAlive)
{
JNIEnv * env = chip::JniReferences::GetInstance().GetEnvForCurrentThread();
@@ -26794,9 +27121,81 @@ CHIPElectrostaticFilterMonitoringAcceptedCommandListAttributeCallback::
}
}
-CHIPElectrostaticFilterMonitoringAcceptedCommandListAttributeCallback::
- ~CHIPElectrostaticFilterMonitoringAcceptedCommandListAttributeCallback()
-{
+CHIPElectrostaticFilterMonitoringGeneratedCommandListAttributeCallback::
+ ~CHIPElectrostaticFilterMonitoringGeneratedCommandListAttributeCallback()
+{
+ JNIEnv * env = chip::JniReferences::GetInstance().GetEnvForCurrentThread();
+ if (env == nullptr)
+ {
+ ChipLogError(Zcl, "Could not delete global reference for Java callback");
+ return;
+ }
+ env->DeleteGlobalRef(javaCallbackRef);
+}
+
+void CHIPElectrostaticFilterMonitoringGeneratedCommandListAttributeCallback::CallbackFn(
+ void * context, const chip::app::DataModel::DecodableList & list)
+{
+ chip::DeviceLayer::StackUnlock unlock;
+ CHIP_ERROR err = CHIP_NO_ERROR;
+ JNIEnv * env = chip::JniReferences::GetInstance().GetEnvForCurrentThread();
+ jobject javaCallbackRef;
+
+ VerifyOrReturn(env != nullptr, ChipLogError(Zcl, "Could not get JNI env"));
+
+ std::unique_ptr cppCallback(
+ reinterpret_cast(context), maybeDestroy);
+
+ // It's valid for javaCallbackRef to be nullptr if the Java code passed in a null callback.
+ javaCallbackRef = cppCallback.get()->javaCallbackRef;
+ VerifyOrReturn(javaCallbackRef != nullptr,
+ ChipLogProgress(Zcl, "Early return from attribute callback since Java callback is null"));
+
+ jmethodID javaMethod;
+ err = chip::JniReferences::GetInstance().FindMethod(env, javaCallbackRef, "onSuccess", "(Ljava/util/List;)V", &javaMethod);
+ VerifyOrReturn(err == CHIP_NO_ERROR, ChipLogError(Zcl, "Could not find onSuccess() method"));
+
+ jobject arrayListObj;
+ chip::JniReferences::GetInstance().CreateArrayList(arrayListObj);
+
+ auto iter_arrayListObj_0 = list.begin();
+ while (iter_arrayListObj_0.Next())
+ {
+ auto & entry_0 = iter_arrayListObj_0.GetValue();
+ jobject newElement_0;
+ std::string newElement_0ClassName = "java/lang/Long";
+ std::string newElement_0CtorSignature = "(J)V";
+ chip::JniReferences::GetInstance().CreateBoxedObject(newElement_0ClassName.c_str(),
+ newElement_0CtorSignature.c_str(), entry_0, newElement_0);
+ chip::JniReferences::GetInstance().AddToList(arrayListObj, newElement_0);
+ }
+
+ env->ExceptionClear();
+ env->CallVoidMethod(javaCallbackRef, javaMethod, arrayListObj);
+}
+
+CHIPElectrostaticFilterMonitoringAcceptedCommandListAttributeCallback::
+ CHIPElectrostaticFilterMonitoringAcceptedCommandListAttributeCallback(jobject javaCallback, bool keepAlive) :
+ chip::Callback::Callback(CallbackFn, this),
+ keepAlive(keepAlive)
+{
+ JNIEnv * env = chip::JniReferences::GetInstance().GetEnvForCurrentThread();
+ if (env == nullptr)
+ {
+ ChipLogError(Zcl, "Could not create global reference for Java callback");
+ return;
+ }
+
+ javaCallbackRef = env->NewGlobalRef(javaCallback);
+ if (javaCallbackRef == nullptr)
+ {
+ ChipLogError(Zcl, "Could not create global reference for Java callback");
+ }
+}
+
+CHIPElectrostaticFilterMonitoringAcceptedCommandListAttributeCallback::
+ ~CHIPElectrostaticFilterMonitoringAcceptedCommandListAttributeCallback()
+{
JNIEnv * env = chip::JniReferences::GetInstance().GetEnvForCurrentThread();
if (env == nullptr)
{
@@ -27056,6 +27455,104 @@ void CHIPUvFilterMonitoringLastChangedTimeAttributeCallback::CallbackFn(void * c
env->CallVoidMethod(javaCallbackRef, javaMethod, javaValue);
}
+CHIPUvFilterMonitoringReplacementProductListAttributeCallback::CHIPUvFilterMonitoringReplacementProductListAttributeCallback(
+ jobject javaCallback, bool keepAlive) :
+ chip::Callback::Callback(CallbackFn, this),
+ keepAlive(keepAlive)
+{
+ JNIEnv * env = chip::JniReferences::GetInstance().GetEnvForCurrentThread();
+ if (env == nullptr)
+ {
+ ChipLogError(Zcl, "Could not create global reference for Java callback");
+ return;
+ }
+
+ javaCallbackRef = env->NewGlobalRef(javaCallback);
+ if (javaCallbackRef == nullptr)
+ {
+ ChipLogError(Zcl, "Could not create global reference for Java callback");
+ }
+}
+
+CHIPUvFilterMonitoringReplacementProductListAttributeCallback::~CHIPUvFilterMonitoringReplacementProductListAttributeCallback()
+{
+ JNIEnv * env = chip::JniReferences::GetInstance().GetEnvForCurrentThread();
+ if (env == nullptr)
+ {
+ ChipLogError(Zcl, "Could not delete global reference for Java callback");
+ return;
+ }
+ env->DeleteGlobalRef(javaCallbackRef);
+}
+
+void CHIPUvFilterMonitoringReplacementProductListAttributeCallback::CallbackFn(
+ void * context,
+ const chip::app::DataModel::DecodableList<
+ chip::app::Clusters::UvFilterMonitoring::Structs::ReplacementProductStruct::DecodableType> & list)
+{
+ chip::DeviceLayer::StackUnlock unlock;
+ CHIP_ERROR err = CHIP_NO_ERROR;
+ JNIEnv * env = chip::JniReferences::GetInstance().GetEnvForCurrentThread();
+ jobject javaCallbackRef;
+
+ VerifyOrReturn(env != nullptr, ChipLogError(Zcl, "Could not get JNI env"));
+
+ std::unique_ptr cppCallback(
+ reinterpret_cast(context), maybeDestroy);
+
+ // It's valid for javaCallbackRef to be nullptr if the Java code passed in a null callback.
+ javaCallbackRef = cppCallback.get()->javaCallbackRef;
+ VerifyOrReturn(javaCallbackRef != nullptr,
+ ChipLogProgress(Zcl, "Early return from attribute callback since Java callback is null"));
+
+ jmethodID javaMethod;
+ err = chip::JniReferences::GetInstance().FindMethod(env, javaCallbackRef, "onSuccess", "(Ljava/util/List;)V", &javaMethod);
+ VerifyOrReturn(err == CHIP_NO_ERROR, ChipLogError(Zcl, "Could not find onSuccess() method"));
+
+ jobject arrayListObj;
+ chip::JniReferences::GetInstance().CreateArrayList(arrayListObj);
+
+ auto iter_arrayListObj_0 = list.begin();
+ while (iter_arrayListObj_0.Next())
+ {
+ auto & entry_0 = iter_arrayListObj_0.GetValue();
+ jobject newElement_0;
+ jobject newElement_0_productIdentifierType;
+ std::string newElement_0_productIdentifierTypeClassName = "java/lang/Integer";
+ std::string newElement_0_productIdentifierTypeCtorSignature = "(I)V";
+ chip::JniReferences::GetInstance().CreateBoxedObject(
+ newElement_0_productIdentifierTypeClassName.c_str(), newElement_0_productIdentifierTypeCtorSignature.c_str(),
+ static_cast(entry_0.productIdentifierType), newElement_0_productIdentifierType);
+ jobject newElement_0_productIdentifierValue;
+ LogErrorOnFailure(chip::JniReferences::GetInstance().CharToStringUTF(entry_0.productIdentifierValue,
+ newElement_0_productIdentifierValue));
+
+ jclass replacementProductStructStructClass_1;
+ err = chip::JniReferences::GetInstance().GetClassRef(
+ env, "chip/devicecontroller/ChipStructs$UvFilterMonitoringClusterReplacementProductStruct",
+ replacementProductStructStructClass_1);
+ if (err != CHIP_NO_ERROR)
+ {
+ ChipLogError(Zcl, "Could not find class ChipStructs$UvFilterMonitoringClusterReplacementProductStruct");
+ return;
+ }
+ jmethodID replacementProductStructStructCtor_1 =
+ env->GetMethodID(replacementProductStructStructClass_1, "", "(Ljava/lang/Integer;Ljava/lang/String;)V");
+ if (replacementProductStructStructCtor_1 == nullptr)
+ {
+ ChipLogError(Zcl, "Could not find ChipStructs$UvFilterMonitoringClusterReplacementProductStruct constructor");
+ return;
+ }
+
+ newElement_0 = env->NewObject(replacementProductStructStructClass_1, replacementProductStructStructCtor_1,
+ newElement_0_productIdentifierType, newElement_0_productIdentifierValue);
+ chip::JniReferences::GetInstance().AddToList(arrayListObj, newElement_0);
+ }
+
+ env->ExceptionClear();
+ env->CallVoidMethod(javaCallbackRef, javaMethod, arrayListObj);
+}
+
CHIPUvFilterMonitoringGeneratedCommandListAttributeCallback::CHIPUvFilterMonitoringGeneratedCommandListAttributeCallback(
jobject javaCallback, bool keepAlive) :
chip::Callback::Callback(CallbackFn, this),
@@ -27407,6 +27904,105 @@ void CHIPIonizingFilterMonitoringLastChangedTimeAttributeCallback::CallbackFn(
env->CallVoidMethod(javaCallbackRef, javaMethod, javaValue);
}
+CHIPIonizingFilterMonitoringReplacementProductListAttributeCallback::
+ CHIPIonizingFilterMonitoringReplacementProductListAttributeCallback(jobject javaCallback, bool keepAlive) :
+ chip::Callback::Callback(CallbackFn, this),
+ keepAlive(keepAlive)
+{
+ JNIEnv * env = chip::JniReferences::GetInstance().GetEnvForCurrentThread();
+ if (env == nullptr)
+ {
+ ChipLogError(Zcl, "Could not create global reference for Java callback");
+ return;
+ }
+
+ javaCallbackRef = env->NewGlobalRef(javaCallback);
+ if (javaCallbackRef == nullptr)
+ {
+ ChipLogError(Zcl, "Could not create global reference for Java callback");
+ }
+}
+
+CHIPIonizingFilterMonitoringReplacementProductListAttributeCallback::
+ ~CHIPIonizingFilterMonitoringReplacementProductListAttributeCallback()
+{
+ JNIEnv * env = chip::JniReferences::GetInstance().GetEnvForCurrentThread();
+ if (env == nullptr)
+ {
+ ChipLogError(Zcl, "Could not delete global reference for Java callback");
+ return;
+ }
+ env->DeleteGlobalRef(javaCallbackRef);
+}
+
+void CHIPIonizingFilterMonitoringReplacementProductListAttributeCallback::CallbackFn(
+ void * context,
+ const chip::app::DataModel::DecodableList<
+ chip::app::Clusters::IonizingFilterMonitoring::Structs::ReplacementProductStruct::DecodableType> & list)
+{
+ chip::DeviceLayer::StackUnlock unlock;
+ CHIP_ERROR err = CHIP_NO_ERROR;
+ JNIEnv * env = chip::JniReferences::GetInstance().GetEnvForCurrentThread();
+ jobject javaCallbackRef;
+
+ VerifyOrReturn(env != nullptr, ChipLogError(Zcl, "Could not get JNI env"));
+
+ std::unique_ptr cppCallback(
+ reinterpret_cast(context), maybeDestroy);
+
+ // It's valid for javaCallbackRef to be nullptr if the Java code passed in a null callback.
+ javaCallbackRef = cppCallback.get()->javaCallbackRef;
+ VerifyOrReturn(javaCallbackRef != nullptr,
+ ChipLogProgress(Zcl, "Early return from attribute callback since Java callback is null"));
+
+ jmethodID javaMethod;
+ err = chip::JniReferences::GetInstance().FindMethod(env, javaCallbackRef, "onSuccess", "(Ljava/util/List;)V", &javaMethod);
+ VerifyOrReturn(err == CHIP_NO_ERROR, ChipLogError(Zcl, "Could not find onSuccess() method"));
+
+ jobject arrayListObj;
+ chip::JniReferences::GetInstance().CreateArrayList(arrayListObj);
+
+ auto iter_arrayListObj_0 = list.begin();
+ while (iter_arrayListObj_0.Next())
+ {
+ auto & entry_0 = iter_arrayListObj_0.GetValue();
+ jobject newElement_0;
+ jobject newElement_0_productIdentifierType;
+ std::string newElement_0_productIdentifierTypeClassName = "java/lang/Integer";
+ std::string newElement_0_productIdentifierTypeCtorSignature = "(I)V";
+ chip::JniReferences::GetInstance().CreateBoxedObject(
+ newElement_0_productIdentifierTypeClassName.c_str(), newElement_0_productIdentifierTypeCtorSignature.c_str(),
+ static_cast(entry_0.productIdentifierType), newElement_0_productIdentifierType);
+ jobject newElement_0_productIdentifierValue;
+ LogErrorOnFailure(chip::JniReferences::GetInstance().CharToStringUTF(entry_0.productIdentifierValue,
+ newElement_0_productIdentifierValue));
+
+ jclass replacementProductStructStructClass_1;
+ err = chip::JniReferences::GetInstance().GetClassRef(
+ env, "chip/devicecontroller/ChipStructs$IonizingFilterMonitoringClusterReplacementProductStruct",
+ replacementProductStructStructClass_1);
+ if (err != CHIP_NO_ERROR)
+ {
+ ChipLogError(Zcl, "Could not find class ChipStructs$IonizingFilterMonitoringClusterReplacementProductStruct");
+ return;
+ }
+ jmethodID replacementProductStructStructCtor_1 =
+ env->GetMethodID(replacementProductStructStructClass_1, "", "(Ljava/lang/Integer;Ljava/lang/String;)V");
+ if (replacementProductStructStructCtor_1 == nullptr)
+ {
+ ChipLogError(Zcl, "Could not find ChipStructs$IonizingFilterMonitoringClusterReplacementProductStruct constructor");
+ return;
+ }
+
+ newElement_0 = env->NewObject(replacementProductStructStructClass_1, replacementProductStructStructCtor_1,
+ newElement_0_productIdentifierType, newElement_0_productIdentifierValue);
+ chip::JniReferences::GetInstance().AddToList(arrayListObj, newElement_0);
+ }
+
+ env->ExceptionClear();
+ env->CallVoidMethod(javaCallbackRef, javaMethod, arrayListObj);
+}
+
CHIPIonizingFilterMonitoringGeneratedCommandListAttributeCallback::
CHIPIonizingFilterMonitoringGeneratedCommandListAttributeCallback(jobject javaCallback, bool keepAlive) :
chip::Callback::Callback(CallbackFn, this),
@@ -27760,6 +28356,105 @@ void CHIPZeoliteFilterMonitoringLastChangedTimeAttributeCallback::CallbackFn(voi
env->CallVoidMethod(javaCallbackRef, javaMethod, javaValue);
}
+CHIPZeoliteFilterMonitoringReplacementProductListAttributeCallback::
+ CHIPZeoliteFilterMonitoringReplacementProductListAttributeCallback(jobject javaCallback, bool keepAlive) :
+ chip::Callback::Callback(CallbackFn, this),
+ keepAlive(keepAlive)
+{
+ JNIEnv * env = chip::JniReferences::GetInstance().GetEnvForCurrentThread();
+ if (env == nullptr)
+ {
+ ChipLogError(Zcl, "Could not create global reference for Java callback");
+ return;
+ }
+
+ javaCallbackRef = env->NewGlobalRef(javaCallback);
+ if (javaCallbackRef == nullptr)
+ {
+ ChipLogError(Zcl, "Could not create global reference for Java callback");
+ }
+}
+
+CHIPZeoliteFilterMonitoringReplacementProductListAttributeCallback::
+ ~CHIPZeoliteFilterMonitoringReplacementProductListAttributeCallback()
+{
+ JNIEnv * env = chip::JniReferences::GetInstance().GetEnvForCurrentThread();
+ if (env == nullptr)
+ {
+ ChipLogError(Zcl, "Could not delete global reference for Java callback");
+ return;
+ }
+ env->DeleteGlobalRef(javaCallbackRef);
+}
+
+void CHIPZeoliteFilterMonitoringReplacementProductListAttributeCallback::CallbackFn(
+ void * context,
+ const chip::app::DataModel::DecodableList<
+ chip::app::Clusters::ZeoliteFilterMonitoring::Structs::ReplacementProductStruct::DecodableType> & list)
+{
+ chip::DeviceLayer::StackUnlock unlock;
+ CHIP_ERROR err = CHIP_NO_ERROR;
+ JNIEnv * env = chip::JniReferences::GetInstance().GetEnvForCurrentThread();
+ jobject javaCallbackRef;
+
+ VerifyOrReturn(env != nullptr, ChipLogError(Zcl, "Could not get JNI env"));
+
+ std::unique_ptr cppCallback(
+ reinterpret_cast(context), maybeDestroy);
+
+ // It's valid for javaCallbackRef to be nullptr if the Java code passed in a null callback.
+ javaCallbackRef = cppCallback.get()->javaCallbackRef;
+ VerifyOrReturn(javaCallbackRef != nullptr,
+ ChipLogProgress(Zcl, "Early return from attribute callback since Java callback is null"));
+
+ jmethodID javaMethod;
+ err = chip::JniReferences::GetInstance().FindMethod(env, javaCallbackRef, "onSuccess", "(Ljava/util/List;)V", &javaMethod);
+ VerifyOrReturn(err == CHIP_NO_ERROR, ChipLogError(Zcl, "Could not find onSuccess() method"));
+
+ jobject arrayListObj;
+ chip::JniReferences::GetInstance().CreateArrayList(arrayListObj);
+
+ auto iter_arrayListObj_0 = list.begin();
+ while (iter_arrayListObj_0.Next())
+ {
+ auto & entry_0 = iter_arrayListObj_0.GetValue();
+ jobject newElement_0;
+ jobject newElement_0_productIdentifierType;
+ std::string newElement_0_productIdentifierTypeClassName = "java/lang/Integer";
+ std::string newElement_0_productIdentifierTypeCtorSignature = "(I)V";
+ chip::JniReferences::GetInstance().CreateBoxedObject(
+ newElement_0_productIdentifierTypeClassName.c_str(), newElement_0_productIdentifierTypeCtorSignature.c_str(),
+ static_cast(entry_0.productIdentifierType), newElement_0_productIdentifierType);
+ jobject newElement_0_productIdentifierValue;
+ LogErrorOnFailure(chip::JniReferences::GetInstance().CharToStringUTF(entry_0.productIdentifierValue,
+ newElement_0_productIdentifierValue));
+
+ jclass replacementProductStructStructClass_1;
+ err = chip::JniReferences::GetInstance().GetClassRef(
+ env, "chip/devicecontroller/ChipStructs$ZeoliteFilterMonitoringClusterReplacementProductStruct",
+ replacementProductStructStructClass_1);
+ if (err != CHIP_NO_ERROR)
+ {
+ ChipLogError(Zcl, "Could not find class ChipStructs$ZeoliteFilterMonitoringClusterReplacementProductStruct");
+ return;
+ }
+ jmethodID replacementProductStructStructCtor_1 =
+ env->GetMethodID(replacementProductStructStructClass_1, "", "(Ljava/lang/Integer;Ljava/lang/String;)V");
+ if (replacementProductStructStructCtor_1 == nullptr)
+ {
+ ChipLogError(Zcl, "Could not find ChipStructs$ZeoliteFilterMonitoringClusterReplacementProductStruct constructor");
+ return;
+ }
+
+ newElement_0 = env->NewObject(replacementProductStructStructClass_1, replacementProductStructStructCtor_1,
+ newElement_0_productIdentifierType, newElement_0_productIdentifierValue);
+ chip::JniReferences::GetInstance().AddToList(arrayListObj, newElement_0);
+ }
+
+ env->ExceptionClear();
+ env->CallVoidMethod(javaCallbackRef, javaMethod, arrayListObj);
+}
+
CHIPZeoliteFilterMonitoringGeneratedCommandListAttributeCallback::CHIPZeoliteFilterMonitoringGeneratedCommandListAttributeCallback(
jobject javaCallback, bool keepAlive) :
chip::Callback::Callback(CallbackFn, this),
@@ -28112,6 +28807,105 @@ void CHIPOzoneFilterMonitoringLastChangedTimeAttributeCallback::CallbackFn(void
env->CallVoidMethod(javaCallbackRef, javaMethod, javaValue);
}
+CHIPOzoneFilterMonitoringReplacementProductListAttributeCallback::CHIPOzoneFilterMonitoringReplacementProductListAttributeCallback(
+ jobject javaCallback, bool keepAlive) :
+ chip::Callback::Callback(CallbackFn, this),
+ keepAlive(keepAlive)
+{
+ JNIEnv * env = chip::JniReferences::GetInstance().GetEnvForCurrentThread();
+ if (env == nullptr)
+ {
+ ChipLogError(Zcl, "Could not create global reference for Java callback");
+ return;
+ }
+
+ javaCallbackRef = env->NewGlobalRef(javaCallback);
+ if (javaCallbackRef == nullptr)
+ {
+ ChipLogError(Zcl, "Could not create global reference for Java callback");
+ }
+}
+
+CHIPOzoneFilterMonitoringReplacementProductListAttributeCallback::
+ ~CHIPOzoneFilterMonitoringReplacementProductListAttributeCallback()
+{
+ JNIEnv * env = chip::JniReferences::GetInstance().GetEnvForCurrentThread();
+ if (env == nullptr)
+ {
+ ChipLogError(Zcl, "Could not delete global reference for Java callback");
+ return;
+ }
+ env->DeleteGlobalRef(javaCallbackRef);
+}
+
+void CHIPOzoneFilterMonitoringReplacementProductListAttributeCallback::CallbackFn(
+ void * context,
+ const chip::app::DataModel::DecodableList<
+ chip::app::Clusters::OzoneFilterMonitoring::Structs::ReplacementProductStruct::DecodableType> & list)
+{
+ chip::DeviceLayer::StackUnlock unlock;
+ CHIP_ERROR err = CHIP_NO_ERROR;
+ JNIEnv * env = chip::JniReferences::GetInstance().GetEnvForCurrentThread();
+ jobject javaCallbackRef;
+
+ VerifyOrReturn(env != nullptr, ChipLogError(Zcl, "Could not get JNI env"));
+
+ std::unique_ptr cppCallback(
+ reinterpret_cast(context), maybeDestroy);
+
+ // It's valid for javaCallbackRef to be nullptr if the Java code passed in a null callback.
+ javaCallbackRef = cppCallback.get()->javaCallbackRef;
+ VerifyOrReturn(javaCallbackRef != nullptr,
+ ChipLogProgress(Zcl, "Early return from attribute callback since Java callback is null"));
+
+ jmethodID javaMethod;
+ err = chip::JniReferences::GetInstance().FindMethod(env, javaCallbackRef, "onSuccess", "(Ljava/util/List;)V", &javaMethod);
+ VerifyOrReturn(err == CHIP_NO_ERROR, ChipLogError(Zcl, "Could not find onSuccess() method"));
+
+ jobject arrayListObj;
+ chip::JniReferences::GetInstance().CreateArrayList(arrayListObj);
+
+ auto iter_arrayListObj_0 = list.begin();
+ while (iter_arrayListObj_0.Next())
+ {
+ auto & entry_0 = iter_arrayListObj_0.GetValue();
+ jobject newElement_0;
+ jobject newElement_0_productIdentifierType;
+ std::string newElement_0_productIdentifierTypeClassName = "java/lang/Integer";
+ std::string newElement_0_productIdentifierTypeCtorSignature = "(I)V";
+ chip::JniReferences::GetInstance().CreateBoxedObject(
+ newElement_0_productIdentifierTypeClassName.c_str(), newElement_0_productIdentifierTypeCtorSignature.c_str(),
+ static_cast(entry_0.productIdentifierType), newElement_0_productIdentifierType);
+ jobject newElement_0_productIdentifierValue;
+ LogErrorOnFailure(chip::JniReferences::GetInstance().CharToStringUTF(entry_0.productIdentifierValue,
+ newElement_0_productIdentifierValue));
+
+ jclass replacementProductStructStructClass_1;
+ err = chip::JniReferences::GetInstance().GetClassRef(
+ env, "chip/devicecontroller/ChipStructs$OzoneFilterMonitoringClusterReplacementProductStruct",
+ replacementProductStructStructClass_1);
+ if (err != CHIP_NO_ERROR)
+ {
+ ChipLogError(Zcl, "Could not find class ChipStructs$OzoneFilterMonitoringClusterReplacementProductStruct");
+ return;
+ }
+ jmethodID replacementProductStructStructCtor_1 =
+ env->GetMethodID(replacementProductStructStructClass_1, "", "(Ljava/lang/Integer;Ljava/lang/String;)V");
+ if (replacementProductStructStructCtor_1 == nullptr)
+ {
+ ChipLogError(Zcl, "Could not find ChipStructs$OzoneFilterMonitoringClusterReplacementProductStruct constructor");
+ return;
+ }
+
+ newElement_0 = env->NewObject(replacementProductStructStructClass_1, replacementProductStructStructCtor_1,
+ newElement_0_productIdentifierType, newElement_0_productIdentifierValue);
+ chip::JniReferences::GetInstance().AddToList(arrayListObj, newElement_0);
+ }
+
+ env->ExceptionClear();
+ env->CallVoidMethod(javaCallbackRef, javaMethod, arrayListObj);
+}
+
CHIPOzoneFilterMonitoringGeneratedCommandListAttributeCallback::CHIPOzoneFilterMonitoringGeneratedCommandListAttributeCallback(
jobject javaCallback, bool keepAlive) :
chip::Callback::Callback(CallbackFn, this),
@@ -28435,8 +29229,78 @@ void CHIPWaterTankMonitoringLastChangedTimeAttributeCallback::CallbackFn(void *
jobject javaCallbackRef;
VerifyOrReturn(env != nullptr, ChipLogError(Zcl, "Could not get JNI env"));
- std::unique_ptr cppCallback(
- reinterpret_cast(context), maybeDestroy);
+ std::unique_ptr cppCallback(
+ reinterpret_cast(context), maybeDestroy);
+
+ // It's valid for javaCallbackRef to be nullptr if the Java code passed in a null callback.
+ javaCallbackRef = cppCallback.get()->javaCallbackRef;
+ VerifyOrReturn(javaCallbackRef != nullptr,
+ ChipLogProgress(Zcl, "Early return from attribute callback since Java callback is null"));
+
+ jmethodID javaMethod;
+ err = chip::JniReferences::GetInstance().FindMethod(env, javaCallbackRef, "onSuccess", "(Ljava/lang/Long;)V", &javaMethod);
+ VerifyOrReturn(err == CHIP_NO_ERROR, ChipLogError(Zcl, "Could not find onSuccess() method"));
+
+ jobject javaValue;
+ if (value.IsNull())
+ {
+ javaValue = nullptr;
+ }
+ else
+ {
+ std::string javaValueClassName = "java/lang/Long";
+ std::string javaValueCtorSignature = "(J)V";
+ chip::JniReferences::GetInstance().CreateBoxedObject(javaValueClassName.c_str(), javaValueCtorSignature.c_str(),
+ value.Value(), javaValue);
+ }
+
+ env->CallVoidMethod(javaCallbackRef, javaMethod, javaValue);
+}
+
+CHIPWaterTankMonitoringReplacementProductListAttributeCallback::CHIPWaterTankMonitoringReplacementProductListAttributeCallback(
+ jobject javaCallback, bool keepAlive) :
+ chip::Callback::Callback(CallbackFn, this),
+ keepAlive(keepAlive)
+{
+ JNIEnv * env = chip::JniReferences::GetInstance().GetEnvForCurrentThread();
+ if (env == nullptr)
+ {
+ ChipLogError(Zcl, "Could not create global reference for Java callback");
+ return;
+ }
+
+ javaCallbackRef = env->NewGlobalRef(javaCallback);
+ if (javaCallbackRef == nullptr)
+ {
+ ChipLogError(Zcl, "Could not create global reference for Java callback");
+ }
+}
+
+CHIPWaterTankMonitoringReplacementProductListAttributeCallback::~CHIPWaterTankMonitoringReplacementProductListAttributeCallback()
+{
+ JNIEnv * env = chip::JniReferences::GetInstance().GetEnvForCurrentThread();
+ if (env == nullptr)
+ {
+ ChipLogError(Zcl, "Could not delete global reference for Java callback");
+ return;
+ }
+ env->DeleteGlobalRef(javaCallbackRef);
+}
+
+void CHIPWaterTankMonitoringReplacementProductListAttributeCallback::CallbackFn(
+ void * context,
+ const chip::app::DataModel::DecodableList<
+ chip::app::Clusters::WaterTankMonitoring::Structs::ReplacementProductStruct::DecodableType> & list)
+{
+ chip::DeviceLayer::StackUnlock unlock;
+ CHIP_ERROR err = CHIP_NO_ERROR;
+ JNIEnv * env = chip::JniReferences::GetInstance().GetEnvForCurrentThread();
+ jobject javaCallbackRef;
+
+ VerifyOrReturn(env != nullptr, ChipLogError(Zcl, "Could not get JNI env"));
+
+ std::unique_ptr cppCallback(
+ reinterpret_cast(context), maybeDestroy);
// It's valid for javaCallbackRef to be nullptr if the Java code passed in a null callback.
javaCallbackRef = cppCallback.get()->javaCallbackRef;
@@ -28444,23 +29308,51 @@ void CHIPWaterTankMonitoringLastChangedTimeAttributeCallback::CallbackFn(void *
ChipLogProgress(Zcl, "Early return from attribute callback since Java callback is null"));
jmethodID javaMethod;
- err = chip::JniReferences::GetInstance().FindMethod(env, javaCallbackRef, "onSuccess", "(Ljava/lang/Long;)V", &javaMethod);
+ err = chip::JniReferences::GetInstance().FindMethod(env, javaCallbackRef, "onSuccess", "(Ljava/util/List;)V", &javaMethod);
VerifyOrReturn(err == CHIP_NO_ERROR, ChipLogError(Zcl, "Could not find onSuccess() method"));
- jobject javaValue;
- if (value.IsNull())
- {
- javaValue = nullptr;
- }
- else
+ jobject arrayListObj;
+ chip::JniReferences::GetInstance().CreateArrayList(arrayListObj);
+
+ auto iter_arrayListObj_0 = list.begin();
+ while (iter_arrayListObj_0.Next())
{
- std::string javaValueClassName = "java/lang/Long";
- std::string javaValueCtorSignature = "(J)V";
- chip::JniReferences::GetInstance().CreateBoxedObject(javaValueClassName.c_str(), javaValueCtorSignature.c_str(),
- value.Value(), javaValue);
+ auto & entry_0 = iter_arrayListObj_0.GetValue();
+ jobject newElement_0;
+ jobject newElement_0_productIdentifierType;
+ std::string newElement_0_productIdentifierTypeClassName = "java/lang/Integer";
+ std::string newElement_0_productIdentifierTypeCtorSignature = "(I)V";
+ chip::JniReferences::GetInstance().CreateBoxedObject(
+ newElement_0_productIdentifierTypeClassName.c_str(), newElement_0_productIdentifierTypeCtorSignature.c_str(),
+ static_cast(entry_0.productIdentifierType), newElement_0_productIdentifierType);
+ jobject newElement_0_productIdentifierValue;
+ LogErrorOnFailure(chip::JniReferences::GetInstance().CharToStringUTF(entry_0.productIdentifierValue,
+ newElement_0_productIdentifierValue));
+
+ jclass replacementProductStructStructClass_1;
+ err = chip::JniReferences::GetInstance().GetClassRef(
+ env, "chip/devicecontroller/ChipStructs$WaterTankMonitoringClusterReplacementProductStruct",
+ replacementProductStructStructClass_1);
+ if (err != CHIP_NO_ERROR)
+ {
+ ChipLogError(Zcl, "Could not find class ChipStructs$WaterTankMonitoringClusterReplacementProductStruct");
+ return;
+ }
+ jmethodID replacementProductStructStructCtor_1 =
+ env->GetMethodID(replacementProductStructStructClass_1, "", "(Ljava/lang/Integer;Ljava/lang/String;)V");
+ if (replacementProductStructStructCtor_1 == nullptr)
+ {
+ ChipLogError(Zcl, "Could not find ChipStructs$WaterTankMonitoringClusterReplacementProductStruct constructor");
+ return;
+ }
+
+ newElement_0 = env->NewObject(replacementProductStructStructClass_1, replacementProductStructStructCtor_1,
+ newElement_0_productIdentifierType, newElement_0_productIdentifierValue);
+ chip::JniReferences::GetInstance().AddToList(arrayListObj, newElement_0);
}
- env->CallVoidMethod(javaCallbackRef, javaMethod, javaValue);
+ env->ExceptionClear();
+ env->CallVoidMethod(javaCallbackRef, javaMethod, arrayListObj);
}
CHIPWaterTankMonitoringGeneratedCommandListAttributeCallback::CHIPWaterTankMonitoringGeneratedCommandListAttributeCallback(
@@ -28814,6 +29706,104 @@ void CHIPFuelTankMonitoringLastChangedTimeAttributeCallback::CallbackFn(void * c
env->CallVoidMethod(javaCallbackRef, javaMethod, javaValue);
}
+CHIPFuelTankMonitoringReplacementProductListAttributeCallback::CHIPFuelTankMonitoringReplacementProductListAttributeCallback(
+ jobject javaCallback, bool keepAlive) :
+ chip::Callback::Callback(CallbackFn, this),
+ keepAlive(keepAlive)
+{
+ JNIEnv * env = chip::JniReferences::GetInstance().GetEnvForCurrentThread();
+ if (env == nullptr)
+ {
+ ChipLogError(Zcl, "Could not create global reference for Java callback");
+ return;
+ }
+
+ javaCallbackRef = env->NewGlobalRef(javaCallback);
+ if (javaCallbackRef == nullptr)
+ {
+ ChipLogError(Zcl, "Could not create global reference for Java callback");
+ }
+}
+
+CHIPFuelTankMonitoringReplacementProductListAttributeCallback::~CHIPFuelTankMonitoringReplacementProductListAttributeCallback()
+{
+ JNIEnv * env = chip::JniReferences::GetInstance().GetEnvForCurrentThread();
+ if (env == nullptr)
+ {
+ ChipLogError(Zcl, "Could not delete global reference for Java callback");
+ return;
+ }
+ env->DeleteGlobalRef(javaCallbackRef);
+}
+
+void CHIPFuelTankMonitoringReplacementProductListAttributeCallback::CallbackFn(
+ void * context,
+ const chip::app::DataModel::DecodableList<
+ chip::app::Clusters::FuelTankMonitoring::Structs::ReplacementProductStruct::DecodableType> & list)
+{
+ chip::DeviceLayer::StackUnlock unlock;
+ CHIP_ERROR err = CHIP_NO_ERROR;
+ JNIEnv * env = chip::JniReferences::GetInstance().GetEnvForCurrentThread();
+ jobject javaCallbackRef;
+
+ VerifyOrReturn(env != nullptr, ChipLogError(Zcl, "Could not get JNI env"));
+
+ std::unique_ptr cppCallback(
+ reinterpret_cast(context), maybeDestroy);
+
+ // It's valid for javaCallbackRef to be nullptr if the Java code passed in a null callback.
+ javaCallbackRef = cppCallback.get()->javaCallbackRef;
+ VerifyOrReturn(javaCallbackRef != nullptr,
+ ChipLogProgress(Zcl, "Early return from attribute callback since Java callback is null"));
+
+ jmethodID javaMethod;
+ err = chip::JniReferences::GetInstance().FindMethod(env, javaCallbackRef, "onSuccess", "(Ljava/util/List;)V", &javaMethod);
+ VerifyOrReturn(err == CHIP_NO_ERROR, ChipLogError(Zcl, "Could not find onSuccess() method"));
+
+ jobject arrayListObj;
+ chip::JniReferences::GetInstance().CreateArrayList(arrayListObj);
+
+ auto iter_arrayListObj_0 = list.begin();
+ while (iter_arrayListObj_0.Next())
+ {
+ auto & entry_0 = iter_arrayListObj_0.GetValue();
+ jobject newElement_0;
+ jobject newElement_0_productIdentifierType;
+ std::string newElement_0_productIdentifierTypeClassName = "java/lang/Integer";
+ std::string newElement_0_productIdentifierTypeCtorSignature = "(I)V";
+ chip::JniReferences::GetInstance().CreateBoxedObject(
+ newElement_0_productIdentifierTypeClassName.c_str(), newElement_0_productIdentifierTypeCtorSignature.c_str(),
+ static_cast(entry_0.productIdentifierType), newElement_0_productIdentifierType);
+ jobject newElement_0_productIdentifierValue;
+ LogErrorOnFailure(chip::JniReferences::GetInstance().CharToStringUTF(entry_0.productIdentifierValue,
+ newElement_0_productIdentifierValue));
+
+ jclass replacementProductStructStructClass_1;
+ err = chip::JniReferences::GetInstance().GetClassRef(
+ env, "chip/devicecontroller/ChipStructs$FuelTankMonitoringClusterReplacementProductStruct",
+ replacementProductStructStructClass_1);
+ if (err != CHIP_NO_ERROR)
+ {
+ ChipLogError(Zcl, "Could not find class ChipStructs$FuelTankMonitoringClusterReplacementProductStruct");
+ return;
+ }
+ jmethodID replacementProductStructStructCtor_1 =
+ env->GetMethodID(replacementProductStructStructClass_1, "", "(Ljava/lang/Integer;Ljava/lang/String;)V");
+ if (replacementProductStructStructCtor_1 == nullptr)
+ {
+ ChipLogError(Zcl, "Could not find ChipStructs$FuelTankMonitoringClusterReplacementProductStruct constructor");
+ return;
+ }
+
+ newElement_0 = env->NewObject(replacementProductStructStructClass_1, replacementProductStructStructCtor_1,
+ newElement_0_productIdentifierType, newElement_0_productIdentifierValue);
+ chip::JniReferences::GetInstance().AddToList(arrayListObj, newElement_0);
+ }
+
+ env->ExceptionClear();
+ env->CallVoidMethod(javaCallbackRef, javaMethod, arrayListObj);
+}
+
CHIPFuelTankMonitoringGeneratedCommandListAttributeCallback::CHIPFuelTankMonitoringGeneratedCommandListAttributeCallback(
jobject javaCallback, bool keepAlive) :
chip::Callback::Callback(CallbackFn, this),
@@ -29165,6 +30155,105 @@ void CHIPInkCartridgeMonitoringLastChangedTimeAttributeCallback::CallbackFn(void
env->CallVoidMethod(javaCallbackRef, javaMethod, javaValue);
}
+CHIPInkCartridgeMonitoringReplacementProductListAttributeCallback::
+ CHIPInkCartridgeMonitoringReplacementProductListAttributeCallback(jobject javaCallback, bool keepAlive) :
+ chip::Callback::Callback(CallbackFn, this),
+ keepAlive(keepAlive)
+{
+ JNIEnv * env = chip::JniReferences::GetInstance().GetEnvForCurrentThread();
+ if (env == nullptr)
+ {
+ ChipLogError(Zcl, "Could not create global reference for Java callback");
+ return;
+ }
+
+ javaCallbackRef = env->NewGlobalRef(javaCallback);
+ if (javaCallbackRef == nullptr)
+ {
+ ChipLogError(Zcl, "Could not create global reference for Java callback");
+ }
+}
+
+CHIPInkCartridgeMonitoringReplacementProductListAttributeCallback::
+ ~CHIPInkCartridgeMonitoringReplacementProductListAttributeCallback()
+{
+ JNIEnv * env = chip::JniReferences::GetInstance().GetEnvForCurrentThread();
+ if (env == nullptr)
+ {
+ ChipLogError(Zcl, "Could not delete global reference for Java callback");
+ return;
+ }
+ env->DeleteGlobalRef(javaCallbackRef);
+}
+
+void CHIPInkCartridgeMonitoringReplacementProductListAttributeCallback::CallbackFn(
+ void * context,
+ const chip::app::DataModel::DecodableList<
+ chip::app::Clusters::InkCartridgeMonitoring::Structs::ReplacementProductStruct::DecodableType> & list)
+{
+ chip::DeviceLayer::StackUnlock unlock;
+ CHIP_ERROR err = CHIP_NO_ERROR;
+ JNIEnv * env = chip::JniReferences::GetInstance().GetEnvForCurrentThread();
+ jobject javaCallbackRef;
+
+ VerifyOrReturn(env != nullptr, ChipLogError(Zcl, "Could not get JNI env"));
+
+ std::unique_ptr cppCallback(
+ reinterpret_cast(context), maybeDestroy);
+
+ // It's valid for javaCallbackRef to be nullptr if the Java code passed in a null callback.
+ javaCallbackRef = cppCallback.get()->javaCallbackRef;
+ VerifyOrReturn(javaCallbackRef != nullptr,
+ ChipLogProgress(Zcl, "Early return from attribute callback since Java callback is null"));
+
+ jmethodID javaMethod;
+ err = chip::JniReferences::GetInstance().FindMethod(env, javaCallbackRef, "onSuccess", "(Ljava/util/List;)V", &javaMethod);
+ VerifyOrReturn(err == CHIP_NO_ERROR, ChipLogError(Zcl, "Could not find onSuccess() method"));
+
+ jobject arrayListObj;
+ chip::JniReferences::GetInstance().CreateArrayList(arrayListObj);
+
+ auto iter_arrayListObj_0 = list.begin();
+ while (iter_arrayListObj_0.Next())
+ {
+ auto & entry_0 = iter_arrayListObj_0.GetValue();
+ jobject newElement_0;
+ jobject newElement_0_productIdentifierType;
+ std::string newElement_0_productIdentifierTypeClassName = "java/lang/Integer";
+ std::string newElement_0_productIdentifierTypeCtorSignature = "(I)V";
+ chip::JniReferences::GetInstance().CreateBoxedObject(
+ newElement_0_productIdentifierTypeClassName.c_str(), newElement_0_productIdentifierTypeCtorSignature.c_str(),
+ static_cast(entry_0.productIdentifierType), newElement_0_productIdentifierType);
+ jobject newElement_0_productIdentifierValue;
+ LogErrorOnFailure(chip::JniReferences::GetInstance().CharToStringUTF(entry_0.productIdentifierValue,
+ newElement_0_productIdentifierValue));
+
+ jclass replacementProductStructStructClass_1;
+ err = chip::JniReferences::GetInstance().GetClassRef(
+ env, "chip/devicecontroller/ChipStructs$InkCartridgeMonitoringClusterReplacementProductStruct",
+ replacementProductStructStructClass_1);
+ if (err != CHIP_NO_ERROR)
+ {
+ ChipLogError(Zcl, "Could not find class ChipStructs$InkCartridgeMonitoringClusterReplacementProductStruct");
+ return;
+ }
+ jmethodID replacementProductStructStructCtor_1 =
+ env->GetMethodID(replacementProductStructStructClass_1, "", "(Ljava/lang/Integer;Ljava/lang/String;)V");
+ if (replacementProductStructStructCtor_1 == nullptr)
+ {
+ ChipLogError(Zcl, "Could not find ChipStructs$InkCartridgeMonitoringClusterReplacementProductStruct constructor");
+ return;
+ }
+
+ newElement_0 = env->NewObject(replacementProductStructStructClass_1, replacementProductStructStructCtor_1,
+ newElement_0_productIdentifierType, newElement_0_productIdentifierValue);
+ chip::JniReferences::GetInstance().AddToList(arrayListObj, newElement_0);
+ }
+
+ env->ExceptionClear();
+ env->CallVoidMethod(javaCallbackRef, javaMethod, arrayListObj);
+}
+
CHIPInkCartridgeMonitoringGeneratedCommandListAttributeCallback::CHIPInkCartridgeMonitoringGeneratedCommandListAttributeCallback(
jobject javaCallback, bool keepAlive) :
chip::Callback::Callback(CallbackFn, this),
@@ -29516,6 +30605,105 @@ void CHIPTonerCartridgeMonitoringLastChangedTimeAttributeCallback::CallbackFn(
env->CallVoidMethod(javaCallbackRef, javaMethod, javaValue);
}
+CHIPTonerCartridgeMonitoringReplacementProductListAttributeCallback::
+ CHIPTonerCartridgeMonitoringReplacementProductListAttributeCallback(jobject javaCallback, bool keepAlive) :
+ chip::Callback::Callback(CallbackFn, this),
+ keepAlive(keepAlive)
+{
+ JNIEnv * env = chip::JniReferences::GetInstance().GetEnvForCurrentThread();
+ if (env == nullptr)
+ {
+ ChipLogError(Zcl, "Could not create global reference for Java callback");
+ return;
+ }
+
+ javaCallbackRef = env->NewGlobalRef(javaCallback);
+ if (javaCallbackRef == nullptr)
+ {
+ ChipLogError(Zcl, "Could not create global reference for Java callback");
+ }
+}
+
+CHIPTonerCartridgeMonitoringReplacementProductListAttributeCallback::
+ ~CHIPTonerCartridgeMonitoringReplacementProductListAttributeCallback()
+{
+ JNIEnv * env = chip::JniReferences::GetInstance().GetEnvForCurrentThread();
+ if (env == nullptr)
+ {
+ ChipLogError(Zcl, "Could not delete global reference for Java callback");
+ return;
+ }
+ env->DeleteGlobalRef(javaCallbackRef);
+}
+
+void CHIPTonerCartridgeMonitoringReplacementProductListAttributeCallback::CallbackFn(
+ void * context,
+ const chip::app::DataModel::DecodableList<
+ chip::app::Clusters::TonerCartridgeMonitoring::Structs::ReplacementProductStruct::DecodableType> & list)
+{
+ chip::DeviceLayer::StackUnlock unlock;
+ CHIP_ERROR err = CHIP_NO_ERROR;
+ JNIEnv * env = chip::JniReferences::GetInstance().GetEnvForCurrentThread();
+ jobject javaCallbackRef;
+
+ VerifyOrReturn(env != nullptr, ChipLogError(Zcl, "Could not get JNI env"));
+
+ std::unique_ptr cppCallback(
+ reinterpret_cast(context), maybeDestroy);
+
+ // It's valid for javaCallbackRef to be nullptr if the Java code passed in a null callback.
+ javaCallbackRef = cppCallback.get()->javaCallbackRef;
+ VerifyOrReturn(javaCallbackRef != nullptr,
+ ChipLogProgress(Zcl, "Early return from attribute callback since Java callback is null"));
+
+ jmethodID javaMethod;
+ err = chip::JniReferences::GetInstance().FindMethod(env, javaCallbackRef, "onSuccess", "(Ljava/util/List;)V", &javaMethod);
+ VerifyOrReturn(err == CHIP_NO_ERROR, ChipLogError(Zcl, "Could not find onSuccess() method"));
+
+ jobject arrayListObj;
+ chip::JniReferences::GetInstance().CreateArrayList(arrayListObj);
+
+ auto iter_arrayListObj_0 = list.begin();
+ while (iter_arrayListObj_0.Next())
+ {
+ auto & entry_0 = iter_arrayListObj_0.GetValue();
+ jobject newElement_0;
+ jobject newElement_0_productIdentifierType;
+ std::string newElement_0_productIdentifierTypeClassName = "java/lang/Integer";
+ std::string newElement_0_productIdentifierTypeCtorSignature = "(I)V";
+ chip::JniReferences::GetInstance().CreateBoxedObject(
+ newElement_0_productIdentifierTypeClassName.c_str(), newElement_0_productIdentifierTypeCtorSignature.c_str(),
+ static_cast(entry_0.productIdentifierType), newElement_0_productIdentifierType);
+ jobject newElement_0_productIdentifierValue;
+ LogErrorOnFailure(chip::JniReferences::GetInstance().CharToStringUTF(entry_0.productIdentifierValue,
+ newElement_0_productIdentifierValue));
+
+ jclass replacementProductStructStructClass_1;
+ err = chip::JniReferences::GetInstance().GetClassRef(
+ env, "chip/devicecontroller/ChipStructs$TonerCartridgeMonitoringClusterReplacementProductStruct",
+ replacementProductStructStructClass_1);
+ if (err != CHIP_NO_ERROR)
+ {
+ ChipLogError(Zcl, "Could not find class ChipStructs$TonerCartridgeMonitoringClusterReplacementProductStruct");
+ return;
+ }
+ jmethodID replacementProductStructStructCtor_1 =
+ env->GetMethodID(replacementProductStructStructClass_1, "", "(Ljava/lang/Integer;Ljava/lang/String;)V");
+ if (replacementProductStructStructCtor_1 == nullptr)
+ {
+ ChipLogError(Zcl, "Could not find ChipStructs$TonerCartridgeMonitoringClusterReplacementProductStruct constructor");
+ return;
+ }
+
+ newElement_0 = env->NewObject(replacementProductStructStructClass_1, replacementProductStructStructCtor_1,
+ newElement_0_productIdentifierType, newElement_0_productIdentifierValue);
+ chip::JniReferences::GetInstance().AddToList(arrayListObj, newElement_0);
+ }
+
+ env->ExceptionClear();
+ env->CallVoidMethod(javaCallbackRef, javaMethod, arrayListObj);
+}
+
CHIPTonerCartridgeMonitoringGeneratedCommandListAttributeCallback::
CHIPTonerCartridgeMonitoringGeneratedCommandListAttributeCallback(jobject javaCallback, bool keepAlive) :
chip::Callback::Callback(CallbackFn, this),
diff --git a/src/controller/java/zap-generated/chip/devicecontroller/ChipClusters.java b/src/controller/java/zap-generated/chip/devicecontroller/ChipClusters.java
index 5dea415eeb6131..2faf941fc46051 100644
--- a/src/controller/java/zap-generated/chip/devicecontroller/ChipClusters.java
+++ b/src/controller/java/zap-generated/chip/devicecontroller/ChipClusters.java
@@ -17380,6 +17380,11 @@ public interface LastChangedTimeAttributeCallback {
void onError(Exception ex);
default void onSubscriptionEstablished(long subscriptionId) {}
}
+ public interface ReplacementProductListAttributeCallback {
+ void onSuccess( List valueList);
+ void onError(Exception ex);
+ default void onSubscriptionEstablished(long subscriptionId) {}
+ }
public interface GeneratedCommandListAttributeCallback {
void onSuccess( List valueList);
void onError(Exception ex);
@@ -17468,6 +17473,18 @@ public void subscribeLastChangedTimeAttribute(
subscribeLastChangedTimeAttribute(chipClusterPtr, callback, minInterval, maxInterval);
}
+ public void readReplacementProductListAttribute(
+ ReplacementProductListAttributeCallback callback
+ ) {
+ readReplacementProductListAttribute(chipClusterPtr, callback);
+ }
+ public void subscribeReplacementProductListAttribute(
+ ReplacementProductListAttributeCallback callback
+ ,
+ int minInterval, int maxInterval) {
+ subscribeReplacementProductListAttribute(chipClusterPtr, callback, minInterval, maxInterval);
+ }
+
public void readGeneratedCommandListAttribute(
GeneratedCommandListAttributeCallback callback
) {
@@ -17577,6 +17594,13 @@ private native void subscribeLastChangedTimeAttribute(long chipClusterPtr,
LastChangedTimeAttributeCallback callback
, int minInterval, int maxInterval);
+ private native void readReplacementProductListAttribute(long chipClusterPtr,
+ ReplacementProductListAttributeCallback callback
+ );
+ private native void subscribeReplacementProductListAttribute(long chipClusterPtr,
+ ReplacementProductListAttributeCallback callback
+ , int minInterval, int maxInterval);
+
private native void readGeneratedCommandListAttribute(long chipClusterPtr,
GeneratedCommandListAttributeCallback callback
);
@@ -17649,6 +17673,11 @@ public interface LastChangedTimeAttributeCallback {
void onError(Exception ex);
default void onSubscriptionEstablished(long subscriptionId) {}
}
+ public interface ReplacementProductListAttributeCallback {
+ void onSuccess( List valueList);
+ void onError(Exception ex);
+ default void onSubscriptionEstablished(long subscriptionId) {}
+ }
public interface GeneratedCommandListAttributeCallback {
void onSuccess( List valueList);
void onError(Exception ex);
@@ -17737,6 +17766,18 @@ public void subscribeLastChangedTimeAttribute(
subscribeLastChangedTimeAttribute(chipClusterPtr, callback, minInterval, maxInterval);
}
+ public void readReplacementProductListAttribute(
+ ReplacementProductListAttributeCallback callback
+ ) {
+ readReplacementProductListAttribute(chipClusterPtr, callback);
+ }
+ public void subscribeReplacementProductListAttribute(
+ ReplacementProductListAttributeCallback callback
+ ,
+ int minInterval, int maxInterval) {
+ subscribeReplacementProductListAttribute(chipClusterPtr, callback, minInterval, maxInterval);
+ }
+
public void readGeneratedCommandListAttribute(
GeneratedCommandListAttributeCallback callback
) {
@@ -17846,6 +17887,13 @@ private native void subscribeLastChangedTimeAttribute(long chipClusterPtr,
LastChangedTimeAttributeCallback callback
, int minInterval, int maxInterval);
+ private native void readReplacementProductListAttribute(long chipClusterPtr,
+ ReplacementProductListAttributeCallback callback
+ );
+ private native void subscribeReplacementProductListAttribute(long chipClusterPtr,
+ ReplacementProductListAttributeCallback callback
+ , int minInterval, int maxInterval);
+
private native void readGeneratedCommandListAttribute(long chipClusterPtr,
GeneratedCommandListAttributeCallback callback
);
@@ -17918,6 +17966,11 @@ public interface LastChangedTimeAttributeCallback {
void onError(Exception ex);
default void onSubscriptionEstablished(long subscriptionId) {}
}
+ public interface ReplacementProductListAttributeCallback {
+ void onSuccess( List valueList);
+ void onError(Exception ex);
+ default void onSubscriptionEstablished(long subscriptionId) {}
+ }
public interface GeneratedCommandListAttributeCallback {
void onSuccess( List valueList);
void onError(Exception ex);
@@ -18006,6 +18059,18 @@ public void subscribeLastChangedTimeAttribute(
subscribeLastChangedTimeAttribute(chipClusterPtr, callback, minInterval, maxInterval);
}
+ public void readReplacementProductListAttribute(
+ ReplacementProductListAttributeCallback callback
+ ) {
+ readReplacementProductListAttribute(chipClusterPtr, callback);
+ }
+ public void subscribeReplacementProductListAttribute(
+ ReplacementProductListAttributeCallback callback
+ ,
+ int minInterval, int maxInterval) {
+ subscribeReplacementProductListAttribute(chipClusterPtr, callback, minInterval, maxInterval);
+ }
+
public void readGeneratedCommandListAttribute(
GeneratedCommandListAttributeCallback callback
) {
@@ -18115,6 +18180,13 @@ private native void subscribeLastChangedTimeAttribute(long chipClusterPtr,
LastChangedTimeAttributeCallback callback
, int minInterval, int maxInterval);
+ private native void readReplacementProductListAttribute(long chipClusterPtr,
+ ReplacementProductListAttributeCallback callback
+ );
+ private native void subscribeReplacementProductListAttribute(long chipClusterPtr,
+ ReplacementProductListAttributeCallback callback
+ , int minInterval, int maxInterval);
+
private native void readGeneratedCommandListAttribute(long chipClusterPtr,
GeneratedCommandListAttributeCallback callback
);
@@ -18187,6 +18259,11 @@ public interface LastChangedTimeAttributeCallback {
void onError(Exception ex);
default void onSubscriptionEstablished(long subscriptionId) {}
}
+ public interface ReplacementProductListAttributeCallback {
+ void onSuccess( List valueList);
+ void onError(Exception ex);
+ default void onSubscriptionEstablished(long subscriptionId) {}
+ }
public interface GeneratedCommandListAttributeCallback {
void onSuccess( List valueList);
void onError(Exception ex);
@@ -18275,6 +18352,18 @@ public void subscribeLastChangedTimeAttribute(
subscribeLastChangedTimeAttribute(chipClusterPtr, callback, minInterval, maxInterval);
}
+ public void readReplacementProductListAttribute(
+ ReplacementProductListAttributeCallback callback
+ ) {
+ readReplacementProductListAttribute(chipClusterPtr, callback);
+ }
+ public void subscribeReplacementProductListAttribute(
+ ReplacementProductListAttributeCallback callback
+ ,
+ int minInterval, int maxInterval) {
+ subscribeReplacementProductListAttribute(chipClusterPtr, callback, minInterval, maxInterval);
+ }
+
public void readGeneratedCommandListAttribute(
GeneratedCommandListAttributeCallback callback
) {
@@ -18384,6 +18473,13 @@ private native void subscribeLastChangedTimeAttribute(long chipClusterPtr,
LastChangedTimeAttributeCallback callback
, int minInterval, int maxInterval);
+ private native void readReplacementProductListAttribute(long chipClusterPtr,
+ ReplacementProductListAttributeCallback callback
+ );
+ private native void subscribeReplacementProductListAttribute(long chipClusterPtr,
+ ReplacementProductListAttributeCallback callback
+ , int minInterval, int maxInterval);
+
private native void readGeneratedCommandListAttribute(long chipClusterPtr,
GeneratedCommandListAttributeCallback callback
);
@@ -18456,6 +18552,11 @@ public interface LastChangedTimeAttributeCallback {
void onError(Exception ex);
default void onSubscriptionEstablished(long subscriptionId) {}
}
+ public interface ReplacementProductListAttributeCallback {
+ void onSuccess( List valueList);
+ void onError(Exception ex);
+ default void onSubscriptionEstablished(long subscriptionId) {}
+ }
public interface GeneratedCommandListAttributeCallback {
void onSuccess( List valueList);
void onError(Exception ex);
@@ -18544,6 +18645,18 @@ public void subscribeLastChangedTimeAttribute(
subscribeLastChangedTimeAttribute(chipClusterPtr, callback, minInterval, maxInterval);
}
+ public void readReplacementProductListAttribute(
+ ReplacementProductListAttributeCallback callback
+ ) {
+ readReplacementProductListAttribute(chipClusterPtr, callback);
+ }
+ public void subscribeReplacementProductListAttribute(
+ ReplacementProductListAttributeCallback callback
+ ,
+ int minInterval, int maxInterval) {
+ subscribeReplacementProductListAttribute(chipClusterPtr, callback, minInterval, maxInterval);
+ }
+
public void readGeneratedCommandListAttribute(
GeneratedCommandListAttributeCallback callback
) {
@@ -18653,6 +18766,13 @@ private native void subscribeLastChangedTimeAttribute(long chipClusterPtr,
LastChangedTimeAttributeCallback callback
, int minInterval, int maxInterval);
+ private native void readReplacementProductListAttribute(long chipClusterPtr,
+ ReplacementProductListAttributeCallback callback
+ );
+ private native void subscribeReplacementProductListAttribute(long chipClusterPtr,
+ ReplacementProductListAttributeCallback callback
+ , int minInterval, int maxInterval);
+
private native void readGeneratedCommandListAttribute(long chipClusterPtr,
GeneratedCommandListAttributeCallback callback
);
@@ -18725,6 +18845,11 @@ public interface LastChangedTimeAttributeCallback {
void onError(Exception ex);
default void onSubscriptionEstablished(long subscriptionId) {}
}
+ public interface ReplacementProductListAttributeCallback {
+ void onSuccess( List