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 23:56:24 +0000 (08:56 +0900)
commitb90ad24f99ed651cdc885eb611f43d169c729528
tree964b6ec960104423ef800d8f69c050422a8faf68
parentf0a67227c45d3571cc88510979567ecbb97a6c41
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
Merged-In: 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