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 d1db961895a078..25d61d6adee3a2 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
@@ -28,11 +28,11 @@ server cluster AccessControl = 31 {
}
struct AccessControlEntry {
- fabric_idx fabricIndex = 0;
Privilege privilege = 1;
AuthMode authMode = 2;
nullable INT64U subjects[] = 3;
nullable Target targets[] = 4;
+ fabric_idx fabricIndex = 254;
}
struct Target {
@@ -42,24 +42,24 @@ server cluster AccessControl = 31 {
}
struct ExtensionEntry {
- fabric_idx fabricIndex = 0;
OCTET_STRING<254> data = 1;
+ fabric_idx fabricIndex = 254;
}
info event AccessControlEntryChanged = 0 {
- fabric_idx adminFabricIndex = 0;
nullable node_id adminNodeID = 1;
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
nullable AccessControlEntry latestValue = 4;
+ fabric_idx adminFabricIndex = 254;
}
info event AccessControlExtensionChanged = 1 {
- fabric_idx adminFabricIndex = 0;
nullable node_id adminNodeID = 1;
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
nullable ExtensionEntry latestValue = 4;
+ fabric_idx adminFabricIndex = 254;
}
attribute AccessControlEntry acl[] = 0;
@@ -230,11 +230,11 @@ server cluster BinaryInputBasic = 15 {
server cluster Binding = 30 {
struct TargetStruct {
- FABRIC_IDX fabricIndex = 0;
optional NODE_ID node = 1;
optional GROUP_ID group = 2;
optional ENDPOINT_NO endpoint = 3;
optional CLUSTER_ID cluster = 4;
+ FABRIC_IDX fabricIndex = 254;
}
attribute TargetStruct binding[] = 0;
@@ -1468,16 +1468,16 @@ server cluster GroupKeyManagement = 63 {
}
struct GroupKeyMapStruct {
- fabric_idx fabricIndex = 0;
group_id groupId = 1;
INT16U groupKeySetID = 2;
+ fabric_idx fabricIndex = 254;
}
struct GroupInfoMapStruct {
- fabric_idx fabricIndex = 0;
group_id groupId = 1;
endpoint_no endpoints[] = 2;
optional CHAR_STRING<16> groupName = 3;
+ fabric_idx fabricIndex = 254;
}
struct GroupKeySetStruct {
@@ -2318,18 +2318,18 @@ server cluster OperationalCredentials = 62 {
}
struct NOCStruct {
- fabric_idx fabricIndex = 0;
OCTET_STRING noc = 1;
nullable OCTET_STRING icac = 2;
+ fabric_idx fabricIndex = 254;
}
struct FabricDescriptor {
- fabric_idx fabricIndex = 0;
OCTET_STRING<65> rootPublicKey = 1;
INT16U vendorId = 2;
FABRIC_ID fabricId = 3;
NODE_ID nodeId = 4;
CHAR_STRING<32> label = 5;
+ fabric_idx fabricIndex = 254;
}
readonly attribute NOCStruct NOCs[] = 0;
@@ -2887,7 +2887,6 @@ server cluster TestCluster = 1295 {
}
struct TestFabricScoped {
- fabric_idx fabricIndex = 0;
INT8U fabricSensitiveInt8u = 1;
optional INT8U optionalFabricSensitiveInt8u = 2;
nullable INT8U nullableFabricSensitiveInt8u = 3;
@@ -2895,6 +2894,7 @@ server cluster TestCluster = 1295 {
CHAR_STRING fabricSensitiveCharString = 5;
SimpleStruct fabricSensitiveStruct = 6;
INT8U fabricSensitiveInt8uList[] = 7;
+ fabric_idx fabricIndex = 254;
}
struct NestedStructList {
@@ -2923,7 +2923,7 @@ server cluster TestCluster = 1295 {
}
info event TestFabricScopedEvent = 2 {
- fabric_idx arg1 = 1;
+ fabric_idx arg1 = 254;
}
attribute boolean boolean = 0;
diff --git a/examples/bridge-app/bridge-common/bridge-app.matter b/examples/bridge-app/bridge-common/bridge-app.matter
index 312e99cd554b5b..097b604c564f99 100644
--- a/examples/bridge-app/bridge-common/bridge-app.matter
+++ b/examples/bridge-app/bridge-common/bridge-app.matter
@@ -28,11 +28,11 @@ client cluster AccessControl = 31 {
}
struct AccessControlEntry {
- fabric_idx fabricIndex = 0;
Privilege privilege = 1;
AuthMode authMode = 2;
nullable INT64U subjects[] = 3;
nullable Target targets[] = 4;
+ fabric_idx fabricIndex = 254;
}
struct Target {
@@ -42,24 +42,24 @@ client cluster AccessControl = 31 {
}
struct ExtensionEntry {
- fabric_idx fabricIndex = 0;
OCTET_STRING<254> data = 1;
+ fabric_idx fabricIndex = 254;
}
info event AccessControlEntryChanged = 0 {
- fabric_idx adminFabricIndex = 0;
nullable node_id adminNodeID = 1;
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
nullable AccessControlEntry latestValue = 4;
+ fabric_idx adminFabricIndex = 254;
}
info event AccessControlExtensionChanged = 1 {
- fabric_idx adminFabricIndex = 0;
nullable node_id adminNodeID = 1;
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
nullable ExtensionEntry latestValue = 4;
+ fabric_idx adminFabricIndex = 254;
}
attribute AccessControlEntry acl[] = 0;
@@ -90,11 +90,11 @@ server cluster AccessControl = 31 {
}
struct AccessControlEntry {
- fabric_idx fabricIndex = 0;
Privilege privilege = 1;
AuthMode authMode = 2;
nullable INT64U subjects[] = 3;
nullable Target targets[] = 4;
+ fabric_idx fabricIndex = 254;
}
struct Target {
@@ -104,24 +104,24 @@ server cluster AccessControl = 31 {
}
struct ExtensionEntry {
- fabric_idx fabricIndex = 0;
OCTET_STRING<254> data = 1;
+ fabric_idx fabricIndex = 254;
}
info event AccessControlEntryChanged = 0 {
- fabric_idx adminFabricIndex = 0;
nullable node_id adminNodeID = 1;
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
nullable AccessControlEntry latestValue = 4;
+ fabric_idx adminFabricIndex = 254;
}
info event AccessControlExtensionChanged = 1 {
- fabric_idx adminFabricIndex = 0;
nullable node_id adminNodeID = 1;
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
nullable ExtensionEntry latestValue = 4;
+ fabric_idx adminFabricIndex = 254;
}
attribute AccessControlEntry acl[] = 0;
@@ -692,18 +692,18 @@ server cluster OperationalCredentials = 62 {
}
struct NOCStruct {
- fabric_idx fabricIndex = 0;
OCTET_STRING noc = 1;
nullable OCTET_STRING icac = 2;
+ fabric_idx fabricIndex = 254;
}
struct FabricDescriptor {
- fabric_idx fabricIndex = 0;
OCTET_STRING<65> rootPublicKey = 1;
INT16U vendorId = 2;
FABRIC_ID fabricId = 3;
NODE_ID nodeId = 4;
CHAR_STRING<32> label = 5;
+ fabric_idx fabricIndex = 254;
}
readonly attribute NOCStruct NOCs[] = 0;
diff --git a/examples/door-lock-app/door-lock-common/door-lock-app.matter b/examples/door-lock-app/door-lock-common/door-lock-app.matter
index e3b1801ed4055f..689514dcd63d1c 100644
--- a/examples/door-lock-app/door-lock-common/door-lock-app.matter
+++ b/examples/door-lock-app/door-lock-common/door-lock-app.matter
@@ -28,11 +28,11 @@ server cluster AccessControl = 31 {
}
struct AccessControlEntry {
- fabric_idx fabricIndex = 0;
Privilege privilege = 1;
AuthMode authMode = 2;
nullable INT64U subjects[] = 3;
nullable Target targets[] = 4;
+ fabric_idx fabricIndex = 254;
}
struct Target {
@@ -42,24 +42,24 @@ server cluster AccessControl = 31 {
}
struct ExtensionEntry {
- fabric_idx fabricIndex = 0;
OCTET_STRING<254> data = 1;
+ fabric_idx fabricIndex = 254;
}
info event AccessControlEntryChanged = 0 {
- fabric_idx adminFabricIndex = 0;
nullable node_id adminNodeID = 1;
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
nullable AccessControlEntry latestValue = 4;
+ fabric_idx adminFabricIndex = 254;
}
info event AccessControlExtensionChanged = 1 {
- fabric_idx adminFabricIndex = 0;
nullable node_id adminNodeID = 1;
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
nullable ExtensionEntry latestValue = 4;
+ fabric_idx adminFabricIndex = 254;
}
attribute AccessControlEntry acl[] = 0;
@@ -1057,18 +1057,18 @@ server cluster OperationalCredentials = 62 {
}
struct NOCStruct {
- fabric_idx fabricIndex = 0;
OCTET_STRING noc = 1;
nullable OCTET_STRING icac = 2;
+ fabric_idx fabricIndex = 254;
}
struct FabricDescriptor {
- fabric_idx fabricIndex = 0;
OCTET_STRING<65> rootPublicKey = 1;
INT16U vendorId = 2;
FABRIC_ID fabricId = 3;
NODE_ID nodeId = 4;
CHAR_STRING<32> label = 5;
+ fabric_idx fabricIndex = 254;
}
readonly attribute NOCStruct NOCs[] = 0;
diff --git a/examples/light-switch-app/light-switch-common/light-switch-app.matter b/examples/light-switch-app/light-switch-common/light-switch-app.matter
index 6dfb199c86a493..dc41ec7b1a2417 100644
--- a/examples/light-switch-app/light-switch-common/light-switch-app.matter
+++ b/examples/light-switch-app/light-switch-common/light-switch-app.matter
@@ -28,11 +28,11 @@ server cluster AccessControl = 31 {
}
struct AccessControlEntry {
- fabric_idx fabricIndex = 0;
Privilege privilege = 1;
AuthMode authMode = 2;
nullable INT64U subjects[] = 3;
nullable Target targets[] = 4;
+ fabric_idx fabricIndex = 254;
}
struct Target {
@@ -42,24 +42,24 @@ server cluster AccessControl = 31 {
}
struct ExtensionEntry {
- fabric_idx fabricIndex = 0;
OCTET_STRING<254> data = 1;
+ fabric_idx fabricIndex = 254;
}
info event AccessControlEntryChanged = 0 {
- fabric_idx adminFabricIndex = 0;
nullable node_id adminNodeID = 1;
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
nullable AccessControlEntry latestValue = 4;
+ fabric_idx adminFabricIndex = 254;
}
info event AccessControlExtensionChanged = 1 {
- fabric_idx adminFabricIndex = 0;
nullable node_id adminNodeID = 1;
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
nullable ExtensionEntry latestValue = 4;
+ fabric_idx adminFabricIndex = 254;
}
attribute AccessControlEntry acl[] = 0;
@@ -142,11 +142,11 @@ server cluster Basic = 40 {
server cluster Binding = 30 {
struct TargetStruct {
- FABRIC_IDX fabricIndex = 0;
optional NODE_ID node = 1;
optional GROUP_ID group = 2;
optional ENDPOINT_NO endpoint = 3;
optional CLUSTER_ID cluster = 4;
+ FABRIC_IDX fabricIndex = 254;
}
attribute TargetStruct binding[] = 0;
@@ -615,16 +615,16 @@ server cluster GroupKeyManagement = 63 {
}
struct GroupKeyMapStruct {
- fabric_idx fabricIndex = 0;
group_id groupId = 1;
INT16U groupKeySetID = 2;
+ fabric_idx fabricIndex = 254;
}
struct GroupInfoMapStruct {
- fabric_idx fabricIndex = 0;
group_id groupId = 1;
endpoint_no endpoints[] = 2;
optional CHAR_STRING<16> groupName = 3;
+ fabric_idx fabricIndex = 254;
}
struct GroupKeySetStruct {
@@ -1121,18 +1121,18 @@ server cluster OperationalCredentials = 62 {
}
struct NOCStruct {
- fabric_idx fabricIndex = 0;
OCTET_STRING noc = 1;
nullable OCTET_STRING icac = 2;
+ fabric_idx fabricIndex = 254;
}
struct FabricDescriptor {
- fabric_idx fabricIndex = 0;
OCTET_STRING<65> rootPublicKey = 1;
INT16U vendorId = 2;
FABRIC_ID fabricId = 3;
NODE_ID nodeId = 4;
CHAR_STRING<32> label = 5;
+ fabric_idx fabricIndex = 254;
}
readonly attribute NOCStruct NOCs[] = 0;
diff --git a/examples/lighting-app/lighting-common/lighting-app.matter b/examples/lighting-app/lighting-common/lighting-app.matter
index 2f7b48080c2e60..c8ae34b64befca 100644
--- a/examples/lighting-app/lighting-common/lighting-app.matter
+++ b/examples/lighting-app/lighting-common/lighting-app.matter
@@ -28,11 +28,11 @@ server cluster AccessControl = 31 {
}
struct AccessControlEntry {
- fabric_idx fabricIndex = 0;
Privilege privilege = 1;
AuthMode authMode = 2;
nullable INT64U subjects[] = 3;
nullable Target targets[] = 4;
+ fabric_idx fabricIndex = 254;
}
struct Target {
@@ -42,24 +42,24 @@ server cluster AccessControl = 31 {
}
struct ExtensionEntry {
- fabric_idx fabricIndex = 0;
OCTET_STRING<254> data = 1;
+ fabric_idx fabricIndex = 254;
}
info event AccessControlEntryChanged = 0 {
- fabric_idx adminFabricIndex = 0;
nullable node_id adminNodeID = 1;
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
nullable AccessControlEntry latestValue = 4;
+ fabric_idx adminFabricIndex = 254;
}
info event AccessControlExtensionChanged = 1 {
- fabric_idx adminFabricIndex = 0;
nullable node_id adminNodeID = 1;
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
nullable ExtensionEntry latestValue = 4;
+ fabric_idx adminFabricIndex = 254;
}
attribute AccessControlEntry acl[] = 0;
@@ -628,16 +628,16 @@ server cluster GroupKeyManagement = 63 {
}
struct GroupKeyMapStruct {
- fabric_idx fabricIndex = 0;
group_id groupId = 1;
INT16U groupKeySetID = 2;
+ fabric_idx fabricIndex = 254;
}
struct GroupInfoMapStruct {
- fabric_idx fabricIndex = 0;
group_id groupId = 1;
endpoint_no endpoints[] = 2;
optional CHAR_STRING<16> groupName = 3;
+ fabric_idx fabricIndex = 254;
}
struct GroupKeySetStruct {
@@ -1212,18 +1212,18 @@ server cluster OperationalCredentials = 62 {
}
struct NOCStruct {
- fabric_idx fabricIndex = 0;
OCTET_STRING noc = 1;
nullable OCTET_STRING icac = 2;
+ fabric_idx fabricIndex = 254;
}
struct FabricDescriptor {
- fabric_idx fabricIndex = 0;
OCTET_STRING<65> rootPublicKey = 1;
INT16U vendorId = 2;
FABRIC_ID fabricId = 3;
NODE_ID nodeId = 4;
CHAR_STRING<32> label = 5;
+ fabric_idx fabricIndex = 254;
}
readonly attribute NOCStruct NOCs[] = 0;
diff --git a/examples/lock-app/lock-common/lock-app.matter b/examples/lock-app/lock-common/lock-app.matter
index 209fd9de61d73d..2bf1813fef2ddb 100644
--- a/examples/lock-app/lock-common/lock-app.matter
+++ b/examples/lock-app/lock-common/lock-app.matter
@@ -28,11 +28,11 @@ server cluster AccessControl = 31 {
}
struct AccessControlEntry {
- fabric_idx fabricIndex = 0;
Privilege privilege = 1;
AuthMode authMode = 2;
nullable INT64U subjects[] = 3;
nullable Target targets[] = 4;
+ fabric_idx fabricIndex = 254;
}
struct Target {
@@ -42,24 +42,24 @@ server cluster AccessControl = 31 {
}
struct ExtensionEntry {
- fabric_idx fabricIndex = 0;
OCTET_STRING<254> data = 1;
+ fabric_idx fabricIndex = 254;
}
info event AccessControlEntryChanged = 0 {
- fabric_idx adminFabricIndex = 0;
nullable node_id adminNodeID = 1;
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
nullable AccessControlEntry latestValue = 4;
+ fabric_idx adminFabricIndex = 254;
}
info event AccessControlExtensionChanged = 1 {
- fabric_idx adminFabricIndex = 0;
nullable node_id adminNodeID = 1;
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
nullable ExtensionEntry latestValue = 4;
+ fabric_idx adminFabricIndex = 254;
}
attribute AccessControlEntry acl[] = 0;
@@ -684,18 +684,18 @@ server cluster OperationalCredentials = 62 {
}
struct NOCStruct {
- fabric_idx fabricIndex = 0;
OCTET_STRING noc = 1;
nullable OCTET_STRING icac = 2;
+ fabric_idx fabricIndex = 254;
}
struct FabricDescriptor {
- fabric_idx fabricIndex = 0;
OCTET_STRING<65> rootPublicKey = 1;
INT16U vendorId = 2;
FABRIC_ID fabricId = 3;
NODE_ID nodeId = 4;
CHAR_STRING<32> label = 5;
+ fabric_idx fabricIndex = 254;
}
readonly attribute NOCStruct NOCs[] = 0;
diff --git a/examples/log-source-app/log-source-common/log-source-app.matter b/examples/log-source-app/log-source-common/log-source-app.matter
index 330f5efdd38344..47f00086b6a32e 100644
--- a/examples/log-source-app/log-source-common/log-source-app.matter
+++ b/examples/log-source-app/log-source-common/log-source-app.matter
@@ -23,11 +23,11 @@ server cluster AccessControl = 31 {
}
struct AccessControlEntry {
- fabric_idx fabricIndex = 0;
Privilege privilege = 1;
AuthMode authMode = 2;
nullable INT64U subjects[] = 3;
nullable Target targets[] = 4;
+ fabric_idx fabricIndex = 254;
}
struct Target {
@@ -37,24 +37,24 @@ server cluster AccessControl = 31 {
}
struct ExtensionEntry {
- fabric_idx fabricIndex = 0;
OCTET_STRING<254> data = 1;
+ fabric_idx fabricIndex = 254;
}
info event AccessControlEntryChanged = 0 {
- fabric_idx adminFabricIndex = 0;
nullable node_id adminNodeID = 1;
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
nullable AccessControlEntry latestValue = 4;
+ fabric_idx adminFabricIndex = 254;
}
info event AccessControlExtensionChanged = 1 {
- fabric_idx adminFabricIndex = 0;
nullable node_id adminNodeID = 1;
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
nullable ExtensionEntry latestValue = 4;
+ fabric_idx adminFabricIndex = 254;
}
attribute AccessControlEntry acl[] = 0;
@@ -304,12 +304,12 @@ server cluster OperationalCredentials = 62 {
}
struct FabricDescriptor {
- fabric_idx fabricIndex = 0;
OCTET_STRING<65> rootPublicKey = 1;
INT16U vendorId = 2;
FABRIC_ID fabricId = 3;
NODE_ID nodeId = 4;
CHAR_STRING<32> label = 5;
+ fabric_idx fabricIndex = 254;
}
readonly attribute FabricDescriptor fabrics[] = 1;
diff --git a/examples/ota-provider-app/ota-provider-common/ota-provider-app.matter b/examples/ota-provider-app/ota-provider-common/ota-provider-app.matter
index 1aaab805e740e9..ee4f44c3c02043 100644
--- a/examples/ota-provider-app/ota-provider-common/ota-provider-app.matter
+++ b/examples/ota-provider-app/ota-provider-common/ota-provider-app.matter
@@ -28,11 +28,11 @@ client cluster AccessControl = 31 {
}
struct AccessControlEntry {
- fabric_idx fabricIndex = 0;
Privilege privilege = 1;
AuthMode authMode = 2;
nullable INT64U subjects[] = 3;
nullable Target targets[] = 4;
+ fabric_idx fabricIndex = 254;
}
struct Target {
@@ -42,24 +42,24 @@ client cluster AccessControl = 31 {
}
struct ExtensionEntry {
- fabric_idx fabricIndex = 0;
OCTET_STRING<254> data = 1;
+ fabric_idx fabricIndex = 254;
}
info event AccessControlEntryChanged = 0 {
- fabric_idx adminFabricIndex = 0;
nullable node_id adminNodeID = 1;
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
nullable AccessControlEntry latestValue = 4;
+ fabric_idx adminFabricIndex = 254;
}
info event AccessControlExtensionChanged = 1 {
- fabric_idx adminFabricIndex = 0;
nullable node_id adminNodeID = 1;
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
nullable ExtensionEntry latestValue = 4;
+ fabric_idx adminFabricIndex = 254;
}
attribute AccessControlEntry acl[] = 0;
@@ -90,11 +90,11 @@ server cluster AccessControl = 31 {
}
struct AccessControlEntry {
- fabric_idx fabricIndex = 0;
Privilege privilege = 1;
AuthMode authMode = 2;
nullable INT64U subjects[] = 3;
nullable Target targets[] = 4;
+ fabric_idx fabricIndex = 254;
}
struct Target {
@@ -104,24 +104,24 @@ server cluster AccessControl = 31 {
}
struct ExtensionEntry {
- fabric_idx fabricIndex = 0;
OCTET_STRING<254> data = 1;
+ fabric_idx fabricIndex = 254;
}
info event AccessControlEntryChanged = 0 {
- fabric_idx adminFabricIndex = 0;
nullable node_id adminNodeID = 1;
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
nullable AccessControlEntry latestValue = 4;
+ fabric_idx adminFabricIndex = 254;
}
info event AccessControlExtensionChanged = 1 {
- fabric_idx adminFabricIndex = 0;
nullable node_id adminNodeID = 1;
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
nullable ExtensionEntry latestValue = 4;
+ fabric_idx adminFabricIndex = 254;
}
attribute AccessControlEntry acl[] = 0;
@@ -442,18 +442,18 @@ server cluster OperationalCredentials = 62 {
}
struct NOCStruct {
- fabric_idx fabricIndex = 0;
OCTET_STRING noc = 1;
nullable OCTET_STRING icac = 2;
+ fabric_idx fabricIndex = 254;
}
struct FabricDescriptor {
- fabric_idx fabricIndex = 0;
OCTET_STRING<65> rootPublicKey = 1;
INT16U vendorId = 2;
FABRIC_ID fabricId = 3;
NODE_ID nodeId = 4;
CHAR_STRING<32> label = 5;
+ fabric_idx fabricIndex = 254;
}
readonly attribute NOCStruct NOCs[] = 0;
diff --git a/examples/ota-requestor-app/ota-requestor-common/ota-requestor-app.matter b/examples/ota-requestor-app/ota-requestor-common/ota-requestor-app.matter
index d66db472b19f94..74d69916fafaca 100644
--- a/examples/ota-requestor-app/ota-requestor-common/ota-requestor-app.matter
+++ b/examples/ota-requestor-app/ota-requestor-common/ota-requestor-app.matter
@@ -28,11 +28,11 @@ server cluster AccessControl = 31 {
}
struct AccessControlEntry {
- fabric_idx fabricIndex = 0;
Privilege privilege = 1;
AuthMode authMode = 2;
nullable INT64U subjects[] = 3;
nullable Target targets[] = 4;
+ fabric_idx fabricIndex = 254;
}
struct Target {
@@ -42,24 +42,24 @@ server cluster AccessControl = 31 {
}
struct ExtensionEntry {
- fabric_idx fabricIndex = 0;
OCTET_STRING<254> data = 1;
+ fabric_idx fabricIndex = 254;
}
info event AccessControlEntryChanged = 0 {
- fabric_idx adminFabricIndex = 0;
nullable node_id adminNodeID = 1;
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
nullable AccessControlEntry latestValue = 4;
+ fabric_idx adminFabricIndex = 254;
}
info event AccessControlExtensionChanged = 1 {
- fabric_idx adminFabricIndex = 0;
nullable node_id adminNodeID = 1;
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
nullable ExtensionEntry latestValue = 4;
+ fabric_idx adminFabricIndex = 254;
}
attribute AccessControlEntry acl[] = 0;
@@ -484,18 +484,18 @@ server cluster OperationalCredentials = 62 {
}
struct NOCStruct {
- fabric_idx fabricIndex = 0;
OCTET_STRING noc = 1;
nullable OCTET_STRING icac = 2;
+ fabric_idx fabricIndex = 254;
}
struct FabricDescriptor {
- fabric_idx fabricIndex = 0;
OCTET_STRING<65> rootPublicKey = 1;
INT16U vendorId = 2;
FABRIC_ID fabricId = 3;
NODE_ID nodeId = 4;
CHAR_STRING<32> label = 5;
+ fabric_idx fabricIndex = 254;
}
readonly attribute NOCStruct NOCs[] = 0;
diff --git a/examples/placeholder/linux/apps/app1/config.matter b/examples/placeholder/linux/apps/app1/config.matter
index 9b8ea2a04e399c..50edd770cf023d 100644
--- a/examples/placeholder/linux/apps/app1/config.matter
+++ b/examples/placeholder/linux/apps/app1/config.matter
@@ -1251,12 +1251,12 @@ client cluster OperationalCredentials = 62 {
}
struct FabricDescriptor {
- fabric_idx fabricIndex = 0;
OCTET_STRING<65> rootPublicKey = 1;
INT16U vendorId = 2;
FABRIC_ID fabricId = 3;
NODE_ID nodeId = 4;
CHAR_STRING<32> label = 5;
+ fabric_idx fabricIndex = 254;
}
readonly attribute FabricDescriptor fabrics[] = 1;
@@ -1333,12 +1333,12 @@ server cluster OperationalCredentials = 62 {
}
struct FabricDescriptor {
- fabric_idx fabricIndex = 0;
OCTET_STRING<65> rootPublicKey = 1;
INT16U vendorId = 2;
FABRIC_ID fabricId = 3;
NODE_ID nodeId = 4;
CHAR_STRING<32> label = 5;
+ fabric_idx fabricIndex = 254;
}
readonly attribute FabricDescriptor fabrics[] = 1;
diff --git a/examples/placeholder/linux/apps/app2/config.matter b/examples/placeholder/linux/apps/app2/config.matter
index e39670fda270d1..05aa5808d5dde1 100644
--- a/examples/placeholder/linux/apps/app2/config.matter
+++ b/examples/placeholder/linux/apps/app2/config.matter
@@ -1188,12 +1188,12 @@ client cluster OperationalCredentials = 62 {
}
struct FabricDescriptor {
- fabric_idx fabricIndex = 0;
OCTET_STRING<65> rootPublicKey = 1;
INT16U vendorId = 2;
FABRIC_ID fabricId = 3;
NODE_ID nodeId = 4;
CHAR_STRING<32> label = 5;
+ fabric_idx fabricIndex = 254;
}
readonly attribute FabricDescriptor fabrics[] = 1;
@@ -1270,12 +1270,12 @@ server cluster OperationalCredentials = 62 {
}
struct FabricDescriptor {
- fabric_idx fabricIndex = 0;
OCTET_STRING<65> rootPublicKey = 1;
INT16U vendorId = 2;
FABRIC_ID fabricId = 3;
NODE_ID nodeId = 4;
CHAR_STRING<32> label = 5;
+ fabric_idx fabricIndex = 254;
}
readonly attribute FabricDescriptor fabrics[] = 1;
diff --git a/examples/pump-app/pump-common/pump-app.matter b/examples/pump-app/pump-common/pump-app.matter
index efb7faa268a6e9..50371acb5cb5b1 100644
--- a/examples/pump-app/pump-common/pump-app.matter
+++ b/examples/pump-app/pump-common/pump-app.matter
@@ -28,11 +28,11 @@ server cluster AccessControl = 31 {
}
struct AccessControlEntry {
- fabric_idx fabricIndex = 0;
Privilege privilege = 1;
AuthMode authMode = 2;
nullable INT64U subjects[] = 3;
nullable Target targets[] = 4;
+ fabric_idx fabricIndex = 254;
}
struct Target {
@@ -42,24 +42,24 @@ server cluster AccessControl = 31 {
}
struct ExtensionEntry {
- fabric_idx fabricIndex = 0;
OCTET_STRING<254> data = 1;
+ fabric_idx fabricIndex = 254;
}
info event AccessControlEntryChanged = 0 {
- fabric_idx adminFabricIndex = 0;
nullable node_id adminNodeID = 1;
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
nullable AccessControlEntry latestValue = 4;
+ fabric_idx adminFabricIndex = 254;
}
info event AccessControlExtensionChanged = 1 {
- fabric_idx adminFabricIndex = 0;
nullable node_id adminNodeID = 1;
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
nullable ExtensionEntry latestValue = 4;
+ fabric_idx adminFabricIndex = 254;
}
attribute AccessControlEntry acl[] = 0;
@@ -369,16 +369,16 @@ server cluster GroupKeyManagement = 63 {
}
struct GroupKeyMapStruct {
- fabric_idx fabricIndex = 0;
group_id groupId = 1;
INT16U groupKeySetID = 2;
+ fabric_idx fabricIndex = 254;
}
struct GroupInfoMapStruct {
- fabric_idx fabricIndex = 0;
group_id groupId = 1;
endpoint_no endpoints[] = 2;
optional CHAR_STRING<16> groupName = 3;
+ fabric_idx fabricIndex = 254;
}
struct GroupKeySetStruct {
@@ -939,18 +939,18 @@ server cluster OperationalCredentials = 62 {
}
struct NOCStruct {
- fabric_idx fabricIndex = 0;
OCTET_STRING noc = 1;
nullable OCTET_STRING icac = 2;
+ fabric_idx fabricIndex = 254;
}
struct FabricDescriptor {
- fabric_idx fabricIndex = 0;
OCTET_STRING<65> rootPublicKey = 1;
INT16U vendorId = 2;
FABRIC_ID fabricId = 3;
NODE_ID nodeId = 4;
CHAR_STRING<32> label = 5;
+ fabric_idx fabricIndex = 254;
}
readonly attribute NOCStruct NOCs[] = 0;
diff --git a/examples/pump-controller-app/pump-controller-common/pump-controller-app.matter b/examples/pump-controller-app/pump-controller-common/pump-controller-app.matter
index 5e93a038dcae22..137685388f093f 100644
--- a/examples/pump-controller-app/pump-controller-common/pump-controller-app.matter
+++ b/examples/pump-controller-app/pump-controller-common/pump-controller-app.matter
@@ -28,11 +28,11 @@ server cluster AccessControl = 31 {
}
struct AccessControlEntry {
- fabric_idx fabricIndex = 0;
Privilege privilege = 1;
AuthMode authMode = 2;
nullable INT64U subjects[] = 3;
nullable Target targets[] = 4;
+ fabric_idx fabricIndex = 254;
}
struct Target {
@@ -42,24 +42,24 @@ server cluster AccessControl = 31 {
}
struct ExtensionEntry {
- fabric_idx fabricIndex = 0;
OCTET_STRING<254> data = 1;
+ fabric_idx fabricIndex = 254;
}
info event AccessControlEntryChanged = 0 {
- fabric_idx adminFabricIndex = 0;
nullable node_id adminNodeID = 1;
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
nullable AccessControlEntry latestValue = 4;
+ fabric_idx adminFabricIndex = 254;
}
info event AccessControlExtensionChanged = 1 {
- fabric_idx adminFabricIndex = 0;
nullable node_id adminNodeID = 1;
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
nullable ExtensionEntry latestValue = 4;
+ fabric_idx adminFabricIndex = 254;
}
attribute AccessControlEntry acl[] = 0;
@@ -366,16 +366,16 @@ server cluster GroupKeyManagement = 63 {
}
struct GroupKeyMapStruct {
- fabric_idx fabricIndex = 0;
group_id groupId = 1;
INT16U groupKeySetID = 2;
+ fabric_idx fabricIndex = 254;
}
struct GroupInfoMapStruct {
- fabric_idx fabricIndex = 0;
group_id groupId = 1;
endpoint_no endpoints[] = 2;
optional CHAR_STRING<16> groupName = 3;
+ fabric_idx fabricIndex = 254;
}
struct GroupKeySetStruct {
@@ -829,18 +829,18 @@ server cluster OperationalCredentials = 62 {
}
struct NOCStruct {
- fabric_idx fabricIndex = 0;
OCTET_STRING noc = 1;
nullable OCTET_STRING icac = 2;
+ fabric_idx fabricIndex = 254;
}
struct FabricDescriptor {
- fabric_idx fabricIndex = 0;
OCTET_STRING<65> rootPublicKey = 1;
INT16U vendorId = 2;
FABRIC_ID fabricId = 3;
NODE_ID nodeId = 4;
CHAR_STRING<32> label = 5;
+ fabric_idx fabricIndex = 254;
}
readonly attribute NOCStruct NOCs[] = 0;
diff --git a/examples/temperature-measurement-app/esp32/main/temperature-measurement.matter b/examples/temperature-measurement-app/esp32/main/temperature-measurement.matter
index 8f6a97fdf9993c..6b01d8725d68dd 100644
--- a/examples/temperature-measurement-app/esp32/main/temperature-measurement.matter
+++ b/examples/temperature-measurement-app/esp32/main/temperature-measurement.matter
@@ -28,11 +28,11 @@ server cluster AccessControl = 31 {
}
struct AccessControlEntry {
- fabric_idx fabricIndex = 0;
Privilege privilege = 1;
AuthMode authMode = 2;
nullable INT64U subjects[] = 3;
nullable Target targets[] = 4;
+ fabric_idx fabricIndex = 254;
}
struct Target {
@@ -42,24 +42,24 @@ server cluster AccessControl = 31 {
}
struct ExtensionEntry {
- fabric_idx fabricIndex = 0;
OCTET_STRING<254> data = 1;
+ fabric_idx fabricIndex = 254;
}
info event AccessControlEntryChanged = 0 {
- fabric_idx adminFabricIndex = 0;
nullable node_id adminNodeID = 1;
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
nullable AccessControlEntry latestValue = 4;
+ fabric_idx adminFabricIndex = 254;
}
info event AccessControlExtensionChanged = 1 {
- fabric_idx adminFabricIndex = 0;
nullable node_id adminNodeID = 1;
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
nullable ExtensionEntry latestValue = 4;
+ fabric_idx adminFabricIndex = 254;
}
attribute AccessControlEntry acl[] = 0;
@@ -505,18 +505,18 @@ server cluster OperationalCredentials = 62 {
}
struct NOCStruct {
- fabric_idx fabricIndex = 0;
OCTET_STRING noc = 1;
nullable OCTET_STRING icac = 2;
+ fabric_idx fabricIndex = 254;
}
struct FabricDescriptor {
- fabric_idx fabricIndex = 0;
OCTET_STRING<65> rootPublicKey = 1;
INT16U vendorId = 2;
FABRIC_ID fabricId = 3;
NODE_ID nodeId = 4;
CHAR_STRING<32> label = 5;
+ fabric_idx fabricIndex = 254;
}
readonly attribute NOCStruct NOCs[] = 0;
diff --git a/examples/thermostat/thermostat-common/thermostat.matter b/examples/thermostat/thermostat-common/thermostat.matter
index 21e61114ca0084..732fe2dd2c02de 100644
--- a/examples/thermostat/thermostat-common/thermostat.matter
+++ b/examples/thermostat/thermostat-common/thermostat.matter
@@ -28,11 +28,11 @@ server cluster AccessControl = 31 {
}
struct AccessControlEntry {
- fabric_idx fabricIndex = 0;
Privilege privilege = 1;
AuthMode authMode = 2;
nullable INT64U subjects[] = 3;
nullable Target targets[] = 4;
+ fabric_idx fabricIndex = 254;
}
struct Target {
@@ -42,24 +42,24 @@ server cluster AccessControl = 31 {
}
struct ExtensionEntry {
- fabric_idx fabricIndex = 0;
OCTET_STRING<254> data = 1;
+ fabric_idx fabricIndex = 254;
}
info event AccessControlEntryChanged = 0 {
- fabric_idx adminFabricIndex = 0;
nullable node_id adminNodeID = 1;
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
nullable AccessControlEntry latestValue = 4;
+ fabric_idx adminFabricIndex = 254;
}
info event AccessControlExtensionChanged = 1 {
- fabric_idx adminFabricIndex = 0;
nullable node_id adminNodeID = 1;
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
nullable ExtensionEntry latestValue = 4;
+ fabric_idx adminFabricIndex = 254;
}
attribute AccessControlEntry acl[] = 0;
@@ -142,11 +142,11 @@ server cluster Basic = 40 {
server cluster Binding = 30 {
struct TargetStruct {
- FABRIC_IDX fabricIndex = 0;
optional NODE_ID node = 1;
optional GROUP_ID group = 2;
optional ENDPOINT_NO endpoint = 3;
optional CLUSTER_ID cluster = 4;
+ FABRIC_IDX fabricIndex = 254;
}
attribute TargetStruct binding[] = 0;
@@ -385,16 +385,16 @@ server cluster GroupKeyManagement = 63 {
}
struct GroupKeyMapStruct {
- fabric_idx fabricIndex = 0;
group_id groupId = 1;
INT16U groupKeySetID = 2;
+ fabric_idx fabricIndex = 254;
}
struct GroupInfoMapStruct {
- fabric_idx fabricIndex = 0;
group_id groupId = 1;
endpoint_no endpoints[] = 2;
optional CHAR_STRING<16> groupName = 3;
+ fabric_idx fabricIndex = 254;
}
attribute GroupKeyMapStruct groupKeyMap[] = 0;
@@ -746,18 +746,18 @@ server cluster OperationalCredentials = 62 {
}
struct NOCStruct {
- fabric_idx fabricIndex = 0;
OCTET_STRING noc = 1;
nullable OCTET_STRING icac = 2;
+ fabric_idx fabricIndex = 254;
}
struct FabricDescriptor {
- fabric_idx fabricIndex = 0;
OCTET_STRING<65> rootPublicKey = 1;
INT16U vendorId = 2;
FABRIC_ID fabricId = 3;
NODE_ID nodeId = 4;
CHAR_STRING<32> label = 5;
+ fabric_idx fabricIndex = 254;
}
readonly attribute NOCStruct NOCs[] = 0;
diff --git a/examples/tv-app/tv-common/tv-app.matter b/examples/tv-app/tv-common/tv-app.matter
index b5af48262dbb83..6a970795f21c2e 100644
--- a/examples/tv-app/tv-common/tv-app.matter
+++ b/examples/tv-app/tv-common/tv-app.matter
@@ -28,11 +28,11 @@ server cluster AccessControl = 31 {
}
struct AccessControlEntry {
- fabric_idx fabricIndex = 0;
Privilege privilege = 1;
AuthMode authMode = 2;
nullable INT64U subjects[] = 3;
nullable Target targets[] = 4;
+ fabric_idx fabricIndex = 254;
}
struct Target {
@@ -42,24 +42,24 @@ server cluster AccessControl = 31 {
}
struct ExtensionEntry {
- fabric_idx fabricIndex = 0;
OCTET_STRING<254> data = 1;
+ fabric_idx fabricIndex = 254;
}
info event AccessControlEntryChanged = 0 {
- fabric_idx adminFabricIndex = 0;
nullable node_id adminNodeID = 1;
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
nullable AccessControlEntry latestValue = 4;
+ fabric_idx adminFabricIndex = 254;
}
info event AccessControlExtensionChanged = 1 {
- fabric_idx adminFabricIndex = 0;
nullable node_id adminNodeID = 1;
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
nullable ExtensionEntry latestValue = 4;
+ fabric_idx adminFabricIndex = 254;
}
attribute AccessControlEntry acl[] = 0;
@@ -272,11 +272,11 @@ server cluster Basic = 40 {
client cluster Binding = 30 {
struct TargetStruct {
- FABRIC_IDX fabricIndex = 0;
optional NODE_ID node = 1;
optional GROUP_ID group = 2;
optional ENDPOINT_NO endpoint = 3;
optional CLUSTER_ID cluster = 4;
+ FABRIC_IDX fabricIndex = 254;
}
attribute TargetStruct binding[] = 0;
@@ -285,11 +285,11 @@ client cluster Binding = 30 {
server cluster Binding = 30 {
struct TargetStruct {
- FABRIC_IDX fabricIndex = 0;
optional NODE_ID node = 1;
optional GROUP_ID group = 2;
optional ENDPOINT_NO endpoint = 3;
optional CLUSTER_ID cluster = 4;
+ FABRIC_IDX fabricIndex = 254;
}
attribute TargetStruct binding[] = 0;
@@ -745,16 +745,16 @@ server cluster GroupKeyManagement = 63 {
}
struct GroupKeyMapStruct {
- fabric_idx fabricIndex = 0;
group_id groupId = 1;
INT16U groupKeySetID = 2;
+ fabric_idx fabricIndex = 254;
}
struct GroupInfoMapStruct {
- fabric_idx fabricIndex = 0;
group_id groupId = 1;
endpoint_no endpoints[] = 2;
optional CHAR_STRING<16> groupName = 3;
+ fabric_idx fabricIndex = 254;
}
attribute GroupKeyMapStruct groupKeyMap[] = 0;
@@ -1441,18 +1441,18 @@ client cluster OperationalCredentials = 62 {
}
struct NOCStruct {
- fabric_idx fabricIndex = 0;
OCTET_STRING noc = 1;
nullable OCTET_STRING icac = 2;
+ fabric_idx fabricIndex = 254;
}
struct FabricDescriptor {
- fabric_idx fabricIndex = 0;
OCTET_STRING<65> rootPublicKey = 1;
INT16U vendorId = 2;
FABRIC_ID fabricId = 3;
NODE_ID nodeId = 4;
CHAR_STRING<32> label = 5;
+ fabric_idx fabricIndex = 254;
}
readonly attribute NOCStruct NOCs[] = 0;
@@ -1539,18 +1539,18 @@ server cluster OperationalCredentials = 62 {
}
struct NOCStruct {
- fabric_idx fabricIndex = 0;
OCTET_STRING noc = 1;
nullable OCTET_STRING icac = 2;
+ fabric_idx fabricIndex = 254;
}
struct FabricDescriptor {
- fabric_idx fabricIndex = 0;
OCTET_STRING<65> rootPublicKey = 1;
INT16U vendorId = 2;
FABRIC_ID fabricId = 3;
NODE_ID nodeId = 4;
CHAR_STRING<32> label = 5;
+ fabric_idx fabricIndex = 254;
}
readonly attribute NOCStruct NOCs[] = 0;
diff --git a/examples/tv-casting-app/tv-casting-common/tv-casting-app.matter b/examples/tv-casting-app/tv-casting-common/tv-casting-app.matter
index 95bfda66b02b6b..deb1be465cf2ad 100644
--- a/examples/tv-casting-app/tv-casting-common/tv-casting-app.matter
+++ b/examples/tv-casting-app/tv-casting-common/tv-casting-app.matter
@@ -28,11 +28,11 @@ server cluster AccessControl = 31 {
}
struct AccessControlEntry {
- fabric_idx fabricIndex = 0;
Privilege privilege = 1;
AuthMode authMode = 2;
nullable INT64U subjects[] = 3;
nullable Target targets[] = 4;
+ fabric_idx fabricIndex = 254;
}
struct Target {
@@ -42,24 +42,24 @@ server cluster AccessControl = 31 {
}
struct ExtensionEntry {
- fabric_idx fabricIndex = 0;
OCTET_STRING<254> data = 1;
+ fabric_idx fabricIndex = 254;
}
info event AccessControlEntryChanged = 0 {
- fabric_idx adminFabricIndex = 0;
nullable node_id adminNodeID = 1;
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
nullable AccessControlEntry latestValue = 4;
+ fabric_idx adminFabricIndex = 254;
}
info event AccessControlExtensionChanged = 1 {
- fabric_idx adminFabricIndex = 0;
nullable node_id adminNodeID = 1;
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
nullable ExtensionEntry latestValue = 4;
+ fabric_idx adminFabricIndex = 254;
}
attribute AccessControlEntry acl[] = 0;
@@ -271,11 +271,11 @@ server cluster BinaryInputBasic = 15 {
server cluster Binding = 30 {
struct TargetStruct {
- FABRIC_IDX fabricIndex = 0;
optional NODE_ID node = 1;
optional GROUP_ID group = 2;
optional ENDPOINT_NO endpoint = 3;
optional CLUSTER_ID cluster = 4;
+ FABRIC_IDX fabricIndex = 254;
}
attribute TargetStruct binding[] = 0;
@@ -1405,16 +1405,16 @@ server cluster GroupKeyManagement = 63 {
}
struct GroupKeyMapStruct {
- fabric_idx fabricIndex = 0;
group_id groupId = 1;
INT16U groupKeySetID = 2;
+ fabric_idx fabricIndex = 254;
}
struct GroupInfoMapStruct {
- fabric_idx fabricIndex = 0;
group_id groupId = 1;
endpoint_no endpoints[] = 2;
optional CHAR_STRING<16> groupName = 3;
+ fabric_idx fabricIndex = 254;
}
attribute GroupKeyMapStruct groupKeyMap[] = 0;
@@ -2246,18 +2246,18 @@ server cluster OperationalCredentials = 62 {
}
struct NOCStruct {
- fabric_idx fabricIndex = 0;
OCTET_STRING noc = 1;
nullable OCTET_STRING icac = 2;
+ fabric_idx fabricIndex = 254;
}
struct FabricDescriptor {
- fabric_idx fabricIndex = 0;
OCTET_STRING<65> rootPublicKey = 1;
INT16U vendorId = 2;
FABRIC_ID fabricId = 3;
NODE_ID nodeId = 4;
CHAR_STRING<32> label = 5;
+ fabric_idx fabricIndex = 254;
}
readonly attribute NOCStruct NOCs[] = 0;
@@ -2606,7 +2606,7 @@ server cluster TestCluster = 1295 {
}
info event TestFabricScopedEvent = 2 {
- fabric_idx arg1 = 1;
+ fabric_idx arg1 = 254;
}
attribute boolean boolean = 0;
diff --git a/examples/window-app/common/window-app.matter b/examples/window-app/common/window-app.matter
index 25a387ec364270..5456c1c3a93ea5 100644
--- a/examples/window-app/common/window-app.matter
+++ b/examples/window-app/common/window-app.matter
@@ -28,11 +28,11 @@ server cluster AccessControl = 31 {
}
struct AccessControlEntry {
- fabric_idx fabricIndex = 0;
Privilege privilege = 1;
AuthMode authMode = 2;
nullable INT64U subjects[] = 3;
nullable Target targets[] = 4;
+ fabric_idx fabricIndex = 254;
}
struct Target {
@@ -42,24 +42,24 @@ server cluster AccessControl = 31 {
}
struct ExtensionEntry {
- fabric_idx fabricIndex = 0;
OCTET_STRING<254> data = 1;
+ fabric_idx fabricIndex = 254;
}
info event AccessControlEntryChanged = 0 {
- fabric_idx adminFabricIndex = 0;
nullable node_id adminNodeID = 1;
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
nullable AccessControlEntry latestValue = 4;
+ fabric_idx adminFabricIndex = 254;
}
info event AccessControlExtensionChanged = 1 {
- fabric_idx adminFabricIndex = 0;
nullable node_id adminNodeID = 1;
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
nullable ExtensionEntry latestValue = 4;
+ fabric_idx adminFabricIndex = 254;
}
attribute AccessControlEntry acl[] = 0;
@@ -526,18 +526,18 @@ server cluster OperationalCredentials = 62 {
}
struct NOCStruct {
- fabric_idx fabricIndex = 0;
OCTET_STRING noc = 1;
nullable OCTET_STRING icac = 2;
+ fabric_idx fabricIndex = 254;
}
struct FabricDescriptor {
- fabric_idx fabricIndex = 0;
OCTET_STRING<65> rootPublicKey = 1;
INT16U vendorId = 2;
FABRIC_ID fabricId = 3;
NODE_ID nodeId = 4;
CHAR_STRING<32> label = 5;
+ fabric_idx fabricIndex = 254;
}
readonly attribute NOCStruct NOCs[] = 0;
diff --git a/src/app/app-platform/ContentAppPlatform.cpp b/src/app/app-platform/ContentAppPlatform.cpp
index 588932dc3c83b4..c726167efd30cf 100644
--- a/src/app/app-platform/ContentAppPlatform.cpp
+++ b/src/app/app-platform/ContentAppPlatform.cpp
@@ -452,11 +452,11 @@ CHIP_ERROR ContentAppPlatform::ManageClientAccess(OperationalDeviceProxy * targe
}
bindings.push_back(Binding::Structs::TargetStruct::Type{
- .fabricIndex = kUndefinedFabricIndex,
.node = MakeOptional(localNodeId),
.group = NullOptional,
.endpoint = MakeOptional(kLocalVideoPlayerEndpointId),
.cluster = MakeOptional(kNoClusterIdSpecified),
+ .fabricIndex = kUndefinedFabricIndex,
});
}
@@ -467,11 +467,11 @@ CHIP_ERROR ContentAppPlatform::ManageClientAccess(OperationalDeviceProxy * targe
ReturnErrorOnFailure(entry.AddTarget(nullptr, target));
bindings.push_back(Binding::Structs::TargetStruct::Type{
- .fabricIndex = kUndefinedFabricIndex,
.node = MakeOptional(localNodeId),
.group = NullOptional,
.endpoint = MakeOptional(kLocalSpeakerEndpointId),
.cluster = MakeOptional(kNoClusterIdSpecified),
+ .fabricIndex = kUndefinedFabricIndex,
});
}
@@ -495,11 +495,11 @@ CHIP_ERROR ContentAppPlatform::ManageClientAccess(OperationalDeviceProxy * targe
ReturnErrorOnFailure(entry.AddTarget(nullptr, target));
bindings.push_back(Binding::Structs::TargetStruct::Type{
- .fabricIndex = kUndefinedFabricIndex,
.node = MakeOptional(localNodeId),
.group = NullOptional,
.endpoint = MakeOptional(app->GetEndpointId()),
.cluster = MakeOptional(kNoClusterIdSpecified),
+ .fabricIndex = kUndefinedFabricIndex,
});
}
}
diff --git a/src/app/clusters/access-control-server/access-control-server.cpp b/src/app/clusters/access-control-server/access-control-server.cpp
index e97f93f5234ffc..19b17d4406093f 100644
--- a/src/app/clusters/access-control-server/access-control-server.cpp
+++ b/src/app/clusters/access-control-server/access-control-server.cpp
@@ -429,8 +429,8 @@ CHIP_ERROR LogEntryChangedEvent(const AccessControl::Entry & entry, const Access
adminPasscodeID.SetNonNull(PAKEKeyIdFromNodeId(subjectDescriptor.subject));
}
- AccessControlCluster::Events::AccessControlEntryChanged::Type event{ subjectDescriptor.fabricIndex, adminNodeID,
- adminPasscodeID, changeType, latestValue };
+ AccessControlCluster::Events::AccessControlEntryChanged::Type event{ adminNodeID, adminPasscodeID, changeType, latestValue,
+ subjectDescriptor.fabricIndex };
err = LogEvent(event, 0, eventNumber);
if (CHIP_NO_ERROR != err)
diff --git a/src/app/clusters/bindings/bindings.cpp b/src/app/clusters/bindings/bindings.cpp
index e54e2e68759982..c532c68cd65325 100644
--- a/src/app/clusters/bindings/bindings.cpp
+++ b/src/app/clusters/bindings/bindings.cpp
@@ -132,22 +132,22 @@ CHIP_ERROR BindingTableAccess::ReadBindingTable(EndpointId endpoint, AttributeVa
if (entry.local == endpoint && entry.type == EMBER_UNICAST_BINDING)
{
Binding::Structs::TargetStruct::Type value = {
- .fabricIndex = entry.fabricIndex,
.node = MakeOptional(entry.nodeId),
.group = NullOptional,
.endpoint = MakeOptional(entry.remote),
.cluster = entry.clusterId,
+ .fabricIndex = entry.fabricIndex,
};
ReturnErrorOnFailure(subEncoder.Encode(value));
}
else if (entry.local == endpoint && entry.type == EMBER_MULTICAST_BINDING)
{
Binding::Structs::TargetStruct::Type value = {
- .fabricIndex = entry.fabricIndex,
.node = NullOptional,
.group = MakeOptional(entry.groupId),
.endpoint = NullOptional,
.cluster = entry.clusterId,
+ .fabricIndex = entry.fabricIndex,
};
ReturnErrorOnFailure(subEncoder.Encode(value));
}
diff --git a/src/app/clusters/group-key-mgmt-server/group-key-mgmt-server.cpp b/src/app/clusters/group-key-mgmt-server/group-key-mgmt-server.cpp
index ddc6891a526e9e..35bb53403295ef 100644
--- a/src/app/clusters/group-key-mgmt-server/group-key-mgmt-server.cpp
+++ b/src/app/clusters/group-key-mgmt-server/group-key-mgmt-server.cpp
@@ -166,9 +166,11 @@ class GroupKeyManagementAttributeAccess : public AttributeAccessInterface
GroupDataProvider::GroupKey mapping;
while (iter->Next(mapping))
{
- GroupKeyManagement::Structs::GroupKeyMapStruct::Type key = { .fabricIndex = fabric_index,
- .groupId = mapping.group_id,
- .groupKeySetID = mapping.keyset_id };
+ GroupKeyManagement::Structs::GroupKeyMapStruct::Type key = {
+ .groupId = mapping.group_id,
+ .groupKeySetID = mapping.keyset_id,
+ .fabricIndex = fabric_index,
+ };
encoder.Encode(key);
}
iter->Release();
diff --git a/src/app/tests/TestAttributeValueEncoder.cpp b/src/app/tests/TestAttributeValueEncoder.cpp
index 4363582c29cb2a..e063e0e888ac0e 100644
--- a/src/app/tests/TestAttributeValueEncoder.cpp
+++ b/src/app/tests/TestAttributeValueEncoder.cpp
@@ -294,8 +294,8 @@ void TestEncodeFabricScoped(nlTestSuite * aSuite, void * aContext)
0x34, 0x05, // Tag (05) Null
0x18, // End of container (attribute path)
0x35, 0x02, // Tag 02 (attribute data)
- 0x24, 0x00, 0x01, // Tag 0, UINT8 Value 1 (fabric index)
0x30, 0x01, 0x00, // Tag 1, OCTET_STRING length 0 (data)
+ 0x24, 0xFE, 0x01, // Tag 0xFE, UINT8 Value 1 (fabric index)
0x18,
0x18,
0x18,
diff --git a/src/app/zap-templates/zcl/data-model/chip/access-control-cluster.xml b/src/app/zap-templates/zcl/data-model/chip/access-control-cluster.xml
index 5630d4efeffbcb..8132833cfe25c8 100644
--- a/src/app/zap-templates/zcl/data-model/chip/access-control-cluster.xml
+++ b/src/app/zap-templates/zcl/data-model/chip/access-control-cluster.xml
@@ -49,17 +49,17 @@ limitations under the License.
-
+
-
+
@@ -88,19 +88,19 @@ limitations under the License.
The cluster SHALL send AccessControlEntryChanged events whenever its ACL attribute data is changed by an Administrator.
-
+
The cluster SHALL send AccessControlExtensionChanged events whenever its extension attribute data is changed by an Administrator.
-
+
diff --git a/src/app/zap-templates/zcl/data-model/chip/binding-cluster.xml b/src/app/zap-templates/zcl/data-model/chip/binding-cluster.xml
index ede4f797947dec..f7cecaf94bf083 100644
--- a/src/app/zap-templates/zcl/data-model/chip/binding-cluster.xml
+++ b/src/app/zap-templates/zcl/data-model/chip/binding-cluster.xml
@@ -19,11 +19,11 @@ limitations under the License.
-
-
-
-
-
+
+
+
+
+
diff --git a/src/app/zap-templates/zcl/data-model/chip/group-key-mgmt-cluster.xml b/src/app/zap-templates/zcl/data-model/chip/group-key-mgmt-cluster.xml
index 41c338211a42d5..8299bb12894564 100644
--- a/src/app/zap-templates/zcl/data-model/chip/group-key-mgmt-cluster.xml
+++ b/src/app/zap-templates/zcl/data-model/chip/group-key-mgmt-cluster.xml
@@ -19,17 +19,17 @@ limitations under the License.
-
+
-
+
diff --git a/src/app/zap-templates/zcl/data-model/chip/operational-credentials-cluster.xml b/src/app/zap-templates/zcl/data-model/chip/operational-credentials-cluster.xml
index df8b57f1d53c03..b61590f299b1d9 100644
--- a/src/app/zap-templates/zcl/data-model/chip/operational-credentials-cluster.xml
+++ b/src/app/zap-templates/zcl/data-model/chip/operational-credentials-cluster.xml
@@ -19,12 +19,12 @@ limitations under the License.
-
-
-
-
-
-
+
+
+
+
+
+
@@ -43,9 +43,9 @@ limitations under the License.
-
-
-
+
+
+
diff --git a/src/app/zap-templates/zcl/data-model/chip/test-cluster.xml b/src/app/zap-templates/zcl/data-model/chip/test-cluster.xml
index c14f1cb877411a..b5649c56da6d2a 100644
--- a/src/app/zap-templates/zcl/data-model/chip/test-cluster.xml
+++ b/src/app/zap-templates/zcl/data-model/chip/test-cluster.xml
@@ -24,14 +24,14 @@ limitations under the License.
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
@@ -577,7 +577,7 @@ limitations under the License.
Example test event
-
+
diff --git a/src/controller/data_model/controller-clusters.matter b/src/controller/data_model/controller-clusters.matter
index f45c0e17f0d0fd..67cde8b0bc354b 100644
--- a/src/controller/data_model/controller-clusters.matter
+++ b/src/controller/data_model/controller-clusters.matter
@@ -28,11 +28,11 @@ client cluster AccessControl = 31 {
}
struct AccessControlEntry {
- fabric_idx fabricIndex = 0;
Privilege privilege = 1;
AuthMode authMode = 2;
nullable INT64U subjects[] = 3;
nullable Target targets[] = 4;
+ fabric_idx fabricIndex = 254;
}
struct Target {
@@ -42,24 +42,24 @@ client cluster AccessControl = 31 {
}
struct ExtensionEntry {
- fabric_idx fabricIndex = 0;
OCTET_STRING<254> data = 1;
+ fabric_idx fabricIndex = 254;
}
info event AccessControlEntryChanged = 0 {
- fabric_idx adminFabricIndex = 0;
nullable node_id adminNodeID = 1;
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
nullable AccessControlEntry latestValue = 4;
+ fabric_idx adminFabricIndex = 254;
}
info event AccessControlExtensionChanged = 1 {
- fabric_idx adminFabricIndex = 0;
nullable node_id adminNodeID = 1;
nullable INT16U adminPasscodeID = 2;
ChangeTypeEnum changeType = 3;
nullable ExtensionEntry latestValue = 4;
+ fabric_idx adminFabricIndex = 254;
}
attribute AccessControlEntry acl[] = 0;
@@ -320,11 +320,11 @@ client cluster BinaryInputBasic = 15 {
client cluster Binding = 30 {
struct TargetStruct {
- FABRIC_IDX fabricIndex = 0;
optional NODE_ID node = 1;
optional GROUP_ID group = 2;
optional ENDPOINT_NO endpoint = 3;
optional CLUSTER_ID cluster = 4;
+ FABRIC_IDX fabricIndex = 254;
}
attribute TargetStruct binding[] = 0;
@@ -1842,16 +1842,16 @@ client cluster GroupKeyManagement = 63 {
}
struct GroupKeyMapStruct {
- fabric_idx fabricIndex = 0;
group_id groupId = 1;
INT16U groupKeySetID = 2;
+ fabric_idx fabricIndex = 254;
}
struct GroupInfoMapStruct {
- fabric_idx fabricIndex = 0;
group_id groupId = 1;
endpoint_no endpoints[] = 2;
optional CHAR_STRING<16> groupName = 3;
+ fabric_idx fabricIndex = 254;
}
struct GroupKeySetStruct {
@@ -2740,18 +2740,18 @@ client cluster OperationalCredentials = 62 {
}
struct NOCStruct {
- fabric_idx fabricIndex = 0;
OCTET_STRING noc = 1;
nullable OCTET_STRING icac = 2;
+ fabric_idx fabricIndex = 254;
}
struct FabricDescriptor {
- fabric_idx fabricIndex = 0;
OCTET_STRING<65> rootPublicKey = 1;
INT16U vendorId = 2;
FABRIC_ID fabricId = 3;
NODE_ID nodeId = 4;
CHAR_STRING<32> label = 5;
+ fabric_idx fabricIndex = 254;
}
readonly attribute NOCStruct NOCs[] = 0;
@@ -3350,7 +3350,6 @@ client cluster TestCluster = 1295 {
}
struct TestFabricScoped {
- fabric_idx fabricIndex = 0;
INT8U fabricSensitiveInt8u = 1;
optional INT8U optionalFabricSensitiveInt8u = 2;
nullable INT8U nullableFabricSensitiveInt8u = 3;
@@ -3358,6 +3357,7 @@ client cluster TestCluster = 1295 {
CHAR_STRING fabricSensitiveCharString = 5;
SimpleStruct fabricSensitiveStruct = 6;
INT8U fabricSensitiveInt8uList[] = 7;
+ fabric_idx fabricIndex = 254;
}
struct NestedStructList {
@@ -3386,7 +3386,7 @@ client cluster TestCluster = 1295 {
}
info event TestFabricScopedEvent = 2 {
- fabric_idx arg1 = 1;
+ fabric_idx arg1 = 254;
}
attribute boolean boolean = 0;
diff --git a/src/controller/java/zap-generated/CHIPAttributeTLVValueDecoder.cpp b/src/controller/java/zap-generated/CHIPAttributeTLVValueDecoder.cpp
index 5a9a0ba4d8ebbc..753dd452d55c20 100644
--- a/src/controller/java/zap-generated/CHIPAttributeTLVValueDecoder.cpp
+++ b/src/controller/java/zap-generated/CHIPAttributeTLVValueDecoder.cpp
@@ -57,12 +57,6 @@ jobject DecodeAttributeValue(const app::ConcreteAttributePath & aPath, TLV::TLVR
{
auto & entry_0 = iter_value_0.GetValue();
jobject newElement_0;
- jobject newElement_0_fabricIndex;
- std::string newElement_0_fabricIndexClassName = "java/lang/Integer";
- std::string newElement_0_fabricIndexCtorSignature = "(I)V";
- chip::JniReferences::GetInstance().CreateBoxedObject(newElement_0_fabricIndexClassName.c_str(),
- newElement_0_fabricIndexCtorSignature.c_str(),
- entry_0.fabricIndex, newElement_0_fabricIndex);
jobject newElement_0_privilege;
std::string newElement_0_privilegeClassName = "java/lang/Integer";
std::string newElement_0_privilegeCtorSignature = "(I)V";
@@ -171,6 +165,12 @@ jobject DecodeAttributeValue(const app::ConcreteAttributePath & aPath, TLV::TLVR
chip::JniReferences::GetInstance().AddToList(newElement_0_targets, newElement_NaN);
}
}
+ jobject newElement_0_fabricIndex;
+ std::string newElement_0_fabricIndexClassName = "java/lang/Integer";
+ std::string newElement_0_fabricIndexCtorSignature = "(I)V";
+ chip::JniReferences::GetInstance().CreateBoxedObject(newElement_0_fabricIndexClassName.c_str(),
+ newElement_0_fabricIndexCtorSignature.c_str(),
+ entry_0.fabricIndex, newElement_0_fabricIndex);
jclass accessControlEntryStructClass;
err = chip::JniReferences::GetInstance().GetClassRef(
@@ -182,7 +182,7 @@ jobject DecodeAttributeValue(const app::ConcreteAttributePath & aPath, TLV::TLVR
}
jmethodID accessControlEntryStructCtor = env->GetMethodID(
accessControlEntryStructClass, "",
- "(Ljava/lang/Integer;Ljava/lang/Integer;Ljava/lang/Integer;Ljava/util/ArrayList;Ljava/util/ArrayList;)V");
+ "(Ljava/lang/Integer;Ljava/lang/Integer;Ljava/util/ArrayList;Ljava/util/ArrayList;Ljava/lang/Integer;)V");
if (accessControlEntryStructCtor == nullptr)
{
ChipLogError(Zcl, "Could not find ChipStructs$AccessControlClusterAccessControlEntry constructor");
@@ -190,8 +190,8 @@ jobject DecodeAttributeValue(const app::ConcreteAttributePath & aPath, TLV::TLVR
}
newElement_0 =
- env->NewObject(accessControlEntryStructClass, accessControlEntryStructCtor, newElement_0_fabricIndex,
- newElement_0_privilege, newElement_0_authMode, newElement_0_subjects, newElement_0_targets);
+ env->NewObject(accessControlEntryStructClass, accessControlEntryStructCtor, newElement_0_privilege,
+ newElement_0_authMode, newElement_0_subjects, newElement_0_targets, newElement_0_fabricIndex);
chip::JniReferences::GetInstance().AddToList(value, newElement_0);
}
return value;
@@ -212,17 +212,17 @@ jobject DecodeAttributeValue(const app::ConcreteAttributePath & aPath, TLV::TLVR
{
auto & entry_0 = iter_value_0.GetValue();
jobject newElement_0;
+ jobject newElement_0_data;
+ jbyteArray newElement_0_dataByteArray = env->NewByteArray(static_cast(entry_0.data.size()));
+ env->SetByteArrayRegion(newElement_0_dataByteArray, 0, static_cast(entry_0.data.size()),
+ reinterpret_cast(entry_0.data.data()));
+ newElement_0_data = newElement_0_dataByteArray;
jobject newElement_0_fabricIndex;
std::string newElement_0_fabricIndexClassName = "java/lang/Integer";
std::string newElement_0_fabricIndexCtorSignature = "(I)V";
chip::JniReferences::GetInstance().CreateBoxedObject(newElement_0_fabricIndexClassName.c_str(),
newElement_0_fabricIndexCtorSignature.c_str(),
entry_0.fabricIndex, newElement_0_fabricIndex);
- jobject newElement_0_data;
- jbyteArray newElement_0_dataByteArray = env->NewByteArray(static_cast(entry_0.data.size()));
- env->SetByteArrayRegion(newElement_0_dataByteArray, 0, static_cast(entry_0.data.size()),
- reinterpret_cast(entry_0.data.data()));
- newElement_0_data = newElement_0_dataByteArray;
jclass extensionEntryStructClass;
err = chip::JniReferences::GetInstance().GetClassRef(
@@ -233,15 +233,15 @@ jobject DecodeAttributeValue(const app::ConcreteAttributePath & aPath, TLV::TLVR
return nullptr;
}
jmethodID extensionEntryStructCtor =
- env->GetMethodID(extensionEntryStructClass, "", "(Ljava/lang/Integer;[B)V");
+ env->GetMethodID(extensionEntryStructClass, "", "([BLjava/lang/Integer;)V");
if (extensionEntryStructCtor == nullptr)
{
ChipLogError(Zcl, "Could not find ChipStructs$AccessControlClusterExtensionEntry constructor");
return nullptr;
}
- newElement_0 = env->NewObject(extensionEntryStructClass, extensionEntryStructCtor, newElement_0_fabricIndex,
- newElement_0_data);
+ newElement_0 = env->NewObject(extensionEntryStructClass, extensionEntryStructCtor, newElement_0_data,
+ newElement_0_fabricIndex);
chip::JniReferences::GetInstance().AddToList(value, newElement_0);
}
return value;
@@ -1853,12 +1853,6 @@ jobject DecodeAttributeValue(const app::ConcreteAttributePath & aPath, TLV::TLVR
{
auto & entry_0 = iter_value_0.GetValue();
jobject newElement_0;
- jobject newElement_0_fabricIndex;
- std::string newElement_0_fabricIndexClassName = "java/lang/Integer";
- std::string newElement_0_fabricIndexCtorSignature = "(I)V";
- chip::JniReferences::GetInstance().CreateBoxedObject(newElement_0_fabricIndexClassName.c_str(),
- newElement_0_fabricIndexCtorSignature.c_str(),
- entry_0.fabricIndex, newElement_0_fabricIndex);
jobject newElement_0_node;
if (!entry_0.node.HasValue())
{
@@ -1921,6 +1915,12 @@ jobject DecodeAttributeValue(const app::ConcreteAttributePath & aPath, TLV::TLVR
newElement_0_clusterInsideOptional);
chip::JniReferences::GetInstance().CreateOptional(newElement_0_clusterInsideOptional, newElement_0_cluster);
}
+ jobject newElement_0_fabricIndex;
+ std::string newElement_0_fabricIndexClassName = "java/lang/Integer";
+ std::string newElement_0_fabricIndexCtorSignature = "(I)V";
+ chip::JniReferences::GetInstance().CreateBoxedObject(newElement_0_fabricIndexClassName.c_str(),
+ newElement_0_fabricIndexCtorSignature.c_str(),
+ entry_0.fabricIndex, newElement_0_fabricIndex);
jclass targetStructStructClass;
err = chip::JniReferences::GetInstance().GetClassRef(
@@ -1932,15 +1932,16 @@ jobject DecodeAttributeValue(const app::ConcreteAttributePath & aPath, TLV::TLVR
}
jmethodID targetStructStructCtor = env->GetMethodID(
targetStructStructClass, "",
- "(Ljava/lang/Integer;Ljava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;)V");
+ "(Ljava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;Ljava/lang/Integer;)V");
if (targetStructStructCtor == nullptr)
{
ChipLogError(Zcl, "Could not find ChipStructs$BindingClusterTargetStruct constructor");
return nullptr;
}
- newElement_0 = env->NewObject(targetStructStructClass, targetStructStructCtor, newElement_0_fabricIndex,
- newElement_0_node, newElement_0_group, newElement_0_endpoint, newElement_0_cluster);
+ newElement_0 =
+ env->NewObject(targetStructStructClass, targetStructStructCtor, newElement_0_node, newElement_0_group,
+ newElement_0_endpoint, newElement_0_cluster, newElement_0_fabricIndex);
chip::JniReferences::GetInstance().AddToList(value, newElement_0);
}
return value;
@@ -6311,12 +6312,6 @@ jobject DecodeAttributeValue(const app::ConcreteAttributePath & aPath, TLV::TLVR
{
auto & entry_0 = iter_value_0.GetValue();
jobject newElement_0;
- jobject newElement_0_fabricIndex;
- std::string newElement_0_fabricIndexClassName = "java/lang/Integer";
- std::string newElement_0_fabricIndexCtorSignature = "(I)V";
- chip::JniReferences::GetInstance().CreateBoxedObject(newElement_0_fabricIndexClassName.c_str(),
- newElement_0_fabricIndexCtorSignature.c_str(),
- entry_0.fabricIndex, newElement_0_fabricIndex);
jobject newElement_0_groupId;
std::string newElement_0_groupIdClassName = "java/lang/Integer";
std::string newElement_0_groupIdCtorSignature = "(I)V";
@@ -6329,6 +6324,12 @@ jobject DecodeAttributeValue(const app::ConcreteAttributePath & aPath, TLV::TLVR
chip::JniReferences::GetInstance().CreateBoxedObject(newElement_0_groupKeySetIDClassName.c_str(),
newElement_0_groupKeySetIDCtorSignature.c_str(),
entry_0.groupKeySetID, newElement_0_groupKeySetID);
+ jobject newElement_0_fabricIndex;
+ std::string newElement_0_fabricIndexClassName = "java/lang/Integer";
+ std::string newElement_0_fabricIndexCtorSignature = "(I)V";
+ chip::JniReferences::GetInstance().CreateBoxedObject(newElement_0_fabricIndexClassName.c_str(),
+ newElement_0_fabricIndexCtorSignature.c_str(),
+ entry_0.fabricIndex, newElement_0_fabricIndex);
jclass groupKeyMapStructStructClass;
err = chip::JniReferences::GetInstance().GetClassRef(
@@ -6347,8 +6348,8 @@ jobject DecodeAttributeValue(const app::ConcreteAttributePath & aPath, TLV::TLVR
return nullptr;
}
- newElement_0 = env->NewObject(groupKeyMapStructStructClass, groupKeyMapStructStructCtor, newElement_0_fabricIndex,
- newElement_0_groupId, newElement_0_groupKeySetID);
+ newElement_0 = env->NewObject(groupKeyMapStructStructClass, groupKeyMapStructStructCtor, newElement_0_groupId,
+ newElement_0_groupKeySetID, newElement_0_fabricIndex);
chip::JniReferences::GetInstance().AddToList(value, newElement_0);
}
return value;
@@ -6369,12 +6370,6 @@ jobject DecodeAttributeValue(const app::ConcreteAttributePath & aPath, TLV::TLVR
{
auto & entry_0 = iter_value_0.GetValue();
jobject newElement_0;
- jobject newElement_0_fabricIndex;
- std::string newElement_0_fabricIndexClassName = "java/lang/Integer";
- std::string newElement_0_fabricIndexCtorSignature = "(I)V";
- chip::JniReferences::GetInstance().CreateBoxedObject(newElement_0_fabricIndexClassName.c_str(),
- newElement_0_fabricIndexCtorSignature.c_str(),
- entry_0.fabricIndex, newElement_0_fabricIndex);
jobject newElement_0_groupId;
std::string newElement_0_groupIdClassName = "java/lang/Integer";
std::string newElement_0_groupIdCtorSignature = "(I)V";
@@ -6407,6 +6402,12 @@ jobject DecodeAttributeValue(const app::ConcreteAttributePath & aPath, TLV::TLVR
env->NewStringUTF(std::string(entry_0.groupName.Value().data(), entry_0.groupName.Value().size()).c_str());
chip::JniReferences::GetInstance().CreateOptional(newElement_0_groupNameInsideOptional, newElement_0_groupName);
}
+ jobject newElement_0_fabricIndex;
+ std::string newElement_0_fabricIndexClassName = "java/lang/Integer";
+ std::string newElement_0_fabricIndexCtorSignature = "(I)V";
+ chip::JniReferences::GetInstance().CreateBoxedObject(newElement_0_fabricIndexClassName.c_str(),
+ newElement_0_fabricIndexCtorSignature.c_str(),
+ entry_0.fabricIndex, newElement_0_fabricIndex);
jclass groupInfoMapStructStructClass;
err = chip::JniReferences::GetInstance().GetClassRef(
@@ -6419,15 +6420,15 @@ jobject DecodeAttributeValue(const app::ConcreteAttributePath & aPath, TLV::TLVR
}
jmethodID groupInfoMapStructStructCtor =
env->GetMethodID(groupInfoMapStructStructClass, "",
- "(Ljava/lang/Integer;Ljava/lang/Integer;Ljava/util/ArrayList;Ljava/util/Optional;)V");
+ "(Ljava/lang/Integer;Ljava/util/ArrayList;Ljava/util/Optional;Ljava/lang/Integer;)V");
if (groupInfoMapStructStructCtor == nullptr)
{
ChipLogError(Zcl, "Could not find ChipStructs$GroupKeyManagementClusterGroupInfoMapStruct constructor");
return nullptr;
}
- newElement_0 = env->NewObject(groupInfoMapStructStructClass, groupInfoMapStructStructCtor, newElement_0_fabricIndex,
- newElement_0_groupId, newElement_0_endpoints, newElement_0_groupName);
+ newElement_0 = env->NewObject(groupInfoMapStructStructClass, groupInfoMapStructStructCtor, newElement_0_groupId,
+ newElement_0_endpoints, newElement_0_groupName, newElement_0_fabricIndex);
chip::JniReferences::GetInstance().AddToList(value, newElement_0);
}
return value;
@@ -9243,12 +9244,6 @@ jobject DecodeAttributeValue(const app::ConcreteAttributePath & aPath, TLV::TLVR
{
auto & entry_0 = iter_value_0.GetValue();
jobject newElement_0;
- jobject newElement_0_fabricIndex;
- std::string newElement_0_fabricIndexClassName = "java/lang/Integer";
- std::string newElement_0_fabricIndexCtorSignature = "(I)V";
- chip::JniReferences::GetInstance().CreateBoxedObject(newElement_0_fabricIndexClassName.c_str(),
- newElement_0_fabricIndexCtorSignature.c_str(),
- entry_0.fabricIndex, newElement_0_fabricIndex);
jobject newElement_0_noc;
jbyteArray newElement_0_nocByteArray = env->NewByteArray(static_cast(entry_0.noc.size()));
env->SetByteArrayRegion(newElement_0_nocByteArray, 0, static_cast(entry_0.noc.size()),
@@ -9266,6 +9261,12 @@ jobject DecodeAttributeValue(const app::ConcreteAttributePath & aPath, TLV::TLVR
reinterpret_cast(entry_0.icac.Value().data()));
newElement_0_icac = newElement_0_icacByteArray;
}
+ jobject newElement_0_fabricIndex;
+ std::string newElement_0_fabricIndexClassName = "java/lang/Integer";
+ std::string newElement_0_fabricIndexCtorSignature = "(I)V";
+ chip::JniReferences::GetInstance().CreateBoxedObject(newElement_0_fabricIndexClassName.c_str(),
+ newElement_0_fabricIndexCtorSignature.c_str(),
+ entry_0.fabricIndex, newElement_0_fabricIndex);
jclass NOCStructStructClass;
err = chip::JniReferences::GetInstance().GetClassRef(
@@ -9275,15 +9276,15 @@ jobject DecodeAttributeValue(const app::ConcreteAttributePath & aPath, TLV::TLVR
ChipLogError(Zcl, "Could not find class ChipStructs$OperationalCredentialsClusterNOCStruct");
return nullptr;
}
- jmethodID NOCStructStructCtor = env->GetMethodID(NOCStructStructClass, "", "(Ljava/lang/Integer;[B[B)V");
+ jmethodID NOCStructStructCtor = env->GetMethodID(NOCStructStructClass, "", "([B[BLjava/lang/Integer;)V");
if (NOCStructStructCtor == nullptr)
{
ChipLogError(Zcl, "Could not find ChipStructs$OperationalCredentialsClusterNOCStruct constructor");
return nullptr;
}
- newElement_0 = env->NewObject(NOCStructStructClass, NOCStructStructCtor, newElement_0_fabricIndex, newElement_0_noc,
- newElement_0_icac);
+ newElement_0 = env->NewObject(NOCStructStructClass, NOCStructStructCtor, newElement_0_noc, newElement_0_icac,
+ newElement_0_fabricIndex);
chip::JniReferences::GetInstance().AddToList(value, newElement_0);
}
return value;
@@ -9304,12 +9305,6 @@ jobject DecodeAttributeValue(const app::ConcreteAttributePath & aPath, TLV::TLVR
{
auto & entry_0 = iter_value_0.GetValue();
jobject newElement_0;
- jobject newElement_0_fabricIndex;
- std::string newElement_0_fabricIndexClassName = "java/lang/Integer";
- std::string newElement_0_fabricIndexCtorSignature = "(I)V";
- chip::JniReferences::GetInstance().CreateBoxedObject(newElement_0_fabricIndexClassName.c_str(),
- newElement_0_fabricIndexCtorSignature.c_str(),
- entry_0.fabricIndex, newElement_0_fabricIndex);
jobject newElement_0_rootPublicKey;
jbyteArray newElement_0_rootPublicKeyByteArray =
env->NewByteArray(static_cast(entry_0.rootPublicKey.size()));
@@ -9336,6 +9331,12 @@ jobject DecodeAttributeValue(const app::ConcreteAttributePath & aPath, TLV::TLVR
entry_0.nodeId, newElement_0_nodeId);
jobject newElement_0_label;
newElement_0_label = env->NewStringUTF(std::string(entry_0.label.data(), entry_0.label.size()).c_str());
+ jobject newElement_0_fabricIndex;
+ std::string newElement_0_fabricIndexClassName = "java/lang/Integer";
+ std::string newElement_0_fabricIndexCtorSignature = "(I)V";
+ chip::JniReferences::GetInstance().CreateBoxedObject(newElement_0_fabricIndexClassName.c_str(),
+ newElement_0_fabricIndexCtorSignature.c_str(),
+ entry_0.fabricIndex, newElement_0_fabricIndex);
jclass fabricDescriptorStructClass;
err = chip::JniReferences::GetInstance().GetClassRef(
@@ -9348,16 +9349,16 @@ jobject DecodeAttributeValue(const app::ConcreteAttributePath & aPath, TLV::TLVR
}
jmethodID fabricDescriptorStructCtor = env->GetMethodID(
fabricDescriptorStructClass, "",
- "(Ljava/lang/Integer;[BLjava/lang/Integer;Ljava/lang/Long;Ljava/lang/Long;Ljava/lang/String;)V");
+ "([BLjava/lang/Integer;Ljava/lang/Long;Ljava/lang/Long;Ljava/lang/String;Ljava/lang/Integer;)V");
if (fabricDescriptorStructCtor == nullptr)
{
ChipLogError(Zcl, "Could not find ChipStructs$OperationalCredentialsClusterFabricDescriptor constructor");
return nullptr;
}
- newElement_0 = env->NewObject(fabricDescriptorStructClass, fabricDescriptorStructCtor, newElement_0_fabricIndex,
- newElement_0_rootPublicKey, newElement_0_vendorId, newElement_0_fabricId,
- newElement_0_nodeId, newElement_0_label);
+ newElement_0 = env->NewObject(fabricDescriptorStructClass, fabricDescriptorStructCtor, newElement_0_rootPublicKey,
+ newElement_0_vendorId, newElement_0_fabricId, newElement_0_nodeId, newElement_0_label,
+ newElement_0_fabricIndex);
chip::JniReferences::GetInstance().AddToList(value, newElement_0);
}
return value;
@@ -12755,12 +12756,6 @@ jobject DecodeAttributeValue(const app::ConcreteAttributePath & aPath, TLV::TLVR
{
auto & entry_0 = iter_value_0.GetValue();
jobject newElement_0;
- jobject newElement_0_fabricIndex;
- std::string newElement_0_fabricIndexClassName = "java/lang/Integer";
- std::string newElement_0_fabricIndexCtorSignature = "(I)V";
- chip::JniReferences::GetInstance().CreateBoxedObject(newElement_0_fabricIndexClassName.c_str(),
- newElement_0_fabricIndexCtorSignature.c_str(),
- entry_0.fabricIndex, newElement_0_fabricIndex);
jobject newElement_0_fabricSensitiveInt8u;
std::string newElement_0_fabricSensitiveInt8uClassName = "java/lang/Integer";
std::string newElement_0_fabricSensitiveInt8uCtorSignature = "(I)V";
@@ -12919,6 +12914,12 @@ jobject DecodeAttributeValue(const app::ConcreteAttributePath & aPath, TLV::TLVR
newElement_NaNClassName.c_str(), newElement_NaNCtorSignature.c_str(), entry_NaN, newElement_NaN);
chip::JniReferences::GetInstance().AddToList(newElement_0_fabricSensitiveInt8uList, newElement_NaN);
}
+ jobject newElement_0_fabricIndex;
+ std::string newElement_0_fabricIndexClassName = "java/lang/Integer";
+ std::string newElement_0_fabricIndexCtorSignature = "(I)V";
+ chip::JniReferences::GetInstance().CreateBoxedObject(newElement_0_fabricIndexClassName.c_str(),
+ newElement_0_fabricIndexCtorSignature.c_str(),
+ entry_0.fabricIndex, newElement_0_fabricIndex);
jclass testFabricScopedStructClass;
err = chip::JniReferences::GetInstance().GetClassRef(
@@ -12930,20 +12931,19 @@ jobject DecodeAttributeValue(const app::ConcreteAttributePath & aPath, TLV::TLVR
}
jmethodID testFabricScopedStructCtor = env->GetMethodID(
testFabricScopedStructClass, "",
- "(Ljava/lang/Integer;Ljava/lang/Integer;Ljava/util/Optional;Ljava/lang/Integer;Ljava/util/Optional;Ljava/lang/"
- "String;Lchip/devicecontroller/ChipStructs$TestClusterClusterSimpleStruct;Ljava/util/ArrayList;)V");
+ "(Ljava/lang/Integer;Ljava/util/Optional;Ljava/lang/Integer;Ljava/util/Optional;Ljava/lang/String;Lchip/"
+ "devicecontroller/ChipStructs$TestClusterClusterSimpleStruct;Ljava/util/ArrayList;Ljava/lang/Integer;)V");
if (testFabricScopedStructCtor == nullptr)
{
ChipLogError(Zcl, "Could not find ChipStructs$TestClusterClusterTestFabricScoped constructor");
return nullptr;
}
- newElement_0 =
- env->NewObject(testFabricScopedStructClass, testFabricScopedStructCtor, newElement_0_fabricIndex,
- newElement_0_fabricSensitiveInt8u, newElement_0_optionalFabricSensitiveInt8u,
- newElement_0_nullableFabricSensitiveInt8u, newElement_0_nullableOptionalFabricSensitiveInt8u,
- newElement_0_fabricSensitiveCharString, newElement_0_fabricSensitiveStruct,
- newElement_0_fabricSensitiveInt8uList);
+ newElement_0 = env->NewObject(
+ testFabricScopedStructClass, testFabricScopedStructCtor, newElement_0_fabricSensitiveInt8u,
+ newElement_0_optionalFabricSensitiveInt8u, newElement_0_nullableFabricSensitiveInt8u,
+ newElement_0_nullableOptionalFabricSensitiveInt8u, newElement_0_fabricSensitiveCharString,
+ newElement_0_fabricSensitiveStruct, newElement_0_fabricSensitiveInt8uList, newElement_0_fabricIndex);
chip::JniReferences::GetInstance().AddToList(value, newElement_0);
}
return value;
diff --git a/src/controller/java/zap-generated/CHIPClustersWrite-JNI.cpp b/src/controller/java/zap-generated/CHIPClustersWrite-JNI.cpp
index 122e4bfb436a54..ec99d550be3f33 100644
--- a/src/controller/java/zap-generated/CHIPClustersWrite-JNI.cpp
+++ b/src/controller/java/zap-generated/CHIPClustersWrite-JNI.cpp
@@ -67,12 +67,6 @@ JNI_METHOD(void, AccessControlCluster, writeAclAttribute)
{
jobject element_0;
chip::JniReferences::GetInstance().GetListItem(value, i_0, element_0);
- jobject element_0_fabricIndexItem_1;
- chip::JniReferences::GetInstance().GetObjectField(element_0, "fabricIndex", "Ljava/lang/Integer;",
- element_0_fabricIndexItem_1);
- listHolder_0->mList[i_0].fabricIndex =
- static_castmList[i_0].fabricIndex)>>(
- chip::JniReferences::GetInstance().IntegerToPrimitive(element_0_fabricIndexItem_1));
jobject element_0_privilegeItem_1;
chip::JniReferences::GetInstance().GetObjectField(element_0, "privilege", "Ljava/lang/Integer;",
element_0_privilegeItem_1);
@@ -192,6 +186,12 @@ JNI_METHOD(void, AccessControlCluster, writeAclAttribute)
}
}
}
+ jobject element_0_fabricIndexItem_1;
+ chip::JniReferences::GetInstance().GetObjectField(element_0, "fabricIndex", "Ljava/lang/Integer;",
+ element_0_fabricIndexItem_1);
+ listHolder_0->mList[i_0].fabricIndex =
+ static_castmList[i_0].fabricIndex)>>(
+ chip::JniReferences::GetInstance().IntegerToPrimitive(element_0_fabricIndexItem_1));
}
cppValue = ListType_0(listHolder_0->mList, valueSize);
}
@@ -264,17 +264,17 @@ JNI_METHOD(void, AccessControlCluster, writeExtensionAttribute)
{
jobject element_0;
chip::JniReferences::GetInstance().GetListItem(value, i_0, element_0);
+ jobject element_0_dataItem_1;
+ chip::JniReferences::GetInstance().GetObjectField(element_0, "data", "[B", element_0_dataItem_1);
+ cleanupByteArrays.push_back(
+ chip::Platform::MakeUnique(env, static_cast(element_0_dataItem_1)));
+ listHolder_0->mList[i_0].data = cleanupByteArrays.back()->byteSpan();
jobject element_0_fabricIndexItem_1;
chip::JniReferences::GetInstance().GetObjectField(element_0, "fabricIndex", "Ljava/lang/Integer;",
element_0_fabricIndexItem_1);
listHolder_0->mList[i_0].fabricIndex =
static_castmList[i_0].fabricIndex)>>(
chip::JniReferences::GetInstance().IntegerToPrimitive(element_0_fabricIndexItem_1));
- jobject element_0_dataItem_1;
- chip::JniReferences::GetInstance().GetObjectField(element_0, "data", "[B", element_0_dataItem_1);
- cleanupByteArrays.push_back(
- chip::Platform::MakeUnique(env, static_cast(element_0_dataItem_1)));
- listHolder_0->mList[i_0].data = cleanupByteArrays.back()->byteSpan();
}
cppValue = ListType_0(listHolder_0->mList, valueSize);
}
@@ -607,12 +607,6 @@ JNI_METHOD(void, BindingCluster, writeBindingAttribute)
{
jobject element_0;
chip::JniReferences::GetInstance().GetListItem(value, i_0, element_0);
- jobject element_0_fabricIndexItem_1;
- chip::JniReferences::GetInstance().GetObjectField(element_0, "fabricIndex", "Ljava/lang/Integer;",
- element_0_fabricIndexItem_1);
- listHolder_0->mList[i_0].fabricIndex =
- static_castmList[i_0].fabricIndex)>>(
- chip::JniReferences::GetInstance().IntegerToPrimitive(element_0_fabricIndexItem_1));
jobject element_0_nodeItem_1;
chip::JniReferences::GetInstance().GetObjectField(element_0, "node", "Ljava/util/Optional;", element_0_nodeItem_1);
if (element_0_nodeItem_1 != nullptr)
@@ -668,6 +662,12 @@ JNI_METHOD(void, BindingCluster, writeBindingAttribute)
chip::JniReferences::GetInstance().LongToPrimitive(optionalValue_2));
}
}
+ jobject element_0_fabricIndexItem_1;
+ chip::JniReferences::GetInstance().GetObjectField(element_0, "fabricIndex", "Ljava/lang/Integer;",
+ element_0_fabricIndexItem_1);
+ listHolder_0->mList[i_0].fabricIndex =
+ static_castmList[i_0].fabricIndex)>>(
+ chip::JniReferences::GetInstance().IntegerToPrimitive(element_0_fabricIndexItem_1));
}
cppValue = ListType_0(listHolder_0->mList, valueSize);
}
@@ -2037,12 +2037,6 @@ JNI_METHOD(void, GroupKeyManagementCluster, writeGroupKeyMapAttribute)
{
jobject element_0;
chip::JniReferences::GetInstance().GetListItem(value, i_0, element_0);
- jobject element_0_fabricIndexItem_1;
- chip::JniReferences::GetInstance().GetObjectField(element_0, "fabricIndex", "Ljava/lang/Integer;",
- element_0_fabricIndexItem_1);
- listHolder_0->mList[i_0].fabricIndex =
- static_castmList[i_0].fabricIndex)>>(
- chip::JniReferences::GetInstance().IntegerToPrimitive(element_0_fabricIndexItem_1));
jobject element_0_groupIdItem_1;
chip::JniReferences::GetInstance().GetObjectField(element_0, "groupId", "Ljava/lang/Integer;",
element_0_groupIdItem_1);
@@ -2054,6 +2048,12 @@ JNI_METHOD(void, GroupKeyManagementCluster, writeGroupKeyMapAttribute)
listHolder_0->mList[i_0].groupKeySetID =
static_castmList[i_0].groupKeySetID)>>(
chip::JniReferences::GetInstance().IntegerToPrimitive(element_0_groupKeySetIDItem_1));
+ jobject element_0_fabricIndexItem_1;
+ chip::JniReferences::GetInstance().GetObjectField(element_0, "fabricIndex", "Ljava/lang/Integer;",
+ element_0_fabricIndexItem_1);
+ listHolder_0->mList[i_0].fabricIndex =
+ static_castmList[i_0].fabricIndex)>>(
+ chip::JniReferences::GetInstance().IntegerToPrimitive(element_0_fabricIndexItem_1));
}
cppValue = ListType_0(listHolder_0->mList, valueSize);
}
@@ -5934,12 +5934,6 @@ JNI_METHOD(void, TestClusterCluster, writeListFabricScopedAttribute)
{
jobject element_0;
chip::JniReferences::GetInstance().GetListItem(value, i_0, element_0);
- jobject element_0_fabricIndexItem_1;
- chip::JniReferences::GetInstance().GetObjectField(element_0, "fabricIndex", "Ljava/lang/Integer;",
- element_0_fabricIndexItem_1);
- listHolder_0->mList[i_0].fabricIndex =
- static_castmList[i_0].fabricIndex)>>(
- chip::JniReferences::GetInstance().IntegerToPrimitive(element_0_fabricIndexItem_1));
jobject element_0_fabricSensitiveInt8uItem_1;
chip::JniReferences::GetInstance().GetObjectField(element_0, "fabricSensitiveInt8u", "Ljava/lang/Integer;",
element_0_fabricSensitiveInt8uItem_1);
@@ -6086,6 +6080,12 @@ JNI_METHOD(void, TestClusterCluster, writeListFabricScopedAttribute)
listHolder_0->mList[i_0].fabricSensitiveInt8uList = ListType_2();
}
}
+ jobject element_0_fabricIndexItem_1;
+ chip::JniReferences::GetInstance().GetObjectField(element_0, "fabricIndex", "Ljava/lang/Integer;",
+ element_0_fabricIndexItem_1);
+ listHolder_0->mList[i_0].fabricIndex =
+ static_castmList[i_0].fabricIndex)>>(
+ chip::JniReferences::GetInstance().IntegerToPrimitive(element_0_fabricIndexItem_1));
}
cppValue = ListType_0(listHolder_0->mList, valueSize);
}
diff --git a/src/controller/java/zap-generated/CHIPReadCallbacks.cpp b/src/controller/java/zap-generated/CHIPReadCallbacks.cpp
index 97656a3dd69e48..b0179879605a71 100644
--- a/src/controller/java/zap-generated/CHIPReadCallbacks.cpp
+++ b/src/controller/java/zap-generated/CHIPReadCallbacks.cpp
@@ -732,12 +732,6 @@ void CHIPAccessControlAclAttributeCallback::CallbackFn(
{
auto & entry_0 = iter_arrayListObj_0.GetValue();
jobject newElement_0;
- jobject newElement_0_fabricIndex;
- std::string newElement_0_fabricIndexClassName = "java/lang/Integer";
- std::string newElement_0_fabricIndexCtorSignature = "(I)V";
- chip::JniReferences::GetInstance().CreateBoxedObject(newElement_0_fabricIndexClassName.c_str(),
- newElement_0_fabricIndexCtorSignature.c_str(),
- entry_0.fabricIndex, newElement_0_fabricIndex);
jobject newElement_0_privilege;
std::string newElement_0_privilegeClassName = "java/lang/Integer";
std::string newElement_0_privilegeCtorSignature = "(I)V";
@@ -846,6 +840,12 @@ void CHIPAccessControlAclAttributeCallback::CallbackFn(
chip::JniReferences::GetInstance().AddToList(newElement_0_targets, newElement_NaN);
}
}
+ jobject newElement_0_fabricIndex;
+ std::string newElement_0_fabricIndexClassName = "java/lang/Integer";
+ std::string newElement_0_fabricIndexCtorSignature = "(I)V";
+ chip::JniReferences::GetInstance().CreateBoxedObject(newElement_0_fabricIndexClassName.c_str(),
+ newElement_0_fabricIndexCtorSignature.c_str(),
+ entry_0.fabricIndex, newElement_0_fabricIndex);
jclass accessControlEntryStructClass;
err = chip::JniReferences::GetInstance().GetClassRef(
@@ -857,15 +857,15 @@ void CHIPAccessControlAclAttributeCallback::CallbackFn(
}
jmethodID accessControlEntryStructCtor = env->GetMethodID(
accessControlEntryStructClass, "",
- "(Ljava/lang/Integer;Ljava/lang/Integer;Ljava/lang/Integer;Ljava/util/ArrayList;Ljava/util/ArrayList;)V");
+ "(Ljava/lang/Integer;Ljava/lang/Integer;Ljava/util/ArrayList;Ljava/util/ArrayList;Ljava/lang/Integer;)V");
if (accessControlEntryStructCtor == nullptr)
{
ChipLogError(Zcl, "Could not find ChipStructs$AccessControlClusterAccessControlEntry constructor");
return;
}
- newElement_0 = env->NewObject(accessControlEntryStructClass, accessControlEntryStructCtor, newElement_0_fabricIndex,
- newElement_0_privilege, newElement_0_authMode, newElement_0_subjects, newElement_0_targets);
+ newElement_0 = env->NewObject(accessControlEntryStructClass, accessControlEntryStructCtor, newElement_0_privilege,
+ newElement_0_authMode, newElement_0_subjects, newElement_0_targets, newElement_0_fabricIndex);
chip::JniReferences::GetInstance().AddToList(arrayListObj, newElement_0);
}
@@ -932,17 +932,17 @@ void CHIPAccessControlExtensionAttributeCallback::CallbackFn(
{
auto & entry_0 = iter_arrayListObj_0.GetValue();
jobject newElement_0;
+ jobject newElement_0_data;
+ jbyteArray newElement_0_dataByteArray = env->NewByteArray(static_cast(entry_0.data.size()));
+ env->SetByteArrayRegion(newElement_0_dataByteArray, 0, static_cast(entry_0.data.size()),
+ reinterpret_cast(entry_0.data.data()));
+ newElement_0_data = newElement_0_dataByteArray;
jobject newElement_0_fabricIndex;
std::string newElement_0_fabricIndexClassName = "java/lang/Integer";
std::string newElement_0_fabricIndexCtorSignature = "(I)V";
chip::JniReferences::GetInstance().CreateBoxedObject(newElement_0_fabricIndexClassName.c_str(),
newElement_0_fabricIndexCtorSignature.c_str(),
entry_0.fabricIndex, newElement_0_fabricIndex);
- jobject newElement_0_data;
- jbyteArray newElement_0_dataByteArray = env->NewByteArray(static_cast(entry_0.data.size()));
- env->SetByteArrayRegion(newElement_0_dataByteArray, 0, static_cast(entry_0.data.size()),
- reinterpret_cast(entry_0.data.data()));
- newElement_0_data = newElement_0_dataByteArray;
jclass extensionEntryStructClass;
err = chip::JniReferences::GetInstance().GetClassRef(
@@ -952,7 +952,7 @@ void CHIPAccessControlExtensionAttributeCallback::CallbackFn(
ChipLogError(Zcl, "Could not find class ChipStructs$AccessControlClusterExtensionEntry");
return;
}
- jmethodID extensionEntryStructCtor = env->GetMethodID(extensionEntryStructClass, "", "(Ljava/lang/Integer;[B)V");
+ jmethodID extensionEntryStructCtor = env->GetMethodID(extensionEntryStructClass, "", "([BLjava/lang/Integer;)V");
if (extensionEntryStructCtor == nullptr)
{
ChipLogError(Zcl, "Could not find ChipStructs$AccessControlClusterExtensionEntry constructor");
@@ -960,7 +960,7 @@ void CHIPAccessControlExtensionAttributeCallback::CallbackFn(
}
newElement_0 =
- env->NewObject(extensionEntryStructClass, extensionEntryStructCtor, newElement_0_fabricIndex, newElement_0_data);
+ env->NewObject(extensionEntryStructClass, extensionEntryStructCtor, newElement_0_data, newElement_0_fabricIndex);
chip::JniReferences::GetInstance().AddToList(arrayListObj, newElement_0);
}
@@ -3302,12 +3302,6 @@ void CHIPBindingBindingAttributeCallback::CallbackFn(
{
auto & entry_0 = iter_arrayListObj_0.GetValue();
jobject newElement_0;
- jobject newElement_0_fabricIndex;
- std::string newElement_0_fabricIndexClassName = "java/lang/Integer";
- std::string newElement_0_fabricIndexCtorSignature = "(I)V";
- chip::JniReferences::GetInstance().CreateBoxedObject(newElement_0_fabricIndexClassName.c_str(),
- newElement_0_fabricIndexCtorSignature.c_str(),
- entry_0.fabricIndex, newElement_0_fabricIndex);
jobject newElement_0_node;
if (!entry_0.node.HasValue())
{
@@ -3368,6 +3362,12 @@ void CHIPBindingBindingAttributeCallback::CallbackFn(
entry_0.cluster.Value(), newElement_0_clusterInsideOptional);
chip::JniReferences::GetInstance().CreateOptional(newElement_0_clusterInsideOptional, newElement_0_cluster);
}
+ jobject newElement_0_fabricIndex;
+ std::string newElement_0_fabricIndexClassName = "java/lang/Integer";
+ std::string newElement_0_fabricIndexCtorSignature = "(I)V";
+ chip::JniReferences::GetInstance().CreateBoxedObject(newElement_0_fabricIndexClassName.c_str(),
+ newElement_0_fabricIndexCtorSignature.c_str(),
+ entry_0.fabricIndex, newElement_0_fabricIndex);
jclass targetStructStructClass;
err = chip::JniReferences::GetInstance().GetClassRef(env, "chip/devicecontroller/ChipStructs$BindingClusterTargetStruct",
@@ -3379,15 +3379,15 @@ void CHIPBindingBindingAttributeCallback::CallbackFn(
}
jmethodID targetStructStructCtor = env->GetMethodID(
targetStructStructClass, "",
- "(Ljava/lang/Integer;Ljava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;)V");
+ "(Ljava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;Ljava/lang/Integer;)V");
if (targetStructStructCtor == nullptr)
{
ChipLogError(Zcl, "Could not find ChipStructs$BindingClusterTargetStruct constructor");
return;
}
- newElement_0 = env->NewObject(targetStructStructClass, targetStructStructCtor, newElement_0_fabricIndex, newElement_0_node,
- newElement_0_group, newElement_0_endpoint, newElement_0_cluster);
+ newElement_0 = env->NewObject(targetStructStructClass, targetStructStructCtor, newElement_0_node, newElement_0_group,
+ newElement_0_endpoint, newElement_0_cluster, newElement_0_fabricIndex);
chip::JniReferences::GetInstance().AddToList(arrayListObj, newElement_0);
}
@@ -8880,12 +8880,6 @@ void CHIPGroupKeyManagementGroupKeyMapAttributeCallback::CallbackFn(
{
auto & entry_0 = iter_arrayListObj_0.GetValue();
jobject newElement_0;
- jobject newElement_0_fabricIndex;
- std::string newElement_0_fabricIndexClassName = "java/lang/Integer";
- std::string newElement_0_fabricIndexCtorSignature = "(I)V";
- chip::JniReferences::GetInstance().CreateBoxedObject(newElement_0_fabricIndexClassName.c_str(),
- newElement_0_fabricIndexCtorSignature.c_str(),
- entry_0.fabricIndex, newElement_0_fabricIndex);
jobject newElement_0_groupId;
std::string newElement_0_groupIdClassName = "java/lang/Integer";
std::string newElement_0_groupIdCtorSignature = "(I)V";
@@ -8898,6 +8892,12 @@ void CHIPGroupKeyManagementGroupKeyMapAttributeCallback::CallbackFn(
chip::JniReferences::GetInstance().CreateBoxedObject(newElement_0_groupKeySetIDClassName.c_str(),
newElement_0_groupKeySetIDCtorSignature.c_str(),
entry_0.groupKeySetID, newElement_0_groupKeySetID);
+ jobject newElement_0_fabricIndex;
+ std::string newElement_0_fabricIndexClassName = "java/lang/Integer";
+ std::string newElement_0_fabricIndexCtorSignature = "(I)V";
+ chip::JniReferences::GetInstance().CreateBoxedObject(newElement_0_fabricIndexClassName.c_str(),
+ newElement_0_fabricIndexCtorSignature.c_str(),
+ entry_0.fabricIndex, newElement_0_fabricIndex);
jclass groupKeyMapStructStructClass;
err = chip::JniReferences::GetInstance().GetClassRef(
@@ -8915,8 +8915,8 @@ void CHIPGroupKeyManagementGroupKeyMapAttributeCallback::CallbackFn(
return;
}
- newElement_0 = env->NewObject(groupKeyMapStructStructClass, groupKeyMapStructStructCtor, newElement_0_fabricIndex,
- newElement_0_groupId, newElement_0_groupKeySetID);
+ newElement_0 = env->NewObject(groupKeyMapStructStructClass, groupKeyMapStructStructCtor, newElement_0_groupId,
+ newElement_0_groupKeySetID, newElement_0_fabricIndex);
chip::JniReferences::GetInstance().AddToList(arrayListObj, newElement_0);
}
@@ -8986,12 +8986,6 @@ void CHIPGroupKeyManagementGroupTableAttributeCallback::CallbackFn(
{
auto & entry_0 = iter_arrayListObj_0.GetValue();
jobject newElement_0;
- jobject newElement_0_fabricIndex;
- std::string newElement_0_fabricIndexClassName = "java/lang/Integer";
- std::string newElement_0_fabricIndexCtorSignature = "(I)V";
- chip::JniReferences::GetInstance().CreateBoxedObject(newElement_0_fabricIndexClassName.c_str(),
- newElement_0_fabricIndexCtorSignature.c_str(),
- entry_0.fabricIndex, newElement_0_fabricIndex);
jobject newElement_0_groupId;
std::string newElement_0_groupIdClassName = "java/lang/Integer";
std::string newElement_0_groupIdCtorSignature = "(I)V";
@@ -9024,6 +9018,12 @@ void CHIPGroupKeyManagementGroupTableAttributeCallback::CallbackFn(
env->NewStringUTF(std::string(entry_0.groupName.Value().data(), entry_0.groupName.Value().size()).c_str());
chip::JniReferences::GetInstance().CreateOptional(newElement_0_groupNameInsideOptional, newElement_0_groupName);
}
+ jobject newElement_0_fabricIndex;
+ std::string newElement_0_fabricIndexClassName = "java/lang/Integer";
+ std::string newElement_0_fabricIndexCtorSignature = "(I)V";
+ chip::JniReferences::GetInstance().CreateBoxedObject(newElement_0_fabricIndexClassName.c_str(),
+ newElement_0_fabricIndexCtorSignature.c_str(),
+ entry_0.fabricIndex, newElement_0_fabricIndex);
jclass groupInfoMapStructStructClass;
err = chip::JniReferences::GetInstance().GetClassRef(
@@ -9035,15 +9035,15 @@ void CHIPGroupKeyManagementGroupTableAttributeCallback::CallbackFn(
}
jmethodID groupInfoMapStructStructCtor =
env->GetMethodID(groupInfoMapStructStructClass, "",
- "(Ljava/lang/Integer;Ljava/lang/Integer;Ljava/util/ArrayList;Ljava/util/Optional;)V");
+ "(Ljava/lang/Integer;Ljava/util/ArrayList;Ljava/util/Optional;Ljava/lang/Integer;)V");
if (groupInfoMapStructStructCtor == nullptr)
{
ChipLogError(Zcl, "Could not find ChipStructs$GroupKeyManagementClusterGroupInfoMapStruct constructor");
return;
}
- newElement_0 = env->NewObject(groupInfoMapStructStructClass, groupInfoMapStructStructCtor, newElement_0_fabricIndex,
- newElement_0_groupId, newElement_0_endpoints, newElement_0_groupName);
+ newElement_0 = env->NewObject(groupInfoMapStructStructClass, groupInfoMapStructStructCtor, newElement_0_groupId,
+ newElement_0_endpoints, newElement_0_groupName, newElement_0_fabricIndex);
chip::JniReferences::GetInstance().AddToList(arrayListObj, newElement_0);
}
@@ -13908,12 +13908,6 @@ void CHIPOperationalCredentialsNOCsAttributeCallback::CallbackFn(
{
auto & entry_0 = iter_arrayListObj_0.GetValue();
jobject newElement_0;
- jobject newElement_0_fabricIndex;
- std::string newElement_0_fabricIndexClassName = "java/lang/Integer";
- std::string newElement_0_fabricIndexCtorSignature = "(I)V";
- chip::JniReferences::GetInstance().CreateBoxedObject(newElement_0_fabricIndexClassName.c_str(),
- newElement_0_fabricIndexCtorSignature.c_str(),
- entry_0.fabricIndex, newElement_0_fabricIndex);
jobject newElement_0_noc;
jbyteArray newElement_0_nocByteArray = env->NewByteArray(static_cast(entry_0.noc.size()));
env->SetByteArrayRegion(newElement_0_nocByteArray, 0, static_cast(entry_0.noc.size()),
@@ -13931,6 +13925,12 @@ void CHIPOperationalCredentialsNOCsAttributeCallback::CallbackFn(
reinterpret_cast(entry_0.icac.Value().data()));
newElement_0_icac = newElement_0_icacByteArray;
}
+ jobject newElement_0_fabricIndex;
+ std::string newElement_0_fabricIndexClassName = "java/lang/Integer";
+ std::string newElement_0_fabricIndexCtorSignature = "(I)V";
+ chip::JniReferences::GetInstance().CreateBoxedObject(newElement_0_fabricIndexClassName.c_str(),
+ newElement_0_fabricIndexCtorSignature.c_str(),
+ entry_0.fabricIndex, newElement_0_fabricIndex);
jclass NOCStructStructClass;
err = chip::JniReferences::GetInstance().GetClassRef(
@@ -13940,15 +13940,15 @@ void CHIPOperationalCredentialsNOCsAttributeCallback::CallbackFn(
ChipLogError(Zcl, "Could not find class ChipStructs$OperationalCredentialsClusterNOCStruct");
return;
}
- jmethodID NOCStructStructCtor = env->GetMethodID(NOCStructStructClass, "", "(Ljava/lang/Integer;[B[B)V");
+ jmethodID NOCStructStructCtor = env->GetMethodID(NOCStructStructClass, "", "([B[BLjava/lang/Integer;)V");
if (NOCStructStructCtor == nullptr)
{
ChipLogError(Zcl, "Could not find ChipStructs$OperationalCredentialsClusterNOCStruct constructor");
return;
}
- newElement_0 = env->NewObject(NOCStructStructClass, NOCStructStructCtor, newElement_0_fabricIndex, newElement_0_noc,
- newElement_0_icac);
+ newElement_0 = env->NewObject(NOCStructStructClass, NOCStructStructCtor, newElement_0_noc, newElement_0_icac,
+ newElement_0_fabricIndex);
chip::JniReferences::GetInstance().AddToList(arrayListObj, newElement_0);
}
@@ -14018,12 +14018,6 @@ void CHIPOperationalCredentialsFabricsAttributeCallback::CallbackFn(
{
auto & entry_0 = iter_arrayListObj_0.GetValue();
jobject newElement_0;
- jobject newElement_0_fabricIndex;
- std::string newElement_0_fabricIndexClassName = "java/lang/Integer";
- std::string newElement_0_fabricIndexCtorSignature = "(I)V";
- chip::JniReferences::GetInstance().CreateBoxedObject(newElement_0_fabricIndexClassName.c_str(),
- newElement_0_fabricIndexCtorSignature.c_str(),
- entry_0.fabricIndex, newElement_0_fabricIndex);
jobject newElement_0_rootPublicKey;
jbyteArray newElement_0_rootPublicKeyByteArray = env->NewByteArray(static_cast(entry_0.rootPublicKey.size()));
env->SetByteArrayRegion(newElement_0_rootPublicKeyByteArray, 0, static_cast(entry_0.rootPublicKey.size()),
@@ -14048,6 +14042,12 @@ void CHIPOperationalCredentialsFabricsAttributeCallback::CallbackFn(
newElement_0_nodeIdClassName.c_str(), newElement_0_nodeIdCtorSignature.c_str(), entry_0.nodeId, newElement_0_nodeId);
jobject newElement_0_label;
newElement_0_label = env->NewStringUTF(std::string(entry_0.label.data(), entry_0.label.size()).c_str());
+ jobject newElement_0_fabricIndex;
+ std::string newElement_0_fabricIndexClassName = "java/lang/Integer";
+ std::string newElement_0_fabricIndexCtorSignature = "(I)V";
+ chip::JniReferences::GetInstance().CreateBoxedObject(newElement_0_fabricIndexClassName.c_str(),
+ newElement_0_fabricIndexCtorSignature.c_str(),
+ entry_0.fabricIndex, newElement_0_fabricIndex);
jclass fabricDescriptorStructClass;
err = chip::JniReferences::GetInstance().GetClassRef(
@@ -14059,16 +14059,16 @@ void CHIPOperationalCredentialsFabricsAttributeCallback::CallbackFn(
}
jmethodID fabricDescriptorStructCtor =
env->GetMethodID(fabricDescriptorStructClass, "",
- "(Ljava/lang/Integer;[BLjava/lang/Integer;Ljava/lang/Long;Ljava/lang/Long;Ljava/lang/String;)V");
+ "([BLjava/lang/Integer;Ljava/lang/Long;Ljava/lang/Long;Ljava/lang/String;Ljava/lang/Integer;)V");
if (fabricDescriptorStructCtor == nullptr)
{
ChipLogError(Zcl, "Could not find ChipStructs$OperationalCredentialsClusterFabricDescriptor constructor");
return;
}
- newElement_0 = env->NewObject(fabricDescriptorStructClass, fabricDescriptorStructCtor, newElement_0_fabricIndex,
- newElement_0_rootPublicKey, newElement_0_vendorId, newElement_0_fabricId, newElement_0_nodeId,
- newElement_0_label);
+ newElement_0 = env->NewObject(fabricDescriptorStructClass, fabricDescriptorStructCtor, newElement_0_rootPublicKey,
+ newElement_0_vendorId, newElement_0_fabricId, newElement_0_nodeId, newElement_0_label,
+ newElement_0_fabricIndex);
chip::JniReferences::GetInstance().AddToList(arrayListObj, newElement_0);
}
@@ -18128,12 +18128,6 @@ void CHIPTestClusterListFabricScopedAttributeCallback::CallbackFn(
{
auto & entry_0 = iter_arrayListObj_0.GetValue();
jobject newElement_0;
- jobject newElement_0_fabricIndex;
- std::string newElement_0_fabricIndexClassName = "java/lang/Integer";
- std::string newElement_0_fabricIndexCtorSignature = "(I)V";
- chip::JniReferences::GetInstance().CreateBoxedObject(newElement_0_fabricIndexClassName.c_str(),
- newElement_0_fabricIndexCtorSignature.c_str(),
- entry_0.fabricIndex, newElement_0_fabricIndex);
jobject newElement_0_fabricSensitiveInt8u;
std::string newElement_0_fabricSensitiveInt8uClassName = "java/lang/Integer";
std::string newElement_0_fabricSensitiveInt8uCtorSignature = "(I)V";
@@ -18283,6 +18277,12 @@ void CHIPTestClusterListFabricScopedAttributeCallback::CallbackFn(
newElement_NaNClassName.c_str(), newElement_NaNCtorSignature.c_str(), entry_NaN, newElement_NaN);
chip::JniReferences::GetInstance().AddToList(newElement_0_fabricSensitiveInt8uList, newElement_NaN);
}
+ jobject newElement_0_fabricIndex;
+ std::string newElement_0_fabricIndexClassName = "java/lang/Integer";
+ std::string newElement_0_fabricIndexCtorSignature = "(I)V";
+ chip::JniReferences::GetInstance().CreateBoxedObject(newElement_0_fabricIndexClassName.c_str(),
+ newElement_0_fabricIndexCtorSignature.c_str(),
+ entry_0.fabricIndex, newElement_0_fabricIndex);
jclass testFabricScopedStructClass;
err = chip::JniReferences::GetInstance().GetClassRef(
@@ -18294,19 +18294,19 @@ void CHIPTestClusterListFabricScopedAttributeCallback::CallbackFn(
}
jmethodID testFabricScopedStructCtor = env->GetMethodID(
testFabricScopedStructClass, "",
- "(Ljava/lang/Integer;Ljava/lang/Integer;Ljava/util/Optional;Ljava/lang/Integer;Ljava/util/Optional;Ljava/lang/"
- "String;Lchip/devicecontroller/ChipStructs$TestClusterClusterSimpleStruct;Ljava/util/ArrayList;)V");
+ "(Ljava/lang/Integer;Ljava/util/Optional;Ljava/lang/Integer;Ljava/util/Optional;Ljava/lang/String;Lchip/"
+ "devicecontroller/ChipStructs$TestClusterClusterSimpleStruct;Ljava/util/ArrayList;Ljava/lang/Integer;)V");
if (testFabricScopedStructCtor == nullptr)
{
ChipLogError(Zcl, "Could not find ChipStructs$TestClusterClusterTestFabricScoped constructor");
return;
}
- newElement_0 = env->NewObject(testFabricScopedStructClass, testFabricScopedStructCtor, newElement_0_fabricIndex,
- newElement_0_fabricSensitiveInt8u, newElement_0_optionalFabricSensitiveInt8u,
- newElement_0_nullableFabricSensitiveInt8u, newElement_0_nullableOptionalFabricSensitiveInt8u,
- newElement_0_fabricSensitiveCharString, newElement_0_fabricSensitiveStruct,
- newElement_0_fabricSensitiveInt8uList);
+ newElement_0 =
+ env->NewObject(testFabricScopedStructClass, testFabricScopedStructCtor, newElement_0_fabricSensitiveInt8u,
+ newElement_0_optionalFabricSensitiveInt8u, newElement_0_nullableFabricSensitiveInt8u,
+ newElement_0_nullableOptionalFabricSensitiveInt8u, newElement_0_fabricSensitiveCharString,
+ newElement_0_fabricSensitiveStruct, newElement_0_fabricSensitiveInt8uList, newElement_0_fabricIndex);
chip::JniReferences::GetInstance().AddToList(arrayListObj, newElement_0);
}
diff --git a/src/controller/java/zap-generated/chip/devicecontroller/ChipStructs.java b/src/controller/java/zap-generated/chip/devicecontroller/ChipStructs.java
index 259e808736ee83..67be474ef5dc1d 100644
--- a/src/controller/java/zap-generated/chip/devicecontroller/ChipStructs.java
+++ b/src/controller/java/zap-generated/chip/devicecontroller/ChipStructs.java
@@ -55,32 +55,29 @@ public String toString() {
}
public static class AccessControlClusterAccessControlEntry {
- public Integer fabricIndex;
public Integer privilege;
public Integer authMode;
public @Nullable ArrayList