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

Skip to content
Commit 1efdefc4 authored by Chalard Jean's avatar Chalard Jean
Browse files

Use the new NetworkAgent API

NetworkAgent#updateNetworkInfo is not public or system API, but is
replaced by some new calls. This implements the smallest possible
change converting from the existing objects to the new ones.

This is not completely a no-op change. In particular :
- The network agent used to start in the CONNECTED state, but now
  starts in CONNECTING state and goes to CONNECTED immediately.
- If updates to the extra info, legacy subtype and/or disconnection
  happen concurrently, they get split into multiple calls to
  ConnectivityService, while they used to be a single atomic update.
Both of these changes are supposed to be benign.

Bug: 138306002
Test: FrameworksNetTests FrameworksTelephonyTests
Change-Id: I1ce0209824dc74f38e2223ccfbf5e1c031404f69
parent 6d4431b0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment