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

Tv casting app stop connect when user navigates back before confirming passcode in commission #37278

Conversation

yuenton-amazon
Copy link
Contributor

@yuenton-amazon yuenton-amazon commented Jan 28, 2025

Updated Android tv-casting-app to send stopConnect command when user exits UDC before confirming passcode

Changes

  1. Added IsPendingPasscodeFromUser() to CastingPlayer. This function
    will return true if we are still connecting and pending user action
    for passcode
  2. ConnectionExampleFragment.java onDestroy() calls stopConnect() if user
    has not confirmed passcode
  3. MCConnectionExampleView ConnectingView dissapear calls stopConnect()
    if user has not confirmed passcode

Testing

  1. Manually verified UDC attempt is successful both Android iOS for following

    1. Attempt UDC attempt (both commissionee & commissioner generated passcode)
    2. Navigate back to discovery page
    3. Start new UDC attempt (both commissionee & commissioner generated passcode)
  2. Manually verified UDC attempt is successful both Android iOS for following. UDC will finish in the background.

    1. Attempt UDC attempt (both commissionee & commissioner generated passcode)
    2. Confirm passcode on TV app or casting app depending on who
      generated passcode
    3. Navigate back before commission fnishes.
  3. Manual regression test following

    • UDC attempt happy path (no navigate back) for both commissinee &
      commissioner generated passcode

@yuenton-amazon yuenton-amazon requested review from a team as code owners January 28, 2025 23:14
@CLAassistant
Copy link

CLAassistant commented Jan 28, 2025

CLA assistant check
All committers have signed the CLA.

@yuenton-amazon yuenton-amazon marked this pull request as draft January 29, 2025 00:49
@yuenton-amazon yuenton-amazon marked this pull request as ready for review January 29, 2025 01:31
@yuenton-amazon yuenton-amazon force-pushed the tv-casting-app-stop-connect-when-user-navigates-back-before-confirming-passcode-in-commission branch from 039b564 to 479a03b Compare January 29, 2025 17:29
Copy link
Contributor

@sharadb-amazon sharadb-amazon left a comment

Choose a reason for hiding this comment

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

@yuenton-amazon yuenton-amazon force-pushed the tv-casting-app-stop-connect-when-user-navigates-back-before-confirming-passcode-in-commission branch from 479a03b to 5d31461 Compare February 14, 2025 00:54
Copy link

github-actions bot commented Feb 14, 2025

PR #37278: Size comparison from 9d99ef2 to 5d31461

Full report (3 builds for cc32xx, stm32)
platform target config section 9d99ef2 5d31461 change % change
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 538894 538894 0 0.0
RAM 205208 205208 0 0.0
lock CC3235SF_LAUNCHXL FLASH 572766 572766 0 0.0
RAM 205360 205360 0 0.0
stm32 light STM32WB5MM-DK FLASH 459736 459736 0 0.0
RAM 141568 141568 0 0.0

Updated Android & iOS tv-casting-app to send stopConnect command when user
exits UDC before confirming passcode

Changes
1. Added IsPendingPasscodeFromUser() to CastingPlayer. This function
   will return true if we are still connecting and pending user action
   for passcode
2. ConnectionExampleFragment.java onDestroy() calls stopConnect() if user
   has not confirmed passcode
4. MCConnectionExampleView ConnectingView dissapear calls stopConnect()
   if user has not confirmed passcode

Test
1. Manually verified UDC attempt is successful both Android iOS for following
   1. Attempt UDC attempt (both commissionee & commissioner generated passcode)
   2. Navigate back to discovery page
   3. Start new UDC attempt (both commissionee & commissioner generated passcode)

2. Manually verified UDC attempt is successful both Android iOS for following. UDC will finish in the background.
   1. Attempt UDC attempt (both commissionee & commissioner generated passcode)
   2. Confirm passcode on TV app or casting app depending on who
      generated passcode
   3. Navigate back before commission fnishes.

3. Manual regression test following
   * UDC attempt happy path (no navigate back) for both commissinee &
     commissioner generated passcode
@yuenton-amazon yuenton-amazon force-pushed the tv-casting-app-stop-connect-when-user-navigates-back-before-confirming-passcode-in-commission branch from 5d31461 to ac97dce Compare March 1, 2025 03:32
Copy link

github-actions bot commented Mar 1, 2025

PR #37278: Size comparison from de27944 to ac97dce

Full report (1 build for stm32)
platform target config section de27944 ac97dce change % change
stm32 light STM32WB5MM-DK FLASH 459904 459904 0 0.0
RAM 141472 141472 0 0.0

Updated native layer and iOS tv-casting-app to use native layer
ConnectionState instead of a pendingPasscode customer check.

Changes
* Expose native layer ConnectionState to iOS tv-casting-app
* Update iOS tv-casting-app to use ConnectionState to determine if we
  should call stopConnect()
* Only call stopConnect() on navigate back from ConnectionExampleView
* Updated doc to indicate when a object method will free itself as a
  side effect

Test
1. Manually verified UDC attempt is successful both Android iOS for following
   1. Attempt UDC attempt (both commissionee & commissioner generated passcode)
   2. Navigate back to discovery page
   3. Start new UDC attempt (both commissionee & commissioner generated passcode)

2. Manually verified UDC attempt is successful both Android iOS for following. UDC will finish in the background.
   1. Attempt UDC attempt (both commissionee & commissioner generated passcode)
   2. Confirm passcode on TV app or casting app depending on who
      generated passcode
   3. Navigate back before commission fnishes.

3. Manual regression test following
   * UDC attempt happy path (no navigate back) for both commissinee &
     commissioner generated passcode
Updated JNI and Android tv-casting-app to use native layer
ConnectionState instead of a pendingPasscode customer check.

Changes
* Expose native layer ConnectionState to Android tv-casting-app
* Update Android tv-casting-app to use ConnectionState to determine if we
  should call stopConnect()
* Only call stopConnect() on navigate back from
  ConnectionExampleFragmnet

Test
1. Manually verified UDC attempt is successful both Android iOS for following
   1. Attempt UDC attempt (both commissionee & commissioner generated passcode)
   2. Navigate back to discovery page
   3. Start new UDC attempt (both commissionee & commissioner generated passcode)

2. Manually verified UDC attempt is successful both Android iOS for following. UDC will finish in the background.
   1. Attempt UDC attempt (both commissionee & commissioner generated passcode)
   2. Confirm passcode on TV app or casting app depending on who
      generated passcode
   3. Navigate back before commission fnishes.

3. Manual regression test following
   * UDC attempt happy path (no navigate back) for both commissinee &
     commissioner generated passcode
@yuenton-amazon yuenton-amazon force-pushed the tv-casting-app-stop-connect-when-user-navigates-back-before-confirming-passcode-in-commission branch from ac97dce to 208e4d6 Compare March 1, 2025 03:58
Copy link

github-actions bot commented Mar 1, 2025

PR #37278: Size comparison from 74d91fd to e1c6340

Full report (74 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
platform target config section 74d91fd e1c6340 change % change
bl602 lighting-app bl602+mfd+littlefs+rpc FLASH 1096862 1096862 0 0.0
RAM 94842 94842 0 0.0
bl702 lighting-app bl702+eth FLASH 651836 651836 0 0.0
RAM 33509 33509 0 0.0
bl702+wifi FLASH 829108 829108 0 0.0
RAM 22233 22233 0 0.0
bl706+mfd+rpc+littlefs FLASH 1061504 1061504 0 0.0
RAM 32157 32157 0 0.0
bl702l contact-sensor-app bl702l+mfd+littlefs FLASH 892348 892348 0 0.0
RAM 26896 26896 0 0.0
lighting-app bl702l+mfd+littlefs FLASH 975244 975244 0 0.0
RAM 24644 24644 0 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 FLASH 817216 817216 0 0.0
RAM 120272 120272 0 0.0
lock-ftd LP_EM_CC1354P10_6 FLASH 826136 826136 0 0.0
RAM 125368 125368 0 0.0
pump-app LP_EM_CC1354P10_6 FLASH 773020 773020 0 0.0
RAM 113740 113740 0 0.0
pump-controller-app LP_EM_CC1354P10_6 FLASH 757296 757296 0 0.0
RAM 113948 113948 0 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 540758 540758 0 0.0
RAM 205128 205128 0 0.0
lock CC3235SF_LAUNCHXL FLASH 574882 574882 0 0.0
RAM 205376 205376 0 0.0
cyw30739 light CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 658933 658933 0 0.0
RAM 75412 75412 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 678785 678785 0 0.0
RAM 78052 78052 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 678785 678785 0 0.0
RAM 78052 78052 0 0.0
CYW930739M2EVB-02 unknown 2040 2040 0 0.0
FLASH 635717 635717 0 0.0
RAM 70480 70480 0 0.0
light-switch CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 619173 619173 0 0.0
RAM 71652 71652 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 638809 638809 0 0.0
RAM 74196 74196 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 638809 638809 0 0.0
RAM 74196 74196 0 0.0
lock CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 638661 638661 0 0.0
RAM 74660 74660 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 658377 658377 0 0.0
RAM 77204 77204 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 658377 658377 0 0.0
RAM 77204 77204 0 0.0
thermostat CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 615001 615001 0 0.0
RAM 68748 68748 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 634853 634853 0 0.0
RAM 71388 71388 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 634853 634853 0 0.0
RAM 71388 71388 0 0.0
efr32 lock-app BRD4187C FLASH 939760 939760 0 0.0
RAM 159920 159920 0 0.0
BRD4338a FLASH 732744 732744 0 0.0
RAM 234828 234828 0 0.0
window-app BRD4187C FLASH 1032200 1032200 0 0.0
RAM 128024 128024 0 0.0
esp32 all-clusters-app c3devkit DRAM 98736 98736 0 0.0
FLASH 1591770 1591770 0 0.0
IRAM 83820 83820 0 0.0
m5stack DRAM 117516 117516 0 0.0
FLASH 1558614 1558614 0 0.0
IRAM 117039 117039 0 0.0
linux air-purifier-app debug unknown 4752 4752 0 0.0
FLASH 2653555 2653555 0 0.0
RAM 112304 112304 0 0.0
all-clusters-app debug unknown 5560 5560 0 0.0
FLASH 5973942 5973942 0 0.0
RAM 516568 516568 0 0.0
all-clusters-minimal-app debug unknown 5456 5456 0 0.0
FLASH 5299944 5299944 0 0.0
RAM 222488 222488 0 0.0
bridge-app debug unknown 5472 5472 0 0.0
FLASH 4652292 4652292 0 0.0
RAM 201344 201344 0 0.0
camera-app debug unknown 5456 5456 0 0.0
FLASH 4675460 4675460 0 0.0
RAM 195792 195792 0 0.0
chip-tool debug unknown 6112 6112 0 0.0
FLASH 13305205 13305205 0 0.0
RAM 603456 603456 0 0.0
chip-tool-ipv6only arm64 unknown 21976 21976 0 0.0
FLASH 11498088 11498088 0 0.0
RAM 656136 656136 0 0.0
fabric-admin debug unknown 5800 5800 0 0.0
FLASH 11569967 11569967 0 0.0
RAM 603240 603240 0 0.0
fabric-bridge-app debug unknown 4720 4720 0 0.0
FLASH 4455890 4455890 0 0.0
RAM 188168 188168 0 0.0
fabric-sync debug unknown 4976 4976 0 0.0
FLASH 5572837 5572837 0 0.0
RAM 471600 471600 0 0.0
lighting-app debug+rpc+ui unknown 6184 6184 0 0.0
FLASH 5519105 5519105 0 0.0
RAM 205168 205168 0 0.0
lock-app debug unknown 5424 5424 0 0.0
FLASH 4692142 4692142 0 0.0
RAM 192344 192344 0 0.0
ota-provider-app debug unknown 4760 4760 0 0.0
FLASH 4314320 4314320 0 0.0
RAM 181000 181000 0 0.0
ota-requestor-app debug unknown 4712 4712 0 0.0
FLASH 4444672 4444672 0 0.0
RAM 185488 185488 0 0.0
shell debug unknown 4240 4240 0 0.0
FLASH 2982540 2982540 0 0.0
RAM 145688 145688 0 0.0
thermostat-no-ble arm64 unknown 9448 9448 0 0.0
FLASH 4141880 4141880 0 0.0
RAM 229840 229840 0 0.0
tv-app debug unknown 5752 5752 0 0.0
FLASH 5911717 5911717 0 0.0
RAM 595032 595032 0 0.0
tv-casting-app debug unknown 5320 5320 0 0.0
FLASH 11475693 11475693 0 0.0
RAM 718672 718672 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 FLASH 913676 913676 0 0.0
RAM 142909 142909 0 0.0
nrf7002dk_nrf5340_cpuapp FLASH 904420 904420 0 0.0
RAM 125245 125245 0 0.0
all-clusters-minimal-app nrf52840dk_nrf52840 FLASH 850456 850456 0 0.0
RAM 141271 141271 0 0.0
nxp contact k32w0+release FLASH 587440 587440 0 0.0
RAM 70980 70980 0 0.0
mcxw71+release FLASH 601264 601264 0 0.0
RAM 63096 63096 0 0.0
light k32w0+release FLASH 613172 613172 0 0.0
RAM 70268 70268 0 0.0
k32w1+release FLASH 685888 685888 0 0.0
RAM 48584 48584 0 0.0
lock mcxw71+release FLASH 750096 750096 0 0.0
RAM 67500 67500 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 FLASH 1658220 1658220 0 0.0
RAM 212344 212344 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 FLASH 1562460 1562460 0 0.0
RAM 208560 208560 0 0.0
light cy8ckit_062s2_43012 FLASH 1441276 1441276 0 0.0
RAM 197296 197296 0 0.0
lock cy8ckit_062s2_43012 FLASH 1470164 1470164 0 0.0
RAM 224960 224960 0 0.0
qpg lighting-app qpg6105+debug FLASH 663836 663836 0 0.0
RAM 105156 105156 0 0.0
lock-app qpg6105+debug FLASH 622304 622304 0 0.0
RAM 99768 99768 0 0.0
stm32 light STM32WB5MM-DK FLASH 459904 459904 0 0.0
RAM 141472 141472 0 0.0
telink bridge-app tl7218x FLASH 669256 669256 0 0.0
RAM 90752 90752 0 0.0
contact-sensor-app tlsr9528a_retention FLASH 622118 622118 0 0.0
RAM 31488 31488 0 0.0
light-app-ota-compress-lzma-shell-factory-data tl3218x FLASH 760904 760904 0 0.0
RAM 40420 40420 0 0.0
light-app-ota-shell-factory-data tl7218x FLASH 754012 754012 0 0.0
RAM 97540 97540 0 0.0
light-switch-app-ota-compress-lzma-factory-data tl7218x_retention FLASH 681062 681062 0 0.0
RAM 52192 52192 0 0.0
light-switch-app-ota-compress-lzma-shell-factory-data tlsr9528a FLASH 709620 709620 0 0.0
RAM 73400 73400 0 0.0
light-switch-app-ota-shell-factory-data tl3218x_retention FLASH 702170 702170 0 0.0
RAM 37664 37664 0 0.0
lighting-app-ota-factory-data tlsr9118bdk40d FLASH 601736 601736 0 0.0
RAM 137360 137360 0 0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d FLASH 789028 789028 0 0.0
RAM 96388 96388 0 0.0
tizen all-clusters-app arm unknown 5144 5144 0 0.0
FLASH 1770756 1770756 0 0.0
RAM 94152 94152 0 0.0
chip-tool-ubsan arm unknown 11492 11492 0 0.0
FLASH 18984862 18984862 0 0.0
RAM 8306668 8306668 0 0.0

@sharadb-amazon sharadb-amazon enabled auto-merge (squash) March 3, 2025 18:26
Updated JNI and Android tv-casting-app to use CharToStringUTF
util function to create jstring and handle NULL JNIEnv interface

Changes
* JNI to use CharToStringUTF util function to create jstring
* Updated documentation for new JNI functions

Test
1. Manually verified UDC attempt is successful both Android iOS for following
   1. Attempt UDC attempt (both commissionee & commissioner generated passcode)
   2. Navigate back to discovery page
   3. Start new UDC attempt (both commissionee & commissioner generated passcode)

2. Manually verified UDC attempt is successful both Android iOS for following. UDC will finish in the background.
   1. Attempt UDC attempt (both commissionee & commissioner generated passcode)
   2. Confirm passcode on TV app or casting app depending on who
      generated passcode
   3. Navigate back before commission fnishes.

3. Manual regression test following
   * UDC attempt happy path (no navigate back) for both commissinee &
     commissioner generated passcode
auto-merge was automatically disabled March 4, 2025 01:16

Head branch was pushed to by a user without write access

Updated JNI and Android tv-casting-app to use CharToStringUTF
util function to create jstring and handle NULL JNIEnv interface

Changes
* JNI to use CharToStringUTF util function to create jstring for all
  ConnectionState and not just errors

Test
1. Manually verified UDC attempt is successful both Android iOS for following
   1. Attempt UDC attempt (both commissionee & commissioner generated passcode)
   2. Navigate back to discovery page
   3. Start new UDC attempt (both commissionee & commissioner generated passcode)

2. Manually verified UDC attempt is successful both Android iOS for following. UDC will finish in the background.
   1. Attempt UDC attempt (both commissionee & commissioner generated passcode)
   2. Confirm passcode on TV app or casting app depending on who
      generated passcode
   3. Navigate back before commission fnishes.

3. Manual regression test following
   * UDC attempt happy path (no navigate back) for both commissinee &
     commissioner generated passcode
Copy link

github-actions bot commented Mar 4, 2025

PR #37278: Size comparison from 74d91fd to 883b69a

Full report (74 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
platform target config section 74d91fd 883b69a change % change
bl602 lighting-app bl602+mfd+littlefs+rpc FLASH 1096862 1096868 6 0.0
RAM 94842 94842 0 0.0
bl702 lighting-app bl702+eth FLASH 651836 651842 6 0.0
RAM 33509 33509 0 0.0
bl702+wifi FLASH 829108 829114 6 0.0
RAM 22233 22233 0 0.0
bl706+mfd+rpc+littlefs FLASH 1061504 1061510 6 0.0
RAM 32157 32157 0 0.0
bl702l contact-sensor-app bl702l+mfd+littlefs FLASH 892348 892354 6 0.0
RAM 26896 26896 0 0.0
lighting-app bl702l+mfd+littlefs FLASH 975244 975250 6 0.0
RAM 24644 24644 0 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 FLASH 817216 817232 16 0.0
RAM 120272 120272 0 0.0
lock-ftd LP_EM_CC1354P10_6 FLASH 826136 826152 16 0.0
RAM 125368 125368 0 0.0
pump-app LP_EM_CC1354P10_6 FLASH 773020 773036 16 0.0
RAM 113740 113740 0 0.0
pump-controller-app LP_EM_CC1354P10_6 FLASH 757296 757312 16 0.0
RAM 113948 113948 0 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL FLASH 540758 540774 16 0.0
RAM 205128 205128 0 0.0
lock CC3235SF_LAUNCHXL FLASH 574882 574890 8 0.0
RAM 205376 205376 0 0.0
cyw30739 light CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 658933 658941 8 0.0
RAM 75412 75412 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 678785 678801 16 0.0
RAM 78052 78052 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 678785 678801 16 0.0
RAM 78052 78052 0 0.0
CYW930739M2EVB-02 unknown 2040 2040 0 0.0
FLASH 635717 635725 8 0.0
RAM 70480 70480 0 0.0
light-switch CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 619173 619181 8 0.0
RAM 71652 71652 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 638809 638817 8 0.0
RAM 74196 74196 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 638809 638817 8 0.0
RAM 74196 74196 0 0.0
lock CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 638661 638669 8 0.0
RAM 74660 74660 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 658377 658393 16 0.0
RAM 77204 77204 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 658377 658393 16 0.0
RAM 77204 77204 0 0.0
thermostat CYW30739B2-P5-EVK-01 unknown 2040 2040 0 0.0
FLASH 615001 615009 8 0.0
RAM 68748 68748 0 0.0
CYW30739B2-P5-EVK-02 unknown 2040 2040 0 0.0
FLASH 634853 634869 16 0.0
RAM 71388 71388 0 0.0
CYW30739B2-P5-EVK-03 unknown 2040 2040 0 0.0
FLASH 634853 634869 16 0.0
RAM 71388 71388 0 0.0
efr32 lock-app BRD4187C FLASH 939760 939760 0 0.0
RAM 159920 159920 0 0.0
BRD4338a FLASH 732744 733328 584 0.1
RAM 234828 234840 12 0.0
window-app BRD4187C FLASH 1032200 1032200 0 0.0
RAM 128024 128024 0 0.0
esp32 all-clusters-app c3devkit DRAM 98736 98736 0 0.0
FLASH 1591770 1591774 4 0.0
IRAM 83820 83820 0 0.0
m5stack DRAM 117516 117516 0 0.0
FLASH 1558614 1558614 0 0.0
IRAM 117039 117039 0 0.0
linux air-purifier-app debug unknown 4752 4752 0 0.0
FLASH 2653555 2653579 24 0.0
RAM 112304 112304 0 0.0
all-clusters-app debug unknown 5560 5560 0 0.0
FLASH 5973942 5974000 58 0.0
RAM 516568 516568 0 0.0
all-clusters-minimal-app debug unknown 5456 5456 0 0.0
FLASH 5299944 5300002 58 0.0
RAM 222488 222488 0 0.0
bridge-app debug unknown 5472 5472 0 0.0
FLASH 4652292 4652350 58 0.0
RAM 201344 201344 0 0.0
camera-app debug unknown 5456 5456 0 0.0
FLASH 4675460 4675486 26 0.0
RAM 195792 195792 0 0.0
chip-tool debug unknown 6112 6112 0 0.0
FLASH 13305205 13305263 58 0.0
RAM 603456 603456 0 0.0
chip-tool-ipv6only arm64 unknown 21976 21976 0 0.0
FLASH 11498088 11497544 -544 -0.0
RAM 656136 656120 -16 -0.0
fabric-admin debug unknown 5800 5800 0 0.0
FLASH 11569967 11570025 58 0.0
RAM 603240 603240 0 0.0
fabric-bridge-app debug unknown 4720 4720 0 0.0
FLASH 4455890 4455916 26 0.0
RAM 188168 188168 0 0.0
fabric-sync debug unknown 4976 4976 0 0.0
FLASH 5572837 5572901 64 0.0
RAM 471600 471600 0 0.0
lighting-app debug+rpc+ui unknown 6184 6192 8 0.1
FLASH 5519105 5519697 592 0.0
RAM 205168 205168 0 0.0
lock-app debug unknown 5424 5424 0 0.0
FLASH 4692142 4692168 26 0.0
RAM 192344 192344 0 0.0
ota-provider-app debug unknown 4760 4760 0 0.0
FLASH 4314320 4314346 26 0.0
RAM 181000 181000 0 0.0
ota-requestor-app debug unknown 4712 4712 0 0.0
FLASH 4444672 4444698 26 0.0
RAM 185488 185488 0 0.0
shell debug unknown 4240 4240 0 0.0
FLASH 2982540 2982604 64 0.0
RAM 145688 145688 0 0.0
thermostat-no-ble arm64 unknown 9448 9448 0 0.0
FLASH 4141880 4141464 -416 -0.0
RAM 229840 229808 -32 -0.0
tv-app debug unknown 5752 5752 0 0.0
FLASH 5911717 5911749 32 0.0
RAM 595032 595032 0 0.0
tv-casting-app debug unknown 5320 5320 0 0.0
FLASH 11475693 11475725 32 0.0
RAM 718672 718672 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 FLASH 913676 913684 8 0.0
RAM 142909 142909 0 0.0
nrf7002dk_nrf5340_cpuapp FLASH 904420 904428 8 0.0
RAM 125245 125245 0 0.0
all-clusters-minimal-app nrf52840dk_nrf52840 FLASH 850456 850464 8 0.0
RAM 141271 141271 0 0.0
nxp contact k32w0+release FLASH 587440 587456 16 0.0
RAM 70980 70980 0 0.0
mcxw71+release FLASH 601264 601272 8 0.0
RAM 63096 63096 0 0.0
light k32w0+release FLASH 613172 613188 16 0.0
RAM 70268 70268 0 0.0
k32w1+release FLASH 685888 685896 8 0.0
RAM 48584 48584 0 0.0
lock mcxw71+release FLASH 750096 750112 16 0.0
RAM 67500 67500 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 FLASH 1658220 1658236 16 0.0
RAM 212344 212344 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 FLASH 1562460 1562476 16 0.0
RAM 208560 208560 0 0.0
light cy8ckit_062s2_43012 FLASH 1441276 1441276 0 0.0
RAM 197296 197296 0 0.0
lock cy8ckit_062s2_43012 FLASH 1470164 1470164 0 0.0
RAM 224960 224960 0 0.0
qpg lighting-app qpg6105+debug FLASH 663836 663852 16 0.0
RAM 105156 105156 0 0.0
lock-app qpg6105+debug FLASH 622304 622312 8 0.0
RAM 99768 99768 0 0.0
stm32 light STM32WB5MM-DK FLASH 459904 459920 16 0.0
RAM 141472 141472 0 0.0
telink bridge-app tl7218x FLASH 669256 669270 14 0.0
RAM 90752 90752 0 0.0
contact-sensor-app tlsr9528a_retention FLASH 622118 622132 14 0.0
RAM 31488 31488 0 0.0
light-app-ota-compress-lzma-shell-factory-data tl3218x FLASH 760904 760918 14 0.0
RAM 40420 40420 0 0.0
light-app-ota-shell-factory-data tl7218x FLASH 754012 754026 14 0.0
RAM 97540 97540 0 0.0
light-switch-app-ota-compress-lzma-factory-data tl7218x_retention FLASH 681062 681076 14 0.0
RAM 52192 52192 0 0.0
light-switch-app-ota-compress-lzma-shell-factory-data tlsr9528a FLASH 709620 709634 14 0.0
RAM 73400 73400 0 0.0
light-switch-app-ota-shell-factory-data tl3218x_retention FLASH 702170 702184 14 0.0
RAM 37664 37664 0 0.0
lighting-app-ota-factory-data tlsr9118bdk40d FLASH 601736 601750 14 0.0
RAM 137360 137360 0 0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d FLASH 789028 789042 14 0.0
RAM 96388 96388 0 0.0
tizen all-clusters-app arm unknown 5144 5144 0 0.0
FLASH 1770756 1770780 24 0.0
RAM 94152 94040 -112 -0.1
chip-tool-ubsan arm unknown 11492 11492 0 0.0
FLASH 18984862 18984894 32 0.0
RAM 8306668 8306620 -48 -0.0

@yunhanw-google yunhanw-google merged commit ac1c96a into project-chip:master Mar 4, 2025
70 checks passed
gmarcosb pushed a commit to gmarcosb/connectedhomeip that referenced this pull request Mar 4, 2025
…g passcode in commission (project-chip#37278)

* [Amazon] StopConnect for UDC in Android tv-casting-app

Updated Android & iOS tv-casting-app to send stopConnect command when user
exits UDC before confirming passcode

Changes
1. Added IsPendingPasscodeFromUser() to CastingPlayer. This function
   will return true if we are still connecting and pending user action
   for passcode
2. ConnectionExampleFragment.java onDestroy() calls stopConnect() if user
   has not confirmed passcode
4. MCConnectionExampleView ConnectingView dissapear calls stopConnect()
   if user has not confirmed passcode

Test
1. Manually verified UDC attempt is successful both Android iOS for following
   1. Attempt UDC attempt (both commissionee & commissioner generated passcode)
   2. Navigate back to discovery page
   3. Start new UDC attempt (both commissionee & commissioner generated passcode)

2. Manually verified UDC attempt is successful both Android iOS for following. UDC will finish in the background.
   1. Attempt UDC attempt (both commissionee & commissioner generated passcode)
   2. Confirm passcode on TV app or casting app depending on who
      generated passcode
   3. Navigate back before commission fnishes.

3. Manual regression test following
   * UDC attempt happy path (no navigate back) for both commissinee &
     commissioner generated passcode

* [Amazon] StopConnect for UDC in Android tv-casting-app

Updated native layer and iOS tv-casting-app to use native layer
ConnectionState instead of a pendingPasscode customer check.

Changes
* Expose native layer ConnectionState to iOS tv-casting-app
* Update iOS tv-casting-app to use ConnectionState to determine if we
  should call stopConnect()
* Only call stopConnect() on navigate back from ConnectionExampleView
* Updated doc to indicate when a object method will free itself as a
  side effect

Test
1. Manually verified UDC attempt is successful both Android iOS for following
   1. Attempt UDC attempt (both commissionee & commissioner generated passcode)
   2. Navigate back to discovery page
   3. Start new UDC attempt (both commissionee & commissioner generated passcode)

2. Manually verified UDC attempt is successful both Android iOS for following. UDC will finish in the background.
   1. Attempt UDC attempt (both commissionee & commissioner generated passcode)
   2. Confirm passcode on TV app or casting app depending on who
      generated passcode
   3. Navigate back before commission fnishes.

3. Manual regression test following
   * UDC attempt happy path (no navigate back) for both commissinee &
     commissioner generated passcode

* [Amazon] StopConnect for UDC in Android tv-casting-app

Updated JNI and Android tv-casting-app to use native layer
ConnectionState instead of a pendingPasscode customer check.

Changes
* Expose native layer ConnectionState to Android tv-casting-app
* Update Android tv-casting-app to use ConnectionState to determine if we
  should call stopConnect()
* Only call stopConnect() on navigate back from
  ConnectionExampleFragmnet

Test
1. Manually verified UDC attempt is successful both Android iOS for following
   1. Attempt UDC attempt (both commissionee & commissioner generated passcode)
   2. Navigate back to discovery page
   3. Start new UDC attempt (both commissionee & commissioner generated passcode)

2. Manually verified UDC attempt is successful both Android iOS for following. UDC will finish in the background.
   1. Attempt UDC attempt (both commissionee & commissioner generated passcode)
   2. Confirm passcode on TV app or casting app depending on who
      generated passcode
   3. Navigate back before commission fnishes.

3. Manual regression test following
   * UDC attempt happy path (no navigate back) for both commissinee &
     commissioner generated passcode

* [Amazon] StopConnect for UDC in Android tv-casting-app

Applied restyle formatting

* [Amazon] StopConnect for UDC in Android tv-casting-app

Fix restyle CI error

* [Amazon] StopConnect for UDC in Android tv-casting-app

Updated JNI and Android tv-casting-app to use CharToStringUTF
util function to create jstring and handle NULL JNIEnv interface

Changes
* JNI to use CharToStringUTF util function to create jstring
* Updated documentation for new JNI functions

Test
1. Manually verified UDC attempt is successful both Android iOS for following
   1. Attempt UDC attempt (both commissionee & commissioner generated passcode)
   2. Navigate back to discovery page
   3. Start new UDC attempt (both commissionee & commissioner generated passcode)

2. Manually verified UDC attempt is successful both Android iOS for following. UDC will finish in the background.
   1. Attempt UDC attempt (both commissionee & commissioner generated passcode)
   2. Confirm passcode on TV app or casting app depending on who
      generated passcode
   3. Navigate back before commission fnishes.

3. Manual regression test following
   * UDC attempt happy path (no navigate back) for both commissinee &
     commissioner generated passcode

* [Amazon] StopConnect for UDC in Android tv-casting-app

Updated JNI and Android tv-casting-app to use CharToStringUTF
util function to create jstring and handle NULL JNIEnv interface

Changes
* JNI to use CharToStringUTF util function to create jstring for all
  ConnectionState and not just errors

Test
1. Manually verified UDC attempt is successful both Android iOS for following
   1. Attempt UDC attempt (both commissionee & commissioner generated passcode)
   2. Navigate back to discovery page
   3. Start new UDC attempt (both commissionee & commissioner generated passcode)

2. Manually verified UDC attempt is successful both Android iOS for following. UDC will finish in the background.
   1. Attempt UDC attempt (both commissionee & commissioner generated passcode)
   2. Confirm passcode on TV app or casting app depending on who
      generated passcode
   3. Navigate back before commission fnishes.

3. Manual regression test following
   * UDC attempt happy path (no navigate back) for both commissinee &
     commissioner generated passcode
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.

5 participants