Skip to content
Snippets Groups Projects
  1. Mar 18, 2021
    • Remi NGUYEN VAN's avatar
      Move network selection utils to Connectivity · e3fa0dd7
      Remi NGUYEN VAN authored
      NetworkScore, IOnCompleteListener should be in the Connectivity scope,
      as they are supporting classes for the ConnectivityManager APIs.
      
      Bug: 181512874
      Test: m
      Change-Id: I6dc40a80e0bf5f86f5625b657b01eba969d41fcf
      e3fa0dd7
  2. Mar 17, 2021
  3. Mar 16, 2021
  4. Mar 15, 2021
    • paulhu's avatar
      Replace interal okhttp APIs · 405d8911
      paulhu authored
      Connectivity is becoming a mainline module in S but mainline
      modules are not allowed to use non-formal APIs. Thus, replace
      internal okhttp APIs to stable libcore APIs which are created for
      using HttpURLConnectionFactory.
      
      Bug: 182238821
      Test: atest FrameworksNetTests
      Change-Id: I56ba1b9e6e94f9c6519c3f1c8f0c5993fccbe185
      405d8911
    • Lorenzo Colitti's avatar
    • Aaron Huang's avatar
      Merge changes from topic "pacproxy-service" · c8e73fa9
      Aaron Huang authored
      * changes:
        Make PacProxyService be a system service
        Revert^2 "Refactor setCurrentProxyScriptUrl to a void method"
      c8e73fa9
    • Sorin Basca's avatar
      Merge changes from topic "jni-errno-exception" · 3a810d37
      Sorin Basca authored
      * changes:
        Using jniThrowErrnoException in android_util_Process
        Using jniThrowErrnoException in android_os_SharedMemory
        Using jniThrowErrnoException in android_net_NetworkUtils
      3a810d37
    • lucaslin's avatar
      Add comments to describe the value of converting hex to decimal · 0cdcea18
      lucaslin authored
      Bug: 172183305
      Test: N/A
      Change-Id: Id274295d6c8c97d3014214f875168ff968f79bb6
      0cdcea18
    • Chalard Jean's avatar
      [NS01] Add NetworkScore · 2801857f
      Chalard Jean authored
      As attested by numerous TODOs in the code, a new way of
      representing network quality and policy is needed instead
      of an int.
      
      An int representing the quality of the network requires
      all parties using it to know how all other parties are
      using it, and implementation details about the decision
      algorithm. For all intents and purposes, the selection
      is left to individual network factories who try to
      achieve a desired result while piecing together all
      possible states of the system.
      
      As the number of such cases and desires increases, this
      becomes both intractable and unmaintainable. Indeed, at
      this time in the codebase nobody can really predict exactly
      how a given change in score will affect selection across
      the board, and it is essentially impossible to figure out
      the behavior of network selection by inspecting the code
      because the moving parts are scattered throughout the
      entire codebase.
      
      Having an object encapsulating policy and quality values
      will let us centralize the selection and make it again
      possible to maintain without knowledge of all behaviors
      of all network factories. It will also provide better
      guarantees of respecting policy, and allow bugfixes that
      were not possible before because they'd touch too many
      parts of the code.
      
      Test: FrameworksNetTests FrameworksWifiTests NetworkStackTests
      Change-Id: I3185a6412b9b659798faf0c6882699e9c63cc115
      2801857f
Loading