Skip to content
Snippets Groups Projects
  1. Oct 26, 2023
    • Mark's avatar
      SyncSM8.1 always call transitionTo under processMessage · 50eef831
      Mark authored
      As state transitions always occur after a message has been processed,
      calling transitionTo only under processMessage makes the flow easier
      to understand and less error-prone.
      
      The risk of this change is very minimal since it is only about
      handling the error, but tethering will stop regardless.
      
      Test: atest TetheringTests
      
      Change-Id: I56c6cf6cc989464ee84a8333ac131afc808a3d95
      50eef831
    • Mark's avatar
      SyncSM08: handle IpServer requestEnableTethering callback in mainSM · 5cc386bd
      Mark authored
      This can make it easier to adopt SM shim replacement in follow up change,
      as both SyncSM and AsyncSM will process the same message without any
      difference.
      
      This change also fix a problem that bring up downstream before it's
      IpServer completely disabled.
      
      Previous:
      CMD_NOTIFY_PREFIX_CONFLICT -> requestEnableTethering(false) ->
      requestEnableTethering(true) -> IpServer stopped ->
      reportTetherStateChanged(downstream inactive) -> IpServer started
      -> reportTetherStateChanged(downstream active)
      New:
      CMD_NOTIFY_PREFIX_CONFLICT -> requestEnableTethering(false) ->
      IpServer stopped -> reportTetherStateChanged(downstream inactive)
      -> requestEnableTethering(true) -> IpServer started
      -> reportTetherStateChanged(downstream active)
      
      Test: atest MtsTetheringTestLatestSdk
      Change-Id: Ibe22b300c56125359f4fa452bd01a0a2381fda23
      5cc386bd
    • Mark's avatar
      SyncSM07.1: Add a test that shows tethering restarts when disabling · d81f6ef4
      Mark authored
      When tethering restarts due to an IP conflict, it starts to
      bring up downstream before its IpServer is completely disabled.
      
      Test: atest TetheringTests
      Change-Id: I0b0f0bf1bb9ac8421c05fe512d5082d095fa7180
      d81f6ef4
    • Mark's avatar
      SyncSM07: Replace IpServer's state machine with StateMachineShim · 21502964
      Mark authored
      A simple replacement without changing any behavior.
      
      Test: atest TetheringTests
      Change-Id: I34903b57df68081e974163edec82a851ee4ccc98
      21502964
    • Mark's avatar
      SyncSM06: Add StateMachineShim · 2ec1595d
      Mark authored
      Test: atest StateMachineShimTest
      
      Change-Id: Ic818aa55e7e0fd7a62dfce50a6ad719e6e1c44ec
      2ec1595d
  2. Oct 25, 2023
  3. Oct 24, 2023
  4. Oct 23, 2023
Loading