Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SceneTable functionnalities (#25849)
* Added a Global scene count, GetAllSceneIdsInGroup and RemoveAllScenesInGroup along with their test. Fixed line endings from SceneTable.h Added automaticall removal of scene when it can't be loaded due to number of supported cluster being reduced by OTA Added tests for OTA with changes in max scenes number (global and per fabric) * fixed comparison on wrong variable causing un-initialized member * Added Isnit verification to all scene table operation requiring permanent storage access, added check on table capacity to prevent creation of table table with capacity above max * Update src/app/clusters/scenes/SceneTableImpl.cpp Co-authored-by: Boris Zbarsky <[email protected]> * Update src/app/clusters/scenes/SceneTableImpl.cpp Co-authored-by: Boris Zbarsky <[email protected]> * Update src/app/clusters/scenes/SceneTableImpl.cpp Co-authored-by: Boris Zbarsky <[email protected]> * Update src/app/clusters/scenes/SceneTableImpl.h Co-authored-by: Boris Zbarsky <[email protected]> * Removed dupplicate of Deserialize for Scene Fabric Data, added test for GetAllSceneIdsInGroup for the corner case of a list of size = 0 and for BUFFER_TOO_SMALL other situations, added comments for the size of the global count in storage * Restyled by clang-format * Update src/app/clusters/scenes/SceneTableImpl.cpp Co-authored-by: Boris Zbarsky <[email protected]> * Update src/app/clusters/scenes/SceneTableImpl.cpp Co-authored-by: Boris Zbarsky <[email protected]> * Update src/app/clusters/scenes/SceneTableImpl.cpp Co-authored-by: Boris Zbarsky <[email protected]> * Update src/app/clusters/scenes/SceneTableImpl.cpp Co-authored-by: Boris Zbarsky <[email protected]> * Stubed Deserialize and re-implemented DeserializeAdjust to avoid duplicating code * Apply suggestions from code review Co-authored-by: Boris Zbarsky <[email protected]> * Changed return of Stubbed Deserialize to return error if used, Changed DeserializeAdjust->Deserialize and moved adjustment to GlobalSceneCount out of Deserialize into Load function to adjust the count in the case where a failure would happen after scenes are deleted * Update src/app/clusters/scenes/SceneTableImpl.cpp Co-authored-by: Boris Zbarsky <[email protected]> * Fixed return of load in the event of a failiure to Deserialize when deleting scenes, explicited deleted_scenes_count value on failure to deserialize * Update src/app/clusters/scenes/SceneTableImpl.cpp Co-authored-by: Boris Zbarsky <[email protected]> * Removed redundant returns in Load() method --------- Co-authored-by: Boris Zbarsky <[email protected]> Co-authored-by: Restyled.io <[email protected]>
- Loading branch information