Skip to content
Snippets Groups Projects
  1. Feb 14, 2024
    • Remi NGUYEN VAN's avatar
      Add CtsNetTestCases to MTS · 4a01ecf7
      Remi NGUYEN VAN authored
      CtsNetTestCasesLatestSdk was originally used for MTS to prevent
      installation issues with CUR_DEVELOPMENT target SDK modules (as is the
      case for CtsNetTestCases) not installing on released devices.
      
      However setting the min_sdk to a given value should be enough for that
      purpose. While there may have been other blockers requiring separation
      of CtsNetTestCases and CtsNetTestCasesLatestSdk at the time (in the Q/R
      timeframe), more recent modules like CtsAdServicesDeviceTestCases seem
      to be using CUR_DEVELOPMENT target SDK in MTS just fine.
      
      Not specifying a target SDK means that the branch default will be used,
      depending on the release configuration. So for example trunk_staging
      would typically be CUR_DEVELOPMENT=10000, and "next" may use the SDK
      version of that release.
      This makes sense as a test suite targeting CUR_DEVELOPMENT is necessary
      to verify a development build, while a production "next" configuration
      should generally use the latest released SDK. But in any case, for
      CtsNetTestCases purposes, this would cause the exercised connectivity
      APIs to use their latest non-compatibility behavior, which is what
      tests expect.
      
      Considering this, add CtsNetTestCases to MTS, so that
      CtsNetTestCasesLatestSdk can be removed. This will allow having one test
      suite for both CTS and MTS, which in turns allows marking
      CtsNetTestCases as MCTS, so that the version of the test to run is
      autodetected based on installed modules.
      
      Note this change also removes the unnecessary "platform_api" statement
      and comment as this is already handled in
      framework-connectivity-test-defaults.
      
      Bug: 317913702
      Test: m, aapt dump badging, verify (min)sdkVersion=30, targetSdk=10000
      Change-Id: I2267e5c9219f059872928cc681547c3bd5fbc394
      4a01ecf7
  2. Feb 08, 2024
  3. Feb 07, 2024
  4. Feb 06, 2024
  5. Feb 05, 2024
  6. Feb 04, 2024
  7. Feb 03, 2024
  8. Feb 02, 2024
  9. Feb 01, 2024
    • Kangping Dong's avatar
    • Kangping Dong's avatar
      [Thread] restarts when ot-daemon crashes · 3deddc7b
      Kangping Dong authored
      This commit handles the ot-daemon crash by automatically restarting it
      and rejoin the network if ever joined.
      
      This also fixes the address not deleted issue in TunInterfaceContorller.
      
      Bug: 321540728
      Bug: 309792480
      Change-Id: I3ed466eb70818974a1e57f01456363bdf82915d5
      3deddc7b
    • Remi NGUYEN VAN's avatar
    • Remi NGUYEN VAN's avatar
      Initialize serviceCache before first use · 578e0dc6
      Remi NGUYEN VAN authored
      The comment that "The very first posted task is to initialize the
      service cache, so it will be always set in other tasks running on
      the handler" did not consider that if the looper was provided by the
      caller, it is possible for other tasks to run on it before the
      serviceCache is initialized. In particular, if the caller calls
      registerListener on the looper thread right after calling the
      constructor, this would be executed before the posted initialization
      task.
      
      In practice this does not happen as MdnsDiscoveryManager is created in
      the NsdService constructor, and any usage of it is on messages posted to
      the NsdService handler thread after the constructor has been called; so
      the service cache initialization does happen before any other
      MdnsDiscoveryManager task.
      
      As this is error-prone, just initialize the service cache before first
      use on the handler thread, as it is only used for
      createServiceTypeClient, which runs on the handler thread.
      
      Test: atest
      Change-Id: Ie341bb71ef327dceb4f0aa6fc2d241d6e9cbb900
      578e0dc6
    • Remi NGUYEN VAN's avatar
Loading