Skip to content

Commit

Permalink
Corresponding ZAP Autogen code changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
pidarped committed Oct 17, 2024
1 parent 4a3964b commit 3327a16
Show file tree
Hide file tree
Showing 25 changed files with 82 additions and 82 deletions.
2 changes: 1 addition & 1 deletion src/controller/data_model/controller-clusters.matter
Original file line number Diff line number Diff line change
Expand Up @@ -9703,7 +9703,7 @@ cluster CameraAvStreamManagement = 1361 {
readonly attribute optional boolean nightVisionCapable = 3;
readonly attribute optional VideoResolutionStruct minViewport = 4;
readonly attribute optional RateDistortionTradeOffPointsStruct rateDistortionTradeOffPoints[] = 5;
readonly attribute optional int32u maxPreRollBufferSize = 6;
readonly attribute optional int32u maxContentBufferSize = 6;
readonly attribute optional AudioCapabilitiesStruct microphoneCapabilities = 7;
readonly attribute optional AudioCapabilitiesStruct speakerCapabilities = 8;
readonly attribute optional TwoWayTalkSupportTypeEnum twoWayTalkSupport = 9;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59970,7 +59970,7 @@ public static class CameraAvStreamManagementCluster extends BaseChipCluster {
private static final long NIGHT_VISION_CAPABLE_ATTRIBUTE_ID = 3L;
private static final long MIN_VIEWPORT_ATTRIBUTE_ID = 4L;
private static final long RATE_DISTORTION_TRADE_OFF_POINTS_ATTRIBUTE_ID = 5L;
private static final long MAX_PRE_ROLL_BUFFER_SIZE_ATTRIBUTE_ID = 6L;
private static final long MAX_CONTENT_BUFFER_SIZE_ATTRIBUTE_ID = 6L;
private static final long MICROPHONE_CAPABILITIES_ATTRIBUTE_ID = 7L;
private static final long SPEAKER_CAPABILITIES_ATTRIBUTE_ID = 8L;
private static final long TWO_WAY_TALK_SUPPORT_ATTRIBUTE_ID = 9L;
Expand Down Expand Up @@ -60658,30 +60658,30 @@ public void onSuccess(byte[] tlv) {
}, RATE_DISTORTION_TRADE_OFF_POINTS_ATTRIBUTE_ID, minInterval, maxInterval);
}

public void readMaxPreRollBufferSizeAttribute(
public void readMaxContentBufferSizeAttribute(
LongAttributeCallback callback) {
ChipAttributePath path = ChipAttributePath.newInstance(endpointId, clusterId, MAX_PRE_ROLL_BUFFER_SIZE_ATTRIBUTE_ID);
ChipAttributePath path = ChipAttributePath.newInstance(endpointId, clusterId, MAX_CONTENT_BUFFER_SIZE_ATTRIBUTE_ID);

readAttribute(new ReportCallbackImpl(callback, path) {
@Override
public void onSuccess(byte[] tlv) {
Long value = ChipTLVValueDecoder.decodeAttributeValue(path, tlv);
callback.onSuccess(value);
}
}, MAX_PRE_ROLL_BUFFER_SIZE_ATTRIBUTE_ID, true);
}, MAX_CONTENT_BUFFER_SIZE_ATTRIBUTE_ID, true);
}

public void subscribeMaxPreRollBufferSizeAttribute(
public void subscribeMaxContentBufferSizeAttribute(
LongAttributeCallback callback, int minInterval, int maxInterval) {
ChipAttributePath path = ChipAttributePath.newInstance(endpointId, clusterId, MAX_PRE_ROLL_BUFFER_SIZE_ATTRIBUTE_ID);
ChipAttributePath path = ChipAttributePath.newInstance(endpointId, clusterId, MAX_CONTENT_BUFFER_SIZE_ATTRIBUTE_ID);

subscribeAttribute(new ReportCallbackImpl(callback, path) {
@Override
public void onSuccess(byte[] tlv) {
Long value = ChipTLVValueDecoder.decodeAttributeValue(path, tlv);
callback.onSuccess(value);
}
}, MAX_PRE_ROLL_BUFFER_SIZE_ATTRIBUTE_ID, minInterval, maxInterval);
}, MAX_CONTENT_BUFFER_SIZE_ATTRIBUTE_ID, minInterval, maxInterval);
}

public void readMicrophoneCapabilitiesAttribute(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17085,7 +17085,7 @@ public enum Attribute {
NightVisionCapable(3L),
MinViewport(4L),
RateDistortionTradeOffPoints(5L),
MaxPreRollBufferSize(6L),
MaxContentBufferSize(6L),
MicrophoneCapabilities(7L),
SpeakerCapabilities(8L),
TwoWayTalkSupport(9L),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18406,17 +18406,17 @@ private static Map<String, InteractionInfo> readCameraAvStreamManagementInteract
readCameraAvStreamManagementRateDistortionTradeOffPointsCommandParams
);
result.put("readRateDistortionTradeOffPointsAttribute", readCameraAvStreamManagementRateDistortionTradeOffPointsAttributeInteractionInfo);
Map<String, CommandParameterInfo> readCameraAvStreamManagementMaxPreRollBufferSizeCommandParams = new LinkedHashMap<String, CommandParameterInfo>();
InteractionInfo readCameraAvStreamManagementMaxPreRollBufferSizeAttributeInteractionInfo = new InteractionInfo(
Map<String, CommandParameterInfo> readCameraAvStreamManagementMaxContentBufferSizeCommandParams = new LinkedHashMap<String, CommandParameterInfo>();
InteractionInfo readCameraAvStreamManagementMaxContentBufferSizeAttributeInteractionInfo = new InteractionInfo(
(cluster, callback, commandArguments) -> {
((ChipClusters.CameraAvStreamManagementCluster) cluster).readMaxPreRollBufferSizeAttribute(
((ChipClusters.CameraAvStreamManagementCluster) cluster).readMaxContentBufferSizeAttribute(
(ChipClusters.LongAttributeCallback) callback
);
},
() -> new ClusterInfoMapping.DelegatedLongAttributeCallback(),
readCameraAvStreamManagementMaxPreRollBufferSizeCommandParams
readCameraAvStreamManagementMaxContentBufferSizeCommandParams
);
result.put("readMaxPreRollBufferSizeAttribute", readCameraAvStreamManagementMaxPreRollBufferSizeAttributeInteractionInfo);
result.put("readMaxContentBufferSizeAttribute", readCameraAvStreamManagementMaxContentBufferSizeAttributeInteractionInfo);
Map<String, CommandParameterInfo> readCameraAvStreamManagementTwoWayTalkSupportCommandParams = new LinkedHashMap<String, CommandParameterInfo>();
InteractionInfo readCameraAvStreamManagementTwoWayTalkSupportAttributeInteractionInfo = new InteractionInfo(
(cluster, callback, commandArguments) -> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1327,7 +1327,7 @@ class CameraAvStreamManagementCluster(
}
}

suspend fun readMaxPreRollBufferSizeAttribute(): UInt? {
suspend fun readMaxContentBufferSizeAttribute(): UInt? {
val ATTRIBUTE_ID: UInt = 6u

val attributePath =
Expand All @@ -1349,7 +1349,7 @@ class CameraAvStreamManagementCluster(
it.path.attributeId == ATTRIBUTE_ID
}

requireNotNull(attributeData) { "Maxprerollbuffersize attribute not found in response" }
requireNotNull(attributeData) { "Maxcontentbuffersize attribute not found in response" }

// Decode the TLV data into the appropriate type
val tlvReader = TlvReader(attributeData.data)
Expand All @@ -1363,7 +1363,7 @@ class CameraAvStreamManagementCluster(
return decodedValue
}

suspend fun subscribeMaxPreRollBufferSizeAttribute(
suspend fun subscribeMaxContentBufferSizeAttribute(
minInterval: Int,
maxInterval: Int,
): Flow<UIntSubscriptionState> {
Expand Down Expand Up @@ -1399,7 +1399,7 @@ class CameraAvStreamManagementCluster(
.firstOrNull { it.path.attributeId == ATTRIBUTE_ID }

requireNotNull(attributeData) {
"Maxprerollbuffersize attribute not found in Node State update"
"Maxcontentbuffersize attribute not found in Node State update"
}

// Decode the TLV data into the appropriate type
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/controller/python/chip/clusters/CHIPClusters.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions src/controller/python/chip/clusters/Objects.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions src/darwin/Framework/CHIP/zap-generated/MTRBaseClusters.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions src/darwin/Framework/CHIP/zap-generated/MTRBaseClusters.mm

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/darwin/Framework/CHIP/zap-generated/MTRClusterNames.mm

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/darwin/Framework/CHIP/zap-generated/MTRClusters.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/darwin/Framework/CHIP/zap-generated/MTRClusters.mm

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 3327a16

Please sign in to comment.