diff --git a/examples/tv-app/android/java/MediaInputManager.cpp b/examples/tv-app/android/java/MediaInputManager.cpp index 39819d32a76f38..b28609d0efc3fa 100644 --- a/examples/tv-app/android/java/MediaInputManager.cpp +++ b/examples/tv-app/android/java/MediaInputManager.cpp @@ -72,7 +72,7 @@ CHIP_ERROR MediaInputManager::HandleGetInputList(chip::app::AttributeValueEncode jint size = env->GetArrayLength(inputArray); for (int i = 0; i < size; i++) { - app::Clusters::MediaInput::Structs::InputInfo::Type mediaInput; + app::Clusters::MediaInput::Structs::InputInfoStruct::Type mediaInput; jobject inputObj = env->GetObjectArrayElement(inputArray, i); jclass inputClass = env->GetObjectClass(inputObj); diff --git a/examples/tv-app/linux/include/media-input/MediaInputManager.h b/examples/tv-app/linux/include/media-input/MediaInputManager.h index 4fb1d5a690ee7d..1b8a78503b1d27 100644 --- a/examples/tv-app/linux/include/media-input/MediaInputManager.h +++ b/examples/tv-app/linux/include/media-input/MediaInputManager.h @@ -22,7 +22,7 @@ #include #include -using InputInfoType = chip::app::Clusters::MediaInput::Structs::InputInfo::Type; +using InputInfoType = chip::app::Clusters::MediaInput::Structs::InputInfoStruct::Type; class MediaInputManager : public chip::app::Clusters::MediaInput::Delegate { @@ -39,7 +39,7 @@ class MediaInputManager : public chip::app::Clusters::MediaInput::Delegate protected: uint8_t mCurrentInput; - std::vector mInputs; + std::vector mInputs; // Magic numbers are here on purpose, please allocate memory char mCharDataBuffer[10][32]; }; diff --git a/src/app/clusters/media-input-server/media-input-delegate.h b/src/app/clusters/media-input-server/media-input-delegate.h index 862298b9352777..609c66bef69ed9 100644 --- a/src/app/clusters/media-input-server/media-input-delegate.h +++ b/src/app/clusters/media-input-server/media-input-delegate.h @@ -34,7 +34,7 @@ namespace MediaInput { class Delegate { public: - // no easy way to handle the return memory of app::Clusters::MediaInput::Structs::InputInfo::Type list, so encoder is used + // no easy way to handle the return memory of app::Clusters::MediaInput::Structs::InputInfoStruct::Type list, so encoder is used virtual CHIP_ERROR HandleGetInputList(app::AttributeValueEncoder & aEncoder) = 0; virtual uint8_t HandleGetCurrentInput() = 0; virtual bool HandleSelectInput(const uint8_t index) = 0; diff --git a/src/app/tests/suites/TV_MediaInputCluster.yaml b/src/app/tests/suites/TV_MediaInputCluster.yaml index e9ba89a3485b12..153b4aaf99b40c 100644 --- a/src/app/tests/suites/TV_MediaInputCluster.yaml +++ b/src/app/tests/suites/TV_MediaInputCluster.yaml @@ -35,16 +35,16 @@ tests: value: [ { - index: 1, - inputType: 4, - name: "HDMI", - description: "High-Definition Multimedia Interface", + Index: 1, + InputType: 4, + Name: "HDMI", + Description: "High-Definition Multimedia Interface", }, { - index: 2, - inputType: 4, - name: "HDMI", - description: "High-Definition Multimedia Interface", + Index: 2, + InputType: 4, + Name: "HDMI", + Description: "High-Definition Multimedia Interface", }, ] @@ -83,15 +83,15 @@ tests: value: [ { - index: 1, - inputType: 4, - name: "HDMI Test", - description: "High-Definition Multimedia Interface", + Index: 1, + InputType: 4, + Name: "HDMI Test", + Description: "High-Definition Multimedia Interface", }, { - index: 2, - inputType: 4, - name: "HDMI", - description: "High-Definition Multimedia Interface", + Index: 2, + InputType: 4, + Name: "HDMI", + Description: "High-Definition Multimedia Interface", }, ] diff --git a/src/app/zap-templates/zcl/data-model/chip/media-input-cluster.xml b/src/app/zap-templates/zcl/data-model/chip/media-input-cluster.xml index 2f876925426ac4..f69ea234fe7d64 100644 --- a/src/app/zap-templates/zcl/data-model/chip/media-input-cluster.xml +++ b/src/app/zap-templates/zcl/data-model/chip/media-input-cluster.xml @@ -25,12 +25,12 @@ limitations under the License. true This cluster provides an interface for controlling the Input Selector on a media device such as a TV. - InputList - CurrentInput + InputList + CurrentInput Upon receipt, this SHALL change the input on the media device to the input at a specific index in the Input List. - + @@ -43,18 +43,18 @@ limitations under the License. Upon receipt, this SHALL rename the input at a specific index in the Input List. Updates to the input name SHALL appear in the TV settings menus. - - + + - + - - - - + + + + @@ -63,13 +63,13 @@ limitations under the License. - + - - + + diff --git a/src/darwin/Framework/CHIP/templates/availability.yaml b/src/darwin/Framework/CHIP/templates/availability.yaml index 325c4cb33f8730..e0400f6e72007b 100644 --- a/src/darwin/Framework/CHIP/templates/availability.yaml +++ b/src/darwin/Framework/CHIP/templates/availability.yaml @@ -5037,6 +5037,8 @@ - FabricDescriptorStruct DoorLock: - CredentialStruct + MediaInput: + - InputInfoStruct struct fields: UnitTesting: SimpleStruct: @@ -5152,6 +5154,12 @@ CredentialStruct: - credentialType - credentialIndex + MediaInput: + InputInfoStruct: + - index + - inputType + - name + - descriptionString events: OTASoftwareUpdateRequestor: - StateTransition @@ -5466,6 +5474,11 @@ - ExpiringUser - ScheduleRestrictedUser - RemoteOnlyUser + MediaInput: + InputTypeEnum: + - HDMI + - SCART + - USB bitmaps: UnitTesting: - Bitmap8MaskMap @@ -5613,6 +5626,8 @@ - FabricDescriptor DoorLock: - DlCredential + MediaInput: + - InputInfo struct fields: Descriptor: DeviceTypeStruct: @@ -5689,6 +5704,11 @@ - NotSupported - Unrestricted - MasterUser + MediaInput: + InputTypeEnum: + - Hdmi + - Scart + - Usb bitmaps: DoorLock: - DlDaysMaskMap @@ -5859,6 +5879,8 @@ FabricDescriptorStruct: FabricDescriptor DoorLock: CredentialStruct: DlCredential + MediaInput: + InputInfoStruct: InputInfo struct fields: Descriptor: DeviceTypeStruct: @@ -5948,6 +5970,11 @@ UserTypeEnum: UnrestrictedUser: Unrestricted ProgrammingUser: MasterUser + MediaInput: + InputTypeEnum: + HDMI: Hdmi + SCART: Scart + USB: Usb bitmaps: DoorLock: DaysMaskMap: DlDaysMaskMap