Skip to content
Snippets Groups Projects
  1. Oct 12, 2023
    • Paul Duffin's avatar
      Add additional overriding methods to signature files · b3c3f2e9
      Paul Duffin authored
      This change adds overriding methods that are essential to compile the
      stubs generated from the signature files.
      
      More information and the background for this change is available at
      go/add-overriding-one-pager.
      
      Test: m checkapi
      Bug: 299366704
      Change-Id: Idba307148fd9afa87bfb7e0c89e00d9bd97ec204
      b3c3f2e9
  2. Oct 10, 2023
    • Paul Duffin's avatar
      Prepare for keeping concrete overrides of abstract methods · 7bd2d108
      Paul Duffin authored
      Currently, metalava will discard concrete overrides of abstract methods
      from the API signature files which causes problems when attempting to
      generate stubs from those files and also discards information that may
      be important in API reviews. This change is the first step in the
      process of changing that behavior.
      
      This change hard codes the current behavior for discarding the concrete
      overrides (`add-additional-overrides=no`) into those signature files
      that will (or are likely) to be affected by the change in behavior.
      That allows the default behavior to be changed for all the other files
      without affecting these.
      
      Follow up changes will remove the hard coding from the signature files
      and will update the contents which will include the concrete overrides
      of the abstract methods.
      
      More information and the background for this change is available at
      go/add-overriding-one-pager.
      
      Test: m checkapi
      Bug: 299366704
      Change-Id: I52c5bbe2e3bbd36019fe44fcb0b2d19876a5a869
      7bd2d108
  3. Apr 19, 2023
    • Motomu Utsumi's avatar
      Move cronet to framework-connectivity · 73e2e87d
      Motomu Utsumi authored
      aosp/2384137 added cronet to framework-tethering.
      But framework-connectivity is a better place to put cronet since
      cronet does not work on R devices (b/270049141) and
      framework-tethering is R+, framework-connectivity is S+.
      
      Followup CLs will move some modules (e.g. CronetJavaPrejarjarDefaults)
      that use the branch dependent soong variables to framework/Android.bp
      
      Test: TH
      Bug: 278070640
      Change-Id: I6bc10116759fb9e083c02147908e53022dab740a
      73e2e87d
  4. Jan 16, 2023
  5. Sep 08, 2022
    • Remi NGUYEN VAN's avatar
      Revert "[ST02.1] Add TYPE_CNAME constant to DnsResolver" · 110bbdaa
      Remi NGUYEN VAN authored
      Revert submission 1387135-st02
      
      Reason for revert: Usage of TYPE_CNAME in a library shared among
      modules does not interact well with current module release process
      
      Reverted Changes:
      Ib5616c65c:[ST02.2] Use the getters of DnsHeader
      I5e58f99b0:[ST02.1] Add TYPE_CNAME constant to DnsResolver
      I0c1547cbc:[ST02] Add methods for synthesizing DNS packets
      
      Change-Id: I5aa9f28f1268f966f62041193ceb7c8bef994579
      110bbdaa
  6. Aug 25, 2022
    • Junyu Lai's avatar
      [ST02.1] Add TYPE_CNAME constant to DnsResolver · 822ab28a
      Junyu Lai authored
      This would be needed for subsequent patches that synthesizing DNS
      packets for testing purpose.
      
      Bug: 139774492
      Test: atest DnsPacketTest DnsResolverTest
      Change-Id: I5e58f99b09b693f167178e56f008be8b42d9417a
      822ab28a
  7. 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
  8. Jan 25, 2022
  9. Jan 22, 2022
  10. Dec 23, 2021
    • Sooraj Sasindran's avatar
      Add enterpriseSpecifier · 4196937b
      Sooraj Sasindran authored
      Add enterpriseSpecifier to network capability
      
      Bug: 194332512
      CTS-Coverage-Bug: 211133973
      Test: CTS and unit test.
      Change-Id: If16c8e17cee71cc6788c43a8818bcca68a00bf99
      4196937b
  11. Dec 21, 2021
    • Jack Yu's avatar
      Added a new network capability MMTEL · 04bbc5b9
      Jack Yu authored
      Added NET_CAPABILITY_MMTEL to indicate a network
      support MMTEL (Multimedia telephony). This is for
      IMS service to request an IMS network that supports
      voice or PS (VoPS for 4G, VoNR for 5G).
      
      This was previously submitted as aosp/1927841, but
      which got reverted due to breaking the mainline
      build, which uses the pre-built module.
      
      Bug: 210774375
      Test: atest ConnectivityServiceTest
      Change-Id: If8b691ff4999a4dbf54e7567d9ca74d743dc5ded
      04bbc5b9
    • Martijn Coenen's avatar
      Revert "Added a new network capability MMTEL" · 6ebc8ba5
      Martijn Coenen authored
      Revert "Added setup/tear down data support"
      
      Revert "Added a new network capability MMTEL"
      
      Revert submission 1927643-mmtel_capability
      
      Reason for revert: b/211586152
      Reverted Changes:
      Ifea8b1e40:Added a new network capability MMTEL
      I38655bef2:Added a new network capability MMTEL
      I837606d9e:Added setup/tear down data support
      I2c7b291fe:Added a new network capability MMTEL
      
      Change-Id: Ie9b0b0d9017ef8aea7fbb56dda522e7c433144b9
      6ebc8ba5
  12. Dec 19, 2021
  13. Dec 16, 2021
    • Jack Yu's avatar
      Added a new network capability MMTEL · f322d4f5
      Jack Yu authored
      Added NET_CAPABILITY_MMTEL to indicate a network
      support MMTEL (Multimedia telephony). This is for
      IMS service to request an IMS network that supports
      voice or PS (VoPS for 4G, VoNR for 5G).
      
      Bug: 210774375
      Test: atest ConnectivityServiceTest
      Change-Id: Ifea8b1e40f65c610e925a27be873930fee2df693
      f322d4f5
    • Ayush Sharma's avatar
      Revert "Unhide IpPrefix(InetAddress, int)" · 758ead6d
      Ayush Sharma authored
      Revert "Add APIs that allow to exclude routes from VPN"
      
      Revert "Suppress NewApi warnings for @SystemApi -> public APIs"
      
      Revert "Add VpnServiceBuilderShim for VpnService.Builder"
      
      Revert submission 1551943-vpn-impl
      
      Reason for revert: <DroidMonitor-triggered revert due to breakage https://android-build.googleplex.com/builds/quarterdeck?branch=aosp-master&target=mainline_modules_x86_64-userdebug&lkgb=8007224&lkbb=8008168&fkbb=8007902 >, bug b/210979001
      Reverted Changes:
      I0e7aa077a:Add VpnServiceBuilderShim for VpnService.Builder
      Ib12f5ab39:Suppress NewApi warnings for @SystemApi -> public ...
      I59b9185cf:Unhide RouteInfo#getType and related fields
      Ie5b62b2b2:Unhide IpPrefix(InetAddress, int)
      I993a32d40:Add CTS tests for exclude VPN routes APIs
      Ib24b2d3fb:Suppress NewApi warnings for @SystemApi -> public ...
      Ic3b10464a:Add APIs that allow to exclude routes from VPN
      
      Change-Id: Id0c373fb042a98c1c68807acf7fcfe456520ebe2
      BUG: 210979001
      758ead6d
    • Ayush Sharma's avatar
      Revert "Unhide RouteInfo#getType and related fields" · 6d1ea2bb
      Ayush Sharma authored
      Revert "Add APIs that allow to exclude routes from VPN"
      
      Revert "Suppress NewApi warnings for @SystemApi -> public APIs"
      
      Revert "Add VpnServiceBuilderShim for VpnService.Builder"
      
      Revert submission 1551943-vpn-impl
      
      Reason for revert: <DroidMonitor-triggered revert due to breakage https://android-build.googleplex.com/builds/quarterdeck?branch=aosp-master&target=mainline_modules_x86_64-userdebug&lkgb=8007224&lkbb=8008168&fkbb=8007902 >, bug b/210979001
      Reverted Changes:
      I0e7aa077a:Add VpnServiceBuilderShim for VpnService.Builder
      Ib12f5ab39:Suppress NewApi warnings for @SystemApi -> public ...
      I59b9185cf:Unhide RouteInfo#getType and related fields
      Ie5b62b2b2:Unhide IpPrefix(InetAddress, int)
      I993a32d40:Add CTS tests for exclude VPN routes APIs
      Ib24b2d3fb:Suppress NewApi warnings for @SystemApi -> public ...
      Ic3b10464a:Add APIs that allow to exclude routes from VPN
      
      Change-Id: I98d3b998e4702f56e9d5e17944238b283b29f2b2
      BUG: 210979001
      6d1ea2bb
  14. Dec 13, 2021
  15. Dec 10, 2021
    • Aswin Sankar's avatar
      DnsResolver: Make DnsException ctor public · 74cbfd5a
      Aswin Sankar authored
      Making the DnsException constructor public is useful for apps
      using DnsResolver to write their tests, and for internal packages
      that may want to implement the DnsResolver.Callback interface.
      
      Test: for regression; CTS tests in b/208479811
      Bug: 208464882
      Change-Id: I14641688f53721c96e6df9596a7506912ba3aec0
      74cbfd5a
  16. Jul 14, 2021
    • lifr's avatar
      Cleanup the public API getActiveNetworkForUid on AOSP · 538f079d
      lifr authored
      In order to make ConnectivityService the mainline module in ANDROID 12,
      The earliest ConnectivityService API getActiveNetworkForUid was exposed.
      
      But after that public api getActiveNetworkForUid and all callers
      (Outside the module) has been deleted or replaced in android 12
      version. So we should delete the public API in AOSP to keep the APIs
      of Android 12 & AOSP consistent and also avoid using it again in AOSP.
      The commit is equivalent to ag/14029494, but done in a different repo.
      
      Bug: 183465229
      Test: atest ConnectivityControllerTest
      Merged-In: I3c2563d4ae4e3715d0c6270344ba8f7ef067872f
      Change-Id: I50a39d6391c88bbb914a63fdb17bae6851591c01
      538f079d
  17. Jul 08, 2021
    • lucaslin's avatar
      Add new network capabilities to support automotive head unit via USB · 6f77442d
      lucaslin authored
      - Add a new transport type for USB and a new network capability
      to support automotive head unit.
      - In order to pass DnsManagerTest#testTransportTypesEqual, Android.bp
      needs to link to dnsresolver_aidl_interface-V8-java. That test checks
      whether the TRANSPORT types defined in NetworkCapabilities are the
      same as IDnsResolver.aidl.
      
      (clean cherry-pick of change in downstream branch history, original
      change ID before project move:
      Iec2df09a776d779108f95098e01b7ffdf6f8867a)
      
      Bug: 181742019
      Test: atest FrameworksNetTests
      
      Merged-In: I3c2563d4ae4e3715d0c6270344ba8f7ef067872f
      Change-Id: Ie438ec68577ebdaaf990795fa27f1169b0105411
      6f77442d
  18. May 18, 2021
    • Lorenzo Colitti's avatar
      Allow unprivileged NetworkCallbacks to see other UIDs' networks. · d82c1ec1
      Lorenzo Colitti authored
      Currently, unprivileged apps can call getAllNetworks() to see
      all networks on the system, even networks that do not apply to
      them. Allow them to do this via NetworkCallbacks as well.
      
      This is the last piece of information that was only available
      through getAllNetworks, so this CL deprecates that API.
      
      Bug: 187921303
      Test: new unit tests
      Test: CTS test in other CL in topic
      Change-Id: I30f1021927d3c8eae6525116c61ff4a4acecff6d
      d82c1ec1
    • Lorenzo Colitti's avatar
      Allow unprivileged NetworkCallbacks to see other UIDs' networks. · 86714b1f
      Lorenzo Colitti authored
      Currently, unprivileged apps can call getAllNetworks() to see
      all networks on the system, even networks that do not apply to
      them. Allow them to do this via NetworkCallbacks as well.
      
      This is the last piece of information that was only available
      through getAllNetworks, so this CL deprecates that API.
      
      Bug: 187921303
      Test: new unit tests
      Test: CTS test in other CL in topic
      Change-Id: I30f1021927d3c8eae6525116c61ff4a4acecff6d
      86714b1f
  19. Apr 08, 2021
    • Remi NGUYEN VAN's avatar
      Set ParseException constructors as public · da39ab14
      Remi NGUYEN VAN authored
      As there is no strong reason to keep the constructors module-lib, set
      them as public API.
      This is in response to API feedback.
      
      Fixes: 183446251
      Test: m
      Change-Id: I01daa6f6f8095f7a4db94d1ca05f913166939df3
      da39ab14
    • Remi NGUYEN VAN's avatar
      Set ParseException constructors as public · 84a217a6
      Remi NGUYEN VAN authored
      As there is no strong reason to keep the constructors module-lib, set
      them as public API.
      This is in response to API feedback.
      
      Fixes: 183446251
      Test: m
      Change-Id: I01daa6f6f8095f7a4db94d1ca05f913166939df3
      84a217a6
    • Remi NGUYEN VAN's avatar
      Set ParseException constructors as public · e236fe9e
      Remi NGUYEN VAN authored
      As there is no strong reason to keep the constructors module-lib, set
      them as public API.
      This is in response to API feedback.
      
      Fixes: 183446251
      Test: m
      Change-Id: I01daa6f6f8095f7a4db94d1ca05f913166939df3
      e236fe9e
  20. Apr 06, 2021
    • lifr's avatar
      Remove unnecessary public API getActiveNetworkForUid · db7d676f
      lifr authored
      We have exposed the CS module API getActiveNetworkForUid
      (Used in Jobscheduler) as a temporary solution for the mainline
      Connectivity service module. This API usage has now been removed
      in Jobscheduler(b/165835257), so we can permanently remove the
      public getActiveNetworkForUid API.
      
      Bug: 183465229
      Test: atest FrameworksNetTests
      Change-Id: I0f23272d2d8a5118f2e11ac325fdb9e8f9dbe0e3
      db7d676f
    • lifr's avatar
      Remove unnecessary public API getActiveNetworkForUid · 5f1c1105
      lifr authored
      We have exposed the CS module API getActiveNetworkForUid
      (Used in Jobscheduler) as a temporary solution for the mainline
      Connectivity service module. This API usage has now been removed
      in Jobscheduler(b/165835257), so we can permanently remove the
      public getActiveNetworkForUid API.
      
      Bug: 183465229
      Test: atest FrameworksNetTests
      Change-Id: I0f23272d2d8a5118f2e11ac325fdb9e8f9dbe0e3
      5f1c1105
  21. Apr 02, 2021
  22. Mar 30, 2021
    • lifr's avatar
      [JS01]Remove hidden API usage of Connectivity Sevice · b4dab37e
      lifr authored
      The Connectivity service will become the mainline module.
      Therefore, remove the caller of using Connectivity's
      hidden API outside the module and expose the required
      connectivity API used in Jobscheduler.
      
      Bug: 183456204
      CTS-Coverage-Bug: 170598012
      Test: atest JobStoreTest
      Change-Id: Ie6bc81ff382fb242b98f35d28a96defc207c7987
      Merged-In: Ie6bc81ff382fb242b98f35d28a96defc207c7987
                 (cherry-picked from ag/13946348)
      b4dab37e
    • lifr's avatar
      [JS01]Remove hidden API usage of Connectivity Sevice · d023f35c
      lifr authored
      The Connectivity service will become the mainline module.
      Therefore, remove the caller of using Connectivity's
      hidden API outside the module and expose the required
      connectivity API used in Jobscheduler.
      
      Bug: 183456204
      CTS-Coverage-Bug: 170598012
      Test: atest JobStoreTest
      Change-Id: Ie6bc81ff382fb242b98f35d28a96defc207c7987
      Merged-In: Ie6bc81ff382fb242b98f35d28a96defc207c7987
                 (cherry-picked from ag/13946348)
      d023f35c
    • lifr's avatar
      [JS01]Remove hidden API usage of Connectivity Sevice · 42a60c2e
      lifr authored
      The Connectivity service will become the mainline module.
      Therefore, remove the caller of using Connectivity's
      hidden API outside the module and expose the required
      connectivity API used in Jobscheduler.
      
      Bug: 183456204
      CTS-Coverage-Bug: 170598012
      Test: atest JobStoreTest
      Change-Id: Ie6bc81ff382fb242b98f35d28a96defc207c7987
      Merged-In: Ie6bc81ff382fb242b98f35d28a96defc207c7987
                 (cherry-picked from ag/13946348)
      42a60c2e
  23. Mar 29, 2021
    • lucaslin's avatar
      Add new network capabilities to support automotive head unit via USB · 593a1b4d
      lucaslin authored
      - Add a new transport type for USB and a new network capability
      to support automotive head unit.
      - In order to pass DnsManagerTest#testTransportTypesEqual, Android.bp
      needs to link to dnsresolver_aidl_interface-V8-java. That test checks
      whether the TRANSPORT types defined in NetworkCapabilities are the
      same as IDnsResolver.aidl.
      
      Bug: 181742019
      Test: atest FrameworksNetTests
      Change-Id: Iec2df09a776d779108f95098e01b7ffdf6f8867a
      593a1b4d
    • lucaslin's avatar
      Add new network capabilities to support automotive head unit via USB · e545c385
      lucaslin authored
      - Add a new transport type for USB and a new network capability
      to support automotive head unit.
      - In order to pass DnsManagerTest#testTransportTypesEqual, Android.bp
      needs to link to dnsresolver_aidl_interface-V8-java. That test checks
      whether the TRANSPORT types defined in NetworkCapabilities are the
      same as IDnsResolver.aidl.
      
      Bug: 181742019
      Test: atest FrameworksNetTests
      Change-Id: Iec2df09a776d779108f95098e01b7ffdf6f8867a
      e545c385
  24. Mar 23, 2021
    • Chiachang Wang's avatar
      Add NetworkRequest.Builder creating from an existing instance · e2179dd1
      Chiachang Wang authored
      Provide a formal way to construct a new NetworkRequest from an
      existing instance. The network capabilities inside the
      NetworkRequest is hidden. There is no way to pass a
      NetworkRequest and update its capabilities. Add
      NetworkRequest.Builder creating from an existing instance to
      allow to clone the network capabilities.
      
      Bug: 172183305
      Test: make update-api
      Change-Id: I068462b2a1410daf67b0c95f2b643d396f079531
      Merged-In: I068462b2a1410daf67b0c95f2b643d396f079531
      e2179dd1
    • Chiachang Wang's avatar
      Add NetworkRequest.Builder creating from an existing instance · 992047ed
      Chiachang Wang authored
      Provide a formal way to construct a new NetworkRequest from an
      existing instance. The network capabilities inside the
      NetworkRequest is hidden. There is no way to pass a
      NetworkRequest and update its capabilities. Add
      NetworkRequest.Builder creating from an existing instance to
      allow to clone the network capabilities.
      
      Bug: 172183305
      Test: make update-api
      Change-Id: I068462b2a1410daf67b0c95f2b643d396f079531
      Merged-In: I068462b2a1410daf67b0c95f2b643d396f079531
      992047ed
    • Chiachang Wang's avatar
      Add NetworkRequest.Builder creating from an existing instance · 839b2435
      Chiachang Wang authored
      Provide a formal way to construct a new NetworkRequest from an
      existing instance. The network capabilities inside the
      NetworkRequest is hidden. There is no way to pass a
      NetworkRequest and update its capabilities. Add
      NetworkRequest.Builder creating from an existing instance to
      allow to clone the network capabilities.
      
      Bug: 172183305
      Test: make update-api
      Change-Id: I068462b2a1410daf67b0c95f2b643d396f079531
      Merged-In: I068462b2a1410daf67b0c95f2b643d396f079531
      839b2435
Loading