Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Android] Support isUrgent variable in Event Path #22356

Conversation

joonhaengHeo
Copy link
Contributor

@joonhaengHeo joonhaengHeo commented Sep 2, 2022

Problem

What is being fixed?
issue #22526

Change overview

Add isUrgent in EventPath class.

Testing

How was this tested? (at least one bullet point required)

  • Commissioning Test in Android platform.
  • Send Event Path (isUrgent variable is true and false).

@github-actions
Copy link

github-actions bot commented Sep 2, 2022

PR #22356: Size comparison from e56afce to 7f94275

Increases (45 builds for bl602, cc13x2_26x2, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, psoc6, qpg, telink)
platform target config section e56afce 7f94275 change % change
bl602 lighting-app bl602 (read/write) 1386190 1386414 224 0.0
.text 1052584 1052808 224 0.0
bl602+rpc (read/write) 1431846 1432062 216 0.0
.text 1084344 1084564 220 0.0
cc13x2_26x2 all-clusters-app LP_CC2652R7 (read only) 675359 675519 160 0.0
.text 585832 585992 160 0.0
all-clusters-minimal-app LP_CC2652R7 (read only) 640071 640247 176 0.0
.text 561384 561560 176 0.0
lock-ftd LP_CC2652R7 (read only) 676419 676595 176 0.0
.text 598872 599048 176 0.0
lock-mtd LP_CC2652R7 (read only) 659379 659571 192 0.0
.text 556576 556768 192 0.0
pump-app LP_CC2652R7 (read only) 685247 685455 208 0.0
.rodata 90079 90095 16 0.0
.text 594684 594876 192 0.0
pump-controller-app LP_CC2652R7 (read only) 669739 669955 216 0.0
.rodata 85627 85651 24 0.0
.text 583632 583824 192 0.0
shell LP_CC2652R7 (read only) 666010 666186 176 0.0
.text 579924 580100 176 0.0
cyw30739 light cyw930739m2evb_01 (read/write) 586882 587066 184 0.0
.app_xip_area 463540 463724 184 0.0
lock cyw930739m2evb_01 (read/write) 592634 592802 168 0.0
.app_xip_area 464508 464676 168 0.0
ota-requestor-no-progress-logging cyw930739m2evb_01 (read/write) 599818 600042 224 0.0
.app_xip_area 477196 477420 224 0.0
efr32 lighting-app BRD4161A (read/write) 1108528 1108752 224 0.0
.text 970104 970328 224 0.0
BRD4161A+rpc (read/write) 972188 972388 200 0.0
.text 819072 819272 200 0.0
BRD4161A+rs911x (read/write) 1002244 1002460 216 0.0
.text 830992 831208 216 0.0
lock-app BRD4161A+wf200 (read/write) 1150304 1150536 232 0.0
.text 995964 996196 232 0.0
window-app BRD4161A (read/write) 1099768 1099976 208 0.0
.text 959880 960088 208 0.0
esp32 all-clusters-app c3devkit (read only) 1033912 1034024 112 0.0
(read/write) 1493646 1493662 16 0.0
.flash.rodata 218160 218176 16 0.0
.flash.text 1033912 1034024 112 0.0
m5stack (read only) 1086515 1086679 164 0.0
(read/write) 490916 490940 24 0.0
.flash.rodata 247456 247480 24 0.0
.flash.text 1081131 1081295 164 0.0
k32w light k32w0+release (read/write) 648204 648380 176 0.0
.text 572696 572872 176 0.0
lock k32w0+release (read/write) 705216 705376 160 0.0
.text 629252 629412 160 0.0
linux all-clusters-app debug (read only) 3045049 3045849 800 0.0
.rodata 275435 275467 32 0.0
.text 2590178 2590946 768 0.0
all-clusters-minimal-app debug (read only) 2880849 2881473 624 0.0
.rodata 275595 275627 32 0.0
.text 2428594 2429186 592 0.0
bridge-app debug+rpc (read only) 2378633 2379193 560 0.0
.text 2011426 2011986 560 0.0
chip-tool debug (read only) 10944489 10944809 320 0.0
.rodata 569045 569077 32 0.0
.text 8854628 8854916 288 0.0
chip-tool-ipv6only arm64 (read only) 10319348 10319540 192 0.0
.text 8167636 8167828 192 0.0
lighting-app debug+rpc (read only) 2604041 2604617 576 0.0
.rodata 221104 221136 32 0.0
.text 2211746 2212290 544 0.0
lock-app debug (read only) 2587057 2587665 608 0.0
.text 2181986 2182594 608 0.0
ota-provider-app debug (read only) 2364297 2364793 496 0.0
.text 1990434 1990930 496 0.0
ota-requestor-app debug (read only) 2529545 2530121 576 0.0
.rodata 216832 216864 32 0.0
.text 2139810 2140354 544 0.0
shell debug (read only) 2613353 2613977 624 0.0
.rodata 235538 235570 32 0.0
.text 2219106 2219698 592 0.0
thermostat-no-ble arm64 (read only) 2363012 2363476 464 0.0
.rodata 141404 141420 16 0.0
.text 1983568 1984016 448 0.0
tv-app debug (read only) 3191625 3192169 544 0.0
.text 2741490 2742034 544 0.0
tv-casting-app debug (read only) 5509969 5510529 560 0.0
.rodata 345073 345105 32 0.0
.text 4892994 4893522 528 0.0
mbed lock-app CY8CPROTO_062_4343W+release (read/write) 2455184 2455392 208 0.0
.text 1417828 1418036 208 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 (read/write) 1181087 1181323 236 0.0
rodata 143504 143516 12 0.0
text 815008 815224 216 0.0
all-clusters-minimal-app nrf52840dk_nrf52840 (read/write) 1160283 1160487 204 0.0
rodata 135092 135104 12 0.0
text 803400 803600 200 0.0
psoc6 all-clusters cy8ckit_062s2_43012 (read/write) 1742748 1743020 272 0.0
.debug_abbrev 1221450 1221471 21 0.0
.debug_frame 372968 373004 36 0.0
.debug_info 26715418 26716906 1488 0.0
.debug_line 3657402 3657431 29 0.0
.debug_loc 3573108 3573681 573 0.0
.debug_str 3427409 3427421 12 0.0
.text 1542976 1543248 272 0.0
all-clusters-minimal cy8ckit_062s2_43012 (read/write) 1685948 1686204 256 0.0
.debug_abbrev 1213289 1213310 21 0.0
.debug_frame 376048 376084 36 0.0
.debug_info 26452042 26453529 1487 0.0
.debug_line 3677918 3677947 29 0.0
.debug_loc 3560745 3561318 573 0.0
.debug_str 3416414 3416426 12 0.0
.text 1486912 1487168 256 0.0
light cy8ckit_062s2_43012 (read/write) 1603196 1603404 208 0.0
.debug_abbrev 1048108 1048129 21 0.0
.debug_frame 346316 346340 24 0.0
.debug_info 21914325 21915620 1295 0.0
.debug_line 3248383 3248420 37 0.0
.debug_loc 3259088 3259523 435 0.0
.debug_str 3221680 3221692 12 0.0
.text 1412392 1412600 208 0.0
lock cy8ckit_062s2_43012 (read/write) 1640892 1641132 240 0.0
.debug_abbrev 1055543 1055564 21 0.0
.debug_frame 349144 349168 24 0.0
.debug_info 22294070 22295343 1273 0.0
.debug_line 3257204 3257244 40 0.0
.debug_loc 3298941 3299344 403 0.0
.debug_str 3249101 3249113 12 0.0
.text 1445056 1445296 240 0.0
qpg lighting-app qpg6105+debug (read/write) 1129172 1129356 184 0.0
.text 576268 576452 184 0.0
lock-app qpg6105+debug (read/write) 1100184 1100352 168 0.0
.text 547284 547452 168 0.0
telink light-switch-app tlsr9518adk80d (read/write) 809004 809168 164 0.0
text 571478 571620 142 0.0
lighting-app tlsr9518adk80d (read/write) 830912 831084 172 0.0
text 589602 589744 142 0.0
Decreases (6 builds for cc13x2_26x2)
platform target config section e56afce 7f94275 change % change
cc13x2_26x2 all-clusters-app LP_CC2652R7 (read/write) 176048 175888 -160 -0.1
lock-ftd LP_CC2652R7 (read/write) 165300 165124 -176 -0.1
lock-mtd LP_CC2652R7 (read/write) 178028 177836 -192 -0.1
pump-app LP_CC2652R7 (read/write) 157176 156968 -208 -0.1
pump-controller-app LP_CC2652R7 (read/write) 172796 172580 -216 -0.1
shell LP_CC2652R7 (read/write) 180916 180740 -176 -0.1
Full report (45 builds for bl602, cc13x2_26x2, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, psoc6, qpg, telink)
platform target config section e56afce 7f94275 change % change
bl602 lighting-app bl602 (read/write) 1386190 1386414 224 0.0
.bss 120298 120298 0 0.0
.data 4488 4488 0 0.0
.text 1052584 1052808 224 0.0
bl602+rpc (read/write) 1431846 1432062 216 0.0
.bss 127730 127730 0 0.0
.data 4600 4600 0 0.0
.text 1084344 1084564 220 0.0
cc13x2_26x2 all-clusters-app LP_CC2652R7 (read only) 675359 675519 160 0.0
(read/write) 176048 175888 -160 -0.1
.bss 74300 74300 0 0.0
.data 3380 3380 0 0.0
.rodata 89215 89215 0 0.0
.text 585832 585992 160 0.0
all-clusters-minimal-app LP_CC2652R7 (read only) 640071 640247 176 0.0
(read/write) 157868 157868 0 0.0
.bss 73572 73572 0 0.0
.data 3380 3380 0 0.0
.rodata 78367 78367 0 0.0
.text 561384 561560 176 0.0
lock-ftd LP_CC2652R7 (read only) 676419 676595 176 0.0
(read/write) 165300 165124 -176 -0.1
.bss 71500 71500 0 0.0
.data 3304 3304 0 0.0
.rodata 77067 77067 0 0.0
.text 598872 599048 176 0.0
lock-mtd LP_CC2652R7 (read only) 659379 659571 192 0.0
(read/write) 178028 177836 -192 -0.1
.bss 67188 67188 0 0.0
.data 3304 3304 0 0.0
.rodata 102323 102323 0 0.0
.text 556576 556768 192 0.0
pump-app LP_CC2652R7 (read only) 685247 685455 208 0.0
(read/write) 157176 156968 -208 -0.1
.bss 71436 71436 0 0.0
.data 3296 3296 0 0.0
.rodata 90079 90095 16 0.0
.text 594684 594876 192 0.0
pump-controller-app LP_CC2652R7 (read only) 669739 669955 216 0.0
(read/write) 172796 172580 -216 -0.1
.bss 71548 71548 0 0.0
.data 3292 3292 0 0.0
.rodata 85627 85651 24 0.0
.text 583632 583824 192 0.0
shell LP_CC2652R7 (read only) 666010 666186 176 0.0
(read/write) 180916 180740 -176 -0.1
.bss 76620 76620 0 0.0
.data 3376 3376 0 0.0
.rodata 85770 85770 0 0.0
.text 579924 580100 176 0.0
cyw30739 light cyw930739m2evb_01 (read/write) 586882 587066 184 0.0
.app_xip_area 463540 463724 184 0.0
.bss 65776 65776 0 0.0
.data 744 744 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
lock cyw930739m2evb_01 (read/write) 592634 592802 168 0.0
.app_xip_area 464508 464676 168 0.0
.bss 70560 70560 0 0.0
.data 748 748 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
ota-requestor-no-progress-logging cyw930739m2evb_01 (read/write) 599818 600042 224 0.0
.app_xip_area 477196 477420 224 0.0
.bss 65088 65088 0 0.0
.data 716 716 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
efr32 lighting-app BRD4161A (read/write) 1108528 1108752 224 0.0
.bss 136332 136332 0 0.0
.data 2072 2072 0 0.0
.text 970104 970328 224 0.0
BRD4161A+rpc (read/write) 972188 972388 200 0.0
.bss 150844 150844 0 0.0
.data 2252 2252 0 0.0
.text 819072 819272 200 0.0
BRD4161A+rs911x (read/write) 1002244 1002460 216 0.0
.bss 169168 169168 0 0.0
.data 2064 2064 0 0.0
.text 830992 831208 216 0.0
lock-app BRD4161A+wf200 (read/write) 1150304 1150536 232 0.0
.bss 152248 152248 0 0.0
.data 2072 2072 0 0.0
.text 995964 996196 232 0.0
window-app BRD4161A (read/write) 1099768 1099976 208 0.0
.bss 137772 137772 0 0.0
.data 2096 2096 0 0.0
.text 959880 960088 208 0.0
esp32 all-clusters-app c3devkit (read only) 1033912 1034024 112 0.0
(read/write) 1493646 1493662 16 0.0
.dram0.bss 71120 71120 0 0.0
.dram0.data 13696 13696 0 0.0
.flash.rodata 218160 218176 16 0.0
.flash.text 1033912 1034024 112 0.0
.iram0.text 65204 65204 0 0.0
m5stack (read only) 1086515 1086679 164 0.0
(read/write) 490916 490940 24 0.0
.dram0.bss 76640 76640 0 0.0
.dram0.data 34152 34152 0 0.0
.flash.rodata 247456 247480 24 0.0
.flash.text 1081131 1081295 164 0.0
.iram0.text 123939 123939 0 0.0
k32w light k32w0+release (read/write) 648204 648380 176 0.0
.bss 70712 70712 0 0.0
.data 2068 2068 0 0.0
.text 572696 572872 176 0.0
lock k32w0+release (read/write) 705216 705376 160 0.0
.bss 71160 71160 0 0.0
.data 2076 2076 0 0.0
.text 629252 629412 160 0.0
linux all-clusters-app debug (read only) 3045049 3045849 800 0.0
(read/write) 156032 156032 0 0.0
.bss 61792 61792 0 0.0
.data 2096 2096 0 0.0
.data.rel.ro 85768 85768 0 0.0
.dynamic 608 608 0 0.0
.got 4568 4568 0 0.0
.init 27 27 0 0.0
.init_array 1176 1176 0 0.0
.rodata 275435 275467 32 0.0
.text 2590178 2590946 768 0.0
all-clusters-minimal-app debug (read only) 2880849 2881473 624 0.0
(read/write) 147632 147632 0 0.0
.bss 61024 61024 0 0.0
.data 2064 2064 0 0.0
.data.rel.ro 78264 78264 0 0.0
.dynamic 608 608 0 0.0
.got 4488 4488 0 0.0
.init 27 27 0 0.0
.init_array 1160 1160 0 0.0
.rodata 275595 275627 32 0.0
.text 2428594 2429186 592 0.0
bridge-app debug+rpc (read only) 2378633 2379193 560 0.0
(read/write) 127752 127752 0 0.0
.bss 50656 50656 0 0.0
.data 3600 3600 0 0.0
.data.rel.ro 67640 67640 0 0.0
.dynamic 608 608 0 0.0
.got 4392 4392 0 0.0
.init 27 27 0 0.0
.init_array 832 832 0 0.0
.rodata 204296 204296 0 0.0
.text 2011426 2011986 560 0.0
chip-tool debug (read only) 10944489 10944809 320 0.0
(read/write) 657320 657320 0 0.0
.bss 25240 25240 0 0.0
.data 3266 3266 0 0.0
.data.rel.ro 622288 622288 0 0.0
.dynamic 608 608 0 0.0
.got 5096 5096 0 0.0
.init 27 27 0 0.0
.init_array 776 776 0 0.0
.rodata 569045 569077 32 0.0
.text 8854628 8854916 288 0.0
chip-tool-ipv6only arm64 (read only) 10319348 10319540 192 0.0
(read/write) 705169 705169 0 0.0
.bss 33297 33297 0 0.0
.data 3280 3280 0 0.0
.data.rel.ro 649784 649784 0 0.0
.dynamic 560 560 0 0.0
.got 13840 13840 0 0.0
.init 24 24 0 0.0
.init_array 200 200 0 0.0
.rodata 499300 499300 0 0.0
.text 8167636 8167828 192 0.0
lighting-app debug+rpc (read only) 2604041 2604617 576 0.0
(read/write) 130536 130536 0 0.0
.bss 49792 49792 0 0.0
.data 2096 2096 0 0.0
.data.rel.ro 72680 72680 0 0.0
.dynamic 608 608 0 0.0
.got 4392 4392 0 0.0
.init 27 27 0 0.0
.init_array 928 928 0 0.0
.rodata 221104 221136 32 0.0
.text 2211746 2212290 544 0.0
lock-app debug (read only) 2587057 2587665 608 0.0
(read/write) 125712 125712 0 0.0
.bss 48288 48288 0 0.0
.data 1712 1712 0 0.0
.data.rel.ro 69688 69688 0 0.0
.dynamic 608 608 0 0.0
.got 4464 4464 0 0.0
.init 27 27 0 0.0
.init_array 904 904 0 0.0
.rodata 238128 238128 0 0.0
.text 2181986 2182594 608 0.0
ota-provider-app debug (read only) 2364297 2364793 496 0.0
(read/write) 119144 119144 0 0.0
.bss 47808 47808 0 0.0
.data 1936 1936 0 0.0
.data.rel.ro 63512 63512 0 0.0
.dynamic 608 608 0 0.0
.got 4488 4488 0 0.0
.init 27 27 0 0.0
.init_array 768 768 0 0.0
.rodata 210104 210104 0 0.0
.text 1990434 1990930 496 0.0
ota-requestor-app debug (read only) 2529545 2530121 576 0.0
(read/write) 127552 127552 0 0.0
.bss 50368 50368 0 0.0
.data 2304 2304 0 0.0
.data.rel.ro 68920 68920 0 0.0
.dynamic 608 608 0 0.0
.got 4480 4480 0 0.0
.init 27 27 0 0.0
.init_array 856 856 0 0.0
.rodata 216832 216864 32 0.0
.text 2139810 2140354 544 0.0
shell debug (read only) 2613353 2613977 624 0.0
(read/write) 142184 142184 0 0.0
.bss 57704 57704 0 0.0
.data 1264 1264 0 0.0
.data.rel.ro 77376 77376 0 0.0
.dynamic 608 608 0 0.0
.got 4136 4136 0 0.0
.init 27 27 0 0.0
.init_array 1048 1048 0 0.0
.rodata 235538 235570 32 0.0
.text 2219106 2219698 592 0.0
thermostat-no-ble arm64 (read only) 2363012 2363476 464 0.0
(read/write) 141857 141857 0 0.0
.bss 55233 55233 0 0.0
.data 1680 1680 0 0.0
.data.rel.ro 76112 76112 0 0.0
.dynamic 560 560 0 0.0
.got 5056 5056 0 0.0
.init 24 24 0 0.0
.init_array 416 416 0 0.0
.rodata 141404 141420 16 0.0
.text 1983568 1984016 448 0.0
tv-app debug (read only) 3191625 3192169 544 0.0
(read/write) 258040 258040 0 0.0
.bss 167352 167352 0 0.0
.data 4752 4752 0 0.0
.data.rel.ro 79368 79368 0 0.0
.dynamic 608 608 0 0.0
.got 4856 4856 0 0.0
.init 27 27 0 0.0
.init_array 1080 1080 0 0.0
.rodata 260104 260104 0 0.0
.text 2741490 2742034 544 0.0
tv-casting-app debug (read only) 5509969 5510529 560 0.0
(read/write) 160536 160536 0 0.0
.bss 51352 51352 0 0.0
.data 2432 2432 0 0.0
.data.rel.ro 100304 100304 0 0.0
.dynamic 608 608 0 0.0
.got 4776 4776 0 0.0
.init 27 27 0 0.0
.init_array 1048 1048 0 0.0
.rodata 345073 345105 32 0.0
.text 4892994 4893522 528 0.0
mbed lock-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2455184 2455392 208 0.0
.bss 215044 215044 0 0.0
.data 5872 5872 0 0.0
.text 1417828 1418036 208 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 (read/write) 1181087 1181323 236 0.0
bss 143641 143641 0 0.0
rodata 143504 143516 12 0.0
text 815008 815224 216 0.0
all-clusters-minimal-app nrf52840dk_nrf52840 (read/write) 1160283 1160487 204 0.0
bss 142868 142868 0 0.0
rodata 135092 135104 12 0.0
text 803400 803600 200 0.0
psoc6 all-clusters cy8ckit_062s2_43012 (read only) 841960 841960 0 0.0
(read/write) 1742748 1743020 272 0.0
.ARM.attributes 46 46 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 188720 188720 0 0.0
.comment 204 204 0 0.0
.copy.table 24 24 0 0.0
.cy_m0p_image 6216 6216 0 0.0
.cy_sharedmem 8 8 0 0.0
.data 2664 2664 0 0.0
.debug_abbrev 1221450 1221471 21 0.0
.debug_aranges 111728 111728 0 0.0
.debug_frame 372968 373004 36 0.0
.debug_info 26715418 26716906 1488 0.0
.debug_line 3657402 3657431 29 0.0
.debug_loc 3573108 3573681 573 0.0
.debug_ranges 338424 338424 0 0.0
.debug_str 3427409 3427421 12 0.0
.heap 841960 841960 0 0.0
.noinit 148 148 0 0.0
.ramVectors 736 736 0 0.0
.shstrtab 288 288 0 0.0
.stab 156 156 0 0.0
.stabstr 335 335 0 0.0
.stack_dummy 4096 4096 0 0.0
.strtab 570588 570588 0 0.0
.symtab 421488 421488 0 0.0
.text 1542976 1543248 272 0.0
.zero.table 8 8 0 0.0
text 0 0 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 (read only) 842696 842696 0 0.0
(read/write) 1685948 1686204 256 0.0
.ARM.attributes 46 46 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 187984 187984 0 0.0
.comment 204 204 0 0.0
.copy.table 24 24 0 0.0
.cy_m0p_image 6216 6216 0 0.0
.cy_sharedmem 8 8 0 0.0
.data 2664 2664 0 0.0
.debug_abbrev 1213289 1213310 21 0.0
.debug_aranges 111200 111200 0 0.0
.debug_frame 376048 376084 36 0.0
.debug_info 26452042 26453529 1487 0.0
.debug_line 3677918 3677947 29 0.0
.debug_loc 3560745 3561318 573 0.0
.debug_ranges 337040 337040 0 0.0
.debug_str 3416414 3416426 12 0.0
.heap 842696 842696 0 0.0
.noinit 148 148 0 0.0
.ramVectors 736 736 0 0.0
.shstrtab 288 288 0 0.0
.stab 156 156 0 0.0
.stabstr 335 335 0 0.0
.stack_dummy 4096 4096 0 0.0
.strtab 535062 535062 0 0.0
.symtab 408080 408080 0 0.0
.text 1486912 1487168 256 0.0
.zero.table 0 0 0 0.0
8 8 0 0.0
light cy8ckit_062s2_43012 (read only) 850928 850928 0 0.0
(read/write) 1603196 1603404 208 0.0
.ARM.attributes 46 46 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 179960 179960 0 0.0
.comment 204 204 0 0.0
.copy.table 24 24 0 0.0
.cy_m0p_image 6216 6216 0 0.0
.cy_sharedmem 8 8 0 0.0
.data 2456 2456 0 0.0
.debug_abbrev 1048108 1048129 21 0.0
.debug_aranges 103376 103376 0 0.0
.debug_frame 346316 346340 24 0.0
.debug_info 21914325 21915620 1295 0.0
.debug_line 3248383 3248420 37 0.0
.debug_loc 3259088 3259523 435 0.0
.debug_ranges 302512 302512 0 0.0
.debug_str 3221680 3221692 12 0.0
.heap 850928 850928 0 0.0
.noinit 148 148 0 0.0
.ramVectors 736 736 0 0.0
.shstrtab 288 288 0 0.0
.stab 156 156 0 0.0
.stabstr 335 335 0 0.0
.stack_dummy 4096 4096 0 0.0
.strtab 468361 468361 0 0.0
.symtab 375168 375168 0 0.0
.text 1412392 1412600 208 0.0
.zero.table 0 0 0 0.0
8 8 0 0.0
lock cy8ckit_062s2_43012 (read only) 845896 845896 0 0.0
(read/write) 1640892 1641132 240 0.0
.ARM.attributes 46 46 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 184976 184976 0 0.0
.comment 204 204 0 0.0
.copy.table 24 24 0 0.0
.cy_m0p_image 6216 6216 0 0.0
.cy_sharedmem 8 8 0 0.0
.data 2472 2472 0 0.0
.debug_abbrev 1055543 1055564 21 0.0
.debug_aranges 104048 104048 0 0.0
.debug_frame 349144 349168 24 0.0
.debug_info 22294070 22295343 1273 0.0
.debug_line 3257204 3257244 40 0.0
.debug_loc 3298941 3299344 403 0.0
.debug_ranges 305856 305856 0 0.0
.debug_str 3249101 3249113 12 0.0
.heap 845896 845896 0 0.0
.noinit 148 148 0 0.0
.ramVectors 736 736 0 0.0
.shstrtab 288 288 0 0.0
.stab 156 156 0 0.0
.stabstr 335 335 0 0.0
.stack_dummy 4096 4096 0 0.0
.strtab 474564 474564 0 0.0
.symtab 378352 378352 0 0.0
.text 1445056 1445296 240 0.0
.zero.table 0 0 0 0.0
8 8 0 0.0
qpg lighting-app qpg6105+debug (read/write) 1129172 1129356 184 0.0
.bss 106112 106112 0 0.0
.data 1028 1028 0 0.0
.text 576268 576452 184 0.0
lock-app qpg6105+debug (read/write) 1100184 1100352 168 0.0
.bss 102344 102344 0 0.0
.data 1032 1032 0 0.0
.text 547284 547452 168 0.0
telink light-switch-app tlsr9518adk80d (read/write) 809004 809168 164 0.0
bss 71344 71344 0 0.0
noinit 43488 43488 0 0.0
text 571478 571620 142 0.0
lighting-app tlsr9518adk80d (read/write) 830912 831084 172 0.0
bss 72200 72200 0 0.0
noinit 43488 43488 0 0.0
text 589602 589744 142 0.0

@@ -289,6 +289,7 @@ CHIP_ERROR EventManagement::ConstructEvent(EventLoadOutContext * apContext, Even
eventPathBuilder.Endpoint(apOptions->mPath.mEndpointId)
.Cluster(apOptions->mPath.mClusterId)
.Event(apOptions->mPath.mEventId)
.IsUrgent(apOptions->mPath.mIsUrgentEvent)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why this change? This does not make sense.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

isUrgent is used for requested path for subscribe, and should not be used in event Path builder when constructing event in event management.

@@ -242,6 +242,8 @@ CHIP_ERROR EventDataIB::Parser::ProcessEventPath(EventPathIB::Parser & aEventPat
err = aEventPath.GetEvent(&(aConcreteEventPath.mEventId));
VerifyOrReturnError(err == CHIP_NO_ERROR, CHIP_ERROR_IM_MALFORMED_EVENT_PATH_IB);

err = aEventPath.GetIsUrgent(&(aConcreteEventPath.mIsUrgentEvent));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we want to do this? The spec is not very clear on this, but IsUrgent is an input, not an output; EventDataIB should never have it present...

Filed https://github.com/CHIP-Specifications/connectedhomeip-spec/issues/5596 to get this clarified.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

agree, it should be input

Copy link
Contributor

@yunhanw-google yunhanw-google left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

isUrgent is used for requested path for subscribe, and should not be used in event Path builder when constructing event in event management.

@@ -1326,7 +1332,7 @@ CHIP_ERROR ParseEventPath(jobject eventPath, EndpointId & outEndpointId, Cluster
outEndpointId = static_cast<EndpointId>(endpointId);
outClusterId = static_cast<ClusterId>(clusterId);
outEventId = static_cast<EventId>(eventId);

outIsUrgentId = isUrgentEvent;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there is no need to parse the urgent flag when reading event from report.

@yunhanw-google
Copy link
Contributor

yunhanw-google commented Sep 9, 2022

as I point out in this PR, you should just modify java event path, #20198 (comment), then modify subscribe request with optional urgent event path in WildcardFragment. when receiving report, there is no need to parse urgent flag in report


+++ b/src/android/CHIPTool/app/src/main/java/com/google/chip/chiptool/clusterclient/WildcardFragment.kt
@@ -27,6 +27,7 @@ import kotlinx.android.synthetic.main.wildcard_fragment.attributeIdEd
 import kotlinx.android.synthetic.main.wildcard_fragment.clusterIdEd
 import kotlinx.android.synthetic.main.wildcard_fragment.endpointIdEd
 import kotlinx.android.synthetic.main.wildcard_fragment.eventIdEd
+import kotlinx.android.synthetic.main.wildcard_fragment.urgentEd
 import kotlinx.android.synthetic.main.wildcard_fragment.outputTv
 import kotlinx.android.synthetic.main.wildcard_fragment.view.readBtn
 import kotlinx.android.synthetic.main.wildcard_fragment.view.readEventBtn
@@ -133,6 +134,7 @@ class WildcardFragment : Fragment() {
     val clusterId = getChipPathIdForText(clusterIdEd.text.toString())
     val attributeId = getChipPathIdForText(attributeIdEd.text.toString())
     val eventId = getChipPathIdForText(eventIdEd.text.toString())
+    val urgent = Boolean.valueOf(urgentEd.text.toString())
 
     if (type == ATTRIBUTE) {
       val attributePath = ChipAttributePath.newInstance(endpointId, clusterId, attributeId)
@@ -144,7 +146,7 @@ class WildcardFragment : Fragment() {
                                        minInterval,
                                        maxInterval)
     } else if (type == EVENT) {
-      val eventPath = ChipEventPath.newInstance(endpointId, clusterId, eventId)
+      val eventPath = ChipEventPath.newInstance(endpointId, clusterId, eventId, urgent)
       deviceController.subscribeToEventPath(subscriptionEstablishedCallback,
                                       resubscriptionAttemptCallback,
                                       reportEventCallback,
@@ -169,7 +171,7 @@ class WildcardFragment : Fragment() {
                           addressUpdateFragment.deviceId),
                           listOf(attributePath))
     } else if (type == EVENT) {
-      val eventPath = ChipEventPath.newInstance(endpointId, clusterId, eventId)
+      val eventPath = ChipEventPath.newInstance(endpointId, clusterId, eventId, false)
       deviceController.readEventPath(reportEventCallback,
                           ChipClient.getConnectedDevicePointer(requireContext(),
                           addressUpdateFragment.deviceId),

@joonhaengHeo
Copy link
Contributor Author

I will check comments and spec.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants