Skip to content
Snippets Groups Projects
  1. Aug 03, 2022
    • Remi NGUYEN VAN's avatar
      Only use framework-connectivity stubs for -t stubs · 77d4c4ef
      Remi NGUYEN VAN authored
      Do not use framework-connectivity stubs for
      framework-connectivity-t-pre-jarjar, as that library can build against
      the full framework-connectivity implementation including hidden symbols:
      it already builds against framework-connectivity-pre-jarjar.
      
      The stubs are only necessary to build framework-connectivity-t stubs, to
      avoid circular dependencies between these and the framework-connectivity
      implementation.
      
      This change allows using hidden symbols of framework-connectivity in
      framework-connectivity-t-pre-jarjar, but does not fully fix the problem
      as framework-connectivity-t will use the framework-connectivity stubs
      both to build its own stubs and to build its implementation library, due
      to "libs" being used in both cases (and prioritized over
      impl_only_libs). As a result, it is still not possible to build
      framework-connectivity-t when it references hidden symbols of classes
      that are also part of the stubs. Still, this is a first step and
      organizes the build rules closer to what they should be.
      
      Bug: 139774492
      Test: m
      Change-Id: I5e696fa6a7871d048e0ba16442de33b5f139faae
      77d4c4ef
  2. Jul 26, 2022
  3. Jul 25, 2022
    • Treehugger Robot's avatar
    • James Mattis's avatar
      Changing EthernetNetworkFactoryTest assert order · fce2777a
      James Mattis authored
      Changing multiple instances where the assert order for an assert.equals
      was (actual, expected) to the more widely (and suggested) ordering of
      (expected, actual).
      
      Bug: 235605892
      Test: atest FrameworksNetTests
      :com.android.server.ethernet.EthernetNetworkFactoryTest
      
      Change-Id: I6e9459d34d6cc7f43a2bfe346d2c2ca9551d46da
      fce2777a
    • Maciej Żenczykowski's avatar
    • Remi NGUYEN VAN's avatar
      Run R8 with the necessary classpath classes · 371e7f75
      Remi NGUYEN VAN authored
      R8 emits "missing class" warnings when optimizing service-connectivity
      because service-connectivity combines several already built static_libs
      (service-connectivity, service-connectivity-t, service-nearby), but does
      not specify any classpath library, which are actually needed for R8.
      
      This causes wrong optimizations, where R8 would sometimes strip out code
      that it thinks is unused (because it considers it unreachable due to the
      missing class, or it does not know the superclass of a callback and
      thinks the overridden methods cannot be called).
      
      Add the necessary classpath libraries to remove the warnings.
      
      Bug: 226127213
      Bug: 239990030
      Test: m service-connectivity, see no "Missing class" warnings
      Change-Id: I1eaa39b70da4b540e3a3e8e798bec1359b5bf533
      371e7f75
    • Aaron Huang's avatar
      Migrate buildTemplate* to use NetworkTemplate.Builder · 1c14fa9b
      Aaron Huang authored
      Use new Builder API which was introduced in Android T.
      
      Bug: 238843364
      Test: FrameworksNetTests
            dumpsys netstats --checkin and check the output
      Change-Id: Ieb0a2ee04056a1cedb71274ea710ff5153e2d68c
      1c14fa9b
  4. Jul 23, 2022
  5. Jul 22, 2022
  6. Jul 21, 2022
Loading