Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 301fddda authored by Sarah Chin's avatar Sarah Chin Committed by Gerrit Code Review
Browse files

Merge "Add support for RAT-based TCP buffer sizes"

parents b7de2357 0dab2ebb
Loading
Loading
Loading
Loading
+11 −7
Original line number Original line Diff line number Diff line
@@ -2566,23 +2566,27 @@
         rat-name:rmem_min,rmem_def,rmem_max,wmem_min,wmem_def,wmem_max
         rat-name:rmem_min,rmem_def,rmem_max,wmem_min,wmem_def,wmem_max
         If no value is found for the rat-name in use, the system default will be applied.
         If no value is found for the rat-name in use, the system default will be applied.


         This is deprecated. Please use config_tcp_buffers.
         This is deprecated. Please use config_mobile_tcp_buffers for rat-based TCP buffers sizes or
         config_tcp_buffers for rat-independent TCP buffer sizes.
    -->
    -->
    <string-array name="config_mobile_tcp_buffers">
    <string-array name="config_mobile_tcp_buffers">
    </string-array>
    </string-array>


    <!-- Configure tcp buffer sizes per network type in the form:
         network-type:rmem_min,rmem_def,rmem_max,wmem_min,wmem_def,wmem_max

         The network-type must be a valid DataConfigNetworkType value. If no value is found for the
         network-type in use, config_tcp_buffers will be used instead.
    -->
    <string-array name="config_network_type_tcp_buffers">
    </string-array>

    <!-- Configure tcp buffer sizes in the form:
    <!-- Configure tcp buffer sizes in the form:
         rmem_min,rmem_def,rmem_max,wmem_min,wmem_def,wmem_max
         rmem_min,rmem_def,rmem_max,wmem_min,wmem_def,wmem_max
         If this is configured as an empty string, the system default will be applied.
         If this is configured as an empty string, the system default will be applied.


         For now this config is used by mobile data only. In the future it should be
         For now this config is used by mobile data only. In the future it should be
         used by Wi-Fi as well.
         used by Wi-Fi as well.

         Note that starting from Android 13, the TCP buffer size is fixed after boot up, and should
         never be changed based on carriers or the network types. The value should be configured
         appropriately based on the device's memory and performance. It is recommended to use lower
         values if the device has low memory or doesn't support high-speed network such like LTE,
         NR, or Wifi.
    -->
    -->
    <string name="config_tcp_buffers" translatable="false"></string>
    <string name="config_tcp_buffers" translatable="false"></string>


+1 −0
Original line number Original line Diff line number Diff line
@@ -466,6 +466,7 @@
  <java-symbol type="integer" name="config_safe_media_volume_usb_mB" />
  <java-symbol type="integer" name="config_safe_media_volume_usb_mB" />
  <java-symbol type="integer" name="config_mobile_mtu" />
  <java-symbol type="integer" name="config_mobile_mtu" />
  <java-symbol type="array"   name="config_mobile_tcp_buffers" />
  <java-symbol type="array"   name="config_mobile_tcp_buffers" />
  <java-symbol type="array"   name="config_network_type_tcp_buffers" />
  <java-symbol type="string"  name="config_tcp_buffers" />
  <java-symbol type="string"  name="config_tcp_buffers" />
  <java-symbol type="integer" name="config_volte_replacement_rat"/>
  <java-symbol type="integer" name="config_volte_replacement_rat"/>
  <java-symbol type="integer" name="config_valid_wappush_index" />
  <java-symbol type="integer" name="config_valid_wappush_index" />