OSDN Git Service

Stop using netd parcelables in the framework.
authorLorenzo Colitti <lorenzo@google.com>
Mon, 18 Mar 2019 14:50:34 +0000 (23:50 +0900)
committerLorenzo Colitti <lorenzo@google.com>
Tue, 19 Mar 2019 15:49:32 +0000 (00:49 +0900)
commitcc7f1db9709e461588ed0c0251c0d9744525d02f
tree07da01b5e0f2ee72043c83a3403b519f2cd27f62
parent949012715d18f25b25ffa9603fee83ef9e6bd4ef
Stop using netd parcelables in the framework.

The only actual users of these classes are in services.jar, not
in frameworks.jar. The only reason the framework depends on them
is that the code that converts to and from stable parcelables is
currently in the framework. Move that code to services and cut
the dependency.

These classes aren't used in the networkstack app so they don't
need to be in shared. They also can't be in shared because the
classes are not in the SDK. So put the conversion functions
directly inside their only user (NetworkManagementService).

Also remove the jarjar rules that rename the classes for use by
the NetworkStack app.

This does not actually remove the dependency from the build file,
that will be done in a future CL.

Bug: 128804404
Test: builds, boots
Test: atest FrameworksNetTests android.net.cts.ConnectivityManagerTest HostsideVpnTests
Change-Id: I027d50ba56091f5558f45e6e08f32e5912b2a82a
core/java/android/net/InterfaceConfiguration.java
core/java/android/net/UidRange.java
packages/NetworkStack/jarjar-rules-shared.txt
services/core/java/com/android/server/NetworkManagementService.java