Skip to content

Commit 92823ff

Browse files
Merge branch 'master' into CommandTesting
2 parents fe6cd84 + 1992150 commit 92823ff

File tree

172 files changed

+1756
-605
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

172 files changed

+1756
-605
lines changed

build/chip/chip_test_suite.gni

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ template("chip_test_suite") {
9595
} else {
9696
public_deps += [ "${chip_root}/src/platform/logging:default" ]
9797
}
98+
public_deps += [ "${chip_root}/src/lib/support/tests:pw-test-macros" ]
9899

99100
if (chip_device_platform == "esp32") {
100101
complete_static_lib = true

config/common/cmake/make_gn_args.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,12 @@ def write_gn_args(args):
5656
filtered_value = filter(lambda v: v != "D", filtered_value)
5757
filtered_value = filter(lambda v: v != "isystem", filtered_value)
5858
# Escaped quote and dollar sign characters
59-
filtered_value = map(lambda v: v.replace('"', '\\"'), filtered_value)
60-
filtered_value = map(lambda v: v.replace('$', '\\$'), filtered_value)
59+
filtered_value = (v.replace('"', '\\"') for v in filtered_value)
60+
filtered_value = (v.replace('$', '\\$') for v in filtered_value)
6161
# Remove white spaces around the argument and remove internal whitespace
6262
# for correct splitting in string_split() function
63-
filtered_value = map(lambda v: v.strip(), filtered_value)
64-
filtered_value = map(lambda v: v.replace(' ', ''), filtered_value)
63+
filtered_value = (v.strip() for v in filtered_value)
64+
filtered_value = (v.replace(' ', '') for v in filtered_value)
6565
# Remove duplicates
6666
filtered_value = list(dict.fromkeys(filtered_value))
6767

config/esp32/components/chip/create_args_gn.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,13 @@
4444
compile_commands = json.load(compile_commands_json)
4545

4646
def get_compile_flags(src_file):
47-
compile_command = list(map(lambda res: res["command"],
48-
filter(lambda cmd: cmd["file"] == src_file, compile_commands)))
47+
compile_command = [
48+
res["command"]
49+
for res in filter(lambda cmd: cmd["file"] == src_file, compile_commands)
50+
]
4951

5052
if len(compile_command) != 1:
51-
raise Exception("Failed to resolve compile flags for %s", src_file)
53+
raise Exception(f"Failed to resolve compile flags for {src_file}")
5254

5355
compile_command = compile_command[0]
5456
# Trim compiler, input and output
@@ -57,12 +59,10 @@ def get_compile_flags(src_file):
5759
replace = "-I%s" % args.idf_path
5860
replace_with = "-isystem%s" % args.idf_path
5961

60-
compile_flags = list(map(lambda f: ('"%s"' % f).replace(
61-
replace, replace_with), compile_flags))
62+
compile_flags = [f'"{f}"'.replace(replace, replace_with) for f in compile_flags]
6263

6364
if args.filter_out:
64-
filter_out = list(map(lambda f: ('"%s"' % f),
65-
args.filter_out.split(';')))
65+
filter_out = [f'"{f}"' for f in args.filter_out.split(';')]
6666
compile_flags = [c for c in compile_flags if c not in filter_out]
6767

6868
return compile_flags

config/nxp/cmake/Kconfig.matter.common

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,13 @@ config CHIP_ICD_UAT_SUPPORT
400400
Enables the User Active Mode Trigger (UAT) support in Matter. It allows the User to use application specific
401401
means (e.g. button press) to trigger an ICD device to enter the active mode and become responsive.
402402

403+
config CHIP_ICD_DSLS_SUPPORT
404+
bool "Intermittently Connected Device Dynamic SIT LIT support"
405+
depends on CHIP_ICD_LIT_SUPPORT
406+
help
407+
Enables the Dynamic SIT LIT support in Matter. It allows the application to dynamically switch between
408+
SIT and LIT modes, as long as the requirements for these modes are met (e.g. device has at least one active ICD client).
409+
403410
config CHIP_ICD_CLIENTS_PER_FABRIC
404411
int "Intermittently Connected Device number of clients per fabric"
405412
default 2

config/nxp/cmake/common.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ matter_add_gn_arg_bool("chip_enable_ethernet" CONFIG_CHIP_ETHERNET)
4949
matter_add_gn_arg_bool("chip_system_config_provide_statistics" CONFIG_CHIP_STATISTICS)
5050
matter_add_gn_arg_bool("chip_enable_icd_server" CONFIG_CHIP_ENABLE_ICD_SUPPORT)
5151
matter_add_gn_arg_bool("chip_enable_icd_lit" CONFIG_CHIP_ICD_LIT_SUPPORT)
52+
matter_add_gn_arg_bool("chip_enable_icd_dsls" CONFIG_CHIP_ICD_DSLS_SUPPORT)
5253
matter_add_gn_arg_bool("chip_enable_ota_requestor" CONFIG_CHIP_OTA_REQUESTOR)
5354
matter_add_gn_arg_bool("chip_system_config_use_openthread_inet_endpoints" CONFIG_CHIP_USE_OT_ENDPOINT)
5455

credentials/generate_revocation_set.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
__LOG_LEVELS__ = {
4747
'debug': logging.DEBUG,
4848
'info': logging.INFO,
49-
'warn': logging.WARN,
49+
'warn': logging.WARNING,
5050
'fatal': logging.FATAL,
5151
}
5252

docs/_extensions/external_content.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,13 +169,13 @@ def sync_contents(app: Sphinx) -> None:
169169

170170
srcdir = Path(app.srcdir).resolve()
171171
to_copy = []
172-
to_delete = set(f for f in srcdir.glob("**/*") if not f.is_dir())
173-
to_keep = set(
172+
to_delete = {f for f in srcdir.glob("**/*") if not f.is_dir()}
173+
to_keep = {
174174
f
175175
for k in app.config.external_content_keep
176176
for f in srcdir.glob(k)
177177
if not f.is_dir()
178-
)
178+
}
179179

180180
for content in app.config.external_content_contents:
181181
prefix_src, glob = content

examples/camera-app/linux/include/clusters/webrtc-provider/webrtc-provider-manager.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@ class WebRTCProviderManager : public Delegate, public WebRTCTransportProviderCon
8080

8181
CHIP_ERROR ValidateAudioStreamID(uint16_t audioStreamId) override;
8282

83+
CHIP_ERROR IsStreamUsageSupported(StreamUsageEnum streamUsage) override;
84+
8385
CHIP_ERROR IsHardPrivacyModeActive(bool & isActive) override;
8486

8587
CHIP_ERROR IsSoftRecordingPrivacyModeActive(bool & isActive) override;

examples/camera-app/linux/src/clusters/webrtc-provider/webrtc-provider-manager.cpp

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -529,6 +529,30 @@ CHIP_ERROR WebRTCProviderManager::ValidateAudioStreamID(uint16_t audioStreamId)
529529
return avsmController.ValidateAudioStreamID(audioStreamId);
530530
}
531531

532+
CHIP_ERROR WebRTCProviderManager::IsStreamUsageSupported(StreamUsageEnum streamUsage)
533+
{
534+
if (mCameraDevice == nullptr)
535+
{
536+
ChipLogError(Camera, "CameraDeviceInterface not initialized");
537+
return CHIP_ERROR_INCORRECT_STATE;
538+
}
539+
540+
auto & hal = mCameraDevice->GetCameraHALInterface();
541+
auto & streamUsagePriorities = hal.GetStreamUsagePriorities();
542+
543+
// Check if the streamUsage is in the StreamUsagePriorities list
544+
for (const auto & usage : streamUsagePriorities)
545+
{
546+
if (usage == streamUsage)
547+
{
548+
return CHIP_NO_ERROR;
549+
}
550+
}
551+
552+
ChipLogError(Camera, "StreamUsage %u not found in StreamUsagePriorities", to_underlying(streamUsage));
553+
return CHIP_ERROR_NOT_FOUND;
554+
}
555+
532556
CHIP_ERROR WebRTCProviderManager::IsHardPrivacyModeActive(bool & isActive)
533557
{
534558
if (mCameraDevice == nullptr)

examples/chef/chef.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,12 @@ def splash() -> None:
6969

7070

7171
def load_config() -> None:
72-
config = dict()
73-
config["nrfconnect"] = dict()
74-
config["esp32"] = dict()
75-
config["silabs-thread"] = dict()
76-
config["ameba"] = dict()
77-
config["telink"] = dict()
72+
config = {}
73+
config["nrfconnect"] = {}
74+
config["esp32"] = {}
75+
config["silabs-thread"] = {}
76+
config["ameba"] = {}
77+
config["telink"] = {}
7878
configFile = f"{_CHEF_SCRIPT_PATH}/config.yaml"
7979
if (os.path.exists(configFile)):
8080
configStream = open(configFile, 'r')

0 commit comments

Comments
 (0)