Commit ec8f50e
Decouple TimeFormatLocalization cluster (project-chip#40148)
* Add initial TimeFormatLocalization decoupling
* Add comments and changes to build test file
* Add code improvements from internal feedback
* Add FeatureFlags handling
* Add changes to UnitTests
* Add test persistence implementation
* minor code fixes
* revert local testing changes un python build
* Move WriteAttribute to Logic layer
* Start Read/Write UnitTest implementation using AttributePersistenceProvider
* Update tests cases
* Restyled by whitespace
* Restyled by clang-format
* reorganize code and add basic validations
* Restyled by whitespace
* Restyled by clang-format
* Change initialization list in constructor
* Restyled by whitespace
* Restyled by clang-format
* Reduce SampleProvider complexity and size for UnitTests
* Add unit test for invalid values
* Minor changes for constant elements
* Add changes for AttributeListBuilder
* Changes to AttributePersistenceProvider in Logic
* Fix failures in unit test due change in Setters
* Removed ember related callbacks
* Change BitFlags initialization in Tests
* Change include header format
* Remove curly braces from switch statements when applicable
* test integration of AttributePersistence
* Combine change individual setter to a combined attribute handler in Logic
* Removed test logs, and simplified code
* Change zap generation for ClusterRevision
* Restyled by whitespace
* Restyled by clang-format
* Restyled by gn
* Restyled by prettier-json
* Remove breaking UnitTest
* Change ember callbacks
* Change calendar setter to avoid double decoding
* Fix ActiveCalendarType not being stored properly
* Remove test changes
* Restyled by whitespace
* Restyled by clang-format
* Change type of AttributePersistenProvider in Logic layer
* Regenerate ZAP code
* Move logic to cluster
* Remove unused files
* Add fixes from PR comments
* Remove additional logic for return error values
* Change attributelist logic
* Change default value handling for attributes
* Revert ZAP changes for attributes
* Adjust UnitTest for Cluster only layer implementation
* Regenerate files with ZAP
* Restyled by whitespace
* Restyled by clang-format
* Add review fixes
* Revert changes to AttributePersistence
* minor changes from review
* Restyled by whitespace
* Regenerate ZAP files
* Add validation for empty Calendar list
* Change error code for ReadAttribute
* Update copyright dates for files that use partially the old implementation
* Regenerate ZAP files
* Slight updates for smaller code (30 bytes saved it seems)
* Update for slightly smaller code, fix some logic and copyright.
* Fix load/store logic a bit more.
* Restyle
* Update src/app/clusters/time-format-localization-server/time-format-localization-cluster.cpp
* Fix logic to select a supported calendar.
ZAP files seem to use defaults (i.e. 0 i.e. budhist calendar)
which is wrong, but we must handle.
* Restyle
* Fix new callbacks for code driven clusters.
* Undo the bad merge of shutdown functions.
Sort the code driven cluster list.
* Standardize the startup/shutdown for time format localization.
This saves a bit of flash.
* ZAP Regen and minor style update.
* Update src/app/clusters/time-format-localization-server/time-format-localization-cluster.cpp
---------
Co-authored-by: Restyled.io <[email protected]>
Co-authored-by: Andrei Litvin <[email protected]>
Co-authored-by: Andrei Litvin <[email protected]>1 parent 2407615 commit ec8f50e
File tree
30 files changed
+720
-341
lines changed- examples
- all-clusters-app
- all-clusters-common
- realtek/data_model
- all-clusters-minimal-app/all-clusters-common
- bridge-app/bridge-common
- tv-app/tv-common
- tv-casting-app/tv-casting-common
- virtual-device-app/virtual-device-common
- scripts/tools/zap/tests/outputs
- all-clusters-app/app-templates
- lighting-app/app-templates
- src
- app
- clusters/time-format-localization-server
- tests
- common/templates
- zap-templates/zcl
- zzz_generated/app-common/app-common/zap-generated/attributes
30 files changed
+720
-341
lines changedLines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7716 | 7716 | | |
7717 | 7717 | | |
7718 | 7718 | | |
7719 | | - | |
7720 | | - | |
| 7719 | + | |
| 7720 | + | |
7721 | 7721 | | |
7722 | 7722 | | |
7723 | 7723 | | |
7724 | 7724 | | |
7725 | 7725 | | |
7726 | | - | |
| 7726 | + | |
7727 | 7727 | | |
7728 | 7728 | | |
7729 | 7729 | | |
| |||
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1425 | 1425 | | |
1426 | 1426 | | |
1427 | 1427 | | |
1428 | | - | |
| 1428 | + | |
1429 | 1429 | | |
1430 | 1430 | | |
1431 | 1431 | | |
| |||
1441 | 1441 | | |
1442 | 1442 | | |
1443 | 1443 | | |
1444 | | - | |
| 1444 | + | |
1445 | 1445 | | |
1446 | 1446 | | |
1447 | 1447 | | |
| |||
1537 | 1537 | | |
1538 | 1538 | | |
1539 | 1539 | | |
1540 | | - | |
| 1540 | + | |
1541 | 1541 | | |
1542 | 1542 | | |
1543 | | - | |
| 1543 | + | |
1544 | 1544 | | |
1545 | 1545 | | |
1546 | 1546 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7895 | 7895 | | |
7896 | 7896 | | |
7897 | 7897 | | |
7898 | | - | |
| 7898 | + | |
7899 | 7899 | | |
7900 | 7900 | | |
7901 | 7901 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6525 | 6525 | | |
6526 | 6526 | | |
6527 | 6527 | | |
6528 | | - | |
| 6528 | + | |
6529 | 6529 | | |
6530 | 6530 | | |
6531 | 6531 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2324 | 2324 | | |
2325 | 2325 | | |
2326 | 2326 | | |
2327 | | - | |
| 2327 | + | |
2328 | 2328 | | |
2329 | 2329 | | |
2330 | 2330 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3712 | 3712 | | |
3713 | 3713 | | |
3714 | 3714 | | |
3715 | | - | |
| 3715 | + | |
3716 | 3716 | | |
3717 | 3717 | | |
3718 | 3718 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3087 | 3087 | | |
3088 | 3088 | | |
3089 | 3089 | | |
3090 | | - | |
| 3090 | + | |
3091 | 3091 | | |
3092 | 3092 | | |
3093 | 3093 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3673 | 3673 | | |
3674 | 3674 | | |
3675 | 3675 | | |
3676 | | - | |
| 3676 | + | |
3677 | 3677 | | |
3678 | 3678 | | |
3679 | 3679 | | |
| |||
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
34 | 38 | | |
35 | 39 | | |
36 | 40 | | |
| |||
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
36 | 39 | | |
37 | 40 | | |
38 | 41 | | |
| |||
67 | 70 | | |
68 | 71 | | |
69 | 72 | | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
70 | 76 | | |
71 | 77 | | |
72 | 78 | | |
| |||
0 commit comments