Skip to content
Snippets Groups Projects
  1. Feb 08, 2022
  2. Feb 07, 2022
    • Etan Cohen's avatar
      Expose public APIs for IP & static IP configuration · 1e86b3af
      Etan Cohen authored
      Create public API for IP and static IP configuration.
      
      Bug: 209840828
      Test: atest android.net.cts.IpConfigurationTest
      Test: atest android.net.cts.StaticIpConfigurationTest
      Test: atest android.net.dhcp.DhcpResultsParcelableUtilTest
      Change-Id: I720f168d1023806970919ca5dd44239a276826b6
      1e86b3af
    • Rambo Wang's avatar
    • Lorenzo Colitti's avatar
      Fix libnetworkstats_test. · 0db496ef
      Lorenzo Colitti authored
      If libraries are moved from the platform to a module, the test
      will fail with:
      
      CANNOT LINK EXECUTABLE "/data/local/tmp/libnetworkstats_test/arm64/libnetworkstats_test": library "libnetworkstats.so" not found: needed by main executable
      
      This may be because it can't find libnetworkstats.so because that
      is in platform.
      
      In any case, since this is the test for libnetworkstats,
      dynamically linking libnetworkstats is incorrect, because it
      means if the same CL modifies both libnetworkstats and its test,
      that CL will run the modified test against the unmodified
      libnetworkstats.so on the device, when running updating tests
      without reflashing the device.
      
      Also remove libutils because it does not seem to be needed.
      
      Test: atest libnetworkstats_test passes with libraries moved
      Change-Id: Id49641c0a919129e2c54531c3995ec7421161002
      0db496ef
  3. Feb 06, 2022
    • Chalard Jean's avatar
      Update the UIDs only after the native network is created · a7d4766d
      Chalard Jean authored
      UIDs can't be sent to netd until the native network is created.
      Also, it's possible that the interface disappears at any moment,
      so in that case catch the ServiceSpecificException.
      
      Test: FrameworksNetTests
      Bug: 218100554
      Change-Id: I79285166acf5d89aa34107e00dfff963ccc22d52
      a7d4766d
  4. Feb 04, 2022
  5. Feb 03, 2022
    • Lorenzo Colitti's avatar
      Extract TestBpfMap from BpfCoordinatorTest. · 1705eb99
      Lorenzo Colitti authored
      The class is being moved to a common test utils location in
      another CL in this topic.
      
      Test: atest BpfCoordinatorTest
      Change-Id: Ibf8dae3e05aacaea4f7c3fe8229d87e1ad6a68d5
      1705eb99
    • Patrick Rohr's avatar
      Add jarjar rule for com.android.testutils.TestBpfMap · 3157918f
      Patrick Rohr authored
      TestBpfMap needs to be jarjar'ed to work with ConnectivityCoverageTests
      which combines both framework tests and tethering tests (and their
      respective jarjar rules).
      
      Test: atest ConnectivityCoverageTests:BpfCoordinatorTest
      Change-Id: Ie3e7f0be9aeb848978f0df97be48100c808086bc
      3157918f
    • Patrick Rohr's avatar
      Merge changes I50417e69,I6892d81c,Id8846844,Ib22da8d4,Iad66f0d4 · 445dede4
      Patrick Rohr authored
      * changes:
        jni - dynamically link C++ - saves 43 kB
        libservice-connectivity - dynamically link c++ - saves 600 kB
        link libbase & libnetdutils dynamically - save ~17.5 kiB
        remove spurious headers
        libclat only depends on libbase_headers not libbase itself
      445dede4
    • Robert Horvath's avatar
      Merge changes from topic "low-power-standby-impl" · 3b20dfbc
      Robert Horvath authored
      * changes:
        Add Low Power Standby support to TrafficController
        Handle Low Power Standby chain in ConnectivityService
        Implement Low Power Standby packet filtering in BPF program
      3b20dfbc
    • Remi NGUYEN VAN's avatar
      Add APIs for discovery with a network request · 79294730
      Remi NGUYEN VAN authored
      Verify that services will be found / lost when underlying networks
      change.
      
      Bug: 190249673
      Test: atest NsdManagerTest
      Change-Id: If62b18a729c6d7b8e2c8701eda6f860ecea4cbaf
      79294730
    • Remi NGUYEN VAN's avatar
      Add APIs for discover/resolve on specific networks · 06bdcec9
      Remi NGUYEN VAN authored
      Test that NsdManager specifies the correct network when a service is
      discovered, and that services can be resolved on a specified network.
      Also test that service discovery can be started on a specific network.
      
      Bug: 190249673
      Test: atest NsdManagerTest
      
      Change-Id: Ie8b551ce9e33e3adf35f75508f91bbd0df71f837
      06bdcec9
    • Maciej Żenczykowski's avatar
      jni - dynamically link C++ - saves 43 kB · 6a6b071d
      Maciej Żenczykowski authored
      
      Since we already ship libc++ in the apex anyway...
      
      Before in /apex/com.android.tethering/lib:
        -rw-r--r-- 1 system system  64560 1969-12-31 16:00 libandroid_net_connectivity_com_android_net_module_util_jni.so
      After:
        -rw-r--r-- 1 system system  21460 1969-12-31 16:00 libandroid_net_connectivity_com_android_net_module_util_jni.so
      
      Test: TreeHugger
      Signed-off-by: default avatarMaciej Żenczykowski <maze@google.com>
      Change-Id: I50417e69a9a0b03d24212aa3f875bf241e0b0527
      6a6b071d
    • Maciej Żenczykowski's avatar
      libservice-connectivity - dynamically link c++ - saves 600 kB · 167c8607
      Maciej Żenczykowski authored
      
      Before in /apex/com.android.tethering/lib:
        -rw-r--r-- 1 system system 749980 1969-12-31 16:00 libservice-connectivity.so
      After:
        -rw-r--r-- 1 system system 150748 1969-12-31 16:00 libservice-connectivity.so
      
      Test: TreeHugger
      Signed-off-by: default avatarMaciej Żenczykowski <maze@google.com>
      Change-Id: I6892d81ca597d27cc1a85180f7ffa39f2b3de1be
      167c8607
    • Maciej Żenczykowski's avatar
      link libbase & libnetdutils dynamically - save ~17.5 kiB · dcae3516
      Maciej Żenczykowski authored
      
      Before:
        $ adbz root && adbz wait-for-device && adbz shell ls -l /apex/com.android.tethering/{bin/for-system,lib,liv64}
        /apex/com.android.tethering/bin/for-system:
      = -rwsr-sr-x 1 clat clat 18412 1969-12-31 16:00 clatd
      
        /apex/com.android.tethering/lib:
      = -rw-r--r-- 1 system system  64560 1969-12-31 16:00 libandroid_net_connectivity_com_android_net_module_util_jni.so
      = -rw-r--r-- 1 system system 713636 1969-12-31 16:00 libc++.so
      = -rw-r--r-- 1 system system  13596 1969-12-31 16:00 libframework-connectivity-jni.so
      d -rw-r--r-- 1 system system 212624 1969-12-31 16:00 libnetd_updatable.so
      d -rw-r--r-- 1 system system 948044 1969-12-31 16:00 libservice-connectivity.so
      
      After:
        $ adbz root && adbz wait-for-device && adbz shell ls -l /apex/com.android.
        /apex/com.android.tethering/bin/for-system:
      = -rwsr-sr-x 1 clat clat 18412 1969-12-31 16:00 clatd
      
        /apex/com.android.tethering/lib:
      = -rw-r--r-- 1 system system  64560 1969-12-31 16:00 libandroid_net_connectivity_com_android_net_module_util_jni.so
      + -rw-r--r-- 1 system system 251404 1969-12-31 16:00 libbase.so
      = -rw-r--r-- 1 system system 713636 1969-12-31 16:00 libc++.so
      = -rw-r--r-- 1 system system  13596 1969-12-31 16:00 libframework-connectivity-jni.so
      d -rw-r--r-- 1 system system  45584 1969-12-31 16:00 libnetd_updatable.so
      + -rw-r--r-- 1 system system  95872 1969-12-31 16:00 libnetdutils.so
      d -rw-r--r-- 1 system system 749980 1969-12-31 16:00 libservice-connectivity.so
      
      Delta: -212624-948044+251404+45584+95872+749980 == -17828
      
      Test: TreeHugger
      Signed-off-by: default avatarMaciej Żenczykowski <maze@google.com>
      Change-Id: Id88468442c4f3f24d5bca96b75effb69f20038bf
      dcae3516
    • Maciej Żenczykowski's avatar
      remove spurious headers · 2f7dac1b
      Maciej Żenczykowski authored
      
      bpf_connectivity_headers already pulls in bpf_headers,
      which already pulls in bpf_syscall_wrappers.
      
      Test: TreeHugger
      Signed-off-by: default avatarMaciej Żenczykowski <maze@google.com>
      Change-Id: Ib22da8d433bd3187349f06f41ec064360c38982f
      2f7dac1b
    • Maciej Żenczykowski's avatar
      libclat only depends on libbase_headers not libbase itself · 0bbe3d2c
      Maciej Żenczykowski authored
      
      Test: TreeHugger
      Signed-off-by: default avatarMaciej Żenczykowski <maze@google.com>
      Change-Id: Iad66f0d4bed4100261e8aa7d135e62336cdd1ae8
      0bbe3d2c
  6. Feb 02, 2022
  7. Feb 01, 2022
    • Patrick Rohr's avatar
      Move netlink_listener_test into TrafficControllerTest · 61e9467f
      Patrick Rohr authored
      netlink_listener_test tests the socket destroy listener, so it makes
      sense to just merge it into the TrafficControllerTest.
      
      Test: atest traffic_controller_unit_test
      Change-Id: Ibc0b483203150aa2d7898a761fa4715dce6f4218
      61e9467f
    • Patrick Rohr's avatar
      Fix BpfNetMap error logging · 83fb6742
      Patrick Rohr authored
      Log result code in native_init and fix spelling in log messages.
      
      Test: m
      Change-Id: I39b429ba05c6d5ccf50d28b0592fa5241972aa1b
      83fb6742
    • Patrick Rohr's avatar
      Enable TrafficController in apex · 216dfc82
      Patrick Rohr authored
      Test: atest FrameworksNetTests FrameworksNetIntegrationTests
      CtsNetTestCases:android.net.TrafficStatsTest NetworkUsageStatsTest
      CtsHostsideNetworkTests
      
      Change-Id: I03f70e3258bf121cbac69a3bb302871ac680c6fb
      216dfc82
Loading